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

1410 lines
48 KiB
JSON

{
"contract_name": "astroport-maker",
"contract_version": "1.7.0",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "InstantiateMsg",
"description": "This structure stores general parameters for the contract.",
"type": "object",
"required": [
"astro_token",
"factory_contract",
"owner"
],
"properties": {
"astro_token": {
"description": "The ASTRO token asset info",
"allOf": [
{
"$ref": "#/definitions/AssetInfo"
}
]
},
"collect_cooldown": {
"description": "If set defines the period when maker collect can be called",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"default_bridge": {
"description": "Default bridge asset (Terra1 - LUNC, Terra2 - LUNA, etc.)",
"anyOf": [
{
"$ref": "#/definitions/AssetInfo"
},
{
"type": "null"
}
]
},
"factory_contract": {
"description": "The factory contract address",
"type": "string"
},
"governance_contract": {
"description": "The governance contract address (fee distributor for vxASTRO)",
"type": [
"string",
"null"
]
},
"governance_percent": {
"description": "The percentage of fees that go to governance_contract",
"anyOf": [
{
"$ref": "#/definitions/Uint64"
},
{
"type": "null"
}
]
},
"max_spread": {
"description": "The maximum spread used when swapping fee tokens to ASTRO",
"anyOf": [
{
"$ref": "#/definitions/Decimal"
},
{
"type": "null"
}
]
},
"owner": {
"description": "Address that's allowed to change contract parameters",
"type": "string"
},
"second_receiver_params": {
"description": "The second receiver parameters of fees",
"anyOf": [
{
"$ref": "#/definitions/SecondReceiverParams"
},
{
"type": "null"
}
]
},
"staking_contract": {
"description": "The xASTRO staking contract address. If None then governance_contract must be set with 100% fee.",
"type": [
"string",
"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
}
]
},
"Decimal": {
"description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)",
"type": "string"
},
"SecondReceiverParams": {
"description": "This structure describes the parameters for updating the second receiver of fees.",
"type": "object",
"required": [
"second_fee_receiver",
"second_receiver_cut"
],
"properties": {
"second_fee_receiver": {
"description": "The second fee receiver",
"type": "string"
},
"second_receiver_cut": {
"description": "The percentage of fees that go to the second fee receiver",
"allOf": [
{
"$ref": "#/definitions/Uint64"
}
]
}
},
"additionalProperties": false
},
"Uint64": {
"description": "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 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 `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```",
"type": "string"
}
}
},
"execute": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ExecuteMsg",
"description": "This structure describes the functions that can be executed in this contract.",
"oneOf": [
{
"description": "Collects and swaps fee tokens to ASTRO",
"type": "object",
"required": [
"collect"
],
"properties": {
"collect": {
"type": "object",
"required": [
"assets"
],
"properties": {
"assets": {
"description": "The assets to swap to ASTRO",
"type": "array",
"items": {
"$ref": "#/definitions/AssetWithLimit"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Updates general settings",
"type": "object",
"required": [
"update_config"
],
"properties": {
"update_config": {
"type": "object",
"properties": {
"astro_token": {
"description": "The ASTRO token asset info",
"anyOf": [
{
"$ref": "#/definitions/AssetInfo"
},
{
"type": "null"
}
]
},
"basic_asset": {
"description": "Basic chain asset (Terra1 - LUNC, Terra2 - LUNA, etc.)",
"anyOf": [
{
"$ref": "#/definitions/AssetInfo"
},
{
"type": "null"
}
]
},
"collect_cooldown": {
"description": "Defines the period when maker collect can be called",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"dev_fund_config": {
"description": "Dev tax configuration",
"anyOf": [
{
"$ref": "#/definitions/UpdateDevFundConfig"
},
{
"type": "null"
}
]
},
"factory_contract": {
"description": "The factory contract address",
"type": [
"string",
"null"
]
},
"governance_contract": {
"description": "The governance contract address (fee distributor for vxASTRO)",
"anyOf": [
{
"$ref": "#/definitions/UpdateAddr"
},
{
"type": "null"
}
]
},
"governance_percent": {
"description": "The percentage of fees that go to governance_contract",
"anyOf": [
{
"$ref": "#/definitions/Uint64"
},
{
"type": "null"
}
]
},
"max_spread": {
"description": "The maximum spread used when swapping fee tokens to ASTRO",
"anyOf": [
{
"$ref": "#/definitions/Decimal"
},
{
"type": "null"
}
]
},
"second_receiver_params": {
"description": "The second receiver parameters of fees",
"anyOf": [
{
"$ref": "#/definitions/SecondReceiverParams"
},
{
"type": "null"
}
]
},
"staking_contract": {
"description": "The xASTRO staking contract address",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Add bridge tokens used to swap specific fee tokens to ASTRO (effectively declaring a swap route)",
"type": "object",
"required": [
"update_bridges"
],
"properties": {
"update_bridges": {
"type": "object",
"properties": {
"add": {
"type": [
"array",
"null"
],
"items": {
"type": "array",
"items": [
{
"$ref": "#/definitions/AssetInfo"
},
{
"$ref": "#/definitions/AssetInfo"
}
],
"maxItems": 2,
"minItems": 2
}
},
"remove": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/AssetInfo"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Swap fee tokens via bridge assets",
"type": "object",
"required": [
"swap_bridge_assets"
],
"properties": {
"swap_bridge_assets": {
"type": "object",
"required": [
"assets",
"depth"
],
"properties": {
"assets": {
"type": "array",
"items": {
"$ref": "#/definitions/AssetInfo"
}
},
"depth": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Distribute ASTRO to stakers and to governance",
"type": "object",
"required": [
"distribute_astro"
],
"properties": {
"distribute_astro": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Creates a request to change the contract's ownership",
"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 proposal 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",
"type": "object",
"required": [
"drop_ownership_proposal"
],
"properties": {
"drop_ownership_proposal": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Claims contract ownership",
"type": "object",
"required": [
"claim_ownership"
],
"properties": {
"claim_ownership": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Enables the distribution of current fees accrued in the contract over \"blocks\" number of blocks",
"type": "object",
"required": [
"enable_rewards"
],
"properties": {
"enable_rewards": {
"type": "object",
"required": [
"blocks"
],
"properties": {
"blocks": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Permissionless endpoint that sends certain assets to predefined seizing address",
"type": "object",
"required": [
"seize"
],
"properties": {
"seize": {
"type": "object",
"required": [
"assets"
],
"properties": {
"assets": {
"description": "The assets to seize",
"type": "array",
"items": {
"$ref": "#/definitions/AssetWithLimit"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Sets parameters for seizing assets. Permissioned to a contract owner. If governance wants to stop seizing assets, it can set an empty list of seizable assets.",
"type": "object",
"required": [
"update_seize_config"
],
"properties": {
"update_seize_config": {
"type": "object",
"properties": {
"receiver": {
"description": "The address that will receive the seized tokens",
"type": [
"string",
"null"
]
},
"seizable_assets": {
"description": "The assets that can be seized. Resets the list to this one every time it is executed",
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/AssetInfo"
}
}
},
"additionalProperties": false
}
},
"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
}
]
},
"AssetWithLimit": {
"description": "This struct holds parameters to help with swapping a specific amount of a fee token to ASTRO.",
"type": "object",
"required": [
"info"
],
"properties": {
"info": {
"description": "Information about the fee token to swap",
"allOf": [
{
"$ref": "#/definitions/AssetInfo"
}
]
},
"limit": {
"description": "The amount of tokens to swap",
"anyOf": [
{
"$ref": "#/definitions/Uint128"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"Decimal": {
"description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)",
"type": "string"
},
"DevFundConfig": {
"type": "object",
"required": [
"address",
"asset_info",
"share"
],
"properties": {
"address": {
"description": "The dev fund address",
"type": "string"
},
"asset_info": {
"description": "Asset that devs want ASTRO to be swapped to",
"allOf": [
{
"$ref": "#/definitions/AssetInfo"
}
]
},
"share": {
"description": "The percentage of fees that go to the dev fund",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
}
},
"additionalProperties": false
},
"SecondReceiverParams": {
"description": "This structure describes the parameters for updating the second receiver of fees.",
"type": "object",
"required": [
"second_fee_receiver",
"second_receiver_cut"
],
"properties": {
"second_fee_receiver": {
"description": "The second fee receiver",
"type": "string"
},
"second_receiver_cut": {
"description": "The percentage of fees that go to the second fee receiver",
"allOf": [
{
"$ref": "#/definitions/Uint64"
}
]
}
},
"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"
},
"Uint64": {
"description": "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 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 `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```",
"type": "string"
},
"UpdateAddr": {
"description": "This is an enum used for setting and removing a contract address.",
"oneOf": [
{
"description": "Sets a new contract address.",
"type": "object",
"required": [
"set"
],
"properties": {
"set": {
"type": "string"
}
},
"additionalProperties": false
},
{
"description": "Removes a contract address.",
"type": "object",
"required": [
"remove"
],
"properties": {
"remove": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"UpdateDevFundConfig": {
"type": "object",
"properties": {
"set": {
"description": "If 'set' is None then dev fund config will be removed, otherwise it will be updated with the new parameters",
"anyOf": [
{
"$ref": "#/definitions/DevFundConfig"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
}
},
"query": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "QueryMsg",
"description": "This structure describes the query functions available in the contract.",
"oneOf": [
{
"description": "Returns information about the maker configs that contains in the [`ConfigResponse`]",
"type": "object",
"required": [
"config"
],
"properties": {
"config": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Returns the balance for each asset in the specified input parameters",
"type": "object",
"required": [
"balances"
],
"properties": {
"balances": {
"type": "object",
"required": [
"assets"
],
"properties": {
"assets": {
"type": "array",
"items": {
"$ref": "#/definitions/AssetInfo"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"bridges"
],
"properties": {
"bridges": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Returns the seize config",
"type": "object",
"required": [
"query_seize_config"
],
"properties": {
"query_seize_config": {
"type": "object",
"additionalProperties": false
}
},
"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
}
]
}
}
},
"migrate": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MigrateMsg",
"description": "This structure describes a migration message.",
"type": "object",
"properties": {
"collect_cooldown": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"second_receiver_params": {
"anyOf": [
{
"$ref": "#/definitions/SecondReceiverParams"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false,
"definitions": {
"SecondReceiverParams": {
"description": "This structure describes the parameters for updating the second receiver of fees.",
"type": "object",
"required": [
"second_fee_receiver",
"second_receiver_cut"
],
"properties": {
"second_fee_receiver": {
"description": "The second fee receiver",
"type": "string"
},
"second_receiver_cut": {
"description": "The percentage of fees that go to the second fee receiver",
"allOf": [
{
"$ref": "#/definitions/Uint64"
}
]
}
},
"additionalProperties": false
},
"Uint64": {
"description": "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 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 `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```",
"type": "string"
}
}
},
"sudo": null,
"responses": {
"balances": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "BalancesResponse",
"description": "A custom struct used to return multiple asset balances.",
"type": "object",
"required": [
"balances"
],
"properties": {
"balances": {
"type": "array",
"items": {
"$ref": "#/definitions/Asset"
}
}
},
"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"
},
"Asset": {
"description": "This enum describes a Terra asset (native or CW20).",
"type": "object",
"required": [
"amount",
"info"
],
"properties": {
"amount": {
"description": "A token amount",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"info": {
"description": "Information about an asset stored in a [`AssetInfo`] struct",
"allOf": [
{
"$ref": "#/definitions/AssetInfo"
}
]
}
},
"additionalProperties": false
},
"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
}
]
},
"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"
}
}
},
"bridges": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Array_of_Tuple_of_String_and_String",
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
],
"maxItems": 2,
"minItems": 2
}
},
"config": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ConfigResponse",
"description": "A custom struct that holds contract parameters and is used to retrieve them.",
"type": "object",
"required": [
"astro_token",
"factory_contract",
"governance_percent",
"max_spread",
"owner",
"pre_upgrade_astro_amount",
"remainder_reward"
],
"properties": {
"astro_token": {
"description": "The ASTRO token asset info",
"allOf": [
{
"$ref": "#/definitions/AssetInfo"
}
]
},
"default_bridge": {
"description": "Default bridge (Terra1 - LUNC, Terra2 - LUNA, etc.)",
"anyOf": [
{
"$ref": "#/definitions/AssetInfo"
},
{
"type": "null"
}
]
},
"dev_fund_conf": {
"description": "The dev fund configuration",
"anyOf": [
{
"$ref": "#/definitions/DevFundConfig"
},
{
"type": "null"
}
]
},
"factory_contract": {
"description": "The factory contract address",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
},
"governance_contract": {
"description": "The governance contract address (fee distributor for vxASTRO stakers)",
"anyOf": [
{
"$ref": "#/definitions/Addr"
},
{
"type": "null"
}
]
},
"governance_percent": {
"description": "The percentage of fees that go to governance_contract",
"allOf": [
{
"$ref": "#/definitions/Uint64"
}
]
},
"max_spread": {
"description": "The maximum spread used when swapping fee tokens to ASTRO",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
},
"owner": {
"description": "Address that is allowed to update contract parameters",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
},
"pre_upgrade_astro_amount": {
"description": "The amount of ASTRO tokens accrued before upgrading the Maker implementation and enabling reward distribution",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"remainder_reward": {
"description": "The remainder ASTRO tokens (accrued before the Maker is upgraded) to be distributed to xASTRO stakers",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"second_receiver_cfg": {
"description": "Parameters that describe the second receiver of fees",
"anyOf": [
{
"$ref": "#/definitions/SecondReceiverConfig"
},
{
"type": "null"
}
]
},
"staking_contract": {
"description": "The xASTRO staking contract address",
"anyOf": [
{
"$ref": "#/definitions/Addr"
},
{
"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
}
]
},
"Decimal": {
"description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)",
"type": "string"
},
"DevFundConfig": {
"type": "object",
"required": [
"address",
"asset_info",
"share"
],
"properties": {
"address": {
"description": "The dev fund address",
"type": "string"
},
"asset_info": {
"description": "Asset that devs want ASTRO to be swapped to",
"allOf": [
{
"$ref": "#/definitions/AssetInfo"
}
]
},
"share": {
"description": "The percentage of fees that go to the dev fund",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
}
},
"additionalProperties": false
},
"SecondReceiverConfig": {
"description": "This structure stores the parameters for the second receiver of fees.",
"type": "object",
"required": [
"second_fee_receiver",
"second_receiver_cut"
],
"properties": {
"second_fee_receiver": {
"description": "The second fee receiver contract address",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
},
"second_receiver_cut": {
"description": "The percentage of fees that go to the second fee receiver",
"allOf": [
{
"$ref": "#/definitions/Uint64"
}
]
}
},
"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"
},
"Uint64": {
"description": "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 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 `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```",
"type": "string"
}
}
},
"query_seize_config": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "SeizeConfig",
"type": "object",
"required": [
"receiver",
"seizable_assets"
],
"properties": {
"receiver": {
"description": "The address of the contract that will receive the seized tokens",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
},
"seizable_assets": {
"description": "The assets that can be seized",
"type": "array",
"items": {
"$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
}
]
}
}
}
}
}