Skip to content

Commit

Permalink
remove dex bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcompagni10 committed Sep 4, 2024
1 parent 90e60af commit b46325e
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 15 deletions.
17 changes: 17 additions & 0 deletions contracts/neutron_interchain_txs/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@
"interchain_account_id": {
"type": "string"
},
"ordering": {
"anyOf": [
{
"$ref": "#/definitions/ChannelOrdering"
},
{
"type": "null"
}
]
},
"register_fee": {
"type": "array",
"items": {
Expand Down Expand Up @@ -122,6 +132,13 @@
}
],
"definitions": {
"ChannelOrdering": {
"type": "string",
"enum": [
"ORDER_ORDERED",
"ORDER_UNORDERED"
]
},
"Coin": {
"type": "object",
"required": [
Expand Down
40 changes: 32 additions & 8 deletions packages/neutron-sdk/schema/neutron_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@
"description": "**interchain_account_id** is an identifier of your new interchain account. Can be any string. This identifier allows contracts to have multiple interchain accounts on remote chains.",
"type": "string"
},
"ordering": {
"description": "**ordering** is an order of channel. Can be ordered or unordered. Set to ordered if not specified.",
"anyOf": [
{
"$ref": "#/definitions/ChannelOrdering"
},
{
"type": "null"
}
]
},
"register_fee": {
"description": "*register_fee** is a fees required to be payed to register interchain account",
"type": [
Expand Down Expand Up @@ -160,7 +171,7 @@
],
"properties": {
"new_keys": {
"description": "*new_keys** is the new query keys to retrive.",
"description": "*new_keys** is the new query keys to retrieve.",
"type": [
"array",
"null"
Expand Down Expand Up @@ -810,6 +821,13 @@
},
"additionalProperties": false
},
"ChannelOrdering": {
"type": "string",
"enum": [
"ORDER_ORDERED",
"ORDER_UNORDERED"
]
},
"ClearAdminProposal": {
"description": "Deprecated. SudoContractProposal defines the struct for clear admin proposal.",
"deprecated": true,
Expand Down Expand Up @@ -907,14 +925,20 @@
},
"additionalProperties": false
},
"DepositOption": {
"DepositOptions": {
"type": "object",
"required": [
"disable_swap"
],
"properties": {
"disable_swap": {
"type": "boolean"
"disable_autoswap": {
"type": [
"boolean",
"null"
]
},
"fail_tx_on_bel": {
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false
Expand Down Expand Up @@ -968,7 +992,7 @@
"description": "Additional deposit options",
"type": "array",
"items": {
"$ref": "#/definitions/DepositOption"
"$ref": "#/definitions/DepositOptions"
}
},
"receiver": {
Expand Down
8 changes: 2 additions & 6 deletions packages/neutron-sdk/src/bindings/dex/query.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
use crate::bindings::dex::types::{
DepositRecord, LimitOrderTranche, LimitOrderTrancheUser, LimitOrderType,
MsgCancelLimitOrderResponse, MsgDepositResponse,
MsgMultiHopSwapResponse, MsgPlaceLimitOrderResponse,
MsgWithdrawFilledLimitOrderResponse,
MsgWithdrawalResponse, MultiHopRoute, Params, Pool, PoolMetadata, PoolReserves, PrecDec,
TickLiquidity,
DepositRecord, LimitOrderTranche, LimitOrderTrancheUser, LimitOrderType, MultiHopRoute, Params,
Pool, PoolMetadata, PoolReserves, PrecDec, TickLiquidity,
};
use crate::bindings::query::{PageRequest, PageResponse};
use cosmwasm_std::{Coin, Int128};
Expand Down
2 changes: 1 addition & 1 deletion packages/neutron-sdk/src/bindings/dex/types.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cosmwasm_std::{Int128};
use cosmwasm_std::Int128;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

Expand Down

0 comments on commit b46325e

Please sign in to comment.