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

feat: uAgent almanac registrations #187

Merged
merged 53 commits into from
Dec 19, 2022
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
02facc5
fix: add types in helper
bryanchriswhite Nov 21, 2022
f7e4413
feat: almanac registration, record, & agent schema
bryanchriswhite Nov 24, 2022
6ad556b
chore: refactor contracts helper & fix utils comment
bryanchriswhite Nov 18, 2022
6f5235b
tests: almanac registrations
bryanchriswhite Nov 23, 2022
cbf7aa7
feat: track almanac registrations
bryanchriswhite Nov 21, 2022
8cb8f56
fix: balance change handler typo
bryanchriswhite Dec 7, 2022
d16e475
fix: TS linting
bryanchriswhite Dec 7, 2022
06ab9aa
chore: add uagents submodule
bryanchriswhite Dec 2, 2022
2c29d3f
chore: add uagents dev dependency (local git submodule)
bryanchriswhite Dec 8, 2022
1281409
chore: install python dev dependencies in CI
bryanchriswhite Dec 8, 2022
ce8e146
chore: update pipfile
bryanchriswhite Dec 8, 2022
4a28674
chore: add authorization header support to contract download requests
bryanchriswhite Dec 8, 2022
1859f10
wip: migration
bryanchriswhite Dec 8, 2022
a9fcede
Added support to pull private submodule
manjeet-fetchai Dec 9, 2022
f588f65
Remove duplicate code
manjeet-fetchai Dec 9, 2022
36dd94c
fix: Pipfile.lock
bryanchriswhite Dec 12, 2022
45a4001
test: fix: bridge contract url
bryanchriswhite Dec 12, 2022
7637c54
Merge remote-tracking branch 'fetch/main' into chore/u-agent-almanac
bryanchriswhite Dec 12, 2022
2e4df46
chore: add GH token env var
bryanchriswhite Dec 12, 2022
39b9f1b
chore: add uagent registrations / records migration
bryanchriswhite Dec 12, 2022
62a16c0
Merge remote-tracking branch 'fetch/main' into chore/u-agent-almanac
bryanchriswhite Dec 13, 2022
c1d3ff4
fix: reset current.ts
bryanchriswhite Dec 13, 2022
a9b2345
fix: update test almanac contract class & url version
bryanchriswhite Dec 13, 2022
fd1f8f7
fix: rename helper
bryanchriswhite Dec 13, 2022
ce4e44e
fix: set WARNING level on gql aiohttp transport logger
bryanchriswhite Dec 14, 2022
af85236
Merge remote-tracking branch 'fetch/main' into chore/u-agent-almanac
bryanchriswhite Dec 14, 2022
60e7656
fix: include submodules in python CI workflow
bryanchriswhite Dec 14, 2022
15c140c
fix: downloading proteted github release assets
bryanchriswhite Dec 15, 2022
238e5e5
fix: run pylint
bryanchriswhite Dec 15, 2022
ae025c0
fix: rebase migration
bryanchriswhite Dec 15, 2022
91cf215
Merge remote-tracking branch 'fetch/main' into chore/u-agent-almanac
bryanchriswhite Dec 15, 2022
abcb3e1
fix: finish migration rebase
bryanchriswhite Dec 15, 2022
95d07cb
fix: pylint
bryanchriswhite Dec 15, 2022
35982d9
fix: remove print statements
bryanchriswhite Dec 15, 2022
5e7dcf9
refctor: github release download helper
bryanchriswhite Dec 15, 2022
3eae080
tests: fix import path
bryanchriswhite Dec 15, 2022
d611974
Merge branch 'main' into chore/u-agent-almanac
bryanchriswhite Dec 15, 2022
f05e96b
fix: pylint
bryanchriswhite Dec 15, 2022
aa0bf89
fix: delay graphql api start
bryanchriswhite Dec 16, 2022
0e636fc
Merge remote-tracking branch 'fetch/main' into chore/u-agent-almanac
bryanchriswhite Dec 16, 2022
412cf95
fix: pylint mypy
bryanchriswhite Dec 16, 2022
8b72f68
fix: table -> get_table usage
bryanchriswhite Dec 16, 2022
63e94b5
fix: pylint
bryanchriswhite Dec 16, 2022
4b4c08f
Update tests/helpers/contracts.py
bryanchriswhite Dec 16, 2022
8816702
fix: remove unnecessary CI step
bryanchriswhite Dec 19, 2022
30ac04b
chore: update uagents submodule
bryanchriswhite Dec 19, 2022
5ccd1c0
chore: update Pipfile.lock
bryanchriswhite Dec 19, 2022
527a8e8
fix: remove print
bryanchriswhite Dec 19, 2022
66952b3
chore: rebase migration (1/2)
bryanchriswhite Dec 19, 2022
8968e3f
Merge branch 'main' into chore/u-agent-almanac
bryanchriswhite Dec 19, 2022
f230051
chore: rebase migration (2/2)
bryanchriswhite Dec 19, 2022
02a2b23
fix: rename rebased migration
bryanchriswhite Dec 19, 2022
655cb76
fix: remove comment
bryanchriswhite Dec 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ jobs:
shell: bash
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
token: ${{ secrets.GH_ACCESS_TOKEN }}

- uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Update
run: sudo apt update
- name: Install OS dependencies
Expand All @@ -30,4 +35,4 @@ jobs:
- name: Install NodeJS dependencies
run: pipenv run yarn install
- name: Run style checks
run: pipenv run yarn pylint-checks
run: pipenv run yarn pylint-checks
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.GH_ACCESS_TOKEN }}

- 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

Expand All @@ -48,8 +45,13 @@ jobs:
with:
python-version: 3.9

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

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

- name: Run end-to-end tests
env:
GITHUB_AUTHORIZATION_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
run: pipenv run python -m unittest discover -s ./tests/e2e
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
path = subql
url = https://github.com/fetchai/subql
branch = main
[submodule "uagents"]
path = uagents
url = https://github.com/fetchai/uagents
branch = main
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ click = "*"

[dev-packages]
pytest = "*"
uagents = {path = "./uagents", editable = true}
black = "*"
isort = "*"
flake8 = "*"
Expand Down
3 changes: 2 additions & 1 deletion docker/api.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ COPY --from=builder /build/node_modules /app/node_modules
COPY --from=builder /build/packages/common /app/node_modules/@subql/common
COPY --from=builder /build/packages/utils /app/node_modules/@subql/utils

ENTRYPOINT ["/sbin/tini", "--", "yarn", "start:prod"]
COPY ./scripts/api-entrypoint.sh /entrypoint.sh
ENTRYPOINT /entrypoint.sh
Loading