@recoillink/cli 0.0.0-stage → 45.0.1

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 (81) hide show
  1. package/LICENSE.md +193 -0
  2. package/README.md +149 -2
  3. package/bundle/154.index.js +462 -0
  4. package/bundle/230.index.js +569 -0
  5. package/bundle/25.index.js +9569 -0
  6. package/bundle/267.index.js +1386 -0
  7. package/bundle/308.index.js +5121 -0
  8. package/bundle/367.index.js +4 -0
  9. package/bundle/369.index.js +3443 -0
  10. package/bundle/529.index.js +3596 -0
  11. package/bundle/576.index.js +36 -0
  12. package/bundle/610.index.js +86 -0
  13. package/bundle/617.index.js +1612 -0
  14. package/bundle/628.index.js +152 -0
  15. package/bundle/633.index.js +86 -0
  16. package/bundle/697.index.js +410 -0
  17. package/bundle/7183ea1c1bf0a5da980d.js +214 -0
  18. package/bundle/748.index.js +672 -0
  19. package/bundle/78.index.js +372 -0
  20. package/bundle/841.index.js +2093 -0
  21. package/bundle/868.index.js +290 -0
  22. package/bundle/902.index.js +173 -0
  23. package/bundle/956.index.js +9901 -0
  24. package/bundle/aleo_wasm.wasm +0 -0
  25. package/bundle/aleo_wasm1.wasm +0 -0
  26. package/bundle/build/Release/bigint_buffer.node +0 -0
  27. package/bundle/file.js +12 -0
  28. package/bundle/index.js +4 -0
  29. package/bundle/package.json +3 -0
  30. package/bundle/worker-pipeline.js +38 -0
  31. package/bundle/worker.js +54 -0
  32. package/bundle/worker1.js +171 -0
  33. package/bundle/worker2.js +19834 -0
  34. package/bundle/worker3.js +19834 -0
  35. package/examples/aleo/core-config.yaml +19 -0
  36. package/examples/ccip/ccip-warp-route.yaml +26 -0
  37. package/examples/ccip/multi-chain-ccip-warp-route.yaml +81 -0
  38. package/examples/chain-config.yaml +42 -0
  39. package/examples/contract-artifacts.yaml +20 -0
  40. package/examples/core-config.yaml +19 -0
  41. package/examples/cosmosnative/core-config.yaml +20 -0
  42. package/examples/cosmosnative/warp-route-deployment.yaml +21 -0
  43. package/examples/crosschain/README.md +31 -0
  44. package/examples/crosschain/cosmosnative/core-config.yaml +69 -0
  45. package/examples/crosschain/ethereum/core-config.yaml +70 -0
  46. package/examples/crosschain/radix/core-config.yaml +96 -0
  47. package/examples/fork/file-transactions.yaml +5 -0
  48. package/examples/fork/timelock-testing.yaml +36 -0
  49. package/examples/fork/warp-route-update.yaml +100 -0
  50. package/examples/hooks.yaml +70 -0
  51. package/examples/ism-advanced.yaml +33 -0
  52. package/examples/ism.yaml +13 -0
  53. package/examples/radix/core-config.yaml +29 -0
  54. package/examples/sealevel/core-config-apply.yaml +7 -0
  55. package/examples/sealevel/core-config-composite-ism.yaml +21 -0
  56. package/examples/sealevel/core-config.yaml +12 -0
  57. package/examples/sealevel/igp-hook-config.yaml +13 -0
  58. package/examples/sealevel/warp-config-routing-message-id-multisig-ism.yaml +21 -0
  59. package/examples/starknet/core-config.yaml +20 -0
  60. package/examples/submit/strategy/file-strategy.yaml +8 -0
  61. package/examples/submit/strategy/gnosis-chain-strategy.yaml +10 -0
  62. package/examples/submit/strategy/gnosis-chain-tx-builder-strategy.yaml +6 -0
  63. package/examples/submit/strategy/gnosis-strategy-avalanche.yaml +4 -0
  64. package/examples/submit/strategy/gnosis-tx-builder-ica-strategy.yaml +20 -0
  65. package/examples/submit/strategy/ica-timelock-strategy.yaml +15 -0
  66. package/examples/submit/strategy/impersonated-account-strategy.yaml +4 -0
  67. package/examples/submit/strategy/json-rpc-chain-strategy.yaml +8 -0
  68. package/examples/submit/strategy/json-rpc-ica-strategy.yaml +13 -0
  69. package/examples/submit/strategy/json-rpc-strategy.yaml +3 -0
  70. package/examples/submit/strategy/json-rpc-timelock-strategy.yaml +17 -0
  71. package/examples/submit/strategy/starknet-json-rpc-chain-strategy.yaml +11 -0
  72. package/examples/submit/transactions/anvil-transactions.yaml +10 -0
  73. package/examples/submit/transactions/avalanche-transactions.json +8 -0
  74. package/examples/submit/transactions/sepolia-transactions.json +8 -0
  75. package/examples/tron-core-config.yaml +18 -0
  76. package/examples/warp-base.yaml +24 -0
  77. package/examples/warp-config-predicate-mainnet.yaml +14 -0
  78. package/examples/warp-deployed-predicate-mainnet.yaml +19 -0
  79. package/examples/warp-ethereum.yaml +19 -0
  80. package/examples/warp-route-deployment.yaml +21 -0
  81. package/package.json +117 -3
@@ -0,0 +1,290 @@
1
+ export const id = 868;
2
+ export const ids = [868];
3
+ export const modules = {
4
+
5
+ /***/ 62868:
6
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
7
+
8
+ // ESM COMPAT FLAG
9
+ __webpack_require__.r(__webpack_exports__);
10
+
11
+ // EXPORTS
12
+ __webpack_require__.d(__webpack_exports__, {
13
+ signWithApiKey: () => (/* binding */ signWithApiKey)
14
+ });
15
+
16
+ // EXTERNAL MODULE: ../../node_modules/.pnpm/@noble+curves@1.9.7/node_modules/@noble/curves/esm/p256.js + 3 modules
17
+ var p256 = __webpack_require__(8617);
18
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/sha256-uint8array@0.10.7/node_modules/sha256-uint8array/dist/sha256-uint8array.mjs
19
+ /**
20
+ * sha256-uint8array.ts
21
+ */
22
+ // first 32 bits of the fractional parts of the cube roots of the first 64 primes 2..311
23
+ const K = [
24
+ 0x428a2f98 | 0, 0x71374491 | 0, 0xb5c0fbcf | 0, 0xe9b5dba5 | 0,
25
+ 0x3956c25b | 0, 0x59f111f1 | 0, 0x923f82a4 | 0, 0xab1c5ed5 | 0,
26
+ 0xd807aa98 | 0, 0x12835b01 | 0, 0x243185be | 0, 0x550c7dc3 | 0,
27
+ 0x72be5d74 | 0, 0x80deb1fe | 0, 0x9bdc06a7 | 0, 0xc19bf174 | 0,
28
+ 0xe49b69c1 | 0, 0xefbe4786 | 0, 0x0fc19dc6 | 0, 0x240ca1cc | 0,
29
+ 0x2de92c6f | 0, 0x4a7484aa | 0, 0x5cb0a9dc | 0, 0x76f988da | 0,
30
+ 0x983e5152 | 0, 0xa831c66d | 0, 0xb00327c8 | 0, 0xbf597fc7 | 0,
31
+ 0xc6e00bf3 | 0, 0xd5a79147 | 0, 0x06ca6351 | 0, 0x14292967 | 0,
32
+ 0x27b70a85 | 0, 0x2e1b2138 | 0, 0x4d2c6dfc | 0, 0x53380d13 | 0,
33
+ 0x650a7354 | 0, 0x766a0abb | 0, 0x81c2c92e | 0, 0x92722c85 | 0,
34
+ 0xa2bfe8a1 | 0, 0xa81a664b | 0, 0xc24b8b70 | 0, 0xc76c51a3 | 0,
35
+ 0xd192e819 | 0, 0xd6990624 | 0, 0xf40e3585 | 0, 0x106aa070 | 0,
36
+ 0x19a4c116 | 0, 0x1e376c08 | 0, 0x2748774c | 0, 0x34b0bcb5 | 0,
37
+ 0x391c0cb3 | 0, 0x4ed8aa4a | 0, 0x5b9cca4f | 0, 0x682e6ff3 | 0,
38
+ 0x748f82ee | 0, 0x78a5636f | 0, 0x84c87814 | 0, 0x8cc70208 | 0,
39
+ 0x90befffa | 0, 0xa4506ceb | 0, 0xbef9a3f7 | 0, 0xc67178f2 | 0,
40
+ ];
41
+ const algorithms = {
42
+ sha256: 1,
43
+ };
44
+ function createHash(algorithm) {
45
+ if (algorithm && !algorithms[algorithm] && !algorithms[algorithm.toLowerCase()]) {
46
+ throw new Error("Digest method not supported");
47
+ }
48
+ return new Hash();
49
+ }
50
+ class Hash {
51
+ constructor() {
52
+ // first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19
53
+ this.A = 0x6a09e667 | 0;
54
+ this.B = 0xbb67ae85 | 0;
55
+ this.C = 0x3c6ef372 | 0;
56
+ this.D = 0xa54ff53a | 0;
57
+ this.E = 0x510e527f | 0;
58
+ this.F = 0x9b05688c | 0;
59
+ this.G = 0x1f83d9ab | 0;
60
+ this.H = 0x5be0cd19 | 0;
61
+ this._size = 0;
62
+ this._sp = 0; // surrogate pair
63
+ if (!sharedBuffer || sharedOffset >= 8000 /* N.allocTotal */) {
64
+ sharedBuffer = new ArrayBuffer(8000 /* N.allocTotal */);
65
+ sharedOffset = 0;
66
+ }
67
+ this._byte = new Uint8Array(sharedBuffer, sharedOffset, 80 /* N.allocBytes */);
68
+ this._word = new Int32Array(sharedBuffer, sharedOffset, 20 /* N.allocWords */);
69
+ sharedOffset += 80 /* N.allocBytes */;
70
+ }
71
+ update(data) {
72
+ // data: string
73
+ if ("string" === typeof data) {
74
+ return this._utf8(data);
75
+ }
76
+ // data: undefined
77
+ if (data == null) {
78
+ throw new TypeError("Invalid type: " + typeof data);
79
+ }
80
+ const byteOffset = data.byteOffset;
81
+ const length = data.byteLength;
82
+ let blocks = (length / 64 /* N.inputBytes */) | 0;
83
+ let offset = 0;
84
+ // longer than 1 block
85
+ if (blocks && !(byteOffset & 3) && !(this._size % 64 /* N.inputBytes */)) {
86
+ const block = new Int32Array(data.buffer, byteOffset, blocks * 16 /* N.inputWords */);
87
+ while (blocks--) {
88
+ this._int32(block, offset >> 2);
89
+ offset += 64 /* N.inputBytes */;
90
+ }
91
+ this._size += offset;
92
+ }
93
+ // data: TypedArray | DataView
94
+ const BYTES_PER_ELEMENT = data.BYTES_PER_ELEMENT;
95
+ if (BYTES_PER_ELEMENT !== 1 && data.buffer) {
96
+ const rest = new Uint8Array(data.buffer, byteOffset + offset, length - offset);
97
+ return this._uint8(rest);
98
+ }
99
+ // no more bytes
100
+ if (offset === length)
101
+ return this;
102
+ // data: Uint8Array | Int8Array
103
+ return this._uint8(data, offset);
104
+ }
105
+ _uint8(data, offset) {
106
+ const { _byte, _word } = this;
107
+ const length = data.length;
108
+ offset = offset | 0;
109
+ while (offset < length) {
110
+ const start = this._size % 64 /* N.inputBytes */;
111
+ let index = start;
112
+ while (offset < length && index < 64 /* N.inputBytes */) {
113
+ _byte[index++] = data[offset++];
114
+ }
115
+ if (index >= 64 /* N.inputBytes */) {
116
+ this._int32(_word);
117
+ }
118
+ this._size += index - start;
119
+ }
120
+ return this;
121
+ }
122
+ _utf8(text) {
123
+ const { _byte, _word } = this;
124
+ const length = text.length;
125
+ let surrogate = this._sp;
126
+ for (let offset = 0; offset < length;) {
127
+ const start = this._size % 64 /* N.inputBytes */;
128
+ let index = start;
129
+ while (offset < length && index < 64 /* N.inputBytes */) {
130
+ let code = text.charCodeAt(offset++) | 0;
131
+ if (code < 0x80) {
132
+ // ASCII characters
133
+ _byte[index++] = code;
134
+ }
135
+ else if (code < 0x800) {
136
+ // 2 bytes
137
+ _byte[index++] = 0xC0 | (code >>> 6);
138
+ _byte[index++] = 0x80 | (code & 0x3F);
139
+ }
140
+ else if (code < 0xD800 || code > 0xDFFF) {
141
+ // 3 bytes
142
+ _byte[index++] = 0xE0 | (code >>> 12);
143
+ _byte[index++] = 0x80 | ((code >>> 6) & 0x3F);
144
+ _byte[index++] = 0x80 | (code & 0x3F);
145
+ }
146
+ else if (surrogate) {
147
+ // 4 bytes - surrogate pair
148
+ code = ((surrogate & 0x3FF) << 10) + (code & 0x3FF) + 0x10000;
149
+ _byte[index++] = 0xF0 | (code >>> 18);
150
+ _byte[index++] = 0x80 | ((code >>> 12) & 0x3F);
151
+ _byte[index++] = 0x80 | ((code >>> 6) & 0x3F);
152
+ _byte[index++] = 0x80 | (code & 0x3F);
153
+ surrogate = 0;
154
+ }
155
+ else {
156
+ surrogate = code;
157
+ }
158
+ }
159
+ if (index >= 64 /* N.inputBytes */) {
160
+ this._int32(_word);
161
+ _word[0] = _word[16 /* N.inputWords */];
162
+ }
163
+ this._size += index - start;
164
+ }
165
+ this._sp = surrogate;
166
+ return this;
167
+ }
168
+ _int32(data, offset) {
169
+ let { A, B, C, D, E, F, G, H } = this;
170
+ let i = 0;
171
+ offset = offset | 0;
172
+ while (i < 16 /* N.inputWords */) {
173
+ W[i++] = swap32(data[offset++]);
174
+ }
175
+ for (i = 16 /* N.inputWords */; i < 64 /* N.workWords */; i++) {
176
+ W[i] = (gamma1(W[i - 2]) + W[i - 7] + gamma0(W[i - 15]) + W[i - 16]) | 0;
177
+ }
178
+ for (i = 0; i < 64 /* N.workWords */; i++) {
179
+ const T1 = (H + sigma1(E) + ch(E, F, G) + K[i] + W[i]) | 0;
180
+ const T2 = (sigma0(A) + maj(A, B, C)) | 0;
181
+ H = G;
182
+ G = F;
183
+ F = E;
184
+ E = (D + T1) | 0;
185
+ D = C;
186
+ C = B;
187
+ B = A;
188
+ A = (T1 + T2) | 0;
189
+ }
190
+ this.A = (A + this.A) | 0;
191
+ this.B = (B + this.B) | 0;
192
+ this.C = (C + this.C) | 0;
193
+ this.D = (D + this.D) | 0;
194
+ this.E = (E + this.E) | 0;
195
+ this.F = (F + this.F) | 0;
196
+ this.G = (G + this.G) | 0;
197
+ this.H = (H + this.H) | 0;
198
+ }
199
+ digest(encoding) {
200
+ const { _byte, _word } = this;
201
+ let i = (this._size % 64 /* N.inputBytes */) | 0;
202
+ _byte[i++] = 0x80;
203
+ // pad 0 for current word
204
+ while (i & 3) {
205
+ _byte[i++] = 0;
206
+ }
207
+ i >>= 2;
208
+ if (i > 14 /* N.highIndex */) {
209
+ while (i < 16 /* N.inputWords */) {
210
+ _word[i++] = 0;
211
+ }
212
+ i = 0;
213
+ this._int32(_word);
214
+ }
215
+ // pad 0 for rest words
216
+ while (i < 16 /* N.inputWords */) {
217
+ _word[i++] = 0;
218
+ }
219
+ // input size
220
+ const bits64 = this._size * 8;
221
+ const low32 = (bits64 & 0xffffffff) >>> 0;
222
+ const high32 = (bits64 - low32) / 0x100000000;
223
+ if (high32)
224
+ _word[14 /* N.highIndex */] = swap32(high32);
225
+ if (low32)
226
+ _word[15 /* N.lowIndex */] = swap32(low32);
227
+ this._int32(_word);
228
+ return (encoding === "hex") ? this._hex() : this._bin();
229
+ }
230
+ _hex() {
231
+ const { A, B, C, D, E, F, G, H } = this;
232
+ return hex32(A) + hex32(B) + hex32(C) + hex32(D) + hex32(E) + hex32(F) + hex32(G) + hex32(H);
233
+ }
234
+ _bin() {
235
+ const { A, B, C, D, E, F, G, H, _byte, _word } = this;
236
+ _word[0] = swap32(A);
237
+ _word[1] = swap32(B);
238
+ _word[2] = swap32(C);
239
+ _word[3] = swap32(D);
240
+ _word[4] = swap32(E);
241
+ _word[5] = swap32(F);
242
+ _word[6] = swap32(G);
243
+ _word[7] = swap32(H);
244
+ return _byte.slice(0, 32);
245
+ }
246
+ }
247
+ const W = new Int32Array(64 /* N.workWords */);
248
+ let sharedBuffer;
249
+ let sharedOffset = 0;
250
+ const hex32 = num => (num + 0x100000000).toString(16).substr(-8);
251
+ const swapLE = (c => (((c << 24) & 0xff000000) | ((c << 8) & 0xff0000) | ((c >> 8) & 0xff00) | ((c >> 24) & 0xff)));
252
+ const swapBE = (c => c);
253
+ const swap32 = isBE() ? swapBE : swapLE;
254
+ const ch = (x, y, z) => (z ^ (x & (y ^ z)));
255
+ const maj = (x, y, z) => ((x & y) | (z & (x | y)));
256
+ const sigma0 = x => ((x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10));
257
+ const sigma1 = x => ((x >>> 6 | x << 26) ^ (x >>> 11 | x << 21) ^ (x >>> 25 | x << 7));
258
+ const gamma0 = x => ((x >>> 7 | x << 25) ^ (x >>> 18 | x << 14) ^ (x >>> 3));
259
+ const gamma1 = x => ((x >>> 17 | x << 15) ^ (x >>> 19 | x << 13) ^ (x >>> 10));
260
+ function isBE() {
261
+ const buf = new Uint8Array(new Uint16Array([0xFEFF]).buffer); // BOM
262
+ return (buf[0] === 0xFE);
263
+ }
264
+
265
+ // EXTERNAL MODULE: ../../node_modules/.pnpm/@turnkey+encoding@0.6.0/node_modules/@turnkey/encoding/dist/index.mjs + 6 modules
266
+ var dist = __webpack_require__(56390);
267
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@turnkey+api-key-stamper@0.5.0/node_modules/@turnkey/api-key-stamper/dist/purejs.mjs
268
+
269
+
270
+
271
+
272
+ const signWithApiKey = async (input) => {
273
+ const publicKey = p256.p256.getPublicKey(input.privateKey, true);
274
+ // Public key in the usual 02 or 03 + 64 hex digits
275
+ const publicKeyString = (0,dist/* uint8ArrayToHexString */.pD)(publicKey);
276
+ if (publicKeyString != input.publicKey) {
277
+ throw new Error(`Bad API key. Expected to get public key ${input.publicKey}, got ${publicKeyString}`);
278
+ }
279
+ const hash = createHash().update(input.content).digest();
280
+ const signature = p256.p256.sign(hash, input.privateKey);
281
+ return signature.toDERHex();
282
+ };
283
+
284
+
285
+ //# sourceMappingURL=purejs.mjs.map
286
+
287
+
288
+ /***/ })
289
+
290
+ };
@@ -0,0 +1,173 @@
1
+ export const id = 902;
2
+ export const ids = [902];
3
+ export const modules = {
4
+
5
+ /***/ 32902:
6
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
7
+
8
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
+ /* harmony export */ hashMessage: () => (/* reexport safe */ _utils_signature_hashMessage_js__WEBPACK_IMPORTED_MODULE_0__.A),
10
+ /* harmony export */ recoverPublicKey: () => (/* reexport safe */ _utils_signature_recoverPublicKey_js__WEBPACK_IMPORTED_MODULE_1__.j)
11
+ /* harmony export */ });
12
+ /* harmony import */ var _utils_signature_hashMessage_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29473);
13
+ /* harmony import */ var _utils_signature_recoverPublicKey_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39149);
14
+ // biome-ignore lint/performance/noBarrelFile: entrypoint module
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+ //# sourceMappingURL=index.js.map
170
+
171
+ /***/ })
172
+
173
+ };