mock_agent

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_agent is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAgent

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

MockAgent is a mock of Agent interface.

func NewMockAgent

func NewMockAgent(ctrl *gomock.Controller) *MockAgent

NewMockAgent creates a new mock instance.

func (*MockAgent) Appchain

func (m *MockAgent) Appchain() (*rpcx.Appchain, error)

Appchain mocks base method.

func (*MockAgent) EXPECT

func (m *MockAgent) EXPECT() *MockAgentMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAgent) GetAppchains added in v1.4.0

func (m *MockAgent) GetAppchains() ([]*rpcx.Appchain, error)

GetAppchains mocks base method.

func (*MockAgent) GetAssetExchangeSigns added in v1.4.0

func (m *MockAgent) GetAssetExchangeSigns(id string) ([]byte, error)

GetAssetExchangeSigns mocks base method.

func (*MockAgent) GetBlockHeader

func (m *MockAgent) GetBlockHeader(ctx context.Context, begin, end uint64, ch chan *pb.BlockHeader) error

GetBlockHeader mocks base method.

func (*MockAgent) GetChainMeta

func (m *MockAgent) GetChainMeta() (*pb.ChainMeta, error)

GetChainMeta mocks base method.

func (*MockAgent) GetIBTPByID

func (m *MockAgent) GetIBTPByID(id string) (*pb.IBTP, error)

GetIBTPByID mocks base method.

func (*MockAgent) GetIBTPSigns added in v1.4.0

func (m *MockAgent) GetIBTPSigns(ibtp *pb.IBTP) ([]byte, error)

GetIBTPSigns mocks base method.

func (*MockAgent) GetInterchainById added in v1.4.0

func (m *MockAgent) GetInterchainById(from string) *pb.Interchain

GetInterchainById mocks base method.

func (*MockAgent) GetInterchainMeta

func (m *MockAgent) GetInterchainMeta() (*pb.Interchain, error)

GetInterchainMeta mocks base method.

func (*MockAgent) GetInterchainTxWrappers added in v1.4.0

func (m *MockAgent) GetInterchainTxWrappers(ctx context.Context, begin, end uint64, ch chan *pb.InterchainTxWrappers) error

GetInterchainTxWrappers mocks base method.

func (*MockAgent) GetPendingNonceByAccount added in v1.4.0

func (m *MockAgent) GetPendingNonceByAccount(account string) (uint64, error)

GetPendingNonceByAccount mocks base method.

func (*MockAgent) InvokeContract added in v1.4.0

func (m *MockAgent) InvokeContract(vmType pb.TransactionData_VMType, address *types.Address, method string, opts *rpcx.TransactOpts, args ...*pb.Arg) (*pb.Receipt, error)

InvokeContract mocks base method.

func (*MockAgent) SendIBTP

func (m *MockAgent) SendIBTP(ibtp *pb.IBTP) (*pb.Receipt, error)

SendIBTP mocks base method.

func (*MockAgent) SendTransaction

func (m *MockAgent) SendTransaction(tx *pb.Transaction) (*pb.Receipt, error)

SendTransaction mocks base method.

func (*MockAgent) SyncBlockHeader

func (m *MockAgent) SyncBlockHeader(ctx context.Context, ch chan *pb.BlockHeader) error

SyncBlockHeader mocks base method.

func (*MockAgent) SyncInterchainTxWrappers added in v1.4.0

func (m *MockAgent) SyncInterchainTxWrappers(ctx context.Context, ch chan *pb.InterchainTxWrappers) error

SyncInterchainTxWrappers mocks base method.

func (*MockAgent) SyncUnionInterchainTxWrappers added in v1.4.0

func (m *MockAgent) SyncUnionInterchainTxWrappers(ctx context.Context, txCh chan *pb.InterchainTxWrappers) error

SyncUnionInterchainTxWrappers mocks base method.

type MockAgentMockRecorder

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

MockAgentMockRecorder is the mock recorder for MockAgent.

func (*MockAgentMockRecorder) Appchain

func (mr *MockAgentMockRecorder) Appchain() *gomock.Call

Appchain indicates an expected call of Appchain.

func (*MockAgentMockRecorder) GetAppchains added in v1.4.0

func (mr *MockAgentMockRecorder) GetAppchains() *gomock.Call

GetAppchains indicates an expected call of GetAppchains.

func (*MockAgentMockRecorder) GetAssetExchangeSigns added in v1.4.0

func (mr *MockAgentMockRecorder) GetAssetExchangeSigns(id interface{}) *gomock.Call

GetAssetExchangeSigns indicates an expected call of GetAssetExchangeSigns.

func (*MockAgentMockRecorder) GetBlockHeader

func (mr *MockAgentMockRecorder) GetBlockHeader(ctx, begin, end, ch interface{}) *gomock.Call

GetBlockHeader indicates an expected call of GetBlockHeader.

func (*MockAgentMockRecorder) GetChainMeta

func (mr *MockAgentMockRecorder) GetChainMeta() *gomock.Call

GetChainMeta indicates an expected call of GetChainMeta.

func (*MockAgentMockRecorder) GetIBTPByID

func (mr *MockAgentMockRecorder) GetIBTPByID(id interface{}) *gomock.Call

GetIBTPByID indicates an expected call of GetIBTPByID.

func (*MockAgentMockRecorder) GetIBTPSigns added in v1.4.0

func (mr *MockAgentMockRecorder) GetIBTPSigns(ibtp interface{}) *gomock.Call

GetIBTPSigns indicates an expected call of GetIBTPSigns.

func (*MockAgentMockRecorder) GetInterchainById added in v1.4.0

func (mr *MockAgentMockRecorder) GetInterchainById(from interface{}) *gomock.Call

GetInterchainById indicates an expected call of GetInterchainById.

func (*MockAgentMockRecorder) GetInterchainMeta

func (mr *MockAgentMockRecorder) GetInterchainMeta() *gomock.Call

GetInterchainMeta indicates an expected call of GetInterchainMeta.

func (*MockAgentMockRecorder) GetInterchainTxWrappers added in v1.4.0

func (mr *MockAgentMockRecorder) GetInterchainTxWrappers(ctx, begin, end, ch interface{}) *gomock.Call

GetInterchainTxWrappers indicates an expected call of GetInterchainTxWrappers.

func (*MockAgentMockRecorder) GetPendingNonceByAccount added in v1.4.0

func (mr *MockAgentMockRecorder) GetPendingNonceByAccount(account interface{}) *gomock.Call

GetPendingNonceByAccount indicates an expected call of GetPendingNonceByAccount.

func (*MockAgentMockRecorder) InvokeContract added in v1.4.0

func (mr *MockAgentMockRecorder) InvokeContract(vmType, address, method, opts interface{}, args ...interface{}) *gomock.Call

InvokeContract indicates an expected call of InvokeContract.

func (*MockAgentMockRecorder) SendIBTP

func (mr *MockAgentMockRecorder) SendIBTP(ibtp interface{}) *gomock.Call

SendIBTP indicates an expected call of SendIBTP.

func (*MockAgentMockRecorder) SendTransaction

func (mr *MockAgentMockRecorder) SendTransaction(tx interface{}) *gomock.Call

SendTransaction indicates an expected call of SendTransaction.

func (*MockAgentMockRecorder) SyncBlockHeader

func (mr *MockAgentMockRecorder) SyncBlockHeader(ctx, ch interface{}) *gomock.Call

SyncBlockHeader indicates an expected call of SyncBlockHeader.

func (*MockAgentMockRecorder) SyncInterchainTxWrappers added in v1.4.0

func (mr *MockAgentMockRecorder) SyncInterchainTxWrappers(ctx, ch interface{}) *gomock.Call

SyncInterchainTxWrappers indicates an expected call of SyncInterchainTxWrappers.

func (*MockAgentMockRecorder) SyncUnionInterchainTxWrappers added in v1.4.0

func (mr *MockAgentMockRecorder) SyncUnionInterchainTxWrappers(ctx, txCh interface{}) *gomock.Call

SyncUnionInterchainTxWrappers indicates an expected call of SyncUnionInterchainTxWrappers.

Jump to

Keyboard shortcuts

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