Documentation ¶
Index ¶
- type Add
- type AddExecuteMsg
- type AllAccounts
- type AllAccountsResponse
- type AssetData
- type AssetInfo
- type AstroportAsset
- type AtomReceiverQuery
- type AtomWeightedReceiverQuery
- type Balance
- type BalanceResponse
- type ClockAddress
- type ClockAddressQuery
- type ClockQueryResponse
- type ContractState
- type ContractStateQuery
- type ContractStateQueryResponse
- type CovenantAddressQueryResponse
- type CovenantClockAddressQuery
- type CovenantHolderAddressQuery
- type CovenantInstantiateMsg
- type CreatePair
- type CreatePairMsg
- type Cw20BalanceResponse
- type Cw20Coin
- type Cw20QueryMsg
- type CwCoin
- type DepositorAddress
- type DepositorAddressQuery
- type DepositorContractQuery
- type DepositorICAAddressQuery
- type DepositorInterchainAccountAddress
- type DepositorInterchainAccountAddressQueryResponse
- type FactoryInstantiateMsg
- type FactoryPairResponse
- type HolderAddress
- type HolderAddressQuery
- type ICAQueryResponse
- type IcaExampleContractQuery
- type InstantiateMarketingInfo
- type InterchainAccountAddressQuery
- type InterchainAccountAddressQueryResponse
- type LPContractQuery
- type LPPositionQuery
- type Logo
- type LpAddress
- type LpAddressQuery
- type LpPositionQuery
- type LpPositionQueryResponse
- type LsAddress
- type LsAddressQuery
- type LsIcaQuery
- type MinterResponse
- type NativeCoin
- type NativeCoinRegistryInstantiateMsg
- type NativeToken
- type NativeTokenInstantiateMsg
- type Pair
- type PairConfig
- type PairInfo
- type PairQuery
- type PairType
- type PresetClockFields
- type PresetDepositorFields
- type PresetHolderFields
- type PresetIbcFee
- type PresetLpFields
- type PresetLsFields
- type ProvideLiqudityMsg
- type ProvideLiquidityStruct
- type QueryResponse
- type SingleSideLpLimits
- type StAtomReceiverQuery
- type StAtomWeightedReceiverQuery
- type StablePoolParams
- type StableswapInstantiateMsg
- type StrideIcaQuery
- type StrideIcaQueryResponse
- type Timeouts
- type Token
- type TransferAmount
- type TransferExecutionMsg
- type WeightedReceiver
- type WeightedReceiverAmount
- type WeightedReceiverResponse
- type WhitelistInstantiateMsg
- type Withdraw
- type WithdrawLiquidity
- type WithdrawLiquidityMessage
- type WithdrawMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Add ¶
type Add struct {
NativeCoins []NativeCoin `json:"native_coins"`
}
type AddExecuteMsg ¶
type AddExecuteMsg struct {
Add Add `json:"add"`
}
type AllAccounts ¶
type AllAccounts struct { }
type AllAccountsResponse ¶
type AllAccountsResponse struct {
Data []string `json:"all_accounts_response"`
}
type AssetInfo ¶
type AssetInfo struct { Token *Token `json:"token,omitempty"` NativeToken *NativeToken `json:"native_token,omitempty"` }
type AstroportAsset ¶
type AtomReceiverQuery ¶
type AtomReceiverQuery struct{}
type AtomWeightedReceiverQuery ¶
type AtomWeightedReceiverQuery struct {
AtomReceiver AtomReceiverQuery `json:"atom_receiver"`
}
type BalanceResponse ¶
type BalanceResponse struct {
Balance string `json:"balance"`
}
type ClockAddress ¶
type ClockAddress struct{}
type ClockAddressQuery ¶
type ClockAddressQuery struct {
ClockAddress ClockAddress `json:"clock_address"`
}
type ClockQueryResponse ¶
type ClockQueryResponse struct {
Data string `json:"data"`
}
type ContractState ¶
type ContractState struct{}
type ContractStateQuery ¶
type ContractStateQuery struct {
ContractState ContractState `json:"contract_state"`
}
type ContractStateQueryResponse ¶
type ContractStateQueryResponse struct {
Data string `json:"data"`
}
type CovenantAddressQueryResponse ¶
type CovenantAddressQueryResponse struct {
Data string `json:"data"`
}
type CovenantClockAddressQuery ¶
type CovenantClockAddressQuery struct {
Addr string `json:"address"`
}
type CovenantHolderAddressQuery ¶
type CovenantHolderAddressQuery struct {
Addr string `json:"address"`
}
type CovenantInstantiateMsg ¶
type CovenantInstantiateMsg struct { Label string `json:"label"` PresetClock PresetClockFields `json:"preset_clock_fields"` PresetLs PresetLsFields `json:"preset_ls_fields"` PresetDepositor PresetDepositorFields `json:"preset_depositor_fields"` PresetLp PresetLpFields `json:"preset_lp_fields"` PresetHolder PresetHolderFields `json:"preset_holder_fields"` PoolAddress string `json:"pool_address"` PresetIbcFee PresetIbcFee `json:"preset_ibc_fee"` Timeouts Timeouts `json:"timeouts"` }
type CreatePair ¶
type CreatePairMsg ¶
type CreatePairMsg struct {
CreatePair CreatePair `json:"create_pair"`
}
type Cw20BalanceResponse ¶
type Cw20BalanceResponse struct {
Data BalanceResponse `json:"data"`
}
type Cw20QueryMsg ¶
type Cw20QueryMsg struct {
Balance Balance `json:"balance"`
}
type DepositorAddress ¶
type DepositorAddress struct{}
type DepositorAddressQuery ¶
type DepositorAddressQuery struct {
DepositorAddress DepositorAddress `json:"depositor_address"`
}
type DepositorContractQuery ¶
type DepositorContractQuery struct {
ClockAddress ClockAddressQuery `json:"clock_address"`
}
type DepositorICAAddressQuery ¶
type DepositorICAAddressQuery struct {
DepositorInterchainAccountAddress DepositorInterchainAccountAddress `json:"depositor_interchain_account_address"`
}
Queries
type DepositorInterchainAccountAddress ¶
type DepositorInterchainAccountAddress struct{}
type DepositorInterchainAccountAddressQueryResponse ¶
type DepositorInterchainAccountAddressQueryResponse struct {
DepositorInterchainAccountAddress string `json:"depositor_interchain_account_address"`
}
type FactoryInstantiateMsg ¶
type FactoryInstantiateMsg struct { PairConfigs []PairConfig `json:"pair_configs"` TokenCodeId uint64 `json:"token_code_id"` FeeAddress *string `json:"fee_address"` GeneratorAddress *string `json:"generator_address"` Owner string `json:"owner"` WhitelistCodeId uint64 `json:"whitelist_code_id"` CoinRegistryAddress string `json:"coin_registry_address"` }
astroport factory
type FactoryPairResponse ¶
type FactoryPairResponse struct {
Data PairInfo `json:"data"`
}
type HolderAddress ¶
type HolderAddress struct{}
type HolderAddressQuery ¶
type HolderAddressQuery struct {
HolderAddress HolderAddress `json:"holder_address"`
}
type ICAQueryResponse ¶
type ICAQueryResponse struct {
Data DepositorInterchainAccountAddressQueryResponse `json:"data"`
}
type IcaExampleContractQuery ¶
type IcaExampleContractQuery struct {
InterchainAccountAddress InterchainAccountAddressQuery `json:"interchain_account_address,omitempty"`
}
A query against the Neutron example contract. Note the usage of `omitempty` on fields. This means that if that field has no value, it will not have a key in the serialized representaiton of the struct, thus mimicing the serialization of Rust enums.
type InterchainAccountAddressQueryResponse ¶
type InterchainAccountAddressQueryResponse struct {
InterchainAccountAddress string `json:"interchain_account_address"`
}
type LPContractQuery ¶
type LPContractQuery struct {
ClockAddress ClockAddressQuery `json:"clock_address"`
}
type LPPositionQuery ¶
type LPPositionQuery struct {
LpPosition LpPositionQuery `json:"lp_position"`
}
type LpAddressQuery ¶
type LpAddressQuery struct {
LpAddress LpAddress `json:"lp_address"`
}
type LpPositionQuery ¶
type LpPositionQuery struct{}
type LpPositionQueryResponse ¶
type LpPositionQueryResponse struct {
Data string `json:"data"`
}
type LsAddressQuery ¶
type LsAddressQuery struct {
LsAddress LsAddress `json:"ls_address"`
}
type MinterResponse ¶
type NativeCoin ¶
type NativeCoinRegistryInstantiateMsg ¶
type NativeCoinRegistryInstantiateMsg struct {
Owner string `json:"owner"`
}
type NativeToken ¶
type NativeToken struct {
Denom string `json:"denom"`
}
type NativeTokenInstantiateMsg ¶
type NativeTokenInstantiateMsg struct { Name string `json:"name"` Symbol string `json:"symbol"` Decimals uint8 `json:"decimals"` InitialBalances []Cw20Coin `json:"initial_balances"` Mint *MinterResponse `json:"mint"` Marketing *InstantiateMarketingInfo `json:"marketing"` }
astroport native token
type PairConfig ¶
type PairType ¶
type PairType struct {
// Xyk struct{} `json:"xyk,omitempty"`
Stable struct{} `json:"stable,omitempty"`
}
type PresetClockFields ¶
type PresetDepositorFields ¶
type PresetDepositorFields struct { GaiaNeutronIBCTransferChannelId string `json:"gaia_neutron_ibc_transfer_channel_id"` NeutronGaiaConnectionId string `json:"neutron_gaia_connection_id"` GaiaStrideIBCTransferChannelId string `json:"gaia_stride_ibc_transfer_channel_id"` DepositorCode uint64 `json:"depositor_code"` Label string `json:"label"` StAtomReceiverAmount WeightedReceiverAmount `json:"st_atom_receiver_amount"` AtomReceiverAmount WeightedReceiverAmount `json:"atom_receiver_amount"` AutopilotFormat string `json:"autopilot_format"` NeutronAtomIbcDenom string `json:"neutron_atom_ibc_denom"` }
type PresetHolderFields ¶
type PresetIbcFee ¶
type PresetLpFields ¶
type PresetLpFields struct { SlippageTolerance string `json:"slippage_tolerance,omitempty"` Autostake bool `json:"autostake,omitempty"` Assets AssetData `json:"assets"` LpCode uint64 `json:"lp_code"` Label string `json:"label"` SingleSideLpLimits SingleSideLpLimits `json:"single_side_lp_limits"` ExpectedLsTokenAmount string `json:"expected_ls_token_amount"` AllowedReturnDelta string `json:"allowed_return_delta"` ExpectedNativeTokenAmount string `json:"expected_native_token_amount"` }
type PresetLsFields ¶
type ProvideLiqudityMsg ¶
type ProvideLiqudityMsg struct {
ProvideLiquidity ProvideLiquidityStruct `json:"provide_liquidity"`
}
type ProvideLiquidityStruct ¶
type ProvideLiquidityStruct struct { Assets []AstroportAsset `json:"assets"` SlippageTolerance string `json:"slippage_tolerance"` AutoStake bool `json:"auto_stake"` Receiver string `json:"receiver"` }
type QueryResponse ¶
type QueryResponse struct {
Data InterchainAccountAddressQueryResponse `json:"data"`
}
type SingleSideLpLimits ¶
type StAtomReceiverQuery ¶
type StAtomReceiverQuery struct{}
type StAtomWeightedReceiverQuery ¶
type StAtomWeightedReceiverQuery struct {
StAtomReceiver StAtomReceiverQuery `json:"st_atom_receiver"`
}
type StablePoolParams ¶
type StableswapInstantiateMsg ¶
type StableswapInstantiateMsg struct { TokenCodeId uint64 `json:"token_code_id"` FactoryAddr string `json:"factory_addr"` AssetInfos []AssetInfo `json:"asset_infos"` InitParams []byte `json:"init_params"` }
astroport stableswap
type StrideIcaQuery ¶
type StrideIcaQuery struct{}
type StrideIcaQueryResponse ¶
type StrideIcaQueryResponse struct {
Addr string `json:"data"`
}
type TransferAmount ¶
type TransferAmount struct {
Amount uint64 `json:"amount,string"`
}
Rust type here is Uint128 which can't safely be serialized to json int. It needs to go as a string over the wire.
type TransferExecutionMsg ¶
type TransferExecutionMsg struct {
Transfer TransferAmount `json:"transfer"`
}
Execute
type WeightedReceiver ¶
Instantiation
type WeightedReceiverAmount ¶
type WeightedReceiverAmount struct {
Amount string `json:"amount"`
}
type WeightedReceiverResponse ¶
type WeightedReceiverResponse struct {
Data WeightedReceiver `json:"data"`
}
type WhitelistInstantiateMsg ¶
type WhitelistInstantiateMsg struct { Admins []string `json:"admins"` Mutable bool `json:"mutable"` }
astroport whitelist
type WithdrawLiquidity ¶
type WithdrawLiquidity struct{}
type WithdrawLiquidityMessage ¶
type WithdrawLiquidityMessage struct {
WithdrawLiquidity WithdrawLiquidity `json:"withdraw_liquidity"`
}
type WithdrawMessage ¶
type WithdrawMessage struct {
Withdraw Withdraw `json:"withdraw"`
}
Click to show internal directories.
Click to hide internal directories.