quantumcoin 7.0.9 → 7.0.11
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-SDK.md +1 -5
- package/README.md +18 -3
- package/SPEC.md +2 -63
- package/config.js +10 -2
- package/examples/example.js +0 -5
- package/examples/example.ts +0 -5
- package/examples/node_modules/.bin/esbuild +16 -0
- package/examples/node_modules/.bin/esbuild.cmd +17 -0
- package/examples/node_modules/.bin/esbuild.ps1 +28 -0
- package/examples/node_modules/.bin/sdkgen +16 -0
- package/examples/node_modules/.bin/sdkgen.cmd +17 -0
- package/examples/node_modules/.bin/sdkgen.ps1 +28 -0
- package/examples/node_modules/.bin/tsx +16 -0
- package/examples/node_modules/.bin/tsx.cmd +17 -0
- package/examples/node_modules/.bin/tsx.ps1 +28 -0
- package/examples/node_modules/.package-lock.json +235 -0
- package/examples/node_modules/@esbuild/win32-x64/README.md +3 -0
- package/examples/node_modules/@esbuild/win32-x64/esbuild.exe +0 -0
- package/examples/node_modules/@esbuild/win32-x64/package.json +20 -0
- package/examples/node_modules/esbuild/LICENSE.md +21 -0
- package/examples/node_modules/esbuild/README.md +3 -0
- package/examples/node_modules/esbuild/bin/esbuild +223 -0
- package/examples/node_modules/esbuild/install.js +289 -0
- package/examples/node_modules/esbuild/lib/main.d.ts +716 -0
- package/examples/node_modules/esbuild/lib/main.js +2532 -0
- package/examples/node_modules/esbuild/package.json +49 -0
- package/examples/node_modules/get-tsconfig/LICENSE +21 -0
- package/examples/node_modules/get-tsconfig/README.md +235 -0
- package/examples/node_modules/get-tsconfig/dist/index.cjs +7 -0
- package/examples/node_modules/get-tsconfig/dist/index.d.cts +2088 -0
- package/examples/node_modules/get-tsconfig/dist/index.d.mts +2088 -0
- package/examples/node_modules/get-tsconfig/dist/index.mjs +7 -0
- package/examples/node_modules/get-tsconfig/package.json +46 -0
- package/examples/node_modules/quantum-coin-js-sdk/.github/workflows/publish-npmjs.yaml +22 -0
- package/examples/node_modules/quantum-coin-js-sdk/LICENSE +21 -0
- package/examples/node_modules/quantum-coin-js-sdk/LICENSE-wasm_exec.js.txt +30 -0
- package/examples/node_modules/quantum-coin-js-sdk/README.md +1665 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/README.md +14 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/conversion-example.js +19 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-create-contract.js +396 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-encode-decode-rlp.js +225 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-event-pack-unpack.js +391 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-misc.js +101 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-rpc-send-signRawTransaction.js +318 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-rpc-send.js +116 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-send.js +70 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-token-pack-unpack.js +961 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-wallet-version4.js +35 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example-wallet.js +43 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/example.js +405 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/package-lock.json +134 -0
- package/examples/node_modules/quantum-coin-js-sdk/example/package.json +15 -0
- package/examples/node_modules/quantum-coin-js-sdk/index.d.ts +1024 -0
- package/examples/node_modules/quantum-coin-js-sdk/index.js +3062 -0
- package/examples/node_modules/quantum-coin-js-sdk/package.json +34 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/encrypted-32.json +1 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/encrypted-36.json +1 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/encrypted-48.json +1 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/generate-verify-vectors.js +91 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/non-transactional.preinit.test.js +41 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/non-transactional.test.js +686 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/sign-raw-keytype5-context-null.test.js +107 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/sign-raw-transaction.test.js +196 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/sign-verify.test.js +311 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/transactional.relay.test.js +131 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/transactional.rpc.test.js +103 -0
- package/examples/node_modules/quantum-coin-js-sdk/tests/verify-vectors.json +95035 -0
- package/examples/node_modules/quantum-coin-js-sdk/wasmBase64.d.ts +9 -0
- package/examples/node_modules/quantum-coin-js-sdk/wasmBase64.js +16 -0
- package/examples/node_modules/quantum-coin-js-sdk/wasm_exec.d.ts +0 -0
- package/examples/node_modules/quantum-coin-js-sdk/wasm_exec.js +587 -0
- package/examples/node_modules/resolve-pkg-maps/LICENSE +21 -0
- package/examples/node_modules/resolve-pkg-maps/README.md +216 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.cjs +1 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.d.cts +11 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.d.mts +11 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.mjs +1 -0
- package/examples/node_modules/resolve-pkg-maps/package.json +42 -0
- package/examples/node_modules/seed-words/.github/workflows/publish-npmjs.yaml +22 -0
- package/examples/node_modules/seed-words/BUILD.md +7 -0
- package/examples/node_modules/seed-words/LICENSE +121 -0
- package/examples/node_modules/seed-words/README.md +67 -0
- package/examples/node_modules/seed-words/dist/seedwords.d.ts +39 -0
- package/examples/node_modules/seed-words/package.json +27 -0
- package/examples/node_modules/seed-words/seedwords.js +315 -0
- package/examples/node_modules/seed-words/seedwords.txt +65536 -0
- package/examples/node_modules/seed-words/tsconfig.json +21 -0
- package/examples/node_modules/tsx/LICENSE +21 -0
- package/examples/node_modules/tsx/README.md +32 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.cjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.d.cts +35 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.d.mts +35 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cli.cjs +54 -0
- package/examples/node_modules/tsx/dist/cli.mjs +55 -0
- package/examples/node_modules/tsx/dist/client-BQVF1NaW.mjs +1 -0
- package/examples/node_modules/tsx/dist/client-D6NvIMSC.cjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.d.cts +35 -0
- package/examples/node_modules/tsx/dist/esm/api/index.d.mts +35 -0
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/index.cjs +2 -0
- package/examples/node_modules/tsx/dist/esm/index.mjs +2 -0
- package/examples/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +1 -0
- package/examples/node_modules/tsx/dist/get-pipe-path-BoR10qr8.cjs +1 -0
- package/examples/node_modules/tsx/dist/index-7AaEi15b.mjs +14 -0
- package/examples/node_modules/tsx/dist/index-BWFBUo6r.cjs +1 -0
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
- package/examples/node_modules/tsx/dist/index-gckBtVBf.cjs +14 -0
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
- package/examples/node_modules/tsx/dist/lexer-DgIbo0BU.cjs +3 -0
- package/examples/node_modules/tsx/dist/loader.cjs +1 -0
- package/examples/node_modules/tsx/dist/loader.mjs +1 -0
- package/examples/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +1 -0
- package/examples/node_modules/tsx/dist/node-features-roYmp9jK.cjs +1 -0
- package/examples/node_modules/tsx/dist/package-CeBgXWuR.mjs +1 -0
- package/examples/node_modules/tsx/dist/package-Dxt5kIHw.cjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.cjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.mjs +1 -0
- package/examples/node_modules/tsx/dist/preflight.cjs +1 -0
- package/examples/node_modules/tsx/dist/preflight.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-2sWVXuRQ.cjs +1 -0
- package/examples/node_modules/tsx/dist/register-B7jrtLTO.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-CFH5oNdT.mjs +4 -0
- package/examples/node_modules/tsx/dist/register-D46fvsV_.cjs +4 -0
- package/examples/node_modules/tsx/dist/repl.cjs +3 -0
- package/examples/node_modules/tsx/dist/repl.mjs +3 -0
- package/examples/node_modules/tsx/dist/require-D4F1Lv60.cjs +1 -0
- package/examples/node_modules/tsx/dist/require-DQxpCAr4.mjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.cjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
- package/examples/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs +1 -0
- package/examples/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +1 -0
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
- package/examples/node_modules/tsx/package.json +68 -0
- package/examples/offline-signing.js +0 -2
- package/examples/offline-signing.ts +0 -1
- package/examples/package-lock.json +424 -73
- package/examples/package.json +2 -2
- package/examples/wallet-offline.js +10 -9
- package/examples/wallet-offline.ts +1 -9
- package/generate-sdk.js +4 -6
- package/package.json +2 -2
- package/src/abi/interface.js +13 -7
- package/src/abi/js-abi-coder.js +23 -18
- package/src/constants.d.ts +0 -5
- package/src/constants.js +0 -7
- package/src/contract/contract-factory.js +9 -3
- package/src/contract/contract.js +9 -3
- package/src/errors/index.js +12 -0
- package/src/index.d.ts +0 -3
- package/src/providers/extra-providers.js +20 -6
- package/src/providers/json-rpc-provider.js +15 -5
- package/src/providers/provider.d.ts +0 -2
- package/src/providers/provider.js +1 -3
- package/src/utils/address.d.ts +0 -14
- package/src/utils/address.js +12 -49
- package/src/utils/hashing.d.ts +0 -6
- package/src/utils/hashing.js +8 -23
- package/src/utils/index.d.ts +0 -3
- package/src/utils/rlp.js +7 -4
- package/src/wallet/wallet.d.ts +11 -13
- package/src/wallet/wallet.js +135 -96
- package/test/security/malformed-input.test.js +295 -1
- package/test/unit/address-wallet.test.js +277 -128
- package/test/unit/address-wallet.test.ts +276 -127
- package/test/unit/hashing.test.js +0 -11
- package/test/unit/hashing.test.ts +0 -11
- package/test/unit/providers.test.js +3 -1
- package/test/unit/providers.test.ts +3 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quantumcoinjs-sdk-examples",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "quantumcoinjs-sdk-examples",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"quantum-coin-js-sdk": "1.0.
|
|
12
|
+
"quantum-coin-js-sdk": "1.0.35",
|
|
13
13
|
"quantumcoin": "file:.."
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"..": {
|
|
20
20
|
"name": "quantumcoin",
|
|
21
|
-
"version": "7.0.
|
|
21
|
+
"version": "7.0.11",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"quantum-coin-js-sdk": "1.0.
|
|
24
|
+
"quantum-coin-js-sdk": "1.0.35",
|
|
25
25
|
"seed-words": "^1.0.2"
|
|
26
26
|
},
|
|
27
27
|
"bin": {
|
|
@@ -31,8 +31,61 @@
|
|
|
31
31
|
"tsx": "^4.19.0"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
"
|
|
34
|
+
"node_modules/@esbuild/aix-ppc64": {
|
|
35
|
+
"version": "0.27.7",
|
|
36
|
+
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz",
|
|
37
|
+
"integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==",
|
|
38
|
+
"cpu": [
|
|
39
|
+
"ppc64"
|
|
40
|
+
],
|
|
41
|
+
"dev": true,
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"optional": true,
|
|
44
|
+
"os": [
|
|
45
|
+
"aix"
|
|
46
|
+
],
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=18"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"node_modules/@esbuild/android-arm": {
|
|
35
52
|
"version": "0.27.7",
|
|
53
|
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz",
|
|
54
|
+
"integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==",
|
|
55
|
+
"cpu": [
|
|
56
|
+
"arm"
|
|
57
|
+
],
|
|
58
|
+
"dev": true,
|
|
59
|
+
"license": "MIT",
|
|
60
|
+
"optional": true,
|
|
61
|
+
"os": [
|
|
62
|
+
"android"
|
|
63
|
+
],
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": ">=18"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"node_modules/@esbuild/android-arm64": {
|
|
69
|
+
"version": "0.27.7",
|
|
70
|
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz",
|
|
71
|
+
"integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==",
|
|
72
|
+
"cpu": [
|
|
73
|
+
"arm64"
|
|
74
|
+
],
|
|
75
|
+
"dev": true,
|
|
76
|
+
"license": "MIT",
|
|
77
|
+
"optional": true,
|
|
78
|
+
"os": [
|
|
79
|
+
"android"
|
|
80
|
+
],
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">=18"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"node_modules/@esbuild/android-x64": {
|
|
86
|
+
"version": "0.27.7",
|
|
87
|
+
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz",
|
|
88
|
+
"integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==",
|
|
36
89
|
"cpu": [
|
|
37
90
|
"x64"
|
|
38
91
|
],
|
|
@@ -40,102 +93,373 @@
|
|
|
40
93
|
"license": "MIT",
|
|
41
94
|
"optional": true,
|
|
42
95
|
"os": [
|
|
43
|
-
"
|
|
96
|
+
"android"
|
|
44
97
|
],
|
|
45
98
|
"engines": {
|
|
46
99
|
"node": ">=18"
|
|
47
100
|
}
|
|
48
101
|
},
|
|
49
|
-
"
|
|
102
|
+
"node_modules/@esbuild/darwin-arm64": {
|
|
50
103
|
"version": "0.27.7",
|
|
104
|
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz",
|
|
105
|
+
"integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==",
|
|
106
|
+
"cpu": [
|
|
107
|
+
"arm64"
|
|
108
|
+
],
|
|
51
109
|
"dev": true,
|
|
52
|
-
"hasInstallScript": true,
|
|
53
110
|
"license": "MIT",
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
111
|
+
"optional": true,
|
|
112
|
+
"os": [
|
|
113
|
+
"darwin"
|
|
114
|
+
],
|
|
57
115
|
"engines": {
|
|
58
116
|
"node": ">=18"
|
|
59
|
-
},
|
|
60
|
-
"optionalDependencies": {
|
|
61
|
-
"@esbuild/aix-ppc64": "0.27.7",
|
|
62
|
-
"@esbuild/android-arm": "0.27.7",
|
|
63
|
-
"@esbuild/android-arm64": "0.27.7",
|
|
64
|
-
"@esbuild/android-x64": "0.27.7",
|
|
65
|
-
"@esbuild/darwin-arm64": "0.27.7",
|
|
66
|
-
"@esbuild/darwin-x64": "0.27.7",
|
|
67
|
-
"@esbuild/freebsd-arm64": "0.27.7",
|
|
68
|
-
"@esbuild/freebsd-x64": "0.27.7",
|
|
69
|
-
"@esbuild/linux-arm": "0.27.7",
|
|
70
|
-
"@esbuild/linux-arm64": "0.27.7",
|
|
71
|
-
"@esbuild/linux-ia32": "0.27.7",
|
|
72
|
-
"@esbuild/linux-loong64": "0.27.7",
|
|
73
|
-
"@esbuild/linux-mips64el": "0.27.7",
|
|
74
|
-
"@esbuild/linux-ppc64": "0.27.7",
|
|
75
|
-
"@esbuild/linux-riscv64": "0.27.7",
|
|
76
|
-
"@esbuild/linux-s390x": "0.27.7",
|
|
77
|
-
"@esbuild/linux-x64": "0.27.7",
|
|
78
|
-
"@esbuild/netbsd-arm64": "0.27.7",
|
|
79
|
-
"@esbuild/netbsd-x64": "0.27.7",
|
|
80
|
-
"@esbuild/openbsd-arm64": "0.27.7",
|
|
81
|
-
"@esbuild/openbsd-x64": "0.27.7",
|
|
82
|
-
"@esbuild/openharmony-arm64": "0.27.7",
|
|
83
|
-
"@esbuild/sunos-x64": "0.27.7",
|
|
84
|
-
"@esbuild/win32-arm64": "0.27.7",
|
|
85
|
-
"@esbuild/win32-ia32": "0.27.7",
|
|
86
|
-
"@esbuild/win32-x64": "0.27.7"
|
|
87
117
|
}
|
|
88
118
|
},
|
|
89
|
-
"
|
|
90
|
-
"version": "
|
|
119
|
+
"node_modules/@esbuild/darwin-x64": {
|
|
120
|
+
"version": "0.27.7",
|
|
121
|
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz",
|
|
122
|
+
"integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==",
|
|
123
|
+
"cpu": [
|
|
124
|
+
"x64"
|
|
125
|
+
],
|
|
91
126
|
"dev": true,
|
|
92
127
|
"license": "MIT",
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
128
|
+
"optional": true,
|
|
129
|
+
"os": [
|
|
130
|
+
"darwin"
|
|
131
|
+
],
|
|
132
|
+
"engines": {
|
|
133
|
+
"node": ">=18"
|
|
98
134
|
}
|
|
99
135
|
},
|
|
100
|
-
"
|
|
101
|
-
"version": "
|
|
136
|
+
"node_modules/@esbuild/freebsd-arm64": {
|
|
137
|
+
"version": "0.27.7",
|
|
138
|
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz",
|
|
139
|
+
"integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==",
|
|
140
|
+
"cpu": [
|
|
141
|
+
"arm64"
|
|
142
|
+
],
|
|
143
|
+
"dev": true,
|
|
102
144
|
"license": "MIT",
|
|
103
|
-
"
|
|
104
|
-
|
|
145
|
+
"optional": true,
|
|
146
|
+
"os": [
|
|
147
|
+
"freebsd"
|
|
148
|
+
],
|
|
149
|
+
"engines": {
|
|
150
|
+
"node": ">=18"
|
|
105
151
|
}
|
|
106
152
|
},
|
|
107
|
-
"
|
|
108
|
-
"version": "
|
|
153
|
+
"node_modules/@esbuild/freebsd-x64": {
|
|
154
|
+
"version": "0.27.7",
|
|
155
|
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz",
|
|
156
|
+
"integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==",
|
|
157
|
+
"cpu": [
|
|
158
|
+
"x64"
|
|
159
|
+
],
|
|
109
160
|
"dev": true,
|
|
110
161
|
"license": "MIT",
|
|
111
|
-
"
|
|
112
|
-
|
|
162
|
+
"optional": true,
|
|
163
|
+
"os": [
|
|
164
|
+
"freebsd"
|
|
165
|
+
],
|
|
166
|
+
"engines": {
|
|
167
|
+
"node": ">=18"
|
|
113
168
|
}
|
|
114
169
|
},
|
|
115
|
-
"
|
|
116
|
-
"version": "
|
|
117
|
-
"
|
|
170
|
+
"node_modules/@esbuild/linux-arm": {
|
|
171
|
+
"version": "0.27.7",
|
|
172
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz",
|
|
173
|
+
"integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==",
|
|
174
|
+
"cpu": [
|
|
175
|
+
"arm"
|
|
176
|
+
],
|
|
177
|
+
"dev": true,
|
|
178
|
+
"license": "MIT",
|
|
179
|
+
"optional": true,
|
|
180
|
+
"os": [
|
|
181
|
+
"linux"
|
|
182
|
+
],
|
|
183
|
+
"engines": {
|
|
184
|
+
"node": ">=18"
|
|
185
|
+
}
|
|
118
186
|
},
|
|
119
|
-
"
|
|
120
|
-
"version": "
|
|
187
|
+
"node_modules/@esbuild/linux-arm64": {
|
|
188
|
+
"version": "0.27.7",
|
|
189
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz",
|
|
190
|
+
"integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==",
|
|
191
|
+
"cpu": [
|
|
192
|
+
"arm64"
|
|
193
|
+
],
|
|
121
194
|
"dev": true,
|
|
122
195
|
"license": "MIT",
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
"bin": {
|
|
128
|
-
"tsx": "dist/cli.mjs"
|
|
129
|
-
},
|
|
196
|
+
"optional": true,
|
|
197
|
+
"os": [
|
|
198
|
+
"linux"
|
|
199
|
+
],
|
|
130
200
|
"engines": {
|
|
131
|
-
"node": ">=18
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
201
|
+
"node": ">=18"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"node_modules/@esbuild/linux-ia32": {
|
|
205
|
+
"version": "0.27.7",
|
|
206
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz",
|
|
207
|
+
"integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==",
|
|
208
|
+
"cpu": [
|
|
209
|
+
"ia32"
|
|
210
|
+
],
|
|
211
|
+
"dev": true,
|
|
212
|
+
"license": "MIT",
|
|
213
|
+
"optional": true,
|
|
214
|
+
"os": [
|
|
215
|
+
"linux"
|
|
216
|
+
],
|
|
217
|
+
"engines": {
|
|
218
|
+
"node": ">=18"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"node_modules/@esbuild/linux-loong64": {
|
|
222
|
+
"version": "0.27.7",
|
|
223
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz",
|
|
224
|
+
"integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==",
|
|
225
|
+
"cpu": [
|
|
226
|
+
"loong64"
|
|
227
|
+
],
|
|
228
|
+
"dev": true,
|
|
229
|
+
"license": "MIT",
|
|
230
|
+
"optional": true,
|
|
231
|
+
"os": [
|
|
232
|
+
"linux"
|
|
233
|
+
],
|
|
234
|
+
"engines": {
|
|
235
|
+
"node": ">=18"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"node_modules/@esbuild/linux-mips64el": {
|
|
239
|
+
"version": "0.27.7",
|
|
240
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz",
|
|
241
|
+
"integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==",
|
|
242
|
+
"cpu": [
|
|
243
|
+
"mips64el"
|
|
244
|
+
],
|
|
245
|
+
"dev": true,
|
|
246
|
+
"license": "MIT",
|
|
247
|
+
"optional": true,
|
|
248
|
+
"os": [
|
|
249
|
+
"linux"
|
|
250
|
+
],
|
|
251
|
+
"engines": {
|
|
252
|
+
"node": ">=18"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"node_modules/@esbuild/linux-ppc64": {
|
|
256
|
+
"version": "0.27.7",
|
|
257
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz",
|
|
258
|
+
"integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==",
|
|
259
|
+
"cpu": [
|
|
260
|
+
"ppc64"
|
|
261
|
+
],
|
|
262
|
+
"dev": true,
|
|
263
|
+
"license": "MIT",
|
|
264
|
+
"optional": true,
|
|
265
|
+
"os": [
|
|
266
|
+
"linux"
|
|
267
|
+
],
|
|
268
|
+
"engines": {
|
|
269
|
+
"node": ">=18"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"node_modules/@esbuild/linux-riscv64": {
|
|
273
|
+
"version": "0.27.7",
|
|
274
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz",
|
|
275
|
+
"integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==",
|
|
276
|
+
"cpu": [
|
|
277
|
+
"riscv64"
|
|
278
|
+
],
|
|
279
|
+
"dev": true,
|
|
280
|
+
"license": "MIT",
|
|
281
|
+
"optional": true,
|
|
282
|
+
"os": [
|
|
283
|
+
"linux"
|
|
284
|
+
],
|
|
285
|
+
"engines": {
|
|
286
|
+
"node": ">=18"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"node_modules/@esbuild/linux-s390x": {
|
|
290
|
+
"version": "0.27.7",
|
|
291
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz",
|
|
292
|
+
"integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==",
|
|
293
|
+
"cpu": [
|
|
294
|
+
"s390x"
|
|
295
|
+
],
|
|
296
|
+
"dev": true,
|
|
297
|
+
"license": "MIT",
|
|
298
|
+
"optional": true,
|
|
299
|
+
"os": [
|
|
300
|
+
"linux"
|
|
301
|
+
],
|
|
302
|
+
"engines": {
|
|
303
|
+
"node": ">=18"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"node_modules/@esbuild/linux-x64": {
|
|
307
|
+
"version": "0.27.7",
|
|
308
|
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz",
|
|
309
|
+
"integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==",
|
|
310
|
+
"cpu": [
|
|
311
|
+
"x64"
|
|
312
|
+
],
|
|
313
|
+
"dev": true,
|
|
314
|
+
"license": "MIT",
|
|
315
|
+
"optional": true,
|
|
316
|
+
"os": [
|
|
317
|
+
"linux"
|
|
318
|
+
],
|
|
319
|
+
"engines": {
|
|
320
|
+
"node": ">=18"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"node_modules/@esbuild/netbsd-arm64": {
|
|
324
|
+
"version": "0.27.7",
|
|
325
|
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz",
|
|
326
|
+
"integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==",
|
|
327
|
+
"cpu": [
|
|
328
|
+
"arm64"
|
|
329
|
+
],
|
|
330
|
+
"dev": true,
|
|
331
|
+
"license": "MIT",
|
|
332
|
+
"optional": true,
|
|
333
|
+
"os": [
|
|
334
|
+
"netbsd"
|
|
335
|
+
],
|
|
336
|
+
"engines": {
|
|
337
|
+
"node": ">=18"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"node_modules/@esbuild/netbsd-x64": {
|
|
341
|
+
"version": "0.27.7",
|
|
342
|
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz",
|
|
343
|
+
"integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==",
|
|
344
|
+
"cpu": [
|
|
345
|
+
"x64"
|
|
346
|
+
],
|
|
347
|
+
"dev": true,
|
|
348
|
+
"license": "MIT",
|
|
349
|
+
"optional": true,
|
|
350
|
+
"os": [
|
|
351
|
+
"netbsd"
|
|
352
|
+
],
|
|
353
|
+
"engines": {
|
|
354
|
+
"node": ">=18"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"node_modules/@esbuild/openbsd-arm64": {
|
|
358
|
+
"version": "0.27.7",
|
|
359
|
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz",
|
|
360
|
+
"integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==",
|
|
361
|
+
"cpu": [
|
|
362
|
+
"arm64"
|
|
363
|
+
],
|
|
364
|
+
"dev": true,
|
|
365
|
+
"license": "MIT",
|
|
366
|
+
"optional": true,
|
|
367
|
+
"os": [
|
|
368
|
+
"openbsd"
|
|
369
|
+
],
|
|
370
|
+
"engines": {
|
|
371
|
+
"node": ">=18"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"node_modules/@esbuild/openbsd-x64": {
|
|
375
|
+
"version": "0.27.7",
|
|
376
|
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz",
|
|
377
|
+
"integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==",
|
|
378
|
+
"cpu": [
|
|
379
|
+
"x64"
|
|
380
|
+
],
|
|
381
|
+
"dev": true,
|
|
382
|
+
"license": "MIT",
|
|
383
|
+
"optional": true,
|
|
384
|
+
"os": [
|
|
385
|
+
"openbsd"
|
|
386
|
+
],
|
|
387
|
+
"engines": {
|
|
388
|
+
"node": ">=18"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"node_modules/@esbuild/openharmony-arm64": {
|
|
392
|
+
"version": "0.27.7",
|
|
393
|
+
"resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz",
|
|
394
|
+
"integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==",
|
|
395
|
+
"cpu": [
|
|
396
|
+
"arm64"
|
|
397
|
+
],
|
|
398
|
+
"dev": true,
|
|
399
|
+
"license": "MIT",
|
|
400
|
+
"optional": true,
|
|
401
|
+
"os": [
|
|
402
|
+
"openharmony"
|
|
403
|
+
],
|
|
404
|
+
"engines": {
|
|
405
|
+
"node": ">=18"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"node_modules/@esbuild/sunos-x64": {
|
|
409
|
+
"version": "0.27.7",
|
|
410
|
+
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz",
|
|
411
|
+
"integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==",
|
|
412
|
+
"cpu": [
|
|
413
|
+
"x64"
|
|
414
|
+
],
|
|
415
|
+
"dev": true,
|
|
416
|
+
"license": "MIT",
|
|
417
|
+
"optional": true,
|
|
418
|
+
"os": [
|
|
419
|
+
"sunos"
|
|
420
|
+
],
|
|
421
|
+
"engines": {
|
|
422
|
+
"node": ">=18"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
"node_modules/@esbuild/win32-arm64": {
|
|
426
|
+
"version": "0.27.7",
|
|
427
|
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz",
|
|
428
|
+
"integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==",
|
|
429
|
+
"cpu": [
|
|
430
|
+
"arm64"
|
|
431
|
+
],
|
|
432
|
+
"dev": true,
|
|
433
|
+
"license": "MIT",
|
|
434
|
+
"optional": true,
|
|
435
|
+
"os": [
|
|
436
|
+
"win32"
|
|
437
|
+
],
|
|
438
|
+
"engines": {
|
|
439
|
+
"node": ">=18"
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
"node_modules/@esbuild/win32-ia32": {
|
|
443
|
+
"version": "0.27.7",
|
|
444
|
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz",
|
|
445
|
+
"integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==",
|
|
446
|
+
"cpu": [
|
|
447
|
+
"ia32"
|
|
448
|
+
],
|
|
449
|
+
"dev": true,
|
|
450
|
+
"license": "MIT",
|
|
451
|
+
"optional": true,
|
|
452
|
+
"os": [
|
|
453
|
+
"win32"
|
|
454
|
+
],
|
|
455
|
+
"engines": {
|
|
456
|
+
"node": ">=18"
|
|
135
457
|
}
|
|
136
458
|
},
|
|
137
459
|
"node_modules/@esbuild/win32-x64": {
|
|
138
460
|
"version": "0.27.7",
|
|
461
|
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz",
|
|
462
|
+
"integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==",
|
|
139
463
|
"cpu": [
|
|
140
464
|
"x64"
|
|
141
465
|
],
|
|
@@ -151,6 +475,8 @@
|
|
|
151
475
|
},
|
|
152
476
|
"node_modules/esbuild": {
|
|
153
477
|
"version": "0.27.7",
|
|
478
|
+
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz",
|
|
479
|
+
"integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==",
|
|
154
480
|
"dev": true,
|
|
155
481
|
"hasInstallScript": true,
|
|
156
482
|
"license": "MIT",
|
|
@@ -189,8 +515,25 @@
|
|
|
189
515
|
"@esbuild/win32-x64": "0.27.7"
|
|
190
516
|
}
|
|
191
517
|
},
|
|
518
|
+
"node_modules/fsevents": {
|
|
519
|
+
"version": "2.3.3",
|
|
520
|
+
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
|
521
|
+
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
|
|
522
|
+
"dev": true,
|
|
523
|
+
"hasInstallScript": true,
|
|
524
|
+
"license": "MIT",
|
|
525
|
+
"optional": true,
|
|
526
|
+
"os": [
|
|
527
|
+
"darwin"
|
|
528
|
+
],
|
|
529
|
+
"engines": {
|
|
530
|
+
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
192
533
|
"node_modules/get-tsconfig": {
|
|
193
|
-
"version": "4.13.
|
|
534
|
+
"version": "4.13.8",
|
|
535
|
+
"resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.8.tgz",
|
|
536
|
+
"integrity": "sha512-J87BxkLXykmisLQ+KA4x2+O6rVf+PJrtFUO8lGyiRg4lyxJLJ8/v0sRAKdVZQOy6tR6lMRAF1NqzCf9BQijm0w==",
|
|
194
537
|
"dev": true,
|
|
195
538
|
"license": "MIT",
|
|
196
539
|
"dependencies": {
|
|
@@ -201,7 +544,9 @@
|
|
|
201
544
|
}
|
|
202
545
|
},
|
|
203
546
|
"node_modules/quantum-coin-js-sdk": {
|
|
204
|
-
"version": "1.0.
|
|
547
|
+
"version": "1.0.35",
|
|
548
|
+
"resolved": "https://registry.npmjs.org/quantum-coin-js-sdk/-/quantum-coin-js-sdk-1.0.35.tgz",
|
|
549
|
+
"integrity": "sha512-hJWYxPT5x+us/61hciuW5Ky9b0cRVStBRpKniFiz/usQJkM/Pw/8dNlgdBLU2H8ZvSuBp930Y+eRp9dpYRcYNA==",
|
|
205
550
|
"license": "MIT",
|
|
206
551
|
"dependencies": {
|
|
207
552
|
"seed-words": "1.0.2"
|
|
@@ -213,6 +558,8 @@
|
|
|
213
558
|
},
|
|
214
559
|
"node_modules/resolve-pkg-maps": {
|
|
215
560
|
"version": "1.0.0",
|
|
561
|
+
"resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",
|
|
562
|
+
"integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",
|
|
216
563
|
"dev": true,
|
|
217
564
|
"license": "MIT",
|
|
218
565
|
"funding": {
|
|
@@ -221,10 +568,14 @@
|
|
|
221
568
|
},
|
|
222
569
|
"node_modules/seed-words": {
|
|
223
570
|
"version": "1.0.2",
|
|
571
|
+
"resolved": "https://registry.npmjs.org/seed-words/-/seed-words-1.0.2.tgz",
|
|
572
|
+
"integrity": "sha512-ia58deuPjcR8DpJ8uIgZ7gqDnIWD8vnjb4jX/sEsIDcuQaH/AJj9J8L3DXkUHfUGqAq9Y6pVMuG90t3XUJH90g==",
|
|
224
573
|
"license": "MIT"
|
|
225
574
|
},
|
|
226
575
|
"node_modules/tsx": {
|
|
227
576
|
"version": "4.21.0",
|
|
577
|
+
"resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz",
|
|
578
|
+
"integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==",
|
|
228
579
|
"dev": true,
|
|
229
580
|
"license": "MIT",
|
|
230
581
|
"dependencies": {
|
package/examples/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quantumcoinjs-sdk-examples",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "QuantumCoin.js SDK Examples",
|
|
5
5
|
"main": "example.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"tsx": "^4.19.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"quantum-coin-js-sdk": "1.0.
|
|
29
|
+
"quantum-coin-js-sdk": "1.0.35",
|
|
30
30
|
"quantumcoin": "file:.."
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
const { Initialize } = require("../config");
|
|
7
|
-
const { Wallet
|
|
7
|
+
const { Wallet } = require("..");
|
|
8
8
|
const { logExample, logAddress } = require("../test/verbose-logger");
|
|
9
9
|
|
|
10
10
|
async function walletOffline() {
|
|
@@ -15,17 +15,18 @@ async function walletOffline() {
|
|
|
15
15
|
console.log("Wallet address:", wallet.address);
|
|
16
16
|
logAddress("wallet", wallet.address);
|
|
17
17
|
|
|
18
|
-
const msg = "Hello, QuantumCoin!";
|
|
19
|
-
const sig = wallet.signMessageSync(msg);
|
|
20
|
-
console.log("Signature:", sig.slice(0, 18) + "...");
|
|
21
|
-
|
|
22
|
-
const recovered = verifyMessage(msg, sig);
|
|
23
|
-
console.log("Recovered address:", recovered);
|
|
24
|
-
logAddress("recovered", recovered);
|
|
25
|
-
|
|
26
18
|
const json = wallet.encryptSync("mySecurePassword123");
|
|
27
19
|
console.log("Encrypted wallet JSON length:", json.length);
|
|
28
20
|
logExample("wallet-offline.js", "encryptSync", { jsonLength: json.length });
|
|
21
|
+
|
|
22
|
+
// Encrypt a raw seed (pre-expansion format) and restore it
|
|
23
|
+
const seed = [51,214,149,165,206,96,227,5,173,247,83,219,210,2,221,2,4,48,117,55,88,109,241,204,31,62,23,128,47,21,168,247,28,118,30,185,229,255,17,27,34,107,225,138,254,156,55,9,253,255,142,148,234,189,232,43,173,84,159,108,8,35,58,77];
|
|
24
|
+
const seedJson = Wallet.encryptSeedSync(seed, "mySecurePassword123");
|
|
25
|
+
console.log("Seed-encrypted wallet JSON length:", seedJson.length);
|
|
26
|
+
const restored = Wallet.fromEncryptedJsonSync(seedJson, "mySecurePassword123");
|
|
27
|
+
console.log("Restored from seed address:", restored.address);
|
|
28
|
+
logExample("wallet-offline.js", "encryptSeedSync", { jsonLength: seedJson.length });
|
|
29
|
+
logAddress("restored", restored.address);
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
walletOffline().catch((e) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { Initialize } from "../config";
|
|
7
|
-
import { Wallet
|
|
7
|
+
import { Wallet } from "..";
|
|
8
8
|
import { logExample, logAddress } from "../test/verbose-logger";
|
|
9
9
|
|
|
10
10
|
async function walletOffline(): Promise<void> {
|
|
@@ -15,14 +15,6 @@ async function walletOffline(): Promise<void> {
|
|
|
15
15
|
console.log("Wallet address:", wallet.address);
|
|
16
16
|
logAddress("wallet", wallet.address);
|
|
17
17
|
|
|
18
|
-
const msg = "Hello, QuantumCoin!";
|
|
19
|
-
const sig = wallet.signMessageSync(msg);
|
|
20
|
-
console.log("Signature:", sig.slice(0, 18) + "...");
|
|
21
|
-
|
|
22
|
-
const recovered = verifyMessage(msg, sig);
|
|
23
|
-
console.log("Recovered address:", recovered);
|
|
24
|
-
logAddress("recovered", recovered);
|
|
25
|
-
|
|
26
18
|
const json = wallet.encryptSync("mySecurePassword123");
|
|
27
19
|
console.log("Encrypted wallet JSON length:", json.length);
|
|
28
20
|
logExample("wallet-offline.ts", "encryptSync", { jsonLength: json.length });
|