From 090eb11641a653104714dc7fa02d275dba281b56 Mon Sep 17 00:00:00 2001 From: Corey Rice Date: Mon, 14 Oct 2024 13:51:05 -0300 Subject: [PATCH] feat: deploy etherfi promo to arbitrum --- subgraphs/etherfi-promo/config/index.ts | 9 ++++++++- subgraphs/etherfi-promo/package.json | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/subgraphs/etherfi-promo/config/index.ts b/subgraphs/etherfi-promo/config/index.ts index 8b2d226d..e2fa3469 100644 --- a/subgraphs/etherfi-promo/config/index.ts +++ b/subgraphs/etherfi-promo/config/index.ts @@ -1,11 +1,12 @@ #!/usr/bin/env ts-node +import arbitrumILDeployments from '@venusprotocol/isolated-pools/deployments/arbitrumone_addresses.json'; import ethereumILDeployments from '@venusprotocol/isolated-pools/deployments/ethereum_addresses.json'; import sepoliaILDeployments from '@venusprotocol/isolated-pools/deployments/sepolia_addresses.json'; import fs from 'fs'; import Mustache from 'mustache'; export const getNetwork = () => { - const supportedNetworks = ['sepolia', 'ethereum', 'docker', 'bsc'] as const; + const supportedNetworks = ['sepolia', 'ethereum', 'docker', 'bsc', 'arbitrum'] as const; const network = process.env.NETWORK as (typeof supportedNetworks)[number]; if (!supportedNetworks.includes(network)) { throw new Error(`NETWORK env var must be set to one of ${supportedNetworks}`); @@ -46,6 +47,12 @@ const main = () => { vWeEthStartBlock: '41956130', template: 'template-bsc.yaml', }, + arbitrum: { + network: 'arbitrum-one', + vWeEthAddress: arbitrumILDeployments.addresses.VToken_vweETH_LiquidStakedETH, + vWeEthStartBlock: '245908467', + template: 'template-bsc.yaml', + }, }; const yamlTemplate = fs.readFileSync(config[network].template, 'utf8'); const yamlOutput = Mustache.render(yamlTemplate, config[network]); diff --git a/subgraphs/etherfi-promo/package.json b/subgraphs/etherfi-promo/package.json index 00d55da6..052ab69d 100644 --- a/subgraphs/etherfi-promo/package.json +++ b/subgraphs/etherfi-promo/package.json @@ -19,10 +19,12 @@ "deploy:sepolia": "yarn prepare:sepolia && graph deploy --studio etherfi-promo-sepolia", "deploy:ethereum": "yarn prepare:ethereum && graph deploy --studio etherfi-promo", "deploy:bsc": "yarn prepare:bsc && graph deploy --studio etherfi-promo-bnb", + "deploy:arbitrum": "yarn prepare:arbitrum && graph deploy --studio etherfi-promo-arbitrum", "prepare:docker": "NETWORK=docker yarn ts-node config/index.ts", "prepare:sepolia": "NETWORK=sepolia yarn ts-node config/index.ts", "prepare:ethereum": "NETWORK=ethereum yarn ts-node config/index.ts", "prepare:bsc": "NETWORK=bsc yarn ts-node config/index.ts", + "prepare:arbitrum": "NETWORK=arbitrum yarn ts-node config/index.ts", "generate-subgraph-types": "rm -rf /subgraph-client/.graphclient && npx graphclient build --dir ./subgraph-client", "test": "graph test", "test:integration": "true"