@indexing/jiti 0.0.54 → 0.0.56

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
@@ -782,10 +782,10 @@ const $f9ab50a3e879ac1c$export$b5fd4920e8b7d913 = {
782
782
  const decodedMsg = registry.decode(message);
783
783
  transfers.push({
784
784
  blockNumber: blockNumber,
785
- from: decodedMsg.sender,
786
- to: decodedMsg.receiver,
787
- amount: BigInt(decodedMsg.token?.amount || 0),
788
- token: decodedMsg.token?.denom,
785
+ from: decodedMsg.sender || decodedMsg.fromAddress,
786
+ to: decodedMsg.receiver || decodedMsg.toAddress,
787
+ amount: BigInt(decodedMsg.token?.amount || decodedMsg.amount?.find((a)=>a?.amount)?.amount || 0),
788
+ token: decodedMsg.token?.denom || decodedMsg.amount?.find((a)=>a?.denom)?.denom,
789
789
  tokenType: "NATIVE",
790
790
  timestamp: blockTimestamp,
791
791
  transactionHash: txHash.slice(2).toUpperCase(),
@@ -1334,7 +1334,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1334
1334
  const unmatchedFrom = {};
1335
1335
  const unmatchedTo = {};
1336
1336
  for(const key in transfersByKey)for (const txfer of transfersByKey[key]){
1337
- if (!txfer.from) {
1337
+ if (!txfer.from && txfer.token !== "So11111111111111111111111111111111111111112") {
1338
1338
  if (!unmatchedFrom[txfer.token]) unmatchedFrom[txfer.token] = [];
1339
1339
  unmatchedFrom[txfer.token].push(txfer);
1340
1340
  delete transfersByKey[key];
@@ -1621,6 +1621,36 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1621
1621
  transactionHash: "5usAzMSrENJQscoRdxi48n22aMcFmJ1U7f2yGmwUk8AHSFCzLfRtBP7gVnsZbe7Jy9SG2VoeVbVSoVvu43tsdvm1"
1622
1622
  }
1623
1623
  ]
1624
+ },
1625
+ {
1626
+ params: {
1627
+ network: "SOLANA",
1628
+ walletAddress: "moAGAQftMo19RY6YqStNdiDhNpejJaeNWgv5oczbp8U"
1629
+ },
1630
+ payload: "https://jiti.indexing.co/networks/solana/375557379",
1631
+ output: [
1632
+ {
1633
+ amount: 9990000n,
1634
+ blockNumber: 353720952,
1635
+ timestamp: "2025-10-24T20:23:09.000Z",
1636
+ to: "moAGAQftMo19RY6YqStNdiDhNpejJaeNWgv5oczbp8U",
1637
+ token: "So11111111111111111111111111111111111111112",
1638
+ tokenType: "TOKEN",
1639
+ transactionGasFee: 5000n,
1640
+ transactionHash: "3UCamcERYHN9JrgwPqUshvabv2f7uHpbStwfG7bbPFsVSSjQrK21Q9joj7gNLD6Ab5XHehkaUKtYp7Vptv7Kswv3"
1641
+ },
1642
+ {
1643
+ amount: 9990000n,
1644
+ blockNumber: 353720952,
1645
+ from: "moAGAQftMo19RY6YqStNdiDhNpejJaeNWgv5oczbp8U",
1646
+ timestamp: "2025-10-24T20:23:09.000Z",
1647
+ to: "5uQC5CfgqGP8B8bG64RATmZXfUKiHf1XRbYHkVKPwwny",
1648
+ token: null,
1649
+ tokenType: "NATIVE",
1650
+ transactionGasFee: 5000n,
1651
+ transactionHash: "3UCamcERYHN9JrgwPqUshvabv2f7uHpbStwfG7bbPFsVSSjQrK21Q9joj7gNLD6Ab5XHehkaUKtYp7Vptv7Kswv3"
1652
+ }
1653
+ ]
1624
1654
  }
1625
1655
  ]
1626
1656
  };