{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ExecuteMsg",
"oneOf": [
{
"type": "object",
"required": [
"execute"
],
"properties": {
"execute": {
"type": "object",
"required": [
"msgs"
],
"properties": {
"msgs": {
"type": "array",
"items": {
"$ref": "#/definitions/CosmosMsg_for_CyberMsgWrapper"
}
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"update_owner"
],
"properties": {
"update_owner": {
"type": "object",
"properties": {
"new_owner": {
"type": [
"string",
"null"
]
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"update_treasury_addr"
],
"properties": {
"update_treasury_addr": {
"type": "object",
"required": [
"new_treasury_addr"
],
"properties": {
"new_treasury_addr": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"update_target"
],
"properties": {
"update_target": {
"type": "object",
"required": [
"new_target"
],
"properties": {
"new_target": {
"$ref": "#/definitions/Uint64"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"update_coefficients"
],
"properties": {
"update_coefficients": {
"type": "object",
"required": [
"new_coefficient_down",
"new_coefficient_up"
],
"properties": {
"new_coefficient_down": {
"$ref": "#/definitions/Uint128"
},
"new_coefficient_up": {
"$ref": "#/definitions/Uint128"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"register_merkle_root"
],
"properties": {
"register_merkle_root": {
"type": "object",
"required": [
"merkle_root"
],
"properties": {
"merkle_root": {
"description": "MerkleRoot is hex-encoded merkle root.",
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"claim"
],
"properties": {
"claim": {
"type": "object",
"required": [
"gift_amount",
"gift_claiming_address",
"nickname",
"proof"
],
"properties": {
"gift_amount": {
"$ref": "#/definitions/Uint128"
},
"gift_claiming_address": {
"type": "string"
},
"nickname": {
"type": "string"
},
"proof": {
"description": "Proof is hex-encoded merkle proof.",
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"release"
],
"properties": {
"release": {
"type": "object",
"required": [
"gift_address"
],
"properties": {
"gift_address": {
"type": "string"
}
}
}
},
"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>",
"type": "string"
},
"Coin": {
"type": "object",
"required": [
"amount",
"denom"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"denom": {
"type": "string"
}
}
},
"CosmosMsg_for_CyberMsgWrapper": {
"oneOf": [
{
"type": "object",
"required": [
"bank"
],
"properties": {
"bank": {
"$ref": "#/definitions/BankMsg"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"custom"
],
"properties": {
"custom": {
"$ref": "#/definitions/CyberMsgWrapper"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"staking"
],
"properties": {
"staking": {
"$ref": "#/definitions/StakingMsg"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"distribution"
],
"properties": {
"distribution": {
"$ref": "#/definitions/DistributionMsg"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"wasm"
],
"properties": {
"wasm": {
"$ref": "#/definitions/WasmMsg"
}
},
"additionalProperties": false
}
]
},
"CyberMsg": {
"oneOf": [
{
"type": "object",
"required": [
"cyberlink"
],
"properties": {
"cyberlink": {
"type": "object",
"required": [
"links",
"neuron"
],
"properties": {
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/Link"
}
},
"neuron": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"investmint"
],
"properties": {
"investmint": {
"type": "object",
"required": [
"amount",
"length",
"neuron",
"resource"
],
"properties": {
"amount": {
"$ref": "#/definitions/Coin"
},
"length": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"neuron": {
"type": "string"
},
"resource": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"create_energy_route"
],
"properties": {
"create_energy_route": {
"type": "object",
"required": [
"destination",
"name",
"source"
],
"properties": {
"destination": {
"type": "string"
},
"name": {
"type": "string"
},
"source": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"edit_energy_route"
],
"properties": {
"edit_energy_route": {
"type": "object",
"required": [
"destination",
"source",
"value"
],
"properties": {
"destination": {
"type": "string"
},
"source": {
"type": "string"
},
"value": {
"$ref": "#/definitions/Coin"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"edit_energy_route_name"
],
"properties": {
"edit_energy_route_name": {
"type": "object",
"required": [
"destination",
"name",
"source"
],
"properties": {
"destination": {
"type": "string"
},
"name": {
"type": "string"
},
"source": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"delete_energy_route"
],
"properties": {
"delete_energy_route": {
"type": "object",
"required": [
"destination",
"source"
],
"properties": {
"destination": {
"type": "string"
},
"source": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"create_thought"
],
"properties": {
"create_thought": {
"type": "object",
"required": [
"load",
"name",
"particle",
"program",
"trigger"
],
"properties": {
"load": {
"$ref": "#/definitions/Load"
},
"name": {
"type": "string"
},
"particle": {
"type": "string"
},
"program": {
"type": "string"
},
"trigger": {
"$ref": "#/definitions/Trigger"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"forget_thought"
],
"properties": {
"forget_thought": {
"type": "object",
"required": [
"name",
"program"
],
"properties": {
"name": {
"type": "string"
},
"program": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"change_thought_input"
],
"properties": {
"change_thought_input": {
"type": "object",
"required": [
"input",
"name",
"program"
],
"properties": {
"input": {
"type": "string"
},
"name": {
"type": "string"
},
"program": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"change_thought_period"
],
"properties": {
"change_thought_period": {
"type": "object",
"required": [
"name",
"period",
"program"
],
"properties": {
"name": {
"type": "string"
},
"period": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"program": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"change_thought_block"
],
"properties": {
"change_thought_block": {
"type": "object",
"required": [
"block",
"name",
"program"
],
"properties": {
"block": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"name": {
"type": "string"
},
"program": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"create_pool"
],
"properties": {
"create_pool": {
"type": "object",
"required": [
"deposit_coins",
"pool_creator_address",
"pool_type_id"
],
"properties": {
"deposit_coins": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"pool_creator_address": {
"type": "string"
},
"pool_type_id": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"deposit_within_batch"
],
"properties": {
"deposit_within_batch": {
"type": "object",
"required": [
"deposit_coins",
"depositor_address",
"pool_id"
],
"properties": {
"deposit_coins": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"depositor_address": {
"type": "string"
},
"pool_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"withdraw_within_batch"
],
"properties": {
"withdraw_within_batch": {
"type": "object",
"required": [
"pool_coin",
"pool_id",
"withdrawer_address"
],
"properties": {
"pool_coin": {
"$ref": "#/definitions/Coin"
},
"pool_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"withdrawer_address": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"swap_within_batch"
],
"properties": {
"swap_within_batch": {
"type": "object",
"required": [
"demand_coin_denom",
"offer_coin",
"offer_coin_fee",
"order_price",
"pool_id",
"swap_requester_address",
"swap_type_id"
],
"properties": {
"demand_coin_denom": {
"type": "string"
},
"offer_coin": {
"$ref": "#/definitions/Coin"
},
"offer_coin_fee": {
"$ref": "#/definitions/Coin"
},
"order_price": {
"$ref": "#/definitions/Decimal"
},
"pool_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"swap_requester_address": {
"type": "string"
},
"swap_type_id": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
}
]
},
"CyberMsgWrapper": {
"type": "object",
"required": [
"msg_data",
"route"
],
"properties": {
"msg_data": {
"$ref": "#/definitions/CyberMsg"
},
"route": {
"$ref": "#/definitions/CyberRoute"
}
}
},
"CyberRoute": {
"description": "CyberRoute is enum type to represent cyber query route path",
"type": "string",
"enum": [
"rank",
"graph",
"resources",
"grid",
"dmn",
"bandwidth",
"liquidity"
]
},
"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"
},
"DistributionMsg": {
"description": "The message types of the distribution module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto",
"oneOf": [
{
"description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.",
"type": "object",
"required": [
"set_withdraw_address"
],
"properties": {
"set_withdraw_address": {
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"description": "The `withdraw_address`",
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.",
"type": "object",
"required": [
"withdraw_delegator_reward"
],
"properties": {
"withdraw_delegator_reward": {
"type": "object",
"required": [
"validator"
],
"properties": {
"validator": {
"description": "The `validator_address`",
"type": "string"
}
}
}
},
"additionalProperties": false
}
]
},
"Link": {
"type": "object",
"required": [
"from",
"to"
],
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
}
}
},
"Load": {
"type": "object",
"required": [
"gas_price",
"input"
],
"properties": {
"gas_price": {
"$ref": "#/definitions/Coin"
},
"input": {
"type": "string"
}
}
},
"StakingMsg": {
"description": "The message types of the staking module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto",
"oneOf": [
{
"description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.",
"type": "object",
"required": [
"delegate"
],
"properties": {
"delegate": {
"type": "object",
"required": [
"amount",
"validator"
],
"properties": {
"amount": {
"$ref": "#/definitions/Coin"
},
"validator": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.",
"type": "object",
"required": [
"undelegate"
],
"properties": {
"undelegate": {
"type": "object",
"required": [
"amount",
"validator"
],
"properties": {
"amount": {
"$ref": "#/definitions/Coin"
},
"validator": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.",
"type": "object",
"required": [
"redelegate"
],
"properties": {
"redelegate": {
"type": "object",
"required": [
"amount",
"dst_validator",
"src_validator"
],
"properties": {
"amount": {
"$ref": "#/definitions/Coin"
},
"dst_validator": {
"type": "string"
},
"src_validator": {
"type": "string"
}
}
}
},
"additionalProperties": false
}
]
},
"Trigger": {
"type": "object",
"required": [
"block",
"period"
],
"properties": {
"block": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"period": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
},
"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"
},
"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
}
]
}
}
}
cw-cyber/contracts/cw-cyber-gift/schema/execute_msg.json
ฯ 0.0%