@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.
- package/README.abi.md +112 -0
- package/README.md +342 -0
- package/dist/abi/index.cjs +946 -0
- package/dist/abi/index.cjs.map +1 -0
- package/dist/abi/index.d.cts +331 -0
- package/dist/abi/index.d.ts +331 -0
- package/dist/abi/index.js +892 -0
- package/dist/abi/index.js.map +1 -0
- package/dist/abi/wasm/bundler/abi_reflect_wasm.d.ts +65 -0
- package/dist/abi/wasm/bundler/abi_reflect_wasm.js +5 -0
- package/dist/abi/wasm/bundler/abi_reflect_wasm_bg.js +412 -0
- package/dist/abi/wasm/bundler/abi_reflect_wasm_bg.wasm +0 -0
- package/dist/abi/wasm/bundler/abi_reflect_wasm_bg.wasm.d.ts +24 -0
- package/dist/abi/wasm/bundler/package.json +17 -0
- package/dist/abi/wasm/node/abi_reflect_wasm.d.ts +65 -0
- package/dist/abi/wasm/node/abi_reflect_wasm.js +425 -0
- package/dist/abi/wasm/node/abi_reflect_wasm_bg.wasm +0 -0
- package/dist/abi/wasm/node/abi_reflect_wasm_bg.wasm.d.ts +24 -0
- package/dist/abi/wasm/node/package.json +11 -0
- package/dist/abi/wasm/web/abi_reflect_wasm.d.ts +114 -0
- package/dist/abi/wasm/web/abi_reflect_wasm.js +499 -0
- package/dist/abi/wasm/web/abi_reflect_wasm_bg.wasm +0 -0
- package/dist/abi/wasm/web/abi_reflect_wasm_bg.wasm.d.ts +24 -0
- package/dist/abi/wasm/web/package.json +15 -0
- package/dist/chunk-CVBQ4UPL.js +3614 -0
- package/dist/chunk-CVBQ4UPL.js.map +1 -0
- package/dist/chunk-NSBPE2FW.js +15 -0
- package/dist/chunk-NSBPE2FW.js.map +1 -0
- package/dist/chunk-RL3Q6FDE.js +105 -0
- package/dist/chunk-RL3Q6FDE.js.map +1 -0
- package/dist/chunk-UDIXYJXC.js +260 -0
- package/dist/chunk-UDIXYJXC.js.map +1 -0
- package/dist/chunk-YQDWOMNO.js +271 -0
- package/dist/chunk-YQDWOMNO.js.map +1 -0
- package/dist/client-Cfi7zRLm.d.cts +1247 -0
- package/dist/client-worIo0a3.d.ts +1247 -0
- package/dist/client.cjs +3791 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +7 -0
- package/dist/client.d.ts +7 -0
- package/dist/client.js +7 -0
- package/dist/client.js.map +1 -0
- package/dist/crypto/index.cjs +170 -0
- package/dist/crypto/index.cjs.map +1 -0
- package/dist/crypto/index.d.cts +60 -0
- package/dist/crypto/index.d.ts +60 -0
- package/dist/crypto/index.js +5 -0
- package/dist/crypto/index.js.map +1 -0
- package/dist/helpers/index.cjs +270 -0
- package/dist/helpers/index.cjs.map +1 -0
- package/dist/helpers/index.d.cts +15 -0
- package/dist/helpers/index.d.ts +15 -0
- package/dist/helpers/index.js +4 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/proto/index.cjs +433 -0
- package/dist/proto/index.cjs.map +1 -0
- package/dist/proto/index.d.cts +435 -0
- package/dist/proto/index.d.ts +435 -0
- package/dist/proto/index.js +4 -0
- package/dist/proto/index.js.map +1 -0
- package/dist/sdk.cjs +4137 -0
- package/dist/sdk.cjs.map +1 -0
- package/dist/sdk.d.cts +36 -0
- package/dist/sdk.d.ts +36 -0
- package/dist/sdk.js +7 -0
- package/dist/sdk.js.map +1 -0
- package/dist/streaming_service_pb-DvCdJiCr.d.cts +4877 -0
- package/dist/streaming_service_pb-DvCdJiCr.d.ts +4877 -0
- package/dist/webcrypto-LTajLAad.d.cts +3 -0
- package/dist/webcrypto-LTajLAad.d.ts +3 -0
- package/package.json +88 -0
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
|
+
}
|