@lukso/transaction-decoder 1.3.0 → 1.3.1-dev.360c7b1

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.
Files changed (71) hide show
  1. package/dist/browser.cjs +41 -73
  2. package/dist/browser.cjs.map +1 -1
  3. package/dist/browser.d.cts +1 -1
  4. package/dist/browser.d.ts +1 -1
  5. package/dist/browser.js +4 -4
  6. package/dist/cdn/transaction-decoder.global.js +13 -13
  7. package/dist/cdn/transaction-decoder.global.js.map +1 -1
  8. package/dist/{chunk-G7JZHSYX.js → chunk-2ZO6MJJX.js} +11 -12
  9. package/dist/chunk-2ZO6MJJX.js.map +1 -0
  10. package/dist/{chunk-GGBHTWJL.js → chunk-FKBKAWB3.js} +5 -5
  11. package/dist/chunk-FKBKAWB3.js.map +1 -0
  12. package/dist/{chunk-GXZOF3QY.js → chunk-NDBDNXBI.js} +3 -27
  13. package/dist/chunk-NDBDNXBI.js.map +1 -0
  14. package/dist/{chunk-XVHJWV5U.js → chunk-T4H2HHIB.js} +25 -32
  15. package/dist/chunk-T4H2HHIB.js.map +1 -0
  16. package/dist/data.cjs +31 -62
  17. package/dist/data.cjs.map +1 -1
  18. package/dist/data.d.cts +2 -2
  19. package/dist/data.d.ts +2 -2
  20. package/dist/data.js +2 -2
  21. package/dist/index.cjs +41 -73
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +2 -2
  24. package/dist/index.d.ts +2 -2
  25. package/dist/index.js +4 -4
  26. package/dist/server.cjs +31 -43
  27. package/dist/server.cjs.map +1 -1
  28. package/dist/server.d.cts +1 -2
  29. package/dist/server.d.ts +1 -2
  30. package/dist/server.js +7 -12
  31. package/dist/server.js.map +1 -1
  32. package/dist/{utils-CBAkjQh3.d.cts → utils-BEpSreRR.d.cts} +1 -1
  33. package/dist/{utils-xT9-km0r.d.ts → utils-De_c6fUK.d.ts} +1 -1
  34. package/package.json +3 -3
  35. package/src/core/dataModel.ts +1 -31
  36. package/src/core/integrateDecoder.ts +1 -2
  37. package/src/decoder/browserCache.ts +1 -6
  38. package/src/decoder/errors.ts +2 -2
  39. package/src/decoder/events.ts +3 -3
  40. package/src/decoder/functionSignature.ts +9 -9
  41. package/src/decoder/getDataFromExternalSources.ts +2 -2
  42. package/src/decoder/interfaces.ts +1 -1
  43. package/src/decoder/kvCache.ts +1 -6
  44. package/src/decoder/lruCache.ts +1 -6
  45. package/src/decoder/lsp7TransferBatch.test.ts +0 -3
  46. package/src/decoder/plugins/enhanceBurntPix.ts +1 -2
  47. package/src/decoder/plugins/enhanceGraffiti.ts +3 -17
  48. package/src/decoder/plugins/enhanceLSP26FollowerSystem.ts +4 -8
  49. package/src/decoder/plugins/enhanceLSP6KeyManager.ts +0 -1
  50. package/src/decoder/plugins/enhanceLSP7DigitalAsset.ts +5 -7
  51. package/src/decoder/plugins/enhanceLSP9Vault.ts +7 -8
  52. package/src/decoder/plugins/enhanceRetrieveAbi.ts +5 -6
  53. package/src/decoder/plugins/index.ts +3 -1
  54. package/src/decoder/plugins/schemaDefault.ts +3 -4
  55. package/src/decoder/plugins/standardPlugin.ts +1 -1
  56. package/src/decoder/singleGQL.ts +2 -2
  57. package/src/decoder/transaction.ts +1 -2
  58. package/src/decoder/utils.ts +2 -2
  59. package/src/example/usage.ts +3 -4
  60. package/src/server/addressResolver.ts +1 -1
  61. package/src/server/decodeTransactionSync.ts +0 -1
  62. package/src/server/decodeTransactionsBatch.ts +1 -1
  63. package/src/server/finishDecoding.ts +4 -8
  64. package/src/server/lsp23Resolver.ts +2 -3
  65. package/src/server/types.ts +1 -1
  66. package/src/shared/addressResolver.ts +4 -4
  67. package/src/utils/json-bigint.ts +4 -4
  68. package/dist/chunk-G7JZHSYX.js.map +0 -1
  69. package/dist/chunk-GGBHTWJL.js.map +0 -1
  70. package/dist/chunk-GXZOF3QY.js.map +0 -1
  71. package/dist/chunk-XVHJWV5U.js.map +0 -1
package/dist/data.d.cts CHANGED
@@ -3,7 +3,7 @@ import { Abi, Chain } from 'viem';
3
3
  import * as _preact_signals_core from '@preact/signals-core';
4
4
  import { D as DataModelOptions, I as IDataModel, a as DecodeEventResult, A as ArrayArgs, T as TransactionState, b as DecoderResult, E as EnhancedInfo, c as DataKey } from './index-BzXh7poJ.cjs';
5
5
  export { d as AddressState, C as CustomDecodeFunctionDataReturn, e as Info, N as NamedArgs, R as ResultShared, f as ResultType } from './index-BzXh7poJ.cjs';
6
- export { e as createNamedArgs, f as customDecodeFunctionData, d as dataModel, b as decodeKeyValue, c as decodeKeyValueRaw, a as decodeTransaction, g as extractAddress, h as getPublicClient, s as standardSchemaPlugin } from './utils-CBAkjQh3.cjs';
6
+ export { e as createNamedArgs, f as customDecodeFunctionData, d as dataModel, b as decodeKeyValue, c as decodeKeyValueRaw, a as decodeTransaction, g as extractAddress, h as getPublicClient, s as standardSchemaPlugin } from './utils-BEpSreRR.cjs';
7
7
  import { ERC725JSONSchema } from '@erc725/erc725.js';
8
8
 
9
9
  /**
@@ -24,7 +24,7 @@ declare const defaultSchema: ERC725JSONSchema[];
24
24
  * @param log Transaction to decode (should have data/input)
25
25
  * @returns Promise<ResultType>
26
26
  */
27
- declare function decodeEvent<abi extends Abi | readonly unknown[] = Abi>(chain: Chain, abi: abi, log: DecodeEventResult): ({
27
+ declare function decodeEvent<abi extends Abi | readonly unknown[] = Abi>(_chain: Chain, abi: abi, log: DecodeEventResult): ({
28
28
  eventName: string;
29
29
  args: ArrayArgs;
30
30
  } & DecodeEventResult) | undefined;
package/dist/data.d.ts CHANGED
@@ -3,7 +3,7 @@ import { Abi, Chain } from 'viem';
3
3
  import * as _preact_signals_core from '@preact/signals-core';
4
4
  import { D as DataModelOptions, I as IDataModel, a as DecodeEventResult, A as ArrayArgs, T as TransactionState, b as DecoderResult, E as EnhancedInfo, c as DataKey } from './index-BzXh7poJ.js';
5
5
  export { d as AddressState, C as CustomDecodeFunctionDataReturn, e as Info, N as NamedArgs, R as ResultShared, f as ResultType } from './index-BzXh7poJ.js';
6
- export { e as createNamedArgs, f as customDecodeFunctionData, d as dataModel, b as decodeKeyValue, c as decodeKeyValueRaw, a as decodeTransaction, g as extractAddress, h as getPublicClient, s as standardSchemaPlugin } from './utils-xT9-km0r.js';
6
+ export { e as createNamedArgs, f as customDecodeFunctionData, d as dataModel, b as decodeKeyValue, c as decodeKeyValueRaw, a as decodeTransaction, g as extractAddress, h as getPublicClient, s as standardSchemaPlugin } from './utils-De_c6fUK.js';
7
7
  import { ERC725JSONSchema } from '@erc725/erc725.js';
8
8
 
9
9
  /**
@@ -24,7 +24,7 @@ declare const defaultSchema: ERC725JSONSchema[];
24
24
  * @param log Transaction to decode (should have data/input)
25
25
  * @returns Promise<ResultType>
26
26
  */
27
- declare function decodeEvent<abi extends Abi | readonly unknown[] = Abi>(chain: Chain, abi: abi, log: DecodeEventResult): ({
27
+ declare function decodeEvent<abi extends Abi | readonly unknown[] = Abi>(_chain: Chain, abi: abi, log: DecodeEventResult): ({
28
28
  eventName: string;
29
29
  args: ArrayArgs;
30
30
  } & DecodeEventResult) | undefined;
package/dist/data.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  createDataModel,
3
3
  dataModel,
4
4
  decodeTransaction
5
- } from "./chunk-GXZOF3QY.js";
5
+ } from "./chunk-NDBDNXBI.js";
6
6
  import {
7
7
  IPFS_GATEWAY,
8
8
  createNamedArgs,
@@ -14,7 +14,7 @@ import {
14
14
  extractAddress,
15
15
  getPublicClient,
16
16
  standardSchemaPlugin
17
- } from "./chunk-XVHJWV5U.js";
17
+ } from "./chunk-T4H2HHIB.js";
18
18
 
19
19
  // src/data.ts
20
20
  var addTransactions = dataModel.addTransactions.bind(dataModel);
package/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
3
3
 
4
4
  // src/core/dataModel.ts
5
5
  import { batch, effect, signal } from "@preact/signals-core";
6
- import { hexToBigInt, isHex as isHex2, size as size2, slice as slice2 } from "viem";
6
+ import { isHex as isHex2, size as size2 } from "viem";
7
7
 
8
8
  // src/core/addressCollector.ts
9
9
  import { isHex, size } from "viem";
@@ -236,30 +236,6 @@ var DataModel = class {
236
236
  constructor(options = {}) {
237
237
  this.options = options;
238
238
  }
239
- /**
240
- * Extract a 20-byte address from a potentially 32-byte hex value
241
- * If the input is 32 bytes, validates it's zero-padded and takes the rightmost 20 bytes
242
- * If the input is 20 bytes, returns it as-is
243
- */
244
- extractAddress(hex) {
245
- if (!isHex2(hex)) {
246
- throw new Error(`Invalid hex value: ${hex}`);
247
- }
248
- const bytes = size2(hex);
249
- if (bytes === 32) {
250
- const first12Bytes = slice2(hex, 0, 12);
251
- if (hexToBigInt(first12Bytes) !== 0n) {
252
- throw new Error(
253
- `Invalid 32-byte address: first 12 bytes must be zero for a padded address, got ${first12Bytes}`
254
- );
255
- }
256
- return slice2(hex, 12, 32);
257
- }
258
- if (bytes === 20) {
259
- return hex;
260
- }
261
- throw new Error(`Invalid address length: ${bytes} bytes`);
262
- }
263
239
  /**
264
240
  * Get or create a signal for a specific key
265
241
  */
@@ -1191,7 +1167,7 @@ async function fetchMultipleAddresses(addresses, graphqlEndpoint, cache) {
1191
1167
  }
1192
1168
  if (data.Token) {
1193
1169
  for (const token of data.Token) {
1194
- const { id, baseAsset, tokenId, ...rest } = token;
1170
+ const { id: _id, baseAsset, tokenId, ...rest } = token;
1195
1171
  if (baseAsset?.id && tokenId) {
1196
1172
  const enhancedInfo = {
1197
1173
  address: baseAsset.id,
@@ -1355,7 +1331,7 @@ async function getImage(images, options) {
1355
1331
  return options.fallback ? { src: options.fallback, width: 128, height: 128 } : void 0;
1356
1332
  }
1357
1333
  try {
1358
- let isImage = void 0;
1334
+ let isImage;
1359
1335
  if (typeof caches !== "undefined" && !ignoreHead) {
1360
1336
  const cache = await caches.open("image-types");
1361
1337
  const cached = await cache.match(url);
@@ -1367,7 +1343,7 @@ async function getImage(images, options) {
1367
1343
  }
1368
1344
  }
1369
1345
  if (!isImage && !ignoreHead) {
1370
- const now = Date.now();
1346
+ const _now = Date.now();
1371
1347
  isImage = await fetch(url, { method: "HEAD" }).then((response) => {
1372
1348
  if (response.ok) {
1373
1349
  const mime = response.headers.get("content-type") || "";
@@ -1717,7 +1693,7 @@ function createNamedPlugin(name, plugin) {
1717
1693
  __name(createNamedPlugin, "createNamedPlugin");
1718
1694
 
1719
1695
  // src/decoder/transaction.ts
1720
- import { isAddress, isAddressEqual, slice as slice3, zeroAddress } from "viem";
1696
+ import { isAddress, isAddressEqual, slice as slice2, zeroAddress } from "viem";
1721
1697
  async function decodeTransaction(fullTransaction, options) {
1722
1698
  const { preferError } = options;
1723
1699
  const {
@@ -1743,7 +1719,7 @@ async function decodeTransaction(fullTransaction, options) {
1743
1719
  isDecoded: true,
1744
1720
  functionName: void 0,
1745
1721
  __decoder: void 0,
1746
- sig: slice3(data || "0x", 0, 4),
1722
+ sig: slice2(data || "0x", 0, 4),
1747
1723
  resultType: "error",
1748
1724
  errorType: "INVALID" /* INVALID */,
1749
1725
  ...createNamedArgs([], []),
@@ -1757,13 +1733,13 @@ async function decodeTransaction(fullTransaction, options) {
1757
1733
  functionName: void 0,
1758
1734
  __decoder: void 0,
1759
1735
  standard: void 0,
1760
- sig: slice3(data || "0x", 0, 4),
1736
+ sig: slice2(data || "0x", 0, 4),
1761
1737
  ...createNamedArgs([], []),
1762
1738
  resultType: "execute",
1763
1739
  phase: "enhanced"
1764
1740
  };
1765
1741
  }
1766
- let lastError;
1742
+ let _lastError;
1767
1743
  const activePlugins = options.plugins;
1768
1744
  for (const plugin of activePlugins) {
1769
1745
  if (to && isAddress(to) && isAddressEqual(to, zeroAddress)) {
@@ -1826,7 +1802,6 @@ async function decodeTransaction(fullTransaction, options) {
1826
1802
  }
1827
1803
  } catch (e) {
1828
1804
  console.error(e);
1829
- continue;
1830
1805
  }
1831
1806
  }
1832
1807
  let phase = "functionName" in transaction && transaction.functionName && transaction.standard || transaction.input === "0x" || !transaction.input ? "enhanced" : "immediate";
@@ -1845,7 +1820,7 @@ async function decodeTransaction(fullTransaction, options) {
1845
1820
  __decoder: void 0,
1846
1821
  resultType: "raw",
1847
1822
  phase,
1848
- sig: slice3(
1823
+ sig: slice2(
1849
1824
  fullTransaction.input || "data" in fullTransaction && fullTransaction.data || "0x",
1850
1825
  0,
1851
1826
  4
@@ -2432,7 +2407,7 @@ var getDataFromExternalSources = /* @__PURE__ */ __name((schemas, dataFromChain,
2432
2407
  urlDataWithHash,
2433
2408
  ipfsGateway
2434
2409
  ));
2435
- let length = "unknown";
2410
+ let _length = "unknown";
2436
2411
  if (!url.startsWith("data:") && /[=?/]$/.test(url)) {
2437
2412
  return dataEntry;
2438
2413
  }
@@ -2444,7 +2419,7 @@ var getDataFromExternalSources = /* @__PURE__ */ __name((schemas, dataFromChain,
2444
2419
  }
2445
2420
  return response.arrayBuffer().then((buffer) => new Uint8Array(buffer));
2446
2421
  });
2447
- length = receivedData.length.toString();
2422
+ _length = receivedData.length.toString();
2448
2423
  const captureHashes = {};
2449
2424
  const captureErrors = [];
2450
2425
  if (receivedData.length >= 2) {
@@ -2564,7 +2539,7 @@ function decodeKeyValuePlugin(defaultSchema2, process2) {
2564
2539
  });
2565
2540
  if (schema) {
2566
2541
  try {
2567
- const name = schema.name.replace(/[:\[\]]|<.*?>/g, "");
2542
+ const name = schema.name.replace(/[:[\]]|<.*?>/g, "");
2568
2543
  if (schema.keyType === "Array") {
2569
2544
  if (schema.key === key) {
2570
2545
  const hexString = value.slice(2);
@@ -2572,7 +2547,7 @@ function decodeKeyValuePlugin(defaultSchema2, process2) {
2572
2547
  for (let i = 0; i < hexString.length; i += 2) {
2573
2548
  all[i / 2] = Number.parseInt(hexString.substring(i, i + 2), 16);
2574
2549
  }
2575
- const [{ start, end } = { start: 0, end: 0 }] = all.reduce(
2550
+ const [{ start: _start, end } = { start: 0, end: 0 }] = all.reduce(
2576
2551
  (acc, byte, index_) => {
2577
2552
  let isZero = byte === 0 || index_ === 0;
2578
2553
  const last = acc.at(-1);
@@ -2638,7 +2613,7 @@ function decodeKeyValuePlugin(defaultSchema2, process2) {
2638
2613
  value: data2
2639
2614
  };
2640
2615
  }
2641
- let dynamicKeyParts = void 0;
2616
+ let dynamicKeyParts;
2642
2617
  if (isDynamicKeyName(schema.name)) {
2643
2618
  dynamicKeyParts = decodeMappingKey(key, schema).map(
2644
2619
  ({ value: value2 }) => isHex3(value2) ? value2.toLowerCase() : `${value2}`
@@ -3202,9 +3177,9 @@ function customDecodeEventLog(parameters) {
3202
3177
  };
3203
3178
  }
3204
3179
  __name(customDecodeEventLog, "customDecodeEventLog");
3205
- function decodeEvent(chain, abi3, log) {
3206
- const { data: _data, address, ...rest } = log;
3207
- let lastError;
3180
+ function decodeEvent(_chain, abi3, log) {
3181
+ const { data: _data } = log;
3182
+ let _lastError;
3208
3183
  try {
3209
3184
  const result = customDecodeEventLog({
3210
3185
  abi: abi3,
@@ -3856,7 +3831,7 @@ var enhanceBurntPixPlugin = standardPlugin(
3856
3831
  aggregations: [refineAggregation]
3857
3832
  }
3858
3833
  );
3859
- async function enhanceBurntPix(result, pluginOptions, options) {
3834
+ async function enhanceBurntPix(result, pluginOptions, _options) {
3860
3835
  if ("functionName" in result && result.functionName === "refine") {
3861
3836
  return {
3862
3837
  ...result,
@@ -3871,27 +3846,22 @@ __name(enhanceBurntPix, "enhanceBurntPix");
3871
3846
  var enhanceBurntPix_default = enhanceBurntPixPlugin;
3872
3847
 
3873
3848
  // src/decoder/plugins/enhanceGraffiti.ts
3874
- import {
3875
- bytesToString,
3876
- hexToBytes,
3877
- size as size4,
3878
- slice as slice4
3879
- } from "viem";
3849
+ import { bytesToString, hexToBytes, size as size4, slice as slice3 } from "viem";
3880
3850
  var enhanceGraffitiPlugin = Object.freeze({
3881
3851
  enhance: /* @__PURE__ */ __name(async (result, options) => enhanceGraffiti(
3882
3852
  result,
3883
3853
  { abiName: "graffiti", decoderName: "graffiti" },
3884
3854
  options
3885
3855
  ), "enhance"),
3886
- decodeEvent: /* @__PURE__ */ __name(async (log, options) => void 0, "decodeEvent"),
3856
+ decodeEvent: /* @__PURE__ */ __name(async (_log, _options) => void 0, "decodeEvent"),
3887
3857
  required: true,
3888
3858
  priority: 1e3,
3889
3859
  name: "graffiti"
3890
3860
  });
3891
3861
  async function enhanceGraffiti(result, _pluginOptions, _options) {
3892
- const { functionName, sig, args, input } = result;
3893
- if (input && size4(input || "0x") >= 4 && slice4(input || "0x", 0, 4) === "0x00000000") {
3894
- let graffiti = slice4(input, 4);
3862
+ const { input } = result;
3863
+ if (input && size4(input || "0x") >= 4 && slice3(input || "0x", 0, 4) === "0x00000000") {
3864
+ let graffiti = slice3(input, 4);
3895
3865
  try {
3896
3866
  graffiti = bytesToString(hexToBytes(graffiti));
3897
3867
  } catch {
@@ -4808,7 +4778,6 @@ async function enhanceKeyManager(result, pluginOptions, options) {
4808
4778
  sig,
4809
4779
  args,
4810
4780
  input,
4811
- blockNumber,
4812
4781
  to: _to,
4813
4782
  from: _from,
4814
4783
  value
@@ -5078,7 +5047,7 @@ async function enhanceLSP7Metadata(result, options) {
5078
5047
  }
5079
5048
  __name(enhanceLSP7Metadata, "enhanceLSP7Metadata");
5080
5049
  async function enhanceLSP26FollowerSystem(result, _pluginOptions, _options) {
5081
- const { functionName, sig, args, input, blockNumber, to, from, value } = result;
5050
+ const { functionName } = result;
5082
5051
  switch (functionName) {
5083
5052
  }
5084
5053
  return void 0;
@@ -5238,8 +5207,8 @@ var enhanceLSP9VaultPlugin = standardPlugin(
5238
5207
  }, "decodeEvent")
5239
5208
  }
5240
5209
  );
5241
- async function enhanceLSP9Vault(result, pluginOptions, options) {
5242
- const { functionName, sig, args, input, blockNumber, to, from, value } = result;
5210
+ async function enhanceLSP9Vault(result, _pluginOptions, _options) {
5211
+ const { functionName } = result;
5243
5212
  switch (functionName) {
5244
5213
  }
5245
5214
  return void 0;
@@ -5270,7 +5239,7 @@ var enhanceLSP26FollowerSystemPlugin = standardPlugin(
5270
5239
  }
5271
5240
  );
5272
5241
  async function enhanceLSP26FollowerSystem2(result, _pluginOptions, _options) {
5273
- const { functionName, sig, args, input, blockNumber, to, from, value } = result;
5242
+ const { functionName, args } = result;
5274
5243
  const { args: _args, ...partialResult } = result;
5275
5244
  switch (functionName) {
5276
5245
  case "follow":
@@ -5286,7 +5255,6 @@ async function enhanceLSP26FollowerSystem2(result, _pluginOptions, _options) {
5286
5255
  }
5287
5256
  ]
5288
5257
  };
5289
- break;
5290
5258
  case "followBatch":
5291
5259
  case "unfollowBatch":
5292
5260
  return {
@@ -5298,7 +5266,6 @@ async function enhanceLSP26FollowerSystem2(result, _pluginOptions, _options) {
5298
5266
  address
5299
5267
  }))
5300
5268
  };
5301
- break;
5302
5269
  }
5303
5270
  return void 0;
5304
5271
  }
@@ -6014,7 +5981,7 @@ var LRUDecoderCache = class {
6014
5981
  if (cached && (!cached.expires || now < cached.expires)) {
6015
5982
  return cached.value;
6016
5983
  }
6017
- if (cached && cached.stale && now < cached.stale && !this.promises.has(key)) {
5984
+ if (cached?.stale && now < cached.stale && !this.promises.has(key)) {
6018
5985
  const backgroundPromise = factory(options?.signal).then(async (fresh) => {
6019
5986
  await this.set(key, fresh, options);
6020
5987
  return fresh;
@@ -6096,7 +6063,7 @@ async function fetchAbi(chain, address, options) {
6096
6063
  let isProxy = false;
6097
6064
  let decoderVerifiedContract = false;
6098
6065
  let factoryName;
6099
- const originalKey = key;
6066
+ const _originalKey = key;
6100
6067
  const addressUrl = new URL(`/api/v2/addresses/${key}`, explorer);
6101
6068
  const addressRes = await fetch(addressUrl, { signal: signal3 });
6102
6069
  if (addressRes.ok) {
@@ -6264,7 +6231,7 @@ var getFunctionSignature = /* @__PURE__ */ __name(async (chain, input, to, prefe
6264
6231
  __decoder: methods.__decoder || FUNCTION_DICTIONARY_URL
6265
6232
  };
6266
6233
  }
6267
- } catch (error) {
6234
+ } catch (_error) {
6268
6235
  }
6269
6236
  }
6270
6237
  }
@@ -6303,7 +6270,7 @@ var enhanceRetrieveAbiPlugin = standardPlugin(
6303
6270
  }
6304
6271
  );
6305
6272
  async function enhanceRetrieveAbi(result, _pluginOptions, options) {
6306
- const { functionName, sig, args, input, blockNumber, to, from, value } = result;
6273
+ const { input, to, from, value } = result;
6307
6274
  try {
6308
6275
  const decoded = await getFunctionSignature(
6309
6276
  options.chain,
@@ -6330,7 +6297,9 @@ __name(enhanceRetrieveAbi, "enhanceRetrieveAbi");
6330
6297
  var enhanceRetrieveAbi_default = enhanceRetrieveAbiPlugin;
6331
6298
 
6332
6299
  // src/decoder/plugins/index.ts
6333
- [enhanceLSP0ERC725Account_default, enhanceLSP6KeyManager_default, enhanceLSP7DigitalAsset_default, enhanceLSP8IdentifiableDigitalAsset_default, enhanceLSP9Vault_default, enhanceLSP26FollowerSystem_default, enhanceBurntPix_default].forEach((p) => p);
6300
+ [enhanceLSP0ERC725Account_default, enhanceLSP6KeyManager_default, enhanceLSP7DigitalAsset_default, enhanceLSP8IdentifiableDigitalAsset_default, enhanceLSP9Vault_default, enhanceLSP26FollowerSystem_default, enhanceBurntPix_default].forEach((p) => {
6301
+ p;
6302
+ });
6334
6303
  var defaultPlugins = Object.freeze([
6335
6304
  enhanceGraffiti_default,
6336
6305
  enhanceLSP6KeyManager_default,
@@ -6441,7 +6410,7 @@ var DecoderIntegration = class {
6441
6410
  */
6442
6411
  async addAndDecodeTransactions(transactions) {
6443
6412
  const signals = this.dataModel.addTransactions(transactions);
6444
- const decodingPromises = transactions.map(async (tx, index) => {
6413
+ const decodingPromises = transactions.map(async (tx, _index) => {
6445
6414
  const transactionOptions = {
6446
6415
  ...this.decoderOptions,
6447
6416
  wrappers: []
@@ -6680,8 +6649,7 @@ function buildLSP23DeploymentQuery(config) {
6680
6649
  controllerAddresses,
6681
6650
  profileAddresses,
6682
6651
  fromBlock = 0,
6683
- toBlock,
6684
- chainId
6652
+ toBlock
6685
6653
  } = config;
6686
6654
  if (profileAddresses && profileAddresses.length > 0) {
6687
6655
  return {
@@ -6764,7 +6732,7 @@ function parseLSP23DeploymentsFromHypersync(response, chainId, controllerAddress
6764
6732
  }
6765
6733
  }
6766
6734
  const controllerSet = controllerAddresses ? new Set(controllerAddresses.map((addr) => addr.toLowerCase())) : null;
6767
- for (const [txHash, profileAddress] of create2Traces) {
6735
+ for (const [txHash, _profileAddress] of create2Traces) {
6768
6736
  const tx = txMap.get(txHash);
6769
6737
  if (!tx) continue;
6770
6738
  if (controllerSet && !controllerSet.has(tx.from.toLowerCase())) {
@@ -6802,12 +6770,12 @@ var JSONbigString = {
6802
6770
  /**
6803
6771
  * Stringify an object, converting BigInt values to strings with 'n' suffix
6804
6772
  */
6805
- stringify: /* @__PURE__ */ __name((obj, replacer, space) => {
6773
+ stringify: /* @__PURE__ */ __name((obj, _replacer, space) => {
6806
6774
  return JSON.stringify(
6807
6775
  obj,
6808
- (key, value) => {
6776
+ (_key, value) => {
6809
6777
  if (typeof value === "bigint") {
6810
- return value.toString() + "n";
6778
+ return `${value.toString()}n`;
6811
6779
  }
6812
6780
  return value;
6813
6781
  },
@@ -6818,7 +6786,7 @@ var JSONbigString = {
6818
6786
  * Parse a JSON string, converting strings ending with 'n' back to BigInt
6819
6787
  */
6820
6788
  parse: /* @__PURE__ */ __name((text) => {
6821
- return JSON.parse(text, (key, value) => {
6789
+ return JSON.parse(text, (_key, value) => {
6822
6790
  if (typeof value === "string" && /^\d+n$/.test(value)) {
6823
6791
  return BigInt(value.slice(0, -1));
6824
6792
  }