cosmwasm-std 0.9.2

Standard library for Wasm based smart contracts on Cosmos blockchains
Documentation
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Env",
  "type": "object",
  "required": [
    "block",
    "contract",
    "message"
  ],
  "properties": {
    "block": {
      "$ref": "#/definitions/BlockInfo"
    },
    "contract": {
      "$ref": "#/definitions/ContractInfo"
    },
    "message": {
      "$ref": "#/definitions/MessageInfo"
    }
  },
  "definitions": {
    "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>",
      "type": "string"
    },
    "BlockInfo": {
      "type": "object",
      "required": [
        "chain_id",
        "height",
        "time"
      ],
      "properties": {
        "chain_id": {
          "type": "string"
        },
        "height": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0.0
        },
        "time": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0.0
        }
      }
    },
    "CanonicalAddr": {
      "$ref": "#/definitions/Binary"
    },
    "Coin": {
      "type": "object",
      "required": [
        "amount",
        "denom"
      ],
      "properties": {
        "amount": {
          "$ref": "#/definitions/Uint128"
        },
        "denom": {
          "type": "string"
        }
      }
    },
    "ContractInfo": {
      "type": "object",
      "required": [
        "address"
      ],
      "properties": {
        "address": {
          "$ref": "#/definitions/CanonicalAddr"
        }
      }
    },
    "MessageInfo": {
      "type": "object",
      "required": [
        "sender",
        "sent_funds"
      ],
      "properties": {
        "sender": {
          "description": "The `sender` field from the wasm/store-code, wasm/instantiate or wasm/execute message. You can think of this as the address that initiated the action (i.e. the message). What that means exactly heavily depends on the application.\n\nThe x/wasm module ensures that the sender address signed the transaction. Additional signers of the transaction that are either needed for other messages or contain unnecessary signatures are not propagated into the contract.\n\nThere is a discussion to open up this field to multiple initiators, which you're welcome to join if you have a specific need for that feature: https://github.com/CosmWasm/cosmwasm/issues/293",
          "allOf": [
            {
              "$ref": "#/definitions/CanonicalAddr"
            }
          ]
        },
        "sent_funds": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Coin"
          }
        }
      }
    },
    "Uint128": {
      "type": "string"
    }
  }
}