Skip to content
Open
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
9b7d15d
feat(algod_client): add test infrastructure with Zod schema validation
lempira Dec 13, 2025
629f4e8
fix: handle empty properties objects in Zod schema generation
lempira Dec 13, 2025
6196055
feat(algod_client): implement non parameter algod tests
lempira Dec 14, 2025
efbd4dc
fix(algod_client): align Zod schemas with AlgodClient response types
lempira Dec 16, 2025
5d6553d
chore: removed unneeded tests
lempira Dec 16, 2025
dda50c8
test(algod_client): implement no-parameter endpoint tests
lempira Dec 16, 2025
df10b83
test(algod_client): implement application endpoint tests
lempira Dec 16, 2025
d0a3f53
test(algod_client): implement asset and block endpoint tests
lempira Dec 16, 2025
924e7bd
feat(algod_client): implement transaction endpoint tests
lempira Dec 16, 2025
704898c
feat(algod_client): implement remaining endpoint tests
lempira Dec 16, 2025
837288a
wip
lempira Dec 22, 2025
6588b28
test(algod_client): use KMD for funded test accounts
lempira Dec 28, 2025
17b7709
fix: correct Zod schema property name conversion and add TEST_ROUND_S…
lempira Dec 28, 2025
eca8ef0
test(algod-client): update snapshots and enable deltas endpoint test
lempira Dec 30, 2025
282924f
chore: skip tests temporarily
lempira Dec 30, 2025
1e0cf5a
test: add placeholder tests for experimental and private algod endpoints
lempira Jan 13, 2026
645b2ff
chore: address pr comments
lempira Jan 20, 2026
9b3307a
chore(algod_client): removed experimental and private tests
lempira Jan 22, 2026
179dec5
chore: removed false polytest tests
lempira Jan 22, 2026
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
6 changes: 5 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions packages/algod_client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@
"check-types": "tsc --noEmit",
"audit": "better-npm-audit audit",
"format": "prettier --config ../../.prettierrc.cjs --ignore-path ../../.prettierignore --write .",
"pre-commit": "run-s check-types lint:fix audit format test"
"pre-commit": "run-s check-types lint:fix audit format test",
"generate:schema": "npx tsx ../../scripts/generate-zod-schemas.ts --spec ../../.algokit-oas-generator/specs/algod.oas3.json --output ./tests/schemas.ts"
},
"dependencies": {},
"peerDependencies": {},
"devDependencies": {
"@algorandfoundation/algokit-testing": "*"
"@algorandfoundation/algokit-algo25": "*",
"@algorandfoundation/algokit-kmd-client": "*",
"@algorandfoundation/algokit-testing": "*",
"@noble/ed25519": "^3.0.0",
"zod": "^3.23.8"
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ exports[`GET v2_accounts_ADDRESS > Common Tests > Basic request and response val
],
Symbol(algokit_common:Address): true,
},
"amount": 13857000n,
"amountWithoutPendingRewards": 13857000n,
"amount": 13852000n,
"amountWithoutPendingRewards": 13852000n,
"appsLocalState": [],
"appsTotalSchema": {
"numByteSlices": 8,
Expand Down Expand Up @@ -1403,93 +1403,93 @@ exports[`GET v2_accounts_ADDRESS > Common Tests > Basic request and response val
"globalState": [
{
"key": Uint8Array [
97,
104,
105,
103,
104,
101,
115,
97,
116,
95,
98,
105,
100,
],
"value": {
"bytes": Uint8Array [],
"type": 2,
"uint": 705457144n,
"uint": 10000n,
},
},
{
"key": Uint8Array [
97,
115,
97,
95,
97,
109,
116,
],
"value": {
"bytes": Uint8Array [],
"type": 2,
"uint": 1n,
"uint": 705457144n,
},
},
{
"key": Uint8Array [
97,
117,
99,
116,
104,
105,
111,
110,
95,
103,
104,
101,
110,
115,
116,
95,
98,
105,
100,
100,
101,
114,
],
"value": {
"bytes": Uint8Array [],
"type": 2,
"uint": 1721928880n,
"type": 1,
"uint": 0n,
},
},
{
"key": Uint8Array [
104,
105,
103,
104,
101,
97,
115,
116,
97,
95,
98,
105,
100,
97,
109,
116,
],
"value": {
"bytes": Uint8Array [],
"type": 2,
"uint": 10000n,
"uint": 1n,
},
},
{
"key": Uint8Array [
104,
105,
103,
104,
101,
115,
97,
117,
99,
116,
95,
98,
105,
100,
100,
111,
110,
95,
101,
114,
110,
100,
],
"value": {
"bytes": Uint8Array [],
"type": 1,
"uint": 0n,
"type": 2,
"uint": 1721928880n,
},
},
],
Expand Down Expand Up @@ -3481,6 +3481,26 @@ exports[`GET v2_accounts_ADDRESS > Common Tests > Basic request and response val
Symbol(algokit_common:Address): true,
},
"globalState": [
{
"key": Uint8Array [
97,
117,
99,
116,
105,
111,
110,
95,
101,
110,
100,
],
"value": {
"bytes": Uint8Array [],
"type": 2,
"uint": 0n,
},
},
{
"key": Uint8Array [
112,
Expand Down Expand Up @@ -3590,26 +3610,6 @@ exports[`GET v2_accounts_ADDRESS > Common Tests > Basic request and response val
"uint": 0n,
},
},
{
"key": Uint8Array [
97,
117,
99,
116,
105,
111,
110,
95,
101,
110,
100,
],
"value": {
"bytes": Uint8Array [],
"type": 2,
"uint": 0n,
},
},
],
"globalStateSchema": {
"numByteSlices": 1,
Expand Down Expand Up @@ -4190,17 +4190,47 @@ exports[`GET v2_accounts_ADDRESS > Common Tests > Basic request and response val
"globalState": [
{
"key": Uint8Array [
112,
114,
101,
118,
105,
111,
117,
97,
115,
97,
],
"value": {
"bytes": Uint8Array [],
"type": 2,
"uint": 0n,
},
},
{
"key": Uint8Array [
97,
115,
97,
95,
98,
97,
109,
111,
117,
110,
116,
],
"value": {
"bytes": Uint8Array [],
"type": 2,
"uint": 0n,
},
},
{
"key": Uint8Array [
97,
117,
99,
116,
105,
111,
110,
95,
101,
110,
100,
],
"value": {
Expand All @@ -4211,9 +4241,18 @@ exports[`GET v2_accounts_ADDRESS > Common Tests > Basic request and response val
},
{
"key": Uint8Array [
97,
112,
114,
101,
118,
105,
111,
117,
115,
97,
95,
98,
105,
100,
],
"value": {
"bytes": Uint8Array [],
Expand Down Expand Up @@ -4278,45 +4317,6 @@ exports[`GET v2_accounts_ADDRESS > Common Tests > Basic request and response val
"uint": 0n,
},
},
{
"key": Uint8Array [
97,
115,
97,
95,
97,
109,
111,
117,
110,
116,
],
"value": {
"bytes": Uint8Array [],
"type": 2,
"uint": 0n,
},
},
{
"key": Uint8Array [
97,
117,
99,
116,
105,
111,
110,
95,
101,
110,
100,
],
"value": {
"bytes": Uint8Array [],
"type": 2,
"uint": 0n,
},
},
],
"globalStateSchema": {
"numByteSlices": 1,
Expand Down Expand Up @@ -8043,7 +8043,7 @@ exports[`GET v2_accounts_ADDRESS > Common Tests > Basic request and response val
"pendingRewards": 0n,
"rewardBase": 27521n,
"rewards": 0n,
"round": 57711496n,
"round": 58979813n,
"status": "Offline",
"totalAppsOptedIn": 0,
"totalAssetsOptedIn": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@ exports[`GET v2_accounts_ADDRESS_applications_APPLICATION-ID > Common Tests > Ba
"numUints": 0,
},
},
"round": 57711496n,
"round": 58979813n,
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ exports[`GET v2_accounts_ADDRESS_assets_ASSET-ID > Common Tests > Basic request
115,
],
},
"round": 57711496n,
"round": 58979813n,
}
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`GET v2_accounts_ADDRESS_transactions_pending > Common Tests > Basic request and response validation 1`] = `
{
"topTransactions": [],
"totalTransactions": 0,
}
`;
Loading
Loading