Skip to content

Commit

Permalink
chore: add testnet deployments and update settings (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDiscotech authored Sep 17, 2024
2 parents 8869b78 + de93cb2 commit afb29b2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ jobs:
run: yarn test:integration

lint:
name: Lint Commit Messages
name: Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 1 # Fetch only the last commit

- uses: wagoid/commitlint-github-action@v6

Expand Down
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ Chain operators can use the Bridged USDC Standard for the OP Stack to get bridge


## Contracts
> :exclamation: `L1OpUSDCFactory.sol` has been deployed to `0x7dB8637A5fd20BbDab1176BdF49C943A96F2E9c6`.
> :exclamation: `L1OpUSDCFactory.sol` has been deployed to the following addresses:
- Mainnet: `0x7dB8637A5fd20BbDab1176BdF49C943A96F2E9c6`
- Sepolia: `0x3c66c9b865c7c43330606D8CfAf86480c92f9f40`

> :exclamation: `L1OpUSDCBridgeAdapter.sol` has been deployed to the following addresses:
- Sepolia: `0xE9E655E8420E8191a7b747a43f9752a4F93913d2`

> :exclamation: `L2OpUSDCBridgeAdapter.sol` has been deployed to the following addresses:
- Optimism Sepolia: `0xa2865E6f7a981914732466ab44a4a53d5FfEFE80`

> :exclamation: `Bridged USDC` contract has been deployed to the following addresses:
- Optimism Sepolia: `0x13C8BBfee9aaD48393fcfF409Fac17e1E108B744`

_`L1OpUSDCFactory.sol`_ - Factory contract to deploy and setup the `L1OpUSDCBridgeAdapter` contract on L1. Precalculates the addresses of the L2 deployments and triggers their deployment, by sending a transaction to L2.

Expand Down Expand Up @@ -155,6 +166,11 @@ And when you are ready to deploy to mainnet, run:
yarn script:deploy:broadcast
```

### Tips For Verifying

- Remember to set the EVM version to `paris` when verifying the contracts.
- If you are verifying manually through a block explorer UI, you can choose a single Soldiity file option and use `forge flatten <contract_name> > <flattened_contract_name>` to get the flattened contract and avoid having to upload multiple Solidity files.

## Migrating to Native USDC
> ⚠️ Migrating to native USDC is a manual process that requires communication with Circle, this section assumes both parties are ready to migrate to native USDC. Please review [Circle’s documentation](https://www.circle.com/blog/bridged-usdc-standard) to learn about the process around Circle obtaining ownership of the Bridged USDC Standard token contract.
Expand Down
3 changes: 2 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ bracket_spacing = false
int_types = 'long'
quote_style = 'single'
number_underscore = 'thousands'
multiline_func_header = 'params_first'
multiline_func_header = 'params_first_multi'
sort_imports = true

[profile.default]
solc_version = '0.8.25'
evm_version = 'paris'

[profile.optimized]
via_ir = true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"script:migrate": "forge script script/mainnet/migration/MigrateToNative.s.sol --slow --via-ir",
"script:migrate:broadcast": "forge script script/mainnet/migration/MigrateToNative.s.sol --broadcast --verify --slow --via-ir",
"test": "forge test -vvv",
"test:fuzz": "echidna test/invariants/fuzz/OpUSDC.t.sol --config test/invariants/fuzz/config.yaml --contract OpUsdcTest",
"test:fuzz": "echidna test/invariants/fuzz/OpUSDC.t.sol --config test/invariants/fuzz/OpUsdc.yaml --contract FuzzOpUsdc",
"test:integration": "forge test --match-contract Integration -vvv",
"test:symb": "halmos",
"test:unit": "forge test --match-contract Unit -vvv",
Expand Down

0 comments on commit afb29b2

Please sign in to comment.