Skip to content

Commit

Permalink
feat: add optimism deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Sep 20, 2024
1 parent 99d7ebf commit 089f191
Show file tree
Hide file tree
Showing 6 changed files with 803 additions and 47 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
"@types/node": "^20.5.9",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"@venusprotocol/governance-contracts": "2.3.0",
"@venusprotocol/isolated-pools": "3.5.0",
"@venusprotocol/oracle": "2.2.0",
"@venusprotocol/governance-contracts": "2.4.0-dev.1",
"@venusprotocol/isolated-pools": "3.6.0-dev.1",
"@venusprotocol/oracle": "2.6.0-dev.2",
"@venusprotocol/protocol-reserve": "2.3.0",
"@venusprotocol/solidity-utilities": "^2.0.3",
"@venusprotocol/venus-protocol": "9.2.0",
"@venusprotocol/venus-protocol": "9.3.0-dev.3",
"assemblyscript": "0.19.23",
"chai": "^4.3.6",
"eslint": "^8.25.0",
Expand Down Expand Up @@ -82,7 +82,7 @@
},
"resolutions": {
"@venusprotocol/governance-contracts": "2.3.0",
"@venusprotocol/venus-protocol": "9.2.0"
"@venusprotocol/venus-protocol": "9.3.0-dev.3"
},
"husky": {
"hooks": {
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/etherfi-promo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"test:integration": "true"
},
"dependencies": {
"@venusprotocol/isolated-pools": "3.5.0"
"@venusprotocol/isolated-pools": "3.6.0-dev.1"
},
"devDependencies": {
"@graphprotocol/graph-cli": "^0.80.0",
Expand Down
7 changes: 7 additions & 0 deletions subgraphs/isolated-pools/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import bscMainnetDeployments from '@venusprotocol/isolated-pools/deployments/bsc
import chapelDeployments from '@venusprotocol/isolated-pools/deployments/bsctestnet_addresses.json';
import ethereumDeployments from '@venusprotocol/isolated-pools/deployments/ethereum_addresses.json';
import opBnbMainnetDeployments from '@venusprotocol/isolated-pools/deployments/opbnbmainnet_addresses.json';
import optimismSepoliaDeployments from '@venusprotocol/isolated-pools/deployments/opsepolia_addresses.json';
import sepoliaDeployments from '@venusprotocol/isolated-pools/deployments/sepolia_addresses.json';
import zksyncDeployments from '@venusprotocol/isolated-pools/deployments/zksyncmainnet_addresses.json';
import zksyncSepoliaDeployments from '@venusprotocol/isolated-pools/deployments/zksyncsepolia_addresses.json';
Expand All @@ -22,6 +23,7 @@ export const getNetwork = () => {
'arbitrum',
'zksyncSepolia',
'zksync',
'optimismSepolia',
] as const;
const network = process.env.NETWORK;
// @ts-expect-error network env var is unknown here
Expand Down Expand Up @@ -84,6 +86,11 @@ const main = () => {
poolRegistryAddress: zksyncDeployments.addresses.PoolRegistry,
startBlock: '43555102',
},
optimismSepolia: {
network: 'optimism-sepolia',
poolRegistryAddress: optimismSepoliaDeployments.addresses.PoolRegistry,
startBlock: '17040271',
},
};

Mustache.escape = function (text) {
Expand Down
4 changes: 3 additions & 1 deletion subgraphs/isolated-pools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"deploy:arbitrum": "yarn prepare:arbitrum && yarn codegen && yarn graph deploy --studio venus-isolated-pools-arbitrum",
"deploy:zksyncSepolia": "yarn prepare:zksyncSepolia && yarn codegen && yarn graph deploy --studio venus-il-zksync-sepolia",
"deploy:zksync": "yarn prepare:zksync && yarn codegen && yarn graph deploy --studio venus-isolated-pools-zksync",
"deploy:optimismSepolia": "yarn prepare:optimismSepolia && yarn codegen && yarn graph deploy --studio venus-il-optimism-sepolia",
"prepare:docker": "NETWORK=docker yarn ts-node config/index.ts",
"prepare:chapel": "NETWORK=chapel yarn ts-node config/index.ts",
"prepare:bsc": "NETWORK=bsc yarn ts-node config/index.ts",
Expand All @@ -34,13 +35,14 @@
"prepare:arbitrum": "NETWORK=arbitrum yarn ts-node config/index.ts",
"prepare:zksyncSepolia": "NETWORK=zksyncSepolia yarn ts-node config/index.ts",
"prepare:zksync": "NETWORK=zksync yarn ts-node config/index.ts",
"prepare:optimismSepolia": "NETWORK=zksyncSepolia yarn ts-node config/index.ts",
"generate-subgraph-types": "rm -rf /subgraph-client/.graphclient && yarn graphclient build --dir ./subgraph-client",
"pretty": "prettier —-write '**/*.ts'",
"test": "yarn prepare:docker && graph test",
"test:integration": "yarn hardhat test tests/integration/index.ts --network localhost"
},
"dependencies": {
"@venusprotocol/isolated-pools": "3.5.0"
"@venusprotocol/isolated-pools": "3.6.0-dev.1"
},
"devDependencies": {
"@graphprotocol/client-cli": "3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/venus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"@graphprotocol/client-cli": "3.0.0",
"@graphprotocol/graph-cli": "^0.80.0",
"@venusprotocol/venus-protocol": "9.2.0-dev.13",
"@venusprotocol/venus-protocol": "9.3.0-dev.3",
"@venusprotocol/venus-protocol-orig-events": "npm:@venusprotocol/[email protected]",
"hardhat": "^2.10.2",
"ts-node": "^10.9.2"
Expand Down
Loading

0 comments on commit 089f191

Please sign in to comment.