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
34 changes: 21 additions & 13 deletions contracts/.envrc-example
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,29 @@ source_up_if_exists

# Config for deploy script

## For production deployment, FOUNDRY_PROFILE should be set to "production".
export FOUNDRY_PROFILE=production
export VERIFIER=etherscan
export ETH_NETWORK=mainnet

## Set the deployment stage for Snowbridge. Can be set to "polkadot_mainnet" or "westend_sepolia". This will determine which contracts to deploy and which configurations to use.
export SNOWBRIDGE_DEPLOY_STAGE=polkadot_mainnet

## The private key of the deployer account. Make sure to keep it secure and do not hardcode it in the script.
export PRIVATE_KEY=0xprivate_key_here
export ETHERSCAN_API_KEY=your-etherscan-api-key-here


## BeefyClient
export RANDAO_COMMIT_DELAY=3
export RANDAO_COMMIT_EXP=8
export RANDAO_COMMIT_DELAY=128
export RANDAO_COMMIT_EXP=24
export MINIMUM_REQUIRED_SIGNATURES=17
export PREV_RANDAO=377
export ValidatorSetSize=600

## L2 Integration
PRIVATE_KEY=0xprivate_key_here
SEPOLIA_CHAIN=sepolia
BASE_CHAIN=base-sepolia
SEPOLIA_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/your-api-key-here
BASE_RPC_URL=https://base-sepolia.g.alchemy.com/v2/your-api-key-here
ETHERSCAN_API_KEY=your-etherscan-api-key-here
VERIFIER=etherscan

export L1_SNOWBRIDGE_ADAPTOR_ADDRESS=0xA44626f738e4369f1774b84Fb28Fd10f5a73a76f
export L2_SNOWBRIDGE_ADAPTOR_ADDRESS=0x7573a771677f30FD602722dB9F92c7a4429456A3
export L1_NETWORK=mainnet
export L2_NETWORK=base
export L1_SNOWBRIDGE_ADAPTOR_ADDRESS=0xd3b11c36404b092645522b682832fcdee07d2668
export L2_BASE_SNOWBRIDGE_ADAPTOR_ADDRESS=0x07fe4E7340976FC873B74bAfe3C3e5b0e01f3665
export L2_ARBITRUM_SNOWBRIDGE_ADAPTOR_ADDRESS=0x836895Ad176235Dfe9C59b3df56C7579d90ea338
export L2_OPTIMISM_SNOWBRIDGE_ADAPTOR_ADDRESS=0x836895Ad176235Dfe9C59b3df56C7579d90ea338
11 changes: 8 additions & 3 deletions contracts/foundry.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[profile.default]
solc_version = "0.8.33"
optimizer = true
optimizer_runs = 20000
optimizer_runs = 200
via_ir = false
test = 'test'
script = 'scripts'
Expand All @@ -21,10 +21,15 @@ ignored_error_codes = [

no_match_test = "testRegenerate*"

# Production profile, ForkUpgrade tests cause stack too deep errors with via_ir enabled, so we exclude it here
# Production profile: via_ir enabled for deployment contracts
[profile.production]
no_match_contract = "ForkUpgradeTest"
via_ir = true
optimizer_runs = 20000

# Integration profile: for running fork tests (compile with lower optimization)
# Usage: FOUNDRY_PROFILE=integration forge test --match-contract ForkUpgrade
[profile.integration]
test = 'integration'

[fmt]
number_underscore = "thousands"
Expand Down
Loading