Skip to main content

signet_constants/
lib.rs

1//! Signet system constants.
2//!
3//! This crate contains the system constants for Signet chains, including the
4//! host and rollup system contracts, pre-deployed tokens, etc.
5//!
6
7#![warn(
8    missing_copy_implementations,
9    missing_debug_implementations,
10    missing_docs,
11    unreachable_pub,
12    clippy::missing_const_for_fn,
13    rustdoc::all
14)]
15#![cfg_attr(not(test), warn(unused_crate_dependencies))]
16#![deny(unused_must_use, rust_2018_idioms)]
17#![cfg_attr(docsrs, feature(doc_cfg))]
18
19mod chains;
20#[allow(deprecated)]
21pub use chains::pecorino;
22pub use chains::{gouda, mainnet, parmigiana, test_utils};
23
24mod types;
25pub use types::{
26    ConfigError, HostConstants, HostPermitted, HostTokens, HostUsdRecord, KnownChains,
27    PairedHeights, ParseChainError, RollupConstants, RollupPermitted, RollupTokens,
28    SignetConstants, SignetEnvironmentConstants, SignetSystemConstants, UsdRecords, MINTER_ADDRESS,
29};
30
31/// Placeholder address for the native token of the current chain. By convention this is `0xee...`.
32pub const NATIVE_TOKEN_ADDRESS: alloy::primitives::Address =
33    alloy::primitives::Address::repeat_byte(0xee);