Versions in this module Expand all Collapse all v2 v2.3.1 Jul 26, 2023 Changes in this version + func InitChainClient() error + func InitChainClientMock() error + type ChainClient struct + func (c *ChainClient) CheckChain() bool + func (c *ChainClient) GetTxProve(blockHeight uint64, chainRid string, tx *common.TransactionInfo) string + func (c *ChainClient) InvokeContract(chainRid, contractName, method string, withSyncResult bool, kvJsonStr string, ...) ([]byte, *common.TransactionInfo, error) + type ChainClientItfc interface + CheckChain func() bool + GetTxProve func(blockHeight uint64, chainRid string, tx *common.TransactionInfo) string + InvokeContract func(chainRid, contractName, method string, withSyncResult bool, kvJsonStr string, ...) ([]byte, *common.TransactionInfo, error) + var ChainClientV1 ChainClientItfc + type ChainClientMock struct + func (c *ChainClientMock) CheckChain() bool + func (c *ChainClientMock) GetTxProve(blockHeight uint64, chainId string, tx *common.TransactionInfo) string + func (c *ChainClientMock) InvokeContract(chainId, contractName, method string, withSyncResult bool, kvJsonStr string, ...) ([]byte, *common.TransactionInfo, error)