Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WipCl checks #14

Open
wants to merge 153 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
77bd244
feat: add graphql entities to schema
bryanchriswhite Jul 1, 2022
49c1647
chore: update project.yaml for fetchhub-4
bryanchriswhite Jul 1, 2022
a70dc8c
chore: update project.yaml mappings
bryanchriswhite Jul 1, 2022
8f78f5c
feat: implement mapping handlers
bryanchriswhite Jul 1, 2022
f355a20
fix: foreign key constraint error
bryanchriswhite Jul 4, 2022
7289377
fix: typo
bryanchriswhite Jul 4, 2022
c2d57fe
sync: upstream main - bump protobufjs version (#5)
bryanchriswhite Jul 11, 2022
6ccd284
fix: uncomment chainTypes (#7)
bryanchriswhite Jul 13, 2022
6fbb34e
chore: improve forward compatibility (#3)
bryanchriswhite Jul 27, 2022
b35ae2b
tests: subquery project e2e (#1)
bryanchriswhite Jul 27, 2022
f7949c9
chore: initial dockerfile for deployed version (#14)
ejfitzgerald Jul 27, 2022
62d49ba
chore: naive helm chart for deployment (#16)
ejfitzgerald Jul 28, 2022
f35b06a
chore: add istio to deployment configuration (#18)
ejfitzgerald Jul 28, 2022
26cf8f0
feat: native transfer handler (#20)
Jonathansumner Aug 8, 2022
d4ccce0
feat: rotate-db-secret script (#25)
Teasel-Ian Aug 10, 2022
2d02f8b
chore: devops testing (#24)
bryanchriswhite Aug 11, 2022
4d7cfa9
chore: add actions to build and push docker images (#29)
bryanchriswhite Aug 15, 2022
157075b
chore: subquery db storage size default value (#30)
bryanchriswhite Aug 16, 2022
a5d581f
Tests:e2e setup (#34)
Jonathansumner Aug 16, 2022
2e2bd95
chore: chart push action (#41)
bryanchriswhite Aug 18, 2022
0d5f474
chore: more devops testing (#27)
bryanchriswhite Aug 18, 2022
fa590db
chore: custom graphql api image (#42)
bryanchriswhite Aug 19, 2022
98456b9
fix: docker deploy prod action (#44)
bryanchriswhite Aug 19, 2022
0ba7802
fix: dockerfile paths (#45)
bryanchriswhite Aug 22, 2022
8092bcf
tests: e2e native primitive coverage (#46)
bryanchriswhite Aug 23, 2022
3e1bc67
chore: change block timestamp to Date type (#47)
bryanchriswhite Aug 24, 2022
40a241d
test: add native transfer e2e test (#35)
Jonathansumner Aug 24, 2022
edcff71
test: add missing helper: regexes.py (#48)
bryanchriswhite Aug 24, 2022
1d24309
test: add gov proposal vote e2e test (#36)
Jonathansumner Aug 24, 2022
4b05e09
test: add delegation reward claim e2e test (#38)
Jonathansumner Aug 24, 2022
e85ad89
test: add legacy bridge swap e2e test (#37)
Jonathansumner Aug 25, 2022
39abb15
fix: serialize binary event attribute values with JSON (#49)
bryanchriswhite Aug 25, 2022
535182b
fix: extend primitive ExecuteContractMessage (#28)
Jonathansumner Aug 25, 2022
b617ee2
feat: add signerAddress field to tx (#50)
bryanchriswhite Aug 26, 2022
f544e49
chore: add fetchd node to docker-compose.yml (#58)
bryanchriswhite Aug 29, 2022
a08f29f
test: tidying up e2e tests (#52)
bryanchriswhite Aug 29, 2022
3dc5a56
fix: added chainTypes in network (#64)
manjeet-fetchai Aug 30, 2022
a2ef40a
fix: api docker build github action (#65)
manjeet-fetchai Aug 30, 2022
6a468ed
chore: added support to update bridge contract address (#63)
manjeet-fetchai Aug 30, 2022
9aac565
fix: devops bits (#68)
bryanchriswhite Aug 31, 2022
a66c5c4
chores: bump fetchd version to current stable (#69)
daeMOn63 Aug 31, 2022
e5f5d60
chore: add message field to native transfer entity (#67)
bryanchriswhite Aug 31, 2022
e0062b4
chore: add executeContractMessage field to LegacyBridgeSwap entity (#62)
bryanchriswhite Aug 31, 2022
218be7d
chore: add DistDelegatorClaim amount & denom (#66)
bryanchriswhite Sep 1, 2022
a7fddd7
chore: bump version & update README (#51)
bryanchriswhite Sep 1, 2022
ae1e8da
fix: parseCoins (#71)
bryanchriswhite Sep 1, 2022
ba230d1
chore: bump version to v0.1.1
bryanchriswhite Sep 5, 2022
795ad2a
fix: bridge contract remove hardcoded address (#70)
daeMOn63 Sep 5, 2022
79b4a41
fix: remove LEGACY_BRIDGE_CONTRACT_ADDRESS from node-entrypoint.sh (#74)
bryanchriswhite Sep 5, 2022
b596ea2
chore: remove unneeded CI workflow (#73)
bryanchriswhite Sep 5, 2022
66bd832
chore: run e2e tests in CI (#53)
bryanchriswhite Sep 5, 2022
bcd9340
fix: rework contract handling in tests (#72)
daeMOn63 Sep 6, 2022
7b22282
Increase disk size to 30Gi (#85)
manjeet-fetchai Sep 8, 2022
d48bcde
feat: account balance tracking (#88)
daeMOn63 Sep 13, 2022
ef7505f
docs: add introduction (#96)
bryanchriswhite Sep 15, 2022
cad3ec5
Feat: CW20 transfer (#86)
Jonathansumner Sep 15, 2022
f8a4c37
docs: add endpoints to introduction (#99)
bryanchriswhite Sep 19, 2022
b0d866b
chore: make endpoints links (#100)
bryanchriswhite Sep 19, 2022
a979868
docs: add missing relationship and cleanup (#103)
bryanchriswhite Sep 21, 2022
86a7398
Open links in new tab (#102)
VijaySharma815 Sep 21, 2022
ffede53
Propose additional docs links (#107)
jamesbayly Sep 23, 2022
3f71433
feat: CW20 Balance Tracking (#106)
Jonathansumner Sep 27, 2022
bbb6132
feat: Ibc setup (#92)
daeMOn63 Sep 28, 2022
e576dfb
docs: add querying detail & playground emphasis (#111)
bryanchriswhite Sep 28, 2022
5f63770
feat: index ibc transfers (#104)
daeMOn63 Sep 29, 2022
f58a7be
feat: process genesis (#105)
bryanchriswhite Sep 29, 2022
ad4935d
fix: typo in test helper function name (#114)
bryanchriswhite Sep 29, 2022
297cd60
Added job to process genesis (#115)
manjeet-fetchai Sep 29, 2022
17b890e
Removed dispatch event (#118)
manjeet-fetchai Sep 29, 2022
545868e
fix: delay argument (#116)
bryanchriswhite Sep 29, 2022
9d41dd5
Update docker_deploy_prod.yml
manjeet-fetchai Sep 29, 2022
a346023
chore: rename NativeBalance table to GenesisBalance (#119)
bryanchriswhite Sep 30, 2022
ae7e4cc
fix: swaps handler undefined checking (#122)
bryanchriswhite Oct 4, 2022
d1a0649
fix: forward script arguments to subquery CLI (#131)
bryanchriswhite Oct 11, 2022
e5f257d
fix: typo in directory name (#132)
bryanchriswhite Oct 11, 2022
1fd1036
fix: graphql-engine waits for subquery-node to be healthy (#134)
bryanchriswhite Oct 11, 2022
480233e
chore: move batch-size to helm value (#133)
bryanchriswhite Oct 11, 2022
307e8d6
Fix: suppress failed txs (#124)
Jonathansumner Oct 11, 2022
29e8ceb
fix: genesis script DB schema arg (#136)
bryanchriswhite Oct 11, 2022
066f679
refactor: mapping handlers as ES6 modules (#137)
bryanchriswhite Oct 12, 2022
b645097
chore: add ESlint (#138)
bryanchriswhite Oct 13, 2022
2cc2388
docs: fix tip usage (#142)
bryanchriswhite Oct 14, 2022
d036a31
chore: add lint:fix yarn script to fix linter simple errors (#148)
bryanchriswhite Oct 19, 2022
4a631c5
feat: add authz exec handler (#147)
bryanchriswhite Oct 21, 2022
ec62990
docs: add yarn install for subql submodule (#149)
bryanchriswhite Oct 24, 2022
b8acc19
Feat: native transfer fees tracking (#123)
Jonathansumner Oct 26, 2022
8dcbf4a
Feat: cw20 interface compliance (#129)
Jonathansumner Oct 27, 2022
4d5c8c8
Feat: Lock timeouts for e2e tests (#151)
MissingNO57 Oct 28, 2022
7700f5e
chore: add initial graphile-migrate setup (#152)
Jonathansumner Nov 1, 2022
daea858
fix: check for empty amount strings in balance inc/dec (#159)
bryanchriswhite Nov 1, 2022
81763e3
chore: improve warning formatting in saveContractEvent helper (#160)
bryanchriswhite Nov 1, 2022
ee8d560
chore: authz support DB migration (#163)
bryanchriswhite Nov 4, 2022
1c9bf5d
chore: add open telemetry tracing (#157)
bryanchriswhite Nov 4, 2022
3ac0d01
fix: save native fees helper (#164)
bryanchriswhite Nov 7, 2022
afc87f5
Promoted field_enums to library (#170)
MissingNO57 Nov 9, 2022
f47a930
fix: authz migration (#172)
bryanchriswhite Nov 10, 2022
10dcc3a
Error handling for AccountManager and BalanceManager (#166)
MissingNO57 Nov 11, 2022
02b8532
chore: include rudimentary filter against wasmByteCode (#158)
Jonathansumner Nov 11, 2022
aeb44a4
cl checks
MissingNO57 Nov 16, 2022
00087ed
fix
MissingNO57 Nov 16, 2022
6601907
fix
MissingNO57 Nov 16, 2022
6e233aa
fix
MissingNO57 Nov 16, 2022
578f391
pipenv fix
MissingNO57 Nov 16, 2022
8a8b4b8
flake8 fixes
MissingNO57 Nov 16, 2022
771ecf3
fixes
MissingNO57 Nov 16, 2022
0189930
Test fix
MissingNO57 Nov 17, 2022
62ac519
yarn checks
MissingNO57 Nov 17, 2022
2719211
Yarn install
MissingNO57 Nov 17, 2022
52de2e5
Yarn fix
MissingNO57 Nov 17, 2022
49c1212
Workflow fix
MissingNO57 Nov 17, 2022
c2bbb94
yarn fix
MissingNO57 Nov 17, 2022
2243a2e
Workflow fix
MissingNO57 Nov 17, 2022
998b25b
Pipfile update
MissingNO57 Nov 17, 2022
0fef191
fix
MissingNO57 Nov 17, 2022
a22b480
refactor: Girhub actions renaming
MissingNO57 Nov 17, 2022
ac1c762
style: Black and isort executed
MissingNO57 Nov 17, 2022
0da8989
Merges
MissingNO57 Nov 17, 2022
3b4bbf3
chore: no halting 🚀 (#178)
bryanchriswhite Nov 17, 2022
3101130
undo: project.yaml changes
MissingNO57 Nov 17, 2022
b523b55
docs: issue & pull request templates (#191)
bryanchriswhite Nov 25, 2022
e542e86
docs: update / correct README migrations section (#190)
bryanchriswhite Nov 25, 2022
63dc8be
Merge branch 'main' of github.com:fetchai/ledger-subquery into refact…
MissingNO57 Nov 30, 2022
d6af9a2
Merge branch 'refactor/linting' of github.com:fetchai/ledger-subquery…
MissingNO57 Nov 30, 2022
15f8a2c
docs: disambiguate "fetch node" as "fetchd node" (#196)
bryanchriswhite Dec 1, 2022
18097aa
style: Black and isort executed (#181)
MissingNO57 Dec 2, 2022
93bb11e
merges
MissingNO57 Dec 2, 2022
26d3b6c
refactor: event attributes (#189)
bryanchriswhite Dec 5, 2022
e0497eb
chore: update PR template re: DB migrations (#202)
bryanchriswhite Dec 5, 2022
9b3f14a
chore: gql observability (#194)
bryanchriswhite Dec 5, 2022
863ce7d
test: order by related entities tests (#193)
Jonathansumner Dec 5, 2022
94d29ab
Added basic statuscake alerts (#203)
manjeet-fetchai Dec 6, 2022
f30e49e
Refactor/node observability (#197)
bryanchriswhite Dec 6, 2022
4468ba1
Merges
MissingNO57 Dec 6, 2022
f11820b
fix: Merge fix
MissingNO57 Dec 6, 2022
9c0573e
chore: amend contract field on cw20BalanceChange entity (#201)
Jonathansumner Dec 7, 2022
9eb22c4
Merge branch 'main' of github.com:fetchai/ledger-subquery into featur…
MissingNO57 Dec 9, 2022
3f2812d
fix: balance change handler typo (#209)
bryanchriswhite Dec 9, 2022
ecea270
chore: remove redundant index decorator (#215)
bryanchriswhite Dec 9, 2022
eb9f3b6
style: linting fix
MissingNO57 Dec 9, 2022
4f3b1c5
feat: add contract relation to legacy bridge swap (#211)
Jonathansumner Dec 9, 2022
7d7056e
merges
MissingNO57 Dec 9, 2022
1ddf594
lint: fixes
MissingNO57 Dec 9, 2022
31caefb
docs: readme: expand on how to use e2e tests (#216)
bryanchriswhite Dec 11, 2022
ee2b241
Merge branch 'main' of github.com:fetchai/ledger-subquery into featur…
MissingNO57 Dec 13, 2022
0ee62f9
fix: rename filter query (#214)
Jonathansumner Dec 13, 2022
090ce81
feat: add contract to execute msg (#210)
Jonathansumner Dec 13, 2022
24c9d48
chore: set concrete cosmpy version (#219)
Jonathansumner Dec 13, 2022
db23436
fix: package.json remove duplicate script (#221)
bryanchriswhite Dec 13, 2022
12b824f
docs: readme tweak (#222)
bryanchriswhite Dec 13, 2022
489a0f6
merge: merged with main
MissingNO57 Dec 13, 2022
48209be
lint: fixes
MissingNO57 Dec 13, 2022
a6c3128
Merge branch 'main' of github.com:fetchai/ledger-subquery into featur…
MissingNO57 Dec 13, 2022
c32d7d2
undo: subql update
MissingNO57 Dec 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 34 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Build
dist/
package-lock.json

# Node Specific
*/node_modules/

# Deployment
k8s/

# Git VCS
.git/
.gitignore

# SigNoz / ClickHouse data
docker/signoz/data
data

# Docker
Dockerfile
.dockerignore
docker-compose.yml

# IDEs
.idea/

# MacOS Specific
.DS_Store

# Extra project files
*.md
LICENSE
.nvmrc
.data/
28 changes: 28 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
env:
browser: true
es2021: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
overrides: []
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: latest
sourceType: module
plugins:
- '@typescript-eslint'
ignorePatterns:
- "src/types/"
rules:
indent:
- error
- 2
linebreak-style:
- error
- unix
quotes:
- error
- double
semi:
- error
- always
58 changes: 58 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: 🐛 Bug Report
description: Report a reproducible bug.
title: "Bug report: <short description>"
labels: ["bug", "unconfirmed"]
body:
- type: markdown
attributes:
value: |
Thank you for reporting the issue you are facing. Please complete the following so we can have the details necessary to assist you.
- type: checkboxes
id: prerequisites
attributes:
label: Prerequisites
description: Please confirm before submitting a new issue
options:
- label: I checked the [documentation](https://docs.fetch.ai/ledger-subquery/introduction/) and found no answer to my problem.
required: true
- label: I checked the [existing issues](https://github.com/fetchai/ledger-subquery/issues) to make sure my problem has not already been reported.
required: true
- label: I have read the [code of conduct](https://github.com/fetchai/ledger-subquery/blob/main/CODE_OF_CONDUCT.md) before creating this issue.
required: true
- type: textarea
id: expected
attributes:
label: Expected Behavior
description: Describe the behavior you are expecting
validations:
required: true
- type: textarea
id: actual
attributes:
label: Current Behavior
description: Describe the current behavior
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps To Reproduce
description: Detailed steps for reproducing the issue
validations:
required: true
- type: textarea
id: context
attributes:
label: Context
description: Any relevant information about your setup (this is important in case the issue is not reproducible except for under certain conditions)
placeholder: |
Operating system, Browser vendor, Browser version, ...
validations:
required: true
- type: textarea
id: logs
attributes:
label: Failure Logs
description: Include any relevant log snippets, screenshots, or other files here
validations:
required: false
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: ☝️ Feature request
description: Suggest an idea for this project
title: "Feature request: <short description>"
labels: ["enhancement", "unconfirmed"]
body:
- type: markdown
attributes:
value: |
Thank you for suggesting a new idea for this project. Please complete the following to ensure we have all the details to get things started.
- type: checkboxes
id: prerequisites
attributes:
label: Prerequisites
description: Please confirm before submitting a feature request.
options:
- label: I checked the [documentation](https://docs.fetch.ai/ledger-subquery/introduction/) and made sure this feature does not already exist.
required: true
- label: I checked the [existing issues](https://github.com/fetchai/ledger-subquery/issues) to make sure this feature has not already been requested.
required: true
- label: I have read the [code of conduct](https://github.com/fetchai/ledger-subquery/blob/main/CODE_OF_CONDUCT.md) before creating this issue.
required: true
- type: textarea
id: problem
attributes:
label: Problem
description: |
If your feature request relates to a problem, provide a description here, e.g. I'm always frustrated when [...]
validations:
required: true
- type: textarea
id: solution
attributes:
label: Feature / Solution Acceptance Criteria
description: |
Provide a description of what you want, as one or more statements which will read as true when the issue is done. Prefer clarity for the reader over conciseness.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives
description: |
Provide any alternative solutions or features you've considered
- type: textarea
id: info
attributes:
label: Additional Context
description: |
Any other context or screenshots about the feature request
validations:
required: false
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
_\<replace with pull request description>_

---

## Code Review Checklist (to be filled out by reviewer)

- [ ] Description accurately reflects what changes are being made.
- [ ] Either the PR references an issue (via the "Development" combobox) or the description explains the need for the changes.
- [ ] The PR appropriately sized.
- [ ] The PR contains an idempotent DB migration.
- [ ] I have verified the correctness of the DB migration using relevant data (e.g. test-generated data).
- [ ] New code has enough tests.
- [ ] New code has enough documentation to answer "how do I use it?" and "what does it do?".
- [ ] Existing documentation is up-to-date, if impacted.
20 changes: 20 additions & 0 deletions .github/workflows/charts_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Chart Push
on:
push:
branches:
- main
paths:
- k8s/**
jobs:
chart-push:
runs-on: self-hosted
steps:
- uses: 'actions/checkout@v2'
- name: Unistalling of cm-push
run: helm plugin uninstall cm-push
- name: Installing cm-push
if: ${{ failure()||success() }}
run: helm plugin install https://github.com/chartmuseum/helm-push.git
- name: Pushing Chart
if: ${{ failure()||success() }}
run: helm cm-push ./k8s/subquery http://charts.management.fetch-ai.com/ -f
73 changes: 73 additions & 0 deletions .github/workflows/docker_deploy_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Docker deploy prod

on:
push:
branches: [main]

jobs:
ledger-subquery:
name: build
runs-on: ubuntu-latest

env:
IMAGE_PROJECT_ID: fetch-ai-images
NODE_IMAGE_NAME: subquery-node
API_IMAGE_NAME: subquery-api
GENESIS_IMAGE_NAME: subquery-genesis-processor
DEPLOYMENT_REPO: fetchai/infra-production-deployment

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Get image tag
id: vars
shell: bash
run: |
echo "::set-output name=node_tag_name::$(git rev-parse --short HEAD)"
echo "::set-output name=api_tag_name::$(cd ./subql && git rev-parse --short HEAD)"

# Authenticate to GCP
- id: 'auth'
uses: 'google-github-actions/auth@v0'
with:
credentials_json: '${{ secrets.DEVOPS_IMAGES_SA_KEY }}'

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v0'

- run: 'gcloud info'

# Configure docker to use the gcloud command-line tool as a credential helper
- name: Configure Docker
run: |
gcloud auth configure-docker -q

# Docker build ; docker push
- name: Build and push subquery node
uses: docker/build-push-action@v3
with:
context: .
file: ./docker/node.dockerfile
push: true
tags: |
gcr.io/${{ env.IMAGE_PROJECT_ID }}/${{ env.NODE_IMAGE_NAME }}:${{ steps.vars.outputs.node_tag_name }}

- name: Build and push graphql api
uses: docker/build-push-action@v3
with:
context: .
file: ./docker/api.dockerfile
push: true
tags: |
gcr.io/${{ env.IMAGE_PROJECT_ID }}/${{ env.API_IMAGE_NAME }}:${{ steps.vars.outputs.api_tag_name }}

- name: Build and push genesis job
uses: docker/build-push-action@v3
with:
context: .
file: ./docker/genesis.dockerfile
push: true
tags: |
gcr.io/${{ env.IMAGE_PROJECT_ID }}/${{ env.GENESIS_IMAGE_NAME }}:${{ steps.vars.outputs.node_tag_name }}
33 changes: 33 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Python Linting Checks
'on':
push:
branches:
- main
pull_request: null
jobs:
style_checks:
name: Check Python Code Quality
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Update
run: sudo apt update
- name: Install OS dependencies
run: sudo apt install -y python3-dev nodejs

- name: Install pipenv
run: pip3 install pipenv
- name: Install dependencies
run: pipenv install --dev

- name: Install NodeJS dependencies
run: pipenv run yarn install
- name: Run style checks
run: pipenv run yarn pylint-checks
55 changes: 55 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: End-to-end tests

on:
pull_request:
branches: [main]

jobs:
e2e-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Update
run: sudo apt update
- name: Install OS dependencies
run: sudo apt install -y python3-dev nodejs

- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install NodeJS dependencies
run: yarn install

- name: Lint TypeScript
run: yarn lint

- name: Codegen TypeScript
run: yarn codegen

- name: Build TypeScript
run: yarn build

- name: Run TypeScript unit tests
run: yarn test

- name: Start-up local test environment
uses: isbang/[email protected]
with:
compose-file: "./ci-compose.yml"

# NB: doing this after start-up gives the test env time to come up
- name: Install Python dependencies
uses: palewire/install-python-pipenv-pipfile@v2
with:
python-version: 3.9

- name: Run Python unit tests
run: pipenv run python -m unittest discover -s ./tests/unit

- name: Run end-to-end tests
run: pipenv run python -m unittest discover -s ./tests/e2e
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
node_modules/
dist/

# lock files
yarn.lock
# lock files (not using NPM)
package-lock.json

# Compiled Java class files
Expand Down Expand Up @@ -56,3 +55,7 @@ Thumbs.db

.data
dist
keys

docker-compose.override.yml
.contract
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "subql"]
path = subql
url = https://github.com/fetchai/subql
branch = main
Loading