Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func RegisterSendToEvmEncoder(cdc *codec.ProtoCodec) *wasm.MessageEncoders
- type AccountKeeper
- type EVMKeeper
- type Keeper
- func (k Keeper) CallEvm(ctx sdk.Context, to *common.Address, value *big.Int, data []byte) (*evmtypes.ExecutionResult, *evmtypes.ResultData, error)
- func (k Keeper) GetProtoCodec() *codec.ProtoCodec
- func (k Keeper) Logger() log.Logger
- func (k Keeper) SendToEvm(ctx sdk.Context, caller, contract string, recipient string, amount sdk.Int) (success bool, err error)
- func (k Keeper) SendToWasm(ctx sdk.Context, caller sdk.AccAddress, wasmContractAddr, recipient string, ...) error
- type SendToWasmEventHandler
- type WASMKeeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the bank MsgServer interface for the provided Keeper.
func RegisterSendToEvmEncoder ¶
func RegisterSendToEvmEncoder(cdc *codec.ProtoCodec) *wasm.MessageEncoders
RegisterSendToEvmEncoder needs to be registered in app setup to handle custom message callbacks
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) authexported.Account SetAccount(ctx sdk.Context, acc authexported.Account) NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) authexported.Account }
AccountKeeper defines the expected account keeper interface
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc *codec.CodecProxy, logger log.Logger, evmKeeper EVMKeeper, wasmKeeper WASMKeeper, accountKeeper AccountKeeper) *Keeper
func (Keeper) CallEvm ¶
func (k Keeper) CallEvm(ctx sdk.Context, to *common.Address, value *big.Int, data []byte) (*evmtypes.ExecutionResult, *evmtypes.ResultData, error)
callEvm execute an evm message from native module
func (Keeper) GetProtoCodec ¶
func (k Keeper) GetProtoCodec() *codec.ProtoCodec
type SendToWasmEventHandler ¶
type SendToWasmEventHandler struct {
Keeper
}
event __SendToWasmEventName(string wasmAddr,string recipient, string amount)
func NewSendToWasmEventHandler ¶
func NewSendToWasmEventHandler(k Keeper) *SendToWasmEventHandler
func (SendToWasmEventHandler) EventID ¶
func (h SendToWasmEventHandler) EventID() common.Hash
EventID Return the id of the log signature it handles
Click to show internal directories.
Click to hide internal directories.