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