cw721 0.6.0-beta2

Definition and types for the CosmWasm-721 NFT interface
Documentation
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "OwnerOfResponse",
  "type": "object",
  "required": [
    "approvals",
    "owner"
  ],
  "properties": {
    "approvals": {
      "description": "If set this address is approved to transfer/send the token as well",
      "type": "array",
      "items": {
        "$ref": "#/definitions/Approval"
      }
    },
    "owner": {
      "description": "Owner of the token",
      "type": "string"
    }
  },
  "definitions": {
    "Approval": {
      "type": "object",
      "required": [
        "expires",
        "spender"
      ],
      "properties": {
        "expires": {
          "description": "When the Approval expires (maybe Expiration::never)",
          "allOf": [
            {
              "$ref": "#/definitions/Expiration"
            }
          ]
        },
        "spender": {
          "description": "Account that can transfer/send the token",
          "type": "string"
        }
      }
    },
    "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)",
      "anyOf": [
        {
          "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": {
              "type": "integer",
              "format": "uint64",
              "minimum": 0.0
            }
          },
          "additionalProperties": false
        },
        {
          "description": "Never will never expire. Used to express the empty variant",
          "type": "object",
          "required": [
            "never"
          ],
          "properties": {
            "never": {
              "type": "object"
            }
          },
          "additionalProperties": false
        }
      ]
    }
  }
}