Skip to content

Commit

Permalink
Merge pull request #186 from VenusProtocol/arbitrum-etherfi-promo
Browse files Browse the repository at this point in the history
feat: deploy etherfi promo to arbitrum
  • Loading branch information
coreyar authored Oct 29, 2024
2 parents 8e5f996 + 090eb11 commit f82273d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion subgraphs/etherfi-promo/config/index.ts
Original file line number Diff line number Diff line change
@@ -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}`);
Expand Down Expand Up @@ -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]);
Expand Down
2 changes: 2 additions & 0 deletions subgraphs/etherfi-promo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f82273d

Please sign in to comment.