Skip to content

Optimism-Goerli proposal#726

Merged
kevincheng96 merged 11 commits intosilver/optimism-deployment-testnetfrom
kevin/op-testnet-proposal
Apr 5, 2023
Merged

Optimism-Goerli proposal#726
kevincheng96 merged 11 commits intosilver/optimism-deployment-testnetfrom
kevin/op-testnet-proposal

Conversation

@kevincheng96
Copy link
Copy Markdown
Contributor

@kevincheng96 kevincheng96 commented Mar 27, 2023

This PR creates the Optimism-Goerli migration script for launching cUSDCv3. This PR also updates the Optimism message-passing bridge relayer logic in our scenarios so we can test token bridging using scenarios.

Proposal 70 created and executed: https://goerli.etherscan.io/tx/0x6defeea621b4778cfab509ea5ed5ce2ed4da78535dc75e787312b78413e88aaf

Execution of proposal on Optimism Goerli: https://goerli-optimism.etherscan.io/tx/0x465b0e6863afeb1640336b6843b4b03ce51a13b01cae51f04638cd4054a41392

@kevincheng96 kevincheng96 force-pushed the kevin/op-testnet-proposal branch from 236da86 to cb9445f Compare March 27, 2023 23:58
Copy link
Copy Markdown
Contributor

@jflatow jflatow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great 🏆

@kevincheng96 kevincheng96 force-pushed the silver/optimism-deployment-testnet branch 2 times, most recently from 3ff7466 to 09b1f81 Compare March 31, 2023 23:48
@kevincheng96 kevincheng96 force-pushed the kevin/op-testnet-proposal branch from 4e055fe to 48e4624 Compare April 1, 2023 00:01
Dawidowak

This comment was marked as spam.

@kevincheng96 kevincheng96 force-pushed the silver/optimism-deployment-testnet branch from 09b1f81 to c920060 Compare April 4, 2023 17:16
@kevincheng96 kevincheng96 force-pushed the kevin/op-testnet-proposal branch from 6d22fb1 to 9510860 Compare April 4, 2023 17:20
@kevincheng96 kevincheng96 force-pushed the silver/optimism-deployment-testnet branch from c920060 to b3f9345 Compare April 4, 2023 17:29
@kevincheng96 kevincheng96 force-pushed the kevin/op-testnet-proposal branch from 9510860 to 1a7e23a Compare April 4, 2023 17:46
Comment on lines +154 to +174
const stateChanges = await diffState(comet, getCometConfig, preMigrationBlockNumber);
expect(stateChanges).to.deep.equal({
pauseGuardian: '0xe7661C55fe281f986FA5312D57d19ADb6064462F',
baseTrackingSupplySpeed: exp(0.000011574074074, 15, 15).toString(),
baseTrackingBorrowSpeed: exp(0.001145833333333, 15, 15).toString(),
baseMinForRewards: exp(10_000, 6).toString(),
targetReserves: exp(1_000_000, 6).toString(),
OP: {
supplyCap: exp(1_000_000, 18)
},
WBTC: {
supplyCap: exp(20_000, 8)
},
WETH: {
supplyCap: exp(50_000, 18)
}
})
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use the differ to verify state changes here.

@kevincheng96
Copy link
Copy Markdown
Contributor Author

@kevincheng96 kevincheng96 force-pushed the kevin/op-testnet-proposal branch from 5298c59 to 5075972 Compare April 5, 2023 00:13
@kevincheng96
Copy link
Copy Markdown
Contributor Author

Re-running this migration because we re-deployed Comet on Optimism-Goerli. See #710 (comment) for context.

@kevincheng96 kevincheng96 force-pushed the kevin/op-testnet-proposal branch from 5075972 to cb356da Compare April 5, 2023 04:26
@kevincheng96
Copy link
Copy Markdown
Contributor Author

@kevincheng96 kevincheng96 merged commit ed524e3 into silver/optimism-deployment-testnet Apr 5, 2023
@kevincheng96 kevincheng96 deleted the kevin/op-testnet-proposal branch April 5, 2023 05:08
kevincheng96 added a commit that referenced this pull request Apr 5, 2023
* Optimism testnet deploy

* WIP

* Allow `existing` to merge into a proxy and use for optimism-goerli

* Fix cross-chain scenario by passing in gasLimit from the L1 txn

* Update deploy and bump hardhat

* Fix Optimism scenarios (#721)

* Add logs when executing a bridged proposal

* Add new regex to custom error checker

* Use separate Etherscan API key for optimism

* Add USDC whale for optimism-goerli

* Add revert error message for WETH

* More scenario fixes

* Fix remaining scenario errors

* Add case for optimism-goerli to createCrossChainProposal

* Add optimism etherscan key to forge test job

* Update collateral assets and deploy script

* Update WBTC supply cap decimals

* Deploy Comet to Optimism-Goerli and upload VerifyArgs when deploy fails (#728)

We deploy Comet to Optimism-Goerli and update the roots in this PR. This PR also improves the deploy step by allowing us to recover the `VerifyArgs` if a deploy job fails mid-deploy. This also includes a fix for verifying contracts in Optimism-Goerli.

---------

Co-authored-by: GitHub Actions Bot <>
Co-authored-by: Jared Flatow <jflatow@gmail.com>

* Update timelock constructor params in deploy script

* Remove roots for re-deploy

* Modified deployment roots from GitHub Actions

* Optimism-Goerli proposal (#726)

This PR creates the Optimism-Goerli migration script for launching cUSDCv3. This PR also updates the Optimism message-passing bridge relayer logic in our scenarios so we can test token bridging using scenarios.

Proposal 70 created and executed: https://goerli.etherscan.io/tx/0x6defeea621b4778cfab509ea5ed5ce2ed4da78535dc75e787312b78413e88aaf

Execution of proposal on Optimism Goerli: https://goerli-optimism.etherscan.io/tx/0x465b0e6863afeb1640336b6843b4b03ce51a13b01cae51f04638cd4054a41392

---------

Co-authored-by: GitHub Actions Bot <>

---------

Co-authored-by: Jared Flatow <jflatow@gmail.com>
Co-authored-by: kevincheng96 <kevincheng96@hotmail.com>
Co-authored-by: GitHub Actions Bot <>
kevincheng96 added a commit that referenced this pull request May 22, 2023
* Optimism testnet deploy

* WIP

* Allow `existing` to merge into a proxy and use for optimism-goerli

* Fix cross-chain scenario by passing in gasLimit from the L1 txn

* Update deploy and bump hardhat

* Fix Optimism scenarios (#721)

* Add logs when executing a bridged proposal

* Add new regex to custom error checker

* Use separate Etherscan API key for optimism

* Add USDC whale for optimism-goerli

* Add revert error message for WETH

* More scenario fixes

* Fix remaining scenario errors

* Add case for optimism-goerli to createCrossChainProposal

* Add optimism etherscan key to forge test job

* Update collateral assets and deploy script

* Update WBTC supply cap decimals

* Deploy Comet to Optimism-Goerli and upload VerifyArgs when deploy fails (#728)

We deploy Comet to Optimism-Goerli and update the roots in this PR. This PR also improves the deploy step by allowing us to recover the `VerifyArgs` if a deploy job fails mid-deploy. This also includes a fix for verifying contracts in Optimism-Goerli.

---------

Co-authored-by: GitHub Actions Bot <>
Co-authored-by: Jared Flatow <jflatow@gmail.com>

* Update timelock constructor params in deploy script

* Remove roots for re-deploy

* Modified deployment roots from GitHub Actions

* Optimism-Goerli proposal (#726)

This PR creates the Optimism-Goerli migration script for launching cUSDCv3. This PR also updates the Optimism message-passing bridge relayer logic in our scenarios so we can test token bridging using scenarios.

Proposal 70 created and executed: https://goerli.etherscan.io/tx/0x6defeea621b4778cfab509ea5ed5ce2ed4da78535dc75e787312b78413e88aaf

Execution of proposal on Optimism Goerli: https://goerli-optimism.etherscan.io/tx/0x465b0e6863afeb1640336b6843b4b03ce51a13b01cae51f04638cd4054a41392

---------

Co-authored-by: GitHub Actions Bot <>

---------

Co-authored-by: Jared Flatow <jflatow@gmail.com>
Co-authored-by: kevincheng96 <kevincheng96@hotmail.com>
Co-authored-by: GitHub Actions Bot <>
kevincheng96 added a commit that referenced this pull request Jun 1, 2023
* Optimism Deployment

base configuration.json

add optimism values to etherscan.ts

relations

base relayPolygonMessage

add isBridgeProposal

rename to relayOptimismMessage

add optimismL1CrossDomainMessenger to mainnet/usdc deploy

partial relayOptimismMessage impl

relayOptimismMessage impl cont'd

optimism deploy script

complete relayOptimismMessage impl

bump supply caps

rename iface

applyL1ToL2Alias helper

bridge receiver contract

add crossDomainMessenger arg to constructor in deplooy.ts

add scenario, matchesDeployment helper

reuse CROSS_DOMAIN_MESSENGER

lint

update Github Actions

update asset information

* Incorporate Optimism audit feedback (#699)

update comment in Optimism deploy script

update Bulker path

I for Interface

Optimism deployment misc fixes (#701)

* WETH whale

* add optimismL1CrossDomainManager to roots

* Optimism testnet deployment (#710)

* Optimism testnet deploy

* WIP

* Allow `existing` to merge into a proxy and use for optimism-goerli

* Fix cross-chain scenario by passing in gasLimit from the L1 txn

* Update deploy and bump hardhat

* Fix Optimism scenarios (#721)

* Add logs when executing a bridged proposal

* Add new regex to custom error checker

* Use separate Etherscan API key for optimism

* Add USDC whale for optimism-goerli

* Add revert error message for WETH

* More scenario fixes

* Fix remaining scenario errors

* Add case for optimism-goerli to createCrossChainProposal

* Add optimism etherscan key to forge test job

* Update collateral assets and deploy script

* Update WBTC supply cap decimals

* Deploy Comet to Optimism-Goerli and upload VerifyArgs when deploy fails (#728)

We deploy Comet to Optimism-Goerli and update the roots in this PR. This PR also improves the deploy step by allowing us to recover the `VerifyArgs` if a deploy job fails mid-deploy. This also includes a fix for verifying contracts in Optimism-Goerli.

---------

Co-authored-by: GitHub Actions Bot <>
Co-authored-by: Jared Flatow <jflatow@gmail.com>

* Update timelock constructor params in deploy script

* Remove roots for re-deploy

* Modified deployment roots from GitHub Actions

* Optimism-Goerli proposal (#726)

This PR creates the Optimism-Goerli migration script for launching cUSDCv3. This PR also updates the Optimism message-passing bridge relayer logic in our scenarios so we can test token bridging using scenarios.

Proposal 70 created and executed: https://goerli.etherscan.io/tx/0x6defeea621b4778cfab509ea5ed5ce2ed4da78535dc75e787312b78413e88aaf

Execution of proposal on Optimism Goerli: https://goerli-optimism.etherscan.io/tx/0x465b0e6863afeb1640336b6843b4b03ce51a13b01cae51f04638cd4054a41392

---------

Co-authored-by: GitHub Actions Bot <>

---------

Co-authored-by: Jared Flatow <jflatow@gmail.com>
Co-authored-by: kevincheng96 <kevincheng96@hotmail.com>
Co-authored-by: GitHub Actions Bot <>

* Fix comment

* Support Base Goerli

* Address feedback for Base Goerli

* Remove all codepaths related to Optimism Mainnet

* Add cbETH as collateral asset and set supply caps to 0 for deploy

* Formatting

* Re-order asset configuration because WETH being the first asset breaks the bulker scenario

* Modified deployment roots from GitHub Actions

* Update configuration for pause guardian and supply caps; check diffState in proposal

* Modified migration from GitHub Actions

---------

Co-authored-by: Scott Silver <scott@compound.finance>
Co-authored-by: Jared Flatow <jflatow@gmail.com>
Co-authored-by: GitHub Actions Bot <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants