Documentation
¶
Index ¶
- Variables
- type Cli
- type ExecCli
- type GRPCCli
- func (c *GRPCCli) GetExecAccount(addr string, exec string, symbol string) (*types.Account, error)
- func (c *GRPCCli) Query(fn string, msg proto.Message) ([]byte, error)
- func (c *GRPCCli) Send(tx *types.Transaction, hexKey string) ([]*types.ReceiptLog, error)
- func (c *GRPCCli) SendTx(tx *types.Transaction, hexKey string) (reply *types.Reply, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Nodes = []string{
"1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4",
"1JRNjdEqp4LJ5fqycUBm9ayCKSeeskgMKR",
"1NLHPEcbTWWxxU3dGUZBhayjrCHD3psX7k",
"1MCftFynyvG2F4ED5mdHYgziDxx6vDrScs",
"1PTGVR7TUm1MJUH7M1UNcKBGMvfJ7nCrnN",
}
)
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 (*ExecCli) GetExecAccount ¶
GetExecAccount ...
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 (*GRPCCli) GetExecAccount ¶
GetExecAccount ...
func (*GRPCCli) Send ¶
func (c *GRPCCli) Send(tx *types.Transaction, hexKey string) ([]*types.ReceiptLog, error)
Send ...