@lukso/transaction-decoder 1.3.6 → 1.3.7-dev.2df3eae

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 (46) hide show
  1. package/dist/browser.cjs +214 -24
  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 +75 -75
  7. package/dist/cdn/transaction-decoder.global.js.map +1 -1
  8. package/dist/{chunk-NDBDNXBI.js → chunk-C3O7HMFS.js} +2 -2
  9. package/dist/{chunk-FKBKAWB3.js → chunk-JP3VO7OF.js} +2 -2
  10. package/dist/{chunk-SSY7TTU2.js → chunk-LZFM5SNN.js} +4 -4
  11. package/dist/{chunk-T4H2HHIB.js → chunk-XE5YIF5G.js} +209 -19
  12. package/dist/chunk-XE5YIF5G.js.map +1 -0
  13. package/dist/data.cjs +208 -18
  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 +214 -24
  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 +1499 -1258
  26. package/dist/server.cjs.map +1 -1
  27. package/dist/server.d.cts +17 -2
  28. package/dist/server.d.ts +17 -2
  29. package/dist/server.js +56 -2
  30. package/dist/server.js.map +1 -1
  31. package/dist/{utils-De_c6fUK.d.ts → utils-4Qdavg8r.d.ts} +2 -2
  32. package/dist/{utils-BEpSreRR.d.cts → utils-OR-XzeYG.d.cts} +2 -2
  33. package/package.json +8 -8
  34. package/src/decoder/lsp7Mint.test.ts +18 -11
  35. package/src/decoder/plugins/enhanceLSP0ERC725Account.ts +39 -2
  36. package/src/decoder/plugins/universalReceiverTypeIds.ts +277 -0
  37. package/src/decoder/types.ts +2 -0
  38. package/src/server/decodeEventLogs.ts +71 -0
  39. package/src/server/index.ts +10 -0
  40. package/src/server/types.ts +14 -1
  41. package/src/server.ts +1 -0
  42. package/src/types/index.ts +5 -1
  43. package/dist/chunk-T4H2HHIB.js.map +0 -1
  44. /package/dist/{chunk-NDBDNXBI.js.map → chunk-C3O7HMFS.js.map} +0 -0
  45. /package/dist/{chunk-FKBKAWB3.js.map → chunk-JP3VO7OF.js.map} +0 -0
  46. /package/dist/{chunk-SSY7TTU2.js.map → chunk-LZFM5SNN.js.map} +0 -0
package/dist/data.cjs CHANGED
@@ -789,7 +789,7 @@ Object.freeze(DataModel);
789
789
  var dataModel = dataModelInstance;
790
790
  var consumerModel = createConsumerProxy(dataModelInstance);
791
791
 
792
- // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.13/node_modules/@erc725/erc725.js/schemas/LSP1UniversalReceiverDelegate.json
792
+ // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/@erc725/erc725.js/schemas/LSP1UniversalReceiverDelegate.json
793
793
  var LSP1UniversalReceiverDelegate_default = [
794
794
  {
795
795
  name: "LSP1UniversalReceiverDelegate",
@@ -807,7 +807,7 @@ var LSP1UniversalReceiverDelegate_default = [
807
807
  }
808
808
  ];
809
809
 
810
- // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.13/node_modules/@erc725/erc725.js/schemas/LSP3ProfileMetadata.json
810
+ // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/@erc725/erc725.js/schemas/LSP3ProfileMetadata.json
811
811
  var LSP3ProfileMetadata_default = [
812
812
  {
813
813
  name: "SupportedStandards:LSP3Profile",
@@ -874,7 +874,7 @@ var LSP3ProfileMetadata_default = [
874
874
  }
875
875
  ];
876
876
 
877
- // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.13/node_modules/@erc725/erc725.js/schemas/LSP4DigitalAsset.json
877
+ // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/@erc725/erc725.js/schemas/LSP4DigitalAsset.json
878
878
  var LSP4DigitalAsset_default = [
879
879
  {
880
880
  name: "SupportedStandards:LSP4DigitalAsset",
@@ -927,7 +927,7 @@ var LSP4DigitalAsset_default = [
927
927
  }
928
928
  ];
929
929
 
930
- // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.13/node_modules/@erc725/erc725.js/schemas/LSP4DigitalAssetLegacy.json
930
+ // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/@erc725/erc725.js/schemas/LSP4DigitalAssetLegacy.json
931
931
  var LSP4DigitalAssetLegacy_default = [
932
932
  {
933
933
  name: "SupportedStandards:LSP4DigitalCertificate",
@@ -938,7 +938,7 @@ var LSP4DigitalAssetLegacy_default = [
938
938
  }
939
939
  ];
940
940
 
941
- // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.13/node_modules/@erc725/erc725.js/schemas/LSP5ReceivedAssets.json
941
+ // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/@erc725/erc725.js/schemas/LSP5ReceivedAssets.json
942
942
  var LSP5ReceivedAssets_default = [
943
943
  {
944
944
  name: "LSP5ReceivedAssets[]",
@@ -956,7 +956,7 @@ var LSP5ReceivedAssets_default = [
956
956
  }
957
957
  ];
958
958
 
959
- // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.13/node_modules/@erc725/erc725.js/schemas/LSP6KeyManager.json
959
+ // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/@erc725/erc725.js/schemas/LSP6KeyManager.json
960
960
  var LSP6KeyManager_default = [
961
961
  {
962
962
  name: "AddressPermissions[]",
@@ -988,7 +988,7 @@ var LSP6KeyManager_default = [
988
988
  }
989
989
  ];
990
990
 
991
- // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.13/node_modules/@erc725/erc725.js/schemas/LSP8IdentifiableDigitalAsset.json
991
+ // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/@erc725/erc725.js/schemas/LSP8IdentifiableDigitalAsset.json
992
992
  var LSP8IdentifiableDigitalAsset_default = [
993
993
  {
994
994
  name: "LSP8TokenIdFormat",
@@ -1013,7 +1013,7 @@ var LSP8IdentifiableDigitalAsset_default = [
1013
1013
  }
1014
1014
  ];
1015
1015
 
1016
- // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.13/node_modules/@erc725/erc725.js/schemas/LSP9Vault.json
1016
+ // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/@erc725/erc725.js/schemas/LSP9Vault.json
1017
1017
  var LSP9Vault_default = [
1018
1018
  {
1019
1019
  name: "SupportedStandards:LSP9Vault",
@@ -1045,7 +1045,7 @@ var LSP9Vault_default = [
1045
1045
  }
1046
1046
  ];
1047
1047
 
1048
- // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.13/node_modules/@erc725/erc725.js/schemas/LSP10ReceivedVaults.json
1048
+ // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/@erc725/erc725.js/schemas/LSP10ReceivedVaults.json
1049
1049
  var LSP10ReceivedVaults_default = [
1050
1050
  {
1051
1051
  name: "LSP10VaultsMap:<address>",
@@ -1063,7 +1063,7 @@ var LSP10ReceivedVaults_default = [
1063
1063
  }
1064
1064
  ];
1065
1065
 
1066
- // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.13/node_modules/@erc725/erc725.js/schemas/LSP12IssuedAssets.json
1066
+ // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/@erc725/erc725.js/schemas/LSP12IssuedAssets.json
1067
1067
  var LSP12IssuedAssets_default = [
1068
1068
  {
1069
1069
  name: "LSP12IssuedAssets[]",
@@ -1081,7 +1081,7 @@ var LSP12IssuedAssets_default = [
1081
1081
  }
1082
1082
  ];
1083
1083
 
1084
- // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.13/node_modules/@erc725/erc725.js/schemas/LSP17ContractExtension.json
1084
+ // ../../node_modules/.pnpm/@erc725+erc725.js@0.28.2_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/@erc725/erc725.js/schemas/LSP17ContractExtension.json
1085
1085
  var LSP17ContractExtension_default = [
1086
1086
  {
1087
1087
  name: "LSP17Extension:<bytes4>",
@@ -3073,6 +3073,170 @@ async function enhanceSetData(result, pluginOptions, options) {
3073
3073
  }
3074
3074
  __name(enhanceSetData, "enhanceSetData");
3075
3075
 
3076
+ // src/decoder/plugins/universalReceiverTypeIds.ts
3077
+ import {
3078
+ decodeAbiParameters as decodeAbiParameters3,
3079
+ encodeAbiParameters,
3080
+ getAddress,
3081
+ keccak256,
3082
+ slice as slice4,
3083
+ toHex
3084
+ } from "viem";
3085
+ function encodeEventLog(eventName, params, values) {
3086
+ const sig = `${eventName}(${params.map((p) => p.type).join(",")})`;
3087
+ const topic0 = keccak256(toHex(sig));
3088
+ const data = encodeAbiParameters(params, values);
3089
+ return { topics: [topic0], data };
3090
+ }
3091
+ __name(encodeEventLog, "encodeEventLog");
3092
+ var TYPEID_LSP26_FOLLOW = "0x71e02f9f05bcd5816ec4f3134aa2e5a916669537ec6c77fe66ea595fabc2d51a";
3093
+ var TYPEID_LSP26_UNFOLLOW = "0x9d3c0b4012b69658977b099bdaa51eff0f0460f421fba96d15669506c00d1c4f";
3094
+ var TYPEID_LSP7_TOKENSSENDER = "0x429ac7a06903dbc9c13dfcb3c9d11df8194581fa047c96d7a4171fc7402958ea";
3095
+ var TYPEID_LSP7_TOKENSRECIPIENT = "0x20804611b3e2ea21c480dc465142210acf4a2485947541770ec1fb87dee4a55c";
3096
+ var TYPEID_LSP8_TOKENSSENDER = "0xb23eae7e6d1564b295b4c3e3be402d9a2f0776c57bdf365903496f6fa481ab00";
3097
+ var TYPEID_LSP8_TOKENSRECIPIENT = "0x0b084a55ebf70fd3c06fd755269dac2212c4d3f0f4d09079780bfa50c1b2984d";
3098
+ var followParams = [
3099
+ { name: "follower", type: "address" },
3100
+ { name: "addr", type: "address" }
3101
+ ];
3102
+ var unfollowParams = [
3103
+ { name: "unfollower", type: "address" },
3104
+ { name: "addr", type: "address" }
3105
+ ];
3106
+ var lsp7TransferParams = [
3107
+ { name: "operator", type: "address" },
3108
+ { name: "from", type: "address" },
3109
+ { name: "to", type: "address" },
3110
+ { name: "amount", type: "uint256" },
3111
+ { name: "force", type: "bool" },
3112
+ { name: "data", type: "bytes" }
3113
+ ];
3114
+ var lsp8TransferParams = [
3115
+ { name: "operator", type: "address" },
3116
+ { name: "from", type: "address" },
3117
+ { name: "to", type: "address" },
3118
+ { name: "tokenId", type: "bytes32" },
3119
+ { name: "force", type: "bool" },
3120
+ { name: "data", type: "bytes" }
3121
+ ];
3122
+ var notificationParams = [
3123
+ { name: "from", type: "address" },
3124
+ { name: "typeId", type: "bytes32" },
3125
+ { name: "data", type: "bytes" }
3126
+ ];
3127
+ function unwrapLSP26Follow(receivedData, _from, profileAddress, _eventName) {
3128
+ if (!receivedData || receivedData.length < 42) {
3129
+ return void 0;
3130
+ }
3131
+ const followerAddress = getAddress(slice4(receivedData, 0, 20));
3132
+ const values = [followerAddress, profileAddress];
3133
+ return {
3134
+ eventName: "URDFollow",
3135
+ ...createNamedArgs(values, followParams),
3136
+ ...encodeEventLog("URDFollow", followParams, values),
3137
+ standard: "LSP26FollowerSystem"
3138
+ };
3139
+ }
3140
+ __name(unwrapLSP26Follow, "unwrapLSP26Follow");
3141
+ function unwrapLSP26Unfollow(receivedData, _from, profileAddress, _eventName) {
3142
+ if (!receivedData || receivedData.length < 42) {
3143
+ return void 0;
3144
+ }
3145
+ const unfollowerAddress = getAddress(slice4(receivedData, 0, 20));
3146
+ const values = [unfollowerAddress, profileAddress];
3147
+ return {
3148
+ eventName: "URDUnfollow",
3149
+ ...createNamedArgs(values, unfollowParams),
3150
+ ...encodeEventLog("URDUnfollow", unfollowParams, values),
3151
+ standard: "LSP26FollowerSystem"
3152
+ };
3153
+ }
3154
+ __name(unwrapLSP26Unfollow, "unwrapLSP26Unfollow");
3155
+ function unwrapLSP7Transfer(receivedData, _from, _profileAddress, eventName) {
3156
+ try {
3157
+ const [operator, sender, recipient, amount, data] = decodeAbiParameters3(
3158
+ [
3159
+ { name: "operator", type: "address" },
3160
+ { name: "from", type: "address" },
3161
+ { name: "to", type: "address" },
3162
+ { name: "amount", type: "uint256" },
3163
+ { name: "data", type: "bytes" }
3164
+ ],
3165
+ receivedData
3166
+ );
3167
+ const values = [operator, sender, recipient, amount, true, data];
3168
+ return {
3169
+ eventName,
3170
+ ...createNamedArgs(values, lsp7TransferParams),
3171
+ ...encodeEventLog(eventName, lsp7TransferParams, values),
3172
+ standard: "LSP7DigitalAsset"
3173
+ };
3174
+ } catch {
3175
+ return void 0;
3176
+ }
3177
+ }
3178
+ __name(unwrapLSP7Transfer, "unwrapLSP7Transfer");
3179
+ function unwrapLSP8Transfer(receivedData, _from, _profileAddress, eventName) {
3180
+ try {
3181
+ const [operator, sender, recipient, tokenId, data] = decodeAbiParameters3(
3182
+ [
3183
+ { name: "operator", type: "address" },
3184
+ { name: "from", type: "address" },
3185
+ { name: "to", type: "address" },
3186
+ { name: "tokenId", type: "bytes32" },
3187
+ { name: "data", type: "bytes" }
3188
+ ],
3189
+ receivedData
3190
+ );
3191
+ const values = [operator, sender, recipient, tokenId, true, data];
3192
+ return {
3193
+ eventName,
3194
+ ...createNamedArgs(values, lsp8TransferParams),
3195
+ ...encodeEventLog(eventName, lsp8TransferParams, values),
3196
+ standard: "LSP8IdentifiableDigitalAsset"
3197
+ };
3198
+ } catch {
3199
+ return void 0;
3200
+ }
3201
+ }
3202
+ __name(unwrapLSP8Transfer, "unwrapLSP8Transfer");
3203
+ var typeIdUnwrappers = {
3204
+ [TYPEID_LSP26_FOLLOW]: { fn: unwrapLSP26Follow, eventName: "Follow" },
3205
+ [TYPEID_LSP26_UNFOLLOW]: { fn: unwrapLSP26Unfollow, eventName: "Unfollow" },
3206
+ [TYPEID_LSP7_TOKENSSENDER]: {
3207
+ fn: unwrapLSP7Transfer,
3208
+ eventName: "URDTokensSent"
3209
+ },
3210
+ [TYPEID_LSP7_TOKENSRECIPIENT]: {
3211
+ fn: unwrapLSP7Transfer,
3212
+ eventName: "URDTokensReceived"
3213
+ },
3214
+ [TYPEID_LSP8_TOKENSSENDER]: {
3215
+ fn: unwrapLSP8Transfer,
3216
+ eventName: "URDTokensSent"
3217
+ },
3218
+ [TYPEID_LSP8_TOKENSRECIPIENT]: {
3219
+ fn: unwrapLSP8Transfer,
3220
+ eventName: "URDTokensReceived"
3221
+ }
3222
+ };
3223
+ function unwrapUniversalReceiver(typeId, receivedData, from, profileAddress) {
3224
+ const entry = typeIdUnwrappers[typeId];
3225
+ if (entry) {
3226
+ const result = entry.fn(receivedData, from, profileAddress, entry.eventName);
3227
+ if (result) {
3228
+ return result;
3229
+ }
3230
+ }
3231
+ const values = [from, typeId, receivedData];
3232
+ return {
3233
+ eventName: "URDNotification",
3234
+ ...createNamedArgs(values, notificationParams),
3235
+ ...encodeEventLog("Notification", notificationParams, values)
3236
+ };
3237
+ }
3238
+ __name(unwrapUniversalReceiver, "unwrapUniversalReceiver");
3239
+
3076
3240
  // src/decoder/plugins/enhanceLSP0ERC725Account.ts
3077
3241
  var enhanceLSP0ERC725AccountPlugin = standardPlugin(
3078
3242
  UniversalProfile,
@@ -3084,7 +3248,33 @@ var enhanceLSP0ERC725AccountPlugin = standardPlugin(
3084
3248
  {
3085
3249
  enhance: enhanceLSP0ERC725Account,
3086
3250
  decodeEvent: /* @__PURE__ */ __name(async (log, options) => {
3087
- return decodeEvent(options.chain, UniversalProfile, log);
3251
+ const decoded = decodeEvent(options.chain, UniversalProfile, log);
3252
+ if (!decoded || decoded.eventName !== "UniversalReceiver") {
3253
+ return decoded;
3254
+ }
3255
+ const typeId = decoded.args.find((a) => a.name === "typeId")?.value;
3256
+ const receivedData = decoded.args.find((a) => a.name === "receivedData")?.value;
3257
+ const from = decoded.args.find((a) => a.name === "from")?.value;
3258
+ const profileAddress = decoded.address;
3259
+ if (!typeId || !receivedData || !from) {
3260
+ return decoded;
3261
+ }
3262
+ const unwrapped = unwrapUniversalReceiver(
3263
+ typeId,
3264
+ receivedData,
3265
+ from,
3266
+ profileAddress
3267
+ );
3268
+ const { wrappers: _w, standard: _s, ...logBase } = decoded;
3269
+ return {
3270
+ ...logBase,
3271
+ eventName: unwrapped.eventName,
3272
+ args: unwrapped.args,
3273
+ standard: unwrapped.standard,
3274
+ topics: unwrapped.topics,
3275
+ data: unwrapped.data,
3276
+ wrappers: [logBase]
3277
+ };
3088
3278
  }, "decodeEvent")
3089
3279
  }
3090
3280
  );
@@ -4999,9 +5189,9 @@ var abi2 = [
4999
5189
 
5000
5190
  // src/decoder/functionSignature.ts
5001
5191
  import {
5002
- decodeAbiParameters as decodeAbiParameters3,
5003
- encodeAbiParameters,
5004
- getAddress,
5192
+ decodeAbiParameters as decodeAbiParameters4,
5193
+ encodeAbiParameters as encodeAbiParameters2,
5194
+ getAddress as getAddress2,
5005
5195
  isAddress as isAddress2,
5006
5196
  isAddressEqual as isAddressEqual2,
5007
5197
  parseAbiParameters,
@@ -5156,7 +5346,7 @@ async function fetchAbi(chain, address, options) {
5156
5346
  const explorer = chain.blockExplorers?.default?.apiUrl;
5157
5347
  if (!explorer) return void 0;
5158
5348
  const cache = options?.cache ?? defaultCache;
5159
- let key = getAddress(address);
5349
+ let key = getAddress2(address);
5160
5350
  const cacheKey = makeCacheKey("abi" /* ABI */, key, String(chain.id));
5161
5351
  return cache.getOrSet(
5162
5352
  cacheKey,
@@ -5298,7 +5488,7 @@ var getFunctionSignature = /* @__PURE__ */ __name(async (chain, input, to, prefe
5298
5488
  const params = generateNamedAbiParameters(
5299
5489
  result.text_signature || result.name
5300
5490
  );
5301
- const args = decodeAbiParameters3(params, `0x${data.slice(8)}`);
5491
+ const args = decodeAbiParameters4(params, `0x${data.slice(8)}`);
5302
5492
  const encodeArgs = Array.from({ length: params.length }).map(
5303
5493
  (_val, index) => {
5304
5494
  if (params[index].type === "bool") {
@@ -5316,7 +5506,7 @@ var getFunctionSignature = /* @__PURE__ */ __name(async (chain, input, to, prefe
5316
5506
  return args[`${index}`] ?? "0x";
5317
5507
  }
5318
5508
  );
5319
- const newData = encodeAbiParameters(
5509
+ const newData = encodeAbiParameters2(
5320
5510
  params,
5321
5511
  encodeArgs
5322
5512
  ).slice(2);