Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func RegisterSendToEvmEncoder(cdc *codec.ProtoCodec) *wasm.MessageEncoders
- type AccountKeeper
- type BankKeeper
- type CallToWasmEventHandler
- type EVMKeeper
- type Keeper
- func (k Keeper) CallEvm(ctx sdk.Context, callerAddr common.Address, to *common.Address, value *big.Int, ...) (*evmtypes.ExecutionResult, *evmtypes.ResultData, error)
- func (k Keeper) CallToEvm(ctx sdk.Context, caller, contract string, calldata string, value sdk.Int) (response string, err error)
- func (k Keeper) CallToWasm(ctx sdk.Context, caller sdk.AccAddress, wasmContractAddr string, value sdk.Int, ...) 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 BankKeeper ¶ added in v0.1.2
type BankKeeper interface {
SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
}
type CallToWasmEventHandler ¶ added in v0.1.2
type CallToWasmEventHandler struct {
Keeper
}
event __OKBCCallToWasm(string wasmAddr,uint256 value, string calldata)
func NewCallToWasmEventHandler ¶ added in v0.1.2
func NewCallToWasmEventHandler(k Keeper) *CallToWasmEventHandler
func (CallToWasmEventHandler) EventID ¶ added in v0.1.2
func (h CallToWasmEventHandler) EventID() common.Hash
EventID Return the id of the log signature it handles
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, bk BankKeeper) *Keeper
func (Keeper) CallEvm ¶
func (k Keeper) CallEvm(ctx sdk.Context, callerAddr common.Address, to *common.Address, value *big.Int, data []byte) (*evmtypes.ExecutionResult, *evmtypes.ResultData, error)
callEvm execute an evm message from native module
func (Keeper) CallToEvm ¶ added in v0.1.2
func (k Keeper) CallToEvm(ctx sdk.Context, caller, contract string, calldata string, value sdk.Int) (response string, err error)
wasm call evm
func (Keeper) CallToWasm ¶ added in v0.1.2
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.