@indexing/jiti 0.0.68 → 0.0.70

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/module.js CHANGED
@@ -1400,7 +1400,8 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
1400
1400
  if (amountData.length < 8) continue;
1401
1401
  const amount = BigInt(amountData.readBigUInt64LE(0).toString());
1402
1402
  const fromIdx = inst.accounts[0];
1403
- const toIdx = inst.accounts.length === 5 ? inst.accounts[4] : inst.accounts[inst.accounts.length - 2];
1403
+ let toIdx = inst.accounts.length === 5 ? inst.accounts[4] : inst.accounts[inst.accounts.length - 2];
1404
+ if (inst.accounts.length === 5 && programId === $64e1e522540ffc4e$var$SPL_TOKEN_PROGRAM) toIdx = inst.accounts[2];
1404
1405
  let from = createdAccountsToOwner[allAccounts[fromIdx]];
1405
1406
  let to = createdAccountsToOwner[allAccounts[toIdx]];
1406
1407
  let mint;
@@ -1415,8 +1416,8 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
1415
1416
  }
1416
1417
  if (from && to && mint) break;
1417
1418
  }
1418
- if (!from) from = allAccounts[fromIdx] || signer;
1419
- if (!to) to = allAccounts[toIdx] || signer;
1419
+ if (!from) from = svmTx.meta.preTokenBalances.find((ptb)=>ptb.accountIndex === fromIdx + 1)?.owner || allAccounts[fromIdx] || signer;
1420
+ if (!to) to = svmTx.meta.postTokenBalances.find((ptb)=>ptb.accountIndex === toIdx + 1)?.owner || allAccounts[toIdx] || signer;
1420
1421
  txTransfers.push({
1421
1422
  amount: amount,
1422
1423
  blockNumber: block.parentSlot + 1,
@@ -2815,6 +2816,50 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
2815
2816
  transactionHash: "5Rndx2MH75VSy5mviPwV6UjF8ESNsvQPfRsnDUxKEA8g9e4RDDs34LSsGA3PEqPiKHctP7NciPVRAJQnAh5X5RYU"
2816
2817
  }
2817
2818
  ]
2819
+ },
2820
+ {
2821
+ params: {
2822
+ network: "SOLANA",
2823
+ transactionHash: "5e9vdMRoae9xGbDdcbiG3skxniuXyigxQiKY9quMht9xzToYqvuKHV8Qo38j4oNVmAfiKAtPniFrL4AB6hPw5H3T",
2824
+ walletAddress: "ECuAG1KtnnNYW5bx3h356Gr69P2UekxYSy4vkg9tB9qG"
2825
+ },
2826
+ payload: "https://jiti.indexing.co/networks/solana/381660142",
2827
+ output: [
2828
+ {
2829
+ amount: 40000000n,
2830
+ blockNumber: 381660142,
2831
+ from: "39guB1KD47dafdw7a6vsYzyPoA8iD55EDLcBKoUCrim3",
2832
+ index: "1",
2833
+ timestamp: "2025-11-22T01:09:01.000Z",
2834
+ to: "ECuAG1KtnnNYW5bx3h356Gr69P2UekxYSy4vkg9tB9qG",
2835
+ token: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2836
+ tokenType: "TOKEN",
2837
+ transactionGasFee: 5000n,
2838
+ transactionHash: "5e9vdMRoae9xGbDdcbiG3skxniuXyigxQiKY9quMht9xzToYqvuKHV8Qo38j4oNVmAfiKAtPniFrL4AB6hPw5H3T"
2839
+ }
2840
+ ]
2841
+ },
2842
+ {
2843
+ params: {
2844
+ network: "SOLANA",
2845
+ transactionHash: "GxodFb9CmZfNwduEbtKdFtBs3CEgFt5h4MAPsA2pwQWMr2jiYWX1SvGoyRftmwQDVYdqvwEbPNrU8gJEeTU1u5T",
2846
+ walletAddress: "ECuAG1KtnnNYW5bx3h356Gr69P2UekxYSy4vkg9tB9qG"
2847
+ },
2848
+ payload: "https://jiti.indexing.co/networks/solana/364694991",
2849
+ output: [
2850
+ {
2851
+ amount: 6140759n,
2852
+ blockNumber: 364694991,
2853
+ from: "CDr3sjXFHVPZYp8k7AUNHVJDN1sfvppLfPHd4Pwk8Mha",
2854
+ index: "3",
2855
+ timestamp: "2025-09-04T22:46:33.000Z",
2856
+ to: "ECuAG1KtnnNYW5bx3h356Gr69P2UekxYSy4vkg9tB9qG",
2857
+ token: "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R",
2858
+ tokenType: "TOKEN",
2859
+ transactionGasFee: 79996n,
2860
+ transactionHash: "GxodFb9CmZfNwduEbtKdFtBs3CEgFt5h4MAPsA2pwQWMr2jiYWX1SvGoyRftmwQDVYdqvwEbPNrU8gJEeTU1u5T"
2861
+ }
2862
+ ]
2818
2863
  }
2819
2864
  ]
2820
2865
  };