Closed j0nl1 closed 1 year ago
can you possibly provide a JSON schema for this?
deps:
cosmwasm-schema = { version = "1.1.4" }
"@cosmwasm/ts-codegen": "^0.21.1"
absolutely, thank you, this is the JSON Schema:
{
"contract_name": "vectis-dao-tunnel",
"contract_version": "0.1.0",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "InstantiateMsg",
"type": "object",
"required": [
"denom",
"govec_minter"
],
"properties": {
"denom": {
"type": "string"
},
"govec_minter": {
"description": "Govec contract address",
"type": "string"
},
"init_ibc_transfer_mods": {
"anyOf": [
{
"$ref": "#/definitions/IbcTransferChannels"
},
{
"type": "null"
}
]
},
"init_remote_tunnels": {
"description": "Any remote tunnel endpoints to be included initially No channels has been established",
"anyOf": [
{
"$ref": "#/definitions/RemoteTunnels"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false,
"definitions": {
"IbcTransferChannels": {
"description": "Returned when IBC_TRANSFER_MODULES are queried",
"type": "object",
"required": [
"endpoints"
],
"properties": {
"endpoints": {
"description": "(connection_id, channel_id) The channel_id are for channel already established",
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
],
"maxItems": 2,
"minItems": 2
}
}
},
"additionalProperties": false
},
"RemoteTunnels": {
"type": "object",
"required": [
"tunnels"
],
"properties": {
"tunnels": {
"description": "These are endpoints to other remote-tunnel contracts (connection_id, port_id)",
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
],
"maxItems": 2,
"minItems": 2
}
}
},
"additionalProperties": false
}
}
},
"execute": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ExecuteMsg",
"oneOf": [
{
"description": "Adds approved ibc controller contract, i.e. remote tunnels",
"type": "object",
"required": [
"add_approved_controller"
],
"properties": {
"add_approved_controller": {
"type": "object",
"required": [
"connection_id",
"port_id"
],
"properties": {
"connection_id": {
"description": "The remote chain's light client identifier",
"type": "string"
},
"port_id": {
"description": "The port of the remote-tunnel in the IbcChannel endpoint",
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"remove_approved_controller"
],
"properties": {
"remove_approved_controller": {
"type": "object",
"required": [
"connection_id",
"port_id"
],
"properties": {
"connection_id": {
"description": "The remote chain's light client identifier",
"type": "string"
},
"port_id": {
"description": "The port of the remote-tunnel in the IbcChannel endpoint",
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"update_dao_addr"
],
"properties": {
"update_dao_addr": {
"type": "object",
"required": [
"new_addr"
],
"properties": {
"new_addr": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"update_govec_addr"
],
"properties": {
"update_govec_addr": {
"type": "object",
"required": [
"new_addr"
],
"properties": {
"new_addr": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "The connections and channel_id this chain supports and voted in by the DAO",
"type": "object",
"required": [
"update_ibc_transfer_reciever_channel"
],
"properties": {
"update_ibc_transfer_reciever_channel": {
"type": "object",
"required": [
"connection_id"
],
"properties": {
"channel_id": {
"type": [
"string",
"null"
]
},
"connection_id": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Transfer native tokens to another chain Fund amount is forward from the MessageInfo.funds",
"type": "object",
"required": [
"ibc_transfer"
],
"properties": {
"ibc_transfer": {
"type": "object",
"required": [
"receiver"
],
"properties": {
"receiver": {
"$ref": "#/definitions/Receiver"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"dispatch_action_on_remote_tunnel"
],
"properties": {
"dispatch_action_on_remote_tunnel": {
"type": "object",
"required": [
"channel_id",
"job_id",
"msg"
],
"properties": {
"channel_id": {
"description": "Sending channel_id, the local channel to the remote chain",
"type": "string"
},
"job_id": {
"description": "Identifier used in the acknowledgement message",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"msg": {
"$ref": "#/definitions/DaoTunnelPacketMsg"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
"BankMsg": {
"description": "The message types of the bank module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto",
"oneOf": [
{
"description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.",
"type": "object",
"required": [
"send"
],
"properties": {
"send": {
"type": "object",
"required": [
"amount",
"to_address"
],
"properties": {
"amount": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"to_address": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.",
"type": "object",
"required": [
"burn"
],
"properties": {
"burn": {
"type": "object",
"required": [
"amount"
],
"properties": {
"amount": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
}
}
}
},
"additionalProperties": false
}
]
},
"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"
},
"CanonicalAddr": {
"$ref": "#/definitions/Binary"
},
"ChainConfig": {
"type": "object",
"required": [
"denom"
],
"properties": {
"denom": {
"description": "Denom of the current chain",
"type": "string"
},
"remote_factory": {
"description": "The Factory that has the remote features on the local chain",
"anyOf": [
{
"$ref": "#/definitions/CanonicalAddr"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"Coin": {
"type": "object",
"required": [
"amount",
"denom"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"denom": {
"type": "string"
}
}
},
"CosmosMsg_for_Empty": {
"oneOf": [
{
"type": "object",
"required": [
"bank"
],
"properties": {
"bank": {
"$ref": "#/definitions/BankMsg"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"custom"
],
"properties": {
"custom": {
"$ref": "#/definitions/Empty"
}
},
"additionalProperties": false
},
{
"description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)",
"type": "object",
"required": [
"stargate"
],
"properties": {
"stargate": {
"type": "object",
"required": [
"type_url",
"value"
],
"properties": {
"type_url": {
"type": "string"
},
"value": {
"$ref": "#/definitions/Binary"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ibc"
],
"properties": {
"ibc": {
"$ref": "#/definitions/IbcMsg"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"wasm"
],
"properties": {
"wasm": {
"$ref": "#/definitions/WasmMsg"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"gov"
],
"properties": {
"gov": {
"$ref": "#/definitions/GovMsg"
}
},
"additionalProperties": false
}
]
},
"DaoConfig": {
"type": "object",
"required": [
"addr",
"connection_id",
"dao_tunnel_port_id"
],
"properties": {
"addr": {
"description": "DAO addr on dao chain",
"type": "string"
},
"connection_id": {
"description": "The local connection_id that is bounded to the remote chain light client This can be queried by the using the `IbcPacket` when receiving the ibc message IbcPacket.dest.channel_id and IbcPacket.dest.port_id",
"type": "string"
},
"dao_tunnel_channel": {
"description": "The channel_id to be used to call to the dao-tunnel contract on dao-chain This can be updated by the dao-tunnel forwarding message from the DAO",
"type": [
"string",
"null"
]
},
"dao_tunnel_port_id": {
"description": "The src.port_id from the connection This is bounded to the contract address on the remote chain `wasm.<contract_address>`, i.e. the dao-tunnel contract address",
"type": "string"
}
},
"additionalProperties": false
},
"DaoTunnelPacketMsg": {
"description": "The IBC Packet Msg allowed dispatched by dao-tunnel",
"oneOf": [
{
"type": "object",
"required": [
"update_dao_config"
],
"properties": {
"update_dao_config": {
"type": "object",
"required": [
"new_config"
],
"properties": {
"new_config": {
"$ref": "#/definitions/DaoConfig"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"update_chain_config"
],
"properties": {
"update_chain_config": {
"type": "object",
"required": [
"new_config"
],
"properties": {
"new_config": {
"$ref": "#/definitions/ChainConfig"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"instantiate_factory"
],
"properties": {
"instantiate_factory": {
"type": "object",
"required": [
"code_id",
"msg"
],
"properties": {
"code_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"msg": {
"$ref": "#/definitions/WalletFactoryInstantiateMsg"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"update_ibc_transfer_reciever_channel"
],
"properties": {
"update_ibc_transfer_reciever_channel": {
"type": "object",
"required": [
"connection_id"
],
"properties": {
"channel": {
"type": [
"string",
"null"
]
},
"connection_id": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Other actions that are dispatched from dao-tunnel these do not affect the state of the remote-tunnel contract i.e. staking / unstaking native tokens",
"type": "object",
"required": [
"dispatch_actions"
],
"properties": {
"dispatch_actions": {
"type": "object",
"required": [
"msgs"
],
"properties": {
"msgs": {
"type": "array",
"items": {
"$ref": "#/definitions/CosmosMsg_for_Empty"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"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 expressable 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"
},
"GovMsg": {
"oneOf": [
{
"description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.",
"type": "object",
"required": [
"vote"
],
"properties": {
"vote": {
"type": "object",
"required": [
"proposal_id",
"vote"
],
"properties": {
"proposal_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"vote": {
"$ref": "#/definitions/VoteOption"
}
}
}
},
"additionalProperties": false
}
]
},
"IbcMsg": {
"description": "These are messages in the IBC lifecycle. Only usable by IBC-enabled contracts (contracts that directly speak the IBC protocol via 6 entry points)",
"oneOf": [
{
"description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.",
"type": "object",
"required": [
"transfer"
],
"properties": {
"transfer": {
"type": "object",
"required": [
"amount",
"channel_id",
"timeout",
"to_address"
],
"properties": {
"amount": {
"description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20",
"allOf": [
{
"$ref": "#/definitions/Coin"
}
]
},
"channel_id": {
"description": "exisiting channel to send the tokens over",
"type": "string"
},
"timeout": {
"description": "when packet times out, measured on remote chain",
"allOf": [
{
"$ref": "#/definitions/IbcTimeout"
}
]
},
"to_address": {
"description": "address on the remote chain to receive these tokens",
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.",
"type": "object",
"required": [
"send_packet"
],
"properties": {
"send_packet": {
"type": "object",
"required": [
"channel_id",
"data",
"timeout"
],
"properties": {
"channel_id": {
"type": "string"
},
"data": {
"$ref": "#/definitions/Binary"
},
"timeout": {
"description": "when packet times out, measured on remote chain",
"allOf": [
{
"$ref": "#/definitions/IbcTimeout"
}
]
}
}
}
},
"additionalProperties": false
},
{
"description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port",
"type": "object",
"required": [
"close_channel"
],
"properties": {
"close_channel": {
"type": "object",
"required": [
"channel_id"
],
"properties": {
"channel_id": {
"type": "string"
}
}
}
},
"additionalProperties": false
}
]
},
"IbcTimeout": {
"description": "In IBC each package must set at least one type of timeout: the timestamp or the block height. Using this rather complex enum instead of two timeout fields we ensure that at least one timeout is set.",
"type": "object",
"properties": {
"block": {
"anyOf": [
{
"$ref": "#/definitions/IbcTimeoutBlock"
},
{
"type": "null"
}
]
},
"timestamp": {
"anyOf": [
{
"$ref": "#/definitions/Timestamp"
},
{
"type": "null"
}
]
}
}
},
"IbcTimeoutBlock": {
"description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)",
"type": "object",
"required": [
"height",
"revision"
],
"properties": {
"height": {
"description": "block height after which the packet times out. the height within the given revision",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"revision": {
"description": "the version that the client is currently on (eg. after reseting the chain this could increment 1 as height drops to 0)",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
},
"Receiver": {
"type": "object",
"required": [
"addr",
"connection_id"
],
"properties": {
"addr": {
"type": "string"
},
"connection_id": {
"type": "string"
}
},
"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"
}
]
},
"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"
},
"VoteOption": {
"type": "string",
"enum": [
"yes",
"no",
"abstain",
"no_with_veto"
]
},
"WalletFactoryInstantiateMsg": {
"type": "object",
"required": [
"addr_prefix",
"claim_fee",
"proxy_code_id",
"proxy_multisig_code_id",
"wallet_fee"
],
"properties": {
"addr_prefix": {
"description": "Chain address prefix",
"type": "string"
},
"claim_fee": {
"description": "Fee for claim govec in native token to be sent to Admin (DAO)",
"allOf": [
{
"$ref": "#/definitions/Coin"
}
]
},
"govec_minter": {
"description": "Governance Token, Govec, address",
"type": [
"string",
"null"
]
},
"proxy_code_id": {
"description": "Smart contract wallet contract code id",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"proxy_multisig_code_id": {
"description": "Wallet guardians multisig contract code id Currently v0.13.0 cw-plus cw3-fixed-multisig",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"wallet_fee": {
"description": "Fee for wallet creation in native token to be sent to Admin (DAO)",
"allOf": [
{
"$ref": "#/definitions/Coin"
}
]
}
},
"additionalProperties": false
},
"WasmMsg": {
"description": "The message types of the wasm module.\n\nSee https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto",
"oneOf": [
{
"description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.",
"type": "object",
"required": [
"execute"
],
"properties": {
"execute": {
"type": "object",
"required": [
"contract_addr",
"funds",
"msg"
],
"properties": {
"contract_addr": {
"type": "string"
},
"funds": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"msg": {
"description": "msg is the json-encoded ExecuteMsg struct (as raw Binary)",
"allOf": [
{
"$ref": "#/definitions/Binary"
}
]
}
}
}
},
"additionalProperties": false
},
{
"description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.16.0-alpha1/x/wasm/internal/types/tx.proto#L47-L61). `sender` is automatically filled with the current contract's address.",
"type": "object",
"required": [
"instantiate"
],
"properties": {
"instantiate": {
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
"properties": {
"admin": {
"type": [
"string",
"null"
]
},
"code_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"funds": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"label": {
"description": "A human-readbale label for the contract",
"type": "string"
},
"msg": {
"description": "msg is the JSON-encoded InstantiateMsg struct (as raw Binary)",
"allOf": [
{
"$ref": "#/definitions/Binary"
}
]
}
}
}
},
"additionalProperties": false
},
{
"description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.",
"type": "object",
"required": [
"migrate"
],
"properties": {
"migrate": {
"type": "object",
"required": [
"contract_addr",
"msg",
"new_code_id"
],
"properties": {
"contract_addr": {
"type": "string"
},
"msg": {
"description": "msg is the json-encoded MigrateMsg struct that will be passed to the new code",
"allOf": [
{
"$ref": "#/definitions/Binary"
}
]
},
"new_code_id": {
"description": "the code_id of the new logic to place in the given contract",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.",
"type": "object",
"required": [
"update_admin"
],
"properties": {
"update_admin": {
"type": "object",
"required": [
"admin",
"contract_addr"
],
"properties": {
"admin": {
"type": "string"
},
"contract_addr": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.",
"type": "object",
"required": [
"clear_admin"
],
"properties": {
"clear_admin": {
"type": "object",
"required": [
"contract_addr"
],
"properties": {
"contract_addr": {
"type": "string"
}
}
}
},
"additionalProperties": false
}
]
}
}
},
"query": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "QueryMsg",
"oneOf": [
{
"type": "object",
"required": [
"controllers"
],
"properties": {
"controllers": {
"type": "object",
"properties": {
"limit": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"start_after": {
"type": [
"array",
"null"
],
"items": [
{
"type": "string"
},
{
"type": "string"
}
],
"maxItems": 2,
"minItems": 2
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"govec"
],
"properties": {
"govec": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"dao"
],
"properties": {
"dao": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ibc_transfer_channels"
],
"properties": {
"ibc_transfer_channels": {
"type": "object",
"properties": {
"limit": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"start_after": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"migrate": null,
"sudo": null,
"responses": {
"controllers": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "RemoteTunnels",
"type": "object",
"required": [
"tunnels"
],
"properties": {
"tunnels": {
"description": "These are endpoints to other remote-tunnel contracts (connection_id, port_id)",
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
],
"maxItems": 2,
"minItems": 2
}
}
},
"additionalProperties": false
},
"dao": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Nullable_Addr",
"anyOf": [
{
"$ref": "#/definitions/Addr"
},
{
"type": "null"
}
],
"definitions": {
"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"
}
}
},
"govec": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Nullable_Addr",
"anyOf": [
{
"$ref": "#/definitions/Addr"
},
{
"type": "null"
}
],
"definitions": {
"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"
}
}
},
"ibc_transfer_channels": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "IbcTransferChannels",
"description": "Returned when IBC_TRANSFER_MODULES are queried",
"type": "object",
"required": [
"endpoints"
],
"properties": {
"endpoints": {
"description": "(connection_id, channel_id) The channel_id are for channel already established",
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
],
"maxItems": 2,
"minItems": 2
}
}
},
"additionalProperties": false
}
}
}
Successfully published:
When a value is nulleable in types is exported as
Nullable_Addr
however in client is exported asNullableAddr