Skip to content

Commit

Permalink
replace matic with polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
auryn-macmillan committed Jul 20, 2022
1 parent 6e57c39 commit dd4c2b2
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
REACT_APP_SUBGRAPH_GNOSIS_CHAIN: auryn-macmillan/tabula-gnosis-chain
REACT_APP_SUBGRAPH_MAINNET: auryn-macmillan/tabula-mainnet
REACT_APP_SUBGRAPH_GOERLI: auryn-macmillan/tabula-goerli
REACT_APP_SUBGRAPH_MATIC: auryn-macmillan/tabula-matic
REACT_APP_SUBGRAPH_POLYGON: auryn-macmillan/tabula-polygon
REACT_APP_SUBGRAPH_ARBITRUM: auryn-macmillan/tabula-arbitrum
REACT_APP_SUBGRAPH_OPTIMISM: auryn-macmillan/tabula-optimism
jobs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prod-release-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
REACT_APP_SUBGRAPH_GNOSIS_CHAIN: auryn-macmillan/tabula-gnosis-chain
REACT_APP_SUBGRAPH_MAINNET: auryn-macmillan/tabula
REACT_APP_SUBGRAPH_GOERLI: auryn-macmillan/tabula-goerli
REACT_APP_SUBGRAPH_MATIC: auryn-macmillan/tabula-matic
REACT_APP_SUBGRAPH_POLYGON: auryn-macmillan/tabula-polygon
REACT_APP_SUBGRAPH_ARBITRUM: auryn-macmillan/tabula-arbitrum
REACT_APP_SUBGRAPH_OPTIMISM: auryn-macmillan/tabula-optimism
jobs:
Expand Down Expand Up @@ -120,8 +120,8 @@ jobs:
# - name: Deploy subgraph to Polygon
# working-directory: packages/subgraph
# env:
# HOSTED_SERVICE_SUBGRAPH__MATIC: auryn-macmillan/tabula-matic
# run: yarn deploy:matic
# HOSTED_SERVICE_SUBGRAPH__POLYGON: auryn-macmillan/tabula-polygon
# run: yarn deploy:polygon

- name: Deploy subgraph to Arbitrum
working-directory: packages/subgraph
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ permitted, and provided that you do these two things:
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
distribute the Library is void, and will autopolygonally terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
Expand All @@ -364,7 +364,7 @@ all its terms and conditions for copying, distributing or modifying
the Library or works based on it.

10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
Library), the recipient autopolygonally receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/connectors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const NETWORK_URLS: { [key in SupportedChainId]: string } = {
[SupportedChainId.RINKEBY]: `https://rinkeby.infura.io/v3/${INFURA_KEY}`,
[SupportedChainId.GOERLI]: `https://goerli.infura.io/v3/${INFURA_KEY}`,
[SupportedChainId.GNOSIS_CHAIN]: `https://rpc.gnosischain.com/`,
[SupportedChainId.MATIC]: `https://matic-rpc.com/`,
[SupportedChainId.POLYGON]: `https://polygon-rpc.com/`,
[SupportedChainId.ARBITRUM]: `https://arb1.arbitrum.io/rpc/`,
[SupportedChainId.OPTIMISM]: `https://mainnet.optimism.io/`,
}
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/constants/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export enum SupportedChainId {
RINKEBY = 4,
GNOSIS_CHAIN = 100,
GOERLI = 420,
MATIC = 137,
POLYGON = 137,
ARBITRUM = 42161,
OPTIMISM = 10,
}
Expand All @@ -17,7 +17,7 @@ export enum SupportedChain {
RINKEBY = "rinkeby",
GNOSIS_CHAIN = "gnosis_chain",
GOERLI = "goerli",
MATIC = "matic",
POLYGON = "polygon",
ARBITRUM = "arbitrum",
OPTIMISM = "optimism",
}
Expand Down
6 changes: 3 additions & 3 deletions packages/app/src/services/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const SUBGRAPH_GNOSIS_CHAIN = process.env.REACT_APP_SUBGRAPH_GNOSIS_CHAIN
const SUBGRAPH_RINKEBY = process.env.REACT_APP_SUBGRAPH_RINKEBY
const SUBGRAPH_MAINNET = process.env.REACT_APP_SUBGRAPH_MAINNET
const SUBGRAPH_GOERLI = process.env.REACT_APP_SUBGRAPH_GOERLI
const SUBGRAPH_MATIC = process.env.REACT_APP_SUBGRAPH_MATIC
const SUBGRAPH_POLYGON = process.env.REACT_APP_SUBGRAPH_POLYGON
const SUBGRAPH_ARBITRUM = process.env.REACT_APP_SUBGRAPH_ARBITRUM
const SUBGRAPH_OPTIMISM = process.env.REACT_APP_SUBGRAPH_OPTIMISM

Expand All @@ -33,8 +33,8 @@ const getUrl = (chainId?: number) => {
return BASE_SUBGRAPH_URL + SUBGRAPH_RINKEBY
case SupportedChainId.GOERLI:
return BASE_SUBGRAPH_URL + SUBGRAPH_GOERLI
case SupportedChainId.MATIC:
return BASE_SUBGRAPH_URL + SUBGRAPH_MATIC
case SupportedChainId.POLYGON:
return BASE_SUBGRAPH_URL + SUBGRAPH_POLYGON
case SupportedChainId.OPTIMISM:
return BASE_SUBGRAPH_URL + SUBGRAPH_OPTIMISM
case SupportedChainId.ARBITRUM:
Expand Down
4 changes: 2 additions & 2 deletions packages/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"prepare:rinkeby": "mustache network_configs/rinkeby.json subgraph.template.yaml > subgraph.yaml",
"deploy:goerli": "yarn prepare:goerli && bash -c 'source .env || true && graph deploy --node https://api.thegraph.com/deploy/ $HOSTED_SERVICE_SUBGRAPH__GOERLI'",
"prepare:goerli": "mustache network_configs/goerli.json subgraph.template.yaml > subgraph.yaml",
"deploy:matic": "yarn prepare:matic && bash -c 'source .env || true && graph deploy --node https://api.thegraph.com/deploy/ $HOSTED_SERVICE_SUBGRAPH__MATIC'",
"prepare:matic": "mustache network_configs/matic.json subgraph.template.yaml > subgraph.yaml",
"deploy:polygon": "yarn prepare:polygon && bash -c 'source .env || true && graph deploy --node https://api.thegraph.com/deploy/ $HOSTED_SERVICE_SUBGRAPH__POLYGON'",
"prepare:polygon": "mustache network_configs/polygon.json subgraph.template.yaml > subgraph.yaml",
"deploy:optimism": "yarn prepare:optimism && bash -c 'source .env || true && graph deploy --node https://api.thegraph.com/deploy/ $HOSTED_SERVICE_SUBGRAPH__OPTIMISM'",
"prepare:optimism": "mustache network_configs/optimism.json subgraph.template.yaml > subgraph.yaml",
"deploy:arbitrum": "yarn prepare:arbitrum && bash -c 'source .env || true && graph deploy --node https://api.thegraph.com/deploy/ $HOSTED_SERVICE_SUBGRAPH__ARBITRUM'",
Expand Down

0 comments on commit dd4c2b2

Please sign in to comment.