package
4.0.2-stable+incompatible
Repository: https://github.com/algorand/go-algorand.git
Documentation: pkg.go.dev
# Functions
BenchConsensusRange is for getting benchmarks across consensus versions.
CalculateNewRoundAccountTotals calculates the accounts totals for a given round.
GenerateInitState generates testing init state.
Genesis creates a genesis state for naccts accounts using the ConsensusCurrentVersion.
GenesisWithProto creates a genesis state for naccts accounts using the proto consensus protocol.
NewTestGenesis creates a bunch of accounts, splits up 10B algos between them and the rewardspool and feesink, and gives out the addresses and secrets it creates to enable tests.
PoolAddr returns a copy of the test pool address.
RandomAccountData generates a random AccountData with no associated resources.
RandomAccounts generates a random set of accounts map.
RandomAddress generates a random address.
RandomAppLocalState creates a random basics.AppLocalState.
RandomAppParams creates a random basics.AppParams.
RandomAssetHolding creates a random basics.AssetHolding.
RandomAssetParams creates a random basics.AssetParams.
RandomDeltas generates a random set of accounts delta.
RandomDeltasBalanced generates a random set of accounts delta.
RandomDeltasBalancedFull generates a random set of accounts delta.
RandomDeltasBalancedImpl generates a random set of accounts delta.
RandomDeltasFull generates a random set of accounts delta.
RandomDeltasImpl generates a random set of accounts delta.
RandomFullAccountData generates a random AccountData.
RandomNote generates a random notes data.
RandomOnlineAccountData is similar to RandomAccountData but always creates online account.
SinkAddr returns a copy of the test sink address.
TestConsensusRange allows for running tests against a range of consensus versions.
WithAndWithoutLRUCache allows for running a test with ledger LRU cache activated and deactivated.
# Variables
TurnOffRewards turns off the rewards pool for tests that are sensitive to "surprise" balance changes.
# Structs
GenesisCfg provides a configuration object for NewTestGenesis.
# Type aliases
TestGenesisOption provides functional options for testGenesisCfg.