test

package
Version: v1.65.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Nodes = []string{
		"1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4",
		"1JRNjdEqp4LJ5fqycUBm9ayCKSeeskgMKR",
		"1NLHPEcbTWWxxU3dGUZBhayjrCHD3psX7k",
		"1MCftFynyvG2F4ED5mdHYgziDxx6vDrScs",
	}
)

Nodes ...

Functions

This section is empty.

Types

type Cli

type Cli interface {
	Send(tx *types.Transaction, hexKey string) ([]*types.ReceiptLog, error)
	Query(fn string, msg proto.Message) ([]byte, error)
	GetExecAccount(addr string, exec string, symbol string) (*types.Account, error) // 获取 addr 在本合约中 exec 执行器下面的 symbol 子账户
}

Cli interface

type ExecCli

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

ExecCli ...

func NewExecCli

func NewExecCli() *ExecCli

NewExecCli ...

func (*ExecCli) GetExecAccount

func (c *ExecCli) GetExecAccount(addr string, exec string, symbol string) (*types.Account, error)

GetExecAccount ...

func (*ExecCli) Query

func (c *ExecCli) Query(fn string, msg proto.Message) ([]byte, error)

Query ...

func (*ExecCli) Send

func (c *ExecCli) Send(tx *types.Transaction, hexKey string) ([]*types.ReceiptLog, error)

Send ...

type GRPCCli

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

GRPCCli ...

func NewGRPCCli

func NewGRPCCli(grpcAddr string) *GRPCCli

NewGRPCCli ...

func (*GRPCCli) GetExecAccount

func (c *GRPCCli) GetExecAccount(addr string, exec string, symbol string) (*types.Account, error)

GetExecAccount ...

func (*GRPCCli) Query

func (c *GRPCCli) Query(fn string, msg proto.Message) ([]byte, error)

Query ...

func (*GRPCCli) Send

func (c *GRPCCli) Send(tx *types.Transaction, hexKey string) ([]*types.ReceiptLog, error)

Send ...

func (*GRPCCli) SendTx

func (c *GRPCCli) SendTx(tx *types.Transaction, hexKey string) (reply *types.Reply, err error)

SendTx ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL