@t2000/cli 0.26.2 → 0.28.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 +1 -0
- package/dist/{ccip-XP27NGI7.js → ccip-JEEJV65M.js} +3 -3
- package/dist/{chunk-KLHAR3XK.js → chunk-2JUMTEBB.js} +295 -8
- package/dist/chunk-2JUMTEBB.js.map +1 -0
- package/dist/chunk-77SWBATH.js +204 -0
- package/dist/chunk-77SWBATH.js.map +1 -0
- package/dist/{chunk-3I6VJOM6.js → chunk-A5X4KG7U.js} +970 -210
- package/dist/chunk-A5X4KG7U.js.map +1 -0
- package/dist/{chunk-TYYJRUQI.js → chunk-HGA6AHN5.js} +644 -70
- package/dist/chunk-HGA6AHN5.js.map +1 -0
- package/dist/{client-YNWQPUC5.js → client-2MUO6VAJ.js} +4 -4
- package/dist/{client-YNWQPUC5.js.map → client-2MUO6VAJ.js.map} +1 -1
- package/dist/{client-IXUBQ3HM.js → client-KQCHOXLV.js} +197 -197
- package/dist/client-KQCHOXLV.js.map +1 -0
- package/dist/{dist-KWDZR46D.js → dist-F462ZUVT.js} +32 -2
- package/dist/{dist-KAYOSIOG.js → dist-UDCEDQVB.js} +20 -2
- package/dist/{dist-KAYOSIOG.js.map → dist-UDCEDQVB.js.map} +1 -1
- package/dist/index.js +54 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-3I6VJOM6.js.map +0 -1
- package/dist/chunk-EI3GHTKX.js +0 -968
- package/dist/chunk-EI3GHTKX.js.map +0 -1
- package/dist/chunk-KLHAR3XK.js.map +0 -1
- package/dist/chunk-TYYJRUQI.js.map +0 -1
- package/dist/client-IXUBQ3HM.js.map +0 -1
- /package/dist/{ccip-XP27NGI7.js.map → ccip-JEEJV65M.js.map} +0 -0
- /package/dist/{dist-KWDZR46D.js.map → dist-F462ZUVT.js.map} +0 -0
|
@@ -10,10 +10,8 @@ import {
|
|
|
10
10
|
sha512
|
|
11
11
|
} from "./chunk-NGS6K3I3.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
parseAbiParameters
|
|
16
|
-
} from "./chunk-EI3GHTKX.js";
|
|
13
|
+
keccak_256
|
|
14
|
+
} from "./chunk-77SWBATH.js";
|
|
17
15
|
import {
|
|
18
16
|
clean,
|
|
19
17
|
createHasher,
|
|
@@ -24,7 +22,7 @@ import {
|
|
|
24
22
|
__export
|
|
25
23
|
} from "./chunk-YPWSCLE3.js";
|
|
26
24
|
|
|
27
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@
|
|
25
|
+
// ../../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/Expires.js
|
|
28
26
|
var Expires_exports = {};
|
|
29
27
|
__export(Expires_exports, {
|
|
30
28
|
days: () => days,
|
|
@@ -57,7 +55,7 @@ function years(n) {
|
|
|
57
55
|
return new Date(Date.now() + n * 365 * 24 * 60 * 60 * 1e3).toISOString();
|
|
58
56
|
}
|
|
59
57
|
|
|
60
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@
|
|
58
|
+
// ../../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
|
|
61
59
|
var zod_exports = {};
|
|
62
60
|
__export(zod_exports, {
|
|
63
61
|
$brand: () => $brand,
|
|
@@ -1873,10 +1871,10 @@ var nanoid = /^[a-zA-Z0-9_-]{21}$/;
|
|
|
1873
1871
|
var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
|
|
1874
1872
|
var extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
|
|
1875
1873
|
var guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
|
|
1876
|
-
var uuid = (
|
|
1877
|
-
if (!
|
|
1874
|
+
var uuid = (version4) => {
|
|
1875
|
+
if (!version4)
|
|
1878
1876
|
return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
|
|
1879
|
-
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${
|
|
1877
|
+
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version4}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
|
|
1880
1878
|
};
|
|
1881
1879
|
var uuid4 = /* @__PURE__ */ uuid(4);
|
|
1882
1880
|
var uuid6 = /* @__PURE__ */ uuid(6);
|
|
@@ -13118,7 +13116,7 @@ function date4(params) {
|
|
|
13118
13116
|
return _coercedDate(ZodMiniDate, params);
|
|
13119
13117
|
}
|
|
13120
13118
|
|
|
13121
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@
|
|
13119
|
+
// ../../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
|
|
13122
13120
|
function amount() {
|
|
13123
13121
|
return external_exports.string().check(external_exports.regex(/^\d+(\.\d+)?$/, "Invalid amount"));
|
|
13124
13122
|
}
|
|
@@ -13143,7 +13141,7 @@ function unwrapOptional(schema) {
|
|
|
13143
13141
|
return schema;
|
|
13144
13142
|
}
|
|
13145
13143
|
|
|
13146
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@
|
|
13144
|
+
// ../../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
|
|
13147
13145
|
var Credential_exports = {};
|
|
13148
13146
|
__export(Credential_exports, {
|
|
13149
13147
|
deserialize: () => deserialize3,
|
|
@@ -13153,16 +13151,592 @@ __export(Credential_exports, {
|
|
|
13153
13151
|
serialize: () => serialize2
|
|
13154
13152
|
});
|
|
13155
13153
|
|
|
13154
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/version.js
|
|
13155
|
+
var version2 = "1.2.3";
|
|
13156
|
+
|
|
13157
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/errors.js
|
|
13158
|
+
var BaseError = class _BaseError extends Error {
|
|
13159
|
+
constructor(shortMessage, args = {}) {
|
|
13160
|
+
const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
|
|
13161
|
+
const docsPath = args.cause instanceof _BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
|
|
13162
|
+
const message = [
|
|
13163
|
+
shortMessage || "An error occurred.",
|
|
13164
|
+
"",
|
|
13165
|
+
...args.metaMessages ? [...args.metaMessages, ""] : [],
|
|
13166
|
+
...docsPath ? [`Docs: https://abitype.dev${docsPath}`] : [],
|
|
13167
|
+
...details ? [`Details: ${details}`] : [],
|
|
13168
|
+
`Version: abitype@${version2}`
|
|
13169
|
+
].join("\n");
|
|
13170
|
+
super(message);
|
|
13171
|
+
Object.defineProperty(this, "details", {
|
|
13172
|
+
enumerable: true,
|
|
13173
|
+
configurable: true,
|
|
13174
|
+
writable: true,
|
|
13175
|
+
value: void 0
|
|
13176
|
+
});
|
|
13177
|
+
Object.defineProperty(this, "docsPath", {
|
|
13178
|
+
enumerable: true,
|
|
13179
|
+
configurable: true,
|
|
13180
|
+
writable: true,
|
|
13181
|
+
value: void 0
|
|
13182
|
+
});
|
|
13183
|
+
Object.defineProperty(this, "metaMessages", {
|
|
13184
|
+
enumerable: true,
|
|
13185
|
+
configurable: true,
|
|
13186
|
+
writable: true,
|
|
13187
|
+
value: void 0
|
|
13188
|
+
});
|
|
13189
|
+
Object.defineProperty(this, "shortMessage", {
|
|
13190
|
+
enumerable: true,
|
|
13191
|
+
configurable: true,
|
|
13192
|
+
writable: true,
|
|
13193
|
+
value: void 0
|
|
13194
|
+
});
|
|
13195
|
+
Object.defineProperty(this, "name", {
|
|
13196
|
+
enumerable: true,
|
|
13197
|
+
configurable: true,
|
|
13198
|
+
writable: true,
|
|
13199
|
+
value: "AbiTypeError"
|
|
13200
|
+
});
|
|
13201
|
+
if (args.cause)
|
|
13202
|
+
this.cause = args.cause;
|
|
13203
|
+
this.details = details;
|
|
13204
|
+
this.docsPath = docsPath;
|
|
13205
|
+
this.metaMessages = args.metaMessages;
|
|
13206
|
+
this.shortMessage = shortMessage;
|
|
13207
|
+
}
|
|
13208
|
+
};
|
|
13209
|
+
|
|
13210
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/regex.js
|
|
13211
|
+
function execTyped(regex, string4) {
|
|
13212
|
+
const match = regex.exec(string4);
|
|
13213
|
+
return match?.groups;
|
|
13214
|
+
}
|
|
13215
|
+
var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
13216
|
+
var integerRegex = /^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)?$/;
|
|
13217
|
+
var isTupleRegex = /^\(.+?\).*?$/;
|
|
13218
|
+
|
|
13219
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
|
|
13220
|
+
var tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
13221
|
+
function formatAbiParameter(abiParameter) {
|
|
13222
|
+
let type = abiParameter.type;
|
|
13223
|
+
if (tupleRegex.test(abiParameter.type) && "components" in abiParameter) {
|
|
13224
|
+
type = "(";
|
|
13225
|
+
const length = abiParameter.components.length;
|
|
13226
|
+
for (let i = 0; i < length; i++) {
|
|
13227
|
+
const component = abiParameter.components[i];
|
|
13228
|
+
type += formatAbiParameter(component);
|
|
13229
|
+
if (i < length - 1)
|
|
13230
|
+
type += ", ";
|
|
13231
|
+
}
|
|
13232
|
+
const result = execTyped(tupleRegex, abiParameter.type);
|
|
13233
|
+
type += `)${result?.array || ""}`;
|
|
13234
|
+
return formatAbiParameter({
|
|
13235
|
+
...abiParameter,
|
|
13236
|
+
type
|
|
13237
|
+
});
|
|
13238
|
+
}
|
|
13239
|
+
if ("indexed" in abiParameter && abiParameter.indexed)
|
|
13240
|
+
type = `${type} indexed`;
|
|
13241
|
+
if (abiParameter.name)
|
|
13242
|
+
return `${type} ${abiParameter.name}`;
|
|
13243
|
+
return type;
|
|
13244
|
+
}
|
|
13245
|
+
|
|
13246
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
|
|
13247
|
+
function formatAbiParameters(abiParameters) {
|
|
13248
|
+
let params = "";
|
|
13249
|
+
const length = abiParameters.length;
|
|
13250
|
+
for (let i = 0; i < length; i++) {
|
|
13251
|
+
const abiParameter = abiParameters[i];
|
|
13252
|
+
params += formatAbiParameter(abiParameter);
|
|
13253
|
+
if (i !== length - 1)
|
|
13254
|
+
params += ", ";
|
|
13255
|
+
}
|
|
13256
|
+
return params;
|
|
13257
|
+
}
|
|
13258
|
+
|
|
13259
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
|
|
13260
|
+
var structSignatureRegex = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
|
|
13261
|
+
function isStructSignature(signature2) {
|
|
13262
|
+
return structSignatureRegex.test(signature2);
|
|
13263
|
+
}
|
|
13264
|
+
function execStructSignature(signature2) {
|
|
13265
|
+
return execTyped(structSignatureRegex, signature2);
|
|
13266
|
+
}
|
|
13267
|
+
var modifiers = /* @__PURE__ */ new Set([
|
|
13268
|
+
"memory",
|
|
13269
|
+
"indexed",
|
|
13270
|
+
"storage",
|
|
13271
|
+
"calldata"
|
|
13272
|
+
]);
|
|
13273
|
+
var functionModifiers = /* @__PURE__ */ new Set([
|
|
13274
|
+
"calldata",
|
|
13275
|
+
"memory",
|
|
13276
|
+
"storage"
|
|
13277
|
+
]);
|
|
13278
|
+
|
|
13279
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
|
|
13280
|
+
var UnknownTypeError = class extends BaseError {
|
|
13281
|
+
constructor({ type }) {
|
|
13282
|
+
super("Unknown type.", {
|
|
13283
|
+
metaMessages: [
|
|
13284
|
+
`Type "${type}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`
|
|
13285
|
+
]
|
|
13286
|
+
});
|
|
13287
|
+
Object.defineProperty(this, "name", {
|
|
13288
|
+
enumerable: true,
|
|
13289
|
+
configurable: true,
|
|
13290
|
+
writable: true,
|
|
13291
|
+
value: "UnknownTypeError"
|
|
13292
|
+
});
|
|
13293
|
+
}
|
|
13294
|
+
};
|
|
13295
|
+
var UnknownSolidityTypeError = class extends BaseError {
|
|
13296
|
+
constructor({ type }) {
|
|
13297
|
+
super("Unknown type.", {
|
|
13298
|
+
metaMessages: [`Type "${type}" is not a valid ABI type.`]
|
|
13299
|
+
});
|
|
13300
|
+
Object.defineProperty(this, "name", {
|
|
13301
|
+
enumerable: true,
|
|
13302
|
+
configurable: true,
|
|
13303
|
+
writable: true,
|
|
13304
|
+
value: "UnknownSolidityTypeError"
|
|
13305
|
+
});
|
|
13306
|
+
}
|
|
13307
|
+
};
|
|
13308
|
+
|
|
13309
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
|
|
13310
|
+
var InvalidAbiParametersError = class extends BaseError {
|
|
13311
|
+
constructor({ params }) {
|
|
13312
|
+
super("Failed to parse ABI parameters.", {
|
|
13313
|
+
details: `parseAbiParameters(${JSON.stringify(params, null, 2)})`,
|
|
13314
|
+
docsPath: "/api/human#parseabiparameters-1"
|
|
13315
|
+
});
|
|
13316
|
+
Object.defineProperty(this, "name", {
|
|
13317
|
+
enumerable: true,
|
|
13318
|
+
configurable: true,
|
|
13319
|
+
writable: true,
|
|
13320
|
+
value: "InvalidAbiParametersError"
|
|
13321
|
+
});
|
|
13322
|
+
}
|
|
13323
|
+
};
|
|
13324
|
+
var InvalidParameterError = class extends BaseError {
|
|
13325
|
+
constructor({ param }) {
|
|
13326
|
+
super("Invalid ABI parameter.", {
|
|
13327
|
+
details: param
|
|
13328
|
+
});
|
|
13329
|
+
Object.defineProperty(this, "name", {
|
|
13330
|
+
enumerable: true,
|
|
13331
|
+
configurable: true,
|
|
13332
|
+
writable: true,
|
|
13333
|
+
value: "InvalidParameterError"
|
|
13334
|
+
});
|
|
13335
|
+
}
|
|
13336
|
+
};
|
|
13337
|
+
var SolidityProtectedKeywordError = class extends BaseError {
|
|
13338
|
+
constructor({ param, name }) {
|
|
13339
|
+
super("Invalid ABI parameter.", {
|
|
13340
|
+
details: param,
|
|
13341
|
+
metaMessages: [
|
|
13342
|
+
`"${name}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`
|
|
13343
|
+
]
|
|
13344
|
+
});
|
|
13345
|
+
Object.defineProperty(this, "name", {
|
|
13346
|
+
enumerable: true,
|
|
13347
|
+
configurable: true,
|
|
13348
|
+
writable: true,
|
|
13349
|
+
value: "SolidityProtectedKeywordError"
|
|
13350
|
+
});
|
|
13351
|
+
}
|
|
13352
|
+
};
|
|
13353
|
+
var InvalidModifierError = class extends BaseError {
|
|
13354
|
+
constructor({ param, type, modifier }) {
|
|
13355
|
+
super("Invalid ABI parameter.", {
|
|
13356
|
+
details: param,
|
|
13357
|
+
metaMessages: [
|
|
13358
|
+
`Modifier "${modifier}" not allowed${type ? ` in "${type}" type` : ""}.`
|
|
13359
|
+
]
|
|
13360
|
+
});
|
|
13361
|
+
Object.defineProperty(this, "name", {
|
|
13362
|
+
enumerable: true,
|
|
13363
|
+
configurable: true,
|
|
13364
|
+
writable: true,
|
|
13365
|
+
value: "InvalidModifierError"
|
|
13366
|
+
});
|
|
13367
|
+
}
|
|
13368
|
+
};
|
|
13369
|
+
var InvalidFunctionModifierError = class extends BaseError {
|
|
13370
|
+
constructor({ param, type, modifier }) {
|
|
13371
|
+
super("Invalid ABI parameter.", {
|
|
13372
|
+
details: param,
|
|
13373
|
+
metaMessages: [
|
|
13374
|
+
`Modifier "${modifier}" not allowed${type ? ` in "${type}" type` : ""}.`,
|
|
13375
|
+
`Data location can only be specified for array, struct, or mapping types, but "${modifier}" was given.`
|
|
13376
|
+
]
|
|
13377
|
+
});
|
|
13378
|
+
Object.defineProperty(this, "name", {
|
|
13379
|
+
enumerable: true,
|
|
13380
|
+
configurable: true,
|
|
13381
|
+
writable: true,
|
|
13382
|
+
value: "InvalidFunctionModifierError"
|
|
13383
|
+
});
|
|
13384
|
+
}
|
|
13385
|
+
};
|
|
13386
|
+
var InvalidAbiTypeParameterError = class extends BaseError {
|
|
13387
|
+
constructor({ abiParameter }) {
|
|
13388
|
+
super("Invalid ABI parameter.", {
|
|
13389
|
+
details: JSON.stringify(abiParameter, null, 2),
|
|
13390
|
+
metaMessages: ["ABI parameter type is invalid."]
|
|
13391
|
+
});
|
|
13392
|
+
Object.defineProperty(this, "name", {
|
|
13393
|
+
enumerable: true,
|
|
13394
|
+
configurable: true,
|
|
13395
|
+
writable: true,
|
|
13396
|
+
value: "InvalidAbiTypeParameterError"
|
|
13397
|
+
});
|
|
13398
|
+
}
|
|
13399
|
+
};
|
|
13400
|
+
|
|
13401
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/errors/signature.js
|
|
13402
|
+
var InvalidSignatureError = class extends BaseError {
|
|
13403
|
+
constructor({ signature: signature2, type }) {
|
|
13404
|
+
super(`Invalid ${type} signature.`, {
|
|
13405
|
+
details: signature2
|
|
13406
|
+
});
|
|
13407
|
+
Object.defineProperty(this, "name", {
|
|
13408
|
+
enumerable: true,
|
|
13409
|
+
configurable: true,
|
|
13410
|
+
writable: true,
|
|
13411
|
+
value: "InvalidSignatureError"
|
|
13412
|
+
});
|
|
13413
|
+
}
|
|
13414
|
+
};
|
|
13415
|
+
var InvalidStructSignatureError = class extends BaseError {
|
|
13416
|
+
constructor({ signature: signature2 }) {
|
|
13417
|
+
super("Invalid struct signature.", {
|
|
13418
|
+
details: signature2,
|
|
13419
|
+
metaMessages: ["No properties exist."]
|
|
13420
|
+
});
|
|
13421
|
+
Object.defineProperty(this, "name", {
|
|
13422
|
+
enumerable: true,
|
|
13423
|
+
configurable: true,
|
|
13424
|
+
writable: true,
|
|
13425
|
+
value: "InvalidStructSignatureError"
|
|
13426
|
+
});
|
|
13427
|
+
}
|
|
13428
|
+
};
|
|
13429
|
+
|
|
13430
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/errors/struct.js
|
|
13431
|
+
var CircularReferenceError = class extends BaseError {
|
|
13432
|
+
constructor({ type }) {
|
|
13433
|
+
super("Circular reference detected.", {
|
|
13434
|
+
metaMessages: [`Struct "${type}" is a circular reference.`]
|
|
13435
|
+
});
|
|
13436
|
+
Object.defineProperty(this, "name", {
|
|
13437
|
+
enumerable: true,
|
|
13438
|
+
configurable: true,
|
|
13439
|
+
writable: true,
|
|
13440
|
+
value: "CircularReferenceError"
|
|
13441
|
+
});
|
|
13442
|
+
}
|
|
13443
|
+
};
|
|
13444
|
+
|
|
13445
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
|
|
13446
|
+
var InvalidParenthesisError = class extends BaseError {
|
|
13447
|
+
constructor({ current, depth }) {
|
|
13448
|
+
super("Unbalanced parentheses.", {
|
|
13449
|
+
metaMessages: [
|
|
13450
|
+
`"${current.trim()}" has too many ${depth > 0 ? "opening" : "closing"} parentheses.`
|
|
13451
|
+
],
|
|
13452
|
+
details: `Depth "${depth}"`
|
|
13453
|
+
});
|
|
13454
|
+
Object.defineProperty(this, "name", {
|
|
13455
|
+
enumerable: true,
|
|
13456
|
+
configurable: true,
|
|
13457
|
+
writable: true,
|
|
13458
|
+
value: "InvalidParenthesisError"
|
|
13459
|
+
});
|
|
13460
|
+
}
|
|
13461
|
+
};
|
|
13462
|
+
|
|
13463
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/runtime/cache.js
|
|
13464
|
+
function getParameterCacheKey(param, type, structs) {
|
|
13465
|
+
let structKey = "";
|
|
13466
|
+
if (structs)
|
|
13467
|
+
for (const struct of Object.entries(structs)) {
|
|
13468
|
+
if (!struct)
|
|
13469
|
+
continue;
|
|
13470
|
+
let propertyKey = "";
|
|
13471
|
+
for (const property of struct[1]) {
|
|
13472
|
+
propertyKey += `[${property.type}${property.name ? `:${property.name}` : ""}]`;
|
|
13473
|
+
}
|
|
13474
|
+
structKey += `(${struct[0]}{${propertyKey}})`;
|
|
13475
|
+
}
|
|
13476
|
+
if (type)
|
|
13477
|
+
return `${type}:${param}${structKey}`;
|
|
13478
|
+
return `${param}${structKey}`;
|
|
13479
|
+
}
|
|
13480
|
+
var parameterCache = /* @__PURE__ */ new Map([
|
|
13481
|
+
// Unnamed
|
|
13482
|
+
["address", { type: "address" }],
|
|
13483
|
+
["bool", { type: "bool" }],
|
|
13484
|
+
["bytes", { type: "bytes" }],
|
|
13485
|
+
["bytes32", { type: "bytes32" }],
|
|
13486
|
+
["int", { type: "int256" }],
|
|
13487
|
+
["int256", { type: "int256" }],
|
|
13488
|
+
["string", { type: "string" }],
|
|
13489
|
+
["uint", { type: "uint256" }],
|
|
13490
|
+
["uint8", { type: "uint8" }],
|
|
13491
|
+
["uint16", { type: "uint16" }],
|
|
13492
|
+
["uint24", { type: "uint24" }],
|
|
13493
|
+
["uint32", { type: "uint32" }],
|
|
13494
|
+
["uint64", { type: "uint64" }],
|
|
13495
|
+
["uint96", { type: "uint96" }],
|
|
13496
|
+
["uint112", { type: "uint112" }],
|
|
13497
|
+
["uint160", { type: "uint160" }],
|
|
13498
|
+
["uint192", { type: "uint192" }],
|
|
13499
|
+
["uint256", { type: "uint256" }],
|
|
13500
|
+
// Named
|
|
13501
|
+
["address owner", { type: "address", name: "owner" }],
|
|
13502
|
+
["address to", { type: "address", name: "to" }],
|
|
13503
|
+
["bool approved", { type: "bool", name: "approved" }],
|
|
13504
|
+
["bytes _data", { type: "bytes", name: "_data" }],
|
|
13505
|
+
["bytes data", { type: "bytes", name: "data" }],
|
|
13506
|
+
["bytes signature", { type: "bytes", name: "signature" }],
|
|
13507
|
+
["bytes32 hash", { type: "bytes32", name: "hash" }],
|
|
13508
|
+
["bytes32 r", { type: "bytes32", name: "r" }],
|
|
13509
|
+
["bytes32 root", { type: "bytes32", name: "root" }],
|
|
13510
|
+
["bytes32 s", { type: "bytes32", name: "s" }],
|
|
13511
|
+
["string name", { type: "string", name: "name" }],
|
|
13512
|
+
["string symbol", { type: "string", name: "symbol" }],
|
|
13513
|
+
["string tokenURI", { type: "string", name: "tokenURI" }],
|
|
13514
|
+
["uint tokenId", { type: "uint256", name: "tokenId" }],
|
|
13515
|
+
["uint8 v", { type: "uint8", name: "v" }],
|
|
13516
|
+
["uint256 balance", { type: "uint256", name: "balance" }],
|
|
13517
|
+
["uint256 tokenId", { type: "uint256", name: "tokenId" }],
|
|
13518
|
+
["uint256 value", { type: "uint256", name: "value" }],
|
|
13519
|
+
// Indexed
|
|
13520
|
+
[
|
|
13521
|
+
"event:address indexed from",
|
|
13522
|
+
{ type: "address", name: "from", indexed: true }
|
|
13523
|
+
],
|
|
13524
|
+
["event:address indexed to", { type: "address", name: "to", indexed: true }],
|
|
13525
|
+
[
|
|
13526
|
+
"event:uint indexed tokenId",
|
|
13527
|
+
{ type: "uint256", name: "tokenId", indexed: true }
|
|
13528
|
+
],
|
|
13529
|
+
[
|
|
13530
|
+
"event:uint256 indexed tokenId",
|
|
13531
|
+
{ type: "uint256", name: "tokenId", indexed: true }
|
|
13532
|
+
]
|
|
13533
|
+
]);
|
|
13534
|
+
|
|
13535
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/runtime/utils.js
|
|
13536
|
+
var abiParameterWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
13537
|
+
var abiParameterWithTupleRegex = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
13538
|
+
var dynamicIntegerRegex = /^u?int$/;
|
|
13539
|
+
function parseAbiParameter(param, options) {
|
|
13540
|
+
const parameterCacheKey = getParameterCacheKey(param, options?.type, options?.structs);
|
|
13541
|
+
if (parameterCache.has(parameterCacheKey))
|
|
13542
|
+
return parameterCache.get(parameterCacheKey);
|
|
13543
|
+
const isTuple = isTupleRegex.test(param);
|
|
13544
|
+
const match = execTyped(isTuple ? abiParameterWithTupleRegex : abiParameterWithoutTupleRegex, param);
|
|
13545
|
+
if (!match)
|
|
13546
|
+
throw new InvalidParameterError({ param });
|
|
13547
|
+
if (match.name && isSolidityKeyword(match.name))
|
|
13548
|
+
throw new SolidityProtectedKeywordError({ param, name: match.name });
|
|
13549
|
+
const name = match.name ? { name: match.name } : {};
|
|
13550
|
+
const indexed = match.modifier === "indexed" ? { indexed: true } : {};
|
|
13551
|
+
const structs = options?.structs ?? {};
|
|
13552
|
+
let type;
|
|
13553
|
+
let components = {};
|
|
13554
|
+
if (isTuple) {
|
|
13555
|
+
type = "tuple";
|
|
13556
|
+
const params = splitParameters(match.type);
|
|
13557
|
+
const components_ = [];
|
|
13558
|
+
const length = params.length;
|
|
13559
|
+
for (let i = 0; i < length; i++) {
|
|
13560
|
+
components_.push(parseAbiParameter(params[i], { structs }));
|
|
13561
|
+
}
|
|
13562
|
+
components = { components: components_ };
|
|
13563
|
+
} else if (match.type in structs) {
|
|
13564
|
+
type = "tuple";
|
|
13565
|
+
components = { components: structs[match.type] };
|
|
13566
|
+
} else if (dynamicIntegerRegex.test(match.type)) {
|
|
13567
|
+
type = `${match.type}256`;
|
|
13568
|
+
} else if (match.type === "address payable") {
|
|
13569
|
+
type = "address";
|
|
13570
|
+
} else {
|
|
13571
|
+
type = match.type;
|
|
13572
|
+
if (!(options?.type === "struct") && !isSolidityType(type))
|
|
13573
|
+
throw new UnknownSolidityTypeError({ type });
|
|
13574
|
+
}
|
|
13575
|
+
if (match.modifier) {
|
|
13576
|
+
if (!options?.modifiers?.has?.(match.modifier))
|
|
13577
|
+
throw new InvalidModifierError({
|
|
13578
|
+
param,
|
|
13579
|
+
type: options?.type,
|
|
13580
|
+
modifier: match.modifier
|
|
13581
|
+
});
|
|
13582
|
+
if (functionModifiers.has(match.modifier) && !isValidDataLocation(type, !!match.array))
|
|
13583
|
+
throw new InvalidFunctionModifierError({
|
|
13584
|
+
param,
|
|
13585
|
+
type: options?.type,
|
|
13586
|
+
modifier: match.modifier
|
|
13587
|
+
});
|
|
13588
|
+
}
|
|
13589
|
+
const abiParameter = {
|
|
13590
|
+
type: `${type}${match.array ?? ""}`,
|
|
13591
|
+
...name,
|
|
13592
|
+
...indexed,
|
|
13593
|
+
...components
|
|
13594
|
+
};
|
|
13595
|
+
parameterCache.set(parameterCacheKey, abiParameter);
|
|
13596
|
+
return abiParameter;
|
|
13597
|
+
}
|
|
13598
|
+
function splitParameters(params, result = [], current = "", depth = 0) {
|
|
13599
|
+
const length = params.trim().length;
|
|
13600
|
+
for (let i = 0; i < length; i++) {
|
|
13601
|
+
const char = params[i];
|
|
13602
|
+
const tail = params.slice(i + 1);
|
|
13603
|
+
switch (char) {
|
|
13604
|
+
case ",":
|
|
13605
|
+
return depth === 0 ? splitParameters(tail, [...result, current.trim()]) : splitParameters(tail, result, `${current}${char}`, depth);
|
|
13606
|
+
case "(":
|
|
13607
|
+
return splitParameters(tail, result, `${current}${char}`, depth + 1);
|
|
13608
|
+
case ")":
|
|
13609
|
+
return splitParameters(tail, result, `${current}${char}`, depth - 1);
|
|
13610
|
+
default:
|
|
13611
|
+
return splitParameters(tail, result, `${current}${char}`, depth);
|
|
13612
|
+
}
|
|
13613
|
+
}
|
|
13614
|
+
if (current === "")
|
|
13615
|
+
return result;
|
|
13616
|
+
if (depth !== 0)
|
|
13617
|
+
throw new InvalidParenthesisError({ current, depth });
|
|
13618
|
+
result.push(current.trim());
|
|
13619
|
+
return result;
|
|
13620
|
+
}
|
|
13621
|
+
function isSolidityType(type) {
|
|
13622
|
+
return type === "address" || type === "bool" || type === "function" || type === "string" || bytesRegex.test(type) || integerRegex.test(type);
|
|
13623
|
+
}
|
|
13624
|
+
var protectedKeywordsRegex = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;
|
|
13625
|
+
function isSolidityKeyword(name) {
|
|
13626
|
+
return name === "address" || name === "bool" || name === "function" || name === "string" || name === "tuple" || bytesRegex.test(name) || integerRegex.test(name) || protectedKeywordsRegex.test(name);
|
|
13627
|
+
}
|
|
13628
|
+
function isValidDataLocation(type, isArray) {
|
|
13629
|
+
return isArray || type === "bytes" || type === "string" || type === "tuple";
|
|
13630
|
+
}
|
|
13631
|
+
|
|
13632
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/runtime/structs.js
|
|
13633
|
+
function parseStructs(signatures) {
|
|
13634
|
+
const shallowStructs = {};
|
|
13635
|
+
const signaturesLength = signatures.length;
|
|
13636
|
+
for (let i = 0; i < signaturesLength; i++) {
|
|
13637
|
+
const signature2 = signatures[i];
|
|
13638
|
+
if (!isStructSignature(signature2))
|
|
13639
|
+
continue;
|
|
13640
|
+
const match = execStructSignature(signature2);
|
|
13641
|
+
if (!match)
|
|
13642
|
+
throw new InvalidSignatureError({ signature: signature2, type: "struct" });
|
|
13643
|
+
const properties = match.properties.split(";");
|
|
13644
|
+
const components = [];
|
|
13645
|
+
const propertiesLength = properties.length;
|
|
13646
|
+
for (let k = 0; k < propertiesLength; k++) {
|
|
13647
|
+
const property = properties[k];
|
|
13648
|
+
const trimmed = property.trim();
|
|
13649
|
+
if (!trimmed)
|
|
13650
|
+
continue;
|
|
13651
|
+
const abiParameter = parseAbiParameter(trimmed, {
|
|
13652
|
+
type: "struct"
|
|
13653
|
+
});
|
|
13654
|
+
components.push(abiParameter);
|
|
13655
|
+
}
|
|
13656
|
+
if (!components.length)
|
|
13657
|
+
throw new InvalidStructSignatureError({ signature: signature2 });
|
|
13658
|
+
shallowStructs[match.name] = components;
|
|
13659
|
+
}
|
|
13660
|
+
const resolvedStructs = {};
|
|
13661
|
+
const entries = Object.entries(shallowStructs);
|
|
13662
|
+
const entriesLength = entries.length;
|
|
13663
|
+
for (let i = 0; i < entriesLength; i++) {
|
|
13664
|
+
const [name, parameters] = entries[i];
|
|
13665
|
+
resolvedStructs[name] = resolveStructs(parameters, shallowStructs);
|
|
13666
|
+
}
|
|
13667
|
+
return resolvedStructs;
|
|
13668
|
+
}
|
|
13669
|
+
var typeWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;
|
|
13670
|
+
function resolveStructs(abiParameters = [], structs = {}, ancestors = /* @__PURE__ */ new Set()) {
|
|
13671
|
+
const components = [];
|
|
13672
|
+
const length = abiParameters.length;
|
|
13673
|
+
for (let i = 0; i < length; i++) {
|
|
13674
|
+
const abiParameter = abiParameters[i];
|
|
13675
|
+
const isTuple = isTupleRegex.test(abiParameter.type);
|
|
13676
|
+
if (isTuple)
|
|
13677
|
+
components.push(abiParameter);
|
|
13678
|
+
else {
|
|
13679
|
+
const match = execTyped(typeWithoutTupleRegex, abiParameter.type);
|
|
13680
|
+
if (!match?.type)
|
|
13681
|
+
throw new InvalidAbiTypeParameterError({ abiParameter });
|
|
13682
|
+
const { array: array2, type } = match;
|
|
13683
|
+
if (type in structs) {
|
|
13684
|
+
if (ancestors.has(type))
|
|
13685
|
+
throw new CircularReferenceError({ type });
|
|
13686
|
+
components.push({
|
|
13687
|
+
...abiParameter,
|
|
13688
|
+
type: `tuple${array2 ?? ""}`,
|
|
13689
|
+
components: resolveStructs(structs[type], structs, /* @__PURE__ */ new Set([...ancestors, type]))
|
|
13690
|
+
});
|
|
13691
|
+
} else {
|
|
13692
|
+
if (isSolidityType(type))
|
|
13693
|
+
components.push(abiParameter);
|
|
13694
|
+
else
|
|
13695
|
+
throw new UnknownTypeError({ type });
|
|
13696
|
+
}
|
|
13697
|
+
}
|
|
13698
|
+
}
|
|
13699
|
+
return components;
|
|
13700
|
+
}
|
|
13701
|
+
|
|
13702
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js
|
|
13703
|
+
function parseAbiParameters(params) {
|
|
13704
|
+
const abiParameters = [];
|
|
13705
|
+
if (typeof params === "string") {
|
|
13706
|
+
const parameters = splitParameters(params);
|
|
13707
|
+
const length = parameters.length;
|
|
13708
|
+
for (let i = 0; i < length; i++) {
|
|
13709
|
+
abiParameters.push(parseAbiParameter(parameters[i], { modifiers }));
|
|
13710
|
+
}
|
|
13711
|
+
} else {
|
|
13712
|
+
const structs = parseStructs(params);
|
|
13713
|
+
const length = params.length;
|
|
13714
|
+
for (let i = 0; i < length; i++) {
|
|
13715
|
+
const signature2 = params[i];
|
|
13716
|
+
if (isStructSignature(signature2))
|
|
13717
|
+
continue;
|
|
13718
|
+
const parameters = splitParameters(signature2);
|
|
13719
|
+
const length2 = parameters.length;
|
|
13720
|
+
for (let k = 0; k < length2; k++) {
|
|
13721
|
+
abiParameters.push(parseAbiParameter(parameters[k], { modifiers, structs }));
|
|
13722
|
+
}
|
|
13723
|
+
}
|
|
13724
|
+
}
|
|
13725
|
+
if (abiParameters.length === 0)
|
|
13726
|
+
throw new InvalidAbiParametersError({ params });
|
|
13727
|
+
return abiParameters;
|
|
13728
|
+
}
|
|
13729
|
+
|
|
13156
13730
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/version.js
|
|
13157
|
-
var
|
|
13731
|
+
var version3 = "0.1.1";
|
|
13158
13732
|
|
|
13159
13733
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/internal/errors.js
|
|
13160
13734
|
function getVersion() {
|
|
13161
|
-
return
|
|
13735
|
+
return version3;
|
|
13162
13736
|
}
|
|
13163
13737
|
|
|
13164
13738
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Errors.js
|
|
13165
|
-
var
|
|
13739
|
+
var BaseError2 = class _BaseError extends Error {
|
|
13166
13740
|
static setStaticOptions(options) {
|
|
13167
13741
|
_BaseError.prototype.docsOrigin = options.docsOrigin;
|
|
13168
13742
|
_BaseError.prototype.showVersion = options.showVersion;
|
|
@@ -13190,7 +13764,7 @@ var BaseError = class _BaseError extends Error {
|
|
|
13190
13764
|
const docsBaseUrl = options.docsOrigin ?? _BaseError.prototype.docsOrigin;
|
|
13191
13765
|
const docs = `${docsBaseUrl}${docsPath ?? ""}`;
|
|
13192
13766
|
const showVersion = Boolean(options.version ?? _BaseError.prototype.showVersion);
|
|
13193
|
-
const
|
|
13767
|
+
const version4 = options.version ?? _BaseError.prototype.version;
|
|
13194
13768
|
const message = [
|
|
13195
13769
|
shortMessage || "An error occurred.",
|
|
13196
13770
|
...options.metaMessages ? ["", ...options.metaMessages] : [],
|
|
@@ -13198,7 +13772,7 @@ var BaseError = class _BaseError extends Error {
|
|
|
13198
13772
|
"",
|
|
13199
13773
|
details ? `Details: ${details}` : void 0,
|
|
13200
13774
|
docsPath ? `See: ${docs}` : void 0,
|
|
13201
|
-
showVersion ? `Version: ${
|
|
13775
|
+
showVersion ? `Version: ${version4}` : void 0
|
|
13202
13776
|
] : []
|
|
13203
13777
|
].filter((x) => typeof x === "string").join("\n");
|
|
13204
13778
|
super(message, options.cause ? { cause: options.cause } : void 0);
|
|
@@ -13263,13 +13837,13 @@ var BaseError = class _BaseError extends Error {
|
|
|
13263
13837
|
this.docsPath = docsPath;
|
|
13264
13838
|
this.shortMessage = shortMessage;
|
|
13265
13839
|
this.showVersion = showVersion;
|
|
13266
|
-
this.version =
|
|
13840
|
+
this.version = version4;
|
|
13267
13841
|
}
|
|
13268
13842
|
walk(fn) {
|
|
13269
13843
|
return walk(this, fn);
|
|
13270
13844
|
}
|
|
13271
13845
|
};
|
|
13272
|
-
Object.defineProperty(
|
|
13846
|
+
Object.defineProperty(BaseError2, "defaultStaticOptions", {
|
|
13273
13847
|
enumerable: true,
|
|
13274
13848
|
configurable: true,
|
|
13275
13849
|
writable: true,
|
|
@@ -13280,7 +13854,7 @@ Object.defineProperty(BaseError, "defaultStaticOptions", {
|
|
|
13280
13854
|
}
|
|
13281
13855
|
});
|
|
13282
13856
|
(() => {
|
|
13283
|
-
|
|
13857
|
+
BaseError2.setStaticOptions(BaseError2.defaultStaticOptions);
|
|
13284
13858
|
})();
|
|
13285
13859
|
function walk(err, fn) {
|
|
13286
13860
|
if (fn?.(err))
|
|
@@ -13825,7 +14399,7 @@ function validate(value, options = {}) {
|
|
|
13825
14399
|
return false;
|
|
13826
14400
|
}
|
|
13827
14401
|
}
|
|
13828
|
-
var IntegerOutOfRangeError = class extends
|
|
14402
|
+
var IntegerOutOfRangeError = class extends BaseError2 {
|
|
13829
14403
|
constructor({ max, min, signed, size: size3, value }) {
|
|
13830
14404
|
super(`Number \`${value}\` is not in safe${size3 ? ` ${size3 * 8}-bit` : ""}${signed ? " signed" : " unsigned"} integer range ${max ? `(\`${min}\` to \`${max}\`)` : `(above \`${min}\`)`}`);
|
|
13831
14405
|
Object.defineProperty(this, "name", {
|
|
@@ -13836,7 +14410,7 @@ var IntegerOutOfRangeError = class extends BaseError {
|
|
|
13836
14410
|
});
|
|
13837
14411
|
}
|
|
13838
14412
|
};
|
|
13839
|
-
var InvalidHexBooleanError = class extends
|
|
14413
|
+
var InvalidHexBooleanError = class extends BaseError2 {
|
|
13840
14414
|
constructor(hex3) {
|
|
13841
14415
|
super(`Hex value \`"${hex3}"\` is not a valid boolean.`, {
|
|
13842
14416
|
metaMessages: [
|
|
@@ -13851,7 +14425,7 @@ var InvalidHexBooleanError = class extends BaseError {
|
|
|
13851
14425
|
});
|
|
13852
14426
|
}
|
|
13853
14427
|
};
|
|
13854
|
-
var InvalidHexTypeError = class extends
|
|
14428
|
+
var InvalidHexTypeError = class extends BaseError2 {
|
|
13855
14429
|
constructor(value) {
|
|
13856
14430
|
super(`Value \`${typeof value === "object" ? stringify(value) : value}\` of type \`${typeof value}\` is an invalid hex type.`, {
|
|
13857
14431
|
metaMessages: ['Hex types must be represented as `"0x${string}"`.']
|
|
@@ -13864,7 +14438,7 @@ var InvalidHexTypeError = class extends BaseError {
|
|
|
13864
14438
|
});
|
|
13865
14439
|
}
|
|
13866
14440
|
};
|
|
13867
|
-
var InvalidHexValueError = class extends
|
|
14441
|
+
var InvalidHexValueError = class extends BaseError2 {
|
|
13868
14442
|
constructor(value) {
|
|
13869
14443
|
super(`Value \`${value}\` is an invalid hex value.`, {
|
|
13870
14444
|
metaMessages: [
|
|
@@ -13879,7 +14453,7 @@ var InvalidHexValueError = class extends BaseError {
|
|
|
13879
14453
|
});
|
|
13880
14454
|
}
|
|
13881
14455
|
};
|
|
13882
|
-
var InvalidLengthError = class extends
|
|
14456
|
+
var InvalidLengthError = class extends BaseError2 {
|
|
13883
14457
|
constructor(value) {
|
|
13884
14458
|
super(`Hex value \`"${value}"\` is an odd length (${value.length - 2} nibbles).`, {
|
|
13885
14459
|
metaMessages: ["It must be an even length."]
|
|
@@ -13892,7 +14466,7 @@ var InvalidLengthError = class extends BaseError {
|
|
|
13892
14466
|
});
|
|
13893
14467
|
}
|
|
13894
14468
|
};
|
|
13895
|
-
var SizeOverflowError2 = class extends
|
|
14469
|
+
var SizeOverflowError2 = class extends BaseError2 {
|
|
13896
14470
|
constructor({ givenSize, maxSize }) {
|
|
13897
14471
|
super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
|
|
13898
14472
|
Object.defineProperty(this, "name", {
|
|
@@ -13903,7 +14477,7 @@ var SizeOverflowError2 = class extends BaseError {
|
|
|
13903
14477
|
});
|
|
13904
14478
|
}
|
|
13905
14479
|
};
|
|
13906
|
-
var SliceOffsetOutOfBoundsError2 = class extends
|
|
14480
|
+
var SliceOffsetOutOfBoundsError2 = class extends BaseError2 {
|
|
13907
14481
|
constructor({ offset, position, size: size3 }) {
|
|
13908
14482
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size3}\`).`);
|
|
13909
14483
|
Object.defineProperty(this, "name", {
|
|
@@ -13914,7 +14488,7 @@ var SliceOffsetOutOfBoundsError2 = class extends BaseError {
|
|
|
13914
14488
|
});
|
|
13915
14489
|
}
|
|
13916
14490
|
};
|
|
13917
|
-
var SizeExceedsPaddingSizeError2 = class extends
|
|
14491
|
+
var SizeExceedsPaddingSizeError2 = class extends BaseError2 {
|
|
13918
14492
|
constructor({ size: size3, targetSize, type }) {
|
|
13919
14493
|
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size3}\`) exceeds padding size (\`${targetSize}\`).`);
|
|
13920
14494
|
Object.defineProperty(this, "name", {
|
|
@@ -13990,7 +14564,7 @@ function fromHex(value, options = {}) {
|
|
|
13990
14564
|
const nibbleLeft = charCodeToBase16(hexString.charCodeAt(j++));
|
|
13991
14565
|
const nibbleRight = charCodeToBase16(hexString.charCodeAt(j++));
|
|
13992
14566
|
if (nibbleLeft === void 0 || nibbleRight === void 0) {
|
|
13993
|
-
throw new
|
|
14567
|
+
throw new BaseError2(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
|
|
13994
14568
|
}
|
|
13995
14569
|
bytes[index] = nibbleLeft << 4 | nibbleRight;
|
|
13996
14570
|
}
|
|
@@ -14083,7 +14657,7 @@ function validate2(value) {
|
|
|
14083
14657
|
return false;
|
|
14084
14658
|
}
|
|
14085
14659
|
}
|
|
14086
|
-
var InvalidBytesBooleanError = class extends
|
|
14660
|
+
var InvalidBytesBooleanError = class extends BaseError2 {
|
|
14087
14661
|
constructor(bytes) {
|
|
14088
14662
|
super(`Bytes value \`${bytes}\` is not a valid boolean.`, {
|
|
14089
14663
|
metaMessages: [
|
|
@@ -14098,7 +14672,7 @@ var InvalidBytesBooleanError = class extends BaseError {
|
|
|
14098
14672
|
});
|
|
14099
14673
|
}
|
|
14100
14674
|
};
|
|
14101
|
-
var InvalidBytesTypeError = class extends
|
|
14675
|
+
var InvalidBytesTypeError = class extends BaseError2 {
|
|
14102
14676
|
constructor(value) {
|
|
14103
14677
|
super(`Value \`${typeof value === "object" ? stringify(value) : value}\` of type \`${typeof value}\` is an invalid Bytes value.`, {
|
|
14104
14678
|
metaMessages: ["Bytes values must be of type `Bytes`."]
|
|
@@ -14111,7 +14685,7 @@ var InvalidBytesTypeError = class extends BaseError {
|
|
|
14111
14685
|
});
|
|
14112
14686
|
}
|
|
14113
14687
|
};
|
|
14114
|
-
var SizeOverflowError = class extends
|
|
14688
|
+
var SizeOverflowError = class extends BaseError2 {
|
|
14115
14689
|
constructor({ givenSize, maxSize }) {
|
|
14116
14690
|
super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
|
|
14117
14691
|
Object.defineProperty(this, "name", {
|
|
@@ -14122,7 +14696,7 @@ var SizeOverflowError = class extends BaseError {
|
|
|
14122
14696
|
});
|
|
14123
14697
|
}
|
|
14124
14698
|
};
|
|
14125
|
-
var SliceOffsetOutOfBoundsError = class extends
|
|
14699
|
+
var SliceOffsetOutOfBoundsError = class extends BaseError2 {
|
|
14126
14700
|
constructor({ offset, position, size: size3 }) {
|
|
14127
14701
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size3}\`).`);
|
|
14128
14702
|
Object.defineProperty(this, "name", {
|
|
@@ -14133,7 +14707,7 @@ var SliceOffsetOutOfBoundsError = class extends BaseError {
|
|
|
14133
14707
|
});
|
|
14134
14708
|
}
|
|
14135
14709
|
};
|
|
14136
|
-
var SizeExceedsPaddingSizeError = class extends
|
|
14710
|
+
var SizeExceedsPaddingSizeError = class extends BaseError2 {
|
|
14137
14711
|
constructor({ size: size3, targetSize, type }) {
|
|
14138
14712
|
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size3}\`) exceeds padding size (\`${targetSize}\`).`);
|
|
14139
14713
|
Object.defineProperty(this, "name", {
|
|
@@ -14298,7 +14872,7 @@ function toHex2(publicKey, options = {}) {
|
|
|
14298
14872
|
);
|
|
14299
14873
|
return publicKey_;
|
|
14300
14874
|
}
|
|
14301
|
-
var InvalidError = class extends
|
|
14875
|
+
var InvalidError = class extends BaseError2 {
|
|
14302
14876
|
constructor({ publicKey }) {
|
|
14303
14877
|
super(`Value \`${stringify(publicKey)}\` is not a valid public key.`, {
|
|
14304
14878
|
metaMessages: [
|
|
@@ -14315,7 +14889,7 @@ var InvalidError = class extends BaseError {
|
|
|
14315
14889
|
});
|
|
14316
14890
|
}
|
|
14317
14891
|
};
|
|
14318
|
-
var InvalidPrefixError = class extends
|
|
14892
|
+
var InvalidPrefixError = class extends BaseError2 {
|
|
14319
14893
|
constructor({ prefix, cause }) {
|
|
14320
14894
|
super(`Prefix "${prefix}" is invalid.`, {
|
|
14321
14895
|
cause
|
|
@@ -14328,7 +14902,7 @@ var InvalidPrefixError = class extends BaseError {
|
|
|
14328
14902
|
});
|
|
14329
14903
|
}
|
|
14330
14904
|
};
|
|
14331
|
-
var InvalidCompressedPrefixError = class extends
|
|
14905
|
+
var InvalidCompressedPrefixError = class extends BaseError2 {
|
|
14332
14906
|
constructor() {
|
|
14333
14907
|
super("Prefix must be 2 or 3 for compressed public keys.");
|
|
14334
14908
|
Object.defineProperty(this, "name", {
|
|
@@ -14339,7 +14913,7 @@ var InvalidCompressedPrefixError = class extends BaseError {
|
|
|
14339
14913
|
});
|
|
14340
14914
|
}
|
|
14341
14915
|
};
|
|
14342
|
-
var InvalidUncompressedPrefixError = class extends
|
|
14916
|
+
var InvalidUncompressedPrefixError = class extends BaseError2 {
|
|
14343
14917
|
constructor() {
|
|
14344
14918
|
super("Prefix must be 4 for uncompressed public keys.");
|
|
14345
14919
|
Object.defineProperty(this, "name", {
|
|
@@ -14350,7 +14924,7 @@ var InvalidUncompressedPrefixError = class extends BaseError {
|
|
|
14350
14924
|
});
|
|
14351
14925
|
}
|
|
14352
14926
|
};
|
|
14353
|
-
var InvalidSerializedSizeError = class extends
|
|
14927
|
+
var InvalidSerializedSizeError = class extends BaseError2 {
|
|
14354
14928
|
constructor({ publicKey }) {
|
|
14355
14929
|
super(`Value \`${publicKey}\` is an invalid public key size.`, {
|
|
14356
14930
|
metaMessages: [
|
|
@@ -14421,7 +14995,7 @@ function isEqual3(addressA, addressB) {
|
|
|
14421
14995
|
assert5(addressB, { strict: false });
|
|
14422
14996
|
return addressA.toLowerCase() === addressB.toLowerCase();
|
|
14423
14997
|
}
|
|
14424
|
-
var InvalidAddressError = class extends
|
|
14998
|
+
var InvalidAddressError = class extends BaseError2 {
|
|
14425
14999
|
constructor({ address: address2, cause }) {
|
|
14426
15000
|
super(`Address "${address2}" is invalid.`, {
|
|
14427
15001
|
cause
|
|
@@ -14434,7 +15008,7 @@ var InvalidAddressError = class extends BaseError {
|
|
|
14434
15008
|
});
|
|
14435
15009
|
}
|
|
14436
15010
|
};
|
|
14437
|
-
var InvalidInputError = class extends
|
|
15011
|
+
var InvalidInputError = class extends BaseError2 {
|
|
14438
15012
|
constructor() {
|
|
14439
15013
|
super("Address is not a 20 byte (40 hexadecimal character) value.");
|
|
14440
15014
|
Object.defineProperty(this, "name", {
|
|
@@ -14445,7 +15019,7 @@ var InvalidInputError = class extends BaseError {
|
|
|
14445
15019
|
});
|
|
14446
15020
|
}
|
|
14447
15021
|
};
|
|
14448
|
-
var InvalidChecksumError = class extends
|
|
15022
|
+
var InvalidChecksumError = class extends BaseError2 {
|
|
14449
15023
|
constructor() {
|
|
14450
15024
|
super("Address does not match its checksum counterpart.");
|
|
14451
15025
|
Object.defineProperty(this, "name", {
|
|
@@ -14476,8 +15050,8 @@ __export(AbiParameters_exports, {
|
|
|
14476
15050
|
|
|
14477
15051
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Solidity.js
|
|
14478
15052
|
var arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
|
14479
|
-
var
|
|
14480
|
-
var
|
|
15053
|
+
var bytesRegex2 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
15054
|
+
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)?$/;
|
|
14481
15055
|
var maxInt8 = 2n ** (8n - 1n) - 1n;
|
|
14482
15056
|
var maxInt16 = 2n ** (16n - 1n) - 1n;
|
|
14483
15057
|
var maxInt24 = 2n ** (24n - 1n) - 1n;
|
|
@@ -14774,7 +15348,7 @@ function prepareParameter({ checksumAddress = false, parameter: parameter_, valu
|
|
|
14774
15348
|
}
|
|
14775
15349
|
if (parameter.type.startsWith("uint") || parameter.type.startsWith("int")) {
|
|
14776
15350
|
const signed = parameter.type.startsWith("int");
|
|
14777
|
-
const [, , size3 = "256"] =
|
|
15351
|
+
const [, , size3 = "256"] = integerRegex2.exec(parameter.type) ?? [];
|
|
14778
15352
|
return encodeNumber(value, {
|
|
14779
15353
|
signed,
|
|
14780
15354
|
size: Number(size3)
|
|
@@ -14881,7 +15455,7 @@ function encodeBytes(value, { type }) {
|
|
|
14881
15455
|
}
|
|
14882
15456
|
function encodeBoolean(value) {
|
|
14883
15457
|
if (typeof value !== "boolean")
|
|
14884
|
-
throw new
|
|
15458
|
+
throw new BaseError2(`Invalid boolean value: "${value}" (type: ${typeof value}). Expected: \`true\` or \`false\`.`);
|
|
14885
15459
|
return { dynamic: false, encoded: padLeft(fromBoolean(value)) };
|
|
14886
15460
|
}
|
|
14887
15461
|
function encodeNumber(value, { signed, size: size3 }) {
|
|
@@ -15132,7 +15706,7 @@ function create(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
|
15132
15706
|
cursor.recursiveReadLimit = recursiveReadLimit;
|
|
15133
15707
|
return cursor;
|
|
15134
15708
|
}
|
|
15135
|
-
var NegativeOffsetError = class extends
|
|
15709
|
+
var NegativeOffsetError = class extends BaseError2 {
|
|
15136
15710
|
constructor({ offset }) {
|
|
15137
15711
|
super(`Offset \`${offset}\` cannot be negative.`);
|
|
15138
15712
|
Object.defineProperty(this, "name", {
|
|
@@ -15143,7 +15717,7 @@ var NegativeOffsetError = class extends BaseError {
|
|
|
15143
15717
|
});
|
|
15144
15718
|
}
|
|
15145
15719
|
};
|
|
15146
|
-
var PositionOutOfBoundsError = class extends
|
|
15720
|
+
var PositionOutOfBoundsError = class extends BaseError2 {
|
|
15147
15721
|
constructor({ length, position }) {
|
|
15148
15722
|
super(`Position \`${position}\` is out of bounds (\`0 < position < ${length}\`).`);
|
|
15149
15723
|
Object.defineProperty(this, "name", {
|
|
@@ -15154,7 +15728,7 @@ var PositionOutOfBoundsError = class extends BaseError {
|
|
|
15154
15728
|
});
|
|
15155
15729
|
}
|
|
15156
15730
|
};
|
|
15157
|
-
var RecursiveReadLimitExceededError = class extends
|
|
15731
|
+
var RecursiveReadLimitExceededError = class extends BaseError2 {
|
|
15158
15732
|
constructor({ count, limit }) {
|
|
15159
15733
|
super(`Recursive read limit of \`${limit}\` exceeded (recursive read count: \`${count}\`).`);
|
|
15160
15734
|
Object.defineProperty(this, "name", {
|
|
@@ -15240,7 +15814,7 @@ function encodePacked(types, values) {
|
|
|
15240
15814
|
return value;
|
|
15241
15815
|
if (type === "bool")
|
|
15242
15816
|
return padLeft(fromBoolean(value), isArray ? 32 : 1);
|
|
15243
|
-
const intMatch = type.match(
|
|
15817
|
+
const intMatch = type.match(integerRegex2);
|
|
15244
15818
|
if (intMatch) {
|
|
15245
15819
|
const [_type, baseType, bits = "256"] = intMatch;
|
|
15246
15820
|
const size3 = Number.parseInt(bits, 10) / 8;
|
|
@@ -15249,7 +15823,7 @@ function encodePacked(types, values) {
|
|
|
15249
15823
|
signed: baseType === "int"
|
|
15250
15824
|
});
|
|
15251
15825
|
}
|
|
15252
|
-
const bytesMatch = type.match(
|
|
15826
|
+
const bytesMatch = type.match(bytesRegex2);
|
|
15253
15827
|
if (bytesMatch) {
|
|
15254
15828
|
const [_type, size3] = bytesMatch;
|
|
15255
15829
|
if (Number.parseInt(size3, 10) !== (value.length - 2) / 2)
|
|
@@ -15284,7 +15858,7 @@ function from5(parameters) {
|
|
|
15284
15858
|
return parseAbiParameters(parameters);
|
|
15285
15859
|
return parameters;
|
|
15286
15860
|
}
|
|
15287
|
-
var DataSizeTooSmallError = class extends
|
|
15861
|
+
var DataSizeTooSmallError = class extends BaseError2 {
|
|
15288
15862
|
constructor({ data, parameters, size: size3 }) {
|
|
15289
15863
|
super(`Data size of ${size3} bytes is too small for given parameters.`, {
|
|
15290
15864
|
metaMessages: [
|
|
@@ -15300,7 +15874,7 @@ var DataSizeTooSmallError = class extends BaseError {
|
|
|
15300
15874
|
});
|
|
15301
15875
|
}
|
|
15302
15876
|
};
|
|
15303
|
-
var ZeroDataError = class extends
|
|
15877
|
+
var ZeroDataError = class extends BaseError2 {
|
|
15304
15878
|
constructor() {
|
|
15305
15879
|
super('Cannot decode zero data ("0x") with ABI parameters.');
|
|
15306
15880
|
Object.defineProperty(this, "name", {
|
|
@@ -15311,7 +15885,7 @@ var ZeroDataError = class extends BaseError {
|
|
|
15311
15885
|
});
|
|
15312
15886
|
}
|
|
15313
15887
|
};
|
|
15314
|
-
var ArrayLengthMismatchError = class extends
|
|
15888
|
+
var ArrayLengthMismatchError = class extends BaseError2 {
|
|
15315
15889
|
constructor({ expectedLength, givenLength, type }) {
|
|
15316
15890
|
super(`Array length mismatch for type \`${type}\`. Expected: \`${expectedLength}\`. Given: \`${givenLength}\`.`);
|
|
15317
15891
|
Object.defineProperty(this, "name", {
|
|
@@ -15322,7 +15896,7 @@ var ArrayLengthMismatchError = class extends BaseError {
|
|
|
15322
15896
|
});
|
|
15323
15897
|
}
|
|
15324
15898
|
};
|
|
15325
|
-
var BytesSizeMismatchError = class extends
|
|
15899
|
+
var BytesSizeMismatchError = class extends BaseError2 {
|
|
15326
15900
|
constructor({ expectedSize, value }) {
|
|
15327
15901
|
super(`Size of bytes "${value}" (bytes${size2(value)}) does not match expected size (bytes${expectedSize}).`);
|
|
15328
15902
|
Object.defineProperty(this, "name", {
|
|
@@ -15333,7 +15907,7 @@ var BytesSizeMismatchError = class extends BaseError {
|
|
|
15333
15907
|
});
|
|
15334
15908
|
}
|
|
15335
15909
|
};
|
|
15336
|
-
var LengthMismatchError = class extends
|
|
15910
|
+
var LengthMismatchError = class extends BaseError2 {
|
|
15337
15911
|
constructor({ expectedLength, givenLength }) {
|
|
15338
15912
|
super([
|
|
15339
15913
|
"ABI encoding parameters/values length mismatch.",
|
|
@@ -15348,7 +15922,7 @@ var LengthMismatchError = class extends BaseError {
|
|
|
15348
15922
|
});
|
|
15349
15923
|
}
|
|
15350
15924
|
};
|
|
15351
|
-
var InvalidArrayError = class extends
|
|
15925
|
+
var InvalidArrayError = class extends BaseError2 {
|
|
15352
15926
|
constructor(value) {
|
|
15353
15927
|
super(`Value \`${value}\` is not a valid array.`);
|
|
15354
15928
|
Object.defineProperty(this, "name", {
|
|
@@ -15359,7 +15933,7 @@ var InvalidArrayError = class extends BaseError {
|
|
|
15359
15933
|
});
|
|
15360
15934
|
}
|
|
15361
15935
|
};
|
|
15362
|
-
var InvalidTypeError = class extends
|
|
15936
|
+
var InvalidTypeError = class extends BaseError2 {
|
|
15363
15937
|
constructor(type) {
|
|
15364
15938
|
super(`Type \`${type}\` is not a valid ABI Type.`);
|
|
15365
15939
|
Object.defineProperty(this, "name", {
|
|
@@ -15579,7 +16153,7 @@ function yParityToV(yParity) {
|
|
|
15579
16153
|
return 28;
|
|
15580
16154
|
throw new InvalidYParityError({ value: yParity });
|
|
15581
16155
|
}
|
|
15582
|
-
var InvalidSerializedSizeError2 = class extends
|
|
16156
|
+
var InvalidSerializedSizeError2 = class extends BaseError2 {
|
|
15583
16157
|
constructor({ signature: signature2 }) {
|
|
15584
16158
|
super(`Value \`${signature2}\` is an invalid signature size.`, {
|
|
15585
16159
|
metaMessages: [
|
|
@@ -15595,7 +16169,7 @@ var InvalidSerializedSizeError2 = class extends BaseError {
|
|
|
15595
16169
|
});
|
|
15596
16170
|
}
|
|
15597
16171
|
};
|
|
15598
|
-
var MissingPropertiesError = class extends
|
|
16172
|
+
var MissingPropertiesError = class extends BaseError2 {
|
|
15599
16173
|
constructor({ signature: signature2 }) {
|
|
15600
16174
|
super(`Signature \`${stringify(signature2)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`);
|
|
15601
16175
|
Object.defineProperty(this, "name", {
|
|
@@ -15606,7 +16180,7 @@ var MissingPropertiesError = class extends BaseError {
|
|
|
15606
16180
|
});
|
|
15607
16181
|
}
|
|
15608
16182
|
};
|
|
15609
|
-
var InvalidRError = class extends
|
|
16183
|
+
var InvalidRError = class extends BaseError2 {
|
|
15610
16184
|
constructor({ value }) {
|
|
15611
16185
|
super(`Value \`${value}\` is an invalid r value. r must be a positive integer less than 2^256.`);
|
|
15612
16186
|
Object.defineProperty(this, "name", {
|
|
@@ -15617,7 +16191,7 @@ var InvalidRError = class extends BaseError {
|
|
|
15617
16191
|
});
|
|
15618
16192
|
}
|
|
15619
16193
|
};
|
|
15620
|
-
var InvalidSError = class extends
|
|
16194
|
+
var InvalidSError = class extends BaseError2 {
|
|
15621
16195
|
constructor({ value }) {
|
|
15622
16196
|
super(`Value \`${value}\` is an invalid s value. s must be a positive integer less than 2^256.`);
|
|
15623
16197
|
Object.defineProperty(this, "name", {
|
|
@@ -15628,7 +16202,7 @@ var InvalidSError = class extends BaseError {
|
|
|
15628
16202
|
});
|
|
15629
16203
|
}
|
|
15630
16204
|
};
|
|
15631
|
-
var InvalidYParityError = class extends
|
|
16205
|
+
var InvalidYParityError = class extends BaseError2 {
|
|
15632
16206
|
constructor({ value }) {
|
|
15633
16207
|
super(`Value \`${value}\` is an invalid y-parity value. Y-parity must be 0 or 1.`);
|
|
15634
16208
|
Object.defineProperty(this, "name", {
|
|
@@ -15639,7 +16213,7 @@ var InvalidYParityError = class extends BaseError {
|
|
|
15639
16213
|
});
|
|
15640
16214
|
}
|
|
15641
16215
|
};
|
|
15642
|
-
var InvalidVError = class extends
|
|
16216
|
+
var InvalidVError = class extends BaseError2 {
|
|
15643
16217
|
constructor({ value }) {
|
|
15644
16218
|
super(`Value \`${value}\` is an invalid v value. v must be 27, 28 or >=35.`);
|
|
15645
16219
|
Object.defineProperty(this, "name", {
|
|
@@ -15835,7 +16409,7 @@ function verify4(options) {
|
|
|
15835
16409
|
return verify3(options);
|
|
15836
16410
|
}
|
|
15837
16411
|
|
|
15838
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@
|
|
16412
|
+
// ../../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
|
|
15839
16413
|
function deserialize(encoded) {
|
|
15840
16414
|
const json2 = Base64_exports.toString(encoded);
|
|
15841
16415
|
return JSON.parse(json2);
|
|
@@ -15845,7 +16419,7 @@ function serialize(request) {
|
|
|
15845
16419
|
return Base64_exports.fromString(json2, { pad: false, url: true });
|
|
15846
16420
|
}
|
|
15847
16421
|
|
|
15848
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@
|
|
16422
|
+
// ../../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
|
|
15849
16423
|
var Schema = object({
|
|
15850
16424
|
/** Optional human-readable description of the payment. */
|
|
15851
16425
|
description: optional(string2()),
|
|
@@ -16046,7 +16620,7 @@ function computeId(challenge, options) {
|
|
|
16046
16620
|
return Base64_exports.fromBytes(mac3, { url: true, pad: false });
|
|
16047
16621
|
}
|
|
16048
16622
|
|
|
16049
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@
|
|
16623
|
+
// ../../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
|
|
16050
16624
|
function deserialize3(value) {
|
|
16051
16625
|
const prefixMatch = value.match(/^Payment\s+(.+)$/i);
|
|
16052
16626
|
if (!prefixMatch?.[1])
|
|
@@ -16102,7 +16676,7 @@ function extractPaymentScheme(header) {
|
|
|
16102
16676
|
return schemes.find((s) => /^Payment\s+/i.test(s)) ?? null;
|
|
16103
16677
|
}
|
|
16104
16678
|
|
|
16105
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@
|
|
16679
|
+
// ../../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
|
|
16106
16680
|
var Method_exports = {};
|
|
16107
16681
|
__export(Method_exports, {
|
|
16108
16682
|
from: () => from9,
|
|
@@ -16132,13 +16706,13 @@ function toServer(method, options) {
|
|
|
16132
16706
|
};
|
|
16133
16707
|
}
|
|
16134
16708
|
|
|
16135
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@
|
|
16709
|
+
// ../../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
|
|
16136
16710
|
var paymentRequiredCode = -32042;
|
|
16137
16711
|
var credentialMetaKey = "org.paymentauth/credential";
|
|
16138
16712
|
|
|
16139
16713
|
export {
|
|
16140
16714
|
Expires_exports,
|
|
16141
|
-
BaseError,
|
|
16715
|
+
BaseError2 as BaseError,
|
|
16142
16716
|
sha2562 as sha256,
|
|
16143
16717
|
stringify,
|
|
16144
16718
|
concat,
|
|
@@ -16204,4 +16778,4 @@ export {
|
|
|
16204
16778
|
@noble/curves/esm/p256.js:
|
|
16205
16779
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
16206
16780
|
*/
|
|
16207
|
-
//# sourceMappingURL=chunk-
|
|
16781
|
+
//# sourceMappingURL=chunk-HGA6AHN5.js.map
|