Skip to content

Commit

Permalink
avax deploy (#24)
Browse files Browse the repository at this point in the history
* chore: setup for avax deploy

* chore: deploy avax mainnet graph

* Update README.md

---------

Co-authored-by: Aditya Anand M C <aditya.anandmc@gmail.com>
  • Loading branch information
codenamejason and thelostone-mc authored Aug 31, 2023
1 parent cf9b42e commit df853f1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
5 changes: 3 additions & 2 deletions round/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -90,7 +91,6 @@ pnpm prepare:<NETWORK_TO_DEPLOY_SUBGRAPH>

**Supported Networks**


| network |
|-----------------|
| mainnet |
Expand All @@ -107,6 +107,7 @@ pnpm prepare:<NETWORK_TO_DEPLOY_SUBGRAPH>
| avalanche |



- Run codegen
```shell
graph codegen
Expand Down
9 changes: 9 additions & 0 deletions round/config/avalanche.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"network": "avalanche",
"startBlock": 34540000,
"programFactoryAddress": "0xd07D54b0231088Ca9BF7DA6291c911B885cBC140",
"roundFactoryAddress": "0x8eC471f30cA797FD52F9D37A47Be2517a7BD6912",
"merklePayoutStrategyFactoryAddress": "0x27efa1C90e097c980c669AB1a6e326AD4164f1Cb",
"directPayoutStrategyFactoryAddress": "0x8AdFcF226dfb2fA73788Ad711C958Ba251369cb3",
"alloSettingsAddress": "0xc6B90f42Ea395898B4C1B33e5C8Fa351829BCD90"
}
9 changes: 9 additions & 0 deletions round/config/fuji.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"network": "fuji-testnet",
"startBlock": 0,
"programFactoryAddress": "0x862D7F621409cF572f179367DdF1B7144AcE1c76",
"roundFactoryAddress": "0x3615d870d5B760cea43693ABED70Cd8A9b59b3d8",
"merklePayoutStrategyFactoryAddress": "0x8F8d78f119Aa722453d33d6881f4D400D67D054F",
"directPayoutStrategyFactoryAddress": "0x0F98547e09D41e3c82086fC5Eb0E42Ab786aA763",
"alloSettingsAddress": "0xdf25423c9ec15347197Aa5D3a41c2ebE27587D59"
}
4 changes: 2 additions & 2 deletions round/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit df853f1

Please sign in to comment.