@t2000/cli 0.36.4 → 0.37.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 -1
- 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-FSSTF3LM.js → chunk-7PIRCLKI.js} +68 -10
- package/dist/chunk-7PIRCLKI.js.map +1 -0
- package/dist/chunk-EI3GHTKX.js +968 -0
- package/dist/chunk-EI3GHTKX.js.map +1 -0
- package/dist/{chunk-HGA6AHN5.js → chunk-TYYJRUQI.js} +70 -644
- package/dist/chunk-TYYJRUQI.js.map +1 -0
- package/dist/{client-KQCHOXLV.js → client-IXUBQ3HM.js} +197 -197
- package/dist/client-IXUBQ3HM.js.map +1 -0
- package/dist/{client-2MUO6VAJ.js → client-YNWQPUC5.js} +4 -4
- package/dist/{client-2MUO6VAJ.js.map → client-YNWQPUC5.js.map} +1 -1
- package/dist/{dist-4JQX7CWE.js → dist-EDYMBYNA.js} +2 -2
- package/dist/{dist-55H37ULN.js → dist-NREODDWO.js} +3 -3
- package/dist/{dist-55H37ULN.js.map → dist-NREODDWO.js.map} +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- 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-FSSTF3LM.js.map +0 -1
- package/dist/chunk-HGA6AHN5.js.map +0 -1
- package/dist/client-KQCHOXLV.js.map +0 -1
- /package/dist/{ccip-JEEJV65M.js.map → ccip-XP27NGI7.js.map} +0 -0
- /package/dist/{dist-4JQX7CWE.js.map → dist-EDYMBYNA.js.map} +0 -0
|
@@ -10,8 +10,10 @@ import {
|
|
|
10
10
|
sha512
|
|
11
11
|
} from "./chunk-NGS6K3I3.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
formatAbiParameters,
|
|
14
|
+
keccak_256,
|
|
15
|
+
parseAbiParameters
|
|
16
|
+
} from "./chunk-EI3GHTKX.js";
|
|
15
17
|
import {
|
|
16
18
|
clean,
|
|
17
19
|
createHasher,
|
|
@@ -22,7 +24,7 @@ import {
|
|
|
22
24
|
__export
|
|
23
25
|
} from "./chunk-YPWSCLE3.js";
|
|
24
26
|
|
|
25
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
27
|
+
// ../../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/Expires.js
|
|
26
28
|
var Expires_exports = {};
|
|
27
29
|
__export(Expires_exports, {
|
|
28
30
|
days: () => days,
|
|
@@ -55,7 +57,7 @@ function years(n) {
|
|
|
55
57
|
return new Date(Date.now() + n * 365 * 24 * 60 * 60 * 1e3).toISOString();
|
|
56
58
|
}
|
|
57
59
|
|
|
58
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
60
|
+
// ../../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/zod.js
|
|
59
61
|
var zod_exports = {};
|
|
60
62
|
__export(zod_exports, {
|
|
61
63
|
$brand: () => $brand,
|
|
@@ -1871,10 +1873,10 @@ var nanoid = /^[a-zA-Z0-9_-]{21}$/;
|
|
|
1871
1873
|
var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
|
|
1872
1874
|
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)?)??$/;
|
|
1873
1875
|
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})$/;
|
|
1874
|
-
var uuid = (
|
|
1875
|
-
if (!
|
|
1876
|
+
var uuid = (version3) => {
|
|
1877
|
+
if (!version3)
|
|
1876
1878
|
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)$/;
|
|
1877
|
-
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${
|
|
1879
|
+
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version3}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
|
|
1878
1880
|
};
|
|
1879
1881
|
var uuid4 = /* @__PURE__ */ uuid(4);
|
|
1880
1882
|
var uuid6 = /* @__PURE__ */ uuid(6);
|
|
@@ -13116,7 +13118,7 @@ function date4(params) {
|
|
|
13116
13118
|
return _coercedDate(ZodMiniDate, params);
|
|
13117
13119
|
}
|
|
13118
13120
|
|
|
13119
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
13121
|
+
// ../../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/zod.js
|
|
13120
13122
|
function amount() {
|
|
13121
13123
|
return external_exports.string().check(external_exports.regex(/^\d+(\.\d+)?$/, "Invalid amount"));
|
|
13122
13124
|
}
|
|
@@ -13141,7 +13143,7 @@ function unwrapOptional(schema) {
|
|
|
13141
13143
|
return schema;
|
|
13142
13144
|
}
|
|
13143
13145
|
|
|
13144
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
13146
|
+
// ../../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/Credential.js
|
|
13145
13147
|
var Credential_exports = {};
|
|
13146
13148
|
__export(Credential_exports, {
|
|
13147
13149
|
deserialize: () => deserialize3,
|
|
@@ -13151,592 +13153,16 @@ __export(Credential_exports, {
|
|
|
13151
13153
|
serialize: () => serialize2
|
|
13152
13154
|
});
|
|
13153
13155
|
|
|
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
|
-
|
|
13730
13156
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/version.js
|
|
13731
|
-
var
|
|
13157
|
+
var version2 = "0.1.1";
|
|
13732
13158
|
|
|
13733
13159
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/internal/errors.js
|
|
13734
13160
|
function getVersion() {
|
|
13735
|
-
return
|
|
13161
|
+
return version2;
|
|
13736
13162
|
}
|
|
13737
13163
|
|
|
13738
13164
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Errors.js
|
|
13739
|
-
var
|
|
13165
|
+
var BaseError = class _BaseError extends Error {
|
|
13740
13166
|
static setStaticOptions(options) {
|
|
13741
13167
|
_BaseError.prototype.docsOrigin = options.docsOrigin;
|
|
13742
13168
|
_BaseError.prototype.showVersion = options.showVersion;
|
|
@@ -13764,7 +13190,7 @@ var BaseError2 = class _BaseError extends Error {
|
|
|
13764
13190
|
const docsBaseUrl = options.docsOrigin ?? _BaseError.prototype.docsOrigin;
|
|
13765
13191
|
const docs = `${docsBaseUrl}${docsPath ?? ""}`;
|
|
13766
13192
|
const showVersion = Boolean(options.version ?? _BaseError.prototype.showVersion);
|
|
13767
|
-
const
|
|
13193
|
+
const version3 = options.version ?? _BaseError.prototype.version;
|
|
13768
13194
|
const message = [
|
|
13769
13195
|
shortMessage || "An error occurred.",
|
|
13770
13196
|
...options.metaMessages ? ["", ...options.metaMessages] : [],
|
|
@@ -13772,7 +13198,7 @@ var BaseError2 = class _BaseError extends Error {
|
|
|
13772
13198
|
"",
|
|
13773
13199
|
details ? `Details: ${details}` : void 0,
|
|
13774
13200
|
docsPath ? `See: ${docs}` : void 0,
|
|
13775
|
-
showVersion ? `Version: ${
|
|
13201
|
+
showVersion ? `Version: ${version3}` : void 0
|
|
13776
13202
|
] : []
|
|
13777
13203
|
].filter((x) => typeof x === "string").join("\n");
|
|
13778
13204
|
super(message, options.cause ? { cause: options.cause } : void 0);
|
|
@@ -13837,13 +13263,13 @@ var BaseError2 = class _BaseError extends Error {
|
|
|
13837
13263
|
this.docsPath = docsPath;
|
|
13838
13264
|
this.shortMessage = shortMessage;
|
|
13839
13265
|
this.showVersion = showVersion;
|
|
13840
|
-
this.version =
|
|
13266
|
+
this.version = version3;
|
|
13841
13267
|
}
|
|
13842
13268
|
walk(fn) {
|
|
13843
13269
|
return walk(this, fn);
|
|
13844
13270
|
}
|
|
13845
13271
|
};
|
|
13846
|
-
Object.defineProperty(
|
|
13272
|
+
Object.defineProperty(BaseError, "defaultStaticOptions", {
|
|
13847
13273
|
enumerable: true,
|
|
13848
13274
|
configurable: true,
|
|
13849
13275
|
writable: true,
|
|
@@ -13854,7 +13280,7 @@ Object.defineProperty(BaseError2, "defaultStaticOptions", {
|
|
|
13854
13280
|
}
|
|
13855
13281
|
});
|
|
13856
13282
|
(() => {
|
|
13857
|
-
|
|
13283
|
+
BaseError.setStaticOptions(BaseError.defaultStaticOptions);
|
|
13858
13284
|
})();
|
|
13859
13285
|
function walk(err, fn) {
|
|
13860
13286
|
if (fn?.(err))
|
|
@@ -14399,7 +13825,7 @@ function validate(value, options = {}) {
|
|
|
14399
13825
|
return false;
|
|
14400
13826
|
}
|
|
14401
13827
|
}
|
|
14402
|
-
var IntegerOutOfRangeError = class extends
|
|
13828
|
+
var IntegerOutOfRangeError = class extends BaseError {
|
|
14403
13829
|
constructor({ max, min, signed, size: size3, value }) {
|
|
14404
13830
|
super(`Number \`${value}\` is not in safe${size3 ? ` ${size3 * 8}-bit` : ""}${signed ? " signed" : " unsigned"} integer range ${max ? `(\`${min}\` to \`${max}\`)` : `(above \`${min}\`)`}`);
|
|
14405
13831
|
Object.defineProperty(this, "name", {
|
|
@@ -14410,7 +13836,7 @@ var IntegerOutOfRangeError = class extends BaseError2 {
|
|
|
14410
13836
|
});
|
|
14411
13837
|
}
|
|
14412
13838
|
};
|
|
14413
|
-
var InvalidHexBooleanError = class extends
|
|
13839
|
+
var InvalidHexBooleanError = class extends BaseError {
|
|
14414
13840
|
constructor(hex3) {
|
|
14415
13841
|
super(`Hex value \`"${hex3}"\` is not a valid boolean.`, {
|
|
14416
13842
|
metaMessages: [
|
|
@@ -14425,7 +13851,7 @@ var InvalidHexBooleanError = class extends BaseError2 {
|
|
|
14425
13851
|
});
|
|
14426
13852
|
}
|
|
14427
13853
|
};
|
|
14428
|
-
var InvalidHexTypeError = class extends
|
|
13854
|
+
var InvalidHexTypeError = class extends BaseError {
|
|
14429
13855
|
constructor(value) {
|
|
14430
13856
|
super(`Value \`${typeof value === "object" ? stringify(value) : value}\` of type \`${typeof value}\` is an invalid hex type.`, {
|
|
14431
13857
|
metaMessages: ['Hex types must be represented as `"0x${string}"`.']
|
|
@@ -14438,7 +13864,7 @@ var InvalidHexTypeError = class extends BaseError2 {
|
|
|
14438
13864
|
});
|
|
14439
13865
|
}
|
|
14440
13866
|
};
|
|
14441
|
-
var InvalidHexValueError = class extends
|
|
13867
|
+
var InvalidHexValueError = class extends BaseError {
|
|
14442
13868
|
constructor(value) {
|
|
14443
13869
|
super(`Value \`${value}\` is an invalid hex value.`, {
|
|
14444
13870
|
metaMessages: [
|
|
@@ -14453,7 +13879,7 @@ var InvalidHexValueError = class extends BaseError2 {
|
|
|
14453
13879
|
});
|
|
14454
13880
|
}
|
|
14455
13881
|
};
|
|
14456
|
-
var InvalidLengthError = class extends
|
|
13882
|
+
var InvalidLengthError = class extends BaseError {
|
|
14457
13883
|
constructor(value) {
|
|
14458
13884
|
super(`Hex value \`"${value}"\` is an odd length (${value.length - 2} nibbles).`, {
|
|
14459
13885
|
metaMessages: ["It must be an even length."]
|
|
@@ -14466,7 +13892,7 @@ var InvalidLengthError = class extends BaseError2 {
|
|
|
14466
13892
|
});
|
|
14467
13893
|
}
|
|
14468
13894
|
};
|
|
14469
|
-
var SizeOverflowError2 = class extends
|
|
13895
|
+
var SizeOverflowError2 = class extends BaseError {
|
|
14470
13896
|
constructor({ givenSize, maxSize }) {
|
|
14471
13897
|
super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
|
|
14472
13898
|
Object.defineProperty(this, "name", {
|
|
@@ -14477,7 +13903,7 @@ var SizeOverflowError2 = class extends BaseError2 {
|
|
|
14477
13903
|
});
|
|
14478
13904
|
}
|
|
14479
13905
|
};
|
|
14480
|
-
var SliceOffsetOutOfBoundsError2 = class extends
|
|
13906
|
+
var SliceOffsetOutOfBoundsError2 = class extends BaseError {
|
|
14481
13907
|
constructor({ offset, position, size: size3 }) {
|
|
14482
13908
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size3}\`).`);
|
|
14483
13909
|
Object.defineProperty(this, "name", {
|
|
@@ -14488,7 +13914,7 @@ var SliceOffsetOutOfBoundsError2 = class extends BaseError2 {
|
|
|
14488
13914
|
});
|
|
14489
13915
|
}
|
|
14490
13916
|
};
|
|
14491
|
-
var SizeExceedsPaddingSizeError2 = class extends
|
|
13917
|
+
var SizeExceedsPaddingSizeError2 = class extends BaseError {
|
|
14492
13918
|
constructor({ size: size3, targetSize, type }) {
|
|
14493
13919
|
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size3}\`) exceeds padding size (\`${targetSize}\`).`);
|
|
14494
13920
|
Object.defineProperty(this, "name", {
|
|
@@ -14564,7 +13990,7 @@ function fromHex(value, options = {}) {
|
|
|
14564
13990
|
const nibbleLeft = charCodeToBase16(hexString.charCodeAt(j++));
|
|
14565
13991
|
const nibbleRight = charCodeToBase16(hexString.charCodeAt(j++));
|
|
14566
13992
|
if (nibbleLeft === void 0 || nibbleRight === void 0) {
|
|
14567
|
-
throw new
|
|
13993
|
+
throw new BaseError(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
|
|
14568
13994
|
}
|
|
14569
13995
|
bytes[index] = nibbleLeft << 4 | nibbleRight;
|
|
14570
13996
|
}
|
|
@@ -14657,7 +14083,7 @@ function validate2(value) {
|
|
|
14657
14083
|
return false;
|
|
14658
14084
|
}
|
|
14659
14085
|
}
|
|
14660
|
-
var InvalidBytesBooleanError = class extends
|
|
14086
|
+
var InvalidBytesBooleanError = class extends BaseError {
|
|
14661
14087
|
constructor(bytes) {
|
|
14662
14088
|
super(`Bytes value \`${bytes}\` is not a valid boolean.`, {
|
|
14663
14089
|
metaMessages: [
|
|
@@ -14672,7 +14098,7 @@ var InvalidBytesBooleanError = class extends BaseError2 {
|
|
|
14672
14098
|
});
|
|
14673
14099
|
}
|
|
14674
14100
|
};
|
|
14675
|
-
var InvalidBytesTypeError = class extends
|
|
14101
|
+
var InvalidBytesTypeError = class extends BaseError {
|
|
14676
14102
|
constructor(value) {
|
|
14677
14103
|
super(`Value \`${typeof value === "object" ? stringify(value) : value}\` of type \`${typeof value}\` is an invalid Bytes value.`, {
|
|
14678
14104
|
metaMessages: ["Bytes values must be of type `Bytes`."]
|
|
@@ -14685,7 +14111,7 @@ var InvalidBytesTypeError = class extends BaseError2 {
|
|
|
14685
14111
|
});
|
|
14686
14112
|
}
|
|
14687
14113
|
};
|
|
14688
|
-
var SizeOverflowError = class extends
|
|
14114
|
+
var SizeOverflowError = class extends BaseError {
|
|
14689
14115
|
constructor({ givenSize, maxSize }) {
|
|
14690
14116
|
super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
|
|
14691
14117
|
Object.defineProperty(this, "name", {
|
|
@@ -14696,7 +14122,7 @@ var SizeOverflowError = class extends BaseError2 {
|
|
|
14696
14122
|
});
|
|
14697
14123
|
}
|
|
14698
14124
|
};
|
|
14699
|
-
var SliceOffsetOutOfBoundsError = class extends
|
|
14125
|
+
var SliceOffsetOutOfBoundsError = class extends BaseError {
|
|
14700
14126
|
constructor({ offset, position, size: size3 }) {
|
|
14701
14127
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size3}\`).`);
|
|
14702
14128
|
Object.defineProperty(this, "name", {
|
|
@@ -14707,7 +14133,7 @@ var SliceOffsetOutOfBoundsError = class extends BaseError2 {
|
|
|
14707
14133
|
});
|
|
14708
14134
|
}
|
|
14709
14135
|
};
|
|
14710
|
-
var SizeExceedsPaddingSizeError = class extends
|
|
14136
|
+
var SizeExceedsPaddingSizeError = class extends BaseError {
|
|
14711
14137
|
constructor({ size: size3, targetSize, type }) {
|
|
14712
14138
|
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size3}\`) exceeds padding size (\`${targetSize}\`).`);
|
|
14713
14139
|
Object.defineProperty(this, "name", {
|
|
@@ -14872,7 +14298,7 @@ function toHex2(publicKey, options = {}) {
|
|
|
14872
14298
|
);
|
|
14873
14299
|
return publicKey_;
|
|
14874
14300
|
}
|
|
14875
|
-
var InvalidError = class extends
|
|
14301
|
+
var InvalidError = class extends BaseError {
|
|
14876
14302
|
constructor({ publicKey }) {
|
|
14877
14303
|
super(`Value \`${stringify(publicKey)}\` is not a valid public key.`, {
|
|
14878
14304
|
metaMessages: [
|
|
@@ -14889,7 +14315,7 @@ var InvalidError = class extends BaseError2 {
|
|
|
14889
14315
|
});
|
|
14890
14316
|
}
|
|
14891
14317
|
};
|
|
14892
|
-
var InvalidPrefixError = class extends
|
|
14318
|
+
var InvalidPrefixError = class extends BaseError {
|
|
14893
14319
|
constructor({ prefix, cause }) {
|
|
14894
14320
|
super(`Prefix "${prefix}" is invalid.`, {
|
|
14895
14321
|
cause
|
|
@@ -14902,7 +14328,7 @@ var InvalidPrefixError = class extends BaseError2 {
|
|
|
14902
14328
|
});
|
|
14903
14329
|
}
|
|
14904
14330
|
};
|
|
14905
|
-
var InvalidCompressedPrefixError = class extends
|
|
14331
|
+
var InvalidCompressedPrefixError = class extends BaseError {
|
|
14906
14332
|
constructor() {
|
|
14907
14333
|
super("Prefix must be 2 or 3 for compressed public keys.");
|
|
14908
14334
|
Object.defineProperty(this, "name", {
|
|
@@ -14913,7 +14339,7 @@ var InvalidCompressedPrefixError = class extends BaseError2 {
|
|
|
14913
14339
|
});
|
|
14914
14340
|
}
|
|
14915
14341
|
};
|
|
14916
|
-
var InvalidUncompressedPrefixError = class extends
|
|
14342
|
+
var InvalidUncompressedPrefixError = class extends BaseError {
|
|
14917
14343
|
constructor() {
|
|
14918
14344
|
super("Prefix must be 4 for uncompressed public keys.");
|
|
14919
14345
|
Object.defineProperty(this, "name", {
|
|
@@ -14924,7 +14350,7 @@ var InvalidUncompressedPrefixError = class extends BaseError2 {
|
|
|
14924
14350
|
});
|
|
14925
14351
|
}
|
|
14926
14352
|
};
|
|
14927
|
-
var InvalidSerializedSizeError = class extends
|
|
14353
|
+
var InvalidSerializedSizeError = class extends BaseError {
|
|
14928
14354
|
constructor({ publicKey }) {
|
|
14929
14355
|
super(`Value \`${publicKey}\` is an invalid public key size.`, {
|
|
14930
14356
|
metaMessages: [
|
|
@@ -14995,7 +14421,7 @@ function isEqual3(addressA, addressB) {
|
|
|
14995
14421
|
assert5(addressB, { strict: false });
|
|
14996
14422
|
return addressA.toLowerCase() === addressB.toLowerCase();
|
|
14997
14423
|
}
|
|
14998
|
-
var InvalidAddressError = class extends
|
|
14424
|
+
var InvalidAddressError = class extends BaseError {
|
|
14999
14425
|
constructor({ address: address2, cause }) {
|
|
15000
14426
|
super(`Address "${address2}" is invalid.`, {
|
|
15001
14427
|
cause
|
|
@@ -15008,7 +14434,7 @@ var InvalidAddressError = class extends BaseError2 {
|
|
|
15008
14434
|
});
|
|
15009
14435
|
}
|
|
15010
14436
|
};
|
|
15011
|
-
var InvalidInputError = class extends
|
|
14437
|
+
var InvalidInputError = class extends BaseError {
|
|
15012
14438
|
constructor() {
|
|
15013
14439
|
super("Address is not a 20 byte (40 hexadecimal character) value.");
|
|
15014
14440
|
Object.defineProperty(this, "name", {
|
|
@@ -15019,7 +14445,7 @@ var InvalidInputError = class extends BaseError2 {
|
|
|
15019
14445
|
});
|
|
15020
14446
|
}
|
|
15021
14447
|
};
|
|
15022
|
-
var InvalidChecksumError = class extends
|
|
14448
|
+
var InvalidChecksumError = class extends BaseError {
|
|
15023
14449
|
constructor() {
|
|
15024
14450
|
super("Address does not match its checksum counterpart.");
|
|
15025
14451
|
Object.defineProperty(this, "name", {
|
|
@@ -15050,8 +14476,8 @@ __export(AbiParameters_exports, {
|
|
|
15050
14476
|
|
|
15051
14477
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Solidity.js
|
|
15052
14478
|
var arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
|
15053
|
-
var
|
|
15054
|
-
var
|
|
14479
|
+
var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
14480
|
+
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)?$/;
|
|
15055
14481
|
var maxInt8 = 2n ** (8n - 1n) - 1n;
|
|
15056
14482
|
var maxInt16 = 2n ** (16n - 1n) - 1n;
|
|
15057
14483
|
var maxInt24 = 2n ** (24n - 1n) - 1n;
|
|
@@ -15348,7 +14774,7 @@ function prepareParameter({ checksumAddress = false, parameter: parameter_, valu
|
|
|
15348
14774
|
}
|
|
15349
14775
|
if (parameter.type.startsWith("uint") || parameter.type.startsWith("int")) {
|
|
15350
14776
|
const signed = parameter.type.startsWith("int");
|
|
15351
|
-
const [, , size3 = "256"] =
|
|
14777
|
+
const [, , size3 = "256"] = integerRegex.exec(parameter.type) ?? [];
|
|
15352
14778
|
return encodeNumber(value, {
|
|
15353
14779
|
signed,
|
|
15354
14780
|
size: Number(size3)
|
|
@@ -15455,7 +14881,7 @@ function encodeBytes(value, { type }) {
|
|
|
15455
14881
|
}
|
|
15456
14882
|
function encodeBoolean(value) {
|
|
15457
14883
|
if (typeof value !== "boolean")
|
|
15458
|
-
throw new
|
|
14884
|
+
throw new BaseError(`Invalid boolean value: "${value}" (type: ${typeof value}). Expected: \`true\` or \`false\`.`);
|
|
15459
14885
|
return { dynamic: false, encoded: padLeft(fromBoolean(value)) };
|
|
15460
14886
|
}
|
|
15461
14887
|
function encodeNumber(value, { signed, size: size3 }) {
|
|
@@ -15706,7 +15132,7 @@ function create(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
|
15706
15132
|
cursor.recursiveReadLimit = recursiveReadLimit;
|
|
15707
15133
|
return cursor;
|
|
15708
15134
|
}
|
|
15709
|
-
var NegativeOffsetError = class extends
|
|
15135
|
+
var NegativeOffsetError = class extends BaseError {
|
|
15710
15136
|
constructor({ offset }) {
|
|
15711
15137
|
super(`Offset \`${offset}\` cannot be negative.`);
|
|
15712
15138
|
Object.defineProperty(this, "name", {
|
|
@@ -15717,7 +15143,7 @@ var NegativeOffsetError = class extends BaseError2 {
|
|
|
15717
15143
|
});
|
|
15718
15144
|
}
|
|
15719
15145
|
};
|
|
15720
|
-
var PositionOutOfBoundsError = class extends
|
|
15146
|
+
var PositionOutOfBoundsError = class extends BaseError {
|
|
15721
15147
|
constructor({ length, position }) {
|
|
15722
15148
|
super(`Position \`${position}\` is out of bounds (\`0 < position < ${length}\`).`);
|
|
15723
15149
|
Object.defineProperty(this, "name", {
|
|
@@ -15728,7 +15154,7 @@ var PositionOutOfBoundsError = class extends BaseError2 {
|
|
|
15728
15154
|
});
|
|
15729
15155
|
}
|
|
15730
15156
|
};
|
|
15731
|
-
var RecursiveReadLimitExceededError = class extends
|
|
15157
|
+
var RecursiveReadLimitExceededError = class extends BaseError {
|
|
15732
15158
|
constructor({ count, limit }) {
|
|
15733
15159
|
super(`Recursive read limit of \`${limit}\` exceeded (recursive read count: \`${count}\`).`);
|
|
15734
15160
|
Object.defineProperty(this, "name", {
|
|
@@ -15814,7 +15240,7 @@ function encodePacked(types, values) {
|
|
|
15814
15240
|
return value;
|
|
15815
15241
|
if (type === "bool")
|
|
15816
15242
|
return padLeft(fromBoolean(value), isArray ? 32 : 1);
|
|
15817
|
-
const intMatch = type.match(
|
|
15243
|
+
const intMatch = type.match(integerRegex);
|
|
15818
15244
|
if (intMatch) {
|
|
15819
15245
|
const [_type, baseType, bits = "256"] = intMatch;
|
|
15820
15246
|
const size3 = Number.parseInt(bits, 10) / 8;
|
|
@@ -15823,7 +15249,7 @@ function encodePacked(types, values) {
|
|
|
15823
15249
|
signed: baseType === "int"
|
|
15824
15250
|
});
|
|
15825
15251
|
}
|
|
15826
|
-
const bytesMatch = type.match(
|
|
15252
|
+
const bytesMatch = type.match(bytesRegex);
|
|
15827
15253
|
if (bytesMatch) {
|
|
15828
15254
|
const [_type, size3] = bytesMatch;
|
|
15829
15255
|
if (Number.parseInt(size3, 10) !== (value.length - 2) / 2)
|
|
@@ -15858,7 +15284,7 @@ function from5(parameters) {
|
|
|
15858
15284
|
return parseAbiParameters(parameters);
|
|
15859
15285
|
return parameters;
|
|
15860
15286
|
}
|
|
15861
|
-
var DataSizeTooSmallError = class extends
|
|
15287
|
+
var DataSizeTooSmallError = class extends BaseError {
|
|
15862
15288
|
constructor({ data, parameters, size: size3 }) {
|
|
15863
15289
|
super(`Data size of ${size3} bytes is too small for given parameters.`, {
|
|
15864
15290
|
metaMessages: [
|
|
@@ -15874,7 +15300,7 @@ var DataSizeTooSmallError = class extends BaseError2 {
|
|
|
15874
15300
|
});
|
|
15875
15301
|
}
|
|
15876
15302
|
};
|
|
15877
|
-
var ZeroDataError = class extends
|
|
15303
|
+
var ZeroDataError = class extends BaseError {
|
|
15878
15304
|
constructor() {
|
|
15879
15305
|
super('Cannot decode zero data ("0x") with ABI parameters.');
|
|
15880
15306
|
Object.defineProperty(this, "name", {
|
|
@@ -15885,7 +15311,7 @@ var ZeroDataError = class extends BaseError2 {
|
|
|
15885
15311
|
});
|
|
15886
15312
|
}
|
|
15887
15313
|
};
|
|
15888
|
-
var ArrayLengthMismatchError = class extends
|
|
15314
|
+
var ArrayLengthMismatchError = class extends BaseError {
|
|
15889
15315
|
constructor({ expectedLength, givenLength, type }) {
|
|
15890
15316
|
super(`Array length mismatch for type \`${type}\`. Expected: \`${expectedLength}\`. Given: \`${givenLength}\`.`);
|
|
15891
15317
|
Object.defineProperty(this, "name", {
|
|
@@ -15896,7 +15322,7 @@ var ArrayLengthMismatchError = class extends BaseError2 {
|
|
|
15896
15322
|
});
|
|
15897
15323
|
}
|
|
15898
15324
|
};
|
|
15899
|
-
var BytesSizeMismatchError = class extends
|
|
15325
|
+
var BytesSizeMismatchError = class extends BaseError {
|
|
15900
15326
|
constructor({ expectedSize, value }) {
|
|
15901
15327
|
super(`Size of bytes "${value}" (bytes${size2(value)}) does not match expected size (bytes${expectedSize}).`);
|
|
15902
15328
|
Object.defineProperty(this, "name", {
|
|
@@ -15907,7 +15333,7 @@ var BytesSizeMismatchError = class extends BaseError2 {
|
|
|
15907
15333
|
});
|
|
15908
15334
|
}
|
|
15909
15335
|
};
|
|
15910
|
-
var LengthMismatchError = class extends
|
|
15336
|
+
var LengthMismatchError = class extends BaseError {
|
|
15911
15337
|
constructor({ expectedLength, givenLength }) {
|
|
15912
15338
|
super([
|
|
15913
15339
|
"ABI encoding parameters/values length mismatch.",
|
|
@@ -15922,7 +15348,7 @@ var LengthMismatchError = class extends BaseError2 {
|
|
|
15922
15348
|
});
|
|
15923
15349
|
}
|
|
15924
15350
|
};
|
|
15925
|
-
var InvalidArrayError = class extends
|
|
15351
|
+
var InvalidArrayError = class extends BaseError {
|
|
15926
15352
|
constructor(value) {
|
|
15927
15353
|
super(`Value \`${value}\` is not a valid array.`);
|
|
15928
15354
|
Object.defineProperty(this, "name", {
|
|
@@ -15933,7 +15359,7 @@ var InvalidArrayError = class extends BaseError2 {
|
|
|
15933
15359
|
});
|
|
15934
15360
|
}
|
|
15935
15361
|
};
|
|
15936
|
-
var InvalidTypeError = class extends
|
|
15362
|
+
var InvalidTypeError = class extends BaseError {
|
|
15937
15363
|
constructor(type) {
|
|
15938
15364
|
super(`Type \`${type}\` is not a valid ABI Type.`);
|
|
15939
15365
|
Object.defineProperty(this, "name", {
|
|
@@ -16153,7 +15579,7 @@ function yParityToV(yParity) {
|
|
|
16153
15579
|
return 28;
|
|
16154
15580
|
throw new InvalidYParityError({ value: yParity });
|
|
16155
15581
|
}
|
|
16156
|
-
var InvalidSerializedSizeError2 = class extends
|
|
15582
|
+
var InvalidSerializedSizeError2 = class extends BaseError {
|
|
16157
15583
|
constructor({ signature: signature2 }) {
|
|
16158
15584
|
super(`Value \`${signature2}\` is an invalid signature size.`, {
|
|
16159
15585
|
metaMessages: [
|
|
@@ -16169,7 +15595,7 @@ var InvalidSerializedSizeError2 = class extends BaseError2 {
|
|
|
16169
15595
|
});
|
|
16170
15596
|
}
|
|
16171
15597
|
};
|
|
16172
|
-
var MissingPropertiesError = class extends
|
|
15598
|
+
var MissingPropertiesError = class extends BaseError {
|
|
16173
15599
|
constructor({ signature: signature2 }) {
|
|
16174
15600
|
super(`Signature \`${stringify(signature2)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`);
|
|
16175
15601
|
Object.defineProperty(this, "name", {
|
|
@@ -16180,7 +15606,7 @@ var MissingPropertiesError = class extends BaseError2 {
|
|
|
16180
15606
|
});
|
|
16181
15607
|
}
|
|
16182
15608
|
};
|
|
16183
|
-
var InvalidRError = class extends
|
|
15609
|
+
var InvalidRError = class extends BaseError {
|
|
16184
15610
|
constructor({ value }) {
|
|
16185
15611
|
super(`Value \`${value}\` is an invalid r value. r must be a positive integer less than 2^256.`);
|
|
16186
15612
|
Object.defineProperty(this, "name", {
|
|
@@ -16191,7 +15617,7 @@ var InvalidRError = class extends BaseError2 {
|
|
|
16191
15617
|
});
|
|
16192
15618
|
}
|
|
16193
15619
|
};
|
|
16194
|
-
var InvalidSError = class extends
|
|
15620
|
+
var InvalidSError = class extends BaseError {
|
|
16195
15621
|
constructor({ value }) {
|
|
16196
15622
|
super(`Value \`${value}\` is an invalid s value. s must be a positive integer less than 2^256.`);
|
|
16197
15623
|
Object.defineProperty(this, "name", {
|
|
@@ -16202,7 +15628,7 @@ var InvalidSError = class extends BaseError2 {
|
|
|
16202
15628
|
});
|
|
16203
15629
|
}
|
|
16204
15630
|
};
|
|
16205
|
-
var InvalidYParityError = class extends
|
|
15631
|
+
var InvalidYParityError = class extends BaseError {
|
|
16206
15632
|
constructor({ value }) {
|
|
16207
15633
|
super(`Value \`${value}\` is an invalid y-parity value. Y-parity must be 0 or 1.`);
|
|
16208
15634
|
Object.defineProperty(this, "name", {
|
|
@@ -16213,7 +15639,7 @@ var InvalidYParityError = class extends BaseError2 {
|
|
|
16213
15639
|
});
|
|
16214
15640
|
}
|
|
16215
15641
|
};
|
|
16216
|
-
var InvalidVError = class extends
|
|
15642
|
+
var InvalidVError = class extends BaseError {
|
|
16217
15643
|
constructor({ value }) {
|
|
16218
15644
|
super(`Value \`${value}\` is an invalid v value. v must be 27, 28 or >=35.`);
|
|
16219
15645
|
Object.defineProperty(this, "name", {
|
|
@@ -16409,7 +15835,7 @@ function verify4(options) {
|
|
|
16409
15835
|
return verify3(options);
|
|
16410
15836
|
}
|
|
16411
15837
|
|
|
16412
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15838
|
+
// ../../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/PaymentRequest.js
|
|
16413
15839
|
function deserialize(encoded) {
|
|
16414
15840
|
const json2 = Base64_exports.toString(encoded);
|
|
16415
15841
|
return JSON.parse(json2);
|
|
@@ -16419,7 +15845,7 @@ function serialize(request) {
|
|
|
16419
15845
|
return Base64_exports.fromString(json2, { pad: false, url: true });
|
|
16420
15846
|
}
|
|
16421
15847
|
|
|
16422
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
15848
|
+
// ../../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/Challenge.js
|
|
16423
15849
|
var Schema = object({
|
|
16424
15850
|
/** Optional human-readable description of the payment. */
|
|
16425
15851
|
description: optional(string2()),
|
|
@@ -16620,7 +16046,7 @@ function computeId(challenge, options) {
|
|
|
16620
16046
|
return Base64_exports.fromBytes(mac3, { url: true, pad: false });
|
|
16621
16047
|
}
|
|
16622
16048
|
|
|
16623
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
16049
|
+
// ../../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/Credential.js
|
|
16624
16050
|
function deserialize3(value) {
|
|
16625
16051
|
const prefixMatch = value.match(/^Payment\s+(.+)$/i);
|
|
16626
16052
|
if (!prefixMatch?.[1])
|
|
@@ -16676,7 +16102,7 @@ function extractPaymentScheme(header) {
|
|
|
16676
16102
|
return schemes.find((s) => /^Payment\s+/i.test(s)) ?? null;
|
|
16677
16103
|
}
|
|
16678
16104
|
|
|
16679
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
16105
|
+
// ../../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/Method.js
|
|
16680
16106
|
var Method_exports = {};
|
|
16681
16107
|
__export(Method_exports, {
|
|
16682
16108
|
from: () => from9,
|
|
@@ -16706,13 +16132,13 @@ function toServer(method, options) {
|
|
|
16706
16132
|
};
|
|
16707
16133
|
}
|
|
16708
16134
|
|
|
16709
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@3.
|
|
16135
|
+
// ../../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/Mcp.js
|
|
16710
16136
|
var paymentRequiredCode = -32042;
|
|
16711
16137
|
var credentialMetaKey = "org.paymentauth/credential";
|
|
16712
16138
|
|
|
16713
16139
|
export {
|
|
16714
16140
|
Expires_exports,
|
|
16715
|
-
|
|
16141
|
+
BaseError,
|
|
16716
16142
|
sha2562 as sha256,
|
|
16717
16143
|
stringify,
|
|
16718
16144
|
concat,
|
|
@@ -16778,4 +16204,4 @@ export {
|
|
|
16778
16204
|
@noble/curves/esm/p256.js:
|
|
16779
16205
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
16780
16206
|
*/
|
|
16781
|
-
//# sourceMappingURL=chunk-
|
|
16207
|
+
//# sourceMappingURL=chunk-TYYJRUQI.js.map
|