mock_client

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_client is a generated GoMock package.

Index

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) CheckMasterPier

func (m *MockClient) CheckMasterPier(address string) (*pb.Response, error)

CheckMasterPier mocks base method.

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, fullTx bool) (*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, fullTx bool) (*pb.GetBlocksResponse, error)

GetBlocks mocks base method.

func (*MockClient) GetChainID added in v1.28.0

func (m *MockClient) GetChainID() (uint64, error)

GetChainID 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.GetSignsRequest_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) GetTPS

func (m *MockClient) GetTPS(begin, end uint64) (uint64, error)

GetTPS mocks base method.

func (*MockClient) GetTransaction

func (m *MockClient) GetTransaction(hash string) (*pb.GetTransactionResponse, error)

GetTransaction mocks base method.

func (*MockClient) GetTransactionByBlockHashAndIndex added in v1.28.0

func (m *MockClient) GetTransactionByBlockHashAndIndex(blockHash string, index uint64) (*pb.GetTransactionResponse, error)

GetTransactionByBlockHashAndIndex mocks base method.

func (*MockClient) GetTransactionByBlockNumberAndIndex added in v1.28.0

func (m *MockClient) GetTransactionByBlockNumberAndIndex(blockNum, index uint64) (*pb.GetTransactionResponse, error)

GetTransactionByBlockNumberAndIndex mocks base method.

func (*MockClient) GetTssSigns added in v1.28.0

func (m *MockClient) GetTssSigns(id string, typ pb.GetSignsRequest_Type, extra []byte) (*pb.SignResponse, error)

GetTssSigns 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) IPFSGet

func (m *MockClient) IPFSGet(path string) (*pb.Response, error)

IPFSGet mocks base method.

func (*MockClient) IPFSGetToLocal

func (m *MockClient) IPFSGetToLocal(path, localfPath string) (*pb.Response, error)

IPFSGetToLocal mocks base method.

func (*MockClient) IPFSPutFromLocal

func (m *MockClient) IPFSPutFromLocal(localfPath string) (*pb.Response, error)

IPFSPutFromLocal 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) SendRawTransaction added in v1.28.0

func (m *MockClient) SendRawTransaction(tx *pb.BxhTransaction) (string, error)

SendRawTransaction mocks base method.

func (*MockClient) SendRawTransactionWithReceipt added in v1.28.0

func (m *MockClient) SendRawTransactionWithReceipt(tx *pb.BxhTransaction) (*pb.Receipt, error)

SendRawTransactionWithReceipt 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) SendTransactions added in v1.28.0

func (m *MockClient) SendTransactions(txs *pb.MultiTransaction) (*pb.MultiTransactionHash, error)

SendTransactions mocks base method.

func (*MockClient) SendView

func (m *MockClient) SendView(tx *pb.BxhTransaction) (*pb.Receipt, error)

SendView mocks base method.

func (*MockClient) SetMasterPier

func (m *MockClient) SetMasterPier(address, index string, timeout int64) (*pb.Response, error)

SetMasterPier mocks base method.

func (*MockClient) SetPrivateKey

func (m *MockClient) SetPrivateKey(arg0 crypto.PrivateKey)

SetPrivateKey mocks base method.

func (*MockClient) Stop

func (m *MockClient) Stop() error

Stop 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.

func (*MockClient) SubscribeAudit added in v1.28.0

func (m *MockClient) SubscribeAudit(arg0 context.Context, arg1 pb.AuditSubscriptionRequest_Type, arg2 uint64, arg3 []byte) (<-chan interface{}, error)

SubscribeAudit mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) CheckMasterPier

func (mr *MockClientMockRecorder) CheckMasterPier(address interface{}) *gomock.Call

CheckMasterPier indicates an expected call of CheckMasterPier.

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, fullTx 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, fullTx interface{}) *gomock.Call

GetBlocks indicates an expected call of GetBlocks.

func (*MockClientMockRecorder) GetChainID added in v1.28.0

func (mr *MockClientMockRecorder) GetChainID() *gomock.Call

GetChainID indicates an expected call of GetChainID.

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) GetTPS

func (mr *MockClientMockRecorder) GetTPS(begin, end interface{}) *gomock.Call

GetTPS indicates an expected call of GetTPS.

func (*MockClientMockRecorder) GetTransaction

func (mr *MockClientMockRecorder) GetTransaction(hash interface{}) *gomock.Call

GetTransaction indicates an expected call of GetTransaction.

func (*MockClientMockRecorder) GetTransactionByBlockHashAndIndex added in v1.28.0

func (mr *MockClientMockRecorder) GetTransactionByBlockHashAndIndex(blockHash, index interface{}) *gomock.Call

GetTransactionByBlockHashAndIndex indicates an expected call of GetTransactionByBlockHashAndIndex.

func (*MockClientMockRecorder) GetTransactionByBlockNumberAndIndex added in v1.28.0

func (mr *MockClientMockRecorder) GetTransactionByBlockNumberAndIndex(blockNum, index interface{}) *gomock.Call

GetTransactionByBlockNumberAndIndex indicates an expected call of GetTransactionByBlockNumberAndIndex.

func (*MockClientMockRecorder) GetTssSigns added in v1.28.0

func (mr *MockClientMockRecorder) GetTssSigns(id, typ, extra interface{}) *gomock.Call

GetTssSigns indicates an expected call of GetTssSigns.

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) IPFSGet

func (mr *MockClientMockRecorder) IPFSGet(path interface{}) *gomock.Call

IPFSGet indicates an expected call of IPFSGet.

func (*MockClientMockRecorder) IPFSGetToLocal

func (mr *MockClientMockRecorder) IPFSGetToLocal(path, localfPath interface{}) *gomock.Call

IPFSGetToLocal indicates an expected call of IPFSGetToLocal.

func (*MockClientMockRecorder) IPFSPutFromLocal

func (mr *MockClientMockRecorder) IPFSPutFromLocal(localfPath interface{}) *gomock.Call

IPFSPutFromLocal indicates an expected call of IPFSPutFromLocal.

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) SendRawTransaction added in v1.28.0

func (mr *MockClientMockRecorder) SendRawTransaction(tx interface{}) *gomock.Call

SendRawTransaction indicates an expected call of SendRawTransaction.

func (*MockClientMockRecorder) SendRawTransactionWithReceipt added in v1.28.0

func (mr *MockClientMockRecorder) SendRawTransactionWithReceipt(tx interface{}) *gomock.Call

SendRawTransactionWithReceipt indicates an expected call of SendRawTransactionWithReceipt.

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) SendTransactions added in v1.28.0

func (mr *MockClientMockRecorder) SendTransactions(txs interface{}) *gomock.Call

SendTransactions indicates an expected call of SendTransactions.

func (*MockClientMockRecorder) SendView

func (mr *MockClientMockRecorder) SendView(tx interface{}) *gomock.Call

SendView indicates an expected call of SendView.

func (*MockClientMockRecorder) SetMasterPier

func (mr *MockClientMockRecorder) SetMasterPier(address, index, timeout interface{}) *gomock.Call

SetMasterPier indicates an expected call of SetMasterPier.

func (*MockClientMockRecorder) SetPrivateKey

func (mr *MockClientMockRecorder) SetPrivateKey(arg0 interface{}) *gomock.Call

SetPrivateKey indicates an expected call of SetPrivateKey.

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.

func (*MockClientMockRecorder) SubscribeAudit added in v1.28.0

func (mr *MockClientMockRecorder) SubscribeAudit(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SubscribeAudit indicates an expected call of SubscribeAudit.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL