libwasm

package
v2.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ErrUnrecognizedMessage = liberr.Error("unrecognized message type")

Variables

This section is empty.

Functions

func NewRouterMessageDecorator added in v2.4.4

func NewRouterMessageDecorator(
	log log.Logger,
	legacyFallback Messenger[wasmvmtypes.CosmosMsg],
	scheduler Messenger[schedulerbindings.Message],
	skyway Messenger[skywaybindings.Message],
	tokenfactory Messenger[tfbindings.Message],
) func(old wasmkeeper.Messenger) wasmkeeper.Messenger

Types

type CustomMessage

type CustomMessage struct {
	Scheduler    *schedulerbindings.Message `json:"scheduler_msg,omitempty"`
	Skyway       *skywaybindings.Message    `json:"skyway_msg,omitempty"`
	TokenFactory *tfbindings.Message        `json:"token_factory_msg,omitempty"`
}

type CustomQuery

type CustomQuery struct {
	Scheduler    *schedulerbindings.Query `json:"scheduler_query,omitempty"`
	Skyway       *skywaybindings.Query    `json:"skyway_query,omitempty"`
	TokenFactory *tfbindings.Query        `json:"token_factory_query,omitempty"`
}

type Messenger

type Messenger[T any] interface {
	DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, t T) (events []sdk.Event, data [][]byte, msgResponses [][]*codectypes.Any, err error)
}

type Querier

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

func (Querier) CustomQuerier

func (q Querier) CustomQuerier(ctx sdk.Context, request json.RawMessage) ([]byte, error)

Jump to

Keyboard shortcuts

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