mocks

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IContractCaller

type IContractCaller struct {
	mock.Mock
}

IContractCaller is an autogenerated mock type for the IContractCaller type

func NewIContractCaller

func NewIContractCaller(t interface {
	mock.TestingT
	Cleanup(func())
}) *IContractCaller

NewIContractCaller creates a new instance of IContractCaller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IContractCaller) ApproveTokens

func (_m *IContractCaller) ApproveTokens(_a0 *big.Int, _a1 common.Address, _a2 common.Address, _a3 *erc20.Erc20) error

ApproveTokens provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*IContractCaller) CheckIfBlocksExist

func (_m *IContractCaller) CheckIfBlocksExist(end uint64) (bool, error)

CheckIfBlocksExist provides a mock function with given fields: end

func (*IContractCaller) CurrentAccountStateRoot

func (_m *IContractCaller) CurrentAccountStateRoot(stakingInfoInstance *stakinginfo.Stakinginfo) ([32]byte, error)

CurrentAccountStateRoot provides a mock function with given fields: stakingInfoInstance

func (*IContractCaller) CurrentHeaderBlock

func (_m *IContractCaller) CurrentHeaderBlock(rootChainInstance *rootchain.Rootchain, childBlockInterval uint64) (uint64, error)

CurrentHeaderBlock provides a mock function with given fields: rootChainInstance, childBlockInterval

func (*IContractCaller) CurrentSpanNumber

func (_m *IContractCaller) CurrentSpanNumber(validatorSet *validatorset.Validatorset) *big.Int

CurrentSpanNumber provides a mock function with given fields: validatorSet

func (*IContractCaller) CurrentStateCounter

func (_m *IContractCaller) CurrentStateCounter(stateSenderInstance *statesender.Statesender) *big.Int

CurrentStateCounter provides a mock function with given fields: stateSenderInstance

func (*IContractCaller) DecodeNewHeaderBlockEvent

func (_m *IContractCaller) DecodeNewHeaderBlockEvent(_a0 string, _a1 *types.Receipt, _a2 uint64) (*rootchain.RootchainNewHeaderBlock, error)

DecodeNewHeaderBlockEvent provides a mock function with given fields: _a0, _a1, _a2

func (*IContractCaller) DecodeSignerUpdateEvent

func (_m *IContractCaller) DecodeSignerUpdateEvent(_a0 string, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoSignerChange, error)

DecodeSignerUpdateEvent provides a mock function with given fields: _a0, _a1, _a2

func (*IContractCaller) DecodeSlashedEvent

func (_m *IContractCaller) DecodeSlashedEvent(_a0 string, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoSlashed, error)

DecodeSlashedEvent provides a mock function with given fields: _a0, _a1, _a2

func (*IContractCaller) DecodeStateSyncedEvent

func (_m *IContractCaller) DecodeStateSyncedEvent(_a0 string, _a1 *types.Receipt, _a2 uint64) (*statesender.StatesenderStateSynced, error)

DecodeStateSyncedEvent provides a mock function with given fields: _a0, _a1, _a2

func (*IContractCaller) DecodeUnJailedEvent

func (_m *IContractCaller) DecodeUnJailedEvent(_a0 string, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoUnJailed, error)

DecodeUnJailedEvent provides a mock function with given fields: _a0, _a1, _a2

func (*IContractCaller) DecodeValidatorExitEvent

func (_m *IContractCaller) DecodeValidatorExitEvent(_a0 string, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoUnstakeInit, error)

DecodeValidatorExitEvent provides a mock function with given fields: _a0, _a1, _a2

func (*IContractCaller) DecodeValidatorJoinEvent

func (_m *IContractCaller) DecodeValidatorJoinEvent(_a0 string, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoStaked, error)

DecodeValidatorJoinEvent provides a mock function with given fields: _a0, _a1, _a2

func (*IContractCaller) DecodeValidatorStakeUpdateEvent

func (_m *IContractCaller) DecodeValidatorStakeUpdateEvent(_a0 string, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoStakeUpdate, error)

DecodeValidatorStakeUpdateEvent provides a mock function with given fields: _a0, _a1, _a2

func (*IContractCaller) DecodeValidatorTopupFeesEvent

func (_m *IContractCaller) DecodeValidatorTopupFeesEvent(_a0 string, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoTopUpFee, error)

DecodeValidatorTopupFeesEvent provides a mock function with given fields: _a0, _a1, _a2

func (*IContractCaller) GetBalance

func (_m *IContractCaller) GetBalance(address common.Address) (*big.Int, error)

GetBalance provides a mock function with given fields: address

func (*IContractCaller) GetBlockNumberFromTxHash

func (_m *IContractCaller) GetBlockNumberFromTxHash(_a0 common.Hash) (*big.Int, error)

GetBlockNumberFromTxHash provides a mock function with given fields: _a0

func (*IContractCaller) GetBorChainBlock

func (_m *IContractCaller) GetBorChainBlock(_a0 context.Context, _a1 *big.Int) (*types.Header, error)

GetBorChainBlock provides a mock function with given fields: _a0, _a1

func (*IContractCaller) GetBorChainBlockAuthor

func (_m *IContractCaller) GetBorChainBlockAuthor(_a0 *big.Int) (*common.Address, error)

GetBorChainBlockAuthor provides a mock function with given fields: _a0

func (*IContractCaller) GetBorTxReceipt

func (_m *IContractCaller) GetBorTxReceipt(_a0 common.Hash) (*types.Receipt, error)

GetBorTxReceipt provides a mock function with given fields: _a0

func (*IContractCaller) GetCheckpointSign

func (_m *IContractCaller) GetCheckpointSign(txHash common.Hash) ([]byte, []byte, []byte, error)

GetCheckpointSign provides a mock function with given fields: txHash

func (*IContractCaller) GetConfirmedTxReceipt

func (_m *IContractCaller) GetConfirmedTxReceipt(_a0 common.Hash, _a1 uint64) (*types.Receipt, error)

GetConfirmedTxReceipt provides a mock function with given fields: _a0, _a1

func (*IContractCaller) GetHeaderInfo

func (_m *IContractCaller) GetHeaderInfo(headerID uint64, rootChainInstance *rootchain.Rootchain, childBlockInterval uint64) (common.Hash, uint64, uint64, uint64, string, error)

GetHeaderInfo provides a mock function with given fields: headerID, rootChainInstance, childBlockInterval

func (*IContractCaller) GetLastChildBlock

func (_m *IContractCaller) GetLastChildBlock(rootChainInstance *rootchain.Rootchain) (uint64, error)

GetLastChildBlock provides a mock function with given fields: rootChainInstance

func (*IContractCaller) GetMainChainBlock

func (_m *IContractCaller) GetMainChainBlock(_a0 *big.Int) (*types.Header, error)

GetMainChainBlock provides a mock function with given fields: _a0

func (*IContractCaller) GetMainTxReceipt

func (_m *IContractCaller) GetMainTxReceipt(_a0 common.Hash) (*types.Receipt, error)

GetMainTxReceipt provides a mock function with given fields: _a0

func (*IContractCaller) GetRootChainInstance

func (_m *IContractCaller) GetRootChainInstance(rootChainAddress string) (*rootchain.Rootchain, error)

GetRootChainInstance provides a mock function with given fields: rootChainAddress

func (*IContractCaller) GetRootHash

func (_m *IContractCaller) GetRootHash(start uint64, end uint64, checkpointLength uint64) ([]byte, error)

GetRootHash provides a mock function with given fields: start, end, checkpointLength

func (*IContractCaller) GetSlashManagerInstance

func (_m *IContractCaller) GetSlashManagerInstance(slashManagerAddress string) (*slashmanager.Slashmanager, error)

GetSlashManagerInstance provides a mock function with given fields: slashManagerAddress

func (*IContractCaller) GetSpanDetails

func (_m *IContractCaller) GetSpanDetails(id *big.Int, validatorSet *validatorset.Validatorset) (*big.Int, *big.Int, *big.Int, error)

GetSpanDetails provides a mock function with given fields: id, validatorSet

func (*IContractCaller) GetStakeManagerInstance

func (_m *IContractCaller) GetStakeManagerInstance(stakingManagerAddress string) (*stakemanager.Stakemanager, error)

GetStakeManagerInstance provides a mock function with given fields: stakingManagerAddress

func (*IContractCaller) GetStakingInfoInstance

func (_m *IContractCaller) GetStakingInfoInstance(stakingInfoAddress string) (*stakinginfo.Stakinginfo, error)

GetStakingInfoInstance provides a mock function with given fields: stakingInfoAddress

func (*IContractCaller) GetStateReceiverInstance

func (_m *IContractCaller) GetStateReceiverInstance(stateReceiverAddress string) (*statereceiver.Statereceiver, error)

GetStateReceiverInstance provides a mock function with given fields: stateReceiverAddress

func (*IContractCaller) GetStateSenderInstance

func (_m *IContractCaller) GetStateSenderInstance(stateSenderAddress string) (*statesender.Statesender, error)

GetStateSenderInstance provides a mock function with given fields: stateSenderAddress

func (*IContractCaller) GetTokenInstance

func (_m *IContractCaller) GetTokenInstance(tokenAddress string) (*erc20.Erc20, error)

GetTokenInstance provides a mock function with given fields: tokenAddress

func (*IContractCaller) GetValidatorInfo

func (_m *IContractCaller) GetValidatorInfo(valID uint64, stakingInfoInstance *stakinginfo.Stakinginfo) (staketypes.Validator, error)

GetValidatorInfo provides a mock function with given fields: valID, stakingInfoInstance

func (*IContractCaller) GetValidatorSetInstance

func (_m *IContractCaller) GetValidatorSetInstance(validatorSetAddress string) (*validatorset.Validatorset, error)

GetValidatorSetInstance provides a mock function with given fields: validatorSetAddress

func (*IContractCaller) GetVoteOnHash

func (_m *IContractCaller) GetVoteOnHash(start uint64, end uint64, hash string, milestoneID string) (bool, error)

GetVoteOnHash provides a mock function with given fields: start, end, hash, milestoneID

func (*IContractCaller) IsTxConfirmed

func (_m *IContractCaller) IsTxConfirmed(_a0 common.Hash, _a1 uint64) bool

IsTxConfirmed provides a mock function with given fields: _a0, _a1

func (*IContractCaller) SendCheckpoint

func (_m *IContractCaller) SendCheckpoint(signedData []byte, sigs [][3]*big.Int, rootChainAddress common.Address, rootChainInstance *rootchain.Rootchain) error

SendCheckpoint provides a mock function with given fields: signedData, sigs, rootChainAddress, rootChainInstance

func (*IContractCaller) StakeFor

func (_m *IContractCaller) StakeFor(_a0 common.Address, _a1 *big.Int, _a2 *big.Int, _a3 bool, _a4 common.Address, _a5 *stakemanager.Stakemanager) error

StakeFor provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

type MockHTTPClient

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

MockHTTPClient is a mock of HTTPClient interface.

func NewMockHTTPClient

func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient

NewMockHTTPClient creates a new mock instance.

func (*MockHTTPClient) EXPECT

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

func (*MockHTTPClient) Get

func (m *MockHTTPClient) Get(arg0 string) (*http.Response, error)

Get mocks base method.

type MockHTTPClientMockRecorder

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

MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient.

func (*MockHTTPClientMockRecorder) Get

func (mr *MockHTTPClientMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

Jump to

Keyboard shortcuts

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