Commit b1b32dc
chore: remove legacy CJS files, fix env defaults, and improve type annotations (#63)
* chore: remove old sdk files
* chore: fix main in package.json
* fix: use || instead of ?? for env var defaults to handle empty strings
?? only falls back on null/undefined, so an empty env var (e.g.
DATA_CONTRACT_ID='') would be used as-is instead of the intended default.
* chore: fmt
* chore: fix tsconfig to check setupDashClient with correct ESM settings (#64)
* chore: fix tsconfig to check setupDashClient with correct ESM settings
Update tsconfig.json to use module/moduleResolution node16 for proper
.mjs ESM support, scope include to setupDashClient.mjs only, and set
maxNodeModuleJsDepth to 0. Add @types/node and @types/mocha devDeps.
Add JSDoc type annotations to setupDashClient.mjs to pass strict tsc check.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: replace any types with precise SDK types in setupDashClient
Add JSDoc typedef imports for Identity, IdentityPublicKey, PlatformAddress,
PlatformAddressInfo, and NetworkLike. Define DerivedKeyEntry and AddressEntry
typedefs. Replace all any params/returns with real SDK types. Add missing
@returns to create(), convenience signer methods, and exported functions.
Add identity-not-found guard in getSigner() with corresponding test.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5b85735 commit b1b32dc
21 files changed
Lines changed: 212 additions & 139 deletions
File tree
- 1-Identities-and-Names
- 2-Contracts-and-Documents
- test
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments