Documentation ¶
Index ¶
- type SwapRule
- func (_m *SwapRule) CalculateAssignOffset(lenSubstitute int, lenCommittees int, numberOfFixedValidators int, ...) int
- func (_m *SwapRule) Process(shardID byte, committees []string, substitutes []string, minCommitteeSize int, ...) (*instruction.SwapShardInstruction, []string, []string, []string, []string)
- func (_m *SwapRule) Version() int
- type UnstakeRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SwapRule ¶
SwapRule is an autogenerated mock type for the SwapRule type
func (*SwapRule) CalculateAssignOffset ¶
func (_m *SwapRule) CalculateAssignOffset(lenSubstitute int, lenCommittees int, numberOfFixedValidators int, minCommitteeSize int) int
AssignOffset provides a mock function with given fields: lenSubstitute, lenCommittees, numberOfFixedValidators, minCommitteeSize
func (*SwapRule) Process ¶
func (_m *SwapRule) Process(shardID byte, committees []string, substitutes []string, minCommitteeSize int, maxCommitteeSize int, typeIns int, numberOfFixedValidators int, penalty map[string]signaturecounter.Penalty) (*instruction.SwapShardInstruction, []string, []string, []string, []string)
GenInstructions provides a mock function with given fields: shardID, committees, substitutes, minCommitteeSize, maxCommitteeSize, typeIns, numberOfFixedValidators, penalty
type UnstakeRule ¶
UnstakeRule is an autogenerated mock type for the UnstakeRule type
func (*UnstakeRule) RemoveFromState ¶
func (_m *UnstakeRule) RemoveFromState(_a0 incognitokey.CommitteePublicKey, _a1 map[string]bool, _a2 map[string]privacy.PaymentAddress, _a3 map[string]common.Hash, _a4 map[string]uint64, _a5 []string, _a6 []string) (map[string]bool, map[string]privacy.PaymentAddress, map[string]common.Hash, map[string]uint64, []string, []string, error)
RemoveFromState provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6
func (*UnstakeRule) Version ¶
func (_m *UnstakeRule) Version() int
Version provides a mock function with given fields:
Click to show internal directories.
Click to hide internal directories.