{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ExecuteMsg",
"oneOf": [
{
"description": "Accrue staking reward from mining. Only litium-mine can call.",
"type": "object",
"required": [
"accrue_reward"
],
"properties": {
"accrue_reward": {
"type": "object",
"required": [
"amount"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Receive CW-20 tokens to stake. Called by litium-core CW-20.",
"type": "object",
"required": [
"receive"
],
"properties": {
"receive": {
"$ref": "#/definitions/Cw20ReceiveMsg"
}
},
"additionalProperties": false
},
{
"description": "Unstake LI tokens.",
"type": "object",
"required": [
"unstake"
],
"properties": {
"unstake": {
"type": "object",
"required": [
"amount"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Claim matured unbonding.",
"type": "object",
"required": [
"claim_unbonding"
],
"properties": {
"claim_unbonding": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Claim accumulated staking rewards (mints via litium-core).",
"type": "object",
"required": [
"claim_staking_rewards"
],
"properties": {
"claim_staking_rewards": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Update config. Admin only.",
"type": "object",
"required": [
"update_config"
],
"properties": {
"update_config": {
"type": "object",
"properties": {
"admin": {
"type": [
"string",
"null"
]
},
"core_contract": {
"type": [
"string",
"null"
]
},
"mine_contract": {
"type": [
"string",
"null"
]
},
"token_contract": {
"type": [
"string",
"null"
]
},
"unbonding_period_seconds": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Testing helper: mutate critical runtime state in-place (admin only).",
"type": "object",
"required": [
"apply_testing_overrides"
],
"properties": {
"apply_testing_overrides": {
"type": "object",
"required": [
"overrides"
],
"properties": {
"overrides": {
"$ref": "#/definitions/TestingOverrides"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Full state reset for daily testing (admin only). Zeroes staking reserve, total staked, reward index, and all staker entries.",
"type": "object",
"required": [
"reset_state"
],
"properties": {
"reset_state": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"pause"
],
"properties": {
"pause": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"unpause"
],
"properties": {
"unpause": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
"Binary": {
"description": "Binary is a wrapper around Vec<u8> 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<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"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"
}
},
"additionalProperties": false
},
"TestingOverrides": {
"type": "object",
"properties": {
"paused": {
"type": [
"boolean",
"null"
]
},
"staking_reserve": {
"anyOf": [
{
"$ref": "#/definitions/Uint128"
},
{
"type": "null"
}
]
},
"staking_reward_index": {
"anyOf": [
{
"$ref": "#/definitions/Uint256"
},
{
"type": "null"
}
]
},
"staking_total_staked": {
"anyOf": [
{
"$ref": "#/definitions/Uint128"
},
{
"type": "null"
}
]
},
"total_accrued_rewards": {
"anyOf": [
{
"$ref": "#/definitions/Uint128"
},
{
"type": "null"
}
]
},
"total_claimed_rewards": {
"anyOf": [
{
"$ref": "#/definitions/Uint128"
},
{
"type": "null"
}
]
},
"unbonding_period_seconds": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
}
},
"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"
},
"Uint256": {
"description": "An implementation of u256 that is using strings for JSON encoding/decoding, such that the full u256 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 out of primitive uint types or `new` to provide big endian bytes:\n\n``` # use cosmwasm_std::Uint256; let a = Uint256::from(258u128); let b = Uint256::new([ 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 1u8, 2u8, ]); assert_eq!(a, b); ```",
"type": "string"
}
}
}
cw-cyber/contracts/litium-stake/schema/execute_msg.json
ฯ 0.0%