wasmbinding

package
v0.6.2-patch Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

README

CosmWasm support

This package allows for custom queries and custom messages sends from contract.

What is supported
  • Queries:
    • InterchainQueryResult - Get the result of a registered interchain query by query_id
    • InterchainAccountAddress - Get the interchain account address by owner_id and connection_id
    • RegisteredInterchainQueries - all set of registered interchain queries.
    • RegisteredInterchainQuery - registered interchain query with specified query_id
  • Messages:
    • RegisterInterchainAccount - register an interchain account
    • SubmitTx - submit a transaction for execution on a remote chain
    • RegisterInterchainQuery - register an interchain query
    • UpdateInterchainQuery - update an interchain query
    • RemoveInterchainQuery - remove an interchain query

Command line interface (CLI)

  • Commands
  nolusd tx wasm -h
  • Query
  nolusd query wasm -h

Tests

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomMessageDecorator

func CustomMessageDecorator(
	ictx *ictxkeeper.Keeper,
	icq *icqkeeper.Keeper,
	transferKeeper transferwrapperkeeper.KeeperTransferWrapper,
	contractmanagerKeeper *contractmanagerkeeper.Keeper,
) func(messenger wasmkeeper.Messenger) wasmkeeper.Messenger

func CustomQuerier

func CustomQuerier(qp *QueryPlugin) func(ctx sdk.Context, request json.RawMessage) ([]byte, error)

CustomQuerier returns a function that is an implementation of custom querier mechanism for specific messages.

func RegisterCustomPlugins

func RegisterCustomPlugins(
	ictxKeeper *interchaintransactionsmodulekeeper.Keeper,
	icqKeeper *interchainqueriesmodulekeeper.Keeper,
	transfer transfer.KeeperTransferWrapper,
	feeRefunderKeeper *feerefunderkeeper.Keeper,
	contractmanagerKeeper *contractmanagerkeeper.Keeper,
) []wasmkeeper.Option

RegisterCustomPlugins returns wasmkeeper.Option that we can use to connect handlers for implemented custom queries and messages to the App.

Types

type CustomMessenger

type CustomMessenger struct {
	Keeper        ictxkeeper.Keeper
	Wrapped       wasmkeeper.Messenger
	Ictxmsgserver ictxtypes.MsgServer
	Icqmsgserver  icqtypes.MsgServer

	ContractmanagerKeeper *contractmanagerkeeper.Keeper
	// contains filtered or unexported fields
}

func (*CustomMessenger) DispatchMsg

func (m *CustomMessenger) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, msg wasmvmtypes.CosmosMsg) ([]sdk.Event, [][]byte, [][]*types.Any, error)

type QueryPlugin

type QueryPlugin struct {
	// contains filtered or unexported fields
}

func NewQueryPlugin

func NewQueryPlugin(
	icaControllerKeeper *icacontrollerkeeper.Keeper,
	icqKeeper *icqkeeper.Keeper,
	feeRefunderKeeper *feerefunderkeeper.Keeper,
	contractmanagerKeeper *contractmanagerkeeper.Keeper,
) *QueryPlugin

NewQueryPlugin returns a reference to a new QueryPlugin.

func (*QueryPlugin) GetFailures added in v0.5.0

func (qp *QueryPlugin) GetFailures(ctx sdk.Context, address string, pagination *sdkquery.PageRequest) (*bindings.FailuresResponse, error)

func (*QueryPlugin) GetInterchainQueryResult

func (qp *QueryPlugin) GetInterchainQueryResult(ctx sdk.Context, queryID uint64) (*bindings.QueryRegisteredQueryResultResponse, error)

func (*QueryPlugin) GetMinIbcFee added in v0.3.0

func (*QueryPlugin) GetRegisteredInterchainQueries

func (qp *QueryPlugin) GetRegisteredInterchainQueries(ctx sdk.Context, query *bindings.QueryRegisteredQueriesRequest) (*bindings.QueryRegisteredQueriesResponse, error)

func (*QueryPlugin) GetRegisteredInterchainQuery

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL