- Deployments: https://github.com/mars-protocol/v2-fields-of-mars/tree/master/scripts/deploy/addresses
- 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
Update config in storage. Only minter can execute.
Accept the proposed minter role. Only the proposed new minter can execute.
Mint a new NFT to the specified user; can only be called by the contract minter.
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.
Transfer is a base message to move a token to another account without triggering actions.
Send is a base message to transfer a token to a contract and trigger an action on the receiving contract.
Allows operator to transfer/send the token from the owner's account. If expiration is set, then this allowance has a time/height limit.
Remove previously granted Approval.
Allows operator to transfer/send any token from the owner's account. If expiration is set, then this allowance has a time/height limit.
Remove previously granted ApproveAll permission.
Queries the contracts configuration.
Queries the next token ID.
Queries the owner of the given token, error if token does not exist.
Queries the operator that can access all of the owner's tokens.
Queries approvals that a token has.
List all operators that can access all of the owner's tokens.
Total number of tokens issued.
Queries top-level metadata about the contract.
Queries metadata about one particular token, based on ERC721 Metadata JSON Schema but directly from the contract.
Returns the result of both
OwnerOf as one query as an optimization for clients.
Queries all tokens owned by the given address,
 if unset.
token_ids controlled by the contract.
Queries the minter.