Commit fbd8a96
tilo-14
feat: complete Kit SDK instruction builders and fix build pipeline
Implement the 5 missing instruction builders (transfer2, create-token-account,
mint-action, claim, withdraw-funding-pool) and their codec, fixing the token-sdk
build pipeline end-to-end.
Changes:
- Fix Codama IDL: add prefixedCountNode for array types, update renderVisitor import
- Fix CI workflow: add Codama generation step before token-sdk build
- Implement transfer2.ts with Path A/B/C routing and compression factory helpers
- Implement create-token-account.ts with compressible/non-compressible modes
- Implement mint-action.ts with full account layout
- Implement claim.ts for rent recovery
- Implement withdraw-funding-pool.ts for pool withdrawals
- Implement codecs/mint-action.ts with full Borsh encoding
- Add legacy SDK devDeps to token-client for e2e test setup
- Add .gitignore for Codama-generated code (build artifact)
All 350 unit tests pass (286 token-sdk + 64 token-client).
Refs: #2280, #22891 parent 2a7ed11 commit fbd8a96
12 files changed
Lines changed: 1350 additions & 10 deletions
File tree
- .github/workflows
- js
- token-client
- token-idl
- scripts
- src
- token-sdk/src
- codecs
- generated
- instructions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
170 | | - | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| |||
1097 | 1098 | | |
1098 | 1099 | | |
1099 | 1100 | | |
1100 | | - | |
| 1101 | + | |
1101 | 1102 | | |
1102 | 1103 | | |
1103 | 1104 | | |
| |||
0 commit comments