Documentation ¶
Index ¶
- type CancelSoftwareUpgradeProposal
- type NeutronMsg
- type NeutronQuery
- type ParamChangeProposal
- type Plan
- type ProtobufAny
- type QueryInterchainAccountAddressRequest
- type QueryInterchainAccountAddressResponse
- type QueryRegisteredQueriesRequest
- type QueryRegisteredQueriesResponse
- type QueryRegisteredQueryRequest
- type QueryRegisteredQueryResponse
- type QueryRegisteredQueryResultRequest
- type QueryRegisteredQueryResultResponse
- type QueryResult
- type RegisterInterchainAccount
- type RegisterInterchainAccountResponse
- type RegisterInterchainQuery
- type RegisterInterchainQueryResponse
- type RegisteredQuery
- type RemoveInterchainQuery
- type RemoveInterchainQueryResponse
- type SoftwareUpgradeProposal
- type StorageValue
- type SubmitTx
- type SubmitTxResponse
- type UpdateInterchainQuery
- type UpdateInterchainQueryResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NeutronMsg ¶
type NeutronMsg struct { SubmitTx *SubmitTx `json:"submit_tx,omitempty"` RegisterInterchainAccount *RegisterInterchainAccount `json:"register_interchain_account,omitempty"` RegisterInterchainQuery *RegisterInterchainQuery `json:"register_interchain_query,omitempty"` UpdateInterchainQuery *UpdateInterchainQuery `json:"update_interchain_query,omitempty"` RemoveInterchainQuery *RemoveInterchainQuery `json:"remove_interchain_query,omitempty"` IBCTransfer *transferwrappertypes.MsgTransfer `json:"ibc_transfer,omitempty"` }
NeutronMsg is used like a sum type to hold one of custom Neutron messages. Follow https://github.com/neutron-org/neutron-contracts/tree/main/packages/bindings/src/msg.rs for more information.
type NeutronQuery ¶
type NeutronQuery struct { // Registered Interchain Query Result for specified QueryID InterchainQueryResult *QueryRegisteredQueryResultRequest `json:"interchain_query_result,omitempty"` // Interchain account address for specified ConnectionID and OwnerAddress InterchainAccountAddress *QueryInterchainAccountAddressRequest `json:"interchain_account_address,omitempty"` // RegisteredInterchainQueries RegisteredInterchainQueries *QueryRegisteredQueriesRequest `json:"registered_interchain_queries,omitempty"` // RegisteredInterchainQuery RegisteredInterchainQuery *QueryRegisteredQueryRequest `json:"registered_interchain_query,omitempty"` }
NeutronQuery contains neutron custom queries.
type ParamChangeProposal ¶
type ParamChangeProposal struct { Title string `json:"title"` Description string `json:"description"` ParamChanges []paramChange.ParamChange `json:"param_changes"` }
type ProtobufAny ¶
ProtobufAny is a hack-struct to serialize protobuf Any message into JSON object.
type QueryInterchainAccountAddressRequest ¶
type QueryInterchainAccountAddressRequest struct { // owner_address is the owner of the interchain account on the controller chain OwnerAddress string `json:"owner_address,omitempty"` // interchain_account_id is an identifier of your interchain account from which you want to execute msgs InterchainAccountID string `json:"interchain_account_id,omitempty"` // connection_id is an IBC connection identifier between Neutron and remote chain ConnectionID string `json:"connection_id,omitempty"` }
type QueryInterchainAccountAddressResponse ¶
type QueryInterchainAccountAddressResponse struct { // The corresponding interchain account address on the host chain InterchainAccountAddress string `json:"interchain_account_address,omitempty"` }
Query response for an interchain account address.
type QueryRegisteredQueriesRequest ¶
type QueryRegisteredQueriesRequest struct { Owners []string `json:"owners,omitempty"` ConnectionID string `json:"connection_id,omitempty"` Pagination *query.PageRequest `json:"pagination,omitempty"` }
type QueryRegisteredQueriesResponse ¶
type QueryRegisteredQueriesResponse struct {
RegisteredQueries []RegisteredQuery `json:"registered_queries"`
}
type QueryRegisteredQueryRequest ¶
type QueryRegisteredQueryRequest struct {
QueryID uint64 `json:"query_id,omitempty"`
}
type QueryRegisteredQueryResponse ¶
type QueryRegisteredQueryResponse struct {
RegisteredQuery *RegisteredQuery `json:"registered_query,omitempty"`
}
type QueryRegisteredQueryResultRequest ¶
type QueryRegisteredQueryResultRequest struct {
QueryID uint64 `json:"query_id,omitempty"`
}
type QueryRegisteredQueryResultResponse ¶
type QueryRegisteredQueryResultResponse struct {
Result *QueryResult `json:"result,omitempty"`
}
type QueryResult ¶
type QueryResult struct { KvResults []*StorageValue `json:"kv_results,omitempty"` Height uint64 `json:"height,omitempty"` Revision uint64 `json:"revision,omitempty"` }
type RegisterInterchainAccount ¶
type RegisterInterchainAccount struct { ConnectionId string `json:"connection_id"` InterchainAccountId string `json:"interchain_account_id"` }
RegisterInterchainAccount creates account on remote chain.
type RegisterInterchainAccountResponse ¶
type RegisterInterchainAccountResponse struct{}
RegisterInterchainAccountResponse holds response for RegisterInterchainAccount.
type RegisterInterchainQuery ¶
type RegisterInterchainQuery struct { QueryType string `json:"query_type"` Keys []*icqtypes.KVKey `json:"keys"` TransactionsFilter string `json:"transactions_filter"` ConnectionId string `json:"connection_id"` UpdatePeriod uint64 `json:"update_period"` }
RegisterInterchainQuery creates a query for remote chain.
type RegisterInterchainQueryResponse ¶
type RegisterInterchainQueryResponse struct {
Id uint64 `json:"id"`
}
RegisterInterchainQueryResponse holds response for RegisterInterchainQuery.
type RegisteredQuery ¶
type RegisteredQuery struct { // The unique id of the registered query. ID uint64 `json:"id"` // The address that registered the query. Owner string `json:"owner"` // The KV-storage keys for which we want to get values from remote chain Keys []*types.KVKey `json:"keys"` // The filter for transaction search ICQ TransactionsFilter string `json:"transactions_filter"` // The query type identifier (i.e. 'kv' or 'tx' for now). QueryType string `json:"query_type"` // The IBC connection ID for getting ConsensusState to verify proofs. ConnectionID string `json:"connection_id"` // Parameter that defines how often the query must be updated. UpdatePeriod uint64 `json:"update_period"` // The local chain last block height when the query result was updated. LastSubmittedResultLocalHeight uint64 `json:"last_submitted_result_local_height"` // The remote chain last block height when the query result was updated. LastSubmittedResultRemoteHeight uint64 `json:"last_submitted_result_remote_height"` // Amount of coins deposited for the query. Deposit sdktypes.Coins `json:"deposit"` // Timeout before query becomes available for everybody to remove. SubmitTimeout uint64 `json:"submit_timeout"` }
func (RegisteredQuery) MarshalJSON ¶
func (rq RegisteredQuery) MarshalJSON() ([]byte, error)
type RemoveInterchainQuery ¶
type RemoveInterchainQuery struct {
QueryId uint64 `json:"query_id"`
}
type RemoveInterchainQueryResponse ¶
type RemoveInterchainQueryResponse struct{}
type SoftwareUpgradeProposal ¶
type StorageValue ¶
type StorageValue struct { StoragePrefix string `json:"storage_prefix,omitempty"` Key []byte `json:"key"` Value []byte `json:"value"` }
func (StorageValue) MarshalJSON ¶
func (sv StorageValue) MarshalJSON() ([]byte, error)
type SubmitTx ¶
type SubmitTx struct { ConnectionId string `json:"connection_id"` InterchainAccountId string `json:"interchain_account_id"` Msgs []ProtobufAny `json:"msgs"` Memo string `json:"memo"` Timeout uint64 `json:"timeout"` Fee feetypes.Fee `json:"fee"` }
SubmitTx submits interchain transaction on a remote chain.
type SubmitTxResponse ¶
type SubmitTxResponse struct { // SequenceId is a channel's sequence_id for outgoing ibc packet. Unique per a channel. SequenceId uint64 `json:"sequence_id"` // Channel is a src channel on neutron side transaction was submitted from Channel string `json:"channel"` }
SubmitTxResponse holds response from SubmitTx.
type UpdateInterchainQuery ¶
type UpdateInterchainQueryResponse ¶
type UpdateInterchainQueryResponse struct{}