Skip to content

Commit b4d932f

Browse files
authored
feat: algosdk v3 support (#77)
* feat: algosdk v3 support BREAKING CHANGE: Migrating to algosdk v3. Using dedicated Address type for all address fields instead of string * chore: switch to bun
1 parent abd7ed8 commit b4d932f

File tree

18 files changed

+2248
-12788
lines changed

18 files changed

+2248
-12788
lines changed

.github/actions/setup-subtopia-registry/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ runs:
6060
cp .env.template .env
6161
cd registry-infra
6262
poetry install --no-interaction
63+
poetry run pip install setuptools
6364
cat ${{ github.workspace }}/.env
6465
poetry run python3 admin_scripts/deploy_localnet_infra.py
6566
cat ${{ github.workspace }}/.env

.github/workflows/cicd.yaml

Lines changed: 19 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,18 @@ jobs:
2323
- name: Check out repository
2424
uses: actions/checkout@v4
2525

26-
- name: Setup node
27-
uses: actions/setup-node@v4
26+
- uses: oven-sh/setup-bun@v2
2827
with:
29-
node-version: 20
30-
scope: "@subtopia-algo"
31-
cache: "npm"
32-
cache-dependency-path: ./package-lock.json
28+
bun-version: latest
3329

3430
- name: Install dependencies
35-
run: npm ci
31+
run: bun install
3632

3733
- name: Run build
38-
run: npm run build
34+
run: bun run build
3935

4036
- name: Lint
41-
run: npm run lint
37+
run: bun run lint
4238

4339
unit-tests:
4440
name: Integration tests
@@ -61,22 +57,18 @@ jobs:
6157
python-version: ">=3.11 <3.12"
6258
poetry-version: 1.7.1
6359

64-
- name: Setup node
65-
uses: actions/setup-node@v4
60+
- uses: oven-sh/setup-bun@v2
6661
with:
67-
node-version: ${{ matrix.node }}
68-
scope: "@subtopia-algo"
69-
cache: "npm"
70-
cache-dependency-path: ./package-lock.json
62+
bun-version: latest
7163

7264
- name: Install dependencies
73-
run: npm ci
65+
run: bun install
7466

7567
- name: Run tests
76-
run: npm run test
68+
run: bun run test
7769

7870
- name: "Upload coverage to Codecov"
79-
uses: codecov/codecov-action@v4
71+
uses: codecov/codecov-action@v5
8072
if: runner.os == 'Linux' && matrix.node == '20'
8173
with:
8274
fail_ci_if_error: true
@@ -92,19 +84,15 @@ jobs:
9284
- name: Check out repository
9385
uses: actions/checkout@v4
9486

95-
- name: Setup node
96-
uses: actions/setup-node@v4
87+
- uses: oven-sh/setup-bun@v2
9788
with:
98-
node-version: 20
99-
scope: "@subtopia-algo"
100-
cache: "npm"
101-
cache-dependency-path: ./package-lock.json
89+
bun-version: latest
10290

10391
- name: Install dependencies
104-
run: npm ci
92+
run: bun install
10593

10694
- name: Build docs
107-
run: npm run docs
95+
run: bun run docs
10896

10997
- name: Deploy 🚀
11098
uses: JamesIves/github-pages-deploy-action@v4
@@ -126,25 +114,21 @@ jobs:
126114
fetch-depth: 0
127115
persist-credentials: false # <--- override default gh token
128116

129-
- name: Setup node
130-
uses: actions/setup-node@v4
117+
- uses: oven-sh/setup-bun@v2
131118
with:
132-
node-version: 20
133-
scope: "@subtopia-algo"
134-
cache: "npm"
135-
cache-dependency-path: ./package-lock.json
119+
bun-version: latest
136120

137121
- name: Install dependencies
138-
run: npm ci
122+
run: bun install
139123

140124
- name: Run build
141-
run: npm run build
125+
run: bun run build
142126

143127
- name: release
144128
env:
145129
GITHUB_TOKEN: ${{ secrets.CUSTOM_GH_TOKEN }}
146130
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
147-
run: npm run release
131+
run: bun run release
148132

149133
- name: Merge release -> main
150134
uses: devmasx/merge-branch@6ec8363d74aad4f1615d1234ae1908b4185c4313

bun.lock

Lines changed: 2013 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)