Skip to content

Commit

Permalink
chore(schemas): regenerate schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
nseguias committed Apr 23, 2024
1 parent 61f9235 commit fb35284
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 0 deletions.
81 changes: 81 additions & 0 deletions contracts/liquidity_hub/pool-manager/schema/pool-manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,34 @@
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"simulate_swap_operations"
],
"properties": {
"simulate_swap_operations": {
"type": "object",
"required": [
"offer_amount",
"operations"
],
"properties": {
"offer_amount": {
"$ref": "#/definitions/Uint128"
},
"operations": {
"type": "array",
"items": {
"$ref": "#/definitions/SwapOperation"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -893,6 +921,39 @@
}
}
},
"SwapOperation": {
"oneOf": [
{
"type": "object",
"required": [
"whale_swap"
],
"properties": {
"whale_swap": {
"type": "object",
"required": [
"pool_identifier",
"token_in_denom",
"token_out_denom"
],
"properties": {
"pool_identifier": {
"type": "string"
},
"token_in_denom": {
"type": "string"
},
"token_out_denom": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"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"
Expand Down Expand Up @@ -1320,6 +1381,26 @@
}
}
},
"simulate_swap_operations": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "SimulateSwapOperationsResponse",
"type": "object",
"required": [
"amount"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
}
},
"additionalProperties": false,
"definitions": {
"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"
}
}
},
"simulation": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "SimulationResponse",
Expand Down
61 changes: 61 additions & 0 deletions contracts/liquidity_hub/pool-manager/schema/raw/query.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,34 @@
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"simulate_swap_operations"
],
"properties": {
"simulate_swap_operations": {
"type": "object",
"required": [
"offer_amount",
"operations"
],
"properties": {
"offer_amount": {
"$ref": "#/definitions/Uint128"
},
"operations": {
"type": "array",
"items": {
"$ref": "#/definitions/SwapOperation"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -216,6 +244,39 @@
}
}
},
"SwapOperation": {
"oneOf": [
{
"type": "object",
"required": [
"whale_swap"
],
"properties": {
"whale_swap": {
"type": "object",
"required": [
"pool_identifier",
"token_in_denom",
"token_out_denom"
],
"properties": {
"pool_identifier": {
"type": "string"
},
"token_in_denom": {
"type": "string"
},
"token_out_denom": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"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"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "SimulateSwapOperationsResponse",
"type": "object",
"required": [
"amount"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
}
},
"additionalProperties": false,
"definitions": {
"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"
}
}
}

0 comments on commit fb35284

Please sign in to comment.