From e528d443de963d15ac60266bb44206917fc44f52 Mon Sep 17 00:00:00 2001 From: Mauro Lacy Date: Wed, 11 Dec 2024 11:38:37 +0100 Subject: [PATCH] Update schema --- .../babylon/schema/babylon-contract.json | 50 +++++++++++++++++++ contracts/babylon/schema/raw/execute.json | 46 +++++++++++++++++ .../schema/raw/response_to_config.json | 4 ++ 3 files changed, 100 insertions(+) diff --git a/contracts/babylon/schema/babylon-contract.json b/contracts/babylon/schema/babylon-contract.json index 8d52f01..5ade3b1 100644 --- a/contracts/babylon/schema/babylon-contract.json +++ b/contracts/babylon/schema/babylon-contract.json @@ -139,6 +139,32 @@ } }, "additionalProperties": false + }, + { + "description": "`SendRewards` is a message sent by the finality contract, to send rewards to Babylon", + "type": "object", + "required": [ + "send_rewards" + ], + "properties": { + "send_rewards": { + "type": "object", + "required": [ + "fp_distribution" + ], + "properties": { + "fp_distribution": { + "description": "`fp_distribution` is the list of finality providers and their rewards", + "type": "array", + "items": { + "$ref": "#/definitions/RewardsDistribution" + } + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false } ], "definitions": { @@ -217,6 +243,26 @@ } }, "additionalProperties": false + }, + "RewardsDistribution": { + "type": "object", + "required": [ + "fp_pubkey_hex", + "reward" + ], + "properties": { + "fp_pubkey_hex": { + "type": "string" + }, + "reward": { + "$ref": "#/definitions/Uint128" + } + }, + "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" } } }, @@ -295,6 +341,7 @@ "babylon_tag", "btc_confirmation_depth", "checkpoint_finalization_timeout", + "denom", "network", "notify_cosmos_zone" ], @@ -353,6 +400,9 @@ "null" ] }, + "denom": { + "type": "string" + }, "network": { "$ref": "#/definitions/Network" }, diff --git a/contracts/babylon/schema/raw/execute.json b/contracts/babylon/schema/raw/execute.json index 5cce265..61383cd 100644 --- a/contracts/babylon/schema/raw/execute.json +++ b/contracts/babylon/schema/raw/execute.json @@ -23,6 +23,32 @@ } }, "additionalProperties": false + }, + { + "description": "`SendRewards` is a message sent by the finality contract, to send rewards to Babylon", + "type": "object", + "required": [ + "send_rewards" + ], + "properties": { + "send_rewards": { + "type": "object", + "required": [ + "fp_distribution" + ], + "properties": { + "fp_distribution": { + "description": "`fp_distribution` is the list of finality providers and their rewards", + "type": "array", + "items": { + "$ref": "#/definitions/RewardsDistribution" + } + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false } ], "definitions": { @@ -101,6 +127,26 @@ } }, "additionalProperties": false + }, + "RewardsDistribution": { + "type": "object", + "required": [ + "fp_pubkey_hex", + "reward" + ], + "properties": { + "fp_pubkey_hex": { + "type": "string" + }, + "reward": { + "$ref": "#/definitions/Uint128" + } + }, + "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" } } } diff --git a/contracts/babylon/schema/raw/response_to_config.json b/contracts/babylon/schema/raw/response_to_config.json index 6040912..4ed6402 100644 --- a/contracts/babylon/schema/raw/response_to_config.json +++ b/contracts/babylon/schema/raw/response_to_config.json @@ -6,6 +6,7 @@ "babylon_tag", "btc_confirmation_depth", "checkpoint_finalization_timeout", + "denom", "network", "notify_cosmos_zone" ], @@ -64,6 +65,9 @@ "null" ] }, + "denom": { + "type": "string" + }, "network": { "$ref": "#/definitions/Network" },