Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
ci: improve build resilience
Browse files Browse the repository at this point in the history
  • Loading branch information
filo87 committed Dec 21, 2023
1 parent e9bf6d5 commit 0685002
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 42 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/subql_deploy_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ jobs:
steps:
- name: Check out repo's default branch
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Setup Yarn
run: yarn install --frozen-lockfile
- name: Codegen
run: |
cp chains-cfg/base.yaml project-centrifuge.yaml
cp chains-eth/base.yaml project-ethereum.yaml
cp chains-base/base.yaml project-coinbase.yaml
yarn codegen
- name: SubQL CLI Version
run: yarn subql --version
- name: Generate new project-centrifuge.yaml
run: '[ -e chains-cfg/$CHAIN_ID.yaml ] && yq ". *=d load(\"chains-cfg/$CHAIN_ID.yaml\")" chains-cfg/base.yaml > project-centrifuge.yaml || return 0'
- name: Generate new project-ethereum.yaml
Expand All @@ -66,17 +81,6 @@ jobs:
projects:
EOF
find ./ -regex '\./project-.*\.yaml$' -exec echo " - {}" >> subquery-multichain.yaml \;
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Setup Yarn
run: yarn install --frozen-lockfile
- name: Codegen
run: yarn codegen
- name: SubQL CLI Version
run: yarn subql --version
- name: Publish SubQL version
run: |
npx subql publish -o -f .
Expand Down
1 change: 0 additions & 1 deletion chains-base/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ dataSources:
- kind: ethereum/Runtime
options:
abi: poolManager
address: '0xa5Beda1F48a07740b8f4bDb223C861Cc7702b14e'
assets:
poolManager:
file: './poolManager.abi.json'
Expand Down
4 changes: 3 additions & 1 deletion chains-base/centrifuge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ network:
dictionary: "https://api.subquery.network/sq/subquery/base-dictionary"
dataSources:
- kind: ethereum/Runtime
#startBlock: 13078300
startBlock: 13078300
options:
address: '0x78E9e622A57f70F1E0Ec652A4931E4e278e58142'
4 changes: 3 additions & 1 deletion chains-base/development-embrio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ network:
dictionary: "https://api.subquery.network/sq/subquery/base-goerli-dictionary"
dataSources:
- kind: ethereum/Runtime
startBlock: 13078300
startBlock: 13078300
options:
address: '0x53c155d44C03CC28f892f90aA0C442850716D75F'
2 changes: 1 addition & 1 deletion chains-eth/altair.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
network:
chainId: '5' #Goerli
endpoint: "https://goerli.infura.io/v3/${ETH_NODE_API_KEY}"
endpoint: "https://goerli.infura.io/v3/a4ba76cd4be643618572e7467a444e3a"
dictionary: "https://dict-tyk.subquery.network/query/eth-goerli"
15 changes: 15 additions & 0 deletions chains-eth/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ description: 'SubQuery API powered by EMBRIO.tech to query Centrifuge chain data
repository: https://github.com/centrifuge/pools-subql
schema:
file: './schema.graphql'
dataSources:
- kind: ethereum/Runtime
options:
abi: poolManager
assets:
poolManager:
file: './poolManager.abi.json'
mapping:
file: './dist/index.js'
handlers:
- handler: handleEvmDeployTranche
kind: ethereum/LogHandler
filter:
topics:
- DeployTranche(uint64 indexed poolId, bytes16 indexed trancheId, address indexed token)
templates:
- name: TrancheTracker
kind: ethereum/Runtime
Expand Down
14 changes: 1 addition & 13 deletions chains-eth/centrifuge.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
network:
chainId: '1' # Ethereum Mainnet
endpoint: "https://mainnet.infura.io/v3/${ETH_NODE_API_KEY}"
endpoint: "https://goerli.infura.io/v3/a4ba76cd4be643618572e7467a444e3a"
dictionary: "https://gx.api.subquery.network/sq/subquery/eth-dictionary"
dataSources:
- kind: ethereum/Runtime
startBlock: 18671269
options:
abi: poolManager
address: '0x78E9e622A57f70F1E0Ec652A4931E4e278e58142'
assets:
poolManager:
file: './poolManager.abi.json'
mapping:
file: './dist/index.js'
handlers:
- handler: handleEvmDeployTranche
kind: ethereum/LogHandler
filter:
topics:
- DeployTranche(uint64 indexed poolId, bytes16 indexed trancheId, address indexed token)
14 changes: 1 addition & 13 deletions chains-eth/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,4 @@ dataSources:
- kind: ethereum/Runtime
startBlock: 10055835
options:
abi: poolManager
address: '0x53c155d44C03CC28f892f90aA0C442850716D75F'
assets:
poolManager:
file: './poolManager.abi.json'
mapping:
file: './dist/index.js'
handlers:
- handler: handleEvmDeployTranche
kind: ethereum/LogHandler
filter:
topics:
- DeployTranche(uint64 indexed poolId, bytes16 indexed trancheId, address indexed token)
address: '0x53c155d44C03CC28f892f90aA0C442850716D75F'
7 changes: 6 additions & 1 deletion chains-eth/development-embrio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ repository: 'https://github.com/embrio-tech/centrifuge-subql'
network:
chainId: '5' #Goerli
endpoint: "https://goerli.infura.io/v3/a4ba76cd4be643618572e7467a444e3a"
dictionary: "https://dict-tyk.subquery.network/query/eth-goerli"
dictionary: "https://dict-tyk.subquery.network/query/eth-goerli"
dataSources:
- kind: ethereum/Runtime
startBlock: 18671269
options:
address: '0x53c155d44C03CC28f892f90aA0C442850716D75F'

0 comments on commit 0685002

Please sign in to comment.