Documentation ¶
Index ¶
- type IContractCaller
- func (_m *IContractCaller) ApproveTokens(_a0 *big.Int, _a1 common.Address, _a2 common.Address, _a3 *erc20.Erc20) error
- func (_m *IContractCaller) CurrentAccountStateRoot(stakingInfoInstance *stakinginfo.Stakinginfo) ([32]byte, error)
- func (_m *IContractCaller) CurrentHeaderBlock(rootChainInstance *rootchain.Rootchain) (uint64, error)
- func (_m *IContractCaller) CurrentSpanNumber(_a0 *validatorset.Validatorset) *big.Int
- func (_m *IContractCaller) CurrentStateCounter(stateSenderInstance *statesender.Statesender) *big.Int
- func (_m *IContractCaller) DecodeNewHeaderBlockEvent(_a0 common.Address, _a1 *types.Receipt, _a2 uint64) (*rootchain.RootchainNewHeaderBlock, error)
- func (_m *IContractCaller) DecodeSignerUpdateEvent(_a0 common.Address, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoSignerChange, error)
- func (_m *IContractCaller) DecodeSlashedEvent(_a0 common.Address, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoSlashed, error)
- func (_m *IContractCaller) DecodeStateSyncedEvent(_a0 common.Address, _a1 *types.Receipt, _a2 uint64) (*statesender.StatesenderStateSynced, error)
- func (_m *IContractCaller) DecodeUnJailedEvent(_a0 common.Address, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoUnJailed, error)
- func (_m *IContractCaller) DecodeValidatorExitEvent(_a0 common.Address, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoUnstakeInit, error)
- func (_m *IContractCaller) DecodeValidatorJoinEvent(_a0 common.Address, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoStaked, error)
- func (_m *IContractCaller) DecodeValidatorStakeUpdateEvent(_a0 common.Address, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoStakeUpdate, error)
- func (_m *IContractCaller) DecodeValidatorTopupFeesEvent(_a0 common.Address, _a1 *types.Receipt, _a2 uint64) (*stakinginfo.StakinginfoTopUpFee, error)
- func (_m *IContractCaller) GetBalance(address common.Address) (*big.Int, error)
- func (_m *IContractCaller) GetBlockNumberFromTxHash(_a0 common.Hash) (*big.Int, error)
- func (_m *IContractCaller) GetCheckpointSign(txHash common.Hash) ([]byte, []byte, []byte, error)
- func (_m *IContractCaller) GetConfirmedTxReceipt(_a0 common.Hash, _a1 uint64) (*types.Receipt, error)
- func (_m *IContractCaller) GetHeaderInfo(headerID uint64, rootChainInstance *rootchain.Rootchain) (common.Hash, uint64, uint64, uint64, heimdalltypes.HeimdallAddress, error)
- func (_m *IContractCaller) GetLastChildBlock(rootChainInstance *rootchain.Rootchain) (uint64, error)
- func (_m *IContractCaller) GetMainChainBlock(_a0 *big.Int) (*types.Header, error)
- func (_m *IContractCaller) GetMainTxReceipt(_a0 common.Hash) (*types.Receipt, error)
- func (_m *IContractCaller) GetMaticChainBlock(_a0 *big.Int) (*types.Header, error)
- func (_m *IContractCaller) GetMaticTokenInstance(maticTokenAddress common.Address) (*erc20.Erc20, error)
- func (_m *IContractCaller) GetMaticTxReceipt(_a0 common.Hash) (*types.Receipt, error)
- func (_m *IContractCaller) GetRootChainInstance(rootchainAddress common.Address) (*rootchain.Rootchain, error)
- func (_m *IContractCaller) GetRootHash(start uint64, end uint64, checkpointLength uint64) ([]byte, error)
- func (_m *IContractCaller) GetSlashManagerInstance(slashManagerAddress common.Address) (*slashmanager.Slashmanager, error)
- func (_m *IContractCaller) GetSpanDetails(id *big.Int, _a1 *validatorset.Validatorset) (*big.Int, *big.Int, *big.Int, error)
- func (_m *IContractCaller) GetStakeManagerInstance(stakingManagerAddress common.Address) (*stakemanager.Stakemanager, error)
- func (_m *IContractCaller) GetStakingInfoInstance(stakingInfoAddress common.Address) (*stakinginfo.Stakinginfo, error)
- func (_m *IContractCaller) GetStateReceiverInstance(stateReceiverAddress common.Address) (*statereceiver.Statereceiver, error)
- func (_m *IContractCaller) GetStateSenderInstance(stateSenderAddress common.Address) (*statesender.Statesender, error)
- func (_m *IContractCaller) GetValidatorInfo(valID heimdalltypes.ValidatorID, stakingInfoInstance *stakinginfo.Stakinginfo) (heimdalltypes.Validator, error)
- func (_m *IContractCaller) GetValidatorSetInstance(validatorSetAddress common.Address) (*validatorset.Validatorset, error)
- func (_m *IContractCaller) IsTxConfirmed(_a0 common.Hash, _a1 uint64) bool
- func (_m *IContractCaller) SendCheckpoint(sigedData []byte, sigs []byte, rootchainAddress common.Address, ...) error
- func (_m *IContractCaller) SendTick(sigedData []byte, sigs []byte, slashManagerAddress common.Address, ...) error
- func (_m *IContractCaller) StakeFor(_a0 common.Address, _a1 *big.Int, _a2 *big.Int, _a3 bool, _a4 common.Address, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IContractCaller ¶
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) 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) (uint64, error)
CurrentHeaderBlock provides a mock function with given fields: rootChainInstance
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 ¶
GetBalance provides a mock function with given fields: address
func (*IContractCaller) GetBlockNumberFromTxHash ¶
GetBlockNumberFromTxHash provides a mock function with given fields: _a0
func (*IContractCaller) GetCheckpointSign ¶
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) (common.Hash, uint64, uint64, uint64, heimdalltypes.HeimdallAddress, error)
GetHeaderInfo provides a mock function with given fields: headerID, rootChainInstance
func (*IContractCaller) GetLastChildBlock ¶
func (_m *IContractCaller) GetLastChildBlock(rootChainInstance *rootchain.Rootchain) (uint64, error)
GetLastChildBlock provides a mock function with given fields: rootChainInstance
func (*IContractCaller) GetMainChainBlock ¶
GetMainChainBlock provides a mock function with given fields: _a0
func (*IContractCaller) GetMainTxReceipt ¶
GetMainTxReceipt provides a mock function with given fields: _a0
func (*IContractCaller) GetMaticChainBlock ¶
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 ¶
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) 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 []byte, 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