Documentation ¶
Index ¶
- func Init(name string, s types.RPCServer)
- type Grpc
- func (c Grpc) CreateCallTx(ctx context.Context, in evmtypes.EvmContractCallReq) (*types.UnsignTx, error)
- func (c Grpc) CreateDeployTx(ctx context.Context, in evmtypes.EvmContractCreateReq) (*types.UnsignTx, error)
- func (c Grpc) CreateTransferOnlyTx(ctx context.Context, in evmtypes.EvmTransferOnlyReq) (*types.UnsignTx, error)
- type Jrpc
- func (c *Jrpc) CalcNewContractAddr(parm *evm.EvmCalcNewContractAddrReq, result *interface{}) error
- func (c *Jrpc) CreateCallTx(parm *evm.EvmContractCallReq, result *interface{}) error
- func (c *Jrpc) CreateDeployTx(parm *evm.EvmContractCreateReq, result *interface{}) error
- func (c *Jrpc) CreateTransferOnlyTx(parm *evm.EvmTransferOnlyReq, 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
func (Grpc) CreateCallTx ¶ added in v1.65.3
func (Grpc) CreateDeployTx ¶ added in v1.65.3
func (c Grpc) CreateDeployTx(ctx context.Context, in evmtypes.EvmContractCreateReq) (*types.UnsignTx, error)
CreateEvmCallTx 创建未签名的部署合约交易
func (Grpc) CreateTransferOnlyTx ¶ added in v1.65.3
type Jrpc ¶
type Jrpc struct {
// contains filtered or unexported fields
}
Jrpc json rpc struct
func (*Jrpc) CalcNewContractAddr ¶ added in v1.65.3
func (c *Jrpc) CalcNewContractAddr(parm *evm.EvmCalcNewContractAddrReq, result *interface{}) error
CalcNewContractAddr Evm部署合约的地址
func (*Jrpc) CreateCallTx ¶ added in v1.65.3
func (c *Jrpc) CreateCallTx(parm *evm.EvmContractCallReq, result *interface{}) error
CreateCallTx 创建调用EVM合约交易
func (*Jrpc) CreateDeployTx ¶ added in v1.65.3
func (c *Jrpc) CreateDeployTx(parm *evm.EvmContractCreateReq, result *interface{}) error
EvmCreateTx 创建Evm合约接口
func (*Jrpc) CreateTransferOnlyTx ¶ added in v1.65.3
func (c *Jrpc) CreateTransferOnlyTx(parm *evm.EvmTransferOnlyReq, result *interface{}) error
CreateTransferOnlyTx 创建只进行evm内部转账的交易
Click to show internal directories.
Click to hide internal directories.