Skip to content

Commit

Permalink
Merge pull request #171 from gnosis/fix/ci-cd
Browse files Browse the repository at this point in the history
Fix/ci cd
  • Loading branch information
auryn-macmillan authored Aug 17, 2022
2 parents f7281a0 + ec07ebd commit 09ef1e1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 21 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/prod-release-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,6 @@ jobs:
HOSTED_SERVICE_SUBGRAPH__OPTIMISM: auryn-macmillan/tabula-optimism
run: yarn deploy:optimism

- name: Deploy subgraph to Optimism on Gnosis Chain
working-directory: packages/subgraph
env:
HOSTED_SERVICE_SUBGRAPH__OPTIMISM__ON__GNOSIS__CHAIN: auryn-macmillan/tabula-optimism-on-gnosis-chain
run: yarn deploy:optimism-on-gnosis-chain

- name: Deploy to Github Pages
uses: JamesIves/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion packages/app/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ REACT_APP_SUBGRAPH_POLYGON=auryn-macmillan/tabula-polygon
REACT_APP_SUBGRAPH_ARBITRUM=auryn-macmillan/tabula-arbitrum
REACT_APP_SUBGRAPH_OPTIMISM=auryn-macmillan/tabula-optimism
REACT_APP_IPFS_GATEWAY=https://ipfs.io/ipfs
REACT_APP_SUBGRAPH_OPTIMISM=auryn-macmillan/tabula-optimism-on-gnosis-chain
REACT_APP_SUBGRAPH_OPTIMISM_ON_GNOSIS_CHAIN=auryn-macmillan/tabula-optimism-on-gnosis-chain
26 changes: 13 additions & 13 deletions packages/app/src/constants/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const ALL_SUPPORTED_CHAIN_IDS: SupportedChainId[] = [
SupportedChainId.POLYGON,
SupportedChainId.ARBITRUM,
SupportedChainId.OPTIMISM,
SupportedChainId.OPTIMISM_ON_GNOSIS_CHAIN,
// SupportedChainId.OPTIMISM_ON_GNOSIS_CHAIN,
]

export const chainToString = (chainId: number) => {
Expand Down Expand Up @@ -235,17 +235,17 @@ const chainParameters = (chainId: number) => {
},
blockExplorerUrls: ["https://optimistic.etherscan.io/"],
}
case SupportedChainId.OPTIMISM_ON_GNOSIS_CHAIN:
return {
chainId: requiredChainIdHex,
chainName: "Optimism on Gnosis Chain",
rpcUrls: ["https://optimism.gnosischain.com"],
nativeCurrency: {
name: "xDai",
symbol: "xDai",
decimals: 18,
},
blockExplorerUrls: ["https://blockscout.com/xdai/optimism/"],
}
// case SupportedChainId.OPTIMISM_ON_GNOSIS_CHAIN:
// return {
// chainId: requiredChainIdHex,
// chainName: "Optimism on Gnosis Chain",
// rpcUrls: ["https://optimism.gnosischain.com"],
// nativeCurrency: {
// name: "xDai",
// symbol: "xDai",
// decimals: 18,
// },
// blockExplorerUrls: ["https://blockscout.com/xdai/optimism/"],
// }
}
}
2 changes: 1 addition & 1 deletion packages/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"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:optimism-on-gnosis-chain": "yarn prepare:optimism-on-gnosis-chain && bash -c 'source .env || true && graph deploy --node https://api.thegraph.com/deploy/ $HOSTED_SERVICE_SUBGRAPH__OPTIMISM__ON__GNOSIS__CHAIN'",
"prepare:optimism": "mustache network_configs/optimism-on-gnosis-chain.json subgraph.template.yaml > subgraph.yaml",
"prepare:optimism-on-gnosis-chain": "mustache network_configs/optimism-on-gnosis-chain.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'",
"prepare:arbitrum": "mustache network_configs/arbitrum.json subgraph.template.yaml > subgraph.yaml",
"fmt": "prettier '(test|src)/**/*.ts' -w",
Expand Down

0 comments on commit 09ef1e1

Please sign in to comment.