package
0.0.0-20230803065340-eb934a0893fc
Repository: https://github.com/sliceledger-blockchain/slice-ledger.git
Documentation: pkg.go.dev

# Functions

CollectAddresses constructs a lists of addresses that may be used as fuzzing corpora or random address selection.
EncodePrivKey encodes the given private key in 32 bytes.
Ether converts a uint64 Ether amount into a *big.Int amount in wei units, for allocating test balances.
ForkedDeployConfig returns a deploy config that's suitable for use with a forked L1.
No description provided by the author
Setup computes the testing setup configurations from deployment configuration and optional allocation parameters.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WriteDefaultJWT writes a testing JWT to the temporary directory of the test and returns the path to the JWT file.

# Variables

DefaultMnemonicConfig is the default mnemonic used in testing.

# Structs

Addresses bundles the addresses for all common rollup addresses for testing purposes.
AllocParams defines genesis allocations to apply on top of the genesis generated by deploy parameters.
DeploymentsL1 captures the L1 addresses used in the deployment, commonly just the developer predeploys during testing, but later deployed contracts may be used in some tests too.
DeployParams bundles the deployment parameters to generate further testing inputs with.
MnemonicConfig configures the private keys for the hive testnet.
Secrets bundles secp256k1 private keys for all common rollup actors for testing purposes.
SetupData bundles the L1, L2, rollup and deployment configuration data: everything for a full test setup.
TestParams parametrizes the most essential rollup configuration parameters.

# Interfaces

TestingBase is an interface used for standard Go testing.