@lukso/transaction-decoder 1.3.6-dev.4a582bd → 1.3.6-dev.6843bdd

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 (40) hide show
  1. package/dist/browser.cjs +203 -13
  2. package/dist/browser.cjs.map +1 -1
  3. package/dist/browser.d.cts +2 -2
  4. package/dist/browser.d.ts +2 -2
  5. package/dist/browser.js +4 -4
  6. package/dist/cdn/transaction-decoder.global.js +70 -70
  7. package/dist/cdn/transaction-decoder.global.js.map +1 -1
  8. package/dist/{chunk-FKBKAWB3.js → chunk-HFBAO6YR.js} +2 -2
  9. package/dist/{chunk-T4H2HHIB.js → chunk-MGPLCACC.js} +198 -8
  10. package/dist/chunk-MGPLCACC.js.map +1 -0
  11. package/dist/{chunk-SSY7TTU2.js → chunk-MSTGEOTX.js} +4 -4
  12. package/dist/{chunk-NDBDNXBI.js → chunk-RYQVLCCC.js} +2 -2
  13. package/dist/data.cjs +197 -7
  14. package/dist/data.cjs.map +1 -1
  15. package/dist/data.d.cts +3 -3
  16. package/dist/data.d.ts +3 -3
  17. package/dist/data.js +2 -2
  18. package/dist/{index-BzXh7poJ.d.ts → index-BWD9DaG6.d.cts} +6 -1
  19. package/dist/{index-BzXh7poJ.d.cts → index-BWD9DaG6.d.ts} +6 -1
  20. package/dist/index.cjs +203 -13
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +3 -3
  23. package/dist/index.d.ts +3 -3
  24. package/dist/index.js +4 -4
  25. package/dist/server.cjs +197 -7
  26. package/dist/server.cjs.map +1 -1
  27. package/dist/server.d.cts +1 -1
  28. package/dist/server.d.ts +1 -1
  29. package/dist/server.js +2 -2
  30. package/dist/{utils-De_c6fUK.d.ts → utils-4Qdavg8r.d.ts} +2 -2
  31. package/dist/{utils-BEpSreRR.d.cts → utils-OR-XzeYG.d.cts} +2 -2
  32. package/package.json +8 -8
  33. package/src/decoder/lsp7Mint.test.ts +18 -11
  34. package/src/decoder/plugins/enhanceLSP0ERC725Account.ts +39 -2
  35. package/src/decoder/plugins/universalReceiverTypeIds.ts +277 -0
  36. package/src/decoder/types.ts +2 -0
  37. package/dist/chunk-T4H2HHIB.js.map +0 -1
  38. /package/dist/{chunk-FKBKAWB3.js.map → chunk-HFBAO6YR.js.map} +0 -0
  39. /package/dist/{chunk-SSY7TTU2.js.map → chunk-MSTGEOTX.js.map} +0 -0
  40. /package/dist/{chunk-NDBDNXBI.js.map → chunk-RYQVLCCC.js.map} +0 -0
package/dist/data.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as viem from 'viem';
2
2
  import { Abi, Chain } from 'viem';
3
3
  import * as _preact_signals_core from '@preact/signals-core';
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
- 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-BEpSreRR.cjs';
4
+ import { D as DataModelOptions, I as IDataModel, a as DecodeEventResult, A as ArrayArgs, T as TransactionState, b as DataKey, E as EnhancedInfo, c as DecoderResult } from './index-BWD9DaG6.cjs';
5
+ export { d as AddressState, C as CustomDecodeFunctionDataReturn, e as Info, N as NamedArgs, R as ResultShared, f as ResultType } from './index-BWD9DaG6.cjs';
6
+ export { c as createNamedArgs, a as customDecodeFunctionData, d as dataModel, b as decodeKeyValue, e as decodeKeyValueRaw, f as decodeTransaction, g as extractAddress, h as getPublicClient, s as standardSchemaPlugin } from './utils-OR-XzeYG.cjs';
7
7
  import { ERC725JSONSchema } from '@erc725/erc725.js';
8
8
 
9
9
  /**
package/dist/data.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as viem from 'viem';
2
2
  import { Abi, Chain } from 'viem';
3
3
  import * as _preact_signals_core from '@preact/signals-core';
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
- 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-De_c6fUK.js';
4
+ import { D as DataModelOptions, I as IDataModel, a as DecodeEventResult, A as ArrayArgs, T as TransactionState, b as DataKey, E as EnhancedInfo, c as DecoderResult } from './index-BWD9DaG6.js';
5
+ export { d as AddressState, C as CustomDecodeFunctionDataReturn, e as Info, N as NamedArgs, R as ResultShared, f as ResultType } from './index-BWD9DaG6.js';
6
+ export { c as createNamedArgs, a as customDecodeFunctionData, d as dataModel, b as decodeKeyValue, e as decodeKeyValueRaw, f as decodeTransaction, g as extractAddress, h as getPublicClient, s as standardSchemaPlugin } from './utils-4Qdavg8r.js';
7
7
  import { ERC725JSONSchema } from '@erc725/erc725.js';
8
8
 
9
9
  /**
package/dist/data.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  createDataModel,
3
3
  dataModel,
4
4
  decodeTransaction
5
- } from "./chunk-NDBDNXBI.js";
5
+ } from "./chunk-RYQVLCCC.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-T4H2HHIB.js";
17
+ } from "./chunk-MGPLCACC.js";
18
18
 
19
19
  // src/data.ts
20
20
  var addTransactions = dataModel.addTransactions.bind(dataModel);
@@ -420,6 +420,11 @@ type DecodeEventCallback = (log: DecodeEventResult, options: DecoderOptions) =>
420
420
  type DecodeEventResult = ({
421
421
  eventName: string;
422
422
  args: ArrayArgs;
423
+ wrappers?: Array<{
424
+ eventName: string;
425
+ args: ArrayArgs;
426
+ } & Log>;
427
+ standard?: string;
423
428
  } & Log) | undefined;
424
429
 
425
430
  /**
@@ -521,4 +526,4 @@ declare global {
521
526
  }
522
527
  }
523
528
 
524
- export type { ArrayArgs as A, CustomDecodeFunctionDataReturn as C, DataModelOptions as D, EnhancedInfo as E, IDataModel as I, NamedArgs as N, PluginOptions as P, ResultShared as R, SchemaPlugin as S, TransactionState as T, DecodeEventResult as a, DecoderResult as b, DataKey as c, AddressState as d, Info as e, ResultType as f, IDataModelConsumer as g, DecoderOptions as h, EnhancerCallback as i, DecodeEventCallback as j, EnhancerAggregationKeyCallback as k, EnhancerSummarizeCallback as l, Aggregation as m, DecoderPlugin as n, ResultSetData as o, ResultAggregate as p, ResultCreate as q, ResultError as r, ResultExecute as s, ResultExecuteBatch as t, ResultFollowProfile as u, ResultGrafitti as v, ResultRaw as w, ResultSetDataBatch as x, ResultWrapper as y };
529
+ export type { ArrayArgs as A, CustomDecodeFunctionDataReturn as C, DataModelOptions as D, EnhancedInfo as E, IDataModel as I, NamedArgs as N, PluginOptions as P, ResultShared as R, SchemaPlugin as S, TransactionState as T, DecodeEventResult as a, DataKey as b, DecoderResult as c, AddressState as d, Info as e, ResultType as f, IDataModelConsumer as g, DecoderOptions as h, EnhancerCallback as i, DecodeEventCallback as j, EnhancerAggregationKeyCallback as k, EnhancerSummarizeCallback as l, Aggregation as m, DecoderPlugin as n, ResultSetData as o, ResultAggregate as p, ResultCreate as q, ResultError as r, ResultExecute as s, ResultExecuteBatch as t, ResultFollowProfile as u, ResultGrafitti as v, ResultRaw as w, ResultSetDataBatch as x, ResultWrapper as y };
@@ -420,6 +420,11 @@ type DecodeEventCallback = (log: DecodeEventResult, options: DecoderOptions) =>
420
420
  type DecodeEventResult = ({
421
421
  eventName: string;
422
422
  args: ArrayArgs;
423
+ wrappers?: Array<{
424
+ eventName: string;
425
+ args: ArrayArgs;
426
+ } & Log>;
427
+ standard?: string;
423
428
  } & Log) | undefined;
424
429
 
425
430
  /**
@@ -521,4 +526,4 @@ declare global {
521
526
  }
522
527
  }
523
528
 
524
- export type { ArrayArgs as A, CustomDecodeFunctionDataReturn as C, DataModelOptions as D, EnhancedInfo as E, IDataModel as I, NamedArgs as N, PluginOptions as P, ResultShared as R, SchemaPlugin as S, TransactionState as T, DecodeEventResult as a, DecoderResult as b, DataKey as c, AddressState as d, Info as e, ResultType as f, IDataModelConsumer as g, DecoderOptions as h, EnhancerCallback as i, DecodeEventCallback as j, EnhancerAggregationKeyCallback as k, EnhancerSummarizeCallback as l, Aggregation as m, DecoderPlugin as n, ResultSetData as o, ResultAggregate as p, ResultCreate as q, ResultError as r, ResultExecute as s, ResultExecuteBatch as t, ResultFollowProfile as u, ResultGrafitti as v, ResultRaw as w, ResultSetDataBatch as x, ResultWrapper as y };
529
+ export type { ArrayArgs as A, CustomDecodeFunctionDataReturn as C, DataModelOptions as D, EnhancedInfo as E, IDataModel as I, NamedArgs as N, PluginOptions as P, ResultShared as R, SchemaPlugin as S, TransactionState as T, DecodeEventResult as a, DataKey as b, DecoderResult as c, AddressState as d, Info as e, ResultType as f, IDataModelConsumer as g, DecoderOptions as h, EnhancerCallback as i, DecodeEventCallback as j, EnhancerAggregationKeyCallback as k, EnhancerSummarizeCallback as l, Aggregation as m, DecoderPlugin as n, ResultSetData as o, ResultAggregate as p, ResultCreate as q, ResultError as r, ResultExecute as s, ResultExecuteBatch as t, ResultFollowProfile as u, ResultGrafitti as v, ResultRaw as w, ResultSetDataBatch as x, ResultWrapper as y };
package/dist/index.cjs CHANGED
@@ -3972,6 +3972,170 @@ async function enhanceSetData(result, pluginOptions, options) {
3972
3972
  }
3973
3973
  __name(enhanceSetData, "enhanceSetData");
3974
3974
 
3975
+ // src/decoder/plugins/universalReceiverTypeIds.ts
3976
+ import {
3977
+ decodeAbiParameters as decodeAbiParameters3,
3978
+ encodeAbiParameters,
3979
+ getAddress,
3980
+ keccak256,
3981
+ slice as slice4,
3982
+ toHex
3983
+ } from "viem";
3984
+ function encodeEventLog(eventName, params, values) {
3985
+ const sig = `${eventName}(${params.map((p) => p.type).join(",")})`;
3986
+ const topic0 = keccak256(toHex(sig));
3987
+ const data = encodeAbiParameters(params, values);
3988
+ return { topics: [topic0], data };
3989
+ }
3990
+ __name(encodeEventLog, "encodeEventLog");
3991
+ var TYPEID_LSP26_FOLLOW = "0x71e02f9f05bcd5816ec4f3134aa2e5a916669537ec6c77fe66ea595fabc2d51a";
3992
+ var TYPEID_LSP26_UNFOLLOW = "0x9d3c0b4012b69658977b099bdaa51eff0f0460f421fba96d15669506c00d1c4f";
3993
+ var TYPEID_LSP7_TOKENSSENDER = "0x429ac7a06903dbc9c13dfcb3c9d11df8194581fa047c96d7a4171fc7402958ea";
3994
+ var TYPEID_LSP7_TOKENSRECIPIENT = "0x20804611b3e2ea21c480dc465142210acf4a2485947541770ec1fb87dee4a55c";
3995
+ var TYPEID_LSP8_TOKENSSENDER = "0xb23eae7e6d1564b295b4c3e3be402d9a2f0776c57bdf365903496f6fa481ab00";
3996
+ var TYPEID_LSP8_TOKENSRECIPIENT = "0x0b084a55ebf70fd3c06fd755269dac2212c4d3f0f4d09079780bfa50c1b2984d";
3997
+ var followParams = [
3998
+ { name: "follower", type: "address" },
3999
+ { name: "addr", type: "address" }
4000
+ ];
4001
+ var unfollowParams = [
4002
+ { name: "unfollower", type: "address" },
4003
+ { name: "addr", type: "address" }
4004
+ ];
4005
+ var lsp7TransferParams = [
4006
+ { name: "operator", type: "address" },
4007
+ { name: "from", type: "address" },
4008
+ { name: "to", type: "address" },
4009
+ { name: "amount", type: "uint256" },
4010
+ { name: "force", type: "bool" },
4011
+ { name: "data", type: "bytes" }
4012
+ ];
4013
+ var lsp8TransferParams = [
4014
+ { name: "operator", type: "address" },
4015
+ { name: "from", type: "address" },
4016
+ { name: "to", type: "address" },
4017
+ { name: "tokenId", type: "bytes32" },
4018
+ { name: "force", type: "bool" },
4019
+ { name: "data", type: "bytes" }
4020
+ ];
4021
+ var notificationParams = [
4022
+ { name: "from", type: "address" },
4023
+ { name: "typeId", type: "bytes32" },
4024
+ { name: "data", type: "bytes" }
4025
+ ];
4026
+ function unwrapLSP26Follow(receivedData, _from, profileAddress, _eventName) {
4027
+ if (!receivedData || receivedData.length < 42) {
4028
+ return void 0;
4029
+ }
4030
+ const followerAddress = getAddress(slice4(receivedData, 0, 20));
4031
+ const values = [followerAddress, profileAddress];
4032
+ return {
4033
+ eventName: "URDFollow",
4034
+ ...createNamedArgs(values, followParams),
4035
+ ...encodeEventLog("URDFollow", followParams, values),
4036
+ standard: "LSP26FollowerSystem"
4037
+ };
4038
+ }
4039
+ __name(unwrapLSP26Follow, "unwrapLSP26Follow");
4040
+ function unwrapLSP26Unfollow(receivedData, _from, profileAddress, _eventName) {
4041
+ if (!receivedData || receivedData.length < 42) {
4042
+ return void 0;
4043
+ }
4044
+ const unfollowerAddress = getAddress(slice4(receivedData, 0, 20));
4045
+ const values = [unfollowerAddress, profileAddress];
4046
+ return {
4047
+ eventName: "URDUnfollow",
4048
+ ...createNamedArgs(values, unfollowParams),
4049
+ ...encodeEventLog("URDUnfollow", unfollowParams, values),
4050
+ standard: "LSP26FollowerSystem"
4051
+ };
4052
+ }
4053
+ __name(unwrapLSP26Unfollow, "unwrapLSP26Unfollow");
4054
+ function unwrapLSP7Transfer(receivedData, _from, _profileAddress, eventName) {
4055
+ try {
4056
+ const [operator, sender, recipient, amount, data] = decodeAbiParameters3(
4057
+ [
4058
+ { name: "operator", type: "address" },
4059
+ { name: "from", type: "address" },
4060
+ { name: "to", type: "address" },
4061
+ { name: "amount", type: "uint256" },
4062
+ { name: "data", type: "bytes" }
4063
+ ],
4064
+ receivedData
4065
+ );
4066
+ const values = [operator, sender, recipient, amount, true, data];
4067
+ return {
4068
+ eventName,
4069
+ ...createNamedArgs(values, lsp7TransferParams),
4070
+ ...encodeEventLog(eventName, lsp7TransferParams, values),
4071
+ standard: "LSP7DigitalAsset"
4072
+ };
4073
+ } catch {
4074
+ return void 0;
4075
+ }
4076
+ }
4077
+ __name(unwrapLSP7Transfer, "unwrapLSP7Transfer");
4078
+ function unwrapLSP8Transfer(receivedData, _from, _profileAddress, eventName) {
4079
+ try {
4080
+ const [operator, sender, recipient, tokenId, data] = decodeAbiParameters3(
4081
+ [
4082
+ { name: "operator", type: "address" },
4083
+ { name: "from", type: "address" },
4084
+ { name: "to", type: "address" },
4085
+ { name: "tokenId", type: "bytes32" },
4086
+ { name: "data", type: "bytes" }
4087
+ ],
4088
+ receivedData
4089
+ );
4090
+ const values = [operator, sender, recipient, tokenId, true, data];
4091
+ return {
4092
+ eventName,
4093
+ ...createNamedArgs(values, lsp8TransferParams),
4094
+ ...encodeEventLog(eventName, lsp8TransferParams, values),
4095
+ standard: "LSP8IdentifiableDigitalAsset"
4096
+ };
4097
+ } catch {
4098
+ return void 0;
4099
+ }
4100
+ }
4101
+ __name(unwrapLSP8Transfer, "unwrapLSP8Transfer");
4102
+ var typeIdUnwrappers = {
4103
+ [TYPEID_LSP26_FOLLOW]: { fn: unwrapLSP26Follow, eventName: "Follow" },
4104
+ [TYPEID_LSP26_UNFOLLOW]: { fn: unwrapLSP26Unfollow, eventName: "Unfollow" },
4105
+ [TYPEID_LSP7_TOKENSSENDER]: {
4106
+ fn: unwrapLSP7Transfer,
4107
+ eventName: "URDTokensSent"
4108
+ },
4109
+ [TYPEID_LSP7_TOKENSRECIPIENT]: {
4110
+ fn: unwrapLSP7Transfer,
4111
+ eventName: "URDTokensReceived"
4112
+ },
4113
+ [TYPEID_LSP8_TOKENSSENDER]: {
4114
+ fn: unwrapLSP8Transfer,
4115
+ eventName: "URDTokensSent"
4116
+ },
4117
+ [TYPEID_LSP8_TOKENSRECIPIENT]: {
4118
+ fn: unwrapLSP8Transfer,
4119
+ eventName: "URDTokensReceived"
4120
+ }
4121
+ };
4122
+ function unwrapUniversalReceiver(typeId, receivedData, from, profileAddress) {
4123
+ const entry = typeIdUnwrappers[typeId];
4124
+ if (entry) {
4125
+ const result = entry.fn(receivedData, from, profileAddress, entry.eventName);
4126
+ if (result) {
4127
+ return result;
4128
+ }
4129
+ }
4130
+ const values = [from, typeId, receivedData];
4131
+ return {
4132
+ eventName: "URDNotification",
4133
+ ...createNamedArgs(values, notificationParams),
4134
+ ...encodeEventLog("Notification", notificationParams, values)
4135
+ };
4136
+ }
4137
+ __name(unwrapUniversalReceiver, "unwrapUniversalReceiver");
4138
+
3975
4139
  // src/decoder/plugins/enhanceLSP0ERC725Account.ts
3976
4140
  var enhanceLSP0ERC725AccountPlugin = standardPlugin(
3977
4141
  UniversalProfile,
@@ -3983,7 +4147,33 @@ var enhanceLSP0ERC725AccountPlugin = standardPlugin(
3983
4147
  {
3984
4148
  enhance: enhanceLSP0ERC725Account,
3985
4149
  decodeEvent: /* @__PURE__ */ __name(async (log, options) => {
3986
- return decodeEvent(options.chain, UniversalProfile, log);
4150
+ const decoded = decodeEvent(options.chain, UniversalProfile, log);
4151
+ if (!decoded || decoded.eventName !== "UniversalReceiver") {
4152
+ return decoded;
4153
+ }
4154
+ const typeId = decoded.args.find((a) => a.name === "typeId")?.value;
4155
+ const receivedData = decoded.args.find((a) => a.name === "receivedData")?.value;
4156
+ const from = decoded.args.find((a) => a.name === "from")?.value;
4157
+ const profileAddress = decoded.address;
4158
+ if (!typeId || !receivedData || !from) {
4159
+ return decoded;
4160
+ }
4161
+ const unwrapped = unwrapUniversalReceiver(
4162
+ typeId,
4163
+ receivedData,
4164
+ from,
4165
+ profileAddress
4166
+ );
4167
+ const { wrappers: _w, standard: _s, ...logBase } = decoded;
4168
+ return {
4169
+ ...logBase,
4170
+ eventName: unwrapped.eventName,
4171
+ args: unwrapped.args,
4172
+ standard: unwrapped.standard,
4173
+ topics: unwrapped.topics,
4174
+ data: unwrapped.data,
4175
+ wrappers: [logBase]
4176
+ };
3987
4177
  }, "decodeEvent")
3988
4178
  }
3989
4179
  );
@@ -5898,9 +6088,9 @@ var abi2 = [
5898
6088
 
5899
6089
  // src/decoder/functionSignature.ts
5900
6090
  import {
5901
- decodeAbiParameters as decodeAbiParameters3,
5902
- encodeAbiParameters,
5903
- getAddress,
6091
+ decodeAbiParameters as decodeAbiParameters4,
6092
+ encodeAbiParameters as encodeAbiParameters2,
6093
+ getAddress as getAddress2,
5904
6094
  isAddress as isAddress2,
5905
6095
  isAddressEqual as isAddressEqual2,
5906
6096
  parseAbiParameters,
@@ -6055,7 +6245,7 @@ async function fetchAbi(chain, address, options) {
6055
6245
  const explorer = chain.blockExplorers?.default?.apiUrl;
6056
6246
  if (!explorer) return void 0;
6057
6247
  const cache = options?.cache ?? defaultCache;
6058
- let key = getAddress(address);
6248
+ let key = getAddress2(address);
6059
6249
  const cacheKey = makeCacheKey("abi" /* ABI */, key, String(chain.id));
6060
6250
  return cache.getOrSet(
6061
6251
  cacheKey,
@@ -6197,7 +6387,7 @@ var getFunctionSignature = /* @__PURE__ */ __name(async (chain, input, to, prefe
6197
6387
  const params = generateNamedAbiParameters(
6198
6388
  result.text_signature || result.name
6199
6389
  );
6200
- const args = decodeAbiParameters3(params, `0x${data.slice(8)}`);
6390
+ const args = decodeAbiParameters4(params, `0x${data.slice(8)}`);
6201
6391
  const encodeArgs = Array.from({ length: params.length }).map(
6202
6392
  (_val, index) => {
6203
6393
  if (params[index].type === "bool") {
@@ -6215,7 +6405,7 @@ var getFunctionSignature = /* @__PURE__ */ __name(async (chain, input, to, prefe
6215
6405
  return args[`${index}`] ?? "0x";
6216
6406
  }
6217
6407
  );
6218
- const newData = encodeAbiParameters(
6408
+ const newData = encodeAbiParameters2(
6219
6409
  params,
6220
6410
  encodeArgs
6221
6411
  ).slice(2);
@@ -6557,7 +6747,7 @@ __name(createMemoryAddressCache, "createMemoryAddressCache");
6557
6747
  // src/server/lsp23Resolver.ts
6558
6748
  import {
6559
6749
  bytesToHex,
6560
- decodeAbiParameters as decodeAbiParameters4,
6750
+ decodeAbiParameters as decodeAbiParameters5,
6561
6751
  isHex as isHex4,
6562
6752
  parseAbiParameters as parseAbiParameters2
6563
6753
  } from "viem";
@@ -6566,7 +6756,7 @@ var DEPLOY_ERC1167_PROXIES_SELECTOR = "0x6a66a753";
6566
6756
  function decodeDeploymentCalldata(input) {
6567
6757
  try {
6568
6758
  const params = `0x${input.slice(10)}`;
6569
- const decoded = decodeAbiParameters4(
6759
+ const decoded = decodeAbiParameters5(
6570
6760
  parseAbiParameters2(
6571
6761
  "(bytes32,uint256,address,bytes), (uint256,address,bytes,bool,bytes), address, bytes"
6572
6762
  ),
@@ -6598,7 +6788,7 @@ function decodeDeploymentCalldata(input) {
6598
6788
  __name(decodeDeploymentCalldata, "decodeDeploymentCalldata");
6599
6789
  function decodeDeploymentOutput(output) {
6600
6790
  try {
6601
- const decoded = decodeAbiParameters4(
6791
+ const decoded = decodeAbiParameters5(
6602
6792
  parseAbiParameters2("address, address"),
6603
6793
  output
6604
6794
  );
@@ -6617,7 +6807,7 @@ function extractControllersFromInitCalldata(initializationCalldata) {
6617
6807
  if (!initializationCalldata || initializationCalldata === "0x") {
6618
6808
  return [];
6619
6809
  }
6620
- const decoded = decodeAbiParameters4(
6810
+ const decoded = decodeAbiParameters5(
6621
6811
  parseAbiParameters2("bytes32[], bytes[]"),
6622
6812
  initializationCalldata
6623
6813
  );
@@ -6833,7 +7023,7 @@ var getTransactionCount = consumerModel.getTransactionCount.bind(consumerModel);
6833
7023
  var getDecodedCount = consumerModel.getDecodedCount.bind(consumerModel);
6834
7024
  var getDecodedTransactions = consumerModel.getDecodedTransactions.bind(consumerModel);
6835
7025
  var getTransactionsInOrder = consumerModel.getTransactionsInOrder.bind(consumerModel);
6836
- var getAddress2 = consumerModel.getAddress.bind(consumerModel);
7026
+ var getAddress3 = consumerModel.getAddress.bind(consumerModel);
6837
7027
  var getSignal = consumerModel.getSignal.bind(consumerModel);
6838
7028
  var subscribe = consumerModel.subscribe.bind(consumerModel);
6839
7029
  var getState = consumerModel.getState.bind(consumerModel);
@@ -6872,7 +7062,7 @@ export {
6872
7062
  extractControllersFromInitCalldata,
6873
7063
  fetchMultipleAddresses,
6874
7064
  fetchProfilesByControllers,
6875
- getAddress2 as getAddress,
7065
+ getAddress3 as getAddress,
6876
7066
  getAllData,
6877
7067
  getAllKeys,
6878
7068
  getAllTransactions,