Expand description
Signet system constants.
This crate contains the system constants for Signet chains, including the host and rollup system contracts, pre-deployed tokens, etc.
Modules§
- gouda
- Gouda testnet chain constants. Constants for the Gouda testnet (runs on the Parmigiana host chain).
- mainnet
- Mainnet chain constants. Constants for the Mainnet.
- parmigiana
- Parmigiana testnet chain constants. Constants for the Parmigiana testnet.
- pecorino
Deprecated - Pecorino testnet chain constants. Constants for the Pecorino testnet.
- test_
utils - Test utilities for chains. Constants for local testnet chains.
Structs§
- Host
Constants - System addresses and other configuration details on the host chain.
- Host
Tokens - Host tokens configuration for the rollup.
- Host
UsdRecord - A host-chain USD record, which contains the address of the token and its decimals./s
- Paired
Heights - A pair of heights, one for the host chain and one for the rollup chain.
- Rollup
Constants - Configuration details for the rollup chain.
- Rollup
Tokens - Rollup tokens configuration for the rollup.
- Signet
Constants - All constants pertaining to the Signet system.
- Signet
Environment Constants - Signet Environment constants.
- Signet
System Constants - Signet constants.
- UsdRecords
- A set of USD records, which can hold up to 5 records. 5 is chosen as a reasonable limit for the number of USD tokens that can be predeployed on the host chain. This limit is arbitrary but should be sufficient for most use cases, and can be adjusted trivially if needed.
Enums§
- Config
Error - Captures errors related to loading configuration from the environment or other sources.
- Host
Permitted - Permissioned tokens for the host chain.
- Known
Chains - Known chains for the Signet system.
- Parse
Chain Error - Error type for parsing struct from a chain name.
- Rollup
Permitted - Permissioned tokens for the rollup.
Constants§
- MINTER_
ADDRESS - System address with permission to mint tokens. This is the address from which the node will issue transactions to mint ETH or ERC20 tokens.
- NATIVE_
TOKEN_ ADDRESS - Placeholder address for the native token of the current chain. By convention this is
0xee....