mocks

package
v1.0.9-beta Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: GPL-3.0 Imports: 16 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 (*IContractCaller) ApproveTokens added in v0.1.5

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 added in v0.1.8

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

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(_a0 *validatorset.Validatorset) *big.Int

CurrentSpanNumber provides a mock function with given fields: _a0

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 common.Address, _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 common.Address, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoSignerChange, error)

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

func (*IContractCaller) DecodeSlashedEvent added in v0.1.7

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

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

func (*IContractCaller) DecodeStateSyncedEvent added in v0.1.7

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

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

func (*IContractCaller) DecodeUnJailedEvent added in v0.1.7

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

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

func (*IContractCaller) DecodeValidatorExitEvent added in v0.1.7

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

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

func (*IContractCaller) DecodeValidatorJoinEvent added in v0.1.7

func (_m *IContractCaller) DecodeValidatorJoinEvent(_a0 common.Address, _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 common.Address, _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 common.Address, _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) 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, heimdalltypes.HeimdallAddress, 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) GetMaticChainBlock

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

GetMaticChainBlock provides a mock function with given fields: _a0

func (*IContractCaller) GetMaticTokenInstance added in v0.1.7

func (_m *IContractCaller) GetMaticTokenInstance(maticTokenAddress common.Address) (*erc20.Erc20, error)

GetMaticTokenInstance provides a mock function with given fields: maticTokenAddress

func (*IContractCaller) GetMaticTxReceipt

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

GetMaticTxReceipt provides a mock function with given fields: _a0

func (*IContractCaller) GetRootChainInstance added in v0.1.7

func (_m *IContractCaller) GetRootChainInstance(rootchainAddress common.Address) (*rootchain.Rootchain, error)

GetRootChainInstance provides a mock function with given fields: rootchainAddress

func (*IContractCaller) GetRootHash added in v0.1.7

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 added in v0.1.7

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

GetSlashManagerInstance provides a mock function with given fields: slashManagerAddress

func (*IContractCaller) GetSpanDetails

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

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

func (*IContractCaller) GetStakeManagerInstance added in v0.1.7

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

GetStakeManagerInstance provides a mock function with given fields: stakingManagerAddress

func (*IContractCaller) GetStakingInfoInstance added in v0.1.7

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

GetStakingInfoInstance provides a mock function with given fields: stakingInfoAddress

func (*IContractCaller) GetStateReceiverInstance added in v0.1.7

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

GetStateReceiverInstance provides a mock function with given fields: stateReceiverAddress

func (*IContractCaller) GetStateSenderInstance added in v0.1.7

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

GetStateSenderInstance provides a mock function with given fields: stateSenderAddress

func (*IContractCaller) GetValidatorInfo

func (_m *IContractCaller) GetValidatorInfo(valID heimdalltypes.ValidatorID, stakingInfoInstance *stakinginfo.Stakinginfo) (heimdalltypes.Validator, error)

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

func (*IContractCaller) GetValidatorSetInstance added in v0.1.7

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

GetValidatorSetInstance provides a mock function with given fields: validatorSetAddress

func (*IContractCaller) GetVoteOnHash added in v1.0.1

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

GetVoteOnsHash provides a mock function with given fields: start, end, milestoneLength,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(sigedData []byte, sigs [][3]*big.Int, rootchainAddress common.Address, rootChainInstance *rootchain.Rootchain) error

SendCheckpoint provides a mock function with given fields: sigedData, sigs, rootchainAddress, rootChainInstance

func (*IContractCaller) SendTick added in v0.1.7

func (_m *IContractCaller) SendTick(sigedData []byte, sigs []byte, slashManagerAddress common.Address, slashManagerInstance *slashmanager.Slashmanager) error

SendTick provides a mock function with given fields: sigedData, sigs, slashManagerAddress, slashManagerInstance

func (*IContractCaller) StakeFor added in v0.1.5

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 added in v0.3.2

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

MockHTTPClient is a mock of HTTPClient interface.

func NewMockHTTPClient added in v0.3.2

func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient

NewMockHTTPClient creates a new mock instance.

func (*MockHTTPClient) EXPECT added in v0.3.2

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

func (*MockHTTPClient) Get added in v0.3.2

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

Get mocks base method.

type MockHTTPClientMockRecorder added in v0.3.2

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

MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient.

func (*MockHTTPClientMockRecorder) Get added in v0.3.2

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