Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baedrik/snip721-reference-impl
/ functions
Functions
188 in github.com/baedrik/snip721-reference-impl
⨍
Functions
188
◇
Types & classes
59
↓ 610 callers
Function
execute
(deps: DepsMut, env: Env, info: MessageInfo, msg: ExecuteMsg)
src/contract.rs:138
↓ 165 callers
Function
load
Returns StdResult<T> from retrieving the item with the specified key. Returns a StdError::NotFound if there is no item with that key # Arguments `s
src/state.rs:463
↓ 137 callers
Function
json_load
Returns StdResult<T> from retrieving the item with the specified key using Json (de)serialization because bincode2 annoyingly uses a float op when des
src/state.rs:506
↓ 133 callers
Function
may_load
Returns StdResult<Option<T>> from retrieving the item with the specified key. Returns Ok(None) if there is no item with that key # Arguments `storag
src/state.rs:478
↓ 131 callers
Function
query
(deps: Deps, env: Env, msg: QueryMsg)
src/contract.rs:1703
↓ 102 callers
Function
extract_error_msg
(error: StdResult<T>)
src/unittest_handles.rs:104
↓ 53 callers
Method
to_usize
Returns usize representation of the enum variant
src/state.rs:402
↓ 43 callers
Function
init_helper_with_config
( public_token_supply: bool, public_owner: bool, enable_sealed_metadata: bool,
src/unittest_handles.rs:55
↓ 33 callers
Function
json_may_load
Returns StdResult<Option<T>> from retrieving the item with the specified key using Json (de)serialization because bincode2 annoyingly uses a float op
src/state.rs:522
↓ 32 callers
Function
save
Returns StdResult<()> resulting from saving an item to storage # Arguments `storage` - a mutable reference to the storage this item should go to `ke
src/state.rs:441
↓ 30 callers
Function
check_permission
( deps: Deps, block: &BlockInfo, token: &Token, token_id: &str, opt_sender: Option<&Canoni
src/contract.rs:3349
↓ 30 callers
Function
init_helper_with_config
( public_token_supply: bool, public_owner: bool, enable_sealed_metadata: bool,
src/unittest_queries.rs:42
↓ 29 callers
Function
get_txs
Returns StdResult<(Vec<Tx>, u64)> of the txs to display and the total count of txs # Arguments `api` - a reference to the Api used to convert human
src/state.rs:353
↓ 28 callers
Method
to_u8
Returns u8 representation of the ContractStatus
src/msg.rs:1016
↓ 24 callers
Function
extract_error_msg
(error: StdResult<T>)
src/unittest_queries.rs:91
↓ 23 callers
Function
check_status
Returns StdResult<()> that will error if the priority level of the action is not equal to or greater than the current contract status level # Argumen
src/contract.rs:3587
↓ 21 callers
Function
init_helper_default
()
src/unittest_handles.rs:35
↓ 20 callers
Method
insert
Returns StdResult<()> adds a token to the inventory # Arguments `storage` - a mutable reference to the contract's storage `token_idx` - the token's
src/inventory.rs:52
↓ 15 callers
Method
contains
Returns StdResult<bool> returns true if the inventory contains the input token_idx # Arguments `storage` - a reference to the contract's storage `t
src/inventory.rs:164
↓ 15 callers
Function
remove
Removes an item from storage # Arguments `storage` - a mutable reference to the storage this item is in `key` - a byte slice representing the key th
src/state.rs:452
↓ 15 callers
Method
remove
Returns StdResult<()> removes a token from the inventory # Arguments `storage` - a mutable reference to the contract's storage `token_idx` - the to
src/inventory.rs:95
↓ 13 callers
Function
get_token
Returns StdResult<(Token, u32)> returns the specified token and its identifier index # Arguments `storage` - a reference to contract's storage `tok
src/contract.rs:3558
↓ 13 callers
Function
instantiate
( deps: DepsMut, _env: Env, info: MessageInfo, msg: InstantiateMsg, )
src/contract.rs:57
↓ 11 callers
Method
next
Returns StdResult<Option<u32>> returns the next token_idx in the inventory # Arguments `storage` - a reference to the contract's storage
src/inventory.rs:253
↓ 10 callers
Method
is_expired
Returns bool, true if Expiration has expired # Arguments `block` - a reference to the BlockInfo containing the time to compare the Expiration to
src/expiration.rs:42
↓ 10 callers
Method
to_set
Returns StdResult<HashSet<u32>> creates a HashSet from the Inventory # Arguments `storage` - a reference to the contract's storage
src/inventory.rs:142
↓ 9 callers
Function
json_save
Returns StdResult<()> resulting from saving an item to storage using Json (de)serialization because bincode2 annoyingly uses a float op when deseriali
src/state.rs:493
↓ 8 callers
Function
check_perm_core
( deps: Deps, block: &BlockInfo, token: &Token, token_id: &str, opt_sender: Option<&Canoni
src/contract.rs:3400
↓ 8 callers
Function
extract_error_msg
(error: StdResult<T>)
src/unittest_royalties.rs:94
↓ 8 callers
Function
init_helper_with_config
( public_token_supply: bool, public_owner: bool, enable_sealed_metadata: bool,
src/unittest_non_transferable.rs:48
↓ 7 callers
Function
append_tx_for_addr
Returns StdResult<()> after saving tx id # Arguments `storage` - a mutable reference to the storage this item should go to `tx_id` - the tx id to st
src/state.rs:335
↓ 7 callers
Function
get_querier
Returns StdResult<Option<CanonicalAddr>> from determining the querying address (if possible) either from a permit validation or a ViewerInfo # Argume
src/contract.rs:4731
↓ 6 callers
Function
extract_error_msg
(error: StdResult<T>)
src/unittest_non_transferable.rs:148
↓ 6 callers
Method
num_types
returns the number of permission types
src/state.rs:411
↓ 5 callers
Function
gen_snip721_approvals
Returns StdResult<(Vec<Snip721Approval>, Option<Expiration>, Option<Expiration>)> which is the list of approvals, an optional Expiration if ownership
src/contract.rs:3252
↓ 4 callers
Function
send_list
Returns StdResult<Vec<CosmosMsg>> transfer or sends a list of tokens and returns a list of ReceiveNft callbacks if applicable # Arguments `deps` -
src/contract.rs:4335
↓ 4 callers
Function
store_royalties
Returns StdResult<()> verifies the royalty information is valid and if so, stores the royalty info for the token or as default # Arguments `storage
src/contract.rs:4674
↓ 3 callers
Function
alter_perm_list
Returns bool adds or removes permissions for an address based on the alterations table # Arguments `perms` - a mutable reference to the list of per
src/contract.rs:4011
↓ 3 callers
Function
enforce_metadata_field_exclusion
Returns StdResult<()> makes sure that Metadata does not have both `token_uri` and `extension` # Arguments `metadata` - a reference to Metadata
src/contract.rs:4714
↓ 3 callers
Function
gen_cw721_approvals
Returns StdResult<()> resulting from generating the list of Approvals # Arguments `api` - reference to the Api used to convert canonical and human a
src/contract.rs:3207
↓ 3 callers
Function
get_token_if_permitted
Returns StdResult<(Token, u32)> returns the token information if the sender has authorization # Arguments `deps` - a reference to Extern containing
src/contract.rs:3513
↓ 3 callers
Function
init_helper_default
()
src/unittest_queries.rs:22
↓ 3 callers
Function
mint_list
Returns <Vec<String>> mints a list of new tokens and returns the ids of the tokens minted # Arguments `deps` - a mutable reference to Extern contai
src/contract.rs:4527
↓ 3 callers
Function
process_accesses
Returns StdResult<()> sets specified permissions for an address # Arguments `storage` - a mutable reference to the contract's storage `env` - a ref
src/contract.rs:3688
↓ 3 callers
Method
save
Returns StdResult<()> saves the inventory count # Arguments `storage` - a mutable reference to the contract's storage
src/inventory.rs:194
↓ 3 callers
Function
set_whitelisted_approval
( deps: DepsMut, env: &Env, sender: &Addr, config: &Config, priority: u8, address: &st
src/contract.rs:1086
↓ 3 callers
Method
to_human
Returns StdResult<MintRunInfo> from creating a MintRunInfo from a StoredMintRunInfo # Arguments `api` - a reference to the Api used to convert human
src/mint_run.rs:56
↓ 2 callers
Function
approve_revoke
( deps: DepsMut, env: &Env, sender: &Addr, config: &Config, priority: u8, spender: &st
src/contract.rs:867
↓ 2 callers
Function
burn_list
Returns StdResult<()> burns a list of tokens # Arguments `deps` - a mutable reference to Extern containing all the contract's external dependencies
src/contract.rs:4426
↓ 2 callers
Function
check_view_supply
Returns StdResult<()> returns Ok if authorized to view token supply, Err otherwise # Arguments `deps` - a reference to Extern containing all the co
src/contract.rs:3310
↓ 2 callers
Function
dossier_list
Returns StdResult<Vec<BatchNftDossierElement>> of all the token information the querier is permitted to view for multiple tokens. This may include th
src/contract.rs:4778
↓ 2 callers
Function
extract_error_msg
(error: StdResult<T>)
src/unittest_mint_run.rs:34
↓ 2 callers
Function
init_helper_royalties
( royalty_info: Option<RoyaltyInfo>, )
src/unittest_royalties.rs:21
↓ 2 callers
Function
init_helper_royalties_with_config
( royalty_info: Option<RoyaltyInfo>, public_token_supply: bool, public_owner: bool,
src/unittest_non_transferable.rs:98
↓ 2 callers
Function
init_helper_royalties_with_config
( royalty_info: Option<RoyaltyInfo>, public_token_supply: bool, public_owner: bool,
src/unittest_royalties.rs:44
↓ 2 callers
Function
process_cw721_owner_of
Returns StdResult<(Option<Addr>, Vec<Cw721Approval>, u32)> which is the owner, list of transfer approvals, and token index of the request token # Arg
src/contract.rs:3112
↓ 2 callers
Function
query_all_nft_info
Returns StdResult<Binary> displaying response of both the OwnerOf and NftInfo queries # Arguments `deps` - a reference to Extern containing all the
src/contract.rs:2262
↓ 2 callers
Function
query_all_tokens
Returns StdResult<Binary> displaying the list of tokens that the contract controls # Arguments `deps` - a reference to Extern containing all the con
src/contract.rs:2102
↓ 2 callers
Function
query_approved_for_all
Returns StdResult<Binary> displaying the list of all addresses that have approval to transfer all of the owner's tokens. Only the owner's viewing key
src/contract.rs:2514
↓ 2 callers
Function
query_batch_nft_dossier
Returns StdResult<Binary> displaying all the token information the querier is permitted to view of multiple tokens. This may include the owner, the p
src/contract.rs:2341
↓ 2 callers
Function
query_inventory_approvals
Returns StdResult<Binary> displaying the inventory-wide approvals for a specified address # Arguments `deps` - a reference to Extern containing all
src/contract.rs:2453
↓ 2 callers
Function
query_nft_dossier
Returns StdResult<Binary> displaying all the token information the querier is permitted to view. This may include the owner, the public metadata, the
src/contract.rs:2291
↓ 2 callers
Function
query_num_owner_tokens
Returns StdResult<Binary> displaying the number of tokens that the querier has permission to view ownership and that belong to the specified address
src/contract.rs:2746
↓ 2 callers
Function
query_num_tokens
Returns StdResult<Binary> displaying the number of tokens the contract controls # Arguments `deps` - a reference to Extern containing all the contra
src/contract.rs:2080
↓ 2 callers
Function
query_owner_of
Returns StdResult<Binary> displaying the owner of the input token if the requester is authorized to view it and the transfer approvals on this token i
src/contract.rs:2150
↓ 2 callers
Function
query_private_meta
Returns StdResult<Binary> displaying the private metadata of a token if permitted to view it # Arguments `deps` - a reference to Extern containing a
src/contract.rs:2216
↓ 2 callers
Function
query_royalty
Returns StdResult<Binary> displaying either a token's royalty information or the contract's default royalty information if no token_id is specified #
src/contract.rs:1975
↓ 2 callers
Function
query_token_approvals
Returns StdResult<Binary> displaying the approvals in place for a specified token # Arguments `deps` - a reference to Extern containing all the cont
src/contract.rs:2364
↓ 2 callers
Function
query_token_prep
Returns StdResult<TokenQueryInfo> after performing common preparations for authenticated token queries # Arguments `deps` - a reference to Extern co
src/contract.rs:3072
↓ 2 callers
Function
query_tokens
( deps: Deps, block: &BlockInfo, owner: &str, viewer: Option<&str>, viewing_key: Option<&s
src/contract.rs:2573
↓ 2 callers
Function
query_transactions
Returns StdResult<Binary> displaying an optionally paginated list of all transactions involving a specified address, displayed in reverse chronologica
src/contract.rs:2947
↓ 2 callers
Function
query_verify_approval
Returns StdResult<Binary> after verifying that the specified address has transfer approval for all the listed tokens. A token will count as unapprove
src/contract.rs:2977
↓ 2 callers
Function
set_metadata_impl
( storage: &mut dyn Storage, token: &Token, idx: u32, prefix: &[u8], metadata: &Metadata,
src/contract.rs:3608
↓ 2 callers
Function
transfer_impl
( deps: &mut DepsMut, block: &BlockInfo, config: &mut Config, sender: &CanonicalAddr, toke
src/contract.rs:4229
↓ 2 callers
Function
update_owner_inventory
Returns StdResult<()> update owners' inventories and AuthLists to reflect recent burns/transfers # Arguments `storage` - a mutable reference to the
src/contract.rs:4179
↓ 1 callers
Function
add_minters
Returns StdResult<Response> add a list of minters # Arguments `deps` - mutable reference to Extern containing all the contract's external dependenc
src/contract.rs:1469
↓ 1 callers
Function
batch_burn_nft
Returns StdResult<Response> burns many tokens # Arguments `deps` - mutable reference to Extern containing all the contract's external dependencies
src/contract.rs:1177
↓ 1 callers
Function
batch_mint
Returns StdResult<Response> mints many tokens # Arguments `deps` - mutable reference to Extern containing all the contract's external dependencies
src/contract.rs:541
↓ 1 callers
Function
batch_receive_nft_msg
Returns a StdResult<CosmosMsg> used to call a registered contract's BatchReceiveNft # Arguments `sender` - the address that is sending the token `fr
src/receiver.rs:92
↓ 1 callers
Function
batch_send_nft
Returns StdResult<Response> sends tokens to contracts, and calls those contracts' ReceiveNft. Will error if any contract has not registered its Rece
src/contract.rs:1305
↓ 1 callers
Function
batch_transfer_nft
Returns StdResult<Response> transfer many tokens # Arguments `deps` - mutable reference to Extern containing all the contract's external dependenci
src/contract.rs:1238
↓ 1 callers
Function
burn_nft
Returns StdResult<Response> burns a token # Arguments `deps` - mutable reference to Extern containing all the contract's external dependencies `env
src/contract.rs:1206
↓ 1 callers
Function
change_admin
Returns StdResult<Response> change the admin address # Arguments `deps` - mutable reference to Extern containing all the contract's external depend
src/contract.rs:1612
↓ 1 callers
Function
create_key
Returns StdResult<Response> creates a viewing key # Arguments `deps` - mutable reference to Extern containing all the contract's external dependenc
src/contract.rs:1415
↓ 1 callers
Function
extract_log
(resp: StdResult<Response>)
src/unittest_handles.rs:114
↓ 1 callers
Function
get_owner_of_resp
Returns StdResult<(Addr, Vec<Cw721Approval>, Vec<Cw721Approval>)> which is the owner, token transfer Approval list, and Approval list of everyone that
src/contract.rs:3159
↓ 1 callers
Function
init_helper
()
src/unittest_mint_run.rs:14
↓ 1 callers
Function
init_helper_default
()
src/unittest_non_transferable.rs:28
↓ 1 callers
Method
into_humanized
Returns StdResult<Tx> from converting a stored tx to a displayable tx # Arguments `api` - a reference to the Api used to convert human and canonical
src/state.rs:143
↓ 1 callers
Function
make_owner_private
Returns StdResult<Response> makes an address' token ownership private # Arguments `deps` - mutable reference to Extern containing all the contract'
src/contract.rs:961
↓ 1 callers
Function
mint
( deps: DepsMut, env: &Env, sender: &Addr, config: &mut Config, priority: u8, token_id
src/contract.rs:487
↓ 1 callers
Function
mint_clones
( deps: DepsMut, env: &Env, sender: &Addr, config: &mut Config, priority: u8, mint_run
src/contract.rs:584
↓ 1 callers
Function
permit_queries
Returns StdResult<Binary> from validating a permit and then using its creator's address when performing the specified query # Arguments `deps` - a r
src/contract.rs:1851
↓ 1 callers
Function
query_code_hash
Returns StdResult<Binary> displaying the registered code hash of the specified contract if it has registered and whether the contract implements Batch
src/contract.rs:3031
↓ 1 callers
Function
query_config
Returns StdResult<Binary> displaying the contract's configuration # Arguments `storage` - a reference to the contract's storage
src/contract.rs:2041
↓ 1 callers
Function
query_contract_creator
Returns StdResult<Binary> displaying the contract's creator # Arguments `deps` - a reference to Extern containing all the contract's external depend
src/contract.rs:1944
↓ 1 callers
Function
query_contract_info
Returns StdResult<Binary> displaying the contract's name and symbol # Arguments `storage` - a reference to the contract's storage
src/contract.rs:1956
↓ 1 callers
Function
query_is_transferable
Returns StdResult<Binary> displaying true if the token is transferable # Arguments `storage` - a reference to the contract's storage
src/contract.rs:2914
↓ 1 callers
Function
query_is_unwrapped
Returns StdResult<Binary> displaying true if the token has been unwrapped. If sealed metadata is not enabled, all tokens are considered unwrapped #
src/contract.rs:2887
↓ 1 callers
Function
query_minters
Returns StdResult<Binary> displaying the list of authorized minters # Arguments `deps` - a reference to Extern containing all the contract's externa
src/contract.rs:2062
next →
1–100 of 188, ranked by callers