Skip to content

Commit

Permalink
chore: update lock
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Oct 14, 2024
1 parent a6e0369 commit 48ae38c
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 175 deletions.
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 optimismDeployments from '@venusprotocol/isolated-pools/deployments/opmainnet_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';
Expand All @@ -24,6 +25,7 @@ export const getNetwork = () => {
'zksyncSepolia',
'zksync',
'optimismSepolia',
'optimism',
] as const;
const network = process.env.NETWORK;
// @ts-expect-error network env var is unknown here
Expand Down Expand Up @@ -91,6 +93,11 @@ const main = () => {
poolRegistryAddress: optimismSepoliaDeployments.addresses.PoolRegistry,
startBlock: '17040271',
},
optimism: {
network: 'optimism',
poolRegistryAddress: optimismDeployments.addresses.PoolRegistry,
startBlock: '126048098',
},
};

Mustache.escape = function (text) {
Expand Down
6 changes: 4 additions & 2 deletions subgraphs/isolated-pools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"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",
"deploy:optimism": "yarn prepare:optimism && yarn codegen && yarn graph deploy --studio venus-isolated-pools-optimism",
"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 @@ -35,14 +36,15 @@
"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",
"prepare:optimismSepolia": "NETWORK=optimismSepolia yarn ts-node config/index.ts",
"prepare:optimism": "NETWORK=optimism 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.6.0-dev.1"
"@venusprotocol/isolated-pools": "3.6.0"
},
"devDependencies": {
"@graphprotocol/client-cli": "3.0.0",
Expand Down
Loading

0 comments on commit 48ae38c

Please sign in to comment.