Skip to main content

Crate signet_constants

Crate signet_constants 

Source
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.
pecorinoDeprecated
Pecorino testnet chain constants. Constants for the Pecorino testnet.
test_utils
Test utilities for chains. Constants for local testnet chains.

Structs§

HostConstants
System addresses and other configuration details on the host chain.
HostTokens
Host tokens configuration for the rollup.
HostUsdRecord
A host-chain USD record, which contains the address of the token and its decimals./s
PairedHeights
A pair of heights, one for the host chain and one for the rollup chain.
RollupConstants
Configuration details for the rollup chain.
RollupTokens
Rollup tokens configuration for the rollup.
SignetConstants
All constants pertaining to the Signet system.
SignetEnvironmentConstants
Signet Environment constants.
SignetSystemConstants
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§

ConfigError
Captures errors related to loading configuration from the environment or other sources.
HostPermitted
Permissioned tokens for the host chain.
KnownChains
Known chains for the Signet system.
ParseChainError
Error type for parsing struct from a chain name.
RollupPermitted
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....