Documentation ¶
Index ¶
- type BeaconCommitteeState
- func (_m *BeaconCommitteeState) AssignRuleVersion() int
- func (_m *BeaconCommitteeState) Clone(db *statedb.StateDB) committeestate.BeaconCommitteeState
- func (_m *BeaconCommitteeState) GetAllCandidateSubstituteCommittee() []string
- func (_m *BeaconCommitteeState) GetAutoStaking() map[string]bool
- func (_m *BeaconCommitteeState) GetBeaconCommittee() []incognitokey.CommitteePublicKey
- func (_m *BeaconCommitteeState) GetBeaconSubstitute() []incognitokey.CommitteePublicKey
- func (_m *BeaconCommitteeState) GetCandidateBeaconWaitingForCurrentRandom() []incognitokey.CommitteePublicKey
- func (_m *BeaconCommitteeState) GetCandidateBeaconWaitingForNextRandom() []incognitokey.CommitteePublicKey
- func (_m *BeaconCommitteeState) GetCandidateShardWaitingForCurrentRandom() []incognitokey.CommitteePublicKey
- func (_m *BeaconCommitteeState) GetCandidateShardWaitingForNextRandom() []incognitokey.CommitteePublicKey
- func (_m *BeaconCommitteeState) GetNumberOfActiveShards() int
- func (_m *BeaconCommitteeState) GetOneShardCommittee(shardID byte) []incognitokey.CommitteePublicKey
- func (_m *BeaconCommitteeState) GetOneShardSubstitute(shardID byte) []incognitokey.CommitteePublicKey
- func (_m *BeaconCommitteeState) GetRewardReceiver() map[string]key.PaymentAddress
- func (_m *BeaconCommitteeState) GetShardCommittee() map[byte][]incognitokey.CommitteePublicKey
- func (_m *BeaconCommitteeState) GetShardCommonPool() []incognitokey.CommitteePublicKey
- func (_m *BeaconCommitteeState) GetShardSubstitute() map[byte][]incognitokey.CommitteePublicKey
- func (_m *BeaconCommitteeState) GetStakingTx() map[string]common.Hash
- func (_m *BeaconCommitteeState) GetSyncingValidators() map[byte][]incognitokey.CommitteePublicKey
- func (_m *BeaconCommitteeState) Hash(_a0 *committeestate.CommitteeChange) (*committeestate.BeaconCommitteeStateHash, error)
- func (_m *BeaconCommitteeState) UpdateCommitteeState(env *committeestate.BeaconCommitteeStateEnvironment) (*committeestate.BeaconCommitteeStateHash, *committeestate.CommitteeChange, ...)
- func (_m *BeaconCommitteeState) Upgrade(_a0 *committeestate.BeaconCommitteeStateEnvironment) committeestate.BeaconCommitteeState
- func (_m *BeaconCommitteeState) Version() int
- type RewardSplitRule
- type SplitRewardRuleProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconCommitteeState ¶
BeaconCommitteeState is an autogenerated mock type for the BeaconCommitteeState type
func (*BeaconCommitteeState) AssignRuleVersion ¶
func (_m *BeaconCommitteeState) AssignRuleVersion() int
AssignRuleVersion provides a mock function with given fields:
func (*BeaconCommitteeState) Clone ¶
func (_m *BeaconCommitteeState) Clone(db *statedb.StateDB) committeestate.BeaconCommitteeState
Clone provides a mock function with given fields:
func (*BeaconCommitteeState) GetAllCandidateSubstituteCommittee ¶
func (_m *BeaconCommitteeState) GetAllCandidateSubstituteCommittee() []string
GetAllCandidateSubstituteCommittee provides a mock function with given fields:
func (*BeaconCommitteeState) GetAutoStaking ¶
func (_m *BeaconCommitteeState) GetAutoStaking() map[string]bool
GetAutoStaking provides a mock function with given fields:
func (*BeaconCommitteeState) GetBeaconCommittee ¶
func (_m *BeaconCommitteeState) GetBeaconCommittee() []incognitokey.CommitteePublicKey
GetBeaconCommittee provides a mock function with given fields:
func (*BeaconCommitteeState) GetBeaconSubstitute ¶
func (_m *BeaconCommitteeState) GetBeaconSubstitute() []incognitokey.CommitteePublicKey
GetBeaconSubstitute provides a mock function with given fields:
func (*BeaconCommitteeState) GetCandidateBeaconWaitingForCurrentRandom ¶
func (_m *BeaconCommitteeState) GetCandidateBeaconWaitingForCurrentRandom() []incognitokey.CommitteePublicKey
GetCandidateBeaconWaitingForCurrentRandom provides a mock function with given fields:
func (*BeaconCommitteeState) GetCandidateBeaconWaitingForNextRandom ¶
func (_m *BeaconCommitteeState) GetCandidateBeaconWaitingForNextRandom() []incognitokey.CommitteePublicKey
GetCandidateBeaconWaitingForNextRandom provides a mock function with given fields:
func (*BeaconCommitteeState) GetCandidateShardWaitingForCurrentRandom ¶
func (_m *BeaconCommitteeState) GetCandidateShardWaitingForCurrentRandom() []incognitokey.CommitteePublicKey
GetCandidateShardWaitingForCurrentRandom provides a mock function with given fields:
func (*BeaconCommitteeState) GetCandidateShardWaitingForNextRandom ¶
func (_m *BeaconCommitteeState) GetCandidateShardWaitingForNextRandom() []incognitokey.CommitteePublicKey
GetCandidateShardWaitingForNextRandom provides a mock function with given fields:
func (*BeaconCommitteeState) GetNumberOfActiveShards ¶
func (_m *BeaconCommitteeState) GetNumberOfActiveShards() int
GetNumberOfActiveShards provides a mock function with given fields:
func (*BeaconCommitteeState) GetOneShardCommittee ¶
func (_m *BeaconCommitteeState) GetOneShardCommittee(shardID byte) []incognitokey.CommitteePublicKey
GetOneShardCommittee provides a mock function with given fields: shardID
func (*BeaconCommitteeState) GetOneShardSubstitute ¶
func (_m *BeaconCommitteeState) GetOneShardSubstitute(shardID byte) []incognitokey.CommitteePublicKey
GetOneShardSubstitute provides a mock function with given fields: shardID
func (*BeaconCommitteeState) GetRewardReceiver ¶
func (_m *BeaconCommitteeState) GetRewardReceiver() map[string]key.PaymentAddress
GetRewardReceiver provides a mock function with given fields:
func (*BeaconCommitteeState) GetShardCommittee ¶
func (_m *BeaconCommitteeState) GetShardCommittee() map[byte][]incognitokey.CommitteePublicKey
GetShardCommittee provides a mock function with given fields:
func (*BeaconCommitteeState) GetShardCommonPool ¶
func (_m *BeaconCommitteeState) GetShardCommonPool() []incognitokey.CommitteePublicKey
GetShardCommonPool provides a mock function with given fields:
func (*BeaconCommitteeState) GetShardSubstitute ¶
func (_m *BeaconCommitteeState) GetShardSubstitute() map[byte][]incognitokey.CommitteePublicKey
GetShardSubstitute provides a mock function with given fields:
func (*BeaconCommitteeState) GetStakingTx ¶
func (_m *BeaconCommitteeState) GetStakingTx() map[string]common.Hash
GetStakingTx provides a mock function with given fields:
func (*BeaconCommitteeState) GetSyncingValidators ¶
func (_m *BeaconCommitteeState) GetSyncingValidators() map[byte][]incognitokey.CommitteePublicKey
GetSyncingValidators provides a mock function with given fields:
func (*BeaconCommitteeState) Hash ¶
func (_m *BeaconCommitteeState) Hash(_a0 *committeestate.CommitteeChange) (*committeestate.BeaconCommitteeStateHash, error)
Hash provides a mock function with given fields: _a0
func (*BeaconCommitteeState) UpdateCommitteeState ¶
func (_m *BeaconCommitteeState) UpdateCommitteeState(env *committeestate.BeaconCommitteeStateEnvironment) (*committeestate.BeaconCommitteeStateHash, *committeestate.CommitteeChange, [][]string, error)
UpdateCommitteeState provides a mock function with given fields: env
func (*BeaconCommitteeState) Upgrade ¶
func (_m *BeaconCommitteeState) Upgrade(_a0 *committeestate.BeaconCommitteeStateEnvironment) committeestate.BeaconCommitteeState
Upgrade provides a mock function with given fields: _a0
func (*BeaconCommitteeState) Version ¶
func (_m *BeaconCommitteeState) Version() int
Version provides a mock function with given fields:
type RewardSplitRule ¶
RewardSplitRule is an autogenerated mock type for the RewardSplitRule type
type SplitRewardRuleProcessor ¶
SplitRewardRuleProcessor is an autogenerated mock type for the SplitRewardRuleProcessor type
func (*SplitRewardRuleProcessor) SplitReward ¶
func (_m *SplitRewardRuleProcessor) SplitReward(environment *committeestate.SplitRewardEnvironment) (map[common.Hash]uint64, map[common.Hash]uint64, map[common.Hash]uint64, map[common.Hash]uint64, error)
SplitReward provides a mock function with given fields: environment