Skip to content

Commit

Permalink
updated schema
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Sep 11, 2024
1 parent 31c6813 commit ad8769a
Showing 1 changed file with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}
}

0 comments on commit ad8769a

Please sign in to comment.