duck_nft
Module0xff3e…279d
- Move path
- 0x61e6…e413::duck_nft
- Functions
- 9163 public, 24 entry
- Structs
- 34
- Friend modules
- nestv2
Functions91
Structs34
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- AddressRemovedFromWhitelistcopydrop
address address removed_by address - AddressWhitelistedcopydrop
address address added_by address - AdminCapkey
id UID team_mint_initialized bool - BatchStartedcopydrop
batch_number u64 start_time u64 packs_available u64 - BatchWhitelistedcopydrop
count u64 added_by address - CooldownDurationUpdatedcopydrop
old_duration_ms u64 new_duration_ms u64 updated_by address - CooldownStartedcopydrop
batch_number u64 sellout_time u64 cooldown_end_time u64 - DUCK_NFTdrop
dummy_field bool - DuckNFTstorekey
id UID name String number u64 rarity u8 rarity_name String image_url String description String mint_timestamp u64 owner address luck String multiplier String batch String is_staked bool staked_at u64 last_harvest_time u64 nest_level u8 attributes VecMap<String, String> - DuckVirtuallyStakedcopydrop
duck_id ID owner address nest_level u8 staked_at u64 - DuckVirtuallyUnstakedcopydrop
duck_id ID owner address total_time_staked u64 - GenesisBatchCompletedcopydrop
end_time u64 total_packs_sold u64 - GenesisBatchStartedcopydrop
start_time u64 total_supply u64 whitelist_allocation u64 - GlobalStatskey
id UID common_minted u64 queen_minted u64 king_minted u64 golden_minted u64 total_sht_burned u64 sht_burned_today u64 last_burn_reset_day u64 - HarvestTimeUpdatedcopydrop
duck_id ID new_harvest_time u64 - HatchCapkey
id UID - LastMintOfBatchcopydrop
completed_batch_number u64 next_batch_number u64 cooldown_end_time u64 final_nfts_minted u64 - PackPurchasedcopydrop
pack_type u8 buyer address sht_cost u64 sui_cost u64 rarity u8 remaining_packs u64 - PackSupplykey
id UID total_packs_remaining u64 last_refresh_time u64 start_time u64 basic_egg_sht_cost u64 basic_egg_sui_cost u64 rare_egg_sht_cost u64 rare_egg_sui_cost u64 golden_egg_sht_cost u64 golden_egg_sui_cost u64 genesis_whitelist_basic_sui_cost u64 genesis_whitelist_rare_sui_cost u64 genesis_whitelist_golden_sui_cost u64 genesis_public_basic_sui_cost u64 genesis_public_rare_sui_cost u64 genesis_public_golden_sui_cost u64 is_genesis_batch bool genesis_batch_start_time u64 whitelist_packs_sold u64 whitelist_phase_active bool user_whitelist_purchases Table<address, u64> current_batch_number u64 display_batch_number u64 previous_batch_completed bool total_nfts_minted_globally u64 in_cooldown bool cooldown_end_time u64 last_sellout_time u64 batch_transition_lock bool user_last_purchase_time Table<address, u64> - PackTypeLimitUpdatedcopydrop
pack_type u8 old_limit u64 new_limit u64 updated_by address id UID basic_packs_remaining u64 rare_packs_remaining u64 golden_packs_remaining u64 max_basic_per_batch u64 max_rare_per_batch u64 max_golden_per_batch u64 - PriceUpdatedcopydrop
pack_type u8 old_sht_cost u64 new_sht_cost u64 old_sui_cost u64 new_sui_cost u64 id UID referrers Table<address, address> - ReferralRewardcopydrop
pack_type u8 buyer address referrer address sht_amount u64 timestamp u64 - ReferrerSetcopydrop
user address referrer address timestamp u64 - SupplyRefreshedcopydrop
refresh_time u64 total_packs_available u64 - TeamMintCapkey
id UID team_wallet address minted bool - TeamMintCompletedcopydrop
minter address quantity u64 remaining_mints u64 id UID treasury_wallet address - TreasuryWalletUpdatedcopydrop
old_wallet address new_wallet address - UserStatscopydropstore
lifetime_sht_earned u64 total_harvest_attempts u64 successful_harvests u64 total_sht_burned u64 packs_bought u64 sht_earned_today u64 last_activity_day u64 id UID - Whitelistkey
id UID addresses VecSet<address> - WhitelistPhaseEndedcopydrop
end_time u64 whitelist_packs_sold u64 remaining_for_public u64
Constants95
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 1 | u64 | Abort code | check_genesis_batch_completionhatch_basic_egg_v2hatch_rare_egg_v2hatch_golden_egg_v2 |
| 1 | 2 | u64 | Abort code | validate_genesis_purchasecheck_genesis_batch_completionget_whitelist_per_wallet_limithatch_basic_egg_v2and 2 more |
| 2 | 3 | u64 | Abort code | initcheck_genesis_batch_completionhatch_basic_egg_v2hatch_rare_egg_v2and 1 more |
| 3 | 4 | u64 | Abort code | init |
| 4 | 5 | u64 | Abort code | enforce_public_rate_limitvalidate_public_rate_limitcheck_genesis_batch_completionhatch_basic_egg_v2and 2 more |
| 5 | 6 | u64 | Abort code | validate_genesis_purchase |
| 6 | 7 | u64 | Abort code | check_genesis_batch_completion |
| 7 | 8 | u64 | Abort code | validate_genesis_purchase |
| 8 | 9 | u64 | Abort code | check_genesis_batch_completionget_duck_statshatch_basic_egg_v2hatch_rare_egg_v2and 1 more |
| 9 | 10 | u64 | Abort code | get_duck_stats |
| 10 | 11 | u64 | Abort code | init |
| 11 | 12 | u64 | Abort code | check_genesis_batch_completionhatch_basic_egg_v2hatch_rare_egg_v2hatch_golden_egg_v2 |
| 12 | 13 | u64 | Abort code | check_genesis_batch_completionis_mint_runninghatch_basic_egg_v2hatch_rare_egg_v2and 1 more |
| 13 | 14 | u64 | Abort code | initcheck_genesis_batch_completionhatch_basic_egg_v2hatch_rare_egg_v2and 1 more |
| 14 | 15 | u64 | Abort code | check_and_start_new_batch_if_ready |
| 15 | 16 | u64 | Abort code | enforce_public_rate_limitvalidate_public_rate_limit |
| 16 | 17 | u64 | Abort code | enforce_public_rate_limitvalidate_public_rate_limit |
| 17 | 18 | u64 | Abort code | check_genesis_batch_completionhatch_basic_egg_v2hatch_rare_egg_v2hatch_golden_egg_v2 |
| 18 | 19 | u64 | Abort code | is_mint_running |
| 19 | 20 | u64 | Abort code | is_mint_running |
| 20 | 21 | u64 | Abort code | stake_duck_virtual |
| 21 | 22 | u64 | Abort code | unstake_duck_virtualupdate_harvest_timeupdate_duck_nest_level |
| 22 | 23 | u64 | Value | |
| 23 | 24 | u64 | Abort code | get_cooldown_duration |
| 24 | 0 | u8 | Value | check_genesis_batch_completionroll_basic_egg_rarityroll_rare_egg_rarityis_mint_runningand 2 more |
| 25 | 1 | u8 | Value | check_genesis_batch_completionroll_basic_egg_rarityroll_rare_egg_rarityroll_golden_egg_rarityand 6 more |
| 26 | 2 | u8 | Value | initcheck_genesis_batch_completionroll_basic_egg_rarityroll_rare_egg_rarityand 7 more |
| 27 | 3 | u8 | Value | initroll_rare_egg_rarityroll_golden_egg_rarityget_duck_statsand 3 more |
| 28 | 7000000000000 | u64 | Value | init |
| 29 | 2000000000 | u64 | Value | init |
| 30 | 15000000000000 | u64 | Value | init |
| 31 | 6000000000 | u64 | Value | init |
| 32 | 25000000000000 | u64 | Value | init |
| 33 | 12000000000 | u64 | Value | init |
| 34 | 5555 | u64 | Value | initcheck_genesis_batch_completionget_max_total_supplyget_supply_constantsand 3 more |
| 35 | 300 | u64 | Value | check_and_start_new_batch_if_readystart_cooldown_if_sold_outis_mint_runningget_pack_supply_statusand 3 more |
| 36 | 86400000 | u64 | Value | check_genesis_batch_completionstart_cooldown_if_sold_outis_mint_runningget_cooldown_durationand 1 more |
| 37 | 600 | u64 | Value | initcheck_genesis_batch_completionis_mint_runningget_pack_supply_statusand 3 more |
| 38 | 575 | u64 | Value | initapply_genesis_purchaseget_whitelist_allocationget_public_phase_allocationand 1 more |
| 39 | 21600000 | u64 | Value | validate_genesis_purchaseapply_genesis_purchaseget_whitelist_period_duration |
| 40 | 5000 | u64 | Value | enforce_public_rate_limitvalidate_public_rate_limit |
| 41 | "cooldown_duration" // interpreted as UTF8 string | vector<u8> | Value | check_genesis_batch_completionstart_cooldown_if_sold_outis_mint_runningget_cooldown_duration |
| 42 | "name" // interpreted as UTF8 string | vector<u8> | Value | init |
| 43 | "number" // interpreted as UTF8 string | vector<u8> | Value | init |
| 44 | "description" // interpreted as UTF8 string | vector<u8> | Value | init |
| 45 | "image_url" // interpreted as UTF8 string | vector<u8> | Value | init |
| 46 | "rarity" // interpreted as UTF8 string | vector<u8> | Value | init |
| 47 | "luck" // interpreted as UTF8 string | vector<u8> | Value | init |
| 48 | "multiplier" // interpreted as UTF8 string | vector<u8> | Value | init |
| 49 | "batch" // interpreted as UTF8 string | vector<u8> | Value | init |
| 50 | "attributes" // interpreted as UTF8 string | vector<u8> | Value | init |
| 51 | "{name}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 52 | "{number}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 53 | "{description}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 54 | "{image_url}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 55 | "{rarity_name}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 56 | "{luck}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 57 | "{multiplier}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 58 | "{batch}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 59 | "{attributes}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 60 | "Duck Dynasty #" // interpreted as UTF8 string | vector<u8> | Value | create_duck_nft |
| 61 | "Rarity" // interpreted as UTF8 string | vector<u8> | Value | create_duck_nft |
| 62 | "Luck" // interpreted as UTF8 string | vector<u8> | Value | create_duck_nft |
| 63 | "Multiplier" // interpreted as UTF8 string | vector<u8> | Value | create_duck_nft |
| 64 | "Batch" // interpreted as UTF8 string | vector<u8> | Value | create_duck_nft |
| 65 | "Staked" // interpreted as UTF8 string | vector<u8> | Value | create_duck_nftupdate_staked_attribute |
| 66 | "No" // interpreted as UTF8 string | vector<u8> | Value | create_duck_nftupdate_staked_attribute |
| 67 | "Genesis Batch" // interpreted as UTF8 string | vector<u8> | Value | get_batch_name |
| 68 | "Batch #" // interpreted as UTF8 string | vector<u8> | Value | get_batch_name |
| 69 | "0" // interpreted as UTF8 string | vector<u8> | Value | u64_to_stringupdate_death_attributes |
| 70 | "85%" // interpreted as UTF8 string | vector<u8> | Value | get_duck_stats |
| 71 | "7x" // interpreted as UTF8 string | vector<u8> | Value | get_duck_stats |
| 72 | "60%" // interpreted as UTF8 string | vector<u8> | Value | get_duck_stats |
| 73 | "5x" // interpreted as UTF8 string | vector<u8> | Value | get_duck_stats |
| 74 | "50%" // interpreted as UTF8 string | vector<u8> | Value | get_duck_stats |
| 75 | "3x" // interpreted as UTF8 string | vector<u8> | Value | get_duck_stats |
| 76 | "40%" // interpreted as UTF8 string | vector<u8> | Value | get_duck_stats |
| 77 | "1x" // interpreted as UTF8 string | vector<u8> | Value | get_duck_stats |
| 78 | "Golden" // interpreted as UTF8 string | vector<u8> | Value | get_rarity_name |
| 79 | "King" // interpreted as UTF8 string | vector<u8> | Value | get_rarity_name |
| 80 | "Queen" // interpreted as UTF8 string | vector<u8> | Value | get_rarity_name |
| 81 | "Common" // interpreted as UTF8 string | vector<u8> | Value | get_rarity_name |
| 82 | "https://gateway.lighthouse.storage/ipfs/bafybeignzuwwl5bn2q7jv6lwkoy5cfeusjtq4mepwtbbiob3lcajnx4t3q/Golden.png" // interpreted as UTF8 string | vector<u8> | Value | get_rarity_image_url |
| 83 | "https://gateway.lighthouse.storage/ipfs/bafybeignzuwwl5bn2q7jv6lwkoy5cfeusjtq4mepwtbbiob3lcajnx4t3q/King.png" // interpreted as UTF8 string | vector<u8> | Value | get_rarity_image_url |
| 84 | "https://gateway.lighthouse.storage/ipfs/bafybeignzuwwl5bn2q7jv6lwkoy5cfeusjtq4mepwtbbiob3lcajnx4t3q/Queen.png" // interpreted as UTF8 string | vector<u8> | Value | get_rarity_image_url |
| 85 | "https://gateway.lighthouse.storage/ipfs/bafybeignzuwwl5bn2q7jv6lwkoy5cfeusjtq4mepwtbbiob3lcajnx4t3q/Common.png" // interpreted as UTF8 string | vector<u8> | Value | get_rarity_image_url |
| 86 | "Duck Dynasty is a feathery force of nature generating SHT day in, day out." // interpreted as UTF8 string | vector<u8> | Value | get_rarity_description |
| 87 | "Status" // interpreted as UTF8 string | vector<u8> | Value | update_death_attributes |
| 88 | "Frozen" // interpreted as UTF8 string | vector<u8> | Value | update_death_attributes |
| 89 | "Alive" // interpreted as UTF8 string | vector<u8> | Value | update_death_attributes |
| 90 | "Bones" // interpreted as UTF8 string | vector<u8> | Value | update_death_attributes |
| 91 | "1" // interpreted as UTF8 string | vector<u8> | Value | update_death_attributes |
| 92 | "2" // interpreted as UTF8 string | vector<u8> | Value | update_death_attributes |
| 93 | "3" // interpreted as UTF8 string | vector<u8> | Value | update_death_attributes |
| 94 | "Yes" // interpreted as UTF8 string | vector<u8> | Value | update_staked_attribute |