MCPcopy Create free account

hub / github.com/baedrik/snip721-reference-impl / functions

Functions188 in github.com/baedrik/snip721-reference-impl

↓ 610 callersFunctionexecute
(deps: DepsMut, env: Env, info: MessageInfo, msg: ExecuteMsg)
src/contract.rs:138
↓ 165 callersFunctionload
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 callersFunctionjson_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 callersFunctionmay_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 callersFunctionquery
(deps: Deps, env: Env, msg: QueryMsg)
src/contract.rs:1703
↓ 102 callersFunctionextract_error_msg
(error: StdResult<T>)
src/unittest_handles.rs:104
↓ 53 callersMethodto_usize
Returns usize representation of the enum variant
src/state.rs:402
↓ 43 callersFunctioninit_helper_with_config
( public_token_supply: bool, public_owner: bool, enable_sealed_metadata: bool,
src/unittest_handles.rs:55
↓ 33 callersFunctionjson_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 callersFunctionsave
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 callersFunctioncheck_permission
( deps: Deps, block: &BlockInfo, token: &Token, token_id: &str, opt_sender: Option<&Canoni
src/contract.rs:3349
↓ 30 callersFunctioninit_helper_with_config
( public_token_supply: bool, public_owner: bool, enable_sealed_metadata: bool,
src/unittest_queries.rs:42
↓ 29 callersFunctionget_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 callersMethodto_u8
Returns u8 representation of the ContractStatus
src/msg.rs:1016
↓ 24 callersFunctionextract_error_msg
(error: StdResult<T>)
src/unittest_queries.rs:91
↓ 23 callersFunctioncheck_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 callersFunctioninit_helper_default
()
src/unittest_handles.rs:35
↓ 20 callersMethodinsert
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 callersMethodcontains
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 callersFunctionremove
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 callersMethodremove
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 callersFunctionget_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 callersFunctioninstantiate
( deps: DepsMut, _env: Env, info: MessageInfo, msg: InstantiateMsg, )
src/contract.rs:57
↓ 11 callersMethodnext
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 callersMethodis_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 callersMethodto_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 callersFunctionjson_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 callersFunctioncheck_perm_core
( deps: Deps, block: &BlockInfo, token: &Token, token_id: &str, opt_sender: Option<&Canoni
src/contract.rs:3400
↓ 8 callersFunctionextract_error_msg
(error: StdResult<T>)
src/unittest_royalties.rs:94
↓ 8 callersFunctioninit_helper_with_config
( public_token_supply: bool, public_owner: bool, enable_sealed_metadata: bool,
src/unittest_non_transferable.rs:48
↓ 7 callersFunctionappend_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 callersFunctionget_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 callersFunctionextract_error_msg
(error: StdResult<T>)
src/unittest_non_transferable.rs:148
↓ 6 callersMethodnum_types
returns the number of permission types
src/state.rs:411
↓ 5 callersFunctiongen_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 callersFunctionsend_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 callersFunctionstore_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 callersFunctionalter_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 callersFunctionenforce_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 callersFunctiongen_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 callersFunctionget_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 callersFunctioninit_helper_default
()
src/unittest_queries.rs:22
↓ 3 callersFunctionmint_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 callersFunctionprocess_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 callersMethodsave
Returns StdResult<()> saves the inventory count # Arguments `storage` - a mutable reference to the contract's storage
src/inventory.rs:194
↓ 3 callersFunctionset_whitelisted_approval
( deps: DepsMut, env: &Env, sender: &Addr, config: &Config, priority: u8, address: &st
src/contract.rs:1086
↓ 3 callersMethodto_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 callersFunctionapprove_revoke
( deps: DepsMut, env: &Env, sender: &Addr, config: &Config, priority: u8, spender: &st
src/contract.rs:867
↓ 2 callersFunctionburn_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 callersFunctioncheck_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 callersFunctiondossier_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 callersFunctionextract_error_msg
(error: StdResult<T>)
src/unittest_mint_run.rs:34
↓ 2 callersFunctioninit_helper_royalties
( royalty_info: Option<RoyaltyInfo>, )
src/unittest_royalties.rs:21
↓ 2 callersFunctioninit_helper_royalties_with_config
( royalty_info: Option<RoyaltyInfo>, public_token_supply: bool, public_owner: bool,
src/unittest_non_transferable.rs:98
↓ 2 callersFunctioninit_helper_royalties_with_config
( royalty_info: Option<RoyaltyInfo>, public_token_supply: bool, public_owner: bool,
src/unittest_royalties.rs:44
↓ 2 callersFunctionprocess_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_tokens
( deps: Deps, block: &BlockInfo, owner: &str, viewer: Option<&str>, viewing_key: Option<&s
src/contract.rs:2573
↓ 2 callersFunctionquery_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 callersFunctionquery_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 callersFunctionset_metadata_impl
( storage: &mut dyn Storage, token: &Token, idx: u32, prefix: &[u8], metadata: &Metadata,
src/contract.rs:3608
↓ 2 callersFunctiontransfer_impl
( deps: &mut DepsMut, block: &BlockInfo, config: &mut Config, sender: &CanonicalAddr, toke
src/contract.rs:4229
↓ 2 callersFunctionupdate_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 callersFunctionadd_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 callersFunctionbatch_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 callersFunctionbatch_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 callersFunctionbatch_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 callersFunctionbatch_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 callersFunctionbatch_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 callersFunctionburn_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 callersFunctionchange_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 callersFunctioncreate_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 callersFunctionextract_log
(resp: StdResult<Response>)
src/unittest_handles.rs:114
↓ 1 callersFunctionget_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 callersFunctioninit_helper
()
src/unittest_mint_run.rs:14
↓ 1 callersFunctioninit_helper_default
()
src/unittest_non_transferable.rs:28
↓ 1 callersMethodinto_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 callersFunctionmake_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 callersFunctionmint
( deps: DepsMut, env: &Env, sender: &Addr, config: &mut Config, priority: u8, token_id
src/contract.rs:487
↓ 1 callersFunctionmint_clones
( deps: DepsMut, env: &Env, sender: &Addr, config: &mut Config, priority: u8, mint_run
src/contract.rs:584
↓ 1 callersFunctionpermit_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 callersFunctionquery_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 callersFunctionquery_config
Returns StdResult<Binary> displaying the contract's configuration # Arguments `storage` - a reference to the contract's storage
src/contract.rs:2041
↓ 1 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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 callersFunctionquery_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