Skip to content

Commit

Permalink
schema
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler committed Dec 15, 2023
1 parent 8e9c23e commit 8f70f6e
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 0 deletions.
1 change: 1 addition & 0 deletions contracts/dex_stargate/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@
],
"properties": {
"disable_autoswap": {
"description": "Autoswap provides a mechanism for users to deposit the entirety of their specified deposit amounts by paying a small fee. By default the `autoswap` option is enabled.",
"type": "boolean"
}
}
Expand Down
109 changes: 109 additions & 0 deletions contracts/reflect/schema/query_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,72 @@
"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"
},
"IbcQuery": {
"description": "These are queries to the various IBC modules to see the state of the contract's IBC connection. These will return errors if the contract is not \"ibc enabled\"",
"oneOf": [
{
"description": "Gets the Port ID the current contract is bound to.\n\nReturns a `PortIdResponse`.",
"type": "object",
"required": [
"port_id"
],
"properties": {
"port_id": {
"type": "object"
}
},
"additionalProperties": false
},
{
"description": "Lists all channels that are bound to a given port. If `port_id` is omitted, this list all channels bound to the contract's port.\n\nReturns a `ListChannelsResponse`.",
"type": "object",
"required": [
"list_channels"
],
"properties": {
"list_channels": {
"type": "object",
"properties": {
"port_id": {
"type": [
"string",
"null"
]
}
}
}
},
"additionalProperties": false
},
{
"description": "Lists all information for a (portID, channelID) pair. If port_id is omitted, it will default to the contract's own channel. (To save a PortId{} call)\n\nReturns a `ChannelResponse`.",
"type": "object",
"required": [
"channel"
],
"properties": {
"channel": {
"type": "object",
"required": [
"channel_id"
],
"properties": {
"channel_id": {
"type": "string"
},
"port_id": {
"type": [
"string",
"null"
]
}
}
}
},
"additionalProperties": false
}
]
},
"InterchainQueries": {
"oneOf": [
{
Expand Down Expand Up @@ -240,6 +306,49 @@
},
"additionalProperties": false
},
{
"description": "A Stargate query is encoded the same way as abci_query, with path and protobuf encoded request data. The format is defined in [ADR-21](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-021-protobuf-query-encoding.md). The response is protobuf encoded data directly without a JSON response wrapper. The caller is responsible for compiling the proper protobuf definitions for both requests and responses.",
"type": "object",
"required": [
"stargate"
],
"properties": {
"stargate": {
"type": "object",
"required": [
"data",
"path"
],
"properties": {
"data": {
"description": "this is the expected protobuf message type (not any), binary encoded",
"allOf": [
{
"$ref": "#/definitions/Binary"
}
]
},
"path": {
"description": "this is the fully qualified service path used for routing, eg. custom/cosmos_sdk.x.bank.v1.Query/QueryBalance",
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ibc"
],
"properties": {
"ibc": {
"$ref": "#/definitions/IbcQuery"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
Expand Down

0 comments on commit 8f70f6e

Please sign in to comment.