types

package
v4.2.2-testnet Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ModuleName     = "ibchooks"
	RouteKey       = ModuleName
	StoreKey       = "hooks-for-ibc" // not using the module name because of collisions with key "ibc"
	IBCCallbackKey = "ibc_callback"
	SenderPrefix   = "ibc-wasm-hook-intermediary"
)

Variables

View Source
var (
	ErrBadMetadataFormatMsg = "wasm metadata not properly formatted for: '%v'. %s"
	ErrBadExecutionMsg      = "cannot execute contract: %v"

	ErrMsgValidation = errors.Register("wasm-hooks", 2, "error in wasmhook message validation")
	ErrMarshaling    = errors.Register("wasm-hooks", 3, "cannot marshal the ICS20 packet")
	ErrInvalidPacket = errors.Register("wasm-hooks", 4, "invalid packet data")
	ErrBadResponse   = errors.Register("wasm-hooks", 5, "cannot create response")
	ErrWasmError     = errors.Register("wasm-hooks", 6, "wasm error")
	ErrBadSender     = errors.Register("wasm-hooks", 7, "bad sender")
)

Functions

This section is empty.

Types

type AccountKeeper

type AccountKeeper interface {
	NewAccount(context.Context, sdk.AccountI) sdk.AccountI

	GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
	SetAccount(ctx context.Context, acc sdk.AccountI)
}

type ChannelKeeper

type ChannelKeeper interface {
	GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool)
}

ChannelKeeper defines the expected IBC channel keeper

Jump to

Keyboard shortcuts

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