{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Cw721ExecuteMsg",
"oneOf": [
{
"description": "Deprecated: use UpdateMinterOwnership instead! Will be removed in next release!",
"deprecated": true,
"type": "object",
"required": [
"update_ownership"
],
"properties": {
"update_ownership": {
"$ref": "#/definitions/Action"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"update_minter_ownership"
],
"properties": {
"update_minter_ownership": {
"$ref": "#/definitions/Action"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"update_creator_ownership"
],
"properties": {
"update_creator_ownership": {
"$ref": "#/definitions/Action"
}
},
"additionalProperties": false
},
{
"description": "The creator is the only one eligible to update `CollectionInfo`.",
"type": "object",
"required": [
"update_collection_info"
],
"properties": {
"update_collection_info": {
"type": "object",
"required": [
"collection_info"
],
"properties": {
"collection_info": {
"$ref": "#/definitions/CollectionInfoMsg_for_Nullable_CollectionExtension_for_RoyaltyInfo"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Transfer is a base message to move a token to another account without triggering actions",
"type": "object",
"required": [
"transfer_nft"
],
"properties": {
"transfer_nft": {
"type": "object",
"required": [
"recipient",
"token_id"
],
"properties": {
"recipient": {
"type": "string"
},
"token_id": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Send is a base message to transfer a token to a contract and trigger an action on the receiving contract.",
"type": "object",
"required": [
"send_nft"
],
"properties": {
"send_nft": {
"type": "object",
"required": [
"contract",
"msg",
"token_id"
],
"properties": {
"contract": {
"type": "string"
},
"msg": {
"$ref": "#/definitions/Binary"
},
"token_id": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Allows operator to transfer / send the token from the owner's account. If expiration is set, then this allowance has a time/height limit",
"type": "object",
"required": [
"approve"
],
"properties": {
"approve": {
"type": "object",
"required": [
"spender",
"token_id"
],
"properties": {
"expires": {
"anyOf": [
{
"$ref": "#/definitions/Expiration"
},
{
"type": "null"
}
]
},
"spender": {
"type": "string"
},
"token_id": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Remove previously granted Approval",
"type": "object",
"required": [
"revoke"
],
"properties": {
"revoke": {
"type": "object",
"required": [
"spender",
"token_id"
],
"properties": {
"spender": {
"type": "string"
},
"token_id": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Allows operator to transfer / send any token from the owner's account. If expiration is set, then this allowance has a time/height limit",
"type": "object",
"required": [
"approve_all"
],
"properties": {
"approve_all": {
"type": "object",
"required": [
"operator"
],
"properties": {
"expires": {
"anyOf": [
{
"$ref": "#/definitions/Expiration"
},
{
"type": "null"
}
]
},
"operator": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Remove previously granted ApproveAll permission",
"type": "object",
"required": [
"revoke_all"
],
"properties": {
"revoke_all": {
"type": "object",
"required": [
"operator"
],
"properties": {
"operator": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Mint a new NFT, can only be called by the contract minter",
"type": "object",
"required": [
"mint"
],
"properties": {
"mint": {
"type": "object",
"required": [
"owner",
"token_id"
],
"properties": {
"extension": {
"description": "Any custom extension used by this contract",
"anyOf": [
{
"$ref": "#/definitions/NftExtensionMsg"
},
{
"type": "null"
}
]
},
"owner": {
"description": "The owner of the newly minter NFT",
"type": "string"
},
"token_id": {
"description": "Unique ID of the NFT",
"type": "string"
},
"token_uri": {
"description": "Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Burn an NFT the sender has access to",
"type": "object",
"required": [
"burn"
],
"properties": {
"burn": {
"type": "object",
"required": [
"token_id"
],
"properties": {
"token_id": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Add an additional minter. Only the primary minter (manager) can call this.",
"type": "object",
"required": [
"add_minter"
],
"properties": {
"add_minter": {
"type": "object",
"required": [
"minter"
],
"properties": {
"minter": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Remove an additional minter. Only the primary minter (manager) can call this.",
"type": "object",
"required": [
"remove_minter"
],
"properties": {
"remove_minter": {
"type": "object",
"required": [
"minter"
],
"properties": {
"minter": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Custom msg execution. This is a no-op in default implementation.",
"type": "object",
"required": [
"update_extension"
],
"properties": {
"update_extension": {
"type": "object",
"required": [
"msg"
],
"properties": {
"msg": {
"$ref": "#/definitions/Empty"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "The creator is the only one eligible to update NFT's token uri and onchain metadata (`NftInfo.extension`). NOTE: approvals and owner are not affected by this call, since they belong to the NFT owner.",
"type": "object",
"required": [
"update_nft_info"
],
"properties": {
"update_nft_info": {
"type": "object",
"required": [
"token_id"
],
"properties": {
"extension": {
"anyOf": [
{
"$ref": "#/definitions/NftExtensionMsg"
},
{
"type": "null"
}
]
},
"token_id": {
"type": "string"
},
"token_uri": {
"description": "NOTE: Empty string is handled as None",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Sets address to send withdrawn fees to. Only owner can call this.",
"type": "object",
"required": [
"set_withdraw_address"
],
"properties": {
"set_withdraw_address": {
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Removes the withdraw address, so fees are sent to the contract. Only owner can call this.",
"type": "object",
"required": [
"remove_withdraw_address"
],
"properties": {
"remove_withdraw_address": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Withdraw from the contract to the given address. Anyone can call this, which is okay since withdraw address has been set by owner.",
"type": "object",
"required": [
"withdraw_funds"
],
"properties": {
"withdraw_funds": {
"type": "object",
"required": [
"amount"
],
"properties": {
"amount": {
"$ref": "#/definitions/Coin"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
"Action": {
"description": "Actions that can be taken to alter the contract's ownership",
"oneOf": [
{
"description": "Propose to transfer the contract's ownership to another account, optionally with an expiry time.\n\nCan only be called by the contract's current owner.\n\nAny existing pending ownership transfer is overwritten.",
"type": "object",
"required": [
"transfer_ownership"
],
"properties": {
"transfer_ownership": {
"type": "object",
"required": [
"new_owner"
],
"properties": {
"expiry": {
"anyOf": [
{
"$ref": "#/definitions/Expiration"
},
{
"type": "null"
}
]
},
"new_owner": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Accept the pending ownership transfer.\n\nCan only be called by the pending owner.",
"type": "string",
"enum": [
"accept_ownership"
]
},
{
"description": "Give up the contract's ownership and the possibility of appointing a new owner.\n\nCan only be invoked by the contract's current owner.\n\nAny existing pending ownership transfer is canceled.",
"type": "string",
"enum": [
"renounce_ownership"
]
}
]
},
"Addr": {
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
"type": "string"
},
"Binary": {
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"Coin": {
"type": "object",
"required": [
"amount",
"denom"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"denom": {
"type": "string"
}
},
"additionalProperties": false
},
"CollectionExtension_for_RoyaltyInfo": {
"type": "object",
"required": [
"description",
"image"
],
"properties": {
"banner_url": {
"type": [
"string",
"null"
]
},
"description": {
"type": "string"
},
"explicit_content": {
"type": [
"boolean",
"null"
]
},
"external_link": {
"type": [
"string",
"null"
]
},
"image": {
"type": "string"
},
"royalty_info": {
"anyOf": [
{
"$ref": "#/definitions/RoyaltyInfo"
},
{
"type": "null"
}
]
},
"start_trading_time": {
"anyOf": [
{
"$ref": "#/definitions/Timestamp"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"CollectionInfoMsg_for_Nullable_CollectionExtension_for_RoyaltyInfo": {
"type": "object",
"properties": {
"extension": {
"anyOf": [
{
"$ref": "#/definitions/CollectionExtension_for_RoyaltyInfo"
},
{
"type": "null"
}
]
},
"name": {
"type": [
"string",
"null"
]
},
"symbol": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"Decimal": {
"description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)",
"type": "string"
},
"Empty": {
"description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressible in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
"type": "object",
"additionalProperties": false
},
"Expiration": {
"description": "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)",
"oneOf": [
{
"description": "AtHeight will expire when `env.block.height` >= height",
"type": "object",
"required": [
"at_height"
],
"properties": {
"at_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
},
{
"description": "AtTime will expire when `env.block.time` >= time",
"type": "object",
"required": [
"at_time"
],
"properties": {
"at_time": {
"$ref": "#/definitions/Timestamp"
}
},
"additionalProperties": false
},
{
"description": "Never will never expire. Used to express the empty variant",
"type": "object",
"required": [
"never"
],
"properties": {
"never": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"NftExtensionMsg": {
"type": "object",
"properties": {
"animation_url": {
"description": "NOTE: Empty string is handled as None",
"type": [
"string",
"null"
]
},
"attributes": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Trait"
}
},
"background_color": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"external_url": {
"description": "NOTE: Empty string is handled as None",
"type": [
"string",
"null"
]
},
"image": {
"description": "NOTE: Empty string is handled as None",
"type": [
"string",
"null"
]
},
"image_data": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"youtube_url": {
"description": "NOTE: Empty string is handled as None",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"RoyaltyInfo": {
"type": "object",
"required": [
"payment_address",
"share"
],
"properties": {
"payment_address": {
"$ref": "#/definitions/Addr"
},
"share": {
"$ref": "#/definitions/Decimal"
}
},
"additionalProperties": false
},
"Timestamp": {
"description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.\n\n## Examples\n\n``` # use cosmwasm_std::Timestamp; let ts = Timestamp::from_nanos(1_000_000_202); assert_eq!(ts.nanos(), 1_000_000_202); assert_eq!(ts.seconds(), 1); assert_eq!(ts.subsec_nanos(), 202);\n\nlet ts = ts.plus_seconds(2); assert_eq!(ts.nanos(), 3_000_000_202); assert_eq!(ts.seconds(), 3); assert_eq!(ts.subsec_nanos(), 202); ```",
"allOf": [
{
"$ref": "#/definitions/Uint64"
}
]
},
"Trait": {
"type": "object",
"required": [
"trait_type",
"value"
],
"properties": {
"display_type": {
"type": [
"string",
"null"
]
},
"trait_type": {
"type": "string"
},
"value": {
"type": "string"
}
},
"additionalProperties": false
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
},
"Uint64": {
"description": "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```",
"type": "string"
}
}
}