@1delta/margin-fetcher 0.0.48 → 0.0.51
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/dist/{chunk-CLG3VWWF.js → _esm-32O7VXQT.js} +83 -62
- package/dist/_esm-32O7VXQT.js.map +1 -0
- package/dist/ccip-DSCWXCSY-ZVJKF72J.js +4 -0
- package/dist/ccip-DSCWXCSY-ZVJKF72J.js.map +1 -0
- package/dist/ccip-EHIFPB3Q.js +5 -0
- package/dist/ccip-EHIFPB3Q.js.map +1 -0
- package/dist/{chunk-3CGLGAGR.js → chunk-BYTNVMX7.js} +6 -44
- package/dist/chunk-BYTNVMX7.js.map +1 -0
- package/dist/{chunk-TQZVAE5Q.js → chunk-GVXFZPTM.js} +9 -268
- package/dist/chunk-GVXFZPTM.js.map +1 -0
- package/dist/{chunk-5UWY3SMD.js → chunk-OWVZT672.js} +7 -10
- package/dist/chunk-OWVZT672.js.map +1 -0
- package/dist/{chunk-4VNS5WPM.js → chunk-PR4QN5HX.js} +3 -6
- package/dist/chunk-PR4QN5HX.js.map +1 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +72 -54787
- package/dist/index.js.map +1 -0
- package/dist/lending/index.d.ts +5 -5
- package/dist/lending/index.d.ts.map +1 -1
- package/dist/prices/main-prices/addresses/chainlink.d.ts +0 -6
- package/dist/prices/main-prices/addresses/chainlink.d.ts.map +1 -1
- package/dist/{secp256k1-WKIOWUKN.js → secp256k1-XP7IUONI.js} +8 -46
- package/dist/secp256k1-XP7IUONI.js.map +1 -0
- package/package.json +6 -4
- package/dist/_esm-GM6SX2RK.js +0 -55
- package/dist/ccip-DSCWXCSY-PT2JGHUX.js +0 -13
- package/dist/ccip-QOODCD4F.js +0 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-EHIFPB3Q.js"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as nc from 'crypto';
|
|
2
|
+
|
|
1
3
|
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/cryptoNode.js
|
|
2
|
-
import * as nc from "crypto";
|
|
3
4
|
var crypto = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && "randomBytes" in nc ? nc : void 0;
|
|
4
5
|
|
|
5
6
|
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js
|
|
@@ -354,49 +355,6 @@ var rotlSH = (h, l, s) => h << s | l >>> 32 - s;
|
|
|
354
355
|
var rotlSL = (h, l, s) => l << s | h >>> 32 - s;
|
|
355
356
|
var rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
|
|
356
357
|
var rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
|
|
357
|
-
|
|
358
|
-
export {
|
|
359
|
-
split,
|
|
360
|
-
rotlSH,
|
|
361
|
-
rotlSL,
|
|
362
|
-
rotlBH,
|
|
363
|
-
rotlBL,
|
|
364
|
-
anumber,
|
|
365
|
-
abytes,
|
|
366
|
-
ahash,
|
|
367
|
-
aexists,
|
|
368
|
-
aoutput,
|
|
369
|
-
u32,
|
|
370
|
-
clean,
|
|
371
|
-
createView,
|
|
372
|
-
rotr,
|
|
373
|
-
swap32IfBE,
|
|
374
|
-
toBytes,
|
|
375
|
-
concatBytes,
|
|
376
|
-
Hash,
|
|
377
|
-
createHasher,
|
|
378
|
-
randomBytes,
|
|
379
|
-
isBytes2 as isBytes,
|
|
380
|
-
abytes2,
|
|
381
|
-
abool,
|
|
382
|
-
numberToHexUnpadded,
|
|
383
|
-
bytesToHex,
|
|
384
|
-
hexToBytes,
|
|
385
|
-
bytesToNumberBE,
|
|
386
|
-
bytesToNumberLE,
|
|
387
|
-
numberToBytesBE,
|
|
388
|
-
numberToBytesLE,
|
|
389
|
-
ensureBytes,
|
|
390
|
-
concatBytes2,
|
|
391
|
-
utf8ToBytes2 as utf8ToBytes,
|
|
392
|
-
inRange,
|
|
393
|
-
aInRange,
|
|
394
|
-
bitLen,
|
|
395
|
-
bitMask,
|
|
396
|
-
createHmacDrbg,
|
|
397
|
-
validateObject,
|
|
398
|
-
memoized
|
|
399
|
-
};
|
|
400
358
|
/*! Bundled license information:
|
|
401
359
|
|
|
402
360
|
@noble/hashes/esm/utils.js:
|
|
@@ -405,3 +363,7 @@ export {
|
|
|
405
363
|
@noble/curves/esm/abstract/utils.js:
|
|
406
364
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
407
365
|
*/
|
|
366
|
+
|
|
367
|
+
export { Hash, aInRange, abool, abytes, abytes2, aexists, ahash, anumber, aoutput, bitLen, bitMask, bytesToHex, bytesToNumberBE, bytesToNumberLE, clean, concatBytes, concatBytes2, createHasher, createHmacDrbg, createView, ensureBytes, hexToBytes, inRange, isBytes2 as isBytes, memoized, numberToBytesBE, numberToBytesLE, numberToHexUnpadded, randomBytes, rotlBH, rotlBL, rotlSH, rotlSL, rotr, split, swap32IfBE, toBytes, u32, utf8ToBytes2 as utf8ToBytes, validateObject };
|
|
368
|
+
//# sourceMappingURL=chunk-BYTNVMX7.js.map
|
|
369
|
+
//# sourceMappingURL=chunk-BYTNVMX7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/src/cryptoNode.ts","../../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/src/utils.ts","../../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/src/abstract/utils.ts","../../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/src/_u64.ts"],"names":["isBytes","abytes","concatBytes","utf8ToBytes"],"mappings":";;;AASO,IAAM,MAAA,GACX,EAAA,IAAM,OAAO,EAAA,KAAO,YAAY,WAAA,IAAe,EAAA,GACvC,EAA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AAA;AAC5B,EAAA,KAAA,IAAS,CAAA,GAAI,CAAA,EAAG,CAAA,GAAI,GAAA,EAAK,CAAA,EAAA,EAAK;AAC5B,IAAA,MAAM,EAAE,GAAG,CAAA,EAAC,GAAK,QAAQ,GAAA,CAAI,CAAC,GAAG,EAAE,CAAA;AACnC,IAAA,CAAC,EAAA,CAAG,CAAC,CAAA,EAAG,EAAA,CAAG,CAAC,CAAC,CAAA,GAAI,CAAC,CAAA,EAAG,CAAC,CAAA;AACxB,EAAA;AACA,EAAA,OAAO,CAAC,IAAI,EAAE,CAAA;AAChB;AAgBA,IAAM,MAAA,GAAS,CAAC,CAAA,EAAW,CAAA,EAAW,MAAuB,CAAA,IAAK,CAAA,GAAM,MAAO,EAAA,GAAK;AACpF,IAAM,MAAA,GAAS,CAAC,CAAA,EAAW,CAAA,EAAW,MAAuB,CAAA,IAAK,CAAA,GAAM,MAAO,EAAA,GAAK;AAEpF,IAAM,MAAA,GAAS,CAAC,CAAA,EAAW,CAAA,EAAW,MAAuB,CAAA,IAAM,CAAA,GAAI,EAAA,GAAQ,CAAA,KAAO,EAAA,GAAK;AAC3F,IAAM,MAAA,GAAS,CAAC,CAAA,EAAW,CAAA,EAAW,MAAuB,CAAA,IAAM,CAAA,GAAI,EAAA,GAAQ,CAAA,KAAO,EAAA,GAAK","file":"chunk-BYTNVMX7.js","sourcesContent":["/**\n * Internal webcrypto alias.\n * We prefer WebCrypto aka globalThis.crypto, which exists in node.js 16+.\n * Falls back to Node.js built-in crypto for Node.js <=v14.\n * See utils.ts for details.\n * @module\n */\n// @ts-ignore\nimport * as nc from 'node:crypto';\nexport const crypto: any =\n nc && typeof nc === 'object' && 'webcrypto' in nc\n ? (nc.webcrypto as any)\n : nc && typeof nc === 'object' && 'randomBytes' in nc\n ? nc\n : undefined;\n","/**\n * Utilities for hex, bytes, CSPRNG.\n * @module\n */\n/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */\n\n// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+.\n// node.js versions earlier than v19 don't declare it in global scope.\n// For node.js, package.json#exports field mapping rewrites import\n// from `crypto` to `cryptoNode`, which imports native module.\n// Makes the utils un-importable in browsers without a bundler.\n// Once node.js 18 is deprecated (2025-04-30), we can just drop the import.\nimport { crypto } from '@noble/hashes/crypto';\n\n/** Checks if something is Uint8Array. Be careful: nodejs Buffer will return true. */\nexport function isBytes(a: unknown): a is Uint8Array {\n return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array');\n}\n\n/** Asserts something is positive integer. */\nexport function anumber(n: number): void {\n if (!Number.isSafeInteger(n) || n < 0) throw new Error('positive integer expected, got ' + n);\n}\n\n/** Asserts something is Uint8Array. */\nexport function abytes(b: Uint8Array | undefined, ...lengths: number[]): void {\n if (!isBytes(b)) throw new Error('Uint8Array expected');\n if (lengths.length > 0 && !lengths.includes(b.length))\n throw new Error('Uint8Array expected of length ' + lengths + ', got length=' + b.length);\n}\n\n/** Asserts something is hash */\nexport function ahash(h: IHash): void {\n if (typeof h !== 'function' || typeof h.create !== 'function')\n throw new Error('Hash should be wrapped by utils.createHasher');\n anumber(h.outputLen);\n anumber(h.blockLen);\n}\n\n/** Asserts a hash instance has not been destroyed / finished */\nexport function aexists(instance: any, checkFinished = true): void {\n if (instance.destroyed) throw new Error('Hash instance has been destroyed');\n if (checkFinished && instance.finished) throw new Error('Hash#digest() has already been called');\n}\n\n/** Asserts output is properly-sized byte array */\nexport function aoutput(out: any, instance: any): void {\n abytes(out);\n const min = instance.outputLen;\n if (out.length < min) {\n throw new Error('digestInto() expects output buffer of length at least ' + min);\n }\n}\n\n/** Generic type encompassing 8/16/32-byte arrays - but not 64-byte. */\n// prettier-ignore\nexport type TypedArray = Int8Array | Uint8ClampedArray | Uint8Array |\n Uint16Array | Int16Array | Uint32Array | Int32Array;\n\n/** Cast u8 / u16 / u32 to u8. */\nexport function u8(arr: TypedArray): Uint8Array {\n return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);\n}\n\n/** Cast u8 / u16 / u32 to u32. */\nexport function u32(arr: TypedArray): Uint32Array {\n return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));\n}\n\n/** Zeroize a byte array. Warning: JS provides no guarantees. */\nexport function clean(...arrays: TypedArray[]): void {\n for (let i = 0; i < arrays.length; i++) {\n arrays[i].fill(0);\n }\n}\n\n/** Create DataView of an array for easy byte-level manipulation. */\nexport function createView(arr: TypedArray): DataView {\n return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);\n}\n\n/** The rotate right (circular right shift) operation for uint32 */\nexport function rotr(word: number, shift: number): number {\n return (word << (32 - shift)) | (word >>> shift);\n}\n\n/** The rotate left (circular left shift) operation for uint32 */\nexport function rotl(word: number, shift: number): number {\n return (word << shift) | ((word >>> (32 - shift)) >>> 0);\n}\n\n/** Is current platform little-endian? Most are. Big-Endian platform: IBM */\nexport const isLE: boolean = /* @__PURE__ */ (() =>\n new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44)();\n\n/** The byte swap operation for uint32 */\nexport function byteSwap(word: number): number {\n return (\n ((word << 24) & 0xff000000) |\n ((word << 8) & 0xff0000) |\n ((word >>> 8) & 0xff00) |\n ((word >>> 24) & 0xff)\n );\n}\n/** Conditionally byte swap if on a big-endian platform */\nexport const swap8IfBE: (n: number) => number = isLE\n ? (n: number) => n\n : (n: number) => byteSwap(n);\n\n/** @deprecated */\nexport const byteSwapIfBE: typeof swap8IfBE = swap8IfBE;\n/** In place byte swap for Uint32Array */\nexport function byteSwap32(arr: Uint32Array): Uint32Array {\n for (let i = 0; i < arr.length; i++) {\n arr[i] = byteSwap(arr[i]);\n }\n return arr;\n}\n\nexport const swap32IfBE: (u: Uint32Array) => Uint32Array = isLE\n ? (u: Uint32Array) => u\n : byteSwap32;\n\n// Built-in hex conversion https://caniuse.com/mdn-javascript_builtins_uint8array_fromhex\nconst hasHexBuiltin: boolean = /* @__PURE__ */ (() =>\n // @ts-ignore\n typeof Uint8Array.from([]).toHex === 'function' && typeof Uint8Array.fromHex === 'function')();\n\n// Array where index 0xf0 (240) is mapped to string 'f0'\nconst hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) =>\n i.toString(16).padStart(2, '0')\n);\n\n/**\n * Convert byte array to hex string. Uses built-in function, when available.\n * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123'\n */\nexport function bytesToHex(bytes: Uint8Array): string {\n abytes(bytes);\n // @ts-ignore\n if (hasHexBuiltin) return bytes.toHex();\n // pre-caching improves the speed 6x\n let hex = '';\n for (let i = 0; i < bytes.length; i++) {\n hex += hexes[bytes[i]];\n }\n return hex;\n}\n\n// We use optimized technique to convert hex string to byte array\nconst asciis = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 } as const;\nfunction asciiToBase16(ch: number): number | undefined {\n if (ch >= asciis._0 && ch <= asciis._9) return ch - asciis._0; // '2' => 50-48\n if (ch >= asciis.A && ch <= asciis.F) return ch - (asciis.A - 10); // 'B' => 66-(65-10)\n if (ch >= asciis.a && ch <= asciis.f) return ch - (asciis.a - 10); // 'b' => 98-(97-10)\n return;\n}\n\n/**\n * Convert hex string to byte array. Uses built-in function, when available.\n * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23])\n */\nexport function hexToBytes(hex: string): Uint8Array {\n if (typeof hex !== 'string') throw new Error('hex string expected, got ' + typeof hex);\n // @ts-ignore\n if (hasHexBuiltin) return Uint8Array.fromHex(hex);\n const hl = hex.length;\n const al = hl / 2;\n if (hl % 2) throw new Error('hex string expected, got unpadded hex of length ' + hl);\n const array = new Uint8Array(al);\n for (let ai = 0, hi = 0; ai < al; ai++, hi += 2) {\n const n1 = asciiToBase16(hex.charCodeAt(hi));\n const n2 = asciiToBase16(hex.charCodeAt(hi + 1));\n if (n1 === undefined || n2 === undefined) {\n const char = hex[hi] + hex[hi + 1];\n throw new Error('hex string expected, got non-hex character \"' + char + '\" at index ' + hi);\n }\n array[ai] = n1 * 16 + n2; // multiply first octet, e.g. 'a3' => 10*16+3 => 160 + 3 => 163\n }\n return array;\n}\n\n/**\n * There is no setImmediate in browser and setTimeout is slow.\n * Call of async fn will return Promise, which will be fullfiled only on\n * next scheduler queue processing step and this is exactly what we need.\n */\nexport const nextTick = async (): Promise<void> => {};\n\n/** Returns control to thread each 'tick' ms to avoid blocking. */\nexport async function asyncLoop(\n iters: number,\n tick: number,\n cb: (i: number) => void\n): Promise<void> {\n let ts = Date.now();\n for (let i = 0; i < iters; i++) {\n cb(i);\n // Date.now() is not monotonic, so in case if clock goes backwards we return return control too\n const diff = Date.now() - ts;\n if (diff >= 0 && diff < tick) continue;\n await nextTick();\n ts += diff;\n }\n}\n\n// Global symbols, but ts doesn't see them: https://github.com/microsoft/TypeScript/issues/31535\ndeclare const TextEncoder: any;\ndeclare const TextDecoder: any;\n\n/**\n * Converts string to bytes using UTF8 encoding.\n * @example utf8ToBytes('abc') // Uint8Array.from([97, 98, 99])\n */\nexport function utf8ToBytes(str: string): Uint8Array {\n if (typeof str !== 'string') throw new Error('string expected');\n return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809\n}\n\n/**\n * Converts bytes to string using UTF8 encoding.\n * @example bytesToUtf8(Uint8Array.from([97, 98, 99])) // 'abc'\n */\nexport function bytesToUtf8(bytes: Uint8Array): string {\n return new TextDecoder().decode(bytes);\n}\n\n/** Accepted input of hash functions. Strings are converted to byte arrays. */\nexport type Input = string | Uint8Array;\n/**\n * Normalizes (non-hex) string or Uint8Array to Uint8Array.\n * Warning: when Uint8Array is passed, it would NOT get copied.\n * Keep in mind for future mutable operations.\n */\nexport function toBytes(data: Input): Uint8Array {\n if (typeof data === 'string') data = utf8ToBytes(data);\n abytes(data);\n return data;\n}\n\n/** KDFs can accept string or Uint8Array for user convenience. */\nexport type KDFInput = string | Uint8Array;\n/**\n * Helper for KDFs: consumes uint8array or string.\n * When string is passed, does utf8 decoding, using TextDecoder.\n */\nexport function kdfInputToBytes(data: KDFInput): Uint8Array {\n if (typeof data === 'string') data = utf8ToBytes(data);\n abytes(data);\n return data;\n}\n\n/** Copies several Uint8Arrays into one. */\nexport function concatBytes(...arrays: Uint8Array[]): Uint8Array {\n let sum = 0;\n for (let i = 0; i < arrays.length; i++) {\n const a = arrays[i];\n abytes(a);\n sum += a.length;\n }\n const res = new Uint8Array(sum);\n for (let i = 0, pad = 0; i < arrays.length; i++) {\n const a = arrays[i];\n res.set(a, pad);\n pad += a.length;\n }\n return res;\n}\n\ntype EmptyObj = {};\nexport function checkOpts<T1 extends EmptyObj, T2 extends EmptyObj>(\n defaults: T1,\n opts?: T2\n): T1 & T2 {\n if (opts !== undefined && {}.toString.call(opts) !== '[object Object]')\n throw new Error('options should be object or undefined');\n const merged = Object.assign(defaults, opts);\n return merged as T1 & T2;\n}\n\n/** Hash interface. */\nexport type IHash = {\n (data: Uint8Array): Uint8Array;\n blockLen: number;\n outputLen: number;\n create: any;\n};\n\n/** For runtime check if class implements interface */\nexport abstract class Hash<T extends Hash<T>> {\n abstract blockLen: number; // Bytes per block\n abstract outputLen: number; // Bytes in output\n abstract update(buf: Input): this;\n // Writes digest into buf\n abstract digestInto(buf: Uint8Array): void;\n abstract digest(): Uint8Array;\n /**\n * Resets internal state. Makes Hash instance unusable.\n * Reset is impossible for keyed hashes if key is consumed into state. If digest is not consumed\n * by user, they will need to manually call `destroy()` when zeroing is necessary.\n */\n abstract destroy(): void;\n /**\n * Clones hash instance. Unsafe: doesn't check whether `to` is valid. Can be used as `clone()`\n * when no options are passed.\n * Reasons to use `_cloneInto` instead of clone: 1) performance 2) reuse instance => all internal\n * buffers are overwritten => causes buffer overwrite which is used for digest in some cases.\n * There are no guarantees for clean-up because it's impossible in JS.\n */\n abstract _cloneInto(to?: T): T;\n // Safe version that clones internal state\n abstract clone(): T;\n}\n\n/**\n * XOF: streaming API to read digest in chunks.\n * Same as 'squeeze' in keccak/k12 and 'seek' in blake3, but more generic name.\n * When hash used in XOF mode it is up to user to call '.destroy' afterwards, since we cannot\n * destroy state, next call can require more bytes.\n */\nexport type HashXOF<T extends Hash<T>> = Hash<T> & {\n xof(bytes: number): Uint8Array; // Read 'bytes' bytes from digest stream\n xofInto(buf: Uint8Array): Uint8Array; // read buf.length bytes from digest stream into buf\n};\n\n/** Hash function */\nexport type CHash = ReturnType<typeof createHasher>;\n/** Hash function with output */\nexport type CHashO = ReturnType<typeof createOptHasher>;\n/** XOF with output */\nexport type CHashXO = ReturnType<typeof createXOFer>;\n\n/** Wraps hash function, creating an interface on top of it */\nexport function createHasher<T extends Hash<T>>(\n hashCons: () => Hash<T>\n): {\n (msg: Input): Uint8Array;\n outputLen: number;\n blockLen: number;\n create(): Hash<T>;\n} {\n const hashC = (msg: Input): Uint8Array => hashCons().update(toBytes(msg)).digest();\n const tmp = hashCons();\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = () => hashCons();\n return hashC;\n}\n\nexport function createOptHasher<H extends Hash<H>, T extends Object>(\n hashCons: (opts?: T) => Hash<H>\n): {\n (msg: Input, opts?: T): Uint8Array;\n outputLen: number;\n blockLen: number;\n create(opts?: T): Hash<H>;\n} {\n const hashC = (msg: Input, opts?: T): Uint8Array => hashCons(opts).update(toBytes(msg)).digest();\n const tmp = hashCons({} as T);\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = (opts?: T) => hashCons(opts);\n return hashC;\n}\n\nexport function createXOFer<H extends HashXOF<H>, T extends Object>(\n hashCons: (opts?: T) => HashXOF<H>\n): {\n (msg: Input, opts?: T): Uint8Array;\n outputLen: number;\n blockLen: number;\n create(opts?: T): HashXOF<H>;\n} {\n const hashC = (msg: Input, opts?: T): Uint8Array => hashCons(opts).update(toBytes(msg)).digest();\n const tmp = hashCons({} as T);\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = (opts?: T) => hashCons(opts);\n return hashC;\n}\nexport const wrapConstructor: typeof createHasher = createHasher;\nexport const wrapConstructorWithOpts: typeof createOptHasher = createOptHasher;\nexport const wrapXOFConstructorWithOpts: typeof createXOFer = createXOFer;\n\n/** Cryptographically secure PRNG. Uses internal OS-level `crypto.getRandomValues`. */\nexport function randomBytes(bytesLength = 32): Uint8Array {\n if (crypto && typeof crypto.getRandomValues === 'function') {\n return crypto.getRandomValues(new Uint8Array(bytesLength));\n }\n // Legacy Node.js compatibility\n if (crypto && typeof crypto.randomBytes === 'function') {\n return Uint8Array.from(crypto.randomBytes(bytesLength));\n }\n throw new Error('crypto.getRandomValues must be defined');\n}\n","/**\n * Hex, bytes and number utilities.\n * @module\n */\n/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */\n\n// 100 lines of code in the file are duplicated from noble-hashes (utils).\n// This is OK: `abstract` directory does not use noble-hashes.\n// User may opt-in into using different hashing library. This way, noble-hashes\n// won't be included into their bundle.\nconst _0n = /* @__PURE__ */ BigInt(0);\nconst _1n = /* @__PURE__ */ BigInt(1);\nexport type Hex = Uint8Array | string; // hex strings are accepted for simplicity\nexport type PrivKey = Hex | bigint; // bigints are accepted to ease learning curve\nexport type CHash = {\n (message: Uint8Array | string): Uint8Array;\n blockLen: number;\n outputLen: number;\n create(opts?: { dkLen?: number }): any; // For shake\n};\nexport type FHash = (message: Uint8Array | string) => Uint8Array;\n\nexport function isBytes(a: unknown): a is Uint8Array {\n return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array');\n}\n\nexport function abytes(item: unknown): void {\n if (!isBytes(item)) throw new Error('Uint8Array expected');\n}\n\nexport function abool(title: string, value: boolean): void {\n if (typeof value !== 'boolean') throw new Error(title + ' boolean expected, got ' + value);\n}\n\n// Used in weierstrass, der\nexport function numberToHexUnpadded(num: number | bigint): string {\n const hex = num.toString(16);\n return hex.length & 1 ? '0' + hex : hex;\n}\n\nexport function hexToNumber(hex: string): bigint {\n if (typeof hex !== 'string') throw new Error('hex string expected, got ' + typeof hex);\n return hex === '' ? _0n : BigInt('0x' + hex); // Big Endian\n}\n\n// Built-in hex conversion https://caniuse.com/mdn-javascript_builtins_uint8array_fromhex\nconst hasHexBuiltin: boolean =\n // @ts-ignore\n typeof Uint8Array.from([]).toHex === 'function' && typeof Uint8Array.fromHex === 'function';\n\n// Array where index 0xf0 (240) is mapped to string 'f0'\nconst hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) =>\n i.toString(16).padStart(2, '0')\n);\n\n/**\n * Convert byte array to hex string. Uses built-in function, when available.\n * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123'\n */\nexport function bytesToHex(bytes: Uint8Array): string {\n abytes(bytes);\n // @ts-ignore\n if (hasHexBuiltin) return bytes.toHex();\n // pre-caching improves the speed 6x\n let hex = '';\n for (let i = 0; i < bytes.length; i++) {\n hex += hexes[bytes[i]];\n }\n return hex;\n}\n\n// We use optimized technique to convert hex string to byte array\nconst asciis = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 } as const;\nfunction asciiToBase16(ch: number): number | undefined {\n if (ch >= asciis._0 && ch <= asciis._9) return ch - asciis._0; // '2' => 50-48\n if (ch >= asciis.A && ch <= asciis.F) return ch - (asciis.A - 10); // 'B' => 66-(65-10)\n if (ch >= asciis.a && ch <= asciis.f) return ch - (asciis.a - 10); // 'b' => 98-(97-10)\n return;\n}\n\n/**\n * Convert hex string to byte array. Uses built-in function, when available.\n * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23])\n */\nexport function hexToBytes(hex: string): Uint8Array {\n if (typeof hex !== 'string') throw new Error('hex string expected, got ' + typeof hex);\n // @ts-ignore\n if (hasHexBuiltin) return Uint8Array.fromHex(hex);\n const hl = hex.length;\n const al = hl / 2;\n if (hl % 2) throw new Error('hex string expected, got unpadded hex of length ' + hl);\n const array = new Uint8Array(al);\n for (let ai = 0, hi = 0; ai < al; ai++, hi += 2) {\n const n1 = asciiToBase16(hex.charCodeAt(hi));\n const n2 = asciiToBase16(hex.charCodeAt(hi + 1));\n if (n1 === undefined || n2 === undefined) {\n const char = hex[hi] + hex[hi + 1];\n throw new Error('hex string expected, got non-hex character \"' + char + '\" at index ' + hi);\n }\n array[ai] = n1 * 16 + n2; // multiply first octet, e.g. 'a3' => 10*16+3 => 160 + 3 => 163\n }\n return array;\n}\n\n// BE: Big Endian, LE: Little Endian\nexport function bytesToNumberBE(bytes: Uint8Array): bigint {\n return hexToNumber(bytesToHex(bytes));\n}\nexport function bytesToNumberLE(bytes: Uint8Array): bigint {\n abytes(bytes);\n return hexToNumber(bytesToHex(Uint8Array.from(bytes).reverse()));\n}\n\nexport function numberToBytesBE(n: number | bigint, len: number): Uint8Array {\n return hexToBytes(n.toString(16).padStart(len * 2, '0'));\n}\nexport function numberToBytesLE(n: number | bigint, len: number): Uint8Array {\n return numberToBytesBE(n, len).reverse();\n}\n// Unpadded, rarely used\nexport function numberToVarBytesBE(n: number | bigint): Uint8Array {\n return hexToBytes(numberToHexUnpadded(n));\n}\n\n/**\n * Takes hex string or Uint8Array, converts to Uint8Array.\n * Validates output length.\n * Will throw error for other types.\n * @param title descriptive title for an error e.g. 'private key'\n * @param hex hex string or Uint8Array\n * @param expectedLength optional, will compare to result array's length\n * @returns\n */\nexport function ensureBytes(title: string, hex: Hex, expectedLength?: number): Uint8Array {\n let res: Uint8Array;\n if (typeof hex === 'string') {\n try {\n res = hexToBytes(hex);\n } catch (e) {\n throw new Error(title + ' must be hex string or Uint8Array, cause: ' + e);\n }\n } else if (isBytes(hex)) {\n // Uint8Array.from() instead of hash.slice() because node.js Buffer\n // is instance of Uint8Array, and its slice() creates **mutable** copy\n res = Uint8Array.from(hex);\n } else {\n throw new Error(title + ' must be hex string or Uint8Array');\n }\n const len = res.length;\n if (typeof expectedLength === 'number' && len !== expectedLength)\n throw new Error(title + ' of length ' + expectedLength + ' expected, got ' + len);\n return res;\n}\n\n/**\n * Copies several Uint8Arrays into one.\n */\nexport function concatBytes(...arrays: Uint8Array[]): Uint8Array {\n let sum = 0;\n for (let i = 0; i < arrays.length; i++) {\n const a = arrays[i];\n abytes(a);\n sum += a.length;\n }\n const res = new Uint8Array(sum);\n for (let i = 0, pad = 0; i < arrays.length; i++) {\n const a = arrays[i];\n res.set(a, pad);\n pad += a.length;\n }\n return res;\n}\n\n// Compares 2 u8a-s in kinda constant time\nexport function equalBytes(a: Uint8Array, b: Uint8Array): boolean {\n if (a.length !== b.length) return false;\n let diff = 0;\n for (let i = 0; i < a.length; i++) diff |= a[i] ^ b[i];\n return diff === 0;\n}\n\n// Global symbols in both browsers and Node.js since v11\n// See https://github.com/microsoft/TypeScript/issues/31535\ndeclare const TextEncoder: any;\n\n/**\n * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])\n */\nexport function utf8ToBytes(str: string): Uint8Array {\n if (typeof str !== 'string') throw new Error('string expected');\n return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809\n}\n\n// Is positive bigint\nconst isPosBig = (n: bigint) => typeof n === 'bigint' && _0n <= n;\n\nexport function inRange(n: bigint, min: bigint, max: bigint): boolean {\n return isPosBig(n) && isPosBig(min) && isPosBig(max) && min <= n && n < max;\n}\n\n/**\n * Asserts min <= n < max. NOTE: It's < max and not <= max.\n * @example\n * aInRange('x', x, 1n, 256n); // would assume x is in (1n..255n)\n */\nexport function aInRange(title: string, n: bigint, min: bigint, max: bigint): void {\n // Why min <= n < max and not a (min < n < max) OR b (min <= n <= max)?\n // consider P=256n, min=0n, max=P\n // - a for min=0 would require -1: `inRange('x', x, -1n, P)`\n // - b would commonly require subtraction: `inRange('x', x, 0n, P - 1n)`\n // - our way is the cleanest: `inRange('x', x, 0n, P)\n if (!inRange(n, min, max))\n throw new Error('expected valid ' + title + ': ' + min + ' <= n < ' + max + ', got ' + n);\n}\n\n// Bit operations\n\n/**\n * Calculates amount of bits in a bigint.\n * Same as `n.toString(2).length`\n * TODO: merge with nLength in modular\n */\nexport function bitLen(n: bigint): number {\n let len;\n for (len = 0; n > _0n; n >>= _1n, len += 1);\n return len;\n}\n\n/**\n * Gets single bit at position.\n * NOTE: first bit position is 0 (same as arrays)\n * Same as `!!+Array.from(n.toString(2)).reverse()[pos]`\n */\nexport function bitGet(n: bigint, pos: number): bigint {\n return (n >> BigInt(pos)) & _1n;\n}\n\n/**\n * Sets single bit at position.\n */\nexport function bitSet(n: bigint, pos: number, value: boolean): bigint {\n return n | ((value ? _1n : _0n) << BigInt(pos));\n}\n\n/**\n * Calculate mask for N bits. Not using ** operator with bigints because of old engines.\n * Same as BigInt(`0b${Array(i).fill('1').join('')}`)\n */\nexport const bitMask = (n: number): bigint => (_1n << BigInt(n)) - _1n;\n\n// DRBG\n\nconst u8n = (len: number) => new Uint8Array(len); // creates Uint8Array\nconst u8fr = (arr: ArrayLike<number>) => Uint8Array.from(arr); // another shortcut\ntype Pred<T> = (v: Uint8Array) => T | undefined;\n/**\n * Minimal HMAC-DRBG from NIST 800-90 for RFC6979 sigs.\n * @returns function that will call DRBG until 2nd arg returns something meaningful\n * @example\n * const drbg = createHmacDRBG<Key>(32, 32, hmac);\n * drbg(seed, bytesToKey); // bytesToKey must return Key or undefined\n */\nexport function createHmacDrbg<T>(\n hashLen: number,\n qByteLen: number,\n hmacFn: (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array\n): (seed: Uint8Array, predicate: Pred<T>) => T {\n if (typeof hashLen !== 'number' || hashLen < 2) throw new Error('hashLen must be a number');\n if (typeof qByteLen !== 'number' || qByteLen < 2) throw new Error('qByteLen must be a number');\n if (typeof hmacFn !== 'function') throw new Error('hmacFn must be a function');\n // Step B, Step C: set hashLen to 8*ceil(hlen/8)\n let v = u8n(hashLen); // Minimal non-full-spec HMAC-DRBG from NIST 800-90 for RFC6979 sigs.\n let k = u8n(hashLen); // Steps B and C of RFC6979 3.2: set hashLen, in our case always same\n let i = 0; // Iterations counter, will throw when over 1000\n const reset = () => {\n v.fill(1);\n k.fill(0);\n i = 0;\n };\n const h = (...b: Uint8Array[]) => hmacFn(k, v, ...b); // hmac(k)(v, ...values)\n const reseed = (seed = u8n(0)) => {\n // HMAC-DRBG reseed() function. Steps D-G\n k = h(u8fr([0x00]), seed); // k = hmac(k || v || 0x00 || seed)\n v = h(); // v = hmac(k || v)\n if (seed.length === 0) return;\n k = h(u8fr([0x01]), seed); // k = hmac(k || v || 0x01 || seed)\n v = h(); // v = hmac(k || v)\n };\n const gen = () => {\n // HMAC-DRBG generate() function\n if (i++ >= 1000) throw new Error('drbg: tried 1000 values');\n let len = 0;\n const out: Uint8Array[] = [];\n while (len < qByteLen) {\n v = h();\n const sl = v.slice();\n out.push(sl);\n len += v.length;\n }\n return concatBytes(...out);\n };\n const genUntil = (seed: Uint8Array, pred: Pred<T>): T => {\n reset();\n reseed(seed); // Steps D-G\n let res: T | undefined = undefined; // Step H: grind until k is in [1..n-1]\n while (!(res = pred(gen()))) reseed();\n reset();\n return res;\n };\n return genUntil;\n}\n\n// Validating curves and fields\n\nconst validatorFns = {\n bigint: (val: any): boolean => typeof val === 'bigint',\n function: (val: any): boolean => typeof val === 'function',\n boolean: (val: any): boolean => typeof val === 'boolean',\n string: (val: any): boolean => typeof val === 'string',\n stringOrUint8Array: (val: any): boolean => typeof val === 'string' || isBytes(val),\n isSafeInteger: (val: any): boolean => Number.isSafeInteger(val),\n array: (val: any): boolean => Array.isArray(val),\n field: (val: any, object: any): any => (object as any).Fp.isValid(val),\n hash: (val: any): boolean => typeof val === 'function' && Number.isSafeInteger(val.outputLen),\n} as const;\ntype Validator = keyof typeof validatorFns;\ntype ValMap<T extends Record<string, any>> = { [K in keyof T]?: Validator };\n// type Record<K extends string | number | symbol, T> = { [P in K]: T; }\n\nexport function validateObject<T extends Record<string, any>>(\n object: T,\n validators: ValMap<T>,\n optValidators: ValMap<T> = {}\n): T {\n const checkField = (fieldName: keyof T, type: Validator, isOptional: boolean) => {\n const checkVal = validatorFns[type];\n if (typeof checkVal !== 'function') throw new Error('invalid validator function');\n\n const val = object[fieldName as keyof typeof object];\n if (isOptional && val === undefined) return;\n if (!checkVal(val, object)) {\n throw new Error(\n 'param ' + String(fieldName) + ' is invalid. Expected ' + type + ', got ' + val\n );\n }\n };\n for (const [fieldName, type] of Object.entries(validators)) checkField(fieldName, type!, false);\n for (const [fieldName, type] of Object.entries(optValidators)) checkField(fieldName, type!, true);\n return object;\n}\n// validate type tests\n// const o: { a: number; b: number; c: number } = { a: 1, b: 5, c: 6 };\n// const z0 = validateObject(o, { a: 'isSafeInteger' }, { c: 'bigint' }); // Ok!\n// // Should fail type-check\n// const z1 = validateObject(o, { a: 'tmp' }, { c: 'zz' });\n// const z2 = validateObject(o, { a: 'isSafeInteger' }, { c: 'zz' });\n// const z3 = validateObject(o, { test: 'boolean', z: 'bug' });\n// const z4 = validateObject(o, { a: 'boolean', z: 'bug' });\n\n/**\n * throws not implemented error\n */\nexport const notImplemented = (): never => {\n throw new Error('not implemented');\n};\n\n/**\n * Memoizes (caches) computation result.\n * Uses WeakMap: the value is going auto-cleaned by GC after last reference is removed.\n */\nexport function memoized<T extends object, R, O extends any[]>(\n fn: (arg: T, ...args: O) => R\n): (arg: T, ...args: O) => R {\n const map = new WeakMap<T, R>();\n return (arg: T, ...args: O): R => {\n const val = map.get(arg);\n if (val !== undefined) return val;\n const computed = fn(arg, ...args);\n map.set(arg, computed);\n return computed;\n };\n}\n","/**\n * Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.\n * @todo re-check https://issues.chromium.org/issues/42212588\n * @module\n */\nconst U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);\nconst _32n = /* @__PURE__ */ BigInt(32);\n\nfunction fromBig(\n n: bigint,\n le = false\n): {\n h: number;\n l: number;\n} {\n if (le) return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };\n return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };\n}\n\nfunction split(lst: bigint[], le = false): Uint32Array[] {\n const len = lst.length;\n let Ah = new Uint32Array(len);\n let Al = new Uint32Array(len);\n for (let i = 0; i < len; i++) {\n const { h, l } = fromBig(lst[i], le);\n [Ah[i], Al[i]] = [h, l];\n }\n return [Ah, Al];\n}\n\nconst toBig = (h: number, l: number): bigint => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0);\n// for Shift in [0, 32)\nconst shrSH = (h: number, _l: number, s: number): number => h >>> s;\nconst shrSL = (h: number, l: number, s: number): number => (h << (32 - s)) | (l >>> s);\n// Right rotate for Shift in [1, 32)\nconst rotrSH = (h: number, l: number, s: number): number => (h >>> s) | (l << (32 - s));\nconst rotrSL = (h: number, l: number, s: number): number => (h << (32 - s)) | (l >>> s);\n// Right rotate for Shift in (32, 64), NOTE: 32 is special case.\nconst rotrBH = (h: number, l: number, s: number): number => (h << (64 - s)) | (l >>> (s - 32));\nconst rotrBL = (h: number, l: number, s: number): number => (h >>> (s - 32)) | (l << (64 - s));\n// Right rotate for shift===32 (just swaps l&h)\nconst rotr32H = (_h: number, l: number): number => l;\nconst rotr32L = (h: number, _l: number): number => h;\n// Left rotate for Shift in [1, 32)\nconst rotlSH = (h: number, l: number, s: number): number => (h << s) | (l >>> (32 - s));\nconst rotlSL = (h: number, l: number, s: number): number => (l << s) | (h >>> (32 - s));\n// Left rotate for Shift in (32, 64), NOTE: 32 is special case.\nconst rotlBH = (h: number, l: number, s: number): number => (l << (s - 32)) | (h >>> (64 - s));\nconst rotlBL = (h: number, l: number, s: number): number => (h << (s - 32)) | (l >>> (64 - s));\n\n// JS uses 32-bit signed integers for bitwise operations which means we cannot\n// simple take carry out of low bit sum by shift, we need to use division.\nfunction add(\n Ah: number,\n Al: number,\n Bh: number,\n Bl: number\n): {\n h: number;\n l: number;\n} {\n const l = (Al >>> 0) + (Bl >>> 0);\n return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 };\n}\n// Addition with more than 2 elements\nconst add3L = (Al: number, Bl: number, Cl: number): number => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);\nconst add3H = (low: number, Ah: number, Bh: number, Ch: number): number =>\n (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0;\nconst add4L = (Al: number, Bl: number, Cl: number, Dl: number): number =>\n (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);\nconst add4H = (low: number, Ah: number, Bh: number, Ch: number, Dh: number): number =>\n (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0;\nconst add5L = (Al: number, Bl: number, Cl: number, Dl: number, El: number): number =>\n (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);\nconst add5H = (low: number, Ah: number, Bh: number, Ch: number, Dh: number, Eh: number): number =>\n (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0;\n\n// prettier-ignore\nexport {\n add, add3H, add3L, add4H, add4L, add5H, add5L, fromBig, rotlBH, rotlBL, rotlSH, rotlSL, rotr32H, rotr32L, rotrBH, rotrBL, rotrSH, rotrSL, shrSH, shrSL, split, toBig\n};\n// prettier-ignore\nconst u64: { fromBig: typeof fromBig; split: typeof split; toBig: (h: number, l: number) => bigint; shrSH: (h: number, _l: number, s: number) => number; shrSL: (h: number, l: number, s: number) => number; rotrSH: (h: number, l: number, s: number) => number; rotrSL: (h: number, l: number, s: number) => number; rotrBH: (h: number, l: number, s: number) => number; rotrBL: (h: number, l: number, s: number) => number; rotr32H: (_h: number, l: number) => number; rotr32L: (h: number, _l: number) => number; rotlSH: (h: number, l: number, s: number) => number; rotlSL: (h: number, l: number, s: number) => number; rotlBH: (h: number, l: number, s: number) => number; rotlBL: (h: number, l: number, s: number) => number; add: typeof add; add3L: (Al: number, Bl: number, Cl: number) => number; add3H: (low: number, Ah: number, Bh: number, Ch: number) => number; add4L: (Al: number, Bl: number, Cl: number, Dl: number) => number; add4H: (low: number, Ah: number, Bh: number, Ch: number, Dh: number) => number; add5H: (low: number, Ah: number, Bh: number, Ch: number, Dh: number, Eh: number) => number; add5L: (Al: number, Bl: number, Cl: number, Dl: number, El: number) => number; } = {\n fromBig, split, toBig,\n shrSH, shrSL,\n rotrSH, rotrSL, rotrBH, rotrBL,\n rotr32H, rotr32L,\n rotlSH, rotlSL, rotlBH, rotlBL,\n add, add3L, add3H, add4L, add4H, add5H, add5L,\n};\nexport default u64;\n"]}
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Hash,
|
|
3
|
-
abytes,
|
|
4
|
-
aexists,
|
|
5
|
-
anumber,
|
|
6
|
-
aoutput,
|
|
7
|
-
clean,
|
|
8
|
-
createHasher,
|
|
9
|
-
rotlBH,
|
|
10
|
-
rotlBL,
|
|
11
|
-
rotlSH,
|
|
12
|
-
rotlSL,
|
|
13
|
-
split,
|
|
14
|
-
swap32IfBE,
|
|
15
|
-
toBytes,
|
|
16
|
-
u32
|
|
17
|
-
} from "./chunk-3CGLGAGR.js";
|
|
1
|
+
import { split, createHasher, Hash, anumber, u32, swap32IfBE, aexists, toBytes, abytes, aoutput, clean, rotlSH, rotlSL, rotlBH, rotlBL } from './chunk-BYTNVMX7.js';
|
|
18
2
|
|
|
19
3
|
// ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2_zod@3.25.76/node_modules/abitype/dist/esm/version.js
|
|
20
4
|
var version = "1.1.0";
|
|
@@ -1055,146 +1039,6 @@ var batchGatewayAbi = [
|
|
|
1055
1039
|
]
|
|
1056
1040
|
}
|
|
1057
1041
|
];
|
|
1058
|
-
var universalResolverErrors = [
|
|
1059
|
-
{
|
|
1060
|
-
inputs: [
|
|
1061
|
-
{
|
|
1062
|
-
name: "dns",
|
|
1063
|
-
type: "bytes"
|
|
1064
|
-
}
|
|
1065
|
-
],
|
|
1066
|
-
name: "DNSDecodingFailed",
|
|
1067
|
-
type: "error"
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
inputs: [
|
|
1071
|
-
{
|
|
1072
|
-
name: "ens",
|
|
1073
|
-
type: "string"
|
|
1074
|
-
}
|
|
1075
|
-
],
|
|
1076
|
-
name: "DNSEncodingFailed",
|
|
1077
|
-
type: "error"
|
|
1078
|
-
},
|
|
1079
|
-
{
|
|
1080
|
-
inputs: [],
|
|
1081
|
-
name: "EmptyAddress",
|
|
1082
|
-
type: "error"
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
inputs: [
|
|
1086
|
-
{
|
|
1087
|
-
name: "status",
|
|
1088
|
-
type: "uint16"
|
|
1089
|
-
},
|
|
1090
|
-
{
|
|
1091
|
-
name: "message",
|
|
1092
|
-
type: "string"
|
|
1093
|
-
}
|
|
1094
|
-
],
|
|
1095
|
-
name: "HttpError",
|
|
1096
|
-
type: "error"
|
|
1097
|
-
},
|
|
1098
|
-
{
|
|
1099
|
-
inputs: [],
|
|
1100
|
-
name: "InvalidBatchGatewayResponse",
|
|
1101
|
-
type: "error"
|
|
1102
|
-
},
|
|
1103
|
-
{
|
|
1104
|
-
inputs: [
|
|
1105
|
-
{
|
|
1106
|
-
name: "errorData",
|
|
1107
|
-
type: "bytes"
|
|
1108
|
-
}
|
|
1109
|
-
],
|
|
1110
|
-
name: "ResolverError",
|
|
1111
|
-
type: "error"
|
|
1112
|
-
},
|
|
1113
|
-
{
|
|
1114
|
-
inputs: [
|
|
1115
|
-
{
|
|
1116
|
-
name: "name",
|
|
1117
|
-
type: "bytes"
|
|
1118
|
-
},
|
|
1119
|
-
{
|
|
1120
|
-
name: "resolver",
|
|
1121
|
-
type: "address"
|
|
1122
|
-
}
|
|
1123
|
-
],
|
|
1124
|
-
name: "ResolverNotContract",
|
|
1125
|
-
type: "error"
|
|
1126
|
-
},
|
|
1127
|
-
{
|
|
1128
|
-
inputs: [
|
|
1129
|
-
{
|
|
1130
|
-
name: "name",
|
|
1131
|
-
type: "bytes"
|
|
1132
|
-
}
|
|
1133
|
-
],
|
|
1134
|
-
name: "ResolverNotFound",
|
|
1135
|
-
type: "error"
|
|
1136
|
-
},
|
|
1137
|
-
{
|
|
1138
|
-
inputs: [
|
|
1139
|
-
{
|
|
1140
|
-
name: "primary",
|
|
1141
|
-
type: "string"
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
name: "primaryAddress",
|
|
1145
|
-
type: "bytes"
|
|
1146
|
-
}
|
|
1147
|
-
],
|
|
1148
|
-
name: "ReverseAddressMismatch",
|
|
1149
|
-
type: "error"
|
|
1150
|
-
},
|
|
1151
|
-
{
|
|
1152
|
-
inputs: [
|
|
1153
|
-
{
|
|
1154
|
-
internalType: "bytes4",
|
|
1155
|
-
name: "selector",
|
|
1156
|
-
type: "bytes4"
|
|
1157
|
-
}
|
|
1158
|
-
],
|
|
1159
|
-
name: "UnsupportedResolverProfile",
|
|
1160
|
-
type: "error"
|
|
1161
|
-
}
|
|
1162
|
-
];
|
|
1163
|
-
var universalResolverResolveAbi = [
|
|
1164
|
-
...universalResolverErrors,
|
|
1165
|
-
{
|
|
1166
|
-
name: "resolveWithGateways",
|
|
1167
|
-
type: "function",
|
|
1168
|
-
stateMutability: "view",
|
|
1169
|
-
inputs: [
|
|
1170
|
-
{ name: "name", type: "bytes" },
|
|
1171
|
-
{ name: "data", type: "bytes" },
|
|
1172
|
-
{ name: "gateways", type: "string[]" }
|
|
1173
|
-
],
|
|
1174
|
-
outputs: [
|
|
1175
|
-
{ name: "", type: "bytes" },
|
|
1176
|
-
{ name: "address", type: "address" }
|
|
1177
|
-
]
|
|
1178
|
-
}
|
|
1179
|
-
];
|
|
1180
|
-
var universalResolverReverseAbi = [
|
|
1181
|
-
...universalResolverErrors,
|
|
1182
|
-
{
|
|
1183
|
-
name: "reverseWithGateways",
|
|
1184
|
-
type: "function",
|
|
1185
|
-
stateMutability: "view",
|
|
1186
|
-
inputs: [
|
|
1187
|
-
{ type: "bytes", name: "reverseName" },
|
|
1188
|
-
{ type: "uint256", name: "coinType" },
|
|
1189
|
-
{ type: "string[]", name: "gateways" }
|
|
1190
|
-
],
|
|
1191
|
-
outputs: [
|
|
1192
|
-
{ type: "string", name: "resolvedName" },
|
|
1193
|
-
{ type: "address", name: "resolver" },
|
|
1194
|
-
{ type: "address", name: "reverseResolver" }
|
|
1195
|
-
]
|
|
1196
|
-
}
|
|
1197
|
-
];
|
|
1198
1042
|
|
|
1199
1043
|
// ../../node_modules/.pnpm/viem@2.37.8_typescript@5.9.2_zod@3.25.76/node_modules/viem/_esm/constants/contract.js
|
|
1200
1044
|
var aggregate3Signature = "0x82ad56cb";
|
|
@@ -2201,9 +2045,9 @@ var checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
|
2201
2045
|
function checksumAddress(address_, chainId) {
|
|
2202
2046
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
2203
2047
|
return checksumAddressCache.get(`${address_}.${chainId}`);
|
|
2204
|
-
const hexAddress =
|
|
2048
|
+
const hexAddress = address_.substring(2).toLowerCase();
|
|
2205
2049
|
const hash2 = keccak256(stringToBytes(hexAddress), "bytes");
|
|
2206
|
-
const address = (
|
|
2050
|
+
const address = (hexAddress).split("");
|
|
2207
2051
|
for (let i = 0; i < 40; i += 2) {
|
|
2208
2052
|
if (hash2[i >> 1] >> 4 >= 8 && address[i]) {
|
|
2209
2053
|
address[i] = address[i].toUpperCase();
|
|
@@ -2328,7 +2172,7 @@ var staticCursor = {
|
|
|
2328
2172
|
pushUint24(value) {
|
|
2329
2173
|
this.assertPosition(this.position + 2);
|
|
2330
2174
|
this.dataView.setUint16(this.position, value >> 8);
|
|
2331
|
-
this.dataView.setUint8(this.position + 2, value &
|
|
2175
|
+
this.dataView.setUint8(this.position + 2, value & 255);
|
|
2332
2176
|
this.position += 3;
|
|
2333
2177
|
},
|
|
2334
2178
|
pushUint32(value) {
|
|
@@ -2886,7 +2730,7 @@ function decodeErrorResult(parameters) {
|
|
|
2886
2730
|
// ../../node_modules/.pnpm/viem@2.37.8_typescript@5.9.2_zod@3.25.76/node_modules/viem/_esm/utils/stringify.js
|
|
2887
2731
|
var stringify = (value, replacer, space) => JSON.stringify(value, (key, value_) => {
|
|
2888
2732
|
const value2 = typeof value_ === "bigint" ? value_.toString() : value_;
|
|
2889
|
-
return
|
|
2733
|
+
return value2;
|
|
2890
2734
|
}, space);
|
|
2891
2735
|
|
|
2892
2736
|
// ../../node_modules/.pnpm/viem@2.37.8_typescript@5.9.2_zod@3.25.76/node_modules/viem/_esm/utils/hash/toEventSelector.js
|
|
@@ -3745,103 +3589,6 @@ function serializeStateOverride(parameters) {
|
|
|
3745
3589
|
}
|
|
3746
3590
|
return rpcStateOverride;
|
|
3747
3591
|
}
|
|
3748
|
-
|
|
3749
|
-
// ../../node_modules/.pnpm/viem@2.37.8_typescript@5.9.2_zod@3.25.76/node_modules/viem/_esm/constants/number.js
|
|
3750
|
-
var maxInt8 = 2n ** (8n - 1n) - 1n;
|
|
3751
|
-
var maxInt16 = 2n ** (16n - 1n) - 1n;
|
|
3752
|
-
var maxInt24 = 2n ** (24n - 1n) - 1n;
|
|
3753
|
-
var maxInt32 = 2n ** (32n - 1n) - 1n;
|
|
3754
|
-
var maxInt40 = 2n ** (40n - 1n) - 1n;
|
|
3755
|
-
var maxInt48 = 2n ** (48n - 1n) - 1n;
|
|
3756
|
-
var maxInt56 = 2n ** (56n - 1n) - 1n;
|
|
3757
|
-
var maxInt64 = 2n ** (64n - 1n) - 1n;
|
|
3758
|
-
var maxInt72 = 2n ** (72n - 1n) - 1n;
|
|
3759
|
-
var maxInt80 = 2n ** (80n - 1n) - 1n;
|
|
3760
|
-
var maxInt88 = 2n ** (88n - 1n) - 1n;
|
|
3761
|
-
var maxInt96 = 2n ** (96n - 1n) - 1n;
|
|
3762
|
-
var maxInt104 = 2n ** (104n - 1n) - 1n;
|
|
3763
|
-
var maxInt112 = 2n ** (112n - 1n) - 1n;
|
|
3764
|
-
var maxInt120 = 2n ** (120n - 1n) - 1n;
|
|
3765
|
-
var maxInt128 = 2n ** (128n - 1n) - 1n;
|
|
3766
|
-
var maxInt136 = 2n ** (136n - 1n) - 1n;
|
|
3767
|
-
var maxInt144 = 2n ** (144n - 1n) - 1n;
|
|
3768
|
-
var maxInt152 = 2n ** (152n - 1n) - 1n;
|
|
3769
|
-
var maxInt160 = 2n ** (160n - 1n) - 1n;
|
|
3770
|
-
var maxInt168 = 2n ** (168n - 1n) - 1n;
|
|
3771
|
-
var maxInt176 = 2n ** (176n - 1n) - 1n;
|
|
3772
|
-
var maxInt184 = 2n ** (184n - 1n) - 1n;
|
|
3773
|
-
var maxInt192 = 2n ** (192n - 1n) - 1n;
|
|
3774
|
-
var maxInt200 = 2n ** (200n - 1n) - 1n;
|
|
3775
|
-
var maxInt208 = 2n ** (208n - 1n) - 1n;
|
|
3776
|
-
var maxInt216 = 2n ** (216n - 1n) - 1n;
|
|
3777
|
-
var maxInt224 = 2n ** (224n - 1n) - 1n;
|
|
3778
|
-
var maxInt232 = 2n ** (232n - 1n) - 1n;
|
|
3779
|
-
var maxInt240 = 2n ** (240n - 1n) - 1n;
|
|
3780
|
-
var maxInt248 = 2n ** (248n - 1n) - 1n;
|
|
3781
|
-
var maxInt256 = 2n ** (256n - 1n) - 1n;
|
|
3782
|
-
var minInt8 = -(2n ** (8n - 1n));
|
|
3783
|
-
var minInt16 = -(2n ** (16n - 1n));
|
|
3784
|
-
var minInt24 = -(2n ** (24n - 1n));
|
|
3785
|
-
var minInt32 = -(2n ** (32n - 1n));
|
|
3786
|
-
var minInt40 = -(2n ** (40n - 1n));
|
|
3787
|
-
var minInt48 = -(2n ** (48n - 1n));
|
|
3788
|
-
var minInt56 = -(2n ** (56n - 1n));
|
|
3789
|
-
var minInt64 = -(2n ** (64n - 1n));
|
|
3790
|
-
var minInt72 = -(2n ** (72n - 1n));
|
|
3791
|
-
var minInt80 = -(2n ** (80n - 1n));
|
|
3792
|
-
var minInt88 = -(2n ** (88n - 1n));
|
|
3793
|
-
var minInt96 = -(2n ** (96n - 1n));
|
|
3794
|
-
var minInt104 = -(2n ** (104n - 1n));
|
|
3795
|
-
var minInt112 = -(2n ** (112n - 1n));
|
|
3796
|
-
var minInt120 = -(2n ** (120n - 1n));
|
|
3797
|
-
var minInt128 = -(2n ** (128n - 1n));
|
|
3798
|
-
var minInt136 = -(2n ** (136n - 1n));
|
|
3799
|
-
var minInt144 = -(2n ** (144n - 1n));
|
|
3800
|
-
var minInt152 = -(2n ** (152n - 1n));
|
|
3801
|
-
var minInt160 = -(2n ** (160n - 1n));
|
|
3802
|
-
var minInt168 = -(2n ** (168n - 1n));
|
|
3803
|
-
var minInt176 = -(2n ** (176n - 1n));
|
|
3804
|
-
var minInt184 = -(2n ** (184n - 1n));
|
|
3805
|
-
var minInt192 = -(2n ** (192n - 1n));
|
|
3806
|
-
var minInt200 = -(2n ** (200n - 1n));
|
|
3807
|
-
var minInt208 = -(2n ** (208n - 1n));
|
|
3808
|
-
var minInt216 = -(2n ** (216n - 1n));
|
|
3809
|
-
var minInt224 = -(2n ** (224n - 1n));
|
|
3810
|
-
var minInt232 = -(2n ** (232n - 1n));
|
|
3811
|
-
var minInt240 = -(2n ** (240n - 1n));
|
|
3812
|
-
var minInt248 = -(2n ** (248n - 1n));
|
|
3813
|
-
var minInt256 = -(2n ** (256n - 1n));
|
|
3814
|
-
var maxUint8 = 2n ** 8n - 1n;
|
|
3815
|
-
var maxUint16 = 2n ** 16n - 1n;
|
|
3816
|
-
var maxUint24 = 2n ** 24n - 1n;
|
|
3817
|
-
var maxUint32 = 2n ** 32n - 1n;
|
|
3818
|
-
var maxUint40 = 2n ** 40n - 1n;
|
|
3819
|
-
var maxUint48 = 2n ** 48n - 1n;
|
|
3820
|
-
var maxUint56 = 2n ** 56n - 1n;
|
|
3821
|
-
var maxUint64 = 2n ** 64n - 1n;
|
|
3822
|
-
var maxUint72 = 2n ** 72n - 1n;
|
|
3823
|
-
var maxUint80 = 2n ** 80n - 1n;
|
|
3824
|
-
var maxUint88 = 2n ** 88n - 1n;
|
|
3825
|
-
var maxUint96 = 2n ** 96n - 1n;
|
|
3826
|
-
var maxUint104 = 2n ** 104n - 1n;
|
|
3827
|
-
var maxUint112 = 2n ** 112n - 1n;
|
|
3828
|
-
var maxUint120 = 2n ** 120n - 1n;
|
|
3829
|
-
var maxUint128 = 2n ** 128n - 1n;
|
|
3830
|
-
var maxUint136 = 2n ** 136n - 1n;
|
|
3831
|
-
var maxUint144 = 2n ** 144n - 1n;
|
|
3832
|
-
var maxUint152 = 2n ** 152n - 1n;
|
|
3833
|
-
var maxUint160 = 2n ** 160n - 1n;
|
|
3834
|
-
var maxUint168 = 2n ** 168n - 1n;
|
|
3835
|
-
var maxUint176 = 2n ** 176n - 1n;
|
|
3836
|
-
var maxUint184 = 2n ** 184n - 1n;
|
|
3837
|
-
var maxUint192 = 2n ** 192n - 1n;
|
|
3838
|
-
var maxUint200 = 2n ** 200n - 1n;
|
|
3839
|
-
var maxUint208 = 2n ** 208n - 1n;
|
|
3840
|
-
var maxUint216 = 2n ** 216n - 1n;
|
|
3841
|
-
var maxUint224 = 2n ** 224n - 1n;
|
|
3842
|
-
var maxUint232 = 2n ** 232n - 1n;
|
|
3843
|
-
var maxUint240 = 2n ** 240n - 1n;
|
|
3844
|
-
var maxUint248 = 2n ** 248n - 1n;
|
|
3845
3592
|
var maxUint256 = 2n ** 256n - 1n;
|
|
3846
3593
|
|
|
3847
3594
|
// ../../node_modules/.pnpm/viem@2.37.8_typescript@5.9.2_zod@3.25.76/node_modules/viem/_esm/utils/transaction/assertRequest.js
|
|
@@ -3945,7 +3692,7 @@ async function call(client, args) {
|
|
|
3945
3692
|
return { data: response };
|
|
3946
3693
|
} catch (err) {
|
|
3947
3694
|
const data2 = getRevertErrorData(err);
|
|
3948
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import(
|
|
3695
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-EHIFPB3Q.js');
|
|
3949
3696
|
if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
|
|
3950
3697
|
return { data: await offchainLookup2(client, { data: data2, to }) };
|
|
3951
3698
|
if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
|
|
@@ -4326,12 +4073,6 @@ async function ccipRequest({ data, sender, urls }) {
|
|
|
4326
4073
|
throw error;
|
|
4327
4074
|
}
|
|
4328
4075
|
|
|
4329
|
-
export {
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
formatEther,
|
|
4333
|
-
offchainLookupSignature,
|
|
4334
|
-
offchainLookupAbiItem,
|
|
4335
|
-
offchainLookup,
|
|
4336
|
-
ccipRequest
|
|
4337
|
-
};
|
|
4076
|
+
export { BaseError3 as BaseError, ccipRequest, formatEther, formatUnits, offchainLookup, offchainLookupAbiItem, offchainLookupSignature };
|
|
4077
|
+
//# sourceMappingURL=chunk-GVXFZPTM.js.map
|
|
4078
|
+
//# sourceMappingURL=chunk-GVXFZPTM.js.map
|