Storage and types overview
token_t
type tez_t is unit
type fa12_token_t is address
type fa2_token_t is [@layout:comb] record [
token : address;
id : nat;
]
type token_t is
| Tez of tez_t
| Fa12 of fa12_token_t
| Fa2 of fa2_token_t
status_auction_t
type status_auction_t is
| Active of unit
| Finished of unit
auction_t
status
Status of auction
token
FA1.2/FA2/TEZ token
end_time
timestamp
Time when auction will be finished
current_bidder
address
Address of a user who made current bid
current_bid
nat
Current bid
amt
nat
Amount of tokens that that were put up for auction
type auction_t is [@layout:comb] record [
status : status_auction_t;
token : token_t;
end_time : timestamp;
current_bidder : address;
current_bid : nat;
amt : nat;
]
fees_t
dev_fee_f
nat
Float value multiplied by 1e+18
bid_fee_f
nat
Float value multiplied by 1e+18
type fees_t is [@layout:comb] record [
dev_fee_f : nat;
bid_fee_f : nat;
]
storage_t - main contract storage
auctions
Mapping of auction IDs' to auctions
dev_fee_balances_f
Float value multiplied by 1e+18
public_fee_balances_f
Float value multiplied by 1e+18
Mapping of tokens to their balances for which auction can be launched (except of whitelisted tokens)
whitelist
quipu_token
fees
Fees that applies to each received token
baker
option(key_hash)
admin
address
Administrator of the contract
pending_admin
option(address)
Pending administrator that should accept his new administrator role (if he is not None
)
dex_core
address
bid_fee_balance_f
nat
Float value multiplied by 1e+18
auctions_count
nat
Number of auctions created by all users
auction_duration
nat
min_bid
nat
type storage_t is [@layout:comb] record [
auctions : big_map(nat, auction_t);
dev_fee_balances_f : big_map(token_t, nat);
public_fee_balances_f : big_map(token_t, nat);
whitelist : set(token_t);
quipu_token : fa2_token_t;
fees : fees_t;
baker : option(key_hash);
admin : address;
pending_admin : option(address);
dex_core : address;
bid_fee_balance_f : nat;
auctions_count : nat;
auction_duration : int;
min_bid : nat;
]
full_storage_t - storage root
storage
Actual storage of the contract
auction_lambdas
big_map(nat, bytes)
Contract's lambda-methods
metadata
big_map(string, bytes)
type full_storage_t is [@layout:comb] record [
storage : storage_t;
auction_lambdas : big_map(nat, bytes);
metadata : big_map(string, bytes);
]
Last updated