Crate casper_engine_test_support
source ·Expand description
A library to support testing of Wasm smart contracts for use on the Casper Platform.
Modules§
- Utility methods for running the auction in a test or bench context.
- Utilities for running transfers in a test or bench context.
- Utility types and functions for working with execution engine tests.
Structs§
- Represents the difference between two
AdditiveMap
s. - This struct can be parsed from a TOML-encoded chainspec file. It means that as the chainspec format changes over versions, as long as we maintain the core config in this form in the chainspec file, it can continue to be parsed as an
ChainspecConfig
. - Builds a
DeployItem
. - Builds an
ExecuteRequest
. - Builder for creating a
StepRequest
. - Builds an
UpgradeConfig
. - Builder for simple WASM test
Constants§
- Amount named argument.
- Default initial balance of a test account in motes.
- Default auction delay.
- Default block time.
- Default chain name.
- Default gas price.
- Default genesis timestamp in milliseconds.
- Default lock-in period is currently zero.
- Default value for maximum associated keys configuration option.
- Default value for maximum runtime call stack height configuration option.
- DEFAUL
T_ MAX_ STORE D_ VALU E_ SIZE Deprecated Default max serialized size ofStoredValue
s. - Default value for minimum bid amount in motes.
- Default value for minimum delegation amount in motes.
- Round seigniorage rate represented as a fraction of the total supply.
- Default number of eras that need to pass to be able to withdraw unbonded funds.
- Default number of validator slots.
- Default length of total vesting schedule is currently zero.
- Minimal amount for a transfer that creates new accounts.
- Timestamp increment in milliseconds.
Statics§
- Default accounts.
- Default test account address.
- Default account key.
- Default account public key.
- Default
ChainspecRegistry
. - Default
ExecConfig
. - Default
GenesisConfig
. - Default genesis config hash.
- Default payment.
- Default proposer address.
- Default proposer public key.
- Default
ProtocolVersion
. - DEFAUL
T_ RUN_ GENESI S_ REQUEST Deprecated DefaultRunGenesisRequest
. - Default
SystemConfig
. - Default
WasmConfig
. - Path to the production chainspec used in the Casper mainnet.
- Round seigniorage rate from the production chainspec.
- A
RunGenesisRequest
using cost tables matching those used in Casper Mainnet. - System address.
Type Aliases§
- Wasm test builder where state is held entirely in memory.
- Wasm test builder where state is held in LMDB.