|
| 1 | +// Version: 1.0.0 |
| 2 | +type AccountIdentifier = Text; |
| 3 | +type AccountIdentifier__1 = AccountIdentifier; |
| 4 | +type AccountIdentifier__2 = AccountIdentifier__1; |
| 5 | +type AssetHandle = Text; |
| 6 | +type AssetId = Nat32; |
| 7 | +type AssetType = |
| 8 | +{ |
| 9 | +#canister : {canister : Text; id : AssetId}; |
| 10 | +#direct : [ChunkId]; |
| 11 | +#other : Text |
| 12 | +}; |
| 13 | +type Asset__1 = {atype : AssetType; ctype : Text; filename : Text}; |
| 14 | +type CapDetailValue = |
| 15 | +{ |
| 16 | +#False; |
| 17 | +#Float : Float; |
| 18 | +#I64 : Int64; |
| 19 | +#Principal : Principal; |
| 20 | +#Slice : [Nat8]; |
| 21 | +#Text : Text; |
| 22 | +#True; |
| 23 | +#U64 : Nat64; |
| 24 | +#Vec : [CapDetailValue] |
| 25 | +}; |
| 26 | +type CapIndefiniteEvent = |
| 27 | +{caller : Principal; details : [(Text, CapDetailValue)]; operation : Text}; |
| 28 | +type ChunkId = Nat32; |
| 29 | +type Listing = {locked : ?Time__1; price : Nat64; seller : Principal}; |
| 30 | +type MetadataContainer = |
| 31 | +{#blob : Blob; #data : [MetadataValue]; #json : Text}; |
| 32 | +type MetadataValue = |
| 33 | +(Text, {#blob : Blob; #nat : Nat; #nat8 : Nat8; #text : Text}); |
| 34 | +type Metadata__1 = |
| 35 | +{ |
| 36 | +#fungible : |
| 37 | +{ |
| 38 | +decimals : Nat8; |
| 39 | +metadata : ?MetadataContainer; |
| 40 | +name : Text; |
| 41 | +symbol : Text |
| 42 | +}; |
| 43 | +#nonfungible : |
| 44 | +{ |
| 45 | +asset : Text; |
| 46 | +metadata : ?MetadataContainer; |
| 47 | +name : Text; |
| 48 | +thumbnail : Text |
| 49 | +} |
| 50 | +}; |
| 51 | +type Payment = |
| 52 | +{ |
| 53 | +amount : Nat64; |
| 54 | +expires : Time__1; |
| 55 | +payer : AccountIdentifier__2; |
| 56 | +purchase : PaymentType; |
| 57 | +subaccount : SubAccount__2 |
| 58 | +}; |
| 59 | +type PaymentType = |
| 60 | +{#nft : TokenIndex__1; #nfts : [TokenIndex__1]; #sale : Nat64}; |
| 61 | +type Sale = |
| 62 | +{ |
| 63 | +end : Time__1; |
| 64 | +groups : [SalePricingGroup]; |
| 65 | +quantity : Nat; |
| 66 | +remaining : SaleRemaining; |
| 67 | +start : Time__1 |
| 68 | +}; |
| 69 | +type SalePricingGroup = |
| 70 | +{ |
| 71 | +end : Time__1; |
| 72 | +limit : (Nat64, Nat64); |
| 73 | +name : Text; |
| 74 | +participants : [AccountIdentifier__2]; |
| 75 | +pricing : [(Nat64, Nat64)]; |
| 76 | +start : Time__1 |
| 77 | +}; |
| 78 | +type SaleRemaining = {#burn; #retain; #send : AccountIdentifier__2}; |
| 79 | +type SaleTransaction = |
| 80 | +{ |
| 81 | +buyer : AccountIdentifier__2; |
| 82 | +price : Nat64; |
| 83 | +seller : Principal; |
| 84 | +time : Time__1; |
| 85 | +tokens : [TokenIndex__1] |
| 86 | +}; |
| 87 | +type SubAccount = [Nat8]; |
| 88 | +type SubAccount__1 = SubAccount; |
| 89 | +type SubAccount__2 = SubAccount__1; |
| 90 | +type Time = Int; |
| 91 | +type Time__1 = Time; |
| 92 | +type TokenIndex = Nat32; |
| 93 | +type TokenIndex__1 = TokenIndex; |
| 94 | +type Transaction = |
| 95 | +{ |
| 96 | +buyer : AccountIdentifier__2; |
| 97 | +price : Nat64; |
| 98 | +seller : AccountIdentifier__2; |
| 99 | +time : Time__1; |
| 100 | +token : TokenIndex__1 |
| 101 | +}; |
| 102 | +actor { |
| 103 | +stable var cap_rootBucketId : ?Text; |
| 104 | +stable var config_admin : Principal; |
| 105 | +stable var config_canCreateAssetCanister : Bool; |
| 106 | +stable var config_collection_data : Text; |
| 107 | +stable var config_collection_name : Text; |
| 108 | +stable var config_initial_sale_royalty_address : Text; |
| 109 | +stable var config_marketplace_open : Int; |
| 110 | +stable var config_owner : Principal; |
| 111 | +stable var config_royalty : [(AccountIdentifier__2, Nat64)]; |
| 112 | +stable var data_assetCanistersTableState : [(Principal, Nat)]; |
| 113 | +stable var data_assetsTableState : [(AssetHandle, Asset__1)]; |
| 114 | +stable var data_capEventsQueueState : [CapIndefiniteEvent]; |
| 115 | +stable var data_chunksTableState : [(ChunkId, Blob)]; |
| 116 | +stable var data_disbursementQueueState : |
| 117 | +[(TokenIndex__1, AccountIdentifier__2, SubAccount__2, Nat64)]; |
| 118 | +stable var data_expiredPayments : [(AccountIdentifier__2, SubAccount__2)]; |
| 119 | +stable var data_internalNextChunkId : Nat32; |
| 120 | +stable var data_internalNextSubAccount : Nat; |
| 121 | +stable var data_internalNextTokenId : Nat32; |
| 122 | +stable var data_internalRunHeartbeat : Bool; |
| 123 | +stable var data_ownersTableState : |
| 124 | +[(AccountIdentifier__2, [TokenIndex__1])]; |
| 125 | +stable var data_paymentSettlementsTableState : |
| 126 | +[(AccountIdentifier__2, Payment)]; |
| 127 | +stable var data_registryTableState : |
| 128 | +[(TokenIndex__1, AccountIdentifier__2)]; |
| 129 | +stable var data_saleCurrent : ?Sale; |
| 130 | +stable var data_saleGroupsTableState : [(AccountIdentifier__2, Nat)]; |
| 131 | +stable var data_saleSoldQuantity : Nat; |
| 132 | +stable var data_saleSoldTracker : [(Nat, AccountIdentifier__2, Nat64)]; |
| 133 | +stable var data_saleTokensForSale : [TokenIndex__1]; |
| 134 | +stable var data_saleTransactions : [SaleTransaction]; |
| 135 | +stable var data_soldIcp : Nat64; |
| 136 | +stable var data_storedChunkSize : Nat; |
| 137 | +stable var data_supply : Nat; |
| 138 | +stable var data_tokenListingTableState : [(TokenIndex__1, Listing)]; |
| 139 | +stable var data_tokenMetadataTableState : [(TokenIndex__1, Metadata__1)]; |
| 140 | +stable var data_transactions : [Transaction]; |
| 141 | +}; |
0 commit comments