Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ L2_RPC_URLS=<your-rpc-url>,<your-rpc-url>
TRANSACTION_WAIT_TRANSACTION_TIMEOUT=30000
TRANSACTION_INCREMENT_RATE=0.3

# mint
MINT_AVAILABLE_FROM="2025-06-23T00:00:00Z"

# predicate
PREDICATE_API_URL=http://localhost:4000
PREDICATE_API_KEY=dummy

# contract
BUILDER_REGISTRY_CONTRACT_ADDRESS=0x
BUILDER_REGISTRY_CONTRACT_DEPLOYED_BLOCK=0
Expand All @@ -62,9 +69,6 @@ BASE_BRIDGE_O_APP_CONTRACT_DEPLOYED_BLOCK=0
# messenger contract
L1_SCROLL_MESSENGER_CONTRACT_ADDRESS=0x

# mint
MINT_AVAILABLE_FROM="2025-06-23T00:00:00Z"

# private key
INTMAX2_OWNER_MNEMONIC=""
MOCK_MESSENGER_PRIVATE_KEY="0x"
Expand All @@ -76,9 +80,9 @@ SCROLL_GAS_MULTIPLIER=2
BLOCK_BUILDER_ALLOWLIST='["0x"]'
BLOCK_BUILDER_MIN_ETH_BALANCE='0.01'
BLOCK_BUILDER_REQUIRED_VERSION='0.1.0'
BLOCK_BUILDER_ALLOWED_TOKEN_INDICES='0,1,2'
BLOCK_BUILDER_ALLOWED_TOKEN_INDICES='0'
BLOCK_BUILDER_INDEXER_COUNT=5
BLOCK_BUILDER_MIN_ALLOWLIST_COUNT=1
BLOCK_BUILDER_INDEXER_COUNT=4
BLOCK_BUILDER_MAX_FEE_AMOUNT='2500000000000'
BUILDER_SELECTION_MODE='RANDOM'

Expand Down
8 changes: 6 additions & 2 deletions packages/shared/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ export const config = cleanEnv(process.env, {
default: 0.3,
desc: "Rate at which the transaction wait time increases on each retry",
}),
// layer zero
LAYER_ZERO_NETWORK: layerZeroNetwork({ default: "testnet" }),
// mint
MINT_AVAILABLE_FROM: str({
devDefault: "2025-06-23T00:00:00Z",
desc: "The date and time when minting becomes available",
}),
// predicate
PREDICATE_API_URL: url({ devDefault: "http://localhost:3002" }),
PREDICATE_API_URL: url({ devDefault: "http://localhost:4000" }),
PREDICATE_API_KEY: str({ devDefault: "dummy", desc: "API key for the predicate service" }),
// contract(must be lowercase for contract addresses)
BUILDER_REGISTRY_CONTRACT_ADDRESS: str({ devDefault: "0x" }),
Expand All @@ -81,6 +82,7 @@ export const config = cleanEnv(process.env, {
BASE_BRIDGE_O_APP_CONTRACT_DEPLOYED_BLOCK: num({ devDefault: 0 }),
// messenger contract
L1_SCROLL_MESSENGER_CONTRACT_ADDRESS: str({ devDefault: "0x" }),
// mock messenger contract (for test and dev)
MOCK_L1_SCROLL_MESSENGER_CONTRACT_ADDRESS: str({ default: "0x" }),
MOCK_L1_SCROLL_MESSENGER_CONTRACT_DEPLOYED_BLOCK: num({ default: 0 }),
MOCK_L2_SCROLL_MESSENGER_CONTRACT_ADDRESS: str({ default: "0x" }),
Expand All @@ -89,6 +91,7 @@ export const config = cleanEnv(process.env, {
MOCK_L1_SENDER_EVENT_DECODE_ENABLED: bool({ default: true }),
// private key
INTMAX2_OWNER_MNEMONIC: str({ devDefault: "", desc: "Owner mnemonic for Intmax2" }),
// mock messenger private key (for test and dev)
MOCK_MESSENGER_PRIVATE_KEY: str({
default: "0x",
desc: "Private key for the mock messenger contract",
Expand Down Expand Up @@ -126,8 +129,9 @@ export const config = cleanEnv(process.env, {
desc: "Probability threshold (0.0–1.0) used to allow allowlisted builders to be selected.",
}),
BLOCK_BUILDER_ALLOWED_TOKEN_INDICES: str({
default: "0,1,2",
default: "0",
desc: "Comma-separated indices of tokens that builders are allowed to include in blocks. Options may include 0 for ETH, 1 for ITX, 2 for WBTC and 3 for USDC.",
example: "0,1,2,3",
}),
BLOCK_BUILDER_MAX_FEE_AMOUNT: str({
default: "2500000000000",
Expand Down