Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandrejev committed Feb 15, 2024
1 parent 6ce5ab8 commit 5862d1e
Show file tree
Hide file tree
Showing 4 changed files with 557 additions and 32 deletions.
347 changes: 335 additions & 12 deletions contracts/ibc_transfer/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,367 @@
{
"type": "object",
"required": [
"send"
"register_balance_query"
],
"properties": {
"send": {
"register_balance_query": {
"type": "object",
"required": [
"amount",
"channel",
"addr",
"connection_id",
"denom",
"to"
"update_period"
],
"properties": {
"amount": {
"addr": {
"type": "string"
},
"connection_id": {
"type": "string"
},
"denom": {
"type": "string"
},
"update_period": {
"type": "integer",
"format": "uint128",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"register_bank_total_supply_query"
],
"properties": {
"register_bank_total_supply_query": {
"type": "object",
"required": [
"connection_id",
"denoms",
"update_period"
],
"properties": {
"connection_id": {
"type": "string"
},
"channel": {
"denoms": {
"type": "array",
"items": {
"type": "string"
}
},
"update_period": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"register_distribution_fee_pool_query"
],
"properties": {
"register_distribution_fee_pool_query": {
"type": "object",
"required": [
"connection_id",
"update_period"
],
"properties": {
"connection_id": {
"type": "string"
},
"denom": {
"update_period": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"register_staking_validators_query"
],
"properties": {
"register_staking_validators_query": {
"type": "object",
"required": [
"connection_id",
"update_period",
"validators"
],
"properties": {
"connection_id": {
"type": "string"
},
"timeout_height": {
"update_period": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"validators": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"register_government_proposals_query"
],
"properties": {
"register_government_proposals_query": {
"type": "object",
"required": [
"connection_id",
"proposals_ids",
"update_period"
],
"properties": {
"connection_id": {
"type": "string"
},
"proposals_ids": {
"type": "array",
"items": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"update_period": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"register_transfers_query"
],
"properties": {
"register_transfers_query": {
"type": "object",
"required": [
"connection_id",
"recipient",
"update_period"
],
"properties": {
"connection_id": {
"type": "string"
},
"min_height": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"to": {
"recipient": {
"type": "string"
},
"update_period": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"register_delegator_delegations_query"
],
"properties": {
"register_delegator_delegations_query": {
"type": "object",
"required": [
"connection_id",
"delegator",
"update_period",
"validators"
],
"properties": {
"connection_id": {
"type": "string"
},
"delegator": {
"type": "string"
},
"update_period": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"validators": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"register_cw20_balance_query"
],
"properties": {
"register_cw20_balance_query": {
"type": "object",
"required": [
"account_address",
"connection_id",
"cw20_contract_address",
"update_period"
],
"properties": {
"account_address": {
"type": "string"
},
"connection_id": {
"type": "string"
},
"cw20_contract_address": {
"type": "string"
},
"update_period": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"update_interchain_query"
],
"properties": {
"update_interchain_query": {
"type": "object",
"required": [
"query_id"
],
"properties": {
"new_keys": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/KVKey"
}
},
"new_recipient": {
"type": [
"string",
"null"
]
},
"new_update_period": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"query_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"remove_interchain_query"
],
"properties": {
"remove_interchain_query": {
"type": "object",
"required": [
"query_id"
],
"properties": {
"query_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
}
],
"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>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"KVKey": {
"description": "Describes a KV key for which you want to get value from the storage on remote chain",
"type": "object",
"required": [
"key",
"path"
],
"properties": {
"key": {
"description": "*key** is a key you want to read from the storage",
"allOf": [
{
"$ref": "#/definitions/Binary"
}
]
},
"path": {
"description": "*path** is a path to the storage (storage prefix) where you want to read value by key (usually name of cosmos-packages module: 'staking', 'bank', etc.)",
"type": "string"
}
}
}
]
}
}
Loading

0 comments on commit 5862d1e

Please sign in to comment.