Versions in this module Expand all Collapse all v0 v0.0.1 Jul 28, 2022 Changes in this version + func GetClient(target string) (types.Chain33Client, error) + func ParseError(err error) error + type AddrbookClient struct + func NewAddrbookCient(cli Cli) *AddrbookClient + func (c *AddrbookClient) QueryBlackList(req *atypes.ReqGetBlackList) (*atypes.ReplyGetBlackList, error) + func (c *AddrbookClient) QueryFriends(req *atypes.ReqGetFriends) (*atypes.ReplyGetFriends, error) + func (c *AddrbookClient) QueryServerGroup(req *atypes.ReqGetServerGroup) (*atypes.ReplyGetServerGroup, error) + func (c *AddrbookClient) QueryUser(req *atypes.ReqGetUser) (*atypes.ReplyGetUser, error) + func (c *AddrbookClient) UpdateBlackList(priv crypto.PrivKey, data []*atypes.ReqUpdateBlackList) ([]*types.ReceiptLog, error) + func (c *AddrbookClient) UpdateFriends(priv crypto.PrivKey, data []*atypes.ReqUpdateFriend) ([]*types.ReceiptLog, error) + func (c *AddrbookClient) UpdateServerGroup(priv crypto.PrivKey, data []*atypes.ReqUpdateServerGroup) ([]*types.ReceiptLog, error) + func (c *AddrbookClient) UpdateUser(priv crypto.PrivKey, data []*atypes.ReqUpdateField) ([]*types.ReceiptLog, error) + type Cli interface + GetLastHeader func() (int64, error) + Query func(fn string, msg proto.Message) ([]byte, error) + Send func(tx *types.Transaction) ([]*types.ReceiptLog, error) + SendAsync func(tx *types.Transaction) (txHash []byte, err error) + type ExecCli struct + func NewExecCli(cfgFile string) *ExecCli + func (c *ExecCli) GetLastHeader() (int64, error) + func (c *ExecCli) Query(fn string, msg proto.Message) ([]byte, error) + func (c *ExecCli) Send(tx *types.Transaction) ([]*types.ReceiptLog, error) + func (c *ExecCli) SendAsync(tx *types.Transaction) (txHash []byte, err error) + type GRPCCli struct + func NewGRPCCli(grpcAddr string) *GRPCCli + func (c *GRPCCli) GetLastHeader() (int64, error) + func (c *GRPCCli) Query(fn string, msg proto.Message) ([]byte, error) + func (c *GRPCCli) Send(tx *types.Transaction) ([]*types.ReceiptLog, error) + func (c *GRPCCli) SendAsync(tx *types.Transaction) (txHash []byte, err error)