From df853f1d185982bc938440f96d02528e07fae9b9 Mon Sep 17 00:00:00 2001 From: jaxcoder / Date: Thu, 31 Aug 2023 00:42:50 -0400 Subject: [PATCH] avax deploy (#24) * chore: setup for avax deploy * chore: deploy avax mainnet graph * Update README.md --------- Co-authored-by: Aditya Anand M C --- round/README.md | 5 +++-- round/config/avalanche.json | 9 +++++++++ round/config/fuji.json | 9 +++++++++ round/package.json | 4 ++-- 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 round/config/avalanche.json create mode 100644 round/config/fuji.json diff --git a/round/README.md b/round/README.md index 5bb6dd0..91189ff 100644 --- a/round/README.md +++ b/round/README.md @@ -22,7 +22,8 @@ The following sections document the hosted services where the subgraph is deploy | pgn | gitcoinco/grants-round-pgn-mainnet | | http://159.89.46.168:8000/subgraphs/name/gitcoin/allo | | arbitrum-testnet | gitcoinco/grants-round-arbitrum-goerli | https://thegraph.com/explorer/subgraph/gitcoinco/grants-round-arbitrum-goerli | https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-arbitrum-goerli | | arbitrum-mainnet | gitcoinco/grants-round-arbitrum-mainnet | https:/thegraph.com/explorer/subgraph/gitcoinco/gitcoin-grants-arbitrum-one/ | https://api.thegraph.com/subgraphs/name/gitcoinco/gitcoin-grants-arbitrum-one/ | -| fuji-testnet | gitcoinco/grants-round-fuji-testnet | https://thegraph.com/explorer/subgraph/gitcoinco/grants-round-fuji-testnet | https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-fuji-testnet/ | +| fuji | gitcoinco/grants-round-fuji-testnet | https://thegraph.com/explorer/subgraph/gitcoinco/grants-round-fuji-testnet | https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-fuji-testnet/ | +| avalanche | https://thegraph.com/hosted-service/subgraph/gitcoinco/grants-round-avalanche-mainnet | https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-avalanche-mainnet/graphql | ## Directory Structure @@ -90,7 +91,6 @@ pnpm prepare: **Supported Networks** - | network | |-----------------| | mainnet | @@ -107,6 +107,7 @@ pnpm prepare: | avalanche | + - Run codegen ```shell graph codegen diff --git a/round/config/avalanche.json b/round/config/avalanche.json new file mode 100644 index 0000000..847d530 --- /dev/null +++ b/round/config/avalanche.json @@ -0,0 +1,9 @@ +{ + "network": "avalanche", + "startBlock": 34540000, + "programFactoryAddress": "0xd07D54b0231088Ca9BF7DA6291c911B885cBC140", + "roundFactoryAddress": "0x8eC471f30cA797FD52F9D37A47Be2517a7BD6912", + "merklePayoutStrategyFactoryAddress": "0x27efa1C90e097c980c669AB1a6e326AD4164f1Cb", + "directPayoutStrategyFactoryAddress": "0x8AdFcF226dfb2fA73788Ad711C958Ba251369cb3", + "alloSettingsAddress": "0xc6B90f42Ea395898B4C1B33e5C8Fa351829BCD90" + } \ No newline at end of file diff --git a/round/config/fuji.json b/round/config/fuji.json new file mode 100644 index 0000000..575fb98 --- /dev/null +++ b/round/config/fuji.json @@ -0,0 +1,9 @@ +{ + "network": "fuji-testnet", + "startBlock": 0, + "programFactoryAddress": "0x862D7F621409cF572f179367DdF1B7144AcE1c76", + "roundFactoryAddress": "0x3615d870d5B760cea43693ABED70Cd8A9b59b3d8", + "merklePayoutStrategyFactoryAddress": "0x8F8d78f119Aa722453d33d6881f4D400D67D054F", + "directPayoutStrategyFactoryAddress": "0x0F98547e09D41e3c82086fC5Eb0E42Ab786aA763", + "alloSettingsAddress": "0xdf25423c9ec15347197Aa5D3a41c2ebE27587D59" + } \ No newline at end of file diff --git a/round/package.json b/round/package.json index ba17ac9..0ea51ef 100644 --- a/round/package.json +++ b/round/package.json @@ -22,8 +22,8 @@ "prepare:fantom": "mustache config/fantom.json subgraph.template.yaml > subgraph.yaml", "prepare:arbitrum-testnet": "mustache config/arbitrum-testnet.json subgraph.template.yaml > subgraph.yaml", "prepare:arbitrum-mainnet": "mustache config/arbitrum-testnet.json subgraph.template.yaml > subgraph.yaml", - "prepare:fuji-testnet": "mustache config/fuji-testnet.json subgraph.template.yaml > subgraph.yaml", - "prepare:avalanche-mainnet": "mustache config/avalanche-testnet.json subgraph.template.yaml > subgraph.yaml", + "prepare:fuji-testnet": "mustache config/fuji.json subgraph.template.yaml > subgraph.yaml", + "prepare:avalanche-mainnet": "mustache config/avalanche.json subgraph.template.yaml > subgraph.yaml", "codegen": "graph codegen", "build": "graph build", "deploy-hs": "graph deploy --product hosted-service lmcorbalan/gc-rounds-v0",