Skip to content

Commit ae0283d

Browse files
committed
sdk v3
2 parents d9e1ce6 + 5e754bb commit ae0283d

File tree

12 files changed

+8090
-1898
lines changed

12 files changed

+8090
-1898
lines changed

contract

Submodule contract updated 208 files

lib/generated/CouncilClient.d.ts

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

lib/generated/CouncilClient.js

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

lib/generated/ProposalClient.d.ts

Lines changed: 333 additions & 268 deletions
Large diffs are not rendered by default.

lib/generated/ProposalClient.js

Lines changed: 253 additions & 192 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/generated/XGovRegistryClient.d.ts

Lines changed: 1323 additions & 354 deletions
Large diffs are not rendered by default.

lib/generated/XGovRegistryClient.js

Lines changed: 1040 additions & 292 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 81 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"types": "./lib/index.d.ts",
99
"default": "./lib/index.js"
1010
},
11+
"./council": {
12+
"types": "./lib/generated/CouncilClient.d.ts",
13+
"default": "./lib/generated/CouncilClient.js"
14+
},
1115
"./proposal": {
1216
"types": "./lib/generated/ProposalClient.d.ts",
1317
"default": "./lib/generated/ProposalClient.js"
@@ -19,19 +23,21 @@
1923
},
2024
"scripts": {
2125
"test": "echo \"Error: no test specified\" && exit 0",
22-
"build": "npm run generate && tsc",
23-
"generate": "npm run generate:proposal && npm run generate:registry",
24-
"generate:proposal": "algokit generate client -l typescript -o src/generated/ProposalClient.ts contract/smart_contracts/artifacts/proposal/Proposal.arc32.json",
25-
"generate:registry": "algokit generate client -l typescript -o src/generated/XGovRegistryClient.ts contract/smart_contracts/artifacts/xgov_registry/XGovRegistry.arc32.json"
26+
"build": "rm -rf lib/ && npm run generate && tsc",
27+
"generate": "npm run generate:council && npm run generate:proposal && npm run generate:registry",
28+
"generate:council": "npx @algorandfoundation/algokit-client-generator generate -o src/generated/CouncilClient.ts -a contract/smart_contracts/artifacts/council/Council.arc56.json",
29+
"generate:proposal": "npx @algorandfoundation/algokit-client-generator generate -o src/generated/ProposalClient.ts -a contract/smart_contracts/artifacts/proposal/Proposal.arc56.json",
30+
"generate:registry": "npx @algorandfoundation/algokit-client-generator generate -o src/generated/XGovRegistryClient.ts -a contract/smart_contracts/artifacts/xgov_registry/XGovRegistry.arc56.json"
2631
},
2732
"author": "Algorand Foundation",
2833
"license": "AGPL-3.0-or-later",
2934
"peerDependencies": {
30-
"@algorandfoundation/algokit-utils": "^7.0.0",
31-
"algosdk": "^2.9.0"
35+
"@algorandfoundation/algokit-utils": "^9.0.0",
36+
"algosdk": "^3.4.0"
3237
},
3338
"devDependencies": {
3439
"@types/node": "^22.10.1",
35-
"typescript": "^5.5.4"
40+
"typescript": "^5.5.4",
41+
"@algorandfoundation/algokit-client-generator": "^6.0.0"
3642
}
37-
}
43+
}

src/generated/CouncilClient.ts

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

0 commit comments

Comments
 (0)