Skip to content

Commit

Permalink
Fix adam branch (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincheng96 authored Mar 21, 2024
1 parent 2aaf56a commit 37d4adc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 7 additions & 5 deletions deployments/base-sepolia/usdc/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Deployed, DeploymentManager } from '../../../plugins/deployment_manager';
import { DeploySpec, deployComet } from '../../../src/deploy';
import { DeploySpec, deployComet, exp } from '../../../src/deploy';

const SECONDS_PER_DAY = 24 * 60 * 60;

Expand Down Expand Up @@ -27,7 +27,8 @@ async function deployContracts(
const cbETH = await deploymentManager.existing(
'cbETH',
'0x774eD9EDB0C5202dF9A86183804b5D9E99dC6CA3',
'base-sepolia'
'base-sepolia',
'contracts/ERC20.sol:ERC20'
);

const USDC = await deploymentManager.existing(
Expand All @@ -39,7 +40,8 @@ async function deployContracts(
const COMP = await deploymentManager.existing(
'COMP',
'0x2f535da74048c0874400f0371Fba20DF983A56e2',
'base-sepolia'
'base-sepolia',
'contracts/ERC20.sol:ERC20'
);

const l2CrossDomainMessenger = await deploymentManager.existing(
Expand All @@ -66,7 +68,7 @@ async function deployContracts(

// Deploy ETH / USD SimplePriceFeed
const ethToUSDPriceFeed = await deploymentManager.deploy(
'WETH:simplePriceFeed',
'WETH:priceFeed',
'test/SimplePriceFeed.sol',
[
exp(3477.28, 8), // Latest answer on mainnet at block 19463076
Expand All @@ -75,7 +77,7 @@ async function deployContracts(
);

const cbethToUSDPriceFeed = await deploymentManager.deploy(
'cbETH:simplePriceFeed',
'cbETH:priceFeed',
'test/SimplePriceFeed.sol',
[
exp(3477.28, 8), // Latest answer on mainnet at block 19463076
Expand Down
12 changes: 11 additions & 1 deletion deployments/base-sepolia/usdc/relations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,24 @@ export default {
artifact: 'contracts/bridges/optimism/OptimismBridgeReceiver.sol:OptimismBridgeReceiver'
},

// cbETH
'0x774ed9edb0c5202df9a86183804b5d9e99dc6ca3': {
artifact: 'contracts/ERC20.sol:ERC20',
},

// COMP
'0x2f535da74048c0874400f0371fba20df983a56e2': {
artifact: 'contracts/ERC20.sol:ERC20',
},

l2CrossDomainMessenger: {
delegates: {
field: {
slot: '0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc'
}
}
},

l2StandardBridge: {
delegates: {
field: {
Expand Down

0 comments on commit 37d4adc

Please sign in to comment.