2026-05-15 19:18:10 +03:00

869 lines
30 KiB
JSON

{
"contract_name": "astroport-vesting",
"contract_version": "1.4.0",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "InstantiateMsg",
"description": "This structure describes the parameters used for creating a contract.",
"type": "object",
"required": [
"owner",
"vesting_token"
],
"properties": {
"owner": {
"description": "Address allowed to change contract parameters",
"type": "string"
},
"vesting_token": {
"description": "[`AssetInfo`] of the token that's being vested",
"allOf": [
{
"$ref": "#/definitions/AssetInfo"
}
]
}
},
"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
}
]
}
}
},
"execute": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ExecuteMsg",
"description": "This structure describes the execute messages available in the contract.",
"oneOf": [
{
"description": "Claim claims vested tokens and sends them to a recipient",
"type": "object",
"required": [
"claim"
],
"properties": {
"claim": {
"type": "object",
"properties": {
"amount": {
"description": "The amount of tokens to claim",
"anyOf": [
{
"$ref": "#/definitions/Uint128"
},
{
"type": "null"
}
]
},
"recipient": {
"description": "The address that receives the vested tokens",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Receives a message of type [`Cw20ReceiveMsg`] and processes it depending on the received template",
"type": "object",
"required": [
"receive"
],
"properties": {
"receive": {
"$ref": "#/definitions/Cw20ReceiveMsg"
}
},
"additionalProperties": false
},
{
"description": "RegisterVestingAccounts registers vesting targets/accounts",
"type": "object",
"required": [
"register_vesting_accounts"
],
"properties": {
"register_vesting_accounts": {
"type": "object",
"required": [
"vesting_accounts"
],
"properties": {
"vesting_accounts": {
"type": "array",
"items": {
"$ref": "#/definitions/VestingAccount"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Withdraws from current active schedule. Setups a new schedule with the remaining amount.",
"type": "object",
"required": [
"withdraw_from_active_schedule"
],
"properties": {
"withdraw_from_active_schedule": {
"type": "object",
"required": [
"account",
"withdraw_amount"
],
"properties": {
"account": {
"description": "The account from which tokens will be withdrawn",
"type": "string"
},
"recipient": {
"description": "The address that receives the vested tokens",
"type": [
"string",
"null"
]
},
"withdraw_amount": {
"description": "The amount of tokens to withdraw",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Creates a request to change contract ownership ## Executor Only the current owner can execute this",
"type": "object",
"required": [
"propose_new_owner"
],
"properties": {
"propose_new_owner": {
"type": "object",
"required": [
"expires_in",
"owner"
],
"properties": {
"expires_in": {
"description": "The validity period of the offer to change the owner",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"owner": {
"description": "The newly proposed owner",
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Removes a request to change contract ownership ## Executor Only the current owner can execute this",
"type": "object",
"required": [
"drop_ownership_proposal"
],
"properties": {
"drop_ownership_proposal": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Claims contract ownership ## Executor Only the newly proposed owner can execute this",
"type": "object",
"required": [
"claim_ownership"
],
"properties": {
"claim_ownership": {
"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"
},
"VestingAccount": {
"description": "This structure stores vesting information for a specific address that is getting tokens.",
"type": "object",
"required": [
"address",
"schedules"
],
"properties": {
"address": {
"description": "The address that is getting tokens",
"type": "string"
},
"schedules": {
"description": "The vesting schedules targeted at the `address`",
"type": "array",
"items": {
"$ref": "#/definitions/VestingSchedule"
}
}
},
"additionalProperties": false
},
"VestingSchedule": {
"description": "This structure stores parameters for a specific vesting schedule",
"type": "object",
"required": [
"start_point"
],
"properties": {
"end_point": {
"description": "The end point for the vesting schedule",
"anyOf": [
{
"$ref": "#/definitions/VestingSchedulePoint"
},
{
"type": "null"
}
]
},
"start_point": {
"description": "The start date for the vesting schedule",
"allOf": [
{
"$ref": "#/definitions/VestingSchedulePoint"
}
]
}
},
"additionalProperties": false
},
"VestingSchedulePoint": {
"description": "This structure stores the parameters used to create a vesting schedule.",
"type": "object",
"required": [
"amount",
"time"
],
"properties": {
"amount": {
"description": "The amount of tokens being vested",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"time": {
"description": "The start time for the vesting schedule",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
}
},
"query": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "QueryMsg",
"description": "This structure describes the query messages available in the contract.",
"oneOf": [
{
"description": "Returns the configuration for the contract using a [`ConfigResponse`] object.",
"type": "object",
"required": [
"config"
],
"properties": {
"config": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Returns information about an address vesting tokens using a [`VestingAccountResponse`] object.",
"type": "object",
"required": [
"vesting_account"
],
"properties": {
"vesting_account": {
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Returns a list of addresses that are vesting tokens using a [`VestingAccountsResponse`] object.",
"type": "object",
"required": [
"vesting_accounts"
],
"properties": {
"vesting_accounts": {
"type": "object",
"properties": {
"limit": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"order_by": {
"anyOf": [
{
"$ref": "#/definitions/OrderBy"
},
{
"type": "null"
}
]
},
"start_after": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Returns the total unvested amount of tokens for a specific address.",
"type": "object",
"required": [
"available_amount"
],
"properties": {
"available_amount": {
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Timestamp returns the current timestamp",
"type": "object",
"required": [
"timestamp"
],
"properties": {
"timestamp": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
"OrderBy": {
"description": "This enum describes the types of sorting that can be applied to some piece of data",
"type": "string",
"enum": [
"asc",
"desc"
]
}
}
},
"migrate": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MigrateMsg",
"description": "This structure describes migration message.",
"type": "object",
"required": [
"converter_contract"
],
"properties": {
"converter_contract": {
"description": "Special migration message needed during the Hub move. Cw admin must be very cautious supplying correct converter contract.",
"type": "string"
}
},
"additionalProperties": false
},
"sudo": null,
"responses": {
"available_amount": {
"$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"
},
"config": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ConfigResponse",
"description": "This structure describes a custom struct used to return the contract configuration.",
"type": "object",
"required": [
"owner",
"vesting_token"
],
"properties": {
"owner": {
"description": "Address allowed to set contract parameters",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
},
"vesting_token": {
"description": "[`AssetInfo`] of the token being vested",
"allOf": [
{
"$ref": "#/definitions/AssetInfo"
}
]
}
},
"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
}
]
}
}
},
"timestamp": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "uint64",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"vesting_account": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "VestingAccountResponse",
"description": "This structure describes a custom struct used to return vesting data about a specific vesting target.",
"type": "object",
"required": [
"address",
"info"
],
"properties": {
"address": {
"description": "The address that's vesting tokens",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
},
"info": {
"description": "Vesting information",
"allOf": [
{
"$ref": "#/definitions/VestingInfo"
}
]
}
},
"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"
},
"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"
},
"VestingInfo": {
"description": "This structure stores parameters for a batch of vesting schedules.",
"type": "object",
"required": [
"released_amount",
"schedules"
],
"properties": {
"released_amount": {
"description": "The total amount of ASTRO already claimed",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"schedules": {
"description": "The vesting schedules",
"type": "array",
"items": {
"$ref": "#/definitions/VestingSchedule"
}
}
},
"additionalProperties": false
},
"VestingSchedule": {
"description": "This structure stores parameters for a specific vesting schedule",
"type": "object",
"required": [
"start_point"
],
"properties": {
"end_point": {
"description": "The end point for the vesting schedule",
"anyOf": [
{
"$ref": "#/definitions/VestingSchedulePoint"
},
{
"type": "null"
}
]
},
"start_point": {
"description": "The start date for the vesting schedule",
"allOf": [
{
"$ref": "#/definitions/VestingSchedulePoint"
}
]
}
},
"additionalProperties": false
},
"VestingSchedulePoint": {
"description": "This structure stores the parameters used to create a vesting schedule.",
"type": "object",
"required": [
"amount",
"time"
],
"properties": {
"amount": {
"description": "The amount of tokens being vested",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"time": {
"description": "The start time for the vesting schedule",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
}
},
"vesting_accounts": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "VestingAccountsResponse",
"description": "This structure describes a custom struct used to return vesting data for multiple vesting targets.",
"type": "object",
"required": [
"vesting_accounts"
],
"properties": {
"vesting_accounts": {
"description": "A list of accounts that are vesting tokens",
"type": "array",
"items": {
"$ref": "#/definitions/VestingAccountResponse"
}
}
},
"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"
},
"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"
},
"VestingAccountResponse": {
"description": "This structure describes a custom struct used to return vesting data about a specific vesting target.",
"type": "object",
"required": [
"address",
"info"
],
"properties": {
"address": {
"description": "The address that's vesting tokens",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
},
"info": {
"description": "Vesting information",
"allOf": [
{
"$ref": "#/definitions/VestingInfo"
}
]
}
},
"additionalProperties": false
},
"VestingInfo": {
"description": "This structure stores parameters for a batch of vesting schedules.",
"type": "object",
"required": [
"released_amount",
"schedules"
],
"properties": {
"released_amount": {
"description": "The total amount of ASTRO already claimed",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"schedules": {
"description": "The vesting schedules",
"type": "array",
"items": {
"$ref": "#/definitions/VestingSchedule"
}
}
},
"additionalProperties": false
},
"VestingSchedule": {
"description": "This structure stores parameters for a specific vesting schedule",
"type": "object",
"required": [
"start_point"
],
"properties": {
"end_point": {
"description": "The end point for the vesting schedule",
"anyOf": [
{
"$ref": "#/definitions/VestingSchedulePoint"
},
{
"type": "null"
}
]
},
"start_point": {
"description": "The start date for the vesting schedule",
"allOf": [
{
"$ref": "#/definitions/VestingSchedulePoint"
}
]
}
},
"additionalProperties": false
},
"VestingSchedulePoint": {
"description": "This structure stores the parameters used to create a vesting schedule.",
"type": "object",
"required": [
"amount",
"time"
],
"properties": {
"amount": {
"description": "The amount of tokens being vested",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"time": {
"description": "The start time for the vesting schedule",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
}
}
}
}