Documentation
¶
Overview ¶
Package mock_agent is a generated GoMock package.
Index ¶
- type MockAgent
- func (m *MockAgent) Appchain() (*rpcx.Appchain, error)
- func (m *MockAgent) EXPECT() *MockAgentMockRecorder
- func (m *MockAgent) GetAppchains() ([]*rpcx.Appchain, error)
- func (m *MockAgent) GetAssetExchangeSigns(id string) ([]byte, error)
- func (m *MockAgent) GetBlockHeader(ctx context.Context, begin, end uint64, ch chan *pb.BlockHeader) error
- func (m *MockAgent) GetChainMeta() (*pb.ChainMeta, error)
- func (m *MockAgent) GetIBTPByID(id string) (*pb.IBTP, error)
- func (m *MockAgent) GetIBTPSigns(ibtp *pb.IBTP) ([]byte, error)
- func (m *MockAgent) GetInterchainById(from string) *pb.Interchain
- func (m *MockAgent) GetInterchainMeta() (*pb.Interchain, error)
- func (m *MockAgent) GetInterchainTxWrappers(ctx context.Context, begin, end uint64, ch chan *pb.InterchainTxWrappers) error
- func (m *MockAgent) GetPendingNonceByAccount(account string) (uint64, error)
- func (m *MockAgent) InvokeContract(vmType pb.TransactionData_VMType, address *types.Address, method string, ...) (*pb.Receipt, error)
- func (m *MockAgent) SendIBTP(ibtp *pb.IBTP) (*pb.Receipt, error)
- func (m *MockAgent) SendTransaction(tx *pb.Transaction) (*pb.Receipt, error)
- func (m *MockAgent) SyncBlockHeader(ctx context.Context, ch chan *pb.BlockHeader) error
- func (m *MockAgent) SyncInterchainTxWrappers(ctx context.Context, ch chan *pb.InterchainTxWrappers) error
- func (m *MockAgent) SyncUnionInterchainTxWrappers(ctx context.Context, txCh chan *pb.InterchainTxWrappers) error
- type MockAgentMockRecorder
- func (mr *MockAgentMockRecorder) Appchain() *gomock.Call
- func (mr *MockAgentMockRecorder) GetAppchains() *gomock.Call
- func (mr *MockAgentMockRecorder) GetAssetExchangeSigns(id interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) GetBlockHeader(ctx, begin, end, ch interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) GetChainMeta() *gomock.Call
- func (mr *MockAgentMockRecorder) GetIBTPByID(id interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) GetIBTPSigns(ibtp interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) GetInterchainById(from interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) GetInterchainMeta() *gomock.Call
- func (mr *MockAgentMockRecorder) GetInterchainTxWrappers(ctx, begin, end, ch interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) GetPendingNonceByAccount(account interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) InvokeContract(vmType, address, method, opts interface{}, args ...interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) SendIBTP(ibtp interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) SendTransaction(tx interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) SyncBlockHeader(ctx, ch interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) SyncInterchainTxWrappers(ctx, ch interface{}) *gomock.Call
- func (mr *MockAgentMockRecorder) SyncUnionInterchainTxWrappers(ctx, txCh interface{}) *gomock.Call
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) 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
GetAppchains mocks base method.
func (*MockAgent) GetAssetExchangeSigns ¶ added in v1.4.0
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 ¶
GetChainMeta mocks base method.
func (*MockAgent) GetIBTPByID ¶
GetIBTPByID mocks base method.
func (*MockAgent) GetIBTPSigns ¶ added in v1.4.0
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
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) SendTransaction ¶
SendTransaction mocks base method.
func (*MockAgent) SyncBlockHeader ¶
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.