@indexing/jiti 0.0.50 → 0.0.52

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/main.js CHANGED
@@ -121,9 +121,10 @@ const $25d5bdd23cba31eb$export$ace043a4f2efe476 = {
121
121
  const changes = tx.changes;
122
122
  for(let ci = 0; ci < changes.length; ci += 1){
123
123
  if (!changes[ci]?.data) continue;
124
- const { address: accountAddress, data: { data: { balance: balance, metadata: metadata, owner: owner }, type: changeType } } = changes[ci];
124
+ const { address: accountAddress, data: { data: changeData, type: changeType } } = changes[ci];
125
+ const { balance: balance, metadata: metadata, owner: owner } = changeData || {};
125
126
  if (changeType === "0x1::fungible_asset::FungibleStore") {
126
- if (!accountAddressMap[accountAddress]) accountAddressMap[accountAddress] = changes[ci + 1]?.data.data.owner;
127
+ if (!accountAddressMap[accountAddress]) accountAddressMap[accountAddress] = changes[ci + 1]?.data?.data?.owner;
127
128
  const to = accountAddressMap[accountAddress];
128
129
  const tokenAddress = metadata?.inner;
129
130
  if (!to || !tokenAddress || to === sender) continue;
@@ -778,10 +779,13 @@ function $7fd98ef3967673b0$export$146821f89c094be4(evt) {
778
779
  case "MESSAGE_TYPE_USER_DATA_ADD":
779
780
  {
780
781
  processed._dataType = "user_data";
781
- const key = $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.type")?.split("_").pop().toLowerCase();
782
- if (key) processed.data = {
783
- [key]: $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.value")
784
- };
782
+ let key = $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.type");
783
+ if (typeof key === "string") {
784
+ key = key.trim().split("_").pop().toLowerCase();
785
+ processed.data = {
786
+ [key]: $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.value")
787
+ };
788
+ }
785
789
  break;
786
790
  }
787
791
  case "MESSAGE_TYPE_USERNAME_PROOF":
@@ -9307,32 +9311,49 @@ const $9af31dbb692f94e3$var$filterValuesTemplate = {
9307
9311
  },
9308
9312
  {
9309
9313
  params: {},
9310
- payload: "https://jiti.indexing.co/networks/cast_protocol/14863292",
9314
+ payload: "https://jiti.indexing.co/networks/cast_protocol/14872632",
9311
9315
  output: [
9312
- "1023860",
9313
- "1039346",
9314
- "1060442",
9315
- "1078023",
9316
- "1100071",
9317
- "1115733",
9318
- "1136215",
9319
- "1149176",
9320
- "1158447",
9321
- "1181611",
9322
- "1190222",
9323
- "1190224",
9324
- "1293795",
9316
+ "1051614",
9317
+ "1066546",
9318
+ "1117909",
9319
+ "1118563",
9320
+ "1125456",
9321
+ "1131909",
9322
+ "1142406",
9323
+ "1148280",
9324
+ "1162854",
9325
+ "1178996",
9326
+ "1197494",
9327
+ "1271844",
9328
+ "1284009",
9329
+ "1306705",
9330
+ "1314738",
9331
+ "1314747",
9332
+ "1315087",
9333
+ "1315140",
9334
+ "1316693",
9335
+ "1318078",
9336
+ "1322250",
9337
+ "1322625",
9338
+ "1326658",
9339
+ "1332646",
9340
+ "1333799",
9341
+ "1336836",
9342
+ "1337581",
9343
+ "1337966",
9344
+ "16353",
9345
+ "199989",
9346
+ "243056",
9347
+ "272115",
9348
+ "283733",
9325
9349
  "285998",
9326
- "291813",
9327
- "308094",
9328
- "315240",
9329
- "516359",
9330
- "549592",
9331
- "7637",
9332
- "773458",
9333
- "832276",
9334
- "957217",
9335
- "968720"
9350
+ "316323",
9351
+ "430267",
9352
+ "456627",
9353
+ "462627",
9354
+ "822718",
9355
+ "960767",
9356
+ "968965"
9336
9357
  ]
9337
9358
  },
9338
9359
  {