@t2000/cli 0.22.26 → 0.23.0
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.md +11 -97
- package/dist/{ccip-JEEJV65M.js → ccip-XP27NGI7.js} +3 -3
- package/dist/{chunk-A5X4KG7U.js → chunk-3I6VJOM6.js} +210 -970
- package/dist/chunk-3I6VJOM6.js.map +1 -0
- package/dist/chunk-4N76GQCL.js +35382 -0
- package/dist/chunk-4N76GQCL.js.map +1 -0
- package/dist/{chunk-XOAZJ42V.js → chunk-DWOZSUBE.js} +588 -584
- package/dist/{chunk-XOAZJ42V.js.map → chunk-DWOZSUBE.js.map} +1 -1
- package/dist/chunk-EI3GHTKX.js +968 -0
- package/dist/chunk-EI3GHTKX.js.map +1 -0
- package/dist/{chunk-EEPD7SHV.js → chunk-TYYJRUQI.js} +15755 -15918
- package/dist/chunk-TYYJRUQI.js.map +1 -0
- package/dist/client-5KJQTN5X.js +84 -0
- package/dist/client-5KJQTN5X.js.map +1 -0
- package/dist/{client-R3NRAXMD.js → client-IXUBQ3HM.js} +334 -638
- package/dist/client-IXUBQ3HM.js.map +1 -0
- package/dist/{dist-NBWIWHHS.js → dist-E7HUP73Q.js} +5 -29
- package/dist/{dist-KJM2NT74.js → dist-W4Q4YXD7.js} +4200 -603
- package/dist/dist-W4Q4YXD7.js.map +1 -0
- package/dist/index.js +29 -1016
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
- package/dist/chunk-3WKGZRWT.js +0 -77733
- package/dist/chunk-3WKGZRWT.js.map +0 -1
- package/dist/chunk-77SWBATH.js +0 -204
- package/dist/chunk-77SWBATH.js.map +0 -1
- package/dist/chunk-A5X4KG7U.js.map +0 -1
- package/dist/chunk-EEPD7SHV.js.map +0 -1
- package/dist/client-CK5OR2TP.js +0 -746
- package/dist/client-CK5OR2TP.js.map +0 -1
- package/dist/client-R3NRAXMD.js.map +0 -1
- package/dist/dist-KJM2NT74.js.map +0 -1
- /package/dist/{ccip-JEEJV65M.js.map → ccip-XP27NGI7.js.map} +0 -0
- /package/dist/{dist-NBWIWHHS.js.map → dist-E7HUP73Q.js.map} +0 -0
|
@@ -91,12 +91,11 @@ import {
|
|
|
91
91
|
erc6492SignatureValidatorByteCode,
|
|
92
92
|
extract,
|
|
93
93
|
formatAbiItem,
|
|
94
|
-
formatAbiParameters,
|
|
95
94
|
formatEther,
|
|
96
95
|
formatGwei,
|
|
97
96
|
formatTransactionRequest,
|
|
98
|
-
from as
|
|
99
|
-
from2 as
|
|
97
|
+
from as from3,
|
|
98
|
+
from2 as from4,
|
|
100
99
|
fromBoolean,
|
|
101
100
|
fromBytes,
|
|
102
101
|
fromHex as fromHex2,
|
|
@@ -124,7 +123,6 @@ import {
|
|
|
124
123
|
padHex,
|
|
125
124
|
padLeft,
|
|
126
125
|
padRight,
|
|
127
|
-
parseAbiParameters,
|
|
128
126
|
parseAccount,
|
|
129
127
|
prettyPrint,
|
|
130
128
|
random,
|
|
@@ -156,376 +154,80 @@ import {
|
|
|
156
154
|
validate,
|
|
157
155
|
validate2,
|
|
158
156
|
withResolvers
|
|
159
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-3I6VJOM6.js";
|
|
160
158
|
import {
|
|
161
159
|
AbiParameters_exports,
|
|
162
160
|
Base64_exports,
|
|
163
161
|
BaseError,
|
|
164
162
|
Bytes_exports,
|
|
163
|
+
Expires_exports,
|
|
165
164
|
Hash_exports,
|
|
166
165
|
Hex_exports,
|
|
167
|
-
Json_exports,
|
|
168
166
|
Signature_exports,
|
|
169
167
|
_enum,
|
|
170
168
|
_minLength,
|
|
171
|
-
|
|
169
|
+
amount,
|
|
172
170
|
array,
|
|
173
171
|
assert,
|
|
174
172
|
boolean,
|
|
175
173
|
concat,
|
|
174
|
+
credentialMetaKey,
|
|
176
175
|
custom,
|
|
176
|
+
deserialize,
|
|
177
177
|
discriminatedUnion,
|
|
178
|
-
external_exports,
|
|
179
178
|
from,
|
|
179
|
+
from2,
|
|
180
180
|
fromHex,
|
|
181
181
|
fromNumber,
|
|
182
182
|
fromPublicKey,
|
|
183
|
+
fromResponse,
|
|
184
|
+
fromResponseList,
|
|
183
185
|
fromRpc,
|
|
184
186
|
fromString,
|
|
187
|
+
hash,
|
|
185
188
|
isEqual,
|
|
186
189
|
literal,
|
|
187
190
|
number,
|
|
188
191
|
object,
|
|
189
192
|
optional,
|
|
193
|
+
paymentRequiredCode,
|
|
190
194
|
pipe,
|
|
191
195
|
record,
|
|
192
196
|
recoverPublicKey,
|
|
193
197
|
secp256r1,
|
|
198
|
+
serialize,
|
|
194
199
|
sha256,
|
|
200
|
+
signature,
|
|
195
201
|
size,
|
|
196
202
|
slice,
|
|
197
203
|
string,
|
|
198
204
|
stringify,
|
|
199
205
|
toBigInt,
|
|
206
|
+
toClient,
|
|
200
207
|
toHex,
|
|
201
208
|
toNumber,
|
|
202
209
|
toRpc,
|
|
203
210
|
toString,
|
|
204
211
|
transform,
|
|
205
212
|
union,
|
|
206
|
-
unknown,
|
|
207
213
|
verify,
|
|
208
214
|
verify2,
|
|
209
215
|
verify3
|
|
210
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-TYYJRUQI.js";
|
|
211
217
|
import {
|
|
212
218
|
secp256k1
|
|
213
219
|
} from "./chunk-NGS6K3I3.js";
|
|
214
220
|
import {
|
|
215
|
-
|
|
216
|
-
|
|
221
|
+
formatAbiParameters,
|
|
222
|
+
keccak_256,
|
|
223
|
+
parseAbiParameters
|
|
224
|
+
} from "./chunk-EI3GHTKX.js";
|
|
217
225
|
import "./chunk-7LGHVVIJ.js";
|
|
218
226
|
import {
|
|
219
227
|
__export
|
|
220
228
|
} from "./chunk-YPWSCLE3.js";
|
|
221
229
|
|
|
222
|
-
// ../../node_modules/.pnpm/
|
|
223
|
-
var Expires_exports = {};
|
|
224
|
-
__export(Expires_exports, {
|
|
225
|
-
days: () => days,
|
|
226
|
-
hours: () => hours,
|
|
227
|
-
minutes: () => minutes,
|
|
228
|
-
months: () => months,
|
|
229
|
-
seconds: () => seconds,
|
|
230
|
-
weeks: () => weeks,
|
|
231
|
-
years: () => years
|
|
232
|
-
});
|
|
233
|
-
function days(n) {
|
|
234
|
-
return new Date(Date.now() + n * 24 * 60 * 60 * 1e3).toISOString();
|
|
235
|
-
}
|
|
236
|
-
function hours(n) {
|
|
237
|
-
return new Date(Date.now() + n * 60 * 60 * 1e3).toISOString();
|
|
238
|
-
}
|
|
239
|
-
function minutes(n) {
|
|
240
|
-
return new Date(Date.now() + n * 60 * 1e3).toISOString();
|
|
241
|
-
}
|
|
242
|
-
function months(n) {
|
|
243
|
-
return new Date(Date.now() + n * 30 * 24 * 60 * 60 * 1e3).toISOString();
|
|
244
|
-
}
|
|
245
|
-
function seconds(n) {
|
|
246
|
-
return new Date(Date.now() + n * 1e3).toISOString();
|
|
247
|
-
}
|
|
248
|
-
function weeks(n) {
|
|
249
|
-
return new Date(Date.now() + n * 7 * 24 * 60 * 60 * 1e3).toISOString();
|
|
250
|
-
}
|
|
251
|
-
function years(n) {
|
|
252
|
-
return new Date(Date.now() + n * 365 * 24 * 60 * 60 * 1e3).toISOString();
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.25.76__express@5.2.1_hono@4.12.9_open_8aabd0282577a5490f679a88cca7000d/node_modules/mppx/dist/PaymentRequest.js
|
|
256
|
-
function deserialize(encoded) {
|
|
257
|
-
const json = Base64_exports.toString(encoded);
|
|
258
|
-
return JSON.parse(json);
|
|
259
|
-
}
|
|
260
|
-
function serialize(request) {
|
|
261
|
-
const json = Json_exports.canonicalize(request);
|
|
262
|
-
return Base64_exports.fromString(json, { pad: false, url: true });
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.25.76__express@5.2.1_hono@4.12.9_open_8aabd0282577a5490f679a88cca7000d/node_modules/mppx/dist/zod.js
|
|
266
|
-
function amount() {
|
|
267
|
-
return external_exports.string().check(external_exports.regex(/^\d+(\.\d+)?$/, "Invalid amount"));
|
|
268
|
-
}
|
|
269
|
-
function datetime() {
|
|
270
|
-
return external_exports.string().check(external_exports.regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/, "Invalid ISO 8601 datetime"));
|
|
271
|
-
}
|
|
272
|
-
function hash() {
|
|
273
|
-
return external_exports.string().check(external_exports.regex(/^0x[0-9a-fA-F]{64}$/, "Invalid hash"));
|
|
274
|
-
}
|
|
275
|
-
function signature() {
|
|
276
|
-
return external_exports.string().check(external_exports.regex(/^0x[0-9a-fA-F]+$/, "Invalid signature"));
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.25.76__express@5.2.1_hono@4.12.9_open_8aabd0282577a5490f679a88cca7000d/node_modules/mppx/dist/Challenge.js
|
|
280
|
-
var Schema = object({
|
|
281
|
-
/** Optional human-readable description of the payment. */
|
|
282
|
-
description: optional(string()),
|
|
283
|
-
/** Optional digest of the request body (format: "sha-256=base64hash"). */
|
|
284
|
-
digest: optional(string().check(_regex(/^sha-256=/, "Invalid digest format"))),
|
|
285
|
-
/** Optional expiration timestamp (ISO 8601). */
|
|
286
|
-
expires: optional(datetime()),
|
|
287
|
-
/** Unique challenge identifier (HMAC-bound). */
|
|
288
|
-
id: string(),
|
|
289
|
-
/** Intent type (e.g., "charge", "session"). */
|
|
290
|
-
intent: string(),
|
|
291
|
-
/** Payment method (e.g., "tempo", "stripe"). */
|
|
292
|
-
method: string(),
|
|
293
|
-
/** Optional server-defined correlation data. Flat string-to-string map; clients MUST NOT modify. */
|
|
294
|
-
opaque: optional(record(string(), string())),
|
|
295
|
-
/** Server realm (e.g., hostname). */
|
|
296
|
-
realm: string(),
|
|
297
|
-
/** Method-specific request data. */
|
|
298
|
-
request: record(string(), unknown())
|
|
299
|
-
});
|
|
300
|
-
function from4(parameters, options) {
|
|
301
|
-
void options;
|
|
302
|
-
const { description, digest, meta, method: methodName, intent, realm, request, secretKey } = parameters;
|
|
303
|
-
const expires = parameters.expires;
|
|
304
|
-
const id = secretKey ? computeId({ ...parameters, expires, ...meta && { opaque: meta } }, { secretKey }) : parameters.id;
|
|
305
|
-
return Schema.parse({
|
|
306
|
-
id,
|
|
307
|
-
realm,
|
|
308
|
-
method: methodName,
|
|
309
|
-
intent,
|
|
310
|
-
request,
|
|
311
|
-
...description && { description },
|
|
312
|
-
...digest && { digest },
|
|
313
|
-
...expires && { expires },
|
|
314
|
-
...meta && { opaque: meta }
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
function deserialize2(value, options) {
|
|
318
|
-
const params = extractPaymentAuthParams(value);
|
|
319
|
-
if (!params)
|
|
320
|
-
throw new Error("Missing Payment scheme.");
|
|
321
|
-
const result = parseAuthParams(params);
|
|
322
|
-
const { request, opaque, ...rest } = result;
|
|
323
|
-
if (!request)
|
|
324
|
-
throw new Error("Missing request parameter.");
|
|
325
|
-
if (rest.method && !/^[a-z][a-z0-9:_-]*$/.test(rest.method))
|
|
326
|
-
throw new Error(`Invalid method: "${rest.method}". Must be lowercase per spec.`);
|
|
327
|
-
return from4({
|
|
328
|
-
...rest,
|
|
329
|
-
request: deserialize(request),
|
|
330
|
-
...opaque && { meta: deserialize(opaque) }
|
|
331
|
-
}, options);
|
|
332
|
-
}
|
|
333
|
-
function extractPaymentAuthParams(header) {
|
|
334
|
-
const token = "Payment";
|
|
335
|
-
let inQuotes = false;
|
|
336
|
-
let escaped = false;
|
|
337
|
-
for (let i = 0; i < header.length; i++) {
|
|
338
|
-
const char = header[i];
|
|
339
|
-
if (inQuotes) {
|
|
340
|
-
if (escaped)
|
|
341
|
-
escaped = false;
|
|
342
|
-
else if (char === "\\")
|
|
343
|
-
escaped = true;
|
|
344
|
-
else if (char === '"')
|
|
345
|
-
inQuotes = false;
|
|
346
|
-
continue;
|
|
347
|
-
}
|
|
348
|
-
if (char === '"') {
|
|
349
|
-
inQuotes = true;
|
|
350
|
-
continue;
|
|
351
|
-
}
|
|
352
|
-
if (!startsWithSchemeToken(header, i, token))
|
|
353
|
-
continue;
|
|
354
|
-
const prefix = header.slice(0, i);
|
|
355
|
-
if (prefix.trim() && !prefix.trimEnd().endsWith(","))
|
|
356
|
-
continue;
|
|
357
|
-
let paramsStart = i + token.length;
|
|
358
|
-
while (paramsStart < header.length && /\s/.test(header[paramsStart] ?? ""))
|
|
359
|
-
paramsStart++;
|
|
360
|
-
return header.slice(paramsStart);
|
|
361
|
-
}
|
|
362
|
-
return null;
|
|
363
|
-
}
|
|
364
|
-
function parseAuthParams(input) {
|
|
365
|
-
const result = {};
|
|
366
|
-
let i = 0;
|
|
367
|
-
while (i < input.length) {
|
|
368
|
-
while (i < input.length && /[\s,]/.test(input[i] ?? ""))
|
|
369
|
-
i++;
|
|
370
|
-
if (i >= input.length)
|
|
371
|
-
break;
|
|
372
|
-
const keyStart = i;
|
|
373
|
-
while (i < input.length && /[A-Za-z0-9_-]/.test(input[i] ?? ""))
|
|
374
|
-
i++;
|
|
375
|
-
const key = input.slice(keyStart, i);
|
|
376
|
-
if (!key)
|
|
377
|
-
throw new Error("Malformed auth-param.");
|
|
378
|
-
while (i < input.length && /\s/.test(input[i] ?? ""))
|
|
379
|
-
i++;
|
|
380
|
-
if (input[i] !== "=")
|
|
381
|
-
break;
|
|
382
|
-
i++;
|
|
383
|
-
while (i < input.length && /\s/.test(input[i] ?? ""))
|
|
384
|
-
i++;
|
|
385
|
-
const [value, nextIndex] = readAuthParamValue(input, i);
|
|
386
|
-
i = nextIndex;
|
|
387
|
-
if (key in result)
|
|
388
|
-
throw new Error(`Duplicate parameter: ${key}`);
|
|
389
|
-
result[key] = value;
|
|
390
|
-
}
|
|
391
|
-
return result;
|
|
392
|
-
}
|
|
393
|
-
function readAuthParamValue(input, start) {
|
|
394
|
-
if (input[start] === '"')
|
|
395
|
-
return readQuotedAuthParamValue(input, start + 1);
|
|
396
|
-
let i = start;
|
|
397
|
-
while (i < input.length && input[i] !== ",")
|
|
398
|
-
i++;
|
|
399
|
-
return [input.slice(start, i).trim(), i];
|
|
400
|
-
}
|
|
401
|
-
function readQuotedAuthParamValue(input, start) {
|
|
402
|
-
let i = start;
|
|
403
|
-
let value = "";
|
|
404
|
-
let escaped = false;
|
|
405
|
-
while (i < input.length) {
|
|
406
|
-
const char = input[i];
|
|
407
|
-
i++;
|
|
408
|
-
if (escaped) {
|
|
409
|
-
value += char;
|
|
410
|
-
escaped = false;
|
|
411
|
-
continue;
|
|
412
|
-
}
|
|
413
|
-
if (char === "\\") {
|
|
414
|
-
escaped = true;
|
|
415
|
-
continue;
|
|
416
|
-
}
|
|
417
|
-
if (char === '"')
|
|
418
|
-
return [value, i];
|
|
419
|
-
value += char;
|
|
420
|
-
}
|
|
421
|
-
throw new Error("Unterminated quoted-string.");
|
|
422
|
-
}
|
|
423
|
-
function startsWithSchemeToken(value, index2, token) {
|
|
424
|
-
if (!value.slice(index2).toLowerCase().startsWith(token.toLowerCase()))
|
|
425
|
-
return false;
|
|
426
|
-
const next = value[index2 + token.length];
|
|
427
|
-
return Boolean(next && /\s/.test(next));
|
|
428
|
-
}
|
|
429
|
-
function fromHeaders(headers, options) {
|
|
430
|
-
const header = headers.get("WWW-Authenticate");
|
|
431
|
-
if (!header)
|
|
432
|
-
throw new Error("Missing WWW-Authenticate header.");
|
|
433
|
-
return deserialize2(header, options);
|
|
434
|
-
}
|
|
435
|
-
function fromResponse(response, options) {
|
|
436
|
-
if (response.status !== 402)
|
|
437
|
-
throw new Error("Response status is not 402.");
|
|
438
|
-
return fromHeaders(response.headers, options);
|
|
439
|
-
}
|
|
440
|
-
function fromResponseList(response, options) {
|
|
441
|
-
if (response.status !== 402)
|
|
442
|
-
throw new Error("Response status is not 402.");
|
|
443
|
-
return fromHeadersList(response.headers, options);
|
|
444
|
-
}
|
|
445
|
-
function fromHeadersList(headers, options) {
|
|
446
|
-
const header = headers.get("WWW-Authenticate");
|
|
447
|
-
if (!header)
|
|
448
|
-
throw new Error("Missing WWW-Authenticate header.");
|
|
449
|
-
return deserializeList(header, options);
|
|
450
|
-
}
|
|
451
|
-
function deserializeList(value, options) {
|
|
452
|
-
const starts = [];
|
|
453
|
-
for (const match of value.matchAll(/Payment\s+/gi)) {
|
|
454
|
-
starts.push(match.index);
|
|
455
|
-
}
|
|
456
|
-
if (starts.length === 0)
|
|
457
|
-
throw new Error("No Payment schemes found.");
|
|
458
|
-
return starts.map((start, i) => {
|
|
459
|
-
const end = i + 1 < starts.length ? starts[i + 1] : value.length;
|
|
460
|
-
const chunk = value.slice(start, end).replace(/,\s*$/, "");
|
|
461
|
-
return deserialize2(chunk, options);
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
function computeId(challenge, options) {
|
|
465
|
-
const input = [
|
|
466
|
-
challenge.realm,
|
|
467
|
-
challenge.method,
|
|
468
|
-
challenge.intent,
|
|
469
|
-
serialize(challenge.request),
|
|
470
|
-
challenge.expires ?? "",
|
|
471
|
-
challenge.digest ?? "",
|
|
472
|
-
challenge.opaque ? serialize(challenge.opaque) : ""
|
|
473
|
-
].join("|");
|
|
474
|
-
const key = Bytes_exports.fromString(options.secretKey);
|
|
475
|
-
const data = Bytes_exports.fromString(input);
|
|
476
|
-
const mac = Hash_exports.hmac256(key, data, { as: "Bytes" });
|
|
477
|
-
return Base64_exports.fromBytes(mac, { url: true, pad: false });
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.25.76__express@5.2.1_hono@4.12.9_open_8aabd0282577a5490f679a88cca7000d/node_modules/mppx/dist/Credential.js
|
|
481
|
-
function deserialize3(value) {
|
|
482
|
-
const prefixMatch = value.match(/^Payment\s+(.+)$/i);
|
|
483
|
-
if (!prefixMatch?.[1])
|
|
484
|
-
throw new Error("Missing Payment scheme.");
|
|
485
|
-
try {
|
|
486
|
-
const json = Base64_exports.toString(prefixMatch[1]);
|
|
487
|
-
const parsed = JSON.parse(json);
|
|
488
|
-
const challenge = Schema.parse({
|
|
489
|
-
...parsed.challenge,
|
|
490
|
-
request: deserialize(parsed.challenge.request)
|
|
491
|
-
});
|
|
492
|
-
return {
|
|
493
|
-
challenge,
|
|
494
|
-
payload: parsed.payload,
|
|
495
|
-
...parsed.source && { source: parsed.source }
|
|
496
|
-
};
|
|
497
|
-
} catch {
|
|
498
|
-
throw new Error("Invalid base64url or JSON.");
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
function serialize2(credential) {
|
|
502
|
-
const wire = {
|
|
503
|
-
challenge: {
|
|
504
|
-
...credential.challenge,
|
|
505
|
-
request: serialize(credential.challenge.request)
|
|
506
|
-
},
|
|
507
|
-
payload: credential.payload,
|
|
508
|
-
...credential.source && { source: credential.source }
|
|
509
|
-
};
|
|
510
|
-
const json = JSON.stringify(wire);
|
|
511
|
-
const encoded = Base64_exports.fromString(json, { pad: false, url: true });
|
|
512
|
-
return `Payment ${encoded}`;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.25.76__express@5.2.1_hono@4.12.9_open_8aabd0282577a5490f679a88cca7000d/node_modules/mppx/dist/Method.js
|
|
516
|
-
function from5(method) {
|
|
517
|
-
return method;
|
|
518
|
-
}
|
|
519
|
-
function toClient(method, options) {
|
|
520
|
-
const { context, createCredential } = options;
|
|
521
|
-
return {
|
|
522
|
-
...method,
|
|
523
|
-
context,
|
|
524
|
-
createCredential
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/getAction.js
|
|
230
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/getAction.js
|
|
529
231
|
function getAction(client, actionFn, name) {
|
|
530
232
|
const action_implicit = client[actionFn.name];
|
|
531
233
|
if (typeof action_implicit === "function")
|
|
@@ -536,7 +238,7 @@ function getAction(client, actionFn, name) {
|
|
|
536
238
|
return (params) => actionFn(client, params);
|
|
537
239
|
}
|
|
538
240
|
|
|
539
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
241
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/log.js
|
|
540
242
|
var FilterTypeNotSupportedError = class extends BaseError2 {
|
|
541
243
|
constructor(type2) {
|
|
542
244
|
super(`Filter type "${type2}" is not supported.`, {
|
|
@@ -545,7 +247,7 @@ var FilterTypeNotSupportedError = class extends BaseError2 {
|
|
|
545
247
|
}
|
|
546
248
|
};
|
|
547
249
|
|
|
548
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
250
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeEventTopics.js
|
|
549
251
|
var docsPath = "/docs/contract/encodeEventTopics";
|
|
550
252
|
function encodeEventTopics(parameters) {
|
|
551
253
|
const { abi, eventName, args } = parameters;
|
|
@@ -582,7 +284,7 @@ function encodeArg({ param, value }) {
|
|
|
582
284
|
return encodeAbiParameters([param], [value]);
|
|
583
285
|
}
|
|
584
286
|
|
|
585
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
287
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/filters/createFilterRequestScope.js
|
|
586
288
|
function createFilterRequestScope(client, { method }) {
|
|
587
289
|
const requestMap = {};
|
|
588
290
|
if (client.transport.type === "fallback")
|
|
@@ -593,7 +295,7 @@ function createFilterRequestScope(client, { method }) {
|
|
|
593
295
|
return ((id) => requestMap[id] || client.request);
|
|
594
296
|
}
|
|
595
297
|
|
|
596
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
298
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/createContractEventFilter.js
|
|
597
299
|
async function createContractEventFilter(client, parameters) {
|
|
598
300
|
const { address, abi, args, eventName, fromBlock, strict, toBlock } = parameters;
|
|
599
301
|
const getRequest = createFilterRequestScope(client, {
|
|
@@ -626,7 +328,7 @@ async function createContractEventFilter(client, parameters) {
|
|
|
626
328
|
};
|
|
627
329
|
}
|
|
628
330
|
|
|
629
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
331
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/errors/getContractError.js
|
|
630
332
|
var EXECUTION_REVERTED_ERROR_CODE = 3;
|
|
631
333
|
function getContractError(err, { abi, address, args, docsPath: docsPath3, functionName, sender }) {
|
|
632
334
|
const error = err instanceof RawContractError ? err : err instanceof BaseError2 ? err.walk((err2) => "data" in err2) || err.walk() : {};
|
|
@@ -655,13 +357,13 @@ function getContractError(err, { abi, address, args, docsPath: docsPath3, functi
|
|
|
655
357
|
});
|
|
656
358
|
}
|
|
657
359
|
|
|
658
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
360
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/accounts/utils/publicKeyToAddress.js
|
|
659
361
|
function publicKeyToAddress(publicKey) {
|
|
660
362
|
const address = keccak256(`0x${publicKey.substring(4)}`).substring(26);
|
|
661
363
|
return checksumAddress(`0x${address}`);
|
|
662
364
|
}
|
|
663
365
|
|
|
664
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
366
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/signature/recoverPublicKey.js
|
|
665
367
|
async function recoverPublicKey2({ hash: hash5, signature: signature2 }) {
|
|
666
368
|
const hashHex = isHex(hash5) ? hash5 : toHex2(hash5);
|
|
667
369
|
const { secp256k1: secp256k12 } = await import("./secp256k1-7EILYOIY.js");
|
|
@@ -692,12 +394,12 @@ function toRecoveryBit(yParityOrV) {
|
|
|
692
394
|
throw new Error("Invalid yParityOrV value");
|
|
693
395
|
}
|
|
694
396
|
|
|
695
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
397
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/signature/recoverAddress.js
|
|
696
398
|
async function recoverAddress({ hash: hash5, signature: signature2 }) {
|
|
697
399
|
return publicKeyToAddress(await recoverPublicKey2({ hash: hash5, signature: signature2 }));
|
|
698
400
|
}
|
|
699
401
|
|
|
700
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
402
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toRlp.js
|
|
701
403
|
function toRlp(bytes, to2 = "hex") {
|
|
702
404
|
const encodable = getEncodable(bytes);
|
|
703
405
|
const cursor = createCursor(new Uint8Array(encodable.length));
|
|
@@ -786,7 +488,7 @@ function getSizeOfLength(length) {
|
|
|
786
488
|
throw new BaseError2("Length is too large.");
|
|
787
489
|
}
|
|
788
490
|
|
|
789
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
491
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/authorization/hashAuthorization.js
|
|
790
492
|
function hashAuthorization(parameters) {
|
|
791
493
|
const { chainId: chainId2, nonce: nonce2, to: to2 } = parameters;
|
|
792
494
|
const address = parameters.contractAddress ?? parameters.address;
|
|
@@ -803,7 +505,7 @@ function hashAuthorization(parameters) {
|
|
|
803
505
|
return hash5;
|
|
804
506
|
}
|
|
805
507
|
|
|
806
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
508
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/authorization/recoverAuthorizationAddress.js
|
|
807
509
|
async function recoverAuthorizationAddress(parameters) {
|
|
808
510
|
const { authorization, signature: signature2 } = parameters;
|
|
809
511
|
return recoverAddress({
|
|
@@ -812,7 +514,7 @@ async function recoverAuthorizationAddress(parameters) {
|
|
|
812
514
|
});
|
|
813
515
|
}
|
|
814
516
|
|
|
815
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
517
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/estimateGas.js
|
|
816
518
|
var EstimateGasExecutionError = class extends BaseError2 {
|
|
817
519
|
constructor(cause, { account, docsPath: docsPath3, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce: nonce2, to: to2, value }) {
|
|
818
520
|
const prettyArgs = prettyPrint({
|
|
@@ -846,7 +548,7 @@ var EstimateGasExecutionError = class extends BaseError2 {
|
|
|
846
548
|
}
|
|
847
549
|
};
|
|
848
550
|
|
|
849
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
551
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/errors/getEstimateGasError.js
|
|
850
552
|
function getEstimateGasError(err, { docsPath: docsPath3, ...args }) {
|
|
851
553
|
const cause = (() => {
|
|
852
554
|
const cause2 = getNodeError(err, args);
|
|
@@ -860,7 +562,7 @@ function getEstimateGasError(err, { docsPath: docsPath3, ...args }) {
|
|
|
860
562
|
});
|
|
861
563
|
}
|
|
862
564
|
|
|
863
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
565
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/fee.js
|
|
864
566
|
var BaseFeeScalarError = class extends BaseError2 {
|
|
865
567
|
constructor() {
|
|
866
568
|
super("`baseFeeMultiplier` must be greater than 1.", {
|
|
@@ -881,7 +583,7 @@ var MaxFeePerGasTooLowError = class extends BaseError2 {
|
|
|
881
583
|
}
|
|
882
584
|
};
|
|
883
585
|
|
|
884
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
586
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/block.js
|
|
885
587
|
var BlockNotFoundError = class extends BaseError2 {
|
|
886
588
|
constructor({ blockHash, blockNumber }) {
|
|
887
589
|
let identifier = "Block";
|
|
@@ -893,7 +595,7 @@ var BlockNotFoundError = class extends BaseError2 {
|
|
|
893
595
|
}
|
|
894
596
|
};
|
|
895
597
|
|
|
896
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
598
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/transaction.js
|
|
897
599
|
var transactionType = {
|
|
898
600
|
"0x0": "legacy",
|
|
899
601
|
"0x1": "eip2930",
|
|
@@ -963,7 +665,7 @@ function formatAuthorizationList(authorizationList) {
|
|
|
963
665
|
}));
|
|
964
666
|
}
|
|
965
667
|
|
|
966
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
668
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/block.js
|
|
967
669
|
function formatBlock(block, _) {
|
|
968
670
|
const transactions = (block.transactions ?? []).map((transaction) => {
|
|
969
671
|
if (typeof transaction === "string")
|
|
@@ -989,7 +691,7 @@ function formatBlock(block, _) {
|
|
|
989
691
|
};
|
|
990
692
|
}
|
|
991
693
|
|
|
992
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
694
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/getBlock.js
|
|
993
695
|
async function getBlock(client, { blockHash, blockNumber, blockTag = client.experimental_blockTag ?? "latest", includeTransactions: includeTransactions_ } = {}) {
|
|
994
696
|
const includeTransactions = includeTransactions_ ?? false;
|
|
995
697
|
const blockNumberHex = blockNumber !== void 0 ? numberToHex(blockNumber) : void 0;
|
|
@@ -1011,7 +713,7 @@ async function getBlock(client, { blockHash, blockNumber, blockTag = client.expe
|
|
|
1011
713
|
return format2(block, "getBlock");
|
|
1012
714
|
}
|
|
1013
715
|
|
|
1014
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
716
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/getGasPrice.js
|
|
1015
717
|
async function getGasPrice(client) {
|
|
1016
718
|
const gasPrice = await client.request({
|
|
1017
719
|
method: "eth_gasPrice"
|
|
@@ -1019,7 +721,7 @@ async function getGasPrice(client) {
|
|
|
1019
721
|
return BigInt(gasPrice);
|
|
1020
722
|
}
|
|
1021
723
|
|
|
1022
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
724
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/estimateMaxPriorityFeePerGas.js
|
|
1023
725
|
async function internal_estimateMaxPriorityFeePerGas(client, args) {
|
|
1024
726
|
const { block: block_, chain = client.chain, request } = args || {};
|
|
1025
727
|
try {
|
|
@@ -1055,7 +757,7 @@ async function internal_estimateMaxPriorityFeePerGas(client, args) {
|
|
|
1055
757
|
}
|
|
1056
758
|
}
|
|
1057
759
|
|
|
1058
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
760
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/estimateFeesPerGas.js
|
|
1059
761
|
async function internal_estimateFeesPerGas(client, args) {
|
|
1060
762
|
const { block: block_, chain = client.chain, request, type: type2 = "eip1559" } = args || {};
|
|
1061
763
|
const baseFeeMultiplier = await (async () => {
|
|
@@ -1105,7 +807,7 @@ async function internal_estimateFeesPerGas(client, args) {
|
|
|
1105
807
|
};
|
|
1106
808
|
}
|
|
1107
809
|
|
|
1108
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
810
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/getTransactionCount.js
|
|
1109
811
|
async function getTransactionCount(client, { address, blockTag = "latest", blockNumber }) {
|
|
1110
812
|
const count = await client.request({
|
|
1111
813
|
method: "eth_getTransactionCount",
|
|
@@ -1119,7 +821,7 @@ async function getTransactionCount(client, { address, blockTag = "latest", block
|
|
|
1119
821
|
return hexToNumber(count);
|
|
1120
822
|
}
|
|
1121
823
|
|
|
1122
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
824
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/blobsToCommitments.js
|
|
1123
825
|
function blobsToCommitments(parameters) {
|
|
1124
826
|
const { kzg } = parameters;
|
|
1125
827
|
const to2 = parameters.to ?? (typeof parameters.blobs[0] === "string" ? "hex" : "bytes");
|
|
@@ -1130,7 +832,7 @@ function blobsToCommitments(parameters) {
|
|
|
1130
832
|
return to2 === "bytes" ? commitments : commitments.map((x) => bytesToHex(x));
|
|
1131
833
|
}
|
|
1132
834
|
|
|
1133
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
835
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/blobsToProofs.js
|
|
1134
836
|
function blobsToProofs(parameters) {
|
|
1135
837
|
const { kzg } = parameters;
|
|
1136
838
|
const to2 = parameters.to ?? (typeof parameters.blobs[0] === "string" ? "hex" : "bytes");
|
|
@@ -1145,7 +847,7 @@ function blobsToProofs(parameters) {
|
|
|
1145
847
|
return to2 === "bytes" ? proofs : proofs.map((x) => bytesToHex(x));
|
|
1146
848
|
}
|
|
1147
849
|
|
|
1148
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
850
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/sha256.js
|
|
1149
851
|
function sha2562(value, to_) {
|
|
1150
852
|
const to2 = to_ || "hex";
|
|
1151
853
|
const bytes = sha256(isHex(value, { strict: false }) ? toBytes(value) : value);
|
|
@@ -1154,7 +856,7 @@ function sha2562(value, to_) {
|
|
|
1154
856
|
return toHex2(bytes);
|
|
1155
857
|
}
|
|
1156
858
|
|
|
1157
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
859
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
|
|
1158
860
|
function commitmentToVersionedHash(parameters) {
|
|
1159
861
|
const { commitment, version: version2 = 1 } = parameters;
|
|
1160
862
|
const to2 = parameters.to ?? (typeof commitment === "string" ? "hex" : "bytes");
|
|
@@ -1163,7 +865,7 @@ function commitmentToVersionedHash(parameters) {
|
|
|
1163
865
|
return to2 === "bytes" ? versionedHash : bytesToHex(versionedHash);
|
|
1164
866
|
}
|
|
1165
867
|
|
|
1166
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
868
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
|
|
1167
869
|
function commitmentsToVersionedHashes(parameters) {
|
|
1168
870
|
const { commitments, version: version2 } = parameters;
|
|
1169
871
|
const to2 = parameters.to ?? (typeof commitments[0] === "string" ? "hex" : "bytes");
|
|
@@ -1178,7 +880,7 @@ function commitmentsToVersionedHashes(parameters) {
|
|
|
1178
880
|
return hashes;
|
|
1179
881
|
}
|
|
1180
882
|
|
|
1181
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
883
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/blob.js
|
|
1182
884
|
var blobsPerTransaction = 6;
|
|
1183
885
|
var bytesPerFieldElement = 32;
|
|
1184
886
|
var fieldElementsPerBlob = 4096;
|
|
@@ -1187,10 +889,10 @@ var maxBytesPerTransaction = bytesPerBlob * blobsPerTransaction - // terminator
|
|
|
1187
889
|
1 - // zero byte (0x00) appended to each field element.
|
|
1188
890
|
1 * fieldElementsPerBlob * blobsPerTransaction;
|
|
1189
891
|
|
|
1190
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
892
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/kzg.js
|
|
1191
893
|
var versionedHashVersionKzg = 1;
|
|
1192
894
|
|
|
1193
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
895
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/blob.js
|
|
1194
896
|
var BlobSizeTooLargeError = class extends BaseError2 {
|
|
1195
897
|
constructor({ maxSize, size: size6 }) {
|
|
1196
898
|
super("Blob size is too large.", {
|
|
@@ -1224,7 +926,7 @@ var InvalidVersionedHashVersionError = class extends BaseError2 {
|
|
|
1224
926
|
}
|
|
1225
927
|
};
|
|
1226
928
|
|
|
1227
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
929
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/toBlobs.js
|
|
1228
930
|
function toBlobs(parameters) {
|
|
1229
931
|
const to2 = parameters.to ?? (typeof parameters.data === "string" ? "hex" : "bytes");
|
|
1230
932
|
const data = typeof parameters.data === "string" ? hexToBytes(parameters.data) : parameters.data;
|
|
@@ -1259,7 +961,7 @@ function toBlobs(parameters) {
|
|
|
1259
961
|
return to2 === "bytes" ? blobs.map((x) => x.bytes) : blobs.map((x) => bytesToHex(x.bytes));
|
|
1260
962
|
}
|
|
1261
963
|
|
|
1262
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
964
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/toBlobSidecars.js
|
|
1263
965
|
function toBlobSidecars(parameters) {
|
|
1264
966
|
const { data, kzg, to: to2 } = parameters;
|
|
1265
967
|
const blobs = parameters.blobs ?? toBlobs({ data, to: to2 });
|
|
@@ -1275,7 +977,7 @@ function toBlobSidecars(parameters) {
|
|
|
1275
977
|
return sidecars;
|
|
1276
978
|
}
|
|
1277
979
|
|
|
1278
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
980
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/getTransactionType.js
|
|
1279
981
|
function getTransactionType(transaction) {
|
|
1280
982
|
if (transaction.type)
|
|
1281
983
|
return transaction.type;
|
|
@@ -1294,7 +996,7 @@ function getTransactionType(transaction) {
|
|
|
1294
996
|
throw new InvalidSerializableTransactionError({ transaction });
|
|
1295
997
|
}
|
|
1296
998
|
|
|
1297
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
999
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/errors/getTransactionError.js
|
|
1298
1000
|
function getTransactionError(err, { docsPath: docsPath3, ...args }) {
|
|
1299
1001
|
const cause = (() => {
|
|
1300
1002
|
const cause2 = getNodeError(err, args);
|
|
@@ -1308,7 +1010,7 @@ function getTransactionError(err, { docsPath: docsPath3, ...args }) {
|
|
|
1308
1010
|
});
|
|
1309
1011
|
}
|
|
1310
1012
|
|
|
1311
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1013
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/getChainId.js
|
|
1312
1014
|
async function getChainId(client) {
|
|
1313
1015
|
const chainIdHex = await client.request({
|
|
1314
1016
|
method: "eth_chainId"
|
|
@@ -1316,7 +1018,7 @@ async function getChainId(client) {
|
|
|
1316
1018
|
return hexToNumber(chainIdHex);
|
|
1317
1019
|
}
|
|
1318
1020
|
|
|
1319
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1021
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/fillTransaction.js
|
|
1320
1022
|
async function fillTransaction(client, parameters) {
|
|
1321
1023
|
const { account = client.account, accessList, authorizationList, chain = client.chain, blobVersionedHashes, blobs, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce: nonce_, nonceManager: nonceManager2, to: to2, type: type2, value, ...rest } = parameters;
|
|
1322
1024
|
const nonce2 = await (async () => {
|
|
@@ -1418,7 +1120,7 @@ async function fillTransaction(client, parameters) {
|
|
|
1418
1120
|
}
|
|
1419
1121
|
}
|
|
1420
1122
|
|
|
1421
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1123
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/prepareTransactionRequest.js
|
|
1422
1124
|
var defaultParameters = [
|
|
1423
1125
|
"blobVersionedHashes",
|
|
1424
1126
|
"chainId",
|
|
@@ -1494,11 +1196,11 @@ async function prepareTransactionRequest(client, args) {
|
|
|
1494
1196
|
return false;
|
|
1495
1197
|
})();
|
|
1496
1198
|
const fillResult = attemptFill ? await getAction(client, fillTransaction, "fillTransaction")({ ...request, nonce: nonce2 }).then((result) => {
|
|
1497
|
-
const { chainId: chainId3, from:
|
|
1199
|
+
const { chainId: chainId3, from: from22, gas: gas2, gasPrice, nonce: nonce3, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, type: type3, ...rest } = result.transaction;
|
|
1498
1200
|
supportsFillTransaction.set(client.uid, true);
|
|
1499
1201
|
return {
|
|
1500
1202
|
...request,
|
|
1501
|
-
...
|
|
1203
|
+
...from22 ? { from: from22 } : {},
|
|
1502
1204
|
...type3 && !request.type ? { type: type3 } : {},
|
|
1503
1205
|
...typeof chainId3 !== "undefined" ? { chainId: chainId3 } : {},
|
|
1504
1206
|
...typeof gas2 !== "undefined" ? { gas: gas2 } : {},
|
|
@@ -1626,7 +1328,7 @@ async function prepareTransactionRequest(client, args) {
|
|
|
1626
1328
|
return request;
|
|
1627
1329
|
}
|
|
1628
1330
|
|
|
1629
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1331
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/estimateGas.js
|
|
1630
1332
|
async function estimateGas(client, args) {
|
|
1631
1333
|
const { account: account_ = client.account, prepare = true } = args;
|
|
1632
1334
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -1696,7 +1398,7 @@ async function estimateGas(client, args) {
|
|
|
1696
1398
|
}
|
|
1697
1399
|
}
|
|
1698
1400
|
|
|
1699
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1401
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/log.js
|
|
1700
1402
|
function formatLog(log, { args, eventName } = {}) {
|
|
1701
1403
|
return {
|
|
1702
1404
|
...log,
|
|
@@ -1710,7 +1412,7 @@ function formatLog(log, { args, eventName } = {}) {
|
|
|
1710
1412
|
};
|
|
1711
1413
|
}
|
|
1712
1414
|
|
|
1713
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1415
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeEventLog.js
|
|
1714
1416
|
var docsPath2 = "/docs/contract/decodeEventLog";
|
|
1715
1417
|
function decodeEventLog(parameters) {
|
|
1716
1418
|
const { abi, data, strict: strict_, topics } = parameters;
|
|
@@ -1797,7 +1499,7 @@ function decodeTopic({ param, value }) {
|
|
|
1797
1499
|
return decodedArg[0];
|
|
1798
1500
|
}
|
|
1799
1501
|
|
|
1800
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1502
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/parseEventLogs.js
|
|
1801
1503
|
function parseEventLogs(parameters) {
|
|
1802
1504
|
const { abi, args, logs, strict = true } = parameters;
|
|
1803
1505
|
const eventName = (() => {
|
|
@@ -1902,7 +1604,7 @@ function includesArgs(parameters) {
|
|
|
1902
1604
|
return false;
|
|
1903
1605
|
}
|
|
1904
1606
|
|
|
1905
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1607
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/getLogs.js
|
|
1906
1608
|
async function getLogs(client, { address, blockHash, fromBlock, toBlock, event, events: events_, args, strict: strict_ } = {}) {
|
|
1907
1609
|
const strict = strict_ ?? false;
|
|
1908
1610
|
const events = events_ ?? (event ? [event] : void 0);
|
|
@@ -1947,7 +1649,7 @@ async function getLogs(client, { address, blockHash, fromBlock, toBlock, event,
|
|
|
1947
1649
|
});
|
|
1948
1650
|
}
|
|
1949
1651
|
|
|
1950
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1652
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/getContractEvents.js
|
|
1951
1653
|
async function getContractEvents(client, parameters) {
|
|
1952
1654
|
const { abi, address, args, blockHash, eventName, fromBlock, toBlock, strict } = parameters;
|
|
1953
1655
|
const event = eventName ? getAbiItem({ abi, name: eventName }) : void 0;
|
|
@@ -1964,7 +1666,7 @@ async function getContractEvents(client, parameters) {
|
|
|
1964
1666
|
});
|
|
1965
1667
|
}
|
|
1966
1668
|
|
|
1967
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1669
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/readContract.js
|
|
1968
1670
|
async function readContract(client, parameters) {
|
|
1969
1671
|
const { abi, address, args, functionName, ...rest } = parameters;
|
|
1970
1672
|
const calldata = encodeFunctionData({
|
|
@@ -1995,7 +1697,7 @@ async function readContract(client, parameters) {
|
|
|
1995
1697
|
}
|
|
1996
1698
|
}
|
|
1997
1699
|
|
|
1998
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1700
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/observe.js
|
|
1999
1701
|
var listenersCache = /* @__PURE__ */ new Map();
|
|
2000
1702
|
var cleanupCache = /* @__PURE__ */ new Map();
|
|
2001
1703
|
var callbackCount = 0;
|
|
@@ -2042,12 +1744,12 @@ function observe(observerId, callbacks, fn) {
|
|
|
2042
1744
|
return unwatch;
|
|
2043
1745
|
}
|
|
2044
1746
|
|
|
2045
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1747
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/wait.js
|
|
2046
1748
|
async function wait(time) {
|
|
2047
1749
|
return new Promise((res) => setTimeout(res, time));
|
|
2048
1750
|
}
|
|
2049
1751
|
|
|
2050
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1752
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/poll.js
|
|
2051
1753
|
function poll(fn, { emitOnBegin, initialWaitTime, interval }) {
|
|
2052
1754
|
let active = true;
|
|
2053
1755
|
const unwatch = () => active = false;
|
|
@@ -2070,7 +1772,7 @@ function poll(fn, { emitOnBegin, initialWaitTime, interval }) {
|
|
|
2070
1772
|
return unwatch;
|
|
2071
1773
|
}
|
|
2072
1774
|
|
|
2073
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1775
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/promise/withCache.js
|
|
2074
1776
|
var promiseCache = /* @__PURE__ */ new Map();
|
|
2075
1777
|
var responseCache = /* @__PURE__ */ new Map();
|
|
2076
1778
|
function getCache(cacheKey2) {
|
|
@@ -2112,7 +1814,7 @@ async function withCache(fn, { cacheKey: cacheKey2, cacheTime = Number.POSITIVE_
|
|
|
2112
1814
|
}
|
|
2113
1815
|
}
|
|
2114
1816
|
|
|
2115
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1817
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/getBlockNumber.js
|
|
2116
1818
|
var cacheKey = (id) => `blockNumber.${id}`;
|
|
2117
1819
|
async function getBlockNumber(client, { cacheTime = client.cacheTime } = {}) {
|
|
2118
1820
|
const blockNumberHex = await withCache(() => client.request({
|
|
@@ -2121,7 +1823,7 @@ async function getBlockNumber(client, { cacheTime = client.cacheTime } = {}) {
|
|
|
2121
1823
|
return BigInt(blockNumberHex);
|
|
2122
1824
|
}
|
|
2123
1825
|
|
|
2124
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1826
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/getFilterChanges.js
|
|
2125
1827
|
async function getFilterChanges(_client, { filter }) {
|
|
2126
1828
|
const strict = "strict" in filter && filter.strict;
|
|
2127
1829
|
const logs = await filter.request({
|
|
@@ -2140,7 +1842,7 @@ async function getFilterChanges(_client, { filter }) {
|
|
|
2140
1842
|
});
|
|
2141
1843
|
}
|
|
2142
1844
|
|
|
2143
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1845
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/uninstallFilter.js
|
|
2144
1846
|
async function uninstallFilter(_client, { filter }) {
|
|
2145
1847
|
return filter.request({
|
|
2146
1848
|
method: "eth_uninstallFilter",
|
|
@@ -2148,7 +1850,7 @@ async function uninstallFilter(_client, { filter }) {
|
|
|
2148
1850
|
});
|
|
2149
1851
|
}
|
|
2150
1852
|
|
|
2151
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
1853
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/watchContractEvent.js
|
|
2152
1854
|
function watchContractEvent(client, parameters) {
|
|
2153
1855
|
const { abi, address, args, batch = true, eventName, fromBlock, onError, onLogs, poll: poll_, pollingInterval = client.pollingInterval, strict: strict_ } = parameters;
|
|
2154
1856
|
const enablePolling = (() => {
|
|
@@ -2324,7 +2026,7 @@ function watchContractEvent(client, parameters) {
|
|
|
2324
2026
|
return enablePolling ? pollContractEvent() : subscribeContractEvent();
|
|
2325
2027
|
}
|
|
2326
2028
|
|
|
2327
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2029
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/account.js
|
|
2328
2030
|
var AccountNotFoundError = class extends BaseError2 {
|
|
2329
2031
|
constructor({ docsPath: docsPath3 } = {}) {
|
|
2330
2032
|
super([
|
|
@@ -2347,7 +2049,7 @@ var AccountTypeNotSupportedError = class extends BaseError2 {
|
|
|
2347
2049
|
}
|
|
2348
2050
|
};
|
|
2349
2051
|
|
|
2350
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2052
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/chain/assertCurrentChain.js
|
|
2351
2053
|
function assertCurrentChain({ chain, currentChainId }) {
|
|
2352
2054
|
if (!chain)
|
|
2353
2055
|
throw new ChainNotFoundError();
|
|
@@ -2355,7 +2057,7 @@ function assertCurrentChain({ chain, currentChainId }) {
|
|
|
2355
2057
|
throw new ChainMismatchError({ chain, currentChainId });
|
|
2356
2058
|
}
|
|
2357
2059
|
|
|
2358
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2060
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/sendRawTransaction.js
|
|
2359
2061
|
async function sendRawTransaction(client, { serializedTransaction }) {
|
|
2360
2062
|
return client.request({
|
|
2361
2063
|
method: "eth_sendRawTransaction",
|
|
@@ -2363,7 +2065,7 @@ async function sendRawTransaction(client, { serializedTransaction }) {
|
|
|
2363
2065
|
}, { retryCount: 0 });
|
|
2364
2066
|
}
|
|
2365
2067
|
|
|
2366
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2068
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/sendTransaction.js
|
|
2367
2069
|
var supportsWalletNamespace = new LruMap(128);
|
|
2368
2070
|
async function sendTransaction(client, parameters) {
|
|
2369
2071
|
const { account: account_ = client.account, assertChainId = true, chain = client.chain, accessList, authorizationList, blobs, data, dataSuffix = typeof client.dataSuffix === "string" ? client.dataSuffix : client.dataSuffix?.value, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce: nonce2, type: type2, value, ...rest } = parameters;
|
|
@@ -2500,7 +2202,7 @@ async function sendTransaction(client, parameters) {
|
|
|
2500
2202
|
}
|
|
2501
2203
|
}
|
|
2502
2204
|
|
|
2503
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2205
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/writeContract.js
|
|
2504
2206
|
async function writeContract(client, parameters) {
|
|
2505
2207
|
return writeContract.internal(client, sendTransaction, "sendTransaction", parameters);
|
|
2506
2208
|
}
|
|
@@ -2538,7 +2240,7 @@ async function writeContract(client, parameters) {
|
|
|
2538
2240
|
writeContract2.internal = internal;
|
|
2539
2241
|
})(writeContract || (writeContract = {}));
|
|
2540
2242
|
|
|
2541
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2243
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/calls.js
|
|
2542
2244
|
var BundleFailedError = class extends BaseError2 {
|
|
2543
2245
|
constructor(result) {
|
|
2544
2246
|
super(`Call bundle failed with status: ${result.statusCode}`, {
|
|
@@ -2554,7 +2256,7 @@ var BundleFailedError = class extends BaseError2 {
|
|
|
2554
2256
|
}
|
|
2555
2257
|
};
|
|
2556
2258
|
|
|
2557
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2259
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/promise/withRetry.js
|
|
2558
2260
|
function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shouldRetry2 = () => true } = {}) {
|
|
2559
2261
|
return new Promise((resolve3, reject) => {
|
|
2560
2262
|
const attemptRetry = async ({ count = 0 } = {}) => {
|
|
@@ -2577,7 +2279,7 @@ function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shoul
|
|
|
2577
2279
|
});
|
|
2578
2280
|
}
|
|
2579
2281
|
|
|
2580
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2282
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/transactionReceipt.js
|
|
2581
2283
|
var receiptStatuses = {
|
|
2582
2284
|
"0x0": "reverted",
|
|
2583
2285
|
"0x1": "success"
|
|
@@ -2604,7 +2306,7 @@ function formatTransactionReceipt(transactionReceipt, _) {
|
|
|
2604
2306
|
}
|
|
2605
2307
|
var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
|
|
2606
2308
|
|
|
2607
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2309
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/sendCalls.js
|
|
2608
2310
|
var fallbackMagicIdentifier = "0x5792579257925792579257925792579257925792579257925792579257925792";
|
|
2609
2311
|
var fallbackTransactionErrorMagicIdentifier = numberToHex(0, {
|
|
2610
2312
|
size: 32
|
|
@@ -2716,7 +2418,7 @@ async function sendCalls(client, parameters) {
|
|
|
2716
2418
|
}
|
|
2717
2419
|
}
|
|
2718
2420
|
|
|
2719
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2421
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/getCallsStatus.js
|
|
2720
2422
|
async function getCallsStatus(client, parameters) {
|
|
2721
2423
|
async function getStatus(id) {
|
|
2722
2424
|
const isTransactions = id.endsWith(fallbackMagicIdentifier.slice(2));
|
|
@@ -2781,7 +2483,7 @@ async function getCallsStatus(client, parameters) {
|
|
|
2781
2483
|
};
|
|
2782
2484
|
}
|
|
2783
2485
|
|
|
2784
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2486
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/waitForCallsStatus.js
|
|
2785
2487
|
async function waitForCallsStatus(client, parameters) {
|
|
2786
2488
|
const {
|
|
2787
2489
|
id,
|
|
@@ -2839,7 +2541,7 @@ var WaitForCallsStatusTimeoutError = class extends BaseError2 {
|
|
|
2839
2541
|
}
|
|
2840
2542
|
};
|
|
2841
2543
|
|
|
2842
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2544
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/uid.js
|
|
2843
2545
|
var size5 = 256;
|
|
2844
2546
|
var index = size5;
|
|
2845
2547
|
var buffer;
|
|
@@ -2854,7 +2556,7 @@ function uid(length = 11) {
|
|
|
2854
2556
|
return buffer.substring(index, index++ + length);
|
|
2855
2557
|
}
|
|
2856
2558
|
|
|
2857
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2559
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/clients/createClient.js
|
|
2858
2560
|
function createClient(parameters) {
|
|
2859
2561
|
const { batch, chain, ccipRead, dataSuffix, key = "base", name = "Base Client", type: type2 = "base" } = parameters;
|
|
2860
2562
|
const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : void 0);
|
|
@@ -2897,7 +2599,7 @@ function createClient(parameters) {
|
|
|
2897
2599
|
return Object.assign(client, { extend: extend(client) });
|
|
2898
2600
|
}
|
|
2899
2601
|
|
|
2900
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2602
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/getCode.js
|
|
2901
2603
|
async function getCode(client, { address, blockNumber, blockTag = "latest" }) {
|
|
2902
2604
|
const blockNumberHex = blockNumber !== void 0 ? numberToHex(blockNumber) : void 0;
|
|
2903
2605
|
const hex = await client.request({
|
|
@@ -2909,7 +2611,7 @@ async function getCode(client, { address, blockNumber, blockTag = "latest" }) {
|
|
|
2909
2611
|
return hex;
|
|
2910
2612
|
}
|
|
2911
2613
|
|
|
2912
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2614
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/assertTransaction.js
|
|
2913
2615
|
function assertTransactionEIP7702(transaction) {
|
|
2914
2616
|
const { authorizationList } = transaction;
|
|
2915
2617
|
if (authorizationList) {
|
|
@@ -2977,7 +2679,7 @@ function assertTransactionLegacy(transaction) {
|
|
|
2977
2679
|
throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
|
|
2978
2680
|
}
|
|
2979
2681
|
|
|
2980
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2682
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/serializeAccessList.js
|
|
2981
2683
|
function serializeAccessList(accessList) {
|
|
2982
2684
|
if (!accessList || accessList.length === 0)
|
|
2983
2685
|
return [];
|
|
@@ -2997,7 +2699,7 @@ function serializeAccessList(accessList) {
|
|
|
2997
2699
|
return serializedAccessList;
|
|
2998
2700
|
}
|
|
2999
2701
|
|
|
3000
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2702
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/serializeTransaction.js
|
|
3001
2703
|
function serializeTransaction(transaction, signature2) {
|
|
3002
2704
|
const type2 = getTransactionType(transaction);
|
|
3003
2705
|
if (type2 === "eip1559")
|
|
@@ -3197,7 +2899,7 @@ function toYParitySignatureArray(transaction, signature_) {
|
|
|
3197
2899
|
return [yParity_, r === "0x00" ? "0x" : r, s === "0x00" ? "0x" : s];
|
|
3198
2900
|
}
|
|
3199
2901
|
|
|
3200
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2902
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/authorization/serializeAuthorizationList.js
|
|
3201
2903
|
function serializeAuthorizationList(authorizationList) {
|
|
3202
2904
|
if (!authorizationList || authorizationList.length === 0)
|
|
3203
2905
|
return [];
|
|
@@ -3215,7 +2917,7 @@ function serializeAuthorizationList(authorizationList) {
|
|
|
3215
2917
|
return serializedAuthorizationList;
|
|
3216
2918
|
}
|
|
3217
2919
|
|
|
3218
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2920
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/authorization/verifyAuthorization.js
|
|
3219
2921
|
async function verifyAuthorization({ address, authorization, signature: signature2 }) {
|
|
3220
2922
|
return isAddressEqual(getAddress(address), await recoverAuthorizationAddress({
|
|
3221
2923
|
authorization,
|
|
@@ -3223,7 +2925,7 @@ async function verifyAuthorization({ address, authorization, signature: signatur
|
|
|
3223
2925
|
}));
|
|
3224
2926
|
}
|
|
3225
2927
|
|
|
3226
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2928
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/promise/withDedupe.js
|
|
3227
2929
|
var promiseCache2 = /* @__PURE__ */ new LruMap(8192);
|
|
3228
2930
|
function withDedupe(fn, { enabled = true, id }) {
|
|
3229
2931
|
if (!enabled || !id)
|
|
@@ -3235,7 +2937,7 @@ function withDedupe(fn, { enabled = true, id }) {
|
|
|
3235
2937
|
return promise;
|
|
3236
2938
|
}
|
|
3237
2939
|
|
|
3238
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
2940
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/buildRequest.js
|
|
3239
2941
|
function buildRequest(request, options = {}) {
|
|
3240
2942
|
return async (args, overrideOptions = {}) => {
|
|
3241
2943
|
const { dedupe = false, methods, retryDelay = 150, retryCount = 3, uid: uid2 } = {
|
|
@@ -3395,7 +3097,7 @@ function shouldRetry(error) {
|
|
|
3395
3097
|
return true;
|
|
3396
3098
|
}
|
|
3397
3099
|
|
|
3398
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
3100
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/chain/defineChain.js
|
|
3399
3101
|
function defineChain(chain) {
|
|
3400
3102
|
const chainInstance = {
|
|
3401
3103
|
formatters: void 0,
|
|
@@ -3418,7 +3120,7 @@ function extendSchema() {
|
|
|
3418
3120
|
return {};
|
|
3419
3121
|
}
|
|
3420
3122
|
|
|
3421
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
3123
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromRlp.js
|
|
3422
3124
|
function fromRlp(value, to2 = "hex") {
|
|
3423
3125
|
const bytes = (() => {
|
|
3424
3126
|
if (typeof value === "string") {
|
|
@@ -3471,12 +3173,12 @@ function readList(cursor, length, to2) {
|
|
|
3471
3173
|
return value;
|
|
3472
3174
|
}
|
|
3473
3175
|
|
|
3474
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
3176
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/isHash.js
|
|
3475
3177
|
function isHash(hash5) {
|
|
3476
3178
|
return isHex(hash5) && size2(hash5) === 32;
|
|
3477
3179
|
}
|
|
3478
3180
|
|
|
3479
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
3181
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/promise/withTimeout.js
|
|
3480
3182
|
function withTimeout(fn, { errorInstance = new Error("timed out"), timeout, signal }) {
|
|
3481
3183
|
return new Promise((resolve3, reject) => {
|
|
3482
3184
|
;
|
|
@@ -3505,7 +3207,7 @@ function withTimeout(fn, { errorInstance = new Error("timed out"), timeout, sign
|
|
|
3505
3207
|
});
|
|
3506
3208
|
}
|
|
3507
3209
|
|
|
3508
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
3210
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/rpc/id.js
|
|
3509
3211
|
function createIdStore() {
|
|
3510
3212
|
return {
|
|
3511
3213
|
current: 0,
|
|
@@ -3519,7 +3221,7 @@ function createIdStore() {
|
|
|
3519
3221
|
}
|
|
3520
3222
|
var idCache = /* @__PURE__ */ createIdStore();
|
|
3521
3223
|
|
|
3522
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
3224
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/rpc/http.js
|
|
3523
3225
|
function getHttpRpcClient(url_, options = {}) {
|
|
3524
3226
|
const { url, headers: headers_url } = parseUrl(url_);
|
|
3525
3227
|
return {
|
|
@@ -3620,7 +3322,7 @@ function parseUrl(url_) {
|
|
|
3620
3322
|
}
|
|
3621
3323
|
}
|
|
3622
3324
|
|
|
3623
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
3325
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/typedData.js
|
|
3624
3326
|
var InvalidDomainError = class extends BaseError2 {
|
|
3625
3327
|
constructor({ domain }) {
|
|
3626
3328
|
super(`Invalid domain "${stringify2(domain)}".`, {
|
|
@@ -3645,7 +3347,7 @@ var InvalidStructTypeError = class extends BaseError2 {
|
|
|
3645
3347
|
}
|
|
3646
3348
|
};
|
|
3647
3349
|
|
|
3648
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
3350
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/typedData.js
|
|
3649
3351
|
function serializeTypedData(parameters) {
|
|
3650
3352
|
const { domain: domain_, message: message_, primaryType, types: types3 } = parameters;
|
|
3651
3353
|
const normalizeData = (struct, data_) => {
|
|
@@ -3735,12 +3437,12 @@ function validateReference(type2) {
|
|
|
3735
3437
|
throw new InvalidStructTypeError({ type: type2 });
|
|
3736
3438
|
}
|
|
3737
3439
|
|
|
3738
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
3440
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/erc8010/SignatureErc8010.js
|
|
3739
3441
|
var SignatureErc8010_exports = {};
|
|
3740
3442
|
__export(SignatureErc8010_exports, {
|
|
3741
3443
|
InvalidWrappedSignatureError: () => InvalidWrappedSignatureError,
|
|
3742
3444
|
assert: () => assert6,
|
|
3743
|
-
from: () =>
|
|
3445
|
+
from: () => from11,
|
|
3744
3446
|
magicBytes: () => magicBytes,
|
|
3745
3447
|
suffixParameters: () => suffixParameters,
|
|
3746
3448
|
unwrap: () => unwrap,
|
|
@@ -3748,7 +3450,7 @@ __export(SignatureErc8010_exports, {
|
|
|
3748
3450
|
wrap: () => wrap
|
|
3749
3451
|
});
|
|
3750
3452
|
|
|
3751
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
3453
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/internal/lru.js
|
|
3752
3454
|
var LruMap2 = class extends Map {
|
|
3753
3455
|
constructor(size6) {
|
|
3754
3456
|
super();
|
|
@@ -3779,23 +3481,23 @@ var LruMap2 = class extends Map {
|
|
|
3779
3481
|
}
|
|
3780
3482
|
};
|
|
3781
3483
|
|
|
3782
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
3484
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Caches.js
|
|
3783
3485
|
var caches = {
|
|
3784
3486
|
checksum: /* @__PURE__ */ new LruMap2(8192)
|
|
3785
3487
|
};
|
|
3786
3488
|
var checksum = caches.checksum;
|
|
3787
3489
|
|
|
3788
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
3490
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Hash.js
|
|
3789
3491
|
function keccak2562(value, options = {}) {
|
|
3790
3492
|
const { as = typeof value === "string" ? "Hex" : "Bytes" } = options;
|
|
3791
|
-
const bytes = keccak_256(
|
|
3493
|
+
const bytes = keccak_256(from3(value));
|
|
3792
3494
|
if (as === "Bytes")
|
|
3793
3495
|
return bytes;
|
|
3794
3496
|
return fromBytes(bytes);
|
|
3795
3497
|
}
|
|
3796
3498
|
function sha2563(value, options = {}) {
|
|
3797
3499
|
const { as = typeof value === "string" ? "Hex" : "Bytes" } = options;
|
|
3798
|
-
const bytes = sha256(
|
|
3500
|
+
const bytes = sha256(from3(value));
|
|
3799
3501
|
if (as === "Bytes")
|
|
3800
3502
|
return bytes;
|
|
3801
3503
|
return fromBytes(bytes);
|
|
@@ -3804,7 +3506,7 @@ function validate3(value) {
|
|
|
3804
3506
|
return validate2(value) && size4(value) === 32;
|
|
3805
3507
|
}
|
|
3806
3508
|
|
|
3807
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
3509
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/PublicKey.js
|
|
3808
3510
|
function assert3(publicKey, options = {}) {
|
|
3809
3511
|
const { compressed } = options;
|
|
3810
3512
|
const { prefix, x, y } = publicKey;
|
|
@@ -3826,7 +3528,7 @@ function assert3(publicKey, options = {}) {
|
|
|
3826
3528
|
}
|
|
3827
3529
|
throw new InvalidError({ publicKey });
|
|
3828
3530
|
}
|
|
3829
|
-
function
|
|
3531
|
+
function from5(value) {
|
|
3830
3532
|
const publicKey = (() => {
|
|
3831
3533
|
if (validate2(value))
|
|
3832
3534
|
return fromHex3(value);
|
|
@@ -3944,7 +3646,7 @@ var InvalidSerializedSizeError = class extends BaseError3 {
|
|
|
3944
3646
|
super(`Value \`${publicKey}\` is an invalid public key size.`, {
|
|
3945
3647
|
metaMessages: [
|
|
3946
3648
|
"Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",
|
|
3947
|
-
`Received ${size4(
|
|
3649
|
+
`Received ${size4(from4(publicKey))} bytes.`
|
|
3948
3650
|
]
|
|
3949
3651
|
});
|
|
3950
3652
|
Object.defineProperty(this, "name", {
|
|
@@ -3956,7 +3658,7 @@ var InvalidSerializedSizeError = class extends BaseError3 {
|
|
|
3956
3658
|
}
|
|
3957
3659
|
};
|
|
3958
3660
|
|
|
3959
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
3661
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Address.js
|
|
3960
3662
|
var addressRegex = /^0x[a-fA-F0-9]{40}$/;
|
|
3961
3663
|
function assert4(value, options = {}) {
|
|
3962
3664
|
const { strict = true } = options;
|
|
@@ -3994,7 +3696,7 @@ function checksum2(address) {
|
|
|
3994
3696
|
checksum.set(address, result);
|
|
3995
3697
|
return result;
|
|
3996
3698
|
}
|
|
3997
|
-
function
|
|
3699
|
+
function from6(address, options = {}) {
|
|
3998
3700
|
const { checksum: checksumVal = false } = options;
|
|
3999
3701
|
assert4(address);
|
|
4000
3702
|
if (checksumVal)
|
|
@@ -4003,7 +3705,7 @@ function from7(address, options = {}) {
|
|
|
4003
3705
|
}
|
|
4004
3706
|
function fromPublicKey2(publicKey, options = {}) {
|
|
4005
3707
|
const address = keccak2562(`0x${toHex3(publicKey).slice(4)}`).substring(26);
|
|
4006
|
-
return
|
|
3708
|
+
return from6(`0x${address}`, options);
|
|
4007
3709
|
}
|
|
4008
3710
|
function isEqual3(addressA, addressB) {
|
|
4009
3711
|
assert4(addressA, { strict: false });
|
|
@@ -4055,7 +3757,7 @@ var InvalidChecksumError = class extends BaseError3 {
|
|
|
4055
3757
|
}
|
|
4056
3758
|
};
|
|
4057
3759
|
|
|
4058
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
3760
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Solidity.js
|
|
4059
3761
|
var arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
|
4060
3762
|
var bytesRegex2 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
4061
3763
|
var integerRegex2 = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
@@ -4156,7 +3858,7 @@ var maxUint240 = 2n ** 240n - 1n;
|
|
|
4156
3858
|
var maxUint248 = 2n ** 248n - 1n;
|
|
4157
3859
|
var maxUint2562 = 2n ** 256n - 1n;
|
|
4158
3860
|
|
|
4159
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
3861
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/internal/abiParameters.js
|
|
4160
3862
|
function decodeParameter(cursor, param, options) {
|
|
4161
3863
|
const { checksumAddress: checksumAddress2, staticPosition } = options;
|
|
4162
3864
|
const arrayComponents = getArrayComponents(param.type);
|
|
@@ -4545,7 +4247,7 @@ function hasDynamicChild(param) {
|
|
|
4545
4247
|
return false;
|
|
4546
4248
|
}
|
|
4547
4249
|
|
|
4548
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
4250
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/internal/cursor.js
|
|
4549
4251
|
var staticCursor = {
|
|
4550
4252
|
bytes: new Uint8Array(),
|
|
4551
4253
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
@@ -4747,7 +4449,7 @@ var RecursiveReadLimitExceededError = class extends BaseError3 {
|
|
|
4747
4449
|
}
|
|
4748
4450
|
};
|
|
4749
4451
|
|
|
4750
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
4452
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/AbiParameters.js
|
|
4751
4453
|
function decode(parameters, data, options = {}) {
|
|
4752
4454
|
const { as = "Array", checksumAddress: checksumAddress2 = false } = options;
|
|
4753
4455
|
const bytes = typeof data === "string" ? fromHex2(data) : data;
|
|
@@ -4855,7 +4557,7 @@ function encodePacked(types3, values) {
|
|
|
4855
4557
|
}
|
|
4856
4558
|
encodePacked2.encode = encode4;
|
|
4857
4559
|
})(encodePacked || (encodePacked = {}));
|
|
4858
|
-
function
|
|
4560
|
+
function from7(parameters) {
|
|
4859
4561
|
if (Array.isArray(parameters) && typeof parameters[0] === "string")
|
|
4860
4562
|
return parseAbiParameters(parameters);
|
|
4861
4563
|
if (typeof parameters === "string")
|
|
@@ -4949,7 +4651,7 @@ var InvalidTypeError = class extends BaseError3 {
|
|
|
4949
4651
|
}
|
|
4950
4652
|
};
|
|
4951
4653
|
|
|
4952
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
4654
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Rlp.js
|
|
4953
4655
|
function toHex4(value) {
|
|
4954
4656
|
return to(value, "Hex");
|
|
4955
4657
|
}
|
|
@@ -5005,7 +4707,7 @@ function readList2(cursor, length, to2) {
|
|
|
5005
4707
|
value.push(decodeRlpCursor(cursor, to2));
|
|
5006
4708
|
return value;
|
|
5007
4709
|
}
|
|
5008
|
-
function
|
|
4710
|
+
function from8(value, options) {
|
|
5009
4711
|
const { as } = options;
|
|
5010
4712
|
const encodable = getEncodable2(value);
|
|
5011
4713
|
const cursor = create(new Uint8Array(encodable.length));
|
|
@@ -5016,7 +4718,7 @@ function from9(value, options) {
|
|
|
5016
4718
|
}
|
|
5017
4719
|
function fromHex4(hex, options = {}) {
|
|
5018
4720
|
const { as = "Hex" } = options;
|
|
5019
|
-
return
|
|
4721
|
+
return from8(hex, { as });
|
|
5020
4722
|
}
|
|
5021
4723
|
function getEncodable2(bytes) {
|
|
5022
4724
|
if (Array.isArray(bytes))
|
|
@@ -5098,7 +4800,7 @@ function getSizeOfLength2(length) {
|
|
|
5098
4800
|
throw new BaseError3("Length is too large.");
|
|
5099
4801
|
}
|
|
5100
4802
|
|
|
5101
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
4803
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Signature.js
|
|
5102
4804
|
function assert5(signature2, options = {}) {
|
|
5103
4805
|
const { recovered } = options;
|
|
5104
4806
|
if (typeof signature2.r === "undefined")
|
|
@@ -5148,9 +4850,9 @@ function extract2(value) {
|
|
|
5148
4850
|
return void 0;
|
|
5149
4851
|
if (typeof value.s === "undefined")
|
|
5150
4852
|
return void 0;
|
|
5151
|
-
return
|
|
4853
|
+
return from9(value);
|
|
5152
4854
|
}
|
|
5153
|
-
function
|
|
4855
|
+
function from9(signature2) {
|
|
5154
4856
|
const signature_ = (() => {
|
|
5155
4857
|
if (typeof signature2 === "string")
|
|
5156
4858
|
return fromHex5(signature2);
|
|
@@ -5194,7 +4896,7 @@ function fromRpc2(signature2) {
|
|
|
5194
4896
|
}
|
|
5195
4897
|
function fromTuple(tuple) {
|
|
5196
4898
|
const [yParity, r, s] = tuple;
|
|
5197
|
-
return
|
|
4899
|
+
return from9({
|
|
5198
4900
|
r: r === "0x" ? 0n : BigInt(r),
|
|
5199
4901
|
s: s === "0x" ? 0n : BigInt(s),
|
|
5200
4902
|
yParity: yParity === "0x" ? 0 : Number(yParity)
|
|
@@ -5249,7 +4951,7 @@ var InvalidSerializedSizeError2 = class extends BaseError3 {
|
|
|
5249
4951
|
super(`Value \`${signature2}\` is an invalid signature size.`, {
|
|
5250
4952
|
metaMessages: [
|
|
5251
4953
|
"Expected: 64 bytes or 65 bytes.",
|
|
5252
|
-
`Received ${size4(
|
|
4954
|
+
`Received ${size4(from4(signature2))} bytes.`
|
|
5253
4955
|
]
|
|
5254
4956
|
});
|
|
5255
4957
|
Object.defineProperty(this, "name", {
|
|
@@ -5316,8 +5018,8 @@ var InvalidVError = class extends BaseError3 {
|
|
|
5316
5018
|
}
|
|
5317
5019
|
};
|
|
5318
5020
|
|
|
5319
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
5320
|
-
function
|
|
5021
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Authorization.js
|
|
5022
|
+
function from10(authorization, options = {}) {
|
|
5321
5023
|
if (typeof authorization.chainId === "string")
|
|
5322
5024
|
return fromRpc3(authorization);
|
|
5323
5025
|
return { ...authorization, ...options.signature };
|
|
@@ -5369,7 +5071,7 @@ function toTuple2(authorization) {
|
|
|
5369
5071
|
];
|
|
5370
5072
|
}
|
|
5371
5073
|
|
|
5372
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
5074
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Secp256k1.js
|
|
5373
5075
|
function recoverAddress2(options) {
|
|
5374
5076
|
return fromPublicKey2(recoverPublicKey3(options));
|
|
5375
5077
|
}
|
|
@@ -5377,19 +5079,19 @@ function recoverPublicKey3(options) {
|
|
|
5377
5079
|
const { payload, signature: signature2 } = options;
|
|
5378
5080
|
const { r, s, yParity } = signature2;
|
|
5379
5081
|
const signature_ = new secp256k1.Signature(BigInt(r), BigInt(s)).addRecoveryBit(yParity);
|
|
5380
|
-
const point = signature_.recoverPublicKey(
|
|
5381
|
-
return
|
|
5082
|
+
const point = signature_.recoverPublicKey(from4(payload).substring(2));
|
|
5083
|
+
return from5(point);
|
|
5382
5084
|
}
|
|
5383
5085
|
function verify4(options) {
|
|
5384
5086
|
const { address, hash: hash5, payload, publicKey, signature: signature2 } = options;
|
|
5385
5087
|
if (address)
|
|
5386
5088
|
return isEqual3(address, recoverAddress2({ payload, signature: signature2 }));
|
|
5387
|
-
return secp256k1.verify(signature2,
|
|
5089
|
+
return secp256k1.verify(signature2, from3(payload), toBytes2(publicKey), ...hash5 ? [{ prehash: true, lowS: true }] : []);
|
|
5388
5090
|
}
|
|
5389
5091
|
|
|
5390
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
5092
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/erc8010/SignatureErc8010.js
|
|
5391
5093
|
var magicBytes = "0x8010801080108010801080108010801080108010801080108010801080108010";
|
|
5392
|
-
var suffixParameters =
|
|
5094
|
+
var suffixParameters = from7("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");
|
|
5393
5095
|
function assert6(value) {
|
|
5394
5096
|
if (typeof value === "string") {
|
|
5395
5097
|
if (slice4(value, -32) !== magicBytes)
|
|
@@ -5397,7 +5099,7 @@ function assert6(value) {
|
|
|
5397
5099
|
} else
|
|
5398
5100
|
assert5(value.authorization);
|
|
5399
5101
|
}
|
|
5400
|
-
function
|
|
5102
|
+
function from11(value) {
|
|
5401
5103
|
if (typeof value === "string")
|
|
5402
5104
|
return unwrap(value);
|
|
5403
5105
|
return value;
|
|
@@ -5408,7 +5110,7 @@ function unwrap(wrapped) {
|
|
|
5408
5110
|
const suffix = slice4(wrapped, -suffixLength - 64, -64);
|
|
5409
5111
|
const signature2 = slice4(wrapped, 0, -suffixLength - 64);
|
|
5410
5112
|
const [auth, to2, data] = decode(suffixParameters, suffix);
|
|
5411
|
-
const authorization =
|
|
5113
|
+
const authorization = from10({
|
|
5412
5114
|
address: auth.delegation,
|
|
5413
5115
|
chainId: Number(auth.chainId),
|
|
5414
5116
|
nonce: auth.nonce,
|
|
@@ -5427,7 +5129,7 @@ function wrap(value) {
|
|
|
5427
5129
|
assert6(value);
|
|
5428
5130
|
const self = recoverAddress2({
|
|
5429
5131
|
payload: getSignPayload(value.authorization),
|
|
5430
|
-
signature:
|
|
5132
|
+
signature: from9(value.authorization)
|
|
5431
5133
|
});
|
|
5432
5134
|
const suffix = encode2(suffixParameters, [
|
|
5433
5135
|
{
|
|
@@ -5461,7 +5163,7 @@ var InvalidWrappedSignatureError = class extends BaseError3 {
|
|
|
5461
5163
|
}
|
|
5462
5164
|
};
|
|
5463
5165
|
|
|
5464
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
5166
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/getSerializedTransactionType.js
|
|
5465
5167
|
function getSerializedTransactionType(serializedTransaction) {
|
|
5466
5168
|
const serializedType2 = sliceHex(serializedTransaction, 0, 1);
|
|
5467
5169
|
if (serializedType2 === "0x04")
|
|
@@ -5477,7 +5179,7 @@ function getSerializedTransactionType(serializedTransaction) {
|
|
|
5477
5179
|
throw new InvalidSerializedTransactionTypeError({ serializedType: serializedType2 });
|
|
5478
5180
|
}
|
|
5479
5181
|
|
|
5480
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
5182
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/parseTransaction.js
|
|
5481
5183
|
function parseTransaction(serializedTransaction) {
|
|
5482
5184
|
const type2 = getSerializedTransactionType(serializedTransaction);
|
|
5483
5185
|
if (type2 === "eip1559")
|
|
@@ -5791,7 +5493,7 @@ function parseEIP155Signature(transactionArray) {
|
|
|
5791
5493
|
};
|
|
5792
5494
|
}
|
|
5793
5495
|
|
|
5794
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
5496
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/unit.js
|
|
5795
5497
|
var InvalidDecimalNumberError = class extends BaseError2 {
|
|
5796
5498
|
constructor({ value }) {
|
|
5797
5499
|
super(`Number \`${value}\` is not a valid decimal number.`, {
|
|
@@ -5800,7 +5502,7 @@ var InvalidDecimalNumberError = class extends BaseError2 {
|
|
|
5800
5502
|
}
|
|
5801
5503
|
};
|
|
5802
5504
|
|
|
5803
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
5505
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseUnits.js
|
|
5804
5506
|
function parseUnits(value, decimals2) {
|
|
5805
5507
|
if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
|
|
5806
5508
|
throw new InvalidDecimalNumberError({ value });
|
|
@@ -5835,7 +5537,7 @@ function parseUnits(value, decimals2) {
|
|
|
5835
5537
|
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
5836
5538
|
}
|
|
5837
5539
|
|
|
5838
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
5540
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/getTransaction.js
|
|
5839
5541
|
async function getTransaction(client, { blockHash, blockNumber, blockTag: blockTag_, hash: hash5, index: index2, sender, nonce: nonce2 }) {
|
|
5840
5542
|
const blockTag = blockTag_ || "latest";
|
|
5841
5543
|
const blockNumberHex = blockNumber !== void 0 ? numberToHex(blockNumber) : void 0;
|
|
@@ -5873,7 +5575,7 @@ async function getTransaction(client, { blockHash, blockNumber, blockTag: blockT
|
|
|
5873
5575
|
return format2(transaction, "getTransaction");
|
|
5874
5576
|
}
|
|
5875
5577
|
|
|
5876
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
5578
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/getTransactionReceipt.js
|
|
5877
5579
|
async function getTransactionReceipt(client, { hash: hash5 }) {
|
|
5878
5580
|
const receipt = await client.request({
|
|
5879
5581
|
method: "eth_getTransactionReceipt",
|
|
@@ -5885,7 +5587,7 @@ async function getTransactionReceipt(client, { hash: hash5 }) {
|
|
|
5885
5587
|
return format2(receipt, "getTransactionReceipt");
|
|
5886
5588
|
}
|
|
5887
5589
|
|
|
5888
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
5590
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/multicall.js
|
|
5889
5591
|
async function multicall(client, parameters) {
|
|
5890
5592
|
const { account, authorizationList, allowFailure = true, blockNumber, blockOverrides, blockTag, stateOverride } = parameters;
|
|
5891
5593
|
const contracts = parameters.contracts;
|
|
@@ -6014,15 +5716,15 @@ async function multicall(client, parameters) {
|
|
|
6014
5716
|
return results;
|
|
6015
5717
|
}
|
|
6016
5718
|
|
|
6017
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
5719
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/address.js
|
|
6018
5720
|
var zeroAddress = "0x0000000000000000000000000000000000000000";
|
|
6019
5721
|
|
|
6020
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
5722
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/erc6492/SignatureErc6492.js
|
|
6021
5723
|
var SignatureErc6492_exports = {};
|
|
6022
5724
|
__export(SignatureErc6492_exports, {
|
|
6023
5725
|
InvalidWrappedSignatureError: () => InvalidWrappedSignatureError2,
|
|
6024
5726
|
assert: () => assert7,
|
|
6025
|
-
from: () =>
|
|
5727
|
+
from: () => from12,
|
|
6026
5728
|
magicBytes: () => magicBytes2,
|
|
6027
5729
|
universalSignatureValidatorAbi: () => universalSignatureValidatorAbi,
|
|
6028
5730
|
universalSignatureValidatorBytecode: () => universalSignatureValidatorBytecode,
|
|
@@ -6080,19 +5782,19 @@ function assert7(wrapped) {
|
|
|
6080
5782
|
if (slice4(wrapped, -32) !== magicBytes2)
|
|
6081
5783
|
throw new InvalidWrappedSignatureError2(wrapped);
|
|
6082
5784
|
}
|
|
6083
|
-
function
|
|
5785
|
+
function from12(wrapped) {
|
|
6084
5786
|
if (typeof wrapped === "string")
|
|
6085
5787
|
return unwrap2(wrapped);
|
|
6086
5788
|
return wrapped;
|
|
6087
5789
|
}
|
|
6088
5790
|
function unwrap2(wrapped) {
|
|
6089
5791
|
assert7(wrapped);
|
|
6090
|
-
const [to2, data, signature2] = decode(
|
|
5792
|
+
const [to2, data, signature2] = decode(from7("address, bytes, bytes"), wrapped);
|
|
6091
5793
|
return { data, signature: signature2, to: to2 };
|
|
6092
5794
|
}
|
|
6093
5795
|
function wrap2(value) {
|
|
6094
5796
|
const { data, signature: signature2, to: to2 } = value;
|
|
6095
|
-
return concat4(encode2(
|
|
5797
|
+
return concat4(encode2(from7("address, bytes, bytes"), [
|
|
6096
5798
|
to2,
|
|
6097
5799
|
data,
|
|
6098
5800
|
signature2
|
|
@@ -6118,7 +5820,7 @@ var InvalidWrappedSignatureError2 = class extends BaseError3 {
|
|
|
6118
5820
|
}
|
|
6119
5821
|
};
|
|
6120
5822
|
|
|
6121
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
5823
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/signature/serializeSignature.js
|
|
6122
5824
|
function serializeSignature({ r, s, to: to2 = "hex", v, yParity }) {
|
|
6123
5825
|
const yParity_ = (() => {
|
|
6124
5826
|
if (yParity === 0 || yParity === 1)
|
|
@@ -6133,7 +5835,7 @@ function serializeSignature({ r, s, to: to2 = "hex", v, yParity }) {
|
|
|
6133
5835
|
return hexToBytes(signature2);
|
|
6134
5836
|
}
|
|
6135
5837
|
|
|
6136
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
5838
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/verifyHash.js
|
|
6137
5839
|
async function verifyHash(client, parameters) {
|
|
6138
5840
|
const { address, chain = client.chain, hash: hash5, erc6492VerifierAddress: verifierAddress = parameters.universalSignatureVerifierAddress ?? chain?.contracts?.erc6492Verifier?.address, multicallAddress = parameters.multicallAddress ?? chain?.contracts?.multicall3?.address } = parameters;
|
|
6139
5841
|
if (chain?.verifyHash)
|
|
@@ -6293,7 +5995,7 @@ async function verifyErc1271(client, parameters) {
|
|
|
6293
5995
|
var VerificationError = class extends Error {
|
|
6294
5996
|
};
|
|
6295
5997
|
|
|
6296
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
5998
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/watchBlockNumber.js
|
|
6297
5999
|
function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onBlockNumber, onError, poll: poll_, pollingInterval = client.pollingInterval }) {
|
|
6298
6000
|
const enablePolling = (() => {
|
|
6299
6001
|
if (typeof poll_ !== "undefined")
|
|
@@ -6385,7 +6087,7 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
|
|
|
6385
6087
|
return enablePolling ? pollBlockNumber() : subscribeBlockNumber();
|
|
6386
6088
|
}
|
|
6387
6089
|
|
|
6388
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
6090
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/waitForTransactionReceipt.js
|
|
6389
6091
|
async function waitForTransactionReceipt(client, parameters) {
|
|
6390
6092
|
const {
|
|
6391
6093
|
checkReplacement = true,
|
|
@@ -6481,7 +6183,7 @@ async function waitForTransactionReceipt(client, parameters) {
|
|
|
6481
6183
|
shouldRetry: ({ error }) => error instanceof BlockNotFoundError
|
|
6482
6184
|
});
|
|
6483
6185
|
retrying = false;
|
|
6484
|
-
const replacementTransaction = block.transactions.find(({ from:
|
|
6186
|
+
const replacementTransaction = block.transactions.find(({ from: from22, nonce: nonce2 }) => from22 === replacedTransaction.from && nonce2 === replacedTransaction.nonce);
|
|
6485
6187
|
if (!replacementTransaction)
|
|
6486
6188
|
return;
|
|
6487
6189
|
receipt = await getAction(client, getTransactionReceipt, "getTransactionReceipt")({
|
|
@@ -6517,7 +6219,7 @@ async function waitForTransactionReceipt(client, parameters) {
|
|
|
6517
6219
|
return promise;
|
|
6518
6220
|
}
|
|
6519
6221
|
|
|
6520
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
6222
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/sendRawTransactionSync.js
|
|
6521
6223
|
async function sendRawTransactionSync(client, { serializedTransaction, throwOnReceiptRevert, timeout }) {
|
|
6522
6224
|
const receipt = await client.request({
|
|
6523
6225
|
method: "eth_sendRawTransactionSync",
|
|
@@ -6530,7 +6232,7 @@ async function sendRawTransactionSync(client, { serializedTransaction, throwOnRe
|
|
|
6530
6232
|
return formatted;
|
|
6531
6233
|
}
|
|
6532
6234
|
|
|
6533
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
6235
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/sendCallsSync.js
|
|
6534
6236
|
async function sendCallsSync(client, parameters) {
|
|
6535
6237
|
const { chain = client.chain } = parameters;
|
|
6536
6238
|
const timeout = parameters.timeout ?? Math.max((chain?.blockTime ?? 0) * 3, 5e3);
|
|
@@ -6543,7 +6245,7 @@ async function sendCallsSync(client, parameters) {
|
|
|
6543
6245
|
return status;
|
|
6544
6246
|
}
|
|
6545
6247
|
|
|
6546
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
6248
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/sendTransactionSync.js
|
|
6547
6249
|
var supportsWalletNamespace2 = new LruMap(128);
|
|
6548
6250
|
async function sendTransactionSync(client, parameters) {
|
|
6549
6251
|
const { account: account_ = client.account, assertChainId = true, chain = client.chain, accessList, authorizationList, blobs, data, dataSuffix = typeof client.dataSuffix === "string" ? client.dataSuffix : client.dataSuffix?.value, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce: nonce2, pollingInterval, throwOnReceiptRevert, type: type2, value, ...rest } = parameters;
|
|
@@ -6694,7 +6396,7 @@ async function sendTransactionSync(client, parameters) {
|
|
|
6694
6396
|
}
|
|
6695
6397
|
}
|
|
6696
6398
|
|
|
6697
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
6399
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/signTransaction.js
|
|
6698
6400
|
async function signTransaction(client, parameters) {
|
|
6699
6401
|
const { account: account_ = client.account, chain = client.chain, ...transaction } = parameters;
|
|
6700
6402
|
if (!account_)
|
|
@@ -6734,7 +6436,7 @@ async function signTransaction(client, parameters) {
|
|
|
6734
6436
|
}, { retryCount: 0 });
|
|
6735
6437
|
}
|
|
6736
6438
|
|
|
6737
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
6439
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/signTypedData.js
|
|
6738
6440
|
async function signTypedData(client, parameters) {
|
|
6739
6441
|
const { account: account_ = client.account, domain, message, primaryType } = parameters;
|
|
6740
6442
|
if (!account_)
|
|
@@ -6756,12 +6458,12 @@ async function signTypedData(client, parameters) {
|
|
|
6756
6458
|
}, { retryCount: 0 });
|
|
6757
6459
|
}
|
|
6758
6460
|
|
|
6759
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
6461
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/wallet/writeContractSync.js
|
|
6760
6462
|
async function writeContractSync(client, parameters) {
|
|
6761
6463
|
return writeContract.internal(client, sendTransactionSync, "sendTransactionSync", parameters);
|
|
6762
6464
|
}
|
|
6763
6465
|
|
|
6764
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
6466
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/clients/transports/createTransport.js
|
|
6765
6467
|
function createTransport({ key, methods, name, request, retryCount = 3, retryDelay = 150, timeout, type: type2 }, value) {
|
|
6766
6468
|
const uid2 = uid();
|
|
6767
6469
|
return {
|
|
@@ -6780,7 +6482,7 @@ function createTransport({ key, methods, name, request, retryCount = 3, retryDel
|
|
|
6780
6482
|
};
|
|
6781
6483
|
}
|
|
6782
6484
|
|
|
6783
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
6485
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/transport.js
|
|
6784
6486
|
var UrlRequiredError = class extends BaseError2 {
|
|
6785
6487
|
constructor() {
|
|
6786
6488
|
super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.", {
|
|
@@ -6790,7 +6492,7 @@ var UrlRequiredError = class extends BaseError2 {
|
|
|
6790
6492
|
}
|
|
6791
6493
|
};
|
|
6792
6494
|
|
|
6793
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
6495
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/clients/transports/http.js
|
|
6794
6496
|
function http(url, config = {}) {
|
|
6795
6497
|
const { batch, fetchFn, fetchOptions, key = "http", methods, name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config;
|
|
6796
6498
|
return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
|
|
@@ -6851,8 +6553,8 @@ function http(url, config = {}) {
|
|
|
6851
6553
|
};
|
|
6852
6554
|
}
|
|
6853
6555
|
|
|
6854
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
6855
|
-
var charge =
|
|
6556
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/stripe/Methods.js
|
|
6557
|
+
var charge = from2({
|
|
6856
6558
|
name: "stripe",
|
|
6857
6559
|
intent: "charge",
|
|
6858
6560
|
schema: {
|
|
@@ -6884,7 +6586,7 @@ var charge = from5({
|
|
|
6884
6586
|
}
|
|
6885
6587
|
});
|
|
6886
6588
|
|
|
6887
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
6589
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/stripe/client/Charge.js
|
|
6888
6590
|
function charge2(parameters) {
|
|
6889
6591
|
const { client, createToken, externalId, paymentMethod: defaultPaymentMethod } = parameters;
|
|
6890
6592
|
return toClient(charge, {
|
|
@@ -6916,7 +6618,7 @@ function charge2(parameters) {
|
|
|
6916
6618
|
networkId,
|
|
6917
6619
|
paymentMethod
|
|
6918
6620
|
});
|
|
6919
|
-
return
|
|
6621
|
+
return serialize({
|
|
6920
6622
|
challenge,
|
|
6921
6623
|
payload: {
|
|
6922
6624
|
spt,
|
|
@@ -6927,7 +6629,7 @@ function charge2(parameters) {
|
|
|
6927
6629
|
});
|
|
6928
6630
|
}
|
|
6929
6631
|
|
|
6930
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
6632
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/stripe/client/Methods.js
|
|
6931
6633
|
function stripe(parameters) {
|
|
6932
6634
|
return [charge2(parameters)];
|
|
6933
6635
|
}
|
|
@@ -6935,7 +6637,7 @@ function stripe(parameters) {
|
|
|
6935
6637
|
stripe2.charge = charge2;
|
|
6936
6638
|
})(stripe || (stripe = {}));
|
|
6937
6639
|
|
|
6938
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
6640
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/SignatureEnvelope.js
|
|
6939
6641
|
var SignatureEnvelope_exports = {};
|
|
6940
6642
|
__export(SignatureEnvelope_exports, {
|
|
6941
6643
|
CoercionError: () => CoercionError,
|
|
@@ -6943,27 +6645,27 @@ __export(SignatureEnvelope_exports, {
|
|
|
6943
6645
|
MissingPropertiesError: () => MissingPropertiesError2,
|
|
6944
6646
|
VerificationError: () => VerificationError2,
|
|
6945
6647
|
assert: () => assert8,
|
|
6946
|
-
deserialize: () =>
|
|
6648
|
+
deserialize: () => deserialize2,
|
|
6947
6649
|
extractAddress: () => extractAddress,
|
|
6948
6650
|
extractPublicKey: () => extractPublicKey,
|
|
6949
|
-
from: () =>
|
|
6651
|
+
from: () => from13,
|
|
6950
6652
|
fromRpc: () => fromRpc4,
|
|
6951
6653
|
getType: () => getType,
|
|
6952
6654
|
magicBytes: () => magicBytes3,
|
|
6953
|
-
serialize: () =>
|
|
6655
|
+
serialize: () => serialize2,
|
|
6954
6656
|
toRpc: () => toRpc4,
|
|
6955
6657
|
types: () => types,
|
|
6956
6658
|
validate: () => validate7,
|
|
6957
6659
|
verify: () => verify8
|
|
6958
6660
|
});
|
|
6959
6661
|
|
|
6960
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
6662
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/P256.js
|
|
6961
6663
|
function verify5(options) {
|
|
6962
6664
|
const { hash: hash5, payload, publicKey, signature: signature2 } = options;
|
|
6963
6665
|
return secp256r1.verify(signature2, payload instanceof Uint8Array ? payload : fromHex2(payload), toHex3(publicKey).substring(2), { lowS: true, ...hash5 ? { prehash: true } : {} });
|
|
6964
6666
|
}
|
|
6965
6667
|
|
|
6966
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
6668
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Base64.js
|
|
6967
6669
|
var encoder = /* @__PURE__ */ new TextEncoder();
|
|
6968
6670
|
var integerToCharacter = /* @__PURE__ */ Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((a, i) => [i, a.charCodeAt(0)]));
|
|
6969
6671
|
var characterToInteger = {
|
|
@@ -6987,7 +6689,7 @@ function toBytes3(value) {
|
|
|
6987
6689
|
return new Uint8Array(decoded.buffer, 0, decodedSize);
|
|
6988
6690
|
}
|
|
6989
6691
|
|
|
6990
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
6692
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/webauthn/Authentication.js
|
|
6991
6693
|
function verify6(options) {
|
|
6992
6694
|
const { challenge, metadata, origin, publicKey, rpId, signature: signature2 } = options;
|
|
6993
6695
|
const { authenticatorData, clientDataJSON, userVerificationRequired } = metadata;
|
|
@@ -7029,12 +6731,12 @@ function verify6(options) {
|
|
|
7029
6731
|
});
|
|
7030
6732
|
}
|
|
7031
6733
|
|
|
7032
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
6734
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/WebAuthnP256.js
|
|
7033
6735
|
function verify7(options) {
|
|
7034
6736
|
return verify6(options);
|
|
7035
6737
|
}
|
|
7036
6738
|
|
|
7037
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
6739
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/SignatureEnvelope.js
|
|
7038
6740
|
var serializedP256Type = "0x01";
|
|
7039
6741
|
var serializedWebAuthnType = "0x02";
|
|
7040
6742
|
var serializedKeychainType = "0x03";
|
|
@@ -7126,7 +6828,7 @@ function extractPublicKey(options) {
|
|
|
7126
6828
|
return extractPublicKey({ payload, signature: signature2.inner });
|
|
7127
6829
|
}
|
|
7128
6830
|
}
|
|
7129
|
-
function
|
|
6831
|
+
function deserialize2(value) {
|
|
7130
6832
|
const serialized = value.endsWith(magicBytes3.slice(2)) ? slice4(value, 0, -size4(magicBytes3)) : value;
|
|
7131
6833
|
const size6 = size4(serialized);
|
|
7132
6834
|
if (size6 === 65) {
|
|
@@ -7203,7 +6905,7 @@ function deserialize4(value) {
|
|
|
7203
6905
|
}
|
|
7204
6906
|
if (typeId === serializedKeychainType || typeId === serializedKeychainV2Type) {
|
|
7205
6907
|
const userAddress = slice4(data, 0, 20);
|
|
7206
|
-
const inner =
|
|
6908
|
+
const inner = deserialize2(slice4(data, 20));
|
|
7207
6909
|
return {
|
|
7208
6910
|
userAddress,
|
|
7209
6911
|
inner,
|
|
@@ -7216,9 +6918,9 @@ function deserialize4(value) {
|
|
|
7216
6918
|
serialized
|
|
7217
6919
|
});
|
|
7218
6920
|
}
|
|
7219
|
-
function
|
|
6921
|
+
function from13(value, options) {
|
|
7220
6922
|
if (typeof value === "string")
|
|
7221
|
-
return
|
|
6923
|
+
return deserialize2(value);
|
|
7222
6924
|
if (typeof value === "object" && value !== null && "r" in value && "s" in value && "yParity" in value)
|
|
7223
6925
|
return { signature: value, type: "secp256k1" };
|
|
7224
6926
|
const type2 = getType(value);
|
|
@@ -7333,7 +7035,7 @@ function getType(envelope) {
|
|
|
7333
7035
|
envelope
|
|
7334
7036
|
});
|
|
7335
7037
|
}
|
|
7336
|
-
function
|
|
7038
|
+
function serialize2(envelope, options = {}) {
|
|
7337
7039
|
const type2 = getType(envelope);
|
|
7338
7040
|
if (type2 === "secp256k1") {
|
|
7339
7041
|
const secp256k12 = envelope;
|
|
@@ -7351,7 +7053,7 @@ function serialize3(envelope, options = {}) {
|
|
|
7351
7053
|
if (type2 === "keychain") {
|
|
7352
7054
|
const keychain = envelope;
|
|
7353
7055
|
const keychainTypeId = keychain.version === "v1" ? serializedKeychainType : serializedKeychainV2Type;
|
|
7354
|
-
return concat4(keychainTypeId, keychain.userAddress,
|
|
7056
|
+
return concat4(keychainTypeId, keychain.userAddress, serialize2(keychain.inner), options.magic ? magicBytes3 : "0x");
|
|
7355
7057
|
}
|
|
7356
7058
|
throw new CoercionError({ envelope });
|
|
7357
7059
|
}
|
|
@@ -7418,7 +7120,7 @@ function verify8(signature2, parameters) {
|
|
|
7418
7120
|
})();
|
|
7419
7121
|
if (!address)
|
|
7420
7122
|
return false;
|
|
7421
|
-
const envelope =
|
|
7123
|
+
const envelope = from13(signature2);
|
|
7422
7124
|
if (envelope.type === "secp256k1") {
|
|
7423
7125
|
if (!address)
|
|
7424
7126
|
return false;
|
|
@@ -7444,7 +7146,7 @@ function verify8(signature2, parameters) {
|
|
|
7444
7146
|
if (!isEqual3(envelopeAddress, address))
|
|
7445
7147
|
return false;
|
|
7446
7148
|
return verify7({
|
|
7447
|
-
challenge:
|
|
7149
|
+
challenge: from4(payload),
|
|
7448
7150
|
metadata: envelope.metadata,
|
|
7449
7151
|
publicKey: envelope.publicKey,
|
|
7450
7152
|
signature: envelope.signature
|
|
@@ -7501,7 +7203,7 @@ var VerificationError2 = class extends BaseError3 {
|
|
|
7501
7203
|
}
|
|
7502
7204
|
};
|
|
7503
7205
|
|
|
7504
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7206
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/TempoAddress.js
|
|
7505
7207
|
function resolve(address) {
|
|
7506
7208
|
if (address.startsWith("tempo"))
|
|
7507
7209
|
return parse(address).address;
|
|
@@ -7527,8 +7229,8 @@ var InvalidPrefixError2 = class extends BaseError3 {
|
|
|
7527
7229
|
}
|
|
7528
7230
|
};
|
|
7529
7231
|
|
|
7530
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7531
|
-
function
|
|
7232
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/AuthorizationTempo.js
|
|
7233
|
+
function from14(authorization, options = {}) {
|
|
7532
7234
|
if (typeof authorization.chainId === "string")
|
|
7533
7235
|
return fromRpc5(authorization);
|
|
7534
7236
|
const resolved = {
|
|
@@ -7561,8 +7263,8 @@ function fromTuple2(tuple) {
|
|
|
7561
7263
|
nonce: nonce2 === "0x" ? 0n : BigInt(nonce2)
|
|
7562
7264
|
};
|
|
7563
7265
|
if (signatureSerialized)
|
|
7564
|
-
args.signature =
|
|
7565
|
-
return
|
|
7266
|
+
args.signature = deserialize2(signatureSerialized);
|
|
7267
|
+
return from14(args);
|
|
7566
7268
|
}
|
|
7567
7269
|
function fromTupleList(tupleList) {
|
|
7568
7270
|
const list2 = [];
|
|
@@ -7584,7 +7286,7 @@ function toRpcList2(authorizationList) {
|
|
|
7584
7286
|
}
|
|
7585
7287
|
function toTuple3(authorization) {
|
|
7586
7288
|
const { address, chainId: chainId2, nonce: nonce2 } = authorization;
|
|
7587
|
-
const signature2 = authorization.signature ?
|
|
7289
|
+
const signature2 = authorization.signature ? serialize2(authorization.signature) : void 0;
|
|
7588
7290
|
return [
|
|
7589
7291
|
chainId2 ? fromNumber2(chainId2) : "0x",
|
|
7590
7292
|
address,
|
|
@@ -7601,20 +7303,20 @@ function toTupleList(list2) {
|
|
|
7601
7303
|
return tupleList;
|
|
7602
7304
|
}
|
|
7603
7305
|
|
|
7604
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7306
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/KeyAuthorization.js
|
|
7605
7307
|
var KeyAuthorization_exports = {};
|
|
7606
7308
|
__export(KeyAuthorization_exports, {
|
|
7607
|
-
deserialize: () =>
|
|
7608
|
-
from: () =>
|
|
7309
|
+
deserialize: () => deserialize3,
|
|
7310
|
+
from: () => from15,
|
|
7609
7311
|
fromRpc: () => fromRpc6,
|
|
7610
7312
|
fromTuple: () => fromTuple3,
|
|
7611
7313
|
getSignPayload: () => getSignPayload3,
|
|
7612
7314
|
hash: () => hash3,
|
|
7613
|
-
serialize: () =>
|
|
7315
|
+
serialize: () => serialize3,
|
|
7614
7316
|
toRpc: () => toRpc6,
|
|
7615
7317
|
toTuple: () => toTuple4
|
|
7616
7318
|
});
|
|
7617
|
-
function
|
|
7319
|
+
function from15(authorization, options = {}) {
|
|
7618
7320
|
if ("keyId" in authorization)
|
|
7619
7321
|
return fromRpc6(authorization);
|
|
7620
7322
|
const auth = authorization;
|
|
@@ -7631,7 +7333,7 @@ function from16(authorization, options = {}) {
|
|
|
7631
7333
|
if (options.signature)
|
|
7632
7334
|
return {
|
|
7633
7335
|
...resolved,
|
|
7634
|
-
signature:
|
|
7336
|
+
signature: from13(options.signature)
|
|
7635
7337
|
};
|
|
7636
7338
|
return resolved;
|
|
7637
7339
|
}
|
|
@@ -7680,13 +7382,13 @@ function fromTuple3(tuple) {
|
|
|
7680
7382
|
} : {}
|
|
7681
7383
|
};
|
|
7682
7384
|
if (signatureSerialized)
|
|
7683
|
-
args.signature =
|
|
7684
|
-
return
|
|
7385
|
+
args.signature = deserialize2(signatureSerialized);
|
|
7386
|
+
return from15(args);
|
|
7685
7387
|
}
|
|
7686
7388
|
function getSignPayload3(authorization) {
|
|
7687
7389
|
return hash3(authorization);
|
|
7688
7390
|
}
|
|
7689
|
-
function
|
|
7391
|
+
function deserialize3(serialized) {
|
|
7690
7392
|
const tuple = toHex4(serialized);
|
|
7691
7393
|
return fromTuple3(tuple);
|
|
7692
7394
|
}
|
|
@@ -7695,7 +7397,7 @@ function hash3(authorization) {
|
|
|
7695
7397
|
const serialized = fromHex4(authorizationTuple);
|
|
7696
7398
|
return keccak2562(serialized);
|
|
7697
7399
|
}
|
|
7698
|
-
function
|
|
7400
|
+
function serialize3(authorization) {
|
|
7699
7401
|
const tuple = toTuple4(authorization);
|
|
7700
7402
|
return fromHex4(tuple);
|
|
7701
7403
|
}
|
|
@@ -7715,7 +7417,7 @@ function toRpc6(authorization) {
|
|
|
7715
7417
|
}
|
|
7716
7418
|
function toTuple4(authorization) {
|
|
7717
7419
|
const { address, chainId: chainId2, expiry, limits } = authorization;
|
|
7718
|
-
const signature2 = authorization.signature ?
|
|
7420
|
+
const signature2 = authorization.signature ? serialize2(authorization.signature) : void 0;
|
|
7719
7421
|
const type2 = (() => {
|
|
7720
7422
|
switch (authorization.type) {
|
|
7721
7423
|
case "secp256k1":
|
|
@@ -7755,22 +7457,22 @@ function hexToNumber2(hex) {
|
|
|
7755
7457
|
return hex === "0x" ? 0 : toNumber3(hex);
|
|
7756
7458
|
}
|
|
7757
7459
|
|
|
7758
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7460
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/PoolId.js
|
|
7759
7461
|
var PoolId_exports = {};
|
|
7760
7462
|
__export(PoolId_exports, {
|
|
7761
|
-
from: () =>
|
|
7463
|
+
from: () => from17
|
|
7762
7464
|
});
|
|
7763
7465
|
|
|
7764
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7466
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/TokenId.js
|
|
7765
7467
|
var TokenId_exports = {};
|
|
7766
7468
|
__export(TokenId_exports, {
|
|
7767
7469
|
compute: () => compute,
|
|
7768
|
-
from: () =>
|
|
7470
|
+
from: () => from16,
|
|
7769
7471
|
fromAddress: () => fromAddress,
|
|
7770
7472
|
toAddress: () => toAddress
|
|
7771
7473
|
});
|
|
7772
7474
|
var tip20Prefix = "0x20c0";
|
|
7773
|
-
function
|
|
7475
|
+
function from16(tokenIdOrAddress) {
|
|
7774
7476
|
if (typeof tokenIdOrAddress === "bigint" || typeof tokenIdOrAddress === "number")
|
|
7775
7477
|
return BigInt(tokenIdOrAddress);
|
|
7776
7478
|
return fromAddress(tokenIdOrAddress);
|
|
@@ -7791,23 +7493,23 @@ function toAddress(tokenId) {
|
|
|
7791
7493
|
return concat4(tip20Prefix, tokenIdHex);
|
|
7792
7494
|
}
|
|
7793
7495
|
function compute(value) {
|
|
7794
|
-
const hash5 = keccak2562(encode2(
|
|
7496
|
+
const hash5 = keccak2562(encode2(from7("address, bytes32"), [
|
|
7795
7497
|
resolve(value.sender),
|
|
7796
7498
|
value.salt
|
|
7797
7499
|
]));
|
|
7798
7500
|
return toBigInt3(slice4(hash5, 0, 8));
|
|
7799
7501
|
}
|
|
7800
7502
|
|
|
7801
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7802
|
-
function
|
|
7503
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/PoolId.js
|
|
7504
|
+
function from17(value) {
|
|
7803
7505
|
return keccak2562(concat4(padLeft(toAddress(value.userToken), 32), padLeft(toAddress(value.validatorToken), 32)));
|
|
7804
7506
|
}
|
|
7805
7507
|
|
|
7806
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7508
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/TokenRole.js
|
|
7807
7509
|
var TokenRole_exports = {};
|
|
7808
7510
|
__export(TokenRole_exports, {
|
|
7809
7511
|
roles: () => roles,
|
|
7810
|
-
serialize: () =>
|
|
7512
|
+
serialize: () => serialize4,
|
|
7811
7513
|
toPreHashed: () => toPreHashed
|
|
7812
7514
|
});
|
|
7813
7515
|
var roles = [
|
|
@@ -7824,13 +7526,13 @@ var toPreHashed = {
|
|
|
7824
7526
|
issuer: "ISSUER_ROLE",
|
|
7825
7527
|
burnBlocked: "BURN_BLOCKED_ROLE"
|
|
7826
7528
|
};
|
|
7827
|
-
function
|
|
7529
|
+
function serialize4(role) {
|
|
7828
7530
|
if (role === "defaultAdmin")
|
|
7829
7531
|
return "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
7830
7532
|
return keccak2562(fromString3(toPreHashed[role] ?? role));
|
|
7831
7533
|
}
|
|
7832
7534
|
|
|
7833
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7535
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/Transaction.js
|
|
7834
7536
|
var Transaction_exports = {};
|
|
7835
7537
|
__export(Transaction_exports, {
|
|
7836
7538
|
fromRpc: () => fromRpc8,
|
|
@@ -7839,7 +7541,7 @@ __export(Transaction_exports, {
|
|
|
7839
7541
|
toRpcType: () => toRpcType2
|
|
7840
7542
|
});
|
|
7841
7543
|
|
|
7842
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7544
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Transaction.js
|
|
7843
7545
|
var toRpcType = {
|
|
7844
7546
|
legacy: "0x0",
|
|
7845
7547
|
eip2930: "0x1",
|
|
@@ -7926,7 +7628,7 @@ function toRpc7(transaction, _options) {
|
|
|
7926
7628
|
return rpc;
|
|
7927
7629
|
}
|
|
7928
7630
|
|
|
7929
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7631
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/Transaction.js
|
|
7930
7632
|
var toRpcType2 = {
|
|
7931
7633
|
...toRpcType,
|
|
7932
7634
|
tempo: "0x76"
|
|
@@ -7997,13 +7699,13 @@ function toRpc8(transaction, _options) {
|
|
|
7997
7699
|
return rpc;
|
|
7998
7700
|
}
|
|
7999
7701
|
|
|
8000
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7702
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/TransactionRequest.js
|
|
8001
7703
|
var TransactionRequest_exports = {};
|
|
8002
7704
|
__export(TransactionRequest_exports, {
|
|
8003
7705
|
toRpc: () => toRpc10
|
|
8004
7706
|
});
|
|
8005
7707
|
|
|
8006
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7708
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/TransactionRequest.js
|
|
8007
7709
|
function toRpc9(request) {
|
|
8008
7710
|
const request_rpc = {};
|
|
8009
7711
|
if (typeof request.accessList !== "undefined")
|
|
@@ -8048,7 +7750,7 @@ function toRpc9(request) {
|
|
|
8048
7750
|
return request_rpc;
|
|
8049
7751
|
}
|
|
8050
7752
|
|
|
8051
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7753
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/TransactionRequest.js
|
|
8052
7754
|
function toRpc10(request) {
|
|
8053
7755
|
const request_rpc = toRpc9({
|
|
8054
7756
|
...request,
|
|
@@ -8089,25 +7791,25 @@ function toRpc10(request) {
|
|
|
8089
7791
|
return request_rpc;
|
|
8090
7792
|
}
|
|
8091
7793
|
|
|
8092
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7794
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/TxEnvelopeTempo.js
|
|
8093
7795
|
var TxEnvelopeTempo_exports = {};
|
|
8094
7796
|
__export(TxEnvelopeTempo_exports, {
|
|
8095
7797
|
CallsEmptyError: () => CallsEmptyError,
|
|
8096
7798
|
InvalidValidityWindowError: () => InvalidValidityWindowError,
|
|
8097
7799
|
assert: () => assert9,
|
|
8098
|
-
deserialize: () =>
|
|
7800
|
+
deserialize: () => deserialize4,
|
|
8099
7801
|
feePayerMagic: () => feePayerMagic,
|
|
8100
|
-
from: () =>
|
|
7802
|
+
from: () => from18,
|
|
8101
7803
|
getFeePayerSignPayload: () => getFeePayerSignPayload,
|
|
8102
7804
|
getSignPayload: () => getSignPayload4,
|
|
8103
7805
|
hash: () => hash4,
|
|
8104
|
-
serialize: () =>
|
|
7806
|
+
serialize: () => serialize5,
|
|
8105
7807
|
serializedType: () => serializedType,
|
|
8106
7808
|
type: () => type,
|
|
8107
7809
|
validate: () => validate8
|
|
8108
7810
|
});
|
|
8109
7811
|
|
|
8110
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7812
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/AccessList.js
|
|
8111
7813
|
function fromTupleList2(accessList) {
|
|
8112
7814
|
const list2 = [];
|
|
8113
7815
|
for (let i = 0; i < accessList.length; i++) {
|
|
@@ -8149,7 +7851,7 @@ var InvalidStorageKeySizeError2 = class extends BaseError3 {
|
|
|
8149
7851
|
}
|
|
8150
7852
|
};
|
|
8151
7853
|
|
|
8152
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7854
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Value.js
|
|
8153
7855
|
var exponents = {
|
|
8154
7856
|
wei: 0,
|
|
8155
7857
|
gwei: 9,
|
|
@@ -8174,7 +7876,7 @@ function formatGwei2(wei, unit = "wei") {
|
|
|
8174
7876
|
return format(wei, exponents.gwei - exponents[unit]);
|
|
8175
7877
|
}
|
|
8176
7878
|
|
|
8177
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7879
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/TxEnvelope.js
|
|
8178
7880
|
var FeeCapTooHighError2 = class extends BaseError3 {
|
|
8179
7881
|
constructor({ feeCap } = {}) {
|
|
8180
7882
|
super(`The fee cap (\`maxFeePerGas\`/\`maxPriorityFeePerGas\`${feeCap ? ` = ${formatGwei2(feeCap)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`);
|
|
@@ -8228,7 +7930,7 @@ var TipAboveFeeCapError2 = class extends BaseError3 {
|
|
|
8228
7930
|
}
|
|
8229
7931
|
};
|
|
8230
7932
|
|
|
8231
|
-
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.
|
|
7933
|
+
// ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/tempo/TxEnvelopeTempo.js
|
|
8232
7934
|
var feePayerMagic = "0x78";
|
|
8233
7935
|
var serializedType = "0x76";
|
|
8234
7936
|
var type = "tempo";
|
|
@@ -8259,7 +7961,7 @@ function assert9(envelope) {
|
|
|
8259
7961
|
maxPriorityFeePerGas
|
|
8260
7962
|
});
|
|
8261
7963
|
}
|
|
8262
|
-
function
|
|
7964
|
+
function deserialize4(serialized) {
|
|
8263
7965
|
const transactionArray = toHex4(slice4(serialized, 1));
|
|
8264
7966
|
const [chainId2, maxPriorityFeePerGas, maxFeePerGas, gas, calls, accessList, nonceKey, nonce2, validBefore, validAfter, feeToken, feePayerSignatureOrSender, authorizationList, keyAuthorizationOrSignature, maybeSignature] = transactionArray;
|
|
8265
7967
|
const keyAuthorization = Array.isArray(keyAuthorizationOrSignature) ? keyAuthorizationOrSignature : void 0;
|
|
@@ -8336,7 +8038,7 @@ function deserialize6(serialized) {
|
|
|
8336
8038
|
}
|
|
8337
8039
|
if (keyAuthorization)
|
|
8338
8040
|
transaction.keyAuthorization = fromTuple3(keyAuthorization);
|
|
8339
|
-
const signatureEnvelope = signature2 ?
|
|
8041
|
+
const signatureEnvelope = signature2 ? deserialize2(signature2) : void 0;
|
|
8340
8042
|
if (signatureEnvelope)
|
|
8341
8043
|
transaction = {
|
|
8342
8044
|
...transaction,
|
|
@@ -8345,7 +8047,7 @@ function deserialize6(serialized) {
|
|
|
8345
8047
|
if (!transaction.from && signatureEnvelope) {
|
|
8346
8048
|
try {
|
|
8347
8049
|
transaction.from = extractAddress({
|
|
8348
|
-
payload: getSignPayload4(
|
|
8050
|
+
payload: getSignPayload4(from18(transaction)),
|
|
8349
8051
|
signature: signatureEnvelope,
|
|
8350
8052
|
root: true
|
|
8351
8053
|
});
|
|
@@ -8355,9 +8057,9 @@ function deserialize6(serialized) {
|
|
|
8355
8057
|
assert9(transaction);
|
|
8356
8058
|
return transaction;
|
|
8357
8059
|
}
|
|
8358
|
-
function
|
|
8060
|
+
function from18(envelope, options = {}) {
|
|
8359
8061
|
const { feePayerSignature, signature: signature2 } = options;
|
|
8360
|
-
const envelope_ = typeof envelope === "string" ?
|
|
8062
|
+
const envelope_ = typeof envelope === "string" ? deserialize4(envelope) : envelope;
|
|
8361
8063
|
if (envelope_.from)
|
|
8362
8064
|
envelope_.from = resolve(envelope_.from);
|
|
8363
8065
|
if (envelope_.calls)
|
|
@@ -8368,12 +8070,12 @@ function from19(envelope, options = {}) {
|
|
|
8368
8070
|
assert9(envelope_);
|
|
8369
8071
|
return {
|
|
8370
8072
|
...envelope_,
|
|
8371
|
-
...signature2 ? { signature:
|
|
8372
|
-
...feePayerSignature ? { feePayerSignature:
|
|
8073
|
+
...signature2 ? { signature: from13(signature2) } : {},
|
|
8074
|
+
...feePayerSignature ? { feePayerSignature: from9(feePayerSignature) } : {},
|
|
8373
8075
|
type: "tempo"
|
|
8374
8076
|
};
|
|
8375
8077
|
}
|
|
8376
|
-
function
|
|
8078
|
+
function serialize5(envelope, options = {}) {
|
|
8377
8079
|
const { accessList, authorizationList, calls, chainId: chainId2, feeToken, gas, keyAuthorization, nonce: nonce2, nonceKey, maxFeePerGas, maxPriorityFeePerGas, validBefore, validAfter } = envelope;
|
|
8378
8080
|
assert9(envelope);
|
|
8379
8081
|
const accessTupleList = toTupleList2(accessList);
|
|
@@ -8389,14 +8091,14 @@ function serialize6(envelope, options = {}) {
|
|
|
8389
8091
|
if (options.sender)
|
|
8390
8092
|
return options.sender;
|
|
8391
8093
|
if (options.format === "feePayer" && signature2) {
|
|
8392
|
-
const sig =
|
|
8094
|
+
const sig = from13(signature2);
|
|
8393
8095
|
if (sig.type === "keychain")
|
|
8394
8096
|
return sig.userAddress;
|
|
8395
8097
|
if (sig.type === "p256" || sig.type === "webAuthn")
|
|
8396
8098
|
return fromPublicKey2(sig.publicKey);
|
|
8397
8099
|
if (sig.type === "secp256k1")
|
|
8398
8100
|
return recoverAddress2({
|
|
8399
|
-
payload: getSignPayload4(
|
|
8101
|
+
payload: getSignPayload4(from18(envelope)),
|
|
8400
8102
|
signature: sig.signature
|
|
8401
8103
|
});
|
|
8402
8104
|
}
|
|
@@ -8424,7 +8126,7 @@ function serialize6(envelope, options = {}) {
|
|
|
8424
8126
|
feePayerSignatureOrSender,
|
|
8425
8127
|
authorizationTupleList,
|
|
8426
8128
|
...keyAuthorization ? [toTuple4(keyAuthorization)] : [],
|
|
8427
|
-
...signature2 ? [
|
|
8129
|
+
...signature2 ? [serialize2(from13(signature2))] : []
|
|
8428
8130
|
];
|
|
8429
8131
|
return concat4(options.format === "feePayer" ? feePayerMagic : serializedType, fromHex4(serialized));
|
|
8430
8132
|
}
|
|
@@ -8435,7 +8137,7 @@ function getSignPayload4(envelope, options = {}) {
|
|
|
8435
8137
|
return sigHash;
|
|
8436
8138
|
}
|
|
8437
8139
|
function hash4(envelope, options = {}) {
|
|
8438
|
-
const serialized =
|
|
8140
|
+
const serialized = serialize5({
|
|
8439
8141
|
...envelope,
|
|
8440
8142
|
...options.presign ? {
|
|
8441
8143
|
signature: void 0,
|
|
@@ -8448,7 +8150,7 @@ function hash4(envelope, options = {}) {
|
|
|
8448
8150
|
}
|
|
8449
8151
|
function getFeePayerSignPayload(envelope, options) {
|
|
8450
8152
|
const sender = resolve(options.sender);
|
|
8451
|
-
const serialized =
|
|
8153
|
+
const serialized = serialize5({ ...envelope, signature: void 0 }, {
|
|
8452
8154
|
sender,
|
|
8453
8155
|
format: "feePayer"
|
|
8454
8156
|
});
|
|
@@ -8485,7 +8187,7 @@ var InvalidValidityWindowError = class extends BaseError3 {
|
|
|
8485
8187
|
}
|
|
8486
8188
|
};
|
|
8487
8189
|
|
|
8488
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
8190
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/Transaction.js
|
|
8489
8191
|
function getType2(transaction) {
|
|
8490
8192
|
const account = transaction.account;
|
|
8491
8193
|
if (account?.keyType && account.keyType !== "secp256k1" || typeof transaction.calls !== "undefined" || typeof transaction.feePayer !== "undefined" || typeof transaction.feeToken !== "undefined" || typeof transaction.keyAuthorization !== "undefined" || typeof transaction.nonceKey !== "undefined" || typeof transaction.signature !== "undefined" || typeof transaction.validBefore !== "undefined" || typeof transaction.validAfter !== "undefined")
|
|
@@ -8502,13 +8204,13 @@ function isTempo(transaction) {
|
|
|
8502
8204
|
return false;
|
|
8503
8205
|
}
|
|
8504
8206
|
}
|
|
8505
|
-
function
|
|
8207
|
+
function deserialize5(serializedTransaction) {
|
|
8506
8208
|
const type2 = slice4(serializedTransaction, 0, 1);
|
|
8507
8209
|
if (type2 === "0x76" || type2 === "0x78")
|
|
8508
8210
|
return deserializeTempo(serializedTransaction);
|
|
8509
8211
|
return parseTransaction(serializedTransaction);
|
|
8510
8212
|
}
|
|
8511
|
-
async function
|
|
8213
|
+
async function serialize6(transaction, signature2) {
|
|
8512
8214
|
if (!isTempo(transaction)) {
|
|
8513
8215
|
if (signature2 && "type" in signature2 && signature2.type !== "secp256k1")
|
|
8514
8216
|
throw new Error("Unsupported signature type. Expected `secp256k1` but got `" + signature2.type + "`.");
|
|
@@ -8595,7 +8297,7 @@ async function serializeTempo(transaction, sig) {
|
|
|
8595
8297
|
hash: hash5
|
|
8596
8298
|
});
|
|
8597
8299
|
return TxEnvelopeTempo_exports.serialize(tx, {
|
|
8598
|
-
feePayerSignature:
|
|
8300
|
+
feePayerSignature: from9(feePayerSignature2)
|
|
8599
8301
|
});
|
|
8600
8302
|
}
|
|
8601
8303
|
if (feePayer === true) {
|
|
@@ -8620,7 +8322,7 @@ async function serializeTempo(transaction, sig) {
|
|
|
8620
8322
|
);
|
|
8621
8323
|
}
|
|
8622
8324
|
|
|
8623
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
8325
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/Formatters.js
|
|
8624
8326
|
function formatTransaction2(transaction) {
|
|
8625
8327
|
if (!isTempo(transaction))
|
|
8626
8328
|
return formatTransaction(transaction);
|
|
@@ -8690,7 +8392,7 @@ function formatTransactionRequest2(r, action) {
|
|
|
8690
8392
|
};
|
|
8691
8393
|
}
|
|
8692
8394
|
|
|
8693
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
8395
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/internal/concurrent.js
|
|
8694
8396
|
var concurrentCounts = /* @__PURE__ */ new Map();
|
|
8695
8397
|
async function detect(key) {
|
|
8696
8398
|
concurrentCounts.set(key, (concurrentCounts.get(key) ?? 0) + 1);
|
|
@@ -8706,7 +8408,7 @@ async function detect(key) {
|
|
|
8706
8408
|
return isConcurrent;
|
|
8707
8409
|
}
|
|
8708
8410
|
|
|
8709
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
8411
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/chainConfig.js
|
|
8710
8412
|
var maxExpirySecs = 25;
|
|
8711
8413
|
var chainConfig = {
|
|
8712
8414
|
blockTime: 1e3,
|
|
@@ -8757,7 +8459,7 @@ var chainConfig = {
|
|
|
8757
8459
|
],
|
|
8758
8460
|
serializers: {
|
|
8759
8461
|
// TODO: casting to satisfy viem – viem v3 to have more flexible serializer type.
|
|
8760
|
-
transaction: ((transaction, signature2) =>
|
|
8462
|
+
transaction: ((transaction, signature2) => serialize6(transaction, signature2))
|
|
8761
8463
|
},
|
|
8762
8464
|
async verifyHash(client, parameters) {
|
|
8763
8465
|
const { address, hash: hash5, signature: signature2 } = parameters;
|
|
@@ -8784,7 +8486,7 @@ var chainConfig = {
|
|
|
8784
8486
|
}
|
|
8785
8487
|
};
|
|
8786
8488
|
|
|
8787
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
8489
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/tempo.js
|
|
8788
8490
|
var tempo = /* @__PURE__ */ defineChain({
|
|
8789
8491
|
...chainConfig,
|
|
8790
8492
|
id: 4217,
|
|
@@ -8808,7 +8510,7 @@ var tempo = /* @__PURE__ */ defineChain({
|
|
|
8808
8510
|
}
|
|
8809
8511
|
});
|
|
8810
8512
|
|
|
8811
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
8513
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/Abis.js
|
|
8812
8514
|
var Abis_exports = {};
|
|
8813
8515
|
__export(Abis_exports, {
|
|
8814
8516
|
accountKeychain: () => accountKeychain,
|
|
@@ -10383,7 +10085,7 @@ var validator = [
|
|
|
10383
10085
|
}
|
|
10384
10086
|
];
|
|
10385
10087
|
|
|
10386
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
10088
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/Account.js
|
|
10387
10089
|
async function signKeyAuthorization(account, parameters) {
|
|
10388
10090
|
const { chainId: chainId2, key, expiry, limits } = parameters;
|
|
10389
10091
|
const { accessKeyAddress, keyType: type2 } = key;
|
|
@@ -10406,7 +10108,7 @@ async function signKeyAuthorization(account, parameters) {
|
|
|
10406
10108
|
});
|
|
10407
10109
|
}
|
|
10408
10110
|
|
|
10409
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
10111
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/Addresses.js
|
|
10410
10112
|
var Addresses_exports = {};
|
|
10411
10113
|
__export(Addresses_exports, {
|
|
10412
10114
|
accountImplementation: () => accountImplementation,
|
|
@@ -10431,7 +10133,7 @@ var tip20Factory2 = "0x20fc000000000000000000000000000000000000";
|
|
|
10431
10133
|
var tip403Registry2 = "0x403c000000000000000000000000000000000000";
|
|
10432
10134
|
var validator2 = "0xcccccccc00000000000000000000000000000000";
|
|
10433
10135
|
|
|
10434
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
10136
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/actions/index.js
|
|
10435
10137
|
var actions_exports = {};
|
|
10436
10138
|
__export(actions_exports, {
|
|
10437
10139
|
accessKey: () => accessKey_exports,
|
|
@@ -10446,7 +10148,7 @@ __export(actions_exports, {
|
|
|
10446
10148
|
validator: () => validator_exports
|
|
10447
10149
|
});
|
|
10448
10150
|
|
|
10449
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
10151
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/actions/accessKey.js
|
|
10450
10152
|
var accessKey_exports = {};
|
|
10451
10153
|
__export(accessKey_exports, {
|
|
10452
10154
|
authorize: () => authorize,
|
|
@@ -10460,7 +10162,7 @@ __export(accessKey_exports, {
|
|
|
10460
10162
|
updateLimitSync: () => updateLimitSync
|
|
10461
10163
|
});
|
|
10462
10164
|
|
|
10463
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
10165
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/internal/utils.js
|
|
10464
10166
|
function defineCall(call2) {
|
|
10465
10167
|
return {
|
|
10466
10168
|
...call2,
|
|
@@ -10469,7 +10171,7 @@ function defineCall(call2) {
|
|
|
10469
10171
|
};
|
|
10470
10172
|
}
|
|
10471
10173
|
|
|
10472
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
10174
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/actions/accessKey.js
|
|
10473
10175
|
var signatureTypes = {
|
|
10474
10176
|
0: "secp256k1",
|
|
10475
10177
|
1: "p256",
|
|
@@ -10698,7 +10400,7 @@ function resolveAccessKey(accessKey) {
|
|
|
10698
10400
|
return accessKey.accessKeyAddress;
|
|
10699
10401
|
}
|
|
10700
10402
|
|
|
10701
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
10403
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/actions/amm.js
|
|
10702
10404
|
var amm_exports = {};
|
|
10703
10405
|
__export(amm_exports, {
|
|
10704
10406
|
burn: () => burn,
|
|
@@ -11010,7 +10712,7 @@ function watchBurn(client, parameters) {
|
|
|
11010
10712
|
});
|
|
11011
10713
|
}
|
|
11012
10714
|
|
|
11013
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
10715
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/actions/dex.js
|
|
11014
10716
|
var dex_exports = {};
|
|
11015
10717
|
__export(dex_exports, {
|
|
11016
10718
|
buy: () => buy,
|
|
@@ -11574,7 +11276,7 @@ function getPairKey(base, quote) {
|
|
|
11574
11276
|
return keccak2562(concat4(base, quote));
|
|
11575
11277
|
}
|
|
11576
11278
|
|
|
11577
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
11279
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/actions/faucet.js
|
|
11578
11280
|
var faucet_exports = {};
|
|
11579
11281
|
__export(faucet_exports, {
|
|
11580
11282
|
fund: () => fund,
|
|
@@ -11602,7 +11304,7 @@ async function fundSync(client, parameters) {
|
|
|
11602
11304
|
return receipts;
|
|
11603
11305
|
}
|
|
11604
11306
|
|
|
11605
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
11307
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/actions/fee.js
|
|
11606
11308
|
var fee_exports = {};
|
|
11607
11309
|
__export(fee_exports, {
|
|
11608
11310
|
getUserToken: () => getUserToken,
|
|
@@ -11792,7 +11494,7 @@ function watchSetValidatorToken(client, parameters) {
|
|
|
11792
11494
|
});
|
|
11793
11495
|
}
|
|
11794
11496
|
|
|
11795
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
11497
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/actions/nonce.js
|
|
11796
11498
|
var nonce_exports = {};
|
|
11797
11499
|
__export(nonce_exports, {
|
|
11798
11500
|
getNonce: () => getNonce,
|
|
@@ -11832,7 +11534,7 @@ function watchNonceIncremented(client, parameters) {
|
|
|
11832
11534
|
});
|
|
11833
11535
|
}
|
|
11834
11536
|
|
|
11835
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
11537
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/actions/policy.js
|
|
11836
11538
|
var policy_exports = {};
|
|
11837
11539
|
__export(policy_exports, {
|
|
11838
11540
|
create: () => create2,
|
|
@@ -12171,7 +11873,7 @@ function watchBlacklistUpdated(client, parameters) {
|
|
|
12171
11873
|
});
|
|
12172
11874
|
}
|
|
12173
11875
|
|
|
12174
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
11876
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/actions/reward.js
|
|
12175
11877
|
var reward_exports = {};
|
|
12176
11878
|
__export(reward_exports, {
|
|
12177
11879
|
claim: () => claim,
|
|
@@ -12399,7 +12101,7 @@ function watchRewardRecipientSet(client, parameters) {
|
|
|
12399
12101
|
});
|
|
12400
12102
|
}
|
|
12401
12103
|
|
|
12402
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
12104
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/actions/token.js
|
|
12403
12105
|
var token_exports = {};
|
|
12404
12106
|
__export(token_exports, {
|
|
12405
12107
|
approve: () => approve,
|
|
@@ -12497,8 +12199,8 @@ async function burnBlocked(client, parameters) {
|
|
|
12497
12199
|
}
|
|
12498
12200
|
(function(burnBlocked2) {
|
|
12499
12201
|
async function inner(action, client, parameters) {
|
|
12500
|
-
const { amount: amount2, from:
|
|
12501
|
-
const call3 = burnBlocked2.call({ amount: amount2, from:
|
|
12202
|
+
const { amount: amount2, from: from22, token, ...rest } = parameters;
|
|
12203
|
+
const call3 = burnBlocked2.call({ amount: amount2, from: from22, token });
|
|
12502
12204
|
return await action(client, {
|
|
12503
12205
|
...rest,
|
|
12504
12206
|
...call3
|
|
@@ -12506,12 +12208,12 @@ async function burnBlocked(client, parameters) {
|
|
|
12506
12208
|
}
|
|
12507
12209
|
burnBlocked2.inner = inner;
|
|
12508
12210
|
function call2(args) {
|
|
12509
|
-
const { from:
|
|
12211
|
+
const { from: from22, amount: amount2, token } = args;
|
|
12510
12212
|
return defineCall({
|
|
12511
12213
|
address: TokenId_exports.toAddress(token),
|
|
12512
12214
|
abi: tip20,
|
|
12513
12215
|
functionName: "burnBlocked",
|
|
12514
|
-
args: [
|
|
12216
|
+
args: [from22, amount2]
|
|
12515
12217
|
});
|
|
12516
12218
|
}
|
|
12517
12219
|
burnBlocked2.call = call2;
|
|
@@ -13114,13 +12816,13 @@ async function revokeRoles(client, parameters) {
|
|
|
13114
12816
|
}
|
|
13115
12817
|
revokeRoles2.inner = inner;
|
|
13116
12818
|
function call2(args) {
|
|
13117
|
-
const { token, from:
|
|
12819
|
+
const { token, from: from22, role } = args;
|
|
13118
12820
|
const roleHash = TokenRole_exports.serialize(role);
|
|
13119
12821
|
return defineCall({
|
|
13120
12822
|
address: TokenId_exports.toAddress(token),
|
|
13121
12823
|
abi: tip20,
|
|
13122
12824
|
functionName: "revokeRole",
|
|
13123
|
-
args: [roleHash,
|
|
12825
|
+
args: [roleHash, from22]
|
|
13124
12826
|
});
|
|
13125
12827
|
}
|
|
13126
12828
|
revokeRoles2.call = call2;
|
|
@@ -13250,8 +12952,8 @@ async function transfer(client, parameters) {
|
|
|
13250
12952
|
}
|
|
13251
12953
|
(function(transfer2) {
|
|
13252
12954
|
async function inner(action, client, parameters) {
|
|
13253
|
-
const { amount: amount2, from:
|
|
13254
|
-
const call3 = transfer2.call({ amount: amount2, from:
|
|
12955
|
+
const { amount: amount2, from: from22, memo, token, to: to2, ...rest } = parameters;
|
|
12956
|
+
const call3 = transfer2.call({ amount: amount2, from: from22, memo, token, to: to2 });
|
|
13255
12957
|
return await action(client, {
|
|
13256
12958
|
...rest,
|
|
13257
12959
|
...call3
|
|
@@ -13259,22 +12961,22 @@ async function transfer(client, parameters) {
|
|
|
13259
12961
|
}
|
|
13260
12962
|
transfer2.inner = inner;
|
|
13261
12963
|
function call2(args) {
|
|
13262
|
-
const { amount: amount2, from:
|
|
12964
|
+
const { amount: amount2, from: from22, memo, token, to: to2 } = args;
|
|
13263
12965
|
const callArgs = (() => {
|
|
13264
|
-
if (memo &&
|
|
12966
|
+
if (memo && from22)
|
|
13265
12967
|
return {
|
|
13266
12968
|
functionName: "transferFromWithMemo",
|
|
13267
|
-
args: [
|
|
12969
|
+
args: [from22, to2, amount2, padLeft(memo, 32)]
|
|
13268
12970
|
};
|
|
13269
12971
|
if (memo)
|
|
13270
12972
|
return {
|
|
13271
12973
|
functionName: "transferWithMemo",
|
|
13272
12974
|
args: [to2, amount2, padLeft(memo, 32)]
|
|
13273
12975
|
};
|
|
13274
|
-
if (
|
|
12976
|
+
if (from22)
|
|
13275
12977
|
return {
|
|
13276
12978
|
functionName: "transferFrom",
|
|
13277
|
-
args: [
|
|
12979
|
+
args: [from22, to2, amount2]
|
|
13278
12980
|
};
|
|
13279
12981
|
return {
|
|
13280
12982
|
functionName: "transfer",
|
|
@@ -13566,7 +13268,7 @@ function watchUpdateQuoteToken(client, parameters) {
|
|
|
13566
13268
|
});
|
|
13567
13269
|
}
|
|
13568
13270
|
|
|
13569
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
13271
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/actions/validator.js
|
|
13570
13272
|
var validator_exports = {};
|
|
13571
13273
|
__export(validator_exports, {
|
|
13572
13274
|
add: () => add,
|
|
@@ -13870,7 +13572,7 @@ async function updateSync(client, parameters) {
|
|
|
13870
13572
|
return { receipt };
|
|
13871
13573
|
}
|
|
13872
13574
|
|
|
13873
|
-
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.
|
|
13575
|
+
// ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/tempo/Transport.js
|
|
13874
13576
|
function withFeePayer(defaultTransport, relayTransport, parameters) {
|
|
13875
13577
|
const { policy = "sign-only" } = parameters ?? {};
|
|
13876
13578
|
return (config) => {
|
|
@@ -13882,7 +13584,7 @@ function withFeePayer(defaultTransport, relayTransport, parameters) {
|
|
|
13882
13584
|
async request({ method, params }, options) {
|
|
13883
13585
|
if (method === "eth_sendRawTransactionSync" || method === "eth_sendRawTransaction") {
|
|
13884
13586
|
const serialized = params[0];
|
|
13885
|
-
const transaction =
|
|
13587
|
+
const transaction = deserialize5(serialized);
|
|
13886
13588
|
if (transaction.feePayerSignature === null) {
|
|
13887
13589
|
if (policy === "sign-and-broadcast")
|
|
13888
13590
|
return transport_relay.request({ method, params }, options);
|
|
@@ -13902,7 +13604,7 @@ function withFeePayer(defaultTransport, relayTransport, parameters) {
|
|
|
13902
13604
|
};
|
|
13903
13605
|
}
|
|
13904
13606
|
|
|
13905
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
13607
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/viem/Account.js
|
|
13906
13608
|
function getResolver(parameters = {}) {
|
|
13907
13609
|
const { account: defaultAccount } = parameters;
|
|
13908
13610
|
return (client, { account: override } = {}) => {
|
|
@@ -13916,7 +13618,7 @@ function getResolver(parameters = {}) {
|
|
|
13916
13618
|
};
|
|
13917
13619
|
}
|
|
13918
13620
|
|
|
13919
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
13621
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/viem/Client.js
|
|
13920
13622
|
function getResolver2(parameters) {
|
|
13921
13623
|
const { chain, feePayerUrl, getClient, rpcUrl: rpcUrl2 } = parameters;
|
|
13922
13624
|
if (getClient) {
|
|
@@ -13962,7 +13664,7 @@ function getResolver2(parameters) {
|
|
|
13962
13664
|
};
|
|
13963
13665
|
}
|
|
13964
13666
|
|
|
13965
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
13667
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/Attribution.js
|
|
13966
13668
|
var tag = Hex_exports.slice(Hash_exports.keccak256(Bytes_exports.fromString("mpp"), { as: "Hex" }), 0, 4);
|
|
13967
13669
|
var version = 1;
|
|
13968
13670
|
function fingerprint(value) {
|
|
@@ -13982,12 +13684,12 @@ function encode3(parameters) {
|
|
|
13982
13684
|
return Hex_exports.fromBytes(buf);
|
|
13983
13685
|
}
|
|
13984
13686
|
|
|
13985
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
13687
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/internal/address.js
|
|
13986
13688
|
function isEqual4(a, b) {
|
|
13987
13689
|
return a.toLowerCase() === b.toLowerCase();
|
|
13988
13690
|
}
|
|
13989
13691
|
|
|
13990
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
13692
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/internal/defaults.js
|
|
13991
13693
|
var chainId = {
|
|
13992
13694
|
mainnet: 4217,
|
|
13993
13695
|
testnet: 42431
|
|
@@ -14012,7 +13714,7 @@ var rpcUrl = {
|
|
|
14012
13714
|
[chainId.testnet]: "https://rpc.moderato.tempo.xyz"
|
|
14013
13715
|
};
|
|
14014
13716
|
|
|
14015
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
13717
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/internal/auto-swap.js
|
|
14016
13718
|
var bps = 10000n;
|
|
14017
13719
|
var defaultCurrencies = [
|
|
14018
13720
|
tokens.pathUsd,
|
|
@@ -14084,8 +13786,8 @@ var InsufficientFundsError = class extends Error {
|
|
|
14084
13786
|
}
|
|
14085
13787
|
};
|
|
14086
13788
|
|
|
14087
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
14088
|
-
var charge3 =
|
|
13789
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/Methods.js
|
|
13790
|
+
var charge3 = from2({
|
|
14089
13791
|
name: "tempo",
|
|
14090
13792
|
intent: "charge",
|
|
14091
13793
|
schema: {
|
|
@@ -14118,7 +13820,7 @@ var charge3 = from5({
|
|
|
14118
13820
|
})))
|
|
14119
13821
|
}
|
|
14120
13822
|
});
|
|
14121
|
-
var session =
|
|
13823
|
+
var session = from2({
|
|
14122
13824
|
name: "tempo",
|
|
14123
13825
|
intent: "session",
|
|
14124
13826
|
schema: {
|
|
@@ -14185,7 +13887,7 @@ var session = from5({
|
|
|
14185
13887
|
}
|
|
14186
13888
|
});
|
|
14187
13889
|
|
|
14188
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
13890
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/client/Charge.js
|
|
14189
13891
|
function charge4(parameters = {}) {
|
|
14190
13892
|
const { clientId } = parameters;
|
|
14191
13893
|
const getClient = getResolver2({
|
|
@@ -14234,7 +13936,7 @@ function charge4(parameters = {}) {
|
|
|
14234
13936
|
const hash5 = receipts?.[0]?.transactionHash;
|
|
14235
13937
|
if (!hash5)
|
|
14236
13938
|
throw new Error("No transaction receipt returned.");
|
|
14237
|
-
return
|
|
13939
|
+
return serialize({
|
|
14238
13940
|
challenge,
|
|
14239
13941
|
payload: { hash: hash5, type: "hash" },
|
|
14240
13942
|
source: `did:pkh:eip155:${chainId2}:${account.address}`
|
|
@@ -14248,7 +13950,7 @@ function charge4(parameters = {}) {
|
|
|
14248
13950
|
});
|
|
14249
13951
|
prepared.gas = prepared.gas + 5000n;
|
|
14250
13952
|
const signature2 = await signTransaction(client, prepared);
|
|
14251
|
-
return
|
|
13953
|
+
return serialize({
|
|
14252
13954
|
challenge,
|
|
14253
13955
|
payload: { signature: signature2, type: "transaction" },
|
|
14254
13956
|
source: `did:pkh:eip155:${chainId2}:${account.address}`
|
|
@@ -14265,14 +13967,14 @@ __export(SignatureEnvelope_exports2, {
|
|
|
14265
13967
|
MissingPropertiesError: () => MissingPropertiesError3,
|
|
14266
13968
|
VerificationError: () => VerificationError3,
|
|
14267
13969
|
assert: () => assert10,
|
|
14268
|
-
deserialize: () =>
|
|
13970
|
+
deserialize: () => deserialize6,
|
|
14269
13971
|
extractAddress: () => extractAddress2,
|
|
14270
13972
|
extractPublicKey: () => extractPublicKey2,
|
|
14271
|
-
from: () =>
|
|
13973
|
+
from: () => from19,
|
|
14272
13974
|
fromRpc: () => fromRpc9,
|
|
14273
13975
|
getType: () => getType3,
|
|
14274
13976
|
magicBytes: () => magicBytes4,
|
|
14275
|
-
serialize: () =>
|
|
13977
|
+
serialize: () => serialize7,
|
|
14276
13978
|
toRpc: () => toRpc11,
|
|
14277
13979
|
types: () => types2,
|
|
14278
13980
|
validate: () => validate9,
|
|
@@ -14369,7 +14071,7 @@ function extractPublicKey2(options) {
|
|
|
14369
14071
|
return extractPublicKey2({ payload, signature: signature2.inner });
|
|
14370
14072
|
}
|
|
14371
14073
|
}
|
|
14372
|
-
function
|
|
14074
|
+
function deserialize6(value) {
|
|
14373
14075
|
const serialized = value.endsWith(magicBytes4.slice(2)) ? slice(value, 0, -size(magicBytes4)) : value;
|
|
14374
14076
|
const size6 = size(serialized);
|
|
14375
14077
|
if (size6 === 65) {
|
|
@@ -14446,7 +14148,7 @@ function deserialize8(value) {
|
|
|
14446
14148
|
}
|
|
14447
14149
|
if (typeId === serializedKeychainType2 || typeId === serializedKeychainV2Type2) {
|
|
14448
14150
|
const userAddress = slice(data, 0, 20);
|
|
14449
|
-
const inner =
|
|
14151
|
+
const inner = deserialize6(slice(data, 20));
|
|
14450
14152
|
return {
|
|
14451
14153
|
userAddress,
|
|
14452
14154
|
inner,
|
|
@@ -14459,9 +14161,9 @@ function deserialize8(value) {
|
|
|
14459
14161
|
serialized
|
|
14460
14162
|
});
|
|
14461
14163
|
}
|
|
14462
|
-
function
|
|
14164
|
+
function from19(value, options) {
|
|
14463
14165
|
if (typeof value === "string")
|
|
14464
|
-
return
|
|
14166
|
+
return deserialize6(value);
|
|
14465
14167
|
if (typeof value === "object" && value !== null && "r" in value && "s" in value && "yParity" in value)
|
|
14466
14168
|
return { signature: value, type: "secp256k1" };
|
|
14467
14169
|
const type2 = getType3(value);
|
|
@@ -14576,7 +14278,7 @@ function getType3(envelope) {
|
|
|
14576
14278
|
envelope
|
|
14577
14279
|
});
|
|
14578
14280
|
}
|
|
14579
|
-
function
|
|
14281
|
+
function serialize7(envelope, options = {}) {
|
|
14580
14282
|
const type2 = getType3(envelope);
|
|
14581
14283
|
if (type2 === "secp256k1") {
|
|
14582
14284
|
const secp256k12 = envelope;
|
|
@@ -14594,7 +14296,7 @@ function serialize8(envelope, options = {}) {
|
|
|
14594
14296
|
if (type2 === "keychain") {
|
|
14595
14297
|
const keychain = envelope;
|
|
14596
14298
|
const keychainTypeId = keychain.version === "v1" ? serializedKeychainType2 : serializedKeychainV2Type2;
|
|
14597
|
-
return concat(keychainTypeId, keychain.userAddress,
|
|
14299
|
+
return concat(keychainTypeId, keychain.userAddress, serialize7(keychain.inner), options.magic ? magicBytes4 : "0x");
|
|
14598
14300
|
}
|
|
14599
14301
|
throw new CoercionError2({ envelope });
|
|
14600
14302
|
}
|
|
@@ -14661,7 +14363,7 @@ function verify9(signature2, parameters) {
|
|
|
14661
14363
|
})();
|
|
14662
14364
|
if (!address)
|
|
14663
14365
|
return false;
|
|
14664
|
-
const envelope =
|
|
14366
|
+
const envelope = from19(signature2);
|
|
14665
14367
|
if (envelope.type === "secp256k1") {
|
|
14666
14368
|
if (!address)
|
|
14667
14369
|
return false;
|
|
@@ -14744,7 +14446,7 @@ var VerificationError3 = class extends BaseError {
|
|
|
14744
14446
|
}
|
|
14745
14447
|
};
|
|
14746
14448
|
|
|
14747
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
14449
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/session/Voucher.js
|
|
14748
14450
|
var DOMAIN_NAME = "Tempo Stream Channel";
|
|
14749
14451
|
var DOMAIN_VERSION = "1";
|
|
14750
14452
|
function getVoucherDomain(escrowContract2, chainId2) {
|
|
@@ -14783,8 +14485,8 @@ async function signVoucher(client, account, message, escrowContract2, chainId2,
|
|
|
14783
14485
|
return signature2;
|
|
14784
14486
|
}
|
|
14785
14487
|
|
|
14786
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
14787
|
-
function
|
|
14488
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/session/Channel.js
|
|
14489
|
+
function computeId(parameters) {
|
|
14788
14490
|
const encoded = AbiParameters_exports.encode(AbiParameters_exports.from([
|
|
14789
14491
|
"address payer",
|
|
14790
14492
|
"address payee",
|
|
@@ -14805,7 +14507,7 @@ function computeId2(parameters) {
|
|
|
14805
14507
|
return Hash_exports.keccak256(encoded);
|
|
14806
14508
|
}
|
|
14807
14509
|
|
|
14808
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
14510
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/session/escrow.abi.js
|
|
14809
14511
|
var escrowAbi = [
|
|
14810
14512
|
{
|
|
14811
14513
|
type: "function",
|
|
@@ -15566,7 +15268,7 @@ var escrowAbi = [
|
|
|
15566
15268
|
}
|
|
15567
15269
|
];
|
|
15568
15270
|
|
|
15569
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15271
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/session/Chain.js
|
|
15570
15272
|
var UINT128_MAX = 2n ** 128n - 1n;
|
|
15571
15273
|
async function getOnChainChannel(client, escrowContract2, channelId) {
|
|
15572
15274
|
return readContract(client, {
|
|
@@ -15579,7 +15281,7 @@ async function getOnChainChannel(client, escrowContract2, channelId) {
|
|
|
15579
15281
|
var escrowOpenSelector = /* @__PURE__ */ toFunctionSelector(getAbiItem({ abi: escrowAbi, name: "open" }));
|
|
15580
15282
|
var escrowTopUpSelector = /* @__PURE__ */ toFunctionSelector(getAbiItem({ abi: escrowAbi, name: "topUp" }));
|
|
15581
15283
|
|
|
15582
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15284
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/client/ChannelOps.js
|
|
15583
15285
|
function resolveEscrow(challenge, chainId2, escrowContractOverride) {
|
|
15584
15286
|
const challengeEscrow = challenge.request.methodDetails?.escrowContract;
|
|
15585
15287
|
const escrow = challengeEscrow ?? escrowContractOverride ?? escrowContract[chainId2];
|
|
@@ -15588,7 +15290,7 @@ function resolveEscrow(challenge, chainId2, escrowContractOverride) {
|
|
|
15588
15290
|
return escrow;
|
|
15589
15291
|
}
|
|
15590
15292
|
function serializeCredential(challenge, payload, chainId2, account) {
|
|
15591
|
-
return
|
|
15293
|
+
return serialize({
|
|
15592
15294
|
challenge,
|
|
15593
15295
|
payload,
|
|
15594
15296
|
source: `did:pkh:eip155:${chainId2}:${account.address}`
|
|
@@ -15607,7 +15309,7 @@ async function createOpenPayload(client, account, options) {
|
|
|
15607
15309
|
const { escrowContract: escrowContract2, payee, currency: currency2, deposit, initialAmount, chainId: chainId2, feePayer } = options;
|
|
15608
15310
|
const authorizedSigner = options.authorizedSigner ?? account.address;
|
|
15609
15311
|
const salt = Hex_exports.random(32);
|
|
15610
|
-
const channelId =
|
|
15312
|
+
const channelId = computeId({
|
|
15611
15313
|
authorizedSigner,
|
|
15612
15314
|
chainId: chainId2,
|
|
15613
15315
|
escrowContract: escrowContract2,
|
|
@@ -15676,7 +15378,7 @@ async function tryRecoverChannel(client, escrowContract2, channelId, chainId2) {
|
|
|
15676
15378
|
return void 0;
|
|
15677
15379
|
}
|
|
15678
15380
|
|
|
15679
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15381
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/client/Session.js
|
|
15680
15382
|
var sessionContextSchema = object({
|
|
15681
15383
|
account: optional(custom()),
|
|
15682
15384
|
action: optional(_enum(["open", "topUp", "voucher", "close"])),
|
|
@@ -15881,10 +15583,10 @@ function session2(parameters = {}) {
|
|
|
15881
15583
|
});
|
|
15882
15584
|
}
|
|
15883
15585
|
|
|
15884
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15586
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/client/internal/Fetch.js
|
|
15885
15587
|
var MPPX_FETCH_WRAPPER = /* @__PURE__ */ Symbol.for("mppx.fetch.wrapper");
|
|
15886
15588
|
var originalFetch;
|
|
15887
|
-
function
|
|
15589
|
+
function from20(config) {
|
|
15888
15590
|
const { fetch: fetch2 = globalThis.fetch, methods, onChallenge } = config;
|
|
15889
15591
|
const baseFetch = unwrapFetch(fetch2);
|
|
15890
15592
|
const wrappedFetch = async (input, init) => {
|
|
@@ -15926,7 +15628,7 @@ function polyfill(config) {
|
|
|
15926
15628
|
}
|
|
15927
15629
|
if (!originalFetch)
|
|
15928
15630
|
originalFetch = globalThis.fetch;
|
|
15929
|
-
globalThis.fetch =
|
|
15631
|
+
globalThis.fetch = from20({ ...config, fetch: globalThis.fetch });
|
|
15930
15632
|
}
|
|
15931
15633
|
function restore() {
|
|
15932
15634
|
if (originalFetch && isWrappedFetch(globalThis.fetch)) {
|
|
@@ -15979,13 +15681,13 @@ async function resolveCredential(challenge, mi, context) {
|
|
|
15979
15681
|
return mi.createCredential(parsedContext !== void 0 ? { challenge, context: parsedContext } : { challenge });
|
|
15980
15682
|
}
|
|
15981
15683
|
|
|
15982
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15684
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/session/Receipt.js
|
|
15983
15685
|
function deserializeSessionReceipt(encoded) {
|
|
15984
15686
|
const json = Base64_exports.toString(encoded);
|
|
15985
15687
|
return JSON.parse(json);
|
|
15986
15688
|
}
|
|
15987
15689
|
|
|
15988
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15690
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/session/Sse.js
|
|
15989
15691
|
function parseEvent(raw) {
|
|
15990
15692
|
let eventType = "message";
|
|
15991
15693
|
const dataLines = [];
|
|
@@ -16013,7 +15715,7 @@ function parseEvent(raw) {
|
|
|
16013
15715
|
}
|
|
16014
15716
|
}
|
|
16015
15717
|
|
|
16016
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15718
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/client/SessionManager.js
|
|
16017
15719
|
function sessionManager(parameters) {
|
|
16018
15720
|
const fetchFn = parameters.fetch ?? globalThis.fetch;
|
|
16019
15721
|
let channel = null;
|
|
@@ -16033,7 +15735,7 @@ function sessionManager(parameters) {
|
|
|
16033
15735
|
channel = entry;
|
|
16034
15736
|
}
|
|
16035
15737
|
});
|
|
16036
|
-
const wrappedFetch =
|
|
15738
|
+
const wrappedFetch = from20({
|
|
16037
15739
|
fetch: fetchFn,
|
|
16038
15740
|
methods: [method],
|
|
16039
15741
|
onChallenge: async (challenge, _helpers) => {
|
|
@@ -16199,7 +15901,7 @@ function sessionManager(parameters) {
|
|
|
16199
15901
|
return self;
|
|
16200
15902
|
}
|
|
16201
15903
|
|
|
16202
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15904
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/tempo/client/Methods.js
|
|
16203
15905
|
function tempo2(parameters = {}) {
|
|
16204
15906
|
return [charge4(parameters), session2(parameters)];
|
|
16205
15907
|
}
|
|
@@ -16208,31 +15910,25 @@ function tempo2(parameters = {}) {
|
|
|
16208
15910
|
tempo3.session = sessionManager;
|
|
16209
15911
|
})(tempo2 || (tempo2 = {}));
|
|
16210
15912
|
|
|
16211
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15913
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/client/Mppx.js
|
|
16212
15914
|
var Mppx_exports = {};
|
|
16213
15915
|
__export(Mppx_exports, {
|
|
16214
15916
|
create: () => create4,
|
|
16215
15917
|
restore: () => restore2
|
|
16216
15918
|
});
|
|
16217
15919
|
|
|
16218
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15920
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/client/Transport.js
|
|
16219
15921
|
var Transport_exports2 = {};
|
|
16220
15922
|
__export(Transport_exports2, {
|
|
16221
|
-
from: () =>
|
|
15923
|
+
from: () => from21,
|
|
16222
15924
|
http: () => http2,
|
|
16223
15925
|
mcp: () => mcp
|
|
16224
15926
|
});
|
|
16225
|
-
|
|
16226
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.25.76__express@5.2.1_hono@4.12.9_open_8aabd0282577a5490f679a88cca7000d/node_modules/mppx/dist/Mcp.js
|
|
16227
|
-
var paymentRequiredCode = -32042;
|
|
16228
|
-
var credentialMetaKey = "org.paymentauth/credential";
|
|
16229
|
-
|
|
16230
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.25.76__express@5.2.1_hono@4.12.9_open_8aabd0282577a5490f679a88cca7000d/node_modules/mppx/dist/client/Transport.js
|
|
16231
|
-
function from22(transport) {
|
|
15927
|
+
function from21(transport) {
|
|
16232
15928
|
return transport;
|
|
16233
15929
|
}
|
|
16234
15930
|
function http2() {
|
|
16235
|
-
return
|
|
15931
|
+
return from21({
|
|
16236
15932
|
name: "http",
|
|
16237
15933
|
isPaymentRequired(response) {
|
|
16238
15934
|
return response.status === 402;
|
|
@@ -16248,7 +15944,7 @@ function http2() {
|
|
|
16248
15944
|
});
|
|
16249
15945
|
}
|
|
16250
15946
|
function mcp() {
|
|
16251
|
-
return
|
|
15947
|
+
return from21({
|
|
16252
15948
|
name: "mcp",
|
|
16253
15949
|
isPaymentRequired(response) {
|
|
16254
15950
|
return "error" in response && response.error?.code === paymentRequiredCode;
|
|
@@ -16262,7 +15958,7 @@ function mcp() {
|
|
|
16262
15958
|
return challenge;
|
|
16263
15959
|
},
|
|
16264
15960
|
setCredential(request, credential) {
|
|
16265
|
-
const parsed =
|
|
15961
|
+
const parsed = deserialize(credential);
|
|
16266
15962
|
return {
|
|
16267
15963
|
...request,
|
|
16268
15964
|
params: {
|
|
@@ -16277,7 +15973,7 @@ function mcp() {
|
|
|
16277
15973
|
});
|
|
16278
15974
|
}
|
|
16279
15975
|
|
|
16280
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15976
|
+
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_c4e524ef2c460fde6664b2d190f6f806/node_modules/mppx/dist/client/Mppx.js
|
|
16281
15977
|
function create4(config) {
|
|
16282
15978
|
const { onChallenge, polyfill: polyfill2 = true, transport = http2() } = config;
|
|
16283
15979
|
const rawFetch = config.fetch ?? globalThis.fetch;
|
|
@@ -16288,7 +15984,7 @@ function create4(config) {
|
|
|
16288
15984
|
...resolvedOnChallenge && { onChallenge: resolvedOnChallenge },
|
|
16289
15985
|
methods
|
|
16290
15986
|
};
|
|
16291
|
-
const fetch2 =
|
|
15987
|
+
const fetch2 = from20(config_fetch);
|
|
16292
15988
|
if (polyfill2)
|
|
16293
15989
|
polyfill(config_fetch);
|
|
16294
15990
|
return {
|
|
@@ -16317,4 +16013,4 @@ export {
|
|
|
16317
16013
|
stripe,
|
|
16318
16014
|
tempo2 as tempo
|
|
16319
16015
|
};
|
|
16320
|
-
//# sourceMappingURL=client-
|
|
16016
|
+
//# sourceMappingURL=client-IXUBQ3HM.js.map
|