Documentation ¶
Index ¶
- Variables
- func FuzzAcceptedVoteInfo(n int, correct bool, complete bool) []*primitives.AcceptedVoteInfo
- func FuzzBlock(n int, correct bool, complete bool) []*primitives.Block
- func FuzzBlockHeader(n int) []*primitives.BlockHeader
- func FuzzCoinProofs(n int) []*burnproof.CoinsProofSerializable
- func FuzzCoinState(n int) *primitives.CoinsState
- func FuzzCoinStateSerializable(n int) *primitives.CoinsStateSerializable
- func FuzzCommunityVoteData(n int) []*primitives.CommunityVoteData
- func FuzzDeposit(n int, complete bool) []*primitives.Deposit
- func FuzzDepositData() *primitives.DepositData
- func FuzzExecutions(n int) []*primitives.Execution
- func FuzzExits(n int) []*primitives.Exit
- func FuzzGovernanceState() *primitives.Governance
- func FuzzGovernanceStateSerializable() *primitives.GovernanceSerializable
- func FuzzGovernanceVote(n int) []*primitives.GovernanceVote
- func FuzzMsgExecutions(n int) []*p2p.MsgExecution
- func FuzzMultiSignatureTx(n int) []*primitives.MultiSignatureTx
- func FuzzMultiValidatorVote(n int) []*primitives.MultiValidatorVote
- func FuzzPartialExits(n int) []*primitives.PartialExit
- func FuzzProposerSlashing(n int, complete bool) []*primitives.ProposerSlashing
- func FuzzRANDAOSlashing(n int) []*primitives.RANDAOSlashing
- func FuzzReplacementVote(n int) []*primitives.ReplacementVotes
- func FuzzTx(n int) []*primitives.Tx
- func FuzzValidator(n int) []*primitives.Validator
- func FuzzValidatorHello(n int) []*primitives.ValidatorHelloMessage
- func FuzzVoteData(n int) []*primitives.VoteData
- func FuzzVoteSlashing(n int) []*primitives.VoteSlashing
Constants ¶
This section is empty.
Variables ¶
var PremineAddr, _ = bls.RandKey()
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 FuzzCoinProofs ¶
func FuzzCoinProofs(n int) []*burnproof.CoinsProofSerializable
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 FuzzCommunityVoteData ¶
func FuzzCommunityVoteData(n int) []*primitives.CommunityVoteData
FuzzCommunityVoteData returns a slice of n CommunityVoteData
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 FuzzExecutions ¶
func FuzzExecutions(n int) []*primitives.Execution
FuzzExecutions return an slice of Execution
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 FuzzGovernanceState ¶
func FuzzGovernanceState() *primitives.Governance
FuzzGovernanceState returns a Governance state struct
func FuzzGovernanceStateSerializable ¶
func FuzzGovernanceStateSerializable() *primitives.GovernanceSerializable
FuzzGovernanceStateSerializable returns a GovernanceSerializable state struct
func FuzzGovernanceVote ¶
func FuzzGovernanceVote(n int) []*primitives.GovernanceVote
FuzzGovernanceVote returns a slice of GovernanceVotes If valid is true object on slice have valid signatures. If ms is true objects include multisignatures instead of combined signatures.
func FuzzMsgExecutions ¶
func FuzzMsgExecutions(n int) []*p2p.MsgExecution
FuzzMsgExecutions return an slice of MsgExecution
func FuzzMultiSignatureTx ¶
func FuzzMultiSignatureTx(n int) []*primitives.MultiSignatureTx
FuzzMultiSignatureTx returns a slice of MultiSignatureTx
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 FuzzReplacementVote ¶
func FuzzReplacementVote(n int) []*primitives.ReplacementVotes
FuzzReplacementVote returns a slice of n ReplacementVotes
func FuzzValidator ¶
func FuzzValidator(n int) []*primitives.Validator
FuzzValidator creates a slice of Validator
func FuzzValidatorHello ¶
func FuzzValidatorHello(n int) []*primitives.ValidatorHelloMessage
FuzzValidatorHello returns a slice of ValidatorHelloMessage
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.