Documentation ¶
Overview ¶
Package mock_client is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) DeployContract(contract []byte, opts *rpcx.TransactOpts) (*types.Address, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GenerateContractTx(vmType pb.TransactionData_VMType, address *types.Address, method string, ...) (*pb.BxhTransaction, error)
- func (m *MockClient) GenerateIBTPTx(ibtp *pb.IBTP) (*pb.BxhTransaction, error)
- func (m *MockClient) GetAccountBalance(address string) (*pb.Response, error)
- func (m *MockClient) GetBlock(value string, blockType pb.GetBlockRequest_Type) (*pb.Block, error)
- func (m *MockClient) GetBlockHeader(ctx context.Context, begin, end uint64, ch chan<- *pb.BlockHeader) error
- func (m *MockClient) GetBlocks(start, end uint64) (*pb.GetBlocksResponse, error)
- func (m *MockClient) GetChainMeta() (*pb.ChainMeta, error)
- func (m *MockClient) GetChainStatus() (*pb.Response, error)
- func (m *MockClient) GetInterchainTxWrappers(ctx context.Context, pid string, begin, end uint64, ...) error
- func (m *MockClient) GetMultiSigns(id string, typ pb.GetMultiSignsRequest_Type) (*pb.SignResponse, error)
- func (m *MockClient) GetNetworkMeta() (*pb.Response, error)
- func (m *MockClient) GetPendingNonceByAccount(account string) (uint64, error)
- func (m *MockClient) GetReceipt(hash string) (*pb.Receipt, error)
- func (m *MockClient) GetTransaction(hash string) (*pb.GetTransactionResponse, error)
- func (m *MockClient) GetValidators() (*pb.Response, error)
- func (m *MockClient) HeartBeat(address, index string) (*pb.Response, error)
- func (m *MockClient) InvokeBVMContract(address *types.Address, method string, opts *rpcx.TransactOpts, ...) (*pb.Receipt, error)
- func (m *MockClient) InvokeContract(vmType pb.TransactionData_VMType, address *types.Address, method string, ...) (*pb.Receipt, error)
- func (m *MockClient) InvokeXVMContract(address *types.Address, method string, opts *rpcx.TransactOpts, ...) (*pb.Receipt, error)
- func (m *MockClient) SendTransaction(tx *pb.BxhTransaction, opts *rpcx.TransactOpts) (string, error)
- func (m *MockClient) SendTransactionWithReceipt(tx *pb.BxhTransaction, opts *rpcx.TransactOpts) (*pb.Receipt, error)
- func (m *MockClient) SendView(tx *pb.BxhTransaction) (*pb.Receipt, error)
- func (m *MockClient) SetPrivateKey(arg0 crypto.PrivateKey)
- func (m *MockClient) Start() error
- func (m *MockClient) Stop() error
- func (m *MockClient) Subscribe(arg0 context.Context, arg1 pb.SubscriptionRequest_Type, arg2 []byte) (<-chan interface{}, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) DeployContract(contract, opts interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GenerateContractTx(vmType, address, method interface{}, args ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GenerateIBTPTx(ibtp interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetAccountBalance(address interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetBlock(value, blockType interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetBlockHeader(ctx, begin, end, ch interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetBlocks(start, end interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetChainMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetChainStatus() *gomock.Call
- func (mr *MockClientMockRecorder) GetInterchainTxWrappers(ctx, pid, begin, end, ch interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetMultiSigns(id, typ interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetNetworkMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetPendingNonceByAccount(account interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetReceipt(hash interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetTransaction(hash interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetValidators() *gomock.Call
- func (mr *MockClientMockRecorder) HeartBeat(address, index interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InvokeBVMContract(address, method, opts interface{}, args ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InvokeContract(vmType, address, method, opts interface{}, args ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InvokeXVMContract(address, method, opts interface{}, args ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SendTransaction(tx, opts interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SendTransactionWithReceipt(tx, opts interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SendView(tx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SetPrivateKey(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Start() *gomock.Call
- func (mr *MockClientMockRecorder) Stop() *gomock.Call
- func (mr *MockClientMockRecorder) Subscribe(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) DeployContract ¶
func (m *MockClient) DeployContract(contract []byte, opts *rpcx.TransactOpts) (*types.Address, error)
DeployContract mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GenerateContractTx ¶
func (m *MockClient) GenerateContractTx(vmType pb.TransactionData_VMType, address *types.Address, method string, args ...*pb.Arg) (*pb.BxhTransaction, error)
GenerateContractTx mocks base method.
func (*MockClient) GenerateIBTPTx ¶
func (m *MockClient) GenerateIBTPTx(ibtp *pb.IBTP) (*pb.BxhTransaction, error)
GenerateIBTPTx mocks base method.
func (*MockClient) GetAccountBalance ¶
func (m *MockClient) GetAccountBalance(address string) (*pb.Response, error)
GetAccountBalance mocks base method.
func (*MockClient) GetBlock ¶
func (m *MockClient) GetBlock(value string, blockType pb.GetBlockRequest_Type) (*pb.Block, error)
GetBlock mocks base method.
func (*MockClient) GetBlockHeader ¶
func (m *MockClient) GetBlockHeader(ctx context.Context, begin, end uint64, ch chan<- *pb.BlockHeader) error
GetBlockHeader mocks base method.
func (*MockClient) GetBlocks ¶
func (m *MockClient) GetBlocks(start, end uint64) (*pb.GetBlocksResponse, error)
GetBlocks mocks base method.
func (*MockClient) GetChainMeta ¶
func (m *MockClient) GetChainMeta() (*pb.ChainMeta, error)
GetChainMeta mocks base method.
func (*MockClient) GetChainStatus ¶
func (m *MockClient) GetChainStatus() (*pb.Response, error)
GetChainStatus mocks base method.
func (*MockClient) GetInterchainTxWrappers ¶
func (m *MockClient) GetInterchainTxWrappers(ctx context.Context, pid string, begin, end uint64, ch chan<- *pb.InterchainTxWrappers) error
GetInterchainTxWrappers mocks base method.
func (*MockClient) GetMultiSigns ¶
func (m *MockClient) GetMultiSigns(id string, typ pb.GetMultiSignsRequest_Type) (*pb.SignResponse, error)
GetMultiSigns mocks base method.
func (*MockClient) GetNetworkMeta ¶
func (m *MockClient) GetNetworkMeta() (*pb.Response, error)
GetNetworkMeta mocks base method.
func (*MockClient) GetPendingNonceByAccount ¶
func (m *MockClient) GetPendingNonceByAccount(account string) (uint64, error)
GetPendingNonceByAccount mocks base method.
func (*MockClient) GetReceipt ¶
func (m *MockClient) GetReceipt(hash string) (*pb.Receipt, error)
GetReceipt mocks base method.
func (*MockClient) GetTransaction ¶
func (m *MockClient) GetTransaction(hash string) (*pb.GetTransactionResponse, error)
GetTransaction mocks base method.
func (*MockClient) GetValidators ¶
func (m *MockClient) GetValidators() (*pb.Response, error)
GetValidators mocks base method.
func (*MockClient) HeartBeat ¶
func (m *MockClient) HeartBeat(address, index string) (*pb.Response, error)
HeartBeat mocks base method.
func (*MockClient) InvokeBVMContract ¶
func (m *MockClient) InvokeBVMContract(address *types.Address, method string, opts *rpcx.TransactOpts, args ...*pb.Arg) (*pb.Receipt, error)
InvokeBVMContract mocks base method.
func (*MockClient) InvokeContract ¶
func (m *MockClient) InvokeContract(vmType pb.TransactionData_VMType, address *types.Address, method string, opts *rpcx.TransactOpts, args ...*pb.Arg) (*pb.Receipt, error)
InvokeContract mocks base method.
func (*MockClient) InvokeXVMContract ¶
func (m *MockClient) InvokeXVMContract(address *types.Address, method string, opts *rpcx.TransactOpts, args ...*pb.Arg) (*pb.Receipt, error)
InvokeXVMContract mocks base method.
func (*MockClient) SendTransaction ¶
func (m *MockClient) SendTransaction(tx *pb.BxhTransaction, opts *rpcx.TransactOpts) (string, error)
SendTransaction mocks base method.
func (*MockClient) SendTransactionWithReceipt ¶
func (m *MockClient) SendTransactionWithReceipt(tx *pb.BxhTransaction, opts *rpcx.TransactOpts) (*pb.Receipt, error)
SendTransactionWithReceipt mocks base method.
func (*MockClient) SendView ¶
func (m *MockClient) SendView(tx *pb.BxhTransaction) (*pb.Receipt, error)
SendView mocks base method.
func (*MockClient) SetPrivateKey ¶
func (m *MockClient) SetPrivateKey(arg0 crypto.PrivateKey)
SetPrivateKey mocks base method.
func (*MockClient) Subscribe ¶
func (m *MockClient) Subscribe(arg0 context.Context, arg1 pb.SubscriptionRequest_Type, arg2 []byte) (<-chan interface{}, error)
Subscribe mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) DeployContract ¶
func (mr *MockClientMockRecorder) DeployContract(contract, opts interface{}) *gomock.Call
DeployContract indicates an expected call of DeployContract.
func (*MockClientMockRecorder) GenerateContractTx ¶
func (mr *MockClientMockRecorder) GenerateContractTx(vmType, address, method interface{}, args ...interface{}) *gomock.Call
GenerateContractTx indicates an expected call of GenerateContractTx.
func (*MockClientMockRecorder) GenerateIBTPTx ¶
func (mr *MockClientMockRecorder) GenerateIBTPTx(ibtp interface{}) *gomock.Call
GenerateIBTPTx indicates an expected call of GenerateIBTPTx.
func (*MockClientMockRecorder) GetAccountBalance ¶
func (mr *MockClientMockRecorder) GetAccountBalance(address interface{}) *gomock.Call
GetAccountBalance indicates an expected call of GetAccountBalance.
func (*MockClientMockRecorder) GetBlock ¶
func (mr *MockClientMockRecorder) GetBlock(value, blockType interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*MockClientMockRecorder) GetBlockHeader ¶
func (mr *MockClientMockRecorder) GetBlockHeader(ctx, begin, end, ch interface{}) *gomock.Call
GetBlockHeader indicates an expected call of GetBlockHeader.
func (*MockClientMockRecorder) GetBlocks ¶
func (mr *MockClientMockRecorder) GetBlocks(start, end interface{}) *gomock.Call
GetBlocks indicates an expected call of GetBlocks.
func (*MockClientMockRecorder) GetChainMeta ¶
func (mr *MockClientMockRecorder) GetChainMeta() *gomock.Call
GetChainMeta indicates an expected call of GetChainMeta.
func (*MockClientMockRecorder) GetChainStatus ¶
func (mr *MockClientMockRecorder) GetChainStatus() *gomock.Call
GetChainStatus indicates an expected call of GetChainStatus.
func (*MockClientMockRecorder) GetInterchainTxWrappers ¶
func (mr *MockClientMockRecorder) GetInterchainTxWrappers(ctx, pid, begin, end, ch interface{}) *gomock.Call
GetInterchainTxWrappers indicates an expected call of GetInterchainTxWrappers.
func (*MockClientMockRecorder) GetMultiSigns ¶
func (mr *MockClientMockRecorder) GetMultiSigns(id, typ interface{}) *gomock.Call
GetMultiSigns indicates an expected call of GetMultiSigns.
func (*MockClientMockRecorder) GetNetworkMeta ¶
func (mr *MockClientMockRecorder) GetNetworkMeta() *gomock.Call
GetNetworkMeta indicates an expected call of GetNetworkMeta.
func (*MockClientMockRecorder) GetPendingNonceByAccount ¶
func (mr *MockClientMockRecorder) GetPendingNonceByAccount(account interface{}) *gomock.Call
GetPendingNonceByAccount indicates an expected call of GetPendingNonceByAccount.
func (*MockClientMockRecorder) GetReceipt ¶
func (mr *MockClientMockRecorder) GetReceipt(hash interface{}) *gomock.Call
GetReceipt indicates an expected call of GetReceipt.
func (*MockClientMockRecorder) GetTransaction ¶
func (mr *MockClientMockRecorder) GetTransaction(hash interface{}) *gomock.Call
GetTransaction indicates an expected call of GetTransaction.
func (*MockClientMockRecorder) GetValidators ¶
func (mr *MockClientMockRecorder) GetValidators() *gomock.Call
GetValidators indicates an expected call of GetValidators.
func (*MockClientMockRecorder) HeartBeat ¶
func (mr *MockClientMockRecorder) HeartBeat(address, index interface{}) *gomock.Call
HeartBeat indicates an expected call of HeartBeat.
func (*MockClientMockRecorder) InvokeBVMContract ¶
func (mr *MockClientMockRecorder) InvokeBVMContract(address, method, opts interface{}, args ...interface{}) *gomock.Call
InvokeBVMContract indicates an expected call of InvokeBVMContract.
func (*MockClientMockRecorder) InvokeContract ¶
func (mr *MockClientMockRecorder) InvokeContract(vmType, address, method, opts interface{}, args ...interface{}) *gomock.Call
InvokeContract indicates an expected call of InvokeContract.
func (*MockClientMockRecorder) InvokeXVMContract ¶
func (mr *MockClientMockRecorder) InvokeXVMContract(address, method, opts interface{}, args ...interface{}) *gomock.Call
InvokeXVMContract indicates an expected call of InvokeXVMContract.
func (*MockClientMockRecorder) SendTransaction ¶
func (mr *MockClientMockRecorder) SendTransaction(tx, opts interface{}) *gomock.Call
SendTransaction indicates an expected call of SendTransaction.
func (*MockClientMockRecorder) SendTransactionWithReceipt ¶
func (mr *MockClientMockRecorder) SendTransactionWithReceipt(tx, opts interface{}) *gomock.Call
SendTransactionWithReceipt indicates an expected call of SendTransactionWithReceipt.
func (*MockClientMockRecorder) SendView ¶
func (mr *MockClientMockRecorder) SendView(tx interface{}) *gomock.Call
SendView indicates an expected call of SendView.
func (*MockClientMockRecorder) SetPrivateKey ¶
func (mr *MockClientMockRecorder) SetPrivateKey(arg0 interface{}) *gomock.Call
SetPrivateKey indicates an expected call of SetPrivateKey.
func (*MockClientMockRecorder) Start ¶
func (mr *MockClientMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockClientMockRecorder) Stop ¶
func (mr *MockClientMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockClientMockRecorder) Subscribe ¶
func (mr *MockClientMockRecorder) Subscribe(arg0, arg1, arg2 interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe.