Skip to content

Commit

Permalink
Ethereum (#2)
Browse files Browse the repository at this point in the history
* rebase

* pull latest changes

* updating dependencies

* Fix runtime exit

* bug fixes

* fix linter

* fix linter

* Rename node-avalanche to node

* modify to index ethereum

* bug fixes

* bug fixes

* lint fixes

* Update CI, remove common-node dependency

* Fix up releases CI workflow

* Fix runtime issues, add support for api key

* Bump versions to fix CI prerelease

* [SKIP CI] Prerelease

* Fix DI issues

* [SKIP CI] Prerelease

* Update sequelize

* [SKIP CI] Prerelease

* [release] 20220907 Avalanche (#6)

* [release] 20220907

* Update changelog

* Fix comparing chain id to genesis hash (#8)

* Fix comparing chain id to genesis hash

* Update changelog

* [SKIP CI] Prerelease

* [release] 20220908 (#9)

* add custom ds (#7)

* add custom ds

* add gitpod dockerfile

* setup postgresql in gitpod dockerfile

* bug fixes

* remove block reference from logs

* check if topic exists in logs while filtering

* fix log filter

* [SKIP CI] Prerelease

* bug fixes

* gitpod config

* add ethers to dependancy

* add gitpod config

* Update .gitpod.yml

* change package names to ethereum

* get full block details

* get genesis block from eth call

* Clean up, rename types-ethereum to types

* Empty to test CI

Co-authored-by: DeveloperInProgress <[email protected]>
  • Loading branch information
stwiname and guplersaxanoid authored Oct 17, 2022
1 parent 292d7ca commit 1755422
Show file tree
Hide file tree
Showing 403 changed files with 4,664 additions and 30,828 deletions.
33 changes: 1 addition & 32 deletions .github/workflows/gh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,46 +22,15 @@ jobs:
#Create github releases
- uses: ./.github/actions/create-release
with:
package-path: packages/cli
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/common
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/common-substrate
repo-token: ${{ secrets.REPO_TOKEN }}


- uses: ./.github/actions/create-release
with:
package-path: packages/node-core
package-path: packages/common-ethereum
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/node
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/query
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/types
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/utils
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/validator
repo-token: ${{ secrets.REPO_TOKEN }}
60 changes: 0 additions & 60 deletions .github/workflows/node-avalanche-docker.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/node-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
push: true
platforms: arm64,amd64
file: ./packages/node/Dockerfile
tags: onfinality/subql-node:v${{ steps.get-node-version.outputs.NODE_VERSION }}
tags: onfinality/subql-node-ethereum:v${{ steps.get-node-version.outputs.NODE_VERSION }}
build-args: RELEASE_VERSION=${{ steps.get-node-version.outputs.NODE_VERSION }}

- name: Build and push
Expand All @@ -52,7 +52,7 @@ jobs:
push: true
platforms: arm64,amd64
file: ./packages/node/Dockerfile
tags: onfinality/subql-node:v${{ steps.get-node-version.outputs.NODE_VERSION }},onfinality/subql-node:latest
tags: onfinality/subql-node-ethereum:v${{ steps.get-node-version.outputs.NODE_VERSION }},onfinality/subql-node-ethereum:latest
build-args: RELEASE_VERSION=${{ steps.get-node-version.outputs.NODE_VERSION }}

- name: Image digest
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/node-terra-docker.yml

This file was deleted.

83 changes: 9 additions & 74 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
Bump-Prerelease-Publish:
name: Bump-Prerelease-Publish
needs: pre-ci
if: "!startsWith(github.event.head_commit.message, '[SKIP CI]') && !startsWith(github.event.head_commit.message, '[release]') && github.repository == 'subquery/subql'"
if: "!startsWith(github.event.head_commit.message, '[SKIP CI]') && !startsWith(github.event.head_commit.message, '[release]') && github.repository == 'subquery/subql-ethereum'"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -36,50 +36,20 @@ jobs:
node-version: 16

- uses: marceloprado/has-changed-path@v1
id: changed-types
id: changed-types-ethereum
with:
paths: packages/types

- uses: marceloprado/has-changed-path@v1
id: changed-common
id: changed-common-ethereum
with:
paths: packages/common

- uses: marceloprado/has-changed-path@v1
id: changed-common-substrate
with:
paths: packages/common-substrate

- uses: marceloprado/has-changed-path@v1
id: changed-cli
with:
paths: packages/cli

- uses: marceloprado/has-changed-path@v1
id: changed-node-core
with:
paths: packages/node-core
paths: packages/common-ethereum

- uses: marceloprado/has-changed-path@v1
id: changed-node
with:
paths: packages/node

- uses: marceloprado/has-changed-path@v1
id: changed-query
with:
paths: packages/query

- uses: marceloprado/has-changed-path@v1
id: changed-utils
with:
paths: packages/utils

- uses: marceloprado/has-changed-path@v1
id: changed-validator
with:
paths: packages/validator

- run: yarn

- name: build
Expand All @@ -93,32 +63,18 @@ jobs:
package-path: packages/utils
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump types & deploy
if: steps.changed-types.outputs.changed == 'true'
- name: Bump types ethereum & deploy
if: steps.changed-types-ethereum.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
with:
package-path: packages/types
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump common & deploy
if: steps.changed-common.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
with:
package-path: packages/common
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump common substrate & deploy
if: steps.changed-common-substrate.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
with:
package-path: packages/common-substrate
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump node-core & deploy
if: steps.changed-node-core.outputs.changed == 'true'
- name: Bump common ethereum & deploy
if: steps.changed-common-ethereum.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
with:
package-path: packages/node-core
package-path: packages/common-ethereum
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump node & deploy
Expand All @@ -128,27 +84,6 @@ jobs:
package-path: packages/node
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump query & deploy
if: steps.changed-query.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
with:
package-path: packages/query
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump validator & deploy
if: steps.changed-validator.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
with:
package-path: packages/validator
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump cli & deploy
if: steps.changed-cli.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
with:
package-path: packages/cli
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Commit changes
uses: EndBug/add-and-commit@v5
with:
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/query-docker.yml

This file was deleted.

Loading

0 comments on commit 1755422

Please sign in to comment.