account-nft
Links
- Deployments: https://github.com/mars-protocol/rover/tree/master/scripts/deploy/addresses
- Types:
- Contract repo: https://github.com/mars-protocol/v2-fields-of-mars/tree/master/contracts/account-nft
- Audits: https://github.com/mars-protocol/mars-audits/tree/main/rover
InstantiateMsg
ExecuteMsg
update_config
Update config in storage. Only minter can execute.
NftConfigUpdates
accept_minter_role
Accept the proposed minter role. Only the proposed new minter can execute.
mint
Mint a new NFT to the specified user; can only be called by the contract minter.
burn
Burn an NFT the sender has access to. Will attempt to query the Credit Manager first to ensure the balance is below the config set threshold.
ExecuteMsg (cw721)
transfer_nft
Transfer is a base message to move a token to another account without triggering actions.
send_nft
Send is a base message to transfer a token to a contract and trigger an action on the receiving contract.
approve
Allows operator to transfer/send the token from the owner's account. If expiration is set, then this allowance has a time/height limit.
Expiration
revoke
Remove previously granted Approval.
approve_all
Allows operator to transfer/send any token from the owner's account. If expiration is set, then this allowance has a time/height limit.
revoke_all
Remove previously granted ApproveAll permission.
QueryMsg
config
Queries the contracts configuration.
next_id
Queries the next token ID.
QueryMsg (cw721)
owner_of
Queries the owner of the given token, error if token does not exist.
approval
Queries the operator that can access all of the owner's tokens.
approvals
Queries approvals that a token has.
all_operators
List all operators that can access all of the owner's tokens.
num_tokens
Total number of tokens issued.
contract_info
Queries top-level metadata about the contract.
nft_info
Queries metadata about one particular token, based on ERC721 Metadata JSON Schema but directly from the contract.
all_nft_info
Returns the result of both NftInfo
and OwnerOf
as one query as an optimization for clients.
tokens
Queries all tokens owned by the given address, []
if unset.
all_tokens
Lists all token_ids
controlled by the contract.
minter
Queries the minter.