@elizaos/plugin-tee 0.1.9 → 1.0.0-alpha.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.
@@ -1,7 +1,21 @@
1
- // ../../node_modules/viem/node_modules/abitype/dist/esm/version.js
2
- var version = "1.0.7";
1
+ import {
2
+ Hash,
3
+ abytes,
4
+ aexists,
5
+ anumber,
6
+ aoutput,
7
+ byteSwap32,
8
+ isLE,
9
+ toBytes,
10
+ u32,
11
+ wrapConstructor,
12
+ wrapXOFConstructorWithOpts
13
+ } from "./chunk-672HY72Z.js";
14
+
15
+ // ../../node_modules/abitype/dist/esm/version.js
16
+ var version = "1.0.8";
3
17
 
4
- // ../../node_modules/viem/node_modules/abitype/dist/esm/errors.js
18
+ // ../../node_modules/abitype/dist/esm/errors.js
5
19
  var BaseError = class _BaseError extends Error {
6
20
  constructor(shortMessage, args = {}) {
7
21
  const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
@@ -54,7 +68,7 @@ var BaseError = class _BaseError extends Error {
54
68
  }
55
69
  };
56
70
 
57
- // ../../node_modules/viem/node_modules/abitype/dist/esm/regex.js
71
+ // ../../node_modules/abitype/dist/esm/regex.js
58
72
  function execTyped(regex, string) {
59
73
  const match = regex.exec(string);
60
74
  return match?.groups;
@@ -63,7 +77,7 @@ var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
63
77
  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)?$/;
64
78
  var isTupleRegex = /^\(.+?\).*?$/;
65
79
 
66
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
80
+ // ../../node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
67
81
  var tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
68
82
  function formatAbiParameter(abiParameter) {
69
83
  let type = abiParameter.type;
@@ -90,7 +104,7 @@ function formatAbiParameter(abiParameter) {
90
104
  return type;
91
105
  }
92
106
 
93
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
107
+ // ../../node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
94
108
  function formatAbiParameters(abiParameters) {
95
109
  let params = "";
96
110
  const length = abiParameters.length;
@@ -103,7 +117,7 @@ function formatAbiParameters(abiParameters) {
103
117
  return params;
104
118
  }
105
119
 
106
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
120
+ // ../../node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
107
121
  function formatAbiItem(abiItem) {
108
122
  if (abiItem.type === "function")
109
123
  return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs?.length ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
@@ -118,7 +132,7 @@ function formatAbiItem(abiItem) {
118
132
  return "receive() external payable";
119
133
  }
120
134
 
121
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
135
+ // ../../node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
122
136
  var errorSignatureRegex = /^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
123
137
  function isErrorSignature(signature) {
124
138
  return errorSignatureRegex.test(signature);
@@ -158,6 +172,9 @@ var fallbackSignatureRegex = /^fallback\(\) external(?:\s(?<stateMutability>paya
158
172
  function isFallbackSignature(signature) {
159
173
  return fallbackSignatureRegex.test(signature);
160
174
  }
175
+ function execFallbackSignature(signature) {
176
+ return execTyped(fallbackSignatureRegex, signature);
177
+ }
161
178
  var receiveSignatureRegex = /^receive\(\) external payable$/;
162
179
  function isReceiveSignature(signature) {
163
180
  return receiveSignatureRegex.test(signature);
@@ -169,7 +186,7 @@ var functionModifiers = /* @__PURE__ */ new Set([
169
186
  "storage"
170
187
  ]);
171
188
 
172
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
189
+ // ../../node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
173
190
  var UnknownTypeError = class extends BaseError {
174
191
  constructor({ type }) {
175
192
  super("Unknown type.", {
@@ -199,7 +216,7 @@ var UnknownSolidityTypeError = class extends BaseError {
199
216
  }
200
217
  };
201
218
 
202
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
219
+ // ../../node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
203
220
  var InvalidParameterError = class extends BaseError {
204
221
  constructor({ param }) {
205
222
  super("Invalid ABI parameter.", {
@@ -277,7 +294,7 @@ var InvalidAbiTypeParameterError = class extends BaseError {
277
294
  }
278
295
  };
279
296
 
280
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/errors/signature.js
297
+ // ../../node_modules/abitype/dist/esm/human-readable/errors/signature.js
281
298
  var InvalidSignatureError = class extends BaseError {
282
299
  constructor({ signature, type }) {
283
300
  super(`Invalid ${type} signature.`, {
@@ -319,7 +336,7 @@ var InvalidStructSignatureError = class extends BaseError {
319
336
  }
320
337
  };
321
338
 
322
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/errors/struct.js
339
+ // ../../node_modules/abitype/dist/esm/human-readable/errors/struct.js
323
340
  var CircularReferenceError = class extends BaseError {
324
341
  constructor({ type }) {
325
342
  super("Circular reference detected.", {
@@ -334,7 +351,7 @@ var CircularReferenceError = class extends BaseError {
334
351
  }
335
352
  };
336
353
 
337
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
354
+ // ../../node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
338
355
  var InvalidParenthesisError = class extends BaseError {
339
356
  constructor({ current, depth }) {
340
357
  super("Unbalanced parentheses.", {
@@ -352,7 +369,7 @@ var InvalidParenthesisError = class extends BaseError {
352
369
  }
353
370
  };
354
371
 
355
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/runtime/cache.js
372
+ // ../../node_modules/abitype/dist/esm/human-readable/runtime/cache.js
356
373
  function getParameterCacheKey(param, type, structs) {
357
374
  let structKey = "";
358
375
  if (structs)
@@ -424,88 +441,18 @@ var parameterCache = /* @__PURE__ */ new Map([
424
441
  ]
425
442
  ]);
426
443
 
427
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/runtime/utils.js
444
+ // ../../node_modules/abitype/dist/esm/human-readable/runtime/utils.js
428
445
  function parseSignature(signature, structs = {}) {
429
- if (isFunctionSignature(signature)) {
430
- const match = execFunctionSignature(signature);
431
- if (!match)
432
- throw new InvalidSignatureError({ signature, type: "function" });
433
- const inputParams = splitParameters(match.parameters);
434
- const inputs = [];
435
- const inputLength = inputParams.length;
436
- for (let i = 0; i < inputLength; i++) {
437
- inputs.push(parseAbiParameter(inputParams[i], {
438
- modifiers: functionModifiers,
439
- structs,
440
- type: "function"
441
- }));
442
- }
443
- const outputs = [];
444
- if (match.returns) {
445
- const outputParams = splitParameters(match.returns);
446
- const outputLength = outputParams.length;
447
- for (let i = 0; i < outputLength; i++) {
448
- outputs.push(parseAbiParameter(outputParams[i], {
449
- modifiers: functionModifiers,
450
- structs,
451
- type: "function"
452
- }));
453
- }
454
- }
455
- return {
456
- name: match.name,
457
- type: "function",
458
- stateMutability: match.stateMutability ?? "nonpayable",
459
- inputs,
460
- outputs
461
- };
462
- }
463
- if (isEventSignature(signature)) {
464
- const match = execEventSignature(signature);
465
- if (!match)
466
- throw new InvalidSignatureError({ signature, type: "event" });
467
- const params = splitParameters(match.parameters);
468
- const abiParameters = [];
469
- const length = params.length;
470
- for (let i = 0; i < length; i++) {
471
- abiParameters.push(parseAbiParameter(params[i], {
472
- modifiers: eventModifiers,
473
- structs,
474
- type: "event"
475
- }));
476
- }
477
- return { name: match.name, type: "event", inputs: abiParameters };
478
- }
479
- if (isErrorSignature(signature)) {
480
- const match = execErrorSignature(signature);
481
- if (!match)
482
- throw new InvalidSignatureError({ signature, type: "error" });
483
- const params = splitParameters(match.parameters);
484
- const abiParameters = [];
485
- const length = params.length;
486
- for (let i = 0; i < length; i++) {
487
- abiParameters.push(parseAbiParameter(params[i], { structs, type: "error" }));
488
- }
489
- return { name: match.name, type: "error", inputs: abiParameters };
490
- }
491
- if (isConstructorSignature(signature)) {
492
- const match = execConstructorSignature(signature);
493
- if (!match)
494
- throw new InvalidSignatureError({ signature, type: "constructor" });
495
- const params = splitParameters(match.parameters);
496
- const abiParameters = [];
497
- const length = params.length;
498
- for (let i = 0; i < length; i++) {
499
- abiParameters.push(parseAbiParameter(params[i], { structs, type: "constructor" }));
500
- }
501
- return {
502
- type: "constructor",
503
- stateMutability: match.stateMutability ?? "nonpayable",
504
- inputs: abiParameters
505
- };
506
- }
446
+ if (isFunctionSignature(signature))
447
+ return parseFunctionSignature(signature, structs);
448
+ if (isEventSignature(signature))
449
+ return parseEventSignature(signature, structs);
450
+ if (isErrorSignature(signature))
451
+ return parseErrorSignature(signature, structs);
452
+ if (isConstructorSignature(signature))
453
+ return parseConstructorSignature(signature, structs);
507
454
  if (isFallbackSignature(signature))
508
- return { type: "fallback" };
455
+ return parseFallbackSignature(signature);
509
456
  if (isReceiveSignature(signature))
510
457
  return {
511
458
  type: "receive",
@@ -513,6 +460,90 @@ function parseSignature(signature, structs = {}) {
513
460
  };
514
461
  throw new UnknownSignatureError({ signature });
515
462
  }
463
+ function parseFunctionSignature(signature, structs = {}) {
464
+ const match = execFunctionSignature(signature);
465
+ if (!match)
466
+ throw new InvalidSignatureError({ signature, type: "function" });
467
+ const inputParams = splitParameters(match.parameters);
468
+ const inputs = [];
469
+ const inputLength = inputParams.length;
470
+ for (let i = 0; i < inputLength; i++) {
471
+ inputs.push(parseAbiParameter(inputParams[i], {
472
+ modifiers: functionModifiers,
473
+ structs,
474
+ type: "function"
475
+ }));
476
+ }
477
+ const outputs = [];
478
+ if (match.returns) {
479
+ const outputParams = splitParameters(match.returns);
480
+ const outputLength = outputParams.length;
481
+ for (let i = 0; i < outputLength; i++) {
482
+ outputs.push(parseAbiParameter(outputParams[i], {
483
+ modifiers: functionModifiers,
484
+ structs,
485
+ type: "function"
486
+ }));
487
+ }
488
+ }
489
+ return {
490
+ name: match.name,
491
+ type: "function",
492
+ stateMutability: match.stateMutability ?? "nonpayable",
493
+ inputs,
494
+ outputs
495
+ };
496
+ }
497
+ function parseEventSignature(signature, structs = {}) {
498
+ const match = execEventSignature(signature);
499
+ if (!match)
500
+ throw new InvalidSignatureError({ signature, type: "event" });
501
+ const params = splitParameters(match.parameters);
502
+ const abiParameters = [];
503
+ const length = params.length;
504
+ for (let i = 0; i < length; i++)
505
+ abiParameters.push(parseAbiParameter(params[i], {
506
+ modifiers: eventModifiers,
507
+ structs,
508
+ type: "event"
509
+ }));
510
+ return { name: match.name, type: "event", inputs: abiParameters };
511
+ }
512
+ function parseErrorSignature(signature, structs = {}) {
513
+ const match = execErrorSignature(signature);
514
+ if (!match)
515
+ throw new InvalidSignatureError({ signature, type: "error" });
516
+ const params = splitParameters(match.parameters);
517
+ const abiParameters = [];
518
+ const length = params.length;
519
+ for (let i = 0; i < length; i++)
520
+ abiParameters.push(parseAbiParameter(params[i], { structs, type: "error" }));
521
+ return { name: match.name, type: "error", inputs: abiParameters };
522
+ }
523
+ function parseConstructorSignature(signature, structs = {}) {
524
+ const match = execConstructorSignature(signature);
525
+ if (!match)
526
+ throw new InvalidSignatureError({ signature, type: "constructor" });
527
+ const params = splitParameters(match.parameters);
528
+ const abiParameters = [];
529
+ const length = params.length;
530
+ for (let i = 0; i < length; i++)
531
+ abiParameters.push(parseAbiParameter(params[i], { structs, type: "constructor" }));
532
+ return {
533
+ type: "constructor",
534
+ stateMutability: match.stateMutability ?? "nonpayable",
535
+ inputs: abiParameters
536
+ };
537
+ }
538
+ function parseFallbackSignature(signature) {
539
+ const match = execFallbackSignature(signature);
540
+ if (!match)
541
+ throw new InvalidSignatureError({ signature, type: "fallback" });
542
+ return {
543
+ type: "fallback",
544
+ stateMutability: match.stateMutability ?? "nonpayable"
545
+ };
546
+ }
516
547
  var abiParameterWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
517
548
  var abiParameterWithTupleRegex = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
518
549
  var dynamicIntegerRegex = /^u?int$/;
@@ -607,7 +638,7 @@ function isValidDataLocation(type, isArray) {
607
638
  return isArray || type === "bytes" || type === "string" || type === "tuple";
608
639
  }
609
640
 
610
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/runtime/structs.js
641
+ // ../../node_modules/abitype/dist/esm/human-readable/runtime/structs.js
611
642
  function parseStructs(signatures) {
612
643
  const shallowStructs = {};
613
644
  const signaturesLength = signatures.length;
@@ -677,7 +708,7 @@ function resolveStructs(abiParameters, structs, ancestors = /* @__PURE__ */ new
677
708
  return components;
678
709
  }
679
710
 
680
- // ../../node_modules/viem/node_modules/abitype/dist/esm/human-readable/parseAbi.js
711
+ // ../../node_modules/abitype/dist/esm/human-readable/parseAbi.js
681
712
  function parseAbi(signatures) {
682
713
  const structs = parseStructs(signatures);
683
714
  const abi = [];
@@ -858,7 +889,7 @@ var deploylessCallViaBytecodeBytecode = "0x608060405234801561001057600080fd5b506
858
889
  var deploylessCallViaFactoryBytecode = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe";
859
890
 
860
891
  // ../../node_modules/viem/_esm/errors/version.js
861
- var version2 = "2.21.58";
892
+ var version2 = "2.23.6";
862
893
 
863
894
  // ../../node_modules/viem/_esm/errors/base.js
864
895
  var errorConfig = {
@@ -1434,7 +1465,7 @@ function stringToHex(value_, opts = {}) {
1434
1465
 
1435
1466
  // ../../node_modules/viem/_esm/utils/encoding/toBytes.js
1436
1467
  var encoder2 = /* @__PURE__ */ new TextEncoder();
1437
- function toBytes(value, opts = {}) {
1468
+ function toBytes2(value, opts = {}) {
1438
1469
  if (typeof value === "number" || typeof value === "bigint")
1439
1470
  return numberToBytes(value, opts);
1440
1471
  if (typeof value === "boolean")
@@ -1503,35 +1534,7 @@ function stringToBytes(value, opts = {}) {
1503
1534
  return bytes;
1504
1535
  }
1505
1536
 
1506
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/_assert.js
1507
- function anumber(n) {
1508
- if (!Number.isSafeInteger(n) || n < 0)
1509
- throw new Error("positive integer expected, got " + n);
1510
- }
1511
- function isBytes(a) {
1512
- return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
1513
- }
1514
- function abytes(b, ...lengths) {
1515
- if (!isBytes(b))
1516
- throw new Error("Uint8Array expected");
1517
- if (lengths.length > 0 && !lengths.includes(b.length))
1518
- throw new Error("Uint8Array expected of length " + lengths + ", got length=" + b.length);
1519
- }
1520
- function aexists(instance, checkFinished = true) {
1521
- if (instance.destroyed)
1522
- throw new Error("Hash instance has been destroyed");
1523
- if (checkFinished && instance.finished)
1524
- throw new Error("Hash#digest() has already been called");
1525
- }
1526
- function aoutput(out, instance) {
1527
- abytes(out);
1528
- const min = instance.outputLen;
1529
- if (out.length < min) {
1530
- throw new Error("digestInto() expects output buffer of length at least " + min);
1531
- }
1532
- }
1533
-
1534
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/_u64.js
1537
+ // ../../node_modules/@noble/hashes/esm/_u64.js
1535
1538
  var U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
1536
1539
  var _32n = /* @__PURE__ */ BigInt(32);
1537
1540
  function fromBig(n, le = false) {
@@ -1553,52 +1556,7 @@ var rotlSL = (h, l, s) => l << s | h >>> 32 - s;
1553
1556
  var rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
1554
1557
  var rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
1555
1558
 
1556
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/utils.js
1557
- var u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
1558
- var createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
1559
- var rotr = (word, shift) => word << 32 - shift | word >>> shift;
1560
- var isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
1561
- var byteSwap = (word) => word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
1562
- function byteSwap32(arr) {
1563
- for (let i = 0; i < arr.length; i++) {
1564
- arr[i] = byteSwap(arr[i]);
1565
- }
1566
- }
1567
- function utf8ToBytes(str) {
1568
- if (typeof str !== "string")
1569
- throw new Error("utf8ToBytes expected string, got " + typeof str);
1570
- return new Uint8Array(new TextEncoder().encode(str));
1571
- }
1572
- function toBytes2(data) {
1573
- if (typeof data === "string")
1574
- data = utf8ToBytes(data);
1575
- abytes(data);
1576
- return data;
1577
- }
1578
- var Hash = class {
1579
- // Safe version that clones internal state
1580
- clone() {
1581
- return this._cloneInto();
1582
- }
1583
- };
1584
- function wrapConstructor(hashCons) {
1585
- const hashC = (msg) => hashCons().update(toBytes2(msg)).digest();
1586
- const tmp = hashCons();
1587
- hashC.outputLen = tmp.outputLen;
1588
- hashC.blockLen = tmp.blockLen;
1589
- hashC.create = () => hashCons();
1590
- return hashC;
1591
- }
1592
- function wrapXOFConstructorWithOpts(hashCons) {
1593
- const hashC = (msg, opts) => hashCons(opts).update(toBytes2(msg)).digest();
1594
- const tmp = hashCons({});
1595
- hashC.outputLen = tmp.outputLen;
1596
- hashC.blockLen = tmp.blockLen;
1597
- hashC.create = (opts) => hashCons(opts);
1598
- return hashC;
1599
- }
1600
-
1601
- // ../../node_modules/viem/node_modules/@noble/hashes/esm/sha3.js
1559
+ // ../../node_modules/@noble/hashes/esm/sha3.js
1602
1560
  var SHA3_PI = [];
1603
1561
  var SHA3_ROTL = [];
1604
1562
  var _SHA3_IOTA = [];
@@ -1694,7 +1652,7 @@ var Keccak = class _Keccak extends Hash {
1694
1652
  update(data) {
1695
1653
  aexists(this);
1696
1654
  const { blockLen, state } = this;
1697
- data = toBytes2(data);
1655
+ data = toBytes(data);
1698
1656
  const len = data.length;
1699
1657
  for (let pos = 0; pos < len; ) {
1700
1658
  const take = Math.min(blockLen - this.pos, len - pos);
@@ -1787,14 +1745,14 @@ var shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
1787
1745
  // ../../node_modules/viem/_esm/utils/hash/keccak256.js
1788
1746
  function keccak256(value, to_) {
1789
1747
  const to = to_ || "hex";
1790
- const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
1748
+ const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes2(value) : value);
1791
1749
  if (to === "bytes")
1792
1750
  return bytes;
1793
1751
  return toHex(bytes);
1794
1752
  }
1795
1753
 
1796
1754
  // ../../node_modules/viem/_esm/utils/hash/hashSignature.js
1797
- var hash = (value) => keccak256(toBytes(value));
1755
+ var hash = (value) => keccak256(toBytes2(value));
1798
1756
  function hashSignature(sig) {
1799
1757
  return hash(sig);
1800
1758
  }
@@ -3698,7 +3656,7 @@ async function call(client, args) {
3698
3656
  return { data: response };
3699
3657
  } catch (err) {
3700
3658
  const data2 = getRevertErrorData(err);
3701
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-MMGH6DXX.js");
3659
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-BIZHB2Z3.js");
3702
3660
  if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
3703
3661
  return { data: await offchainLookup2(client, { data: data2, to }) };
3704
3662
  if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
@@ -3967,18 +3925,11 @@ async function ccipRequest({ data, sender, urls }) {
3967
3925
  }
3968
3926
 
3969
3927
  export {
3970
- aexists,
3971
- aoutput,
3972
- createView,
3973
- rotr,
3974
- toBytes2 as toBytes,
3975
- Hash,
3976
- wrapConstructor,
3977
3928
  BaseError2 as BaseError,
3978
3929
  isHex,
3979
3930
  size,
3980
3931
  trim,
3981
- toBytes as toBytes2,
3932
+ toBytes2 as toBytes,
3982
3933
  hexToBytes,
3983
3934
  hexToBigInt,
3984
3935
  hexToNumber,
@@ -4011,9 +3962,4 @@ export {
4011
3962
  offchainLookup,
4012
3963
  ccipRequest
4013
3964
  };
4014
- /*! Bundled license information:
4015
-
4016
- @noble/hashes/esm/utils.js:
4017
- (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
4018
- */
4019
- //# sourceMappingURL=chunk-NTU6R7BC.js.map
3965
+ //# sourceMappingURL=chunk-4HQ7LDIJ.js.map