218 lines
7.4 KiB
JSON
218 lines
7.4 KiB
JSON
{
|
|
"contract_name": "astro-token-converter",
|
|
"contract_version": "1.1.0",
|
|
"idl_version": "1.0.0",
|
|
"instantiate": {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "InstantiateMsg",
|
|
"description": "Instantiate message. Fields meaning is the same as in Config.",
|
|
"type": "object",
|
|
"required": [
|
|
"new_astro_denom",
|
|
"old_astro_asset_info"
|
|
],
|
|
"properties": {
|
|
"new_astro_denom": {
|
|
"type": "string"
|
|
},
|
|
"old_astro_asset_info": {
|
|
"$ref": "#/definitions/AssetInfo"
|
|
},
|
|
"outpost_burn_params": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/OutpostBurnParams"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"Addr": {
|
|
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
|
|
"type": "string"
|
|
},
|
|
"AssetInfo": {
|
|
"description": "This enum describes available Token types. ## Examples ``` # use cosmwasm_std::Addr; # use astroport::asset::AssetInfo::{NativeToken, Token}; Token { contract_addr: Addr::unchecked(\"stake...\") }; NativeToken { denom: String::from(\"uluna\") }; ```",
|
|
"oneOf": [
|
|
{
|
|
"description": "Non-native Token",
|
|
"type": "object",
|
|
"required": [
|
|
"token"
|
|
],
|
|
"properties": {
|
|
"token": {
|
|
"type": "object",
|
|
"required": [
|
|
"contract_addr"
|
|
],
|
|
"properties": {
|
|
"contract_addr": {
|
|
"$ref": "#/definitions/Addr"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"description": "Native token",
|
|
"type": "object",
|
|
"required": [
|
|
"native_token"
|
|
],
|
|
"properties": {
|
|
"native_token": {
|
|
"type": "object",
|
|
"required": [
|
|
"denom"
|
|
],
|
|
"properties": {
|
|
"denom": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
},
|
|
"OutpostBurnParams": {
|
|
"description": "Defines parameters for sending old IBCed ASTRO to the Hub for burning.",
|
|
"type": "object",
|
|
"required": [
|
|
"old_astro_transfer_channel",
|
|
"terra_burn_addr"
|
|
],
|
|
"properties": {
|
|
"old_astro_transfer_channel": {
|
|
"type": "string"
|
|
},
|
|
"terra_burn_addr": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"execute": {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "ExecuteMsg",
|
|
"description": "Available contract execute messages. - `Convert` is used to convert old ASTRO to new ASTRO on outposts. New ASTRO sent to `receiver` if specified. - `Receive` is used to process cw20 send hook from old cw20 ASTRO and release new ASTRO token on the old Hub. Custom `receiver` is forwarded within Cw20HookMsg. - `TransferForBurning` is used to send old ASTRO to the old Hub for burning. Is meant to be used by outposts. - `Burn` is used to burn old cw20 ASTRO on the old Hub.",
|
|
"oneOf": [
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"convert"
|
|
],
|
|
"properties": {
|
|
"convert": {
|
|
"type": "object",
|
|
"properties": {
|
|
"receiver": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"receive"
|
|
],
|
|
"properties": {
|
|
"receive": {
|
|
"$ref": "#/definitions/Cw20ReceiveMsg"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"transfer_for_burning"
|
|
],
|
|
"properties": {
|
|
"transfer_for_burning": {
|
|
"type": "object",
|
|
"properties": {
|
|
"timeout": {
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
],
|
|
"format": "uint64",
|
|
"minimum": 0.0
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"required": [
|
|
"burn"
|
|
],
|
|
"properties": {
|
|
"burn": {
|
|
"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
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
},
|
|
"query": null,
|
|
"migrate": null,
|
|
"sudo": null,
|
|
"responses": null
|
|
}
|