Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
316 changes: 316 additions & 0 deletions contracts/strategy-osmosis/schema/raw/execute.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,316 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ExecuteMsg",
"oneOf": [
{
"type": "object",
"required": [
"update_config"
],
"properties": {
"update_config": {
"$ref": "#/definitions/UpdateConfigMsg"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"stake"
],
"properties": {
"stake": {
"$ref": "#/definitions/StakeMsg"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"unstake"
],
"properties": {
"unstake": {
"$ref": "#/definitions/UnstakeMsg"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"superfluid_delegate"
],
"properties": {
"superfluid_delegate": {
"$ref": "#/definitions/ExecuteSuperfluidDelegateMsg"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"execute_epoch"
],
"properties": {
"execute_epoch": {
"$ref": "#/definitions/ExecuteEpochMsg"
}
},
"additionalProperties": false
}
],
"definitions": {
"DepositToken": {
"type": "string",
"enum": [
"base",
"quote"
]
},
"ExecuteEpochMsg": {
"type": "object",
"additionalProperties": false
},
"ExecuteSuperfluidDelegateMsg": {
"type": "object",
"additionalProperties": false
},
"ExternToken": {
"type": "object",
"required": [
"extern_token",
"swap_in_route"
],
"properties": {
"extern_token": {
"type": "string"
},
"swap_in_route": {
"type": "array",
"items": {
"$ref": "#/definitions/SwapAmountInRoute"
}
}
},
"additionalProperties": false
},
"Phase": {
"type": "string",
"enum": [
"deposit",
"withdraw"
]
},
"PhaseStep": {
"type": "string",
"enum": [
"ibc_transfer_to_host",
"ibc_transfer_to_host_callback",
"request_icq_after_ibc_transfer_to_host",
"response_icq_after_ibc_transfer_to_host",
"sell_extern_tokens",
"sell_extern_tokens_callback",
"request_icq_after_sell_extern_tokens",
"response_icq_after_sell_extern_tokens",
"add_liquidity",
"add_liquidity_callback",
"bond_liquidity",
"bond_liquidity_callback",
"request_icq_after_bond_liquidity",
"response_icq_after_bond_liquidity",
"begin_unbonding_for_pending_requests",
"begin_unbonding_for_pending_requests_callback",
"check_matured_unbondings",
"remove_liquidity",
"remove_liquidity_callback",
"request_icq_after_remove_liquidity",
"response_icq_after_remove_liquidity",
"swap_two_tokens_to_deposit_token",
"swap_two_tokens_to_deposit_token_callback",
"request_icq_after_swap_two_tokens_to_deposit_token",
"response_icq_after_swap_two_tokens_to_deposit_token",
"ibc_transfer_to_controller",
"ibc_transfer_to_controller_callback",
"request_icq_after_ibc_transfer_to_controller",
"response_icq_after_ibc_transfer_to_controller",
"distribute_to_unbonded_users"
]
},
"StakeMsg": {
"type": "object",
"additionalProperties": false
},
"SwapAmountInRoute": {
"type": "object",
"required": [
"pool_id",
"token_out_denom"
],
"properties": {
"pool_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"token_out_denom": {
"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"
},
"UnstakeMsg": {
"type": "object",
"required": [
"amount"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
}
},
"additionalProperties": false
},
"UpdateConfigMsg": {
"type": "object",
"properties": {
"automate_superfluid": {
"type": [
"boolean",
"null"
]
},
"base_denom": {
"type": [
"string",
"null"
]
},
"chain_id": {
"type": [
"string",
"null"
]
},
"controller_deposit_denom": {
"type": [
"string",
"null"
]
},
"controller_transfer_channel_id": {
"type": [
"string",
"null"
]
},
"deposit_token": {
"anyOf": [
{
"$ref": "#/definitions/DepositToken"
},
{
"type": "null"
}
]
},
"extern_tokens": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/ExternToken"
}
},
"ica_channel_id": {
"type": [
"string",
"null"
]
},
"lp_denom": {
"type": [
"string",
"null"
]
},
"owner": {
"type": [
"string",
"null"
]
},
"phase": {
"anyOf": [
{
"$ref": "#/definitions/Phase"
},
{
"type": "null"
}
]
},
"phase_step": {
"anyOf": [
{
"$ref": "#/definitions/PhaseStep"
},
{
"type": "null"
}
]
},
"pool_id": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"quote_denom": {
"type": [
"string",
"null"
]
},
"superfluid_validator": {
"type": [
"string",
"null"
]
},
"transfer_channel_id": {
"type": [
"string",
"null"
]
},
"transfer_timeout": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"unbond_period": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
}
}
Loading