@1delta/margin-fetcher 5.0.58 → 5.0.60
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/ccip-UXZECBO3.js +5 -0
- package/dist/{ccip-VK5PCUV6.js.map → ccip-UXZECBO3.js.map} +1 -1
- package/dist/{chunk-YILYOOYB.js → chunk-JUYF2XLF.js} +52 -4
- package/dist/chunk-JUYF2XLF.js.map +1 -0
- package/dist/index.d.ts +333 -19
- package/dist/index.js +2359 -912
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/ccip-VK5PCUV6.js +0 -5
- package/dist/chunk-YILYOOYB.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-UXZECBO3.js"}
|
|
@@ -167,6 +167,12 @@ var receiveSignatureRegex = /^receive\(\) external payable$/;
|
|
|
167
167
|
function isReceiveSignature(signature) {
|
|
168
168
|
return receiveSignatureRegex.test(signature);
|
|
169
169
|
}
|
|
170
|
+
var modifiers = /* @__PURE__ */ new Set([
|
|
171
|
+
"memory",
|
|
172
|
+
"indexed",
|
|
173
|
+
"storage",
|
|
174
|
+
"calldata"
|
|
175
|
+
]);
|
|
170
176
|
var eventModifiers = /* @__PURE__ */ new Set(["indexed"]);
|
|
171
177
|
var functionModifiers = /* @__PURE__ */ new Set([
|
|
172
178
|
"calldata",
|
|
@@ -205,6 +211,20 @@ var UnknownSolidityTypeError = class extends BaseError {
|
|
|
205
211
|
};
|
|
206
212
|
|
|
207
213
|
// ../../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
|
|
214
|
+
var InvalidAbiParametersError = class extends BaseError {
|
|
215
|
+
constructor({ params }) {
|
|
216
|
+
super("Failed to parse ABI parameters.", {
|
|
217
|
+
details: `parseAbiParameters(${JSON.stringify(params, null, 2)})`,
|
|
218
|
+
docsPath: "/api/human#parseabiparameters-1"
|
|
219
|
+
});
|
|
220
|
+
Object.defineProperty(this, "name", {
|
|
221
|
+
enumerable: true,
|
|
222
|
+
configurable: true,
|
|
223
|
+
writable: true,
|
|
224
|
+
value: "InvalidAbiParametersError"
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
};
|
|
208
228
|
var InvalidParameterError = class extends BaseError {
|
|
209
229
|
constructor({ param }) {
|
|
210
230
|
super("Invalid ABI parameter.", {
|
|
@@ -712,6 +732,34 @@ function parseAbi(signatures) {
|
|
|
712
732
|
return abi;
|
|
713
733
|
}
|
|
714
734
|
|
|
735
|
+
// ../../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
|
+
function parseAbiParameters(params) {
|
|
737
|
+
const abiParameters = [];
|
|
738
|
+
if (typeof params === "string") {
|
|
739
|
+
const parameters = splitParameters(params);
|
|
740
|
+
const length = parameters.length;
|
|
741
|
+
for (let i = 0; i < length; i++) {
|
|
742
|
+
abiParameters.push(parseAbiParameter(parameters[i], { modifiers }));
|
|
743
|
+
}
|
|
744
|
+
} else {
|
|
745
|
+
const structs = parseStructs(params);
|
|
746
|
+
const length = params.length;
|
|
747
|
+
for (let i = 0; i < length; i++) {
|
|
748
|
+
const signature = params[i];
|
|
749
|
+
if (isStructSignature(signature))
|
|
750
|
+
continue;
|
|
751
|
+
const parameters = splitParameters(signature);
|
|
752
|
+
const length2 = parameters.length;
|
|
753
|
+
for (let k = 0; k < length2; k++) {
|
|
754
|
+
abiParameters.push(parseAbiParameter(parameters[k], { modifiers, structs }));
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
if (abiParameters.length === 0)
|
|
759
|
+
throw new InvalidAbiParametersError({ params });
|
|
760
|
+
return abiParameters;
|
|
761
|
+
}
|
|
762
|
+
|
|
715
763
|
// ../../node_modules/.pnpm/ox@0.12.1_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/version.js
|
|
716
764
|
var version2 = "0.1.1";
|
|
717
765
|
|
|
@@ -3964,7 +4012,7 @@ async function call(client, args) {
|
|
|
3964
4012
|
return { data: response };
|
|
3965
4013
|
} catch (err) {
|
|
3966
4014
|
const data2 = getRevertErrorData(err);
|
|
3967
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-
|
|
4015
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-UXZECBO3.js');
|
|
3968
4016
|
if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
|
|
3969
4017
|
return { data: await offchainLookup2(client, { data: data2, to }) };
|
|
3970
4018
|
if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
|
|
@@ -4345,6 +4393,6 @@ async function ccipRequest({ data, sender, urls }) {
|
|
|
4345
4393
|
throw error;
|
|
4346
4394
|
}
|
|
4347
4395
|
|
|
4348
|
-
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, slice, stringToHex, toBytes2 as toBytes };
|
|
4349
|
-
//# sourceMappingURL=chunk-
|
|
4350
|
-
//# sourceMappingURL=chunk-
|
|
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
|