@1delta/margin-fetcher 5.0.118 → 5.0.119

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.
@@ -0,0 +1,5 @@
1
+ export { ccipRequest, offchainLookup, offchainLookupAbiItem, offchainLookupSignature } from './chunk-GZR3D6YQ.js';
2
+ import './chunk-BYTNVMX7.js';
3
+ import './chunk-PR4QN5HX.js';
4
+ //# sourceMappingURL=ccip-SBJNLXE4.js.map
5
+ //# sourceMappingURL=ccip-SBJNLXE4.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-UXZECBO3.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-SBJNLXE4.js"}
@@ -181,6 +181,20 @@ var functionModifiers = /* @__PURE__ */ new Set([
181
181
  ]);
182
182
 
183
183
  // ../../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
184
+ var InvalidAbiItemError = class extends BaseError {
185
+ constructor({ signature }) {
186
+ super("Failed to parse ABI item.", {
187
+ details: `parseAbiItem(${JSON.stringify(signature, null, 2)})`,
188
+ docsPath: "/api/human#parseabiitem-1"
189
+ });
190
+ Object.defineProperty(this, "name", {
191
+ enumerable: true,
192
+ configurable: true,
193
+ writable: true,
194
+ value: "InvalidAbiItemError"
195
+ });
196
+ }
197
+ };
184
198
  var UnknownTypeError = class extends BaseError {
185
199
  constructor({ type }) {
186
200
  super("Unknown type.", {
@@ -732,6 +746,27 @@ function parseAbi(signatures) {
732
746
  return abi;
733
747
  }
734
748
 
749
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/parseAbiItem.js
750
+ function parseAbiItem(signature) {
751
+ let abiItem;
752
+ if (typeof signature === "string")
753
+ abiItem = parseSignature(signature);
754
+ else {
755
+ const structs = parseStructs(signature);
756
+ const length = signature.length;
757
+ for (let i = 0; i < length; i++) {
758
+ const signature_ = signature[i];
759
+ if (isStructSignature(signature_))
760
+ continue;
761
+ abiItem = parseSignature(signature_, structs);
762
+ break;
763
+ }
764
+ }
765
+ if (!abiItem)
766
+ throw new InvalidAbiItemError({ signature });
767
+ return abiItem;
768
+ }
769
+
735
770
  // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js
736
771
  function parseAbiParameters(params) {
737
772
  const abiParameters = [];
@@ -4012,7 +4047,7 @@ async function call(client, args) {
4012
4047
  return { data: response };
4013
4048
  } catch (err) {
4014
4049
  const data2 = getRevertErrorData(err);
4015
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-UXZECBO3.js');
4050
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-SBJNLXE4.js');
4016
4051
  if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
4017
4052
  return { data: await offchainLookup2(client, { data: data2, to }) };
4018
4053
  if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
@@ -4393,6 +4428,6 @@ async function ccipRequest({ data, sender, urls }) {
4393
4428
  throw error;
4394
4429
  }
4395
4430
 
4396
- export { AbiEncodingLengthMismatchError, BaseError3 as BaseError, BytesSizeMismatchError, InvalidAddressError, UnsupportedPackedAbiType, arrayRegex, boolToHex, bytesRegex2 as bytesRegex, bytesToHex, ccipRequest, concat, concatHex, createCursor, decodeAbiParameters, decodeFunctionResult, encodeAbiParameters, encodeFunctionData, erc20Abi, formatEther, formatUnits, getAddress, hexToBytes, hexToString, integerRegex2 as integerRegex, isAddress, keccak256, numberToHex, offchainLookup, offchainLookupAbiItem, offchainLookupSignature, pad2 as pad, parseAbi, parseAbiParameters, slice, stringToHex, toBytes2 as toBytes };
4397
- //# sourceMappingURL=chunk-JUYF2XLF.js.map
4398
- //# sourceMappingURL=chunk-JUYF2XLF.js.map
4431
+ export { AbiEncodingLengthMismatchError, BaseError3 as BaseError, BytesSizeMismatchError, InvalidAddressError, UnsupportedPackedAbiType, arrayRegex, boolToHex, bytesRegex2 as bytesRegex, bytesToHex, ccipRequest, concat, concatHex, createCursor, decodeAbiParameters, decodeFunctionResult, encodeAbiParameters, encodeFunctionData, erc20Abi, formatEther, formatUnits, getAddress, hexToBytes, hexToString, integerRegex2 as integerRegex, isAddress, keccak256, numberToHex, offchainLookup, offchainLookupAbiItem, offchainLookupSignature, pad2 as pad, parseAbi, parseAbiItem, parseAbiParameters, slice, stringToHex, toBytes2 as toBytes };
4432
+ //# sourceMappingURL=chunk-GZR3D6YQ.js.map
4433
+ //# sourceMappingURL=chunk-GZR3D6YQ.js.map