@thru/sdk 0.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.abi.md +112 -0
  2. package/README.md +342 -0
  3. package/dist/abi/index.cjs +946 -0
  4. package/dist/abi/index.cjs.map +1 -0
  5. package/dist/abi/index.d.cts +331 -0
  6. package/dist/abi/index.d.ts +331 -0
  7. package/dist/abi/index.js +892 -0
  8. package/dist/abi/index.js.map +1 -0
  9. package/dist/abi/wasm/bundler/abi_reflect_wasm.d.ts +65 -0
  10. package/dist/abi/wasm/bundler/abi_reflect_wasm.js +5 -0
  11. package/dist/abi/wasm/bundler/abi_reflect_wasm_bg.js +412 -0
  12. package/dist/abi/wasm/bundler/abi_reflect_wasm_bg.wasm +0 -0
  13. package/dist/abi/wasm/bundler/abi_reflect_wasm_bg.wasm.d.ts +24 -0
  14. package/dist/abi/wasm/bundler/package.json +17 -0
  15. package/dist/abi/wasm/node/abi_reflect_wasm.d.ts +65 -0
  16. package/dist/abi/wasm/node/abi_reflect_wasm.js +425 -0
  17. package/dist/abi/wasm/node/abi_reflect_wasm_bg.wasm +0 -0
  18. package/dist/abi/wasm/node/abi_reflect_wasm_bg.wasm.d.ts +24 -0
  19. package/dist/abi/wasm/node/package.json +11 -0
  20. package/dist/abi/wasm/web/abi_reflect_wasm.d.ts +114 -0
  21. package/dist/abi/wasm/web/abi_reflect_wasm.js +499 -0
  22. package/dist/abi/wasm/web/abi_reflect_wasm_bg.wasm +0 -0
  23. package/dist/abi/wasm/web/abi_reflect_wasm_bg.wasm.d.ts +24 -0
  24. package/dist/abi/wasm/web/package.json +15 -0
  25. package/dist/chunk-CVBQ4UPL.js +3614 -0
  26. package/dist/chunk-CVBQ4UPL.js.map +1 -0
  27. package/dist/chunk-NSBPE2FW.js +15 -0
  28. package/dist/chunk-NSBPE2FW.js.map +1 -0
  29. package/dist/chunk-RL3Q6FDE.js +105 -0
  30. package/dist/chunk-RL3Q6FDE.js.map +1 -0
  31. package/dist/chunk-UDIXYJXC.js +260 -0
  32. package/dist/chunk-UDIXYJXC.js.map +1 -0
  33. package/dist/chunk-YQDWOMNO.js +271 -0
  34. package/dist/chunk-YQDWOMNO.js.map +1 -0
  35. package/dist/client-Cfi7zRLm.d.cts +1247 -0
  36. package/dist/client-worIo0a3.d.ts +1247 -0
  37. package/dist/client.cjs +3791 -0
  38. package/dist/client.cjs.map +1 -0
  39. package/dist/client.d.cts +7 -0
  40. package/dist/client.d.ts +7 -0
  41. package/dist/client.js +7 -0
  42. package/dist/client.js.map +1 -0
  43. package/dist/crypto/index.cjs +170 -0
  44. package/dist/crypto/index.cjs.map +1 -0
  45. package/dist/crypto/index.d.cts +60 -0
  46. package/dist/crypto/index.d.ts +60 -0
  47. package/dist/crypto/index.js +5 -0
  48. package/dist/crypto/index.js.map +1 -0
  49. package/dist/helpers/index.cjs +270 -0
  50. package/dist/helpers/index.cjs.map +1 -0
  51. package/dist/helpers/index.d.cts +15 -0
  52. package/dist/helpers/index.d.ts +15 -0
  53. package/dist/helpers/index.js +4 -0
  54. package/dist/helpers/index.js.map +1 -0
  55. package/dist/metafile-cjs.json +1 -0
  56. package/dist/metafile-esm.json +1 -0
  57. package/dist/proto/index.cjs +433 -0
  58. package/dist/proto/index.cjs.map +1 -0
  59. package/dist/proto/index.d.cts +435 -0
  60. package/dist/proto/index.d.ts +435 -0
  61. package/dist/proto/index.js +4 -0
  62. package/dist/proto/index.js.map +1 -0
  63. package/dist/sdk.cjs +4137 -0
  64. package/dist/sdk.cjs.map +1 -0
  65. package/dist/sdk.d.cts +36 -0
  66. package/dist/sdk.d.ts +36 -0
  67. package/dist/sdk.js +7 -0
  68. package/dist/sdk.js.map +1 -0
  69. package/dist/streaming_service_pb-DvCdJiCr.d.cts +4877 -0
  70. package/dist/streaming_service_pb-DvCdJiCr.d.ts +4877 -0
  71. package/dist/webcrypto-LTajLAad.d.cts +3 -0
  72. package/dist/webcrypto-LTajLAad.d.ts +3 -0
  73. package/package.json +88 -0
@@ -0,0 +1,3 @@
1
+ declare function getWebCrypto(): Crypto;
2
+
3
+ export { getWebCrypto as g };
@@ -0,0 +1,3 @@
1
+ declare function getWebCrypto(): Crypto;
2
+
3
+ export { getWebCrypto as g };
package/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@thru/sdk",
3
+ "version": "0.2.22",
4
+ "type": "module",
5
+ "main": "./dist/sdk.cjs",
6
+ "module": "./dist/sdk.js",
7
+ "types": "./dist/sdk.d.ts",
8
+ "sideEffects": false,
9
+ "files": [
10
+ "dist",
11
+ "README.md"
12
+ ],
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/sdk.d.ts",
16
+ "import": "./dist/sdk.js",
17
+ "require": "./dist/sdk.cjs"
18
+ },
19
+ "./client": {
20
+ "types": "./dist/client.d.ts",
21
+ "import": "./dist/client.js",
22
+ "require": "./dist/client.cjs"
23
+ },
24
+ "./proto": {
25
+ "types": "./dist/proto/index.d.ts",
26
+ "import": "./dist/proto/index.js",
27
+ "require": "./dist/proto/index.cjs"
28
+ },
29
+ "./helpers": {
30
+ "types": "./dist/helpers/index.d.ts",
31
+ "import": "./dist/helpers/index.js",
32
+ "require": "./dist/helpers/index.cjs"
33
+ },
34
+ "./crypto": {
35
+ "types": "./dist/crypto/index.d.ts",
36
+ "import": "./dist/crypto/index.js",
37
+ "require": "./dist/crypto/index.cjs"
38
+ },
39
+ "./abi": {
40
+ "types": "./dist/abi/index.d.ts",
41
+ "import": "./dist/abi/index.js",
42
+ "require": "./dist/abi/index.cjs"
43
+ }
44
+ },
45
+ "dependencies": {
46
+ "@bufbuild/protobuf": "^2.12.0",
47
+ "@connectrpc/connect": "^2.1.1",
48
+ "@connectrpc/connect-web": "^2.1.1",
49
+ "@noble/ed25519": "^3.1.0",
50
+ "@noble/hashes": "^2.2.0",
51
+ "@scure/bip39": "^2.2.0",
52
+ "micro-key-producer": "^0.8.6",
53
+ "yaml": "^2.9.0"
54
+ },
55
+ "devDependencies": {
56
+ "@bufbuild/buf": "latest",
57
+ "@bufbuild/protoc-gen-es": "^2.12.0",
58
+ "@types/node": "^25.9.1",
59
+ "@vitest/coverage-v8": "^4.1.7",
60
+ "jsdom": "^29.1.1",
61
+ "ts-node": "^10.9.2",
62
+ "tsx": "^4.22.3",
63
+ "typescript": "^6.0.3",
64
+ "vitest": "^4.1.7"
65
+ },
66
+ "scripts": {
67
+ "get-height": "tsx --tsconfig tsconfig.json thru-ts-client-sdk/test-scripts/get-height.ts",
68
+ "counter": "tsx --tsconfig tsconfig.json thru-ts-client-sdk/test-scripts/counter.ts",
69
+ "counter-2": "tsx --tsconfig tsconfig.json thru-ts-client-sdk/test-scripts/counter-2.ts",
70
+ "create-account": "tsx --tsconfig tsconfig.json thru-ts-client-sdk/test-scripts/create-account.ts",
71
+ "smoketest": "tsx --tsconfig tsconfig.json thru-ts-client-sdk/test-scripts/smoketest.ts",
72
+ "test-token-events": "tsx --tsconfig tsconfig.json thru-ts-client-sdk/test-scripts/test-token-events.ts",
73
+ "generate": "buf dep update && buf generate --include-imports",
74
+ "protobufs:generate": "pnpm run generate",
75
+ "prebuild": "node ./scripts/proto/prebuild.mjs",
76
+ "build:wasm": "node ./scripts/abi/build-wasm.mjs",
77
+ "build": "tsup && node ./scripts/abi/copy-wasm.mjs",
78
+ "dev": "tsup --watch",
79
+ "lint": "eslint src/",
80
+ "test": "vitest",
81
+ "test:watch": "vitest --watch",
82
+ "test:coverage": "vitest --coverage",
83
+ "test:run": "vitest run",
84
+ "test:ui": "vitest --ui",
85
+ "test:transactions": "node --loader ts-node/esm --test \"thru-ts-client-sdk/transactions/__tests__/*.test.ts\"",
86
+ "clean": "rm -rf dist"
87
+ }
88
+ }