rpc

package
v0.0.0-...-0abe6a2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(name string, s types.RPCServer)

Init init grpc param

Types

type Grpc

type Grpc struct {
	// contains filtered or unexported fields
}

Grpc grpc struct

func (Grpc) Call

func (c Grpc) Call(ctx context.Context, in evmtypes.EvmContractCallReq) (*types.UnsignTx, error)

func (Grpc) Create

func (c Grpc) Create(ctx context.Context, in evmtypes.EvmContractCreateReq) (*types.UnsignTx, error)

CreateEvmCallTx 创建未签名的调用evm交易

func (Grpc) Transfer

func (c Grpc) Transfer(ctx context.Context, in evmtypes.EvmContractTransferReq, isWithdraw bool) (*types.UnsignTx, error)

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转账接口

Jump to

Keyboard shortcuts

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