Documentation ¶
Index ¶
- func Init(name string, s types.RPCServer)
- type Grpc
- func (c Grpc) Call(ctx context.Context, in evmtypes.EvmContractCallReq) (*types.UnsignTx, error)
- func (c Grpc) Create(ctx context.Context, in evmtypes.EvmContractCreateReq) (*types.UnsignTx, error)
- func (c Grpc) Transfer(ctx context.Context, in evmtypes.EvmContractTransferReq, isWithdraw bool) (*types.UnsignTx, error)
- type Jrpc
- func (c *Jrpc) EvmCallTx(parm *evm.EvmContractCallReq, result *interface{}) error
- func (c *Jrpc) EvmCreateTx(parm *evm.EvmContractCreateReq, result *interface{}) error
- func (c *Jrpc) EvmTransferTx(parm *evm.EvmContractTransferReq, result *interface{}) error
- func (c *Jrpc) EvmWithdrawTx(parm *evm.EvmContractTransferReq, result *interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Grpc ¶
type Grpc struct {
// contains filtered or unexported fields
}
Grpc grpc struct
type Jrpc ¶
type Jrpc struct {
// contains filtered or unexported fields
}
Jrpc json rpc struct
func (*Jrpc) EvmCallTx ¶
func (c *Jrpc) EvmCallTx(parm *evm.EvmContractCallReq, result *interface{}) error
EvmCallTx 调用Evm合约接口
func (*Jrpc) EvmCreateTx ¶
func (c *Jrpc) EvmCreateTx(parm *evm.EvmContractCreateReq, result *interface{}) error
EvmCreateTx 创建Evm合约接口
func (*Jrpc) EvmTransferTx ¶
func (c *Jrpc) EvmTransferTx(parm *evm.EvmContractTransferReq, result *interface{}) error
EvmTransferTx Evm转账接口
func (*Jrpc) EvmWithdrawTx ¶
func (c *Jrpc) EvmWithdrawTx(parm *evm.EvmContractTransferReq, result *interface{}) error
EvmWithdrawTx Evm转账接口
Click to show internal directories.
Click to hide internal directories.