From ad8769a5d8117029d28daf9001d34327cc13860e Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Wed, 11 Sep 2024 17:03:39 -0400 Subject: [PATCH] updated schema --- .../schema/dao-rewards-distributor.json | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/contracts/distribution/dao-rewards-distributor/schema/dao-rewards-distributor.json b/contracts/distribution/dao-rewards-distributor/schema/dao-rewards-distributor.json index 7a85ec819..b3d452abd 100644 --- a/contracts/distribution/dao-rewards-distributor/schema/dao-rewards-distributor.json +++ b/contracts/distribution/dao-rewards-distributor/schema/dao-rewards-distributor.json @@ -156,6 +156,20 @@ }, "additionalProperties": false }, + { + "description": "Used to fund the latest distribution with native tokens.", + "type": "object", + "required": [ + "fund_latest" + ], + "properties": { + "fund_latest": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "description": "Claims rewards for the sender.", "type": "object", @@ -786,6 +800,30 @@ }, "additionalProperties": false }, + { + "description": "Returns the undistributed rewards for a distribution.", + "type": "object", + "required": [ + "undistributed_rewards" + ], + "properties": { + "undistributed_rewards": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "description": "Returns the state of the given distribution.", "type": "object", @@ -1781,6 +1819,12 @@ "type": "string" } } + }, + "undistributed_rewards": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "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" } } }