From 3eb627da7086c7cfdaf6dfd67f29aad77d63586a Mon Sep 17 00:00:00 2001 From: Kerber0x Date: Wed, 4 Sep 2024 17:42:22 +0100 Subject: [PATCH] chore: regenerate schemas --- Cargo.lock | 32 ------------------- Cargo.toml | 1 - .../terraswap_router/schema/raw/query.json | 14 ++++++++ .../schema/terraswap-router.json | 14 ++++++++ 4 files changed, 28 insertions(+), 33 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c98e8d4e..5cc8ad24 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -266,21 +266,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "cw-controllers" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5d8edce4b78785f36413f67387e4be7d0cb7d032b5d4164bcc024f9c3f3f2ea" -dependencies = [ - "cosmwasm-schema", - "cosmwasm-std", - "cw-storage-plus", - "cw-utils", - "schemars", - "serde", - "thiserror", -] - [[package]] name = "cw-multi-test" version = "0.16.5" @@ -527,23 +512,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "epoch-manager" -version = "0.1.0" -dependencies = [ - "cosmwasm-schema", - "cosmwasm-std", - "cw-controllers", - "cw-multi-test", - "cw-storage-plus", - "cw2", - "schemars", - "semver", - "serde", - "thiserror", - "white-whale-std", -] - [[package]] name = "errno" version = "0.3.1" diff --git a/Cargo.toml b/Cargo.toml index 60acd1f6..9bc73e2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,6 @@ members = [ "contracts/liquidity_hub/fee-distributor-mock", "contracts/liquidity_hub/whale_lair", "contracts/liquidity_hub/vault-network/*", - "contracts/liquidity_hub/epoch-manager", ] [workspace.package] diff --git a/contracts/liquidity_hub/pool-network/terraswap_router/schema/raw/query.json b/contracts/liquidity_hub/pool-network/terraswap_router/schema/raw/query.json index 42060dcc..525d1f1f 100644 --- a/contracts/liquidity_hub/pool-network/terraswap_router/schema/raw/query.json +++ b/contracts/liquidity_hub/pool-network/terraswap_router/schema/raw/query.json @@ -30,6 +30,16 @@ "operations" ], "properties": { + "max_spread": { + "anyOf": [ + { + "$ref": "#/definitions/Decimal" + }, + { + "type": "null" + } + ] + }, "offer_amount": { "$ref": "#/definitions/Uint128" }, @@ -163,6 +173,10 @@ } ] }, + "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" + }, "SwapOperation": { "oneOf": [ { diff --git a/contracts/liquidity_hub/pool-network/terraswap_router/schema/terraswap-router.json b/contracts/liquidity_hub/pool-network/terraswap_router/schema/terraswap-router.json index e4833685..d0028408 100644 --- a/contracts/liquidity_hub/pool-network/terraswap_router/schema/terraswap-router.json +++ b/contracts/liquidity_hub/pool-network/terraswap_router/schema/terraswap-router.json @@ -373,6 +373,16 @@ "operations" ], "properties": { + "max_spread": { + "anyOf": [ + { + "$ref": "#/definitions/Decimal" + }, + { + "type": "null" + } + ] + }, "offer_amount": { "$ref": "#/definitions/Uint128" }, @@ -506,6 +516,10 @@ } ] }, + "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" + }, "SwapOperation": { "oneOf": [ {