@indexing/jiti 0.0.67 → 0.0.69

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
@@ -1415,8 +1415,8 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
1415
1415
  }
1416
1416
  if (from && to && mint) break;
1417
1417
  }
1418
- if (!from) from = allAccounts[fromIdx] || signer;
1419
- if (!to) to = allAccounts[toIdx] || signer;
1418
+ if (!from) from = svmTx.meta.preTokenBalances.find((ptb)=>ptb.accountIndex === fromIdx + 1)?.owner || allAccounts[fromIdx] || signer;
1419
+ if (!to) to = svmTx.meta.postTokenBalances.find((ptb)=>ptb.accountIndex === toIdx + 1)?.owner || allAccounts[toIdx] || signer;
1420
1420
  txTransfers.push({
1421
1421
  amount: amount,
1422
1422
  blockNumber: block.parentSlot + 1,
@@ -1512,6 +1512,9 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
1512
1512
  });
1513
1513
  previousAccountsClose[from] += wSolAmount;
1514
1514
  }
1515
+ } else if (instSig.startsWith("18,") && inst.accounts.length === 2) {
1516
+ const newOwner = (0, $hgUW1$bs58).encode(instData.slice(1));
1517
+ createdAccountsToOwner[matchingAccounts[0]] = newOwner;
1515
1518
  }
1516
1519
  } else if ([
1517
1520
  $64e1e522540ffc4e$var$SYSTEM_PROGRAM
@@ -2707,6 +2710,133 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
2707
2710
  transactionHash: "4RA82Xf6otGz4PLaLYkLqMUQPnzgmQS3ZE5fN1zz2wMo1Vuew4CeCzAcStfCHSNGxE2P9StpUxiTe1kdn5B755WY"
2708
2711
  }
2709
2712
  ]
2713
+ },
2714
+ {
2715
+ params: {
2716
+ network: "SOLANA",
2717
+ transactionHash: "5Rndx2MH75VSy5mviPwV6UjF8ESNsvQPfRsnDUxKEA8g9e4RDDs34LSsGA3PEqPiKHctP7NciPVRAJQnAh5X5RYU"
2718
+ },
2719
+ payload: "https://jiti.indexing.co/networks/solana/395248197",
2720
+ output: [
2721
+ {
2722
+ amount: 5201n,
2723
+ blockNumber: 395248197,
2724
+ from: "BHXVYWyV4CF7quA3U8CWwe1xA9FPmXqM9JovRAZBNj7d",
2725
+ index: "0",
2726
+ timestamp: "2026-01-22T19:16:53.000Z",
2727
+ to: null,
2728
+ token: null,
2729
+ tokenType: "NATIVE",
2730
+ transactionGasFee: 5201n,
2731
+ transactionHash: "5Rndx2MH75VSy5mviPwV6UjF8ESNsvQPfRsnDUxKEA8g9e4RDDs34LSsGA3PEqPiKHctP7NciPVRAJQnAh5X5RYU"
2732
+ },
2733
+ {
2734
+ amount: 134039280n,
2735
+ blockNumber: 395248197,
2736
+ from: "BHXVYWyV4CF7quA3U8CWwe1xA9FPmXqM9JovRAZBNj7d",
2737
+ index: "3",
2738
+ timestamp: "2026-01-22T19:16:53.000Z",
2739
+ to: "7scB8thHPL1r9Qn2p6uVLCBXXnZiX9gZGCsZcufdyVi1",
2740
+ token: null,
2741
+ tokenType: "NATIVE",
2742
+ transactionGasFee: 5201n,
2743
+ transactionHash: "5Rndx2MH75VSy5mviPwV6UjF8ESNsvQPfRsnDUxKEA8g9e4RDDs34LSsGA3PEqPiKHctP7NciPVRAJQnAh5X5RYU"
2744
+ },
2745
+ {
2746
+ amount: 132000000n,
2747
+ blockNumber: 395248197,
2748
+ from: "BHXVYWyV4CF7quA3U8CWwe1xA9FPmXqM9JovRAZBNj7d",
2749
+ index: "5-2",
2750
+ timestamp: "2026-01-22T19:16:53.000Z",
2751
+ to: "4xZYFLR2eyo2vrfsGuJZEPsgZafamE9fFPJ5wYJDW6nU",
2752
+ token: "So11111111111111111111111111111111111111112",
2753
+ tokenType: "TOKEN",
2754
+ transactionGasFee: 5201n,
2755
+ transactionHash: "5Rndx2MH75VSy5mviPwV6UjF8ESNsvQPfRsnDUxKEA8g9e4RDDs34LSsGA3PEqPiKHctP7NciPVRAJQnAh5X5RYU"
2756
+ },
2757
+ {
2758
+ amount: 105124789n,
2759
+ blockNumber: 395248197,
2760
+ from: "BjVanGXAEmHL677Lj7ywusqE7Uaop3sqYb7kiL2LFiK9",
2761
+ index: "5-3",
2762
+ timestamp: "2026-01-22T19:16:53.000Z",
2763
+ to: "BHXVYWyV4CF7quA3U8CWwe1xA9FPmXqM9JovRAZBNj7d",
2764
+ token: "J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn",
2765
+ tokenType: "TOKEN",
2766
+ transactionGasFee: 5201n,
2767
+ transactionHash: "5Rndx2MH75VSy5mviPwV6UjF8ESNsvQPfRsnDUxKEA8g9e4RDDs34LSsGA3PEqPiKHctP7NciPVRAJQnAh5X5RYU"
2768
+ },
2769
+ {
2770
+ amount: 2039280n,
2771
+ blockNumber: 395248197,
2772
+ from: "7scB8thHPL1r9Qn2p6uVLCBXXnZiX9gZGCsZcufdyVi1",
2773
+ index: "6",
2774
+ timestamp: "2026-01-22T19:16:53.000Z",
2775
+ to: "BHXVYWyV4CF7quA3U8CWwe1xA9FPmXqM9JovRAZBNj7d",
2776
+ token: null,
2777
+ tokenType: "NATIVE",
2778
+ transactionGasFee: 5201n,
2779
+ transactionHash: "5Rndx2MH75VSy5mviPwV6UjF8ESNsvQPfRsnDUxKEA8g9e4RDDs34LSsGA3PEqPiKHctP7NciPVRAJQnAh5X5RYU"
2780
+ },
2781
+ {
2782
+ amount: 132000000n,
2783
+ blockNumber: 395248197,
2784
+ from: "7scB8thHPL1r9Qn2p6uVLCBXXnZiX9gZGCsZcufdyVi1",
2785
+ index: "6-1",
2786
+ timestamp: "2026-01-22T19:16:53.000Z",
2787
+ to: "So11111111111111111111111111111111111111112",
2788
+ token: null,
2789
+ tokenType: "NATIVE",
2790
+ transactionGasFee: 5201n,
2791
+ transactionHash: "5Rndx2MH75VSy5mviPwV6UjF8ESNsvQPfRsnDUxKEA8g9e4RDDs34LSsGA3PEqPiKHctP7NciPVRAJQnAh5X5RYU"
2792
+ },
2793
+ {
2794
+ amount: 132000000n,
2795
+ blockNumber: 395248197,
2796
+ from: "So11111111111111111111111111111111111111112",
2797
+ index: "6-2",
2798
+ timestamp: "2026-01-22T19:16:53.000Z",
2799
+ to: "BHXVYWyV4CF7quA3U8CWwe1xA9FPmXqM9JovRAZBNj7d",
2800
+ token: "So11111111111111111111111111111111111111112",
2801
+ tokenType: "TOKEN",
2802
+ transactionGasFee: 5201n,
2803
+ transactionHash: "5Rndx2MH75VSy5mviPwV6UjF8ESNsvQPfRsnDUxKEA8g9e4RDDs34LSsGA3PEqPiKHctP7NciPVRAJQnAh5X5RYU"
2804
+ },
2805
+ {
2806
+ amount: 132000000n,
2807
+ blockNumber: 395248197,
2808
+ from: "So11111111111111111111111111111111111111112",
2809
+ index: "5-2-2",
2810
+ timestamp: "2026-01-22T19:16:53.000Z",
2811
+ to: "4xZYFLR2eyo2vrfsGuJZEPsgZafamE9fFPJ5wYJDW6nU",
2812
+ token: null,
2813
+ tokenType: "NATIVE",
2814
+ transactionGasFee: 5201n,
2815
+ transactionHash: "5Rndx2MH75VSy5mviPwV6UjF8ESNsvQPfRsnDUxKEA8g9e4RDDs34LSsGA3PEqPiKHctP7NciPVRAJQnAh5X5RYU"
2816
+ }
2817
+ ]
2818
+ },
2819
+ {
2820
+ params: {
2821
+ network: "SOLANA",
2822
+ transactionHash: "5e9vdMRoae9xGbDdcbiG3skxniuXyigxQiKY9quMht9xzToYqvuKHV8Qo38j4oNVmAfiKAtPniFrL4AB6hPw5H3T",
2823
+ walletAddress: "ECuAG1KtnnNYW5bx3h356Gr69P2UekxYSy4vkg9tB9qG"
2824
+ },
2825
+ payload: "https://jiti.indexing.co/networks/solana/381660142",
2826
+ output: [
2827
+ {
2828
+ amount: 40000000n,
2829
+ blockNumber: 381660142,
2830
+ from: "39guB1KD47dafdw7a6vsYzyPoA8iD55EDLcBKoUCrim3",
2831
+ index: "1",
2832
+ timestamp: "2025-11-22T01:09:01.000Z",
2833
+ to: "ECuAG1KtnnNYW5bx3h356Gr69P2UekxYSy4vkg9tB9qG",
2834
+ token: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
2835
+ tokenType: "TOKEN",
2836
+ transactionGasFee: 5000n,
2837
+ transactionHash: "5e9vdMRoae9xGbDdcbiG3skxniuXyigxQiKY9quMht9xzToYqvuKHV8Qo38j4oNVmAfiKAtPniFrL4AB6hPw5H3T"
2838
+ }
2839
+ ]
2710
2840
  }
2711
2841
  ]
2712
2842
  };