{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ExecuteMsg", "anyOf": [ { "description": "Owner's operations Update the global index", "type": "object", "required": [ "update_global_index" ], "properties": { "update_global_index": { "type": "object" } }, "additionalProperties": false }, { "description": "Staking operations Unbound user staking balance Withdraw rewards to pending rewards Set current reward index to global index", "type": "object", "required": [ "unbond_stake" ], "properties": { "unbond_stake": { "type": "object", "required": [ "amount" ], "properties": { "amount": { "$ref": "#/definitions/Uint128" } } } }, "additionalProperties": false }, { "description": "Unbound user staking balance Withdraws released stake", "type": "object", "required": [ "withdraw_stake" ], "properties": { "withdraw_stake": { "type": "object", "properties": { "cap": { "anyOf": [ { "$ref": "#/definitions/Uint128" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "description": "User's operations return the accrued reward in usdt to the user.", "type": "object", "required": [ "claim_rewards" ], "properties": { "claim_rewards": { "type": "object", "properties": { "recipient": { "type": [ "string", "null" ] } } } }, "additionalProperties": false }, { "description": "This accepts a properly-encoded ReceiveMsg from a cw20 contract", "type": "object", "required": [ "receive" ], "properties": { "receive": { "$ref": "#/definitions/Cw20ReceiveMsg" } }, "additionalProperties": false } ], "definitions": { "Binary": { "description": "Binary is a wrapper around Vec to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec", "type": "string" }, "Cw20ReceiveMsg": { "description": "Cw20ReceiveMsg should be de/serialized under `Receive()` variant in a ExecuteMsg", "type": "object", "required": [ "amount", "msg", "sender" ], "properties": { "amount": { "$ref": "#/definitions/Uint128" }, "msg": { "$ref": "#/definitions/Binary" }, "sender": { "type": "string" } } }, "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" } } }