mocks

package
v0.0.0-...-7ece11e Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SwapRule

type SwapRule struct {
	mock.Mock
}

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

func (*SwapRule) Version

func (_m *SwapRule) Version() int

Version provides a mock function with given fields:

type UnstakeRule

type UnstakeRule struct {
	mock.Mock
}

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:

Jump to

Keyboard shortcuts

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