• Mark Tyneway's avatar
    contracts-bedrock: flexible deploy script addresses · 13748031
    Mark Tyneway authored
    Allow for the addresses used in the deploy script to be defined
    by a JSON file at the the path defined by the `ADDRESSES` environment
    variable. This makes the deploy script easy to use when it comes to
    composing with the `superchain-registry`. Just set the `ADDRESSES`
    env var to the path on the local filesystem that points to the
    `extra/addresses/<network>/<l2>.json` file. See the
    [example](https://github.com/ethereum-optimism/superchain-registry/blob/main/superchain/extra/addresses/mainnet/op.json) here.
    
    This gives a path forward for deprecating the concept of `deployments`
    in the `contracts-bedrock` package. We really only use the `deployments`
    directory for getting contract addresses. We want a single source of
    truth for contract addresses which is `superchain-registry`. Using this
    env var allows the deploy script to easily compose with
    `superchain-registry`.
    
    `ffi` and `jq` are used instead of `vm.readFile` to break out of the
    security properties that foundry uses, we do not want to need to specify
    all possible directories on the filesystem as readable in the
    `foundry.toml`
    13748031
Name
Last commit
Last update
..
getting-started Loading commit data...
go-ffi Loading commit data...
interfaces Loading commit data...
libraries Loading commit data...
universal Loading commit data...
ChainAssertions.sol Loading commit data...
Chains.sol Loading commit data...
Deploy.s.sol Loading commit data...
DeployConfig.s.sol Loading commit data...
DeployL2.s.sol Loading commit data...
DeployPeriphery.s.sol Loading commit data...
Deployer.sol Loading commit data...
Executables.sol Loading commit data...
FaultDisputeGameViz.s.sol Loading commit data...
FeeVaultWithdrawal.s.sol Loading commit data...
PeripheryDeployConfig.s.sol Loading commit data...
SemverLock.s.sol Loading commit data...
Types.sol Loading commit data...
check-deploy-configs.sh Loading commit data...
check-snapshots.sh Loading commit data...
dag-viz.py Loading commit data...
deploy.sh Loading commit data...
forge-test-names.ts Loading commit data...
generate-l2-genesis.sh Loading commit data...
generate-snapshots.ts Loading commit data...
invariant-doc-gen.ts Loading commit data...
restructure_tests.py Loading commit data...
slither.sh Loading commit data...
statediff.sh Loading commit data...
validate-spacers.ts Loading commit data...
verify-foundry-install.sh Loading commit data...