testdata

package
v0.0.0-...-b9de96a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestParams = params.ChainParams{
	Name:           "testnet",
	DefaultP2PPort: "25126",
	NetMagic:       111999,
	AccountPrefixes: params.AccountPrefixes{
		Public:   "itpub",
		Private:  "itprv",
		Multisig: "itmul",
		Contract: "itctr",
	},
	GovernanceBudgetQuotient:     5,
	BaseRewardPerBlock:           26 * 1e7,
	IncluderRewardQuotient:       8,
	EpochLength:                  5,
	EjectionBalance:              95,
	MaxBalanceChurnQuotient:      32,
	LatestBlockRootsLength:       64,
	MinAttestationInclusionDelay: 1,
	DepositAmount:                100,
	UnitsPerCoin:                 100000000,
	InactivityPenaltyQuotient:    17179869184,
	SlotDuration:                 6,
	WhistleblowerRewardQuotient:  2,
	GovernancePercentages: []uint8{
		30,
		10,
		20,
		20,
		20,
	},
	MinVotingBalance:          100,
	CommunityOverrideQuotient: 3,
	VotingPeriodSlots:         20160,
	InitialManagers: [][20]byte{
		{},
		{},
		{},
		{},
		{},
	},
}

TestParams network parameters for test chains.

Functions

func FuzzAcceptedVoteInfo

func FuzzAcceptedVoteInfo(n int, correct bool, complete bool) []*primitives.AcceptedVoteInfo

FuzzAcceptedVoteInfo return a slice with n AcceptedVoteInfo structs. If correct is true will return correctly serializable structs If complete is true will return information with no nil pointers.

func FuzzBlock

func FuzzBlock(n int, correct bool, complete bool) []*primitives.Block

FuzzBlock returns a Block slice If correct is true will return correctly serializable structs If complete is true will return information with no nil pointers.

func FuzzBlockHeader

func FuzzBlockHeader(n int) []*primitives.BlockHeader

FuzzBlockHeader return a slice with n BlockHeader structs.

func FuzzCoinState

func FuzzCoinState(n int) *primitives.CoinsState

FuzzCoinState returns a CoinState with n balances and nonces

func FuzzCoinStateSerializable

func FuzzCoinStateSerializable(n int) *primitives.CoinsStateSerializable

FuzzCoinStateSerializable returns a CoinState with n balances and nonces

func FuzzDeposit

func FuzzDeposit(n int, complete bool) []*primitives.Deposit

FuzzDeposit creates a slice of Deposits. If complete is true it will create deposits with not nil pointers

func FuzzDepositData

func FuzzDepositData() *primitives.DepositData

FuzzDepositData returns a DepositData struct

func FuzzExits

func FuzzExits(n int) []*primitives.Exit

FuzzExits return an slice of Exits If correct is true will return correctly serializable structs If complete is true will return information with no nil pointers.

func FuzzMultiValidatorVote

func FuzzMultiValidatorVote(n int) []*primitives.MultiValidatorVote

FuzzMultiValidatorVote creates a slice of MultiValidatorVote If correct is true will return correctly serializable structs If complete is true will return information with no nil pointers.

func FuzzPartialExits

func FuzzPartialExits(n int) []*primitives.PartialExit

FuzzPartialExits return an slice of PartialExits

func FuzzProposerSlashing

func FuzzProposerSlashing(n int, complete bool) []*primitives.ProposerSlashing

FuzzProposerSlashing creates a slice of ProposerSlashing If complete is true will return information with no nil pointers.

func FuzzRANDAOSlashing

func FuzzRANDAOSlashing(n int) []*primitives.RANDAOSlashing

FuzzRANDAOSlashing creates a slice of RANDAOSlashing

func FuzzTx

func FuzzTx(n int) []*primitives.Tx

FuzzTx returns a slice of n Tx

func FuzzValidator

func FuzzValidator(n int) []*primitives.Validator

FuzzValidator creates a slice of Validator

func FuzzVoteData

func FuzzVoteData(n int) []*primitives.VoteData

FuzzVoteData simply creates a slice with VoteData

func FuzzVoteSlashing

func FuzzVoteSlashing(n int) []*primitives.VoteSlashing

FuzzVoteSlashing creates a slice of VoteSlashing If correct is true will return correctly serializable structs If complete is true will return information with no nil pointers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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