Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModuleName = "ibchooks" 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 = sdkerrors.Register("wasm-hooks", 2, "error in wasmhook message validation") ErrMarshaling = sdkerrors.Register("wasm-hooks", 3, "cannot marshal the ICS20 packet") ErrInvalidPacket = sdkerrors.Register("wasm-hooks", 4, "invalid packet data") ErrBadResponse = sdkerrors.Register("wasm-hooks", 5, "cannot create response") ErrWasmError = sdkerrors.Register("wasm-hooks", 6, "wasm error") ErrBadSender = sdkerrors.Register("wasm-hooks", 7, "bad sender") )
Functions ¶
This section is empty.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { NewAccount(sdk.Context, authtypes.AccountI) authtypes.AccountI GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI SetAccount(ctx sdk.Context, acc authtypes.AccountI) GetModuleAddressAndPermissions(moduleName string) (addr sdk.AccAddress, permissions []string) }
AccountKeeper defines the account contract that must be fulfilled when creating a x/ibc-hooks keeper.
Click to show internal directories.
Click to hide internal directories.