Expand description
Generators for different data structures like block headers, block bodies and ranges of those.
Structs§
- Block
Params - Used to pass arguments for random block generation function in tests
- Block
Range Params - Used to pass arguments for random block generation function in tests
Traits§
- Rng
- An automatically-implemented extension trait on
RngCore
providing high-level generic methods for sampling values and other convenience methods.
Functions§
- generate_
keys - Generates a set of [Keypair]s based on the desired count.
- random_
account_ change - Generate a random account change.
- random_
block - Generate a random block filled with signed transactions (generated using
random_signed_tx
). If no transaction count is provided, the number of transactions will be random, otherwise the provided count will be used. - random_
block_ range - Generate a range of random blocks.
- random_
block_ with_ parent - Generate a random [
BlockWithParent
]. - random_
changeset_ range - Generate a range of changesets for given blocks and accounts.
- random_
contract_ account_ range - Generate random Contract Accounts
- random_
eoa_ account - Generate random Externally Owned Account (EOA account without contract).
- random_
eoa_ accounts - Generate random Externally Owned Accounts
- random_
header - Generate a random [
SealedHeader
]. - random_
header_ range - Generates a range of random [
SealedHeader
]s. - random_
log - Generate random log
- random_
receipt - Generate random receipt for transaction
- random_
signed_ tx - Generates a random legacy [Transaction] that is signed.
- random_
storage_ entry - Generate a random storage change.
- random_
tx - Generates a random legacy [Transaction].
- rng
- Returns a random number generator that can be seeded using the
SEED
environment variable. - sign_
tx_ with_ key_ pair - Signs the [Transaction] with the given key pair.
- sign_
tx_ with_ random_ key_ pair - Signs the [Transaction] with a random key pair.
Type Aliases§
- Change
Set - Collection of account and storage entry changes