@indexing/jiti 0.0.78 → 0.1.2

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,10 +121,7 @@ function $56acd58307ebf8e6$export$363ea1acea6aebd6(block) {
121
121
  case "CARDANO":
122
122
  return block.block_identifier.index;
123
123
  case "COSMOS":
124
- {
125
- const typedBlock = block;
126
- return Number(typedBlock.block.header.height);
127
- }
124
+ return Number(block.block.header.height);
128
125
  case "EVM":
129
126
  return block.number;
130
127
  case "FILECOIN":
@@ -166,15 +163,12 @@ function $77809331c5210b08$export$eda46897866e27cc(block) {
166
163
  for (const tx of block.transactions || [])hashes.add(tx.hash);
167
164
  break;
168
165
  case "CARDANO":
169
- for (const tx of block.transactions || []){
170
- const typedTx = tx;
171
- hashes.add(typedTx.transaction_identifier?.hash);
172
- }
166
+ for (const tx of block.transactions || [])hashes.add(tx.transaction_identifier?.hash);
173
167
  break;
174
168
  case "COSMOS":
175
169
  {
176
- const typedBlock = block;
177
- for (const txRaw of typedBlock.block.data.txs || []){
170
+ const cosmosBlock = block;
171
+ for (const txRaw of cosmosBlock.block.data.txs || []){
178
172
  const txHash = (0, $8zHUo$viem.sha256)(new Uint8Array($77809331c5210b08$require$Buffer.from(txRaw, "base64")));
179
173
  hashes.add(txHash.slice(2).toUpperCase());
180
174
  }
@@ -185,8 +179,8 @@ function $77809331c5210b08$export$eda46897866e27cc(block) {
185
179
  break;
186
180
  case "FILECOIN":
187
181
  {
188
- const typedBlock = block;
189
- for (const msgGroup of typedBlock.messages){
182
+ const filecoinBlock = block;
183
+ for (const msgGroup of filecoinBlock.messages){
190
184
  const secpkMessages = msgGroup.blockMessages.SecpkMessages || [];
191
185
  for (const msg of secpkMessages)hashes.add(msg.CID["/"]);
192
186
  }
@@ -211,8 +205,11 @@ function $77809331c5210b08$export$eda46897866e27cc(block) {
211
205
  for (const tx of block.transactions || [])hashes.add(tx.transaction.signatures[0]);
212
206
  break;
213
207
  case "TON":
214
- for (const shard of block.shards || [])for (const tx of shard.transactions || [])hashes.add(tx.transacion_id.hash);
215
- break;
208
+ {
209
+ const tonBlock = block;
210
+ for (const shard of tonBlock.shards || [])for (const tx of shard.transactions || [])hashes.add(tx.transaction_id.hash);
211
+ break;
212
+ }
216
213
  case "UTXO":
217
214
  for (const tx of block.tx)hashes.add(tx.txid);
218
215
  break;
@@ -233,7 +230,10 @@ function $b8691f253b6baa6e$export$ec64f6024312bb14(block) {
233
230
  const vm = (0, $6bd2ca253e883278$export$ae001c77434c5340)(block);
234
231
  switch(vm){
235
232
  case "APTOS":
236
- return new Date(parseInt(block.transactions[0].timestamp, 10) / 1000);
233
+ {
234
+ const aptosBlock = block;
235
+ return new Date(parseInt(aptosBlock.transactions[0].timestamp, 10) / 1000);
236
+ }
237
237
  case "CARDANO":
238
238
  return new Date(block.timestamp);
239
239
  case "COSMOS":
@@ -247,10 +247,14 @@ function $b8691f253b6baa6e$export$ec64f6024312bb14(block) {
247
247
  case "STARKNET":
248
248
  return new Date(block.timestamp * 1000);
249
249
  case "STELLAR":
250
- return new Date(block.transactions[0].created_at);
250
+ {
251
+ const stellarBlock = block;
252
+ return new Date(stellarBlock.transactions[0].created_at);
253
+ }
251
254
  case "SUBSTRATE":
252
255
  {
253
- const timestampExtrinsic = block.extrinsics.find((ex)=>ex.method === "timestamp.set");
256
+ const substrateBlock = block;
257
+ const timestampExtrinsic = substrateBlock.extrinsics.find((ex)=>ex.method === "timestamp.set");
254
258
  return new Date(Number(timestampExtrinsic.args[0].toString().replace(/,/g, "")));
255
259
  }
256
260
  case "SUI":
@@ -258,7 +262,10 @@ function $b8691f253b6baa6e$export$ec64f6024312bb14(block) {
258
262
  case "SVM":
259
263
  return new Date(block.blockTime * 1000);
260
264
  case "TON":
261
- return new Date(block.shards?.[0]?.gen_utime * 1000);
265
+ {
266
+ const tonBlock = block;
267
+ return new Date(tonBlock.shards?.[0]?.gen_utime * 1000);
268
+ }
262
269
  case "UTXO":
263
270
  return new Date(block.time * 1000);
264
271
  }
@@ -671,7 +678,8 @@ const $25d5bdd23cba31eb$export$ace043a4f2efe476 = {
671
678
  match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "APTOS",
672
679
  transform (block) {
673
680
  let transfers = [];
674
- for (const tx of block.transactions || []){
681
+ const typedBlock = block;
682
+ for (const tx of typedBlock.transactions || []){
675
683
  if (!tx?.events || !Array.isArray(tx.events)) continue;
676
684
  const timestamp = tx.timestamp ? new Date(parseInt(tx.timestamp, 10) / 1000).toISOString() : null;
677
685
  const gasUsed = BigInt(tx.gas_used || "0");
@@ -690,7 +698,7 @@ const $25d5bdd23cba31eb$export$ace043a4f2efe476 = {
690
698
  if (!to || !tokenAddress || to === sender) continue;
691
699
  transfers.push({
692
700
  amount: BigInt(balance),
693
- blockNumber: parseInt(block.block_height, 10),
701
+ blockNumber: parseInt(typedBlock.block_height, 10),
694
702
  from: sender,
695
703
  to: to,
696
704
  timestamp: timestamp,
@@ -703,7 +711,7 @@ const $25d5bdd23cba31eb$export$ace043a4f2efe476 = {
703
711
  const payload = tx.payload;
704
712
  if (payload && payload.function === "0x1::aptos_account::transfer_coins") transfers.push({
705
713
  amount: BigInt(payload.arguments[1]),
706
- blockNumber: parseInt(block.block_height, 10),
714
+ blockNumber: parseInt(typedBlock.block_height, 10),
707
715
  from: sender,
708
716
  to: owner,
709
717
  timestamp: timestamp,
@@ -740,7 +748,7 @@ const $25d5bdd23cba31eb$export$ace043a4f2efe476 = {
740
748
  else finalToken = partial.tokenAddress?.toLowerCase();
741
749
  transfers.push({
742
750
  amount: BigInt(partial.amount || 0),
743
- blockNumber: parseInt(block.block_height, 10),
751
+ blockNumber: parseInt(typedBlock.block_height, 10),
744
752
  from: partial.from,
745
753
  to: partial.to,
746
754
  timestamp: timestamp,
@@ -886,9 +894,9 @@ const $60d24c82dc5feb2e$export$893111d8d332e195 = {
886
894
  match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "CARDANO",
887
895
  transform (block) {
888
896
  let transfers = [];
889
- const blockTimestamp = new Date(block.timestamp).toISOString();
890
- for (const tx of block.transactions || []){
891
- const typedTx = tx;
897
+ const typedBlock = block;
898
+ const blockTimestamp = new Date(typedBlock.timestamp).toISOString();
899
+ for (const typedTx of typedBlock.transactions || []){
892
900
  if (!Array.isArray(typedTx.operations)) continue;
893
901
  const transactionHash = typedTx.transaction_identifier?.hash || "";
894
902
  const inputs = typedTx.operations.filter((op)=>op.type === "input");
@@ -906,7 +914,7 @@ const $60d24c82dc5feb2e$export$893111d8d332e195 = {
906
914
  }, BigInt(0));
907
915
  const transactionFee = sumInputs + BigInt(sumOutputs);
908
916
  const absFee = transactionFee < 0 ? -transactionFee : transactionFee;
909
- const blockNumber = block.block_identifier.index;
917
+ const blockNumber = typedBlock.block_identifier.index;
910
918
  for (const out of outputs){
911
919
  const toAddress = out.account?.address || "";
912
920
  // ADA (native) transfer
@@ -1101,9 +1109,10 @@ const $8deaea1ef39b6485$export$5beebc5708fabf3c = {
1101
1109
  transform (block, _ctx) {
1102
1110
  const TOKEN_TYPES = _ctx.params.tokenTypes || [];
1103
1111
  let transfers = [];
1104
- for (const tx of block.transactions || []){
1112
+ const typedBlock = block;
1113
+ for (const tx of typedBlock.transactions || []){
1105
1114
  if (!tx.receipt) continue;
1106
- const timestamp = new Date(block.timestamp * 1000).toISOString();
1115
+ const timestamp = new Date(typedBlock.timestamp * 1000).toISOString();
1107
1116
  const transactionGasFee = BigInt(tx.receipt.gasUsed) * BigInt(tx.receipt.effectiveGasPrice);
1108
1117
  // track direct ETH transfers
1109
1118
  if (!TOKEN_TYPES.length || TOKEN_TYPES.includes("NATIVE")) {
@@ -1326,9 +1335,9 @@ const $2e46ec862e47c14f$export$400f08bfae9ee97f = {
1326
1335
  match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "RIPPLE",
1327
1336
  transform (block) {
1328
1337
  let transfers = [];
1329
- if (!Array.isArray(block.transactions)) return [];
1330
- for (const rawTx of block.transactions || []){
1331
- const typedTx = rawTx;
1338
+ const typedBlock = block;
1339
+ if (!Array.isArray(typedBlock.transactions)) return [];
1340
+ for (const typedTx of typedBlock.transactions || []){
1332
1341
  if (typedTx.TransactionType !== "Payment") continue;
1333
1342
  const deliveredOrAmount = typedTx.metaData?.delivered_amount ?? typedTx.Amount ?? "0";
1334
1343
  let tokenSymbol = "XRP";
@@ -1343,10 +1352,10 @@ const $2e46ec862e47c14f$export$400f08bfae9ee97f = {
1343
1352
  } else parsedAmount = BigInt(String(deliveredOrAmount));
1344
1353
  transfers.push({
1345
1354
  amount: parsedAmount,
1346
- blockNumber: parseInt(block.ledger_index, 10),
1355
+ blockNumber: parseInt(typedBlock.ledger_index, 10),
1347
1356
  from: typedTx.Account ?? "UNKNOWN",
1348
1357
  memo: typedTx.DestinationTag,
1349
- timestamp: block.close_time_iso ? block.close_time_iso : null,
1358
+ timestamp: typedBlock.close_time_iso || null,
1350
1359
  to: typedTx.Destination ?? "UNKNOWN",
1351
1360
  token: tokenSymbol,
1352
1361
  tokenType: tokenType,
@@ -1388,9 +1397,10 @@ const $3b9b8f5747dcca8e$export$722698bc663d0ac0 = {
1388
1397
  match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "SUI",
1389
1398
  transform (block) {
1390
1399
  let transfers = [];
1391
- const blockNumber = parseInt(block.sequence, 10);
1392
- const blockTimestamp = new Date(parseInt(block.timestamp, 10)).toISOString();
1393
- const transactions = block.transactions || [];
1400
+ const typedBlock = block;
1401
+ const blockNumber = parseInt(typedBlock.sequence, 10);
1402
+ const blockTimestamp = new Date(parseInt(typedBlock.timestamp, 10)).toISOString();
1403
+ const transactions = typedBlock.transactions || [];
1394
1404
  for (const tx of transactions){
1395
1405
  const transactionHash = tx.digest;
1396
1406
  let transactionGasFee = BigInt(0);
@@ -1500,11 +1510,11 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1500
1510
  match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "SVM",
1501
1511
  transform (block) {
1502
1512
  let transfers = [];
1503
- for (const tx of block.transactions || []){
1513
+ const typedBlock = block;
1514
+ for (const svmTx of typedBlock.transactions || []){
1504
1515
  const txTransfers = [];
1505
- const svmTx = tx;
1506
1516
  const txHash = svmTx.transaction.signatures[0];
1507
- const timestamp = block.blockTime ? new Date(block.blockTime * 1000).toISOString() : null;
1517
+ const timestamp = typedBlock.blockTime ? new Date(typedBlock.blockTime * 1000).toISOString() : null;
1508
1518
  const allAccounts = svmTx.transaction.message.accountKeys.concat(svmTx.meta.loadedAddresses.writable).concat(svmTx.meta.loadedAddresses.readonly).map((a)=>typeof a === "string" ? a : a?.pubkey);
1509
1519
  let txFee = BigInt(svmTx.meta.fee);
1510
1520
  if (txFee < BigInt(10)) txFee = txFee * BigInt(Math.pow(10, 9));
@@ -1514,7 +1524,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1514
1524
  // handle tx fee
1515
1525
  txTransfers.push({
1516
1526
  amount: txFee,
1517
- blockNumber: block.parentSlot + 1,
1527
+ blockNumber: typedBlock.parentSlot + 1,
1518
1528
  from: feePayer,
1519
1529
  index: "0",
1520
1530
  timestamp: timestamp,
@@ -1580,7 +1590,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1580
1590
  if (!to) to = svmTx.meta.postTokenBalances.find((ptb)=>ptb.accountIndex === toIdx + 1)?.owner || allAccounts[toIdx] || signer;
1581
1591
  txTransfers.push({
1582
1592
  amount: amount,
1583
- blockNumber: block.parentSlot + 1,
1593
+ blockNumber: typedBlock.parentSlot + 1,
1584
1594
  from: from,
1585
1595
  fromTokenAccount: allAccounts[fromIdx],
1586
1596
  index: index,
@@ -1608,7 +1618,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1608
1618
  }
1609
1619
  txTransfers.push({
1610
1620
  amount: solAmount,
1611
- blockNumber: block.parentSlot + 1,
1621
+ blockNumber: typedBlock.parentSlot + 1,
1612
1622
  from: from,
1613
1623
  index: index,
1614
1624
  timestamp: timestamp,
@@ -1623,7 +1633,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1623
1633
  if (wSolAmount > BigInt(0)) {
1624
1634
  txTransfers.push({
1625
1635
  amount: wSolAmount,
1626
- blockNumber: block.parentSlot + 1,
1636
+ blockNumber: typedBlock.parentSlot + 1,
1627
1637
  from: from,
1628
1638
  index: `${index}-1`,
1629
1639
  timestamp: timestamp,
@@ -1635,7 +1645,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1635
1645
  });
1636
1646
  txTransfers.push({
1637
1647
  amount: wSolAmount,
1638
- blockNumber: block.parentSlot + 1,
1648
+ blockNumber: typedBlock.parentSlot + 1,
1639
1649
  from: $fc7ca671efecc378$var$WSOL_MINT,
1640
1650
  index: `${index}-2`,
1641
1651
  timestamp: timestamp,
@@ -1649,7 +1659,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1649
1659
  } else if (wSolAmount < BigInt(0)) {
1650
1660
  txTransfers.push({
1651
1661
  amount: wSolAmount * BigInt(-1),
1652
- blockNumber: block.parentSlot + 1,
1662
+ blockNumber: typedBlock.parentSlot + 1,
1653
1663
  from: $fc7ca671efecc378$var$WSOL_MINT,
1654
1664
  index: `${index}-1`,
1655
1665
  timestamp: timestamp,
@@ -1661,7 +1671,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1661
1671
  });
1662
1672
  txTransfers.push({
1663
1673
  amount: wSolAmount * BigInt(-1),
1664
- blockNumber: block.parentSlot + 1,
1674
+ blockNumber: typedBlock.parentSlot + 1,
1665
1675
  from: to,
1666
1676
  index: `${index}-2`,
1667
1677
  timestamp: timestamp,
@@ -1687,7 +1697,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1687
1697
  const amount = BigInt(amountData.readBigUInt64LE(0).toString());
1688
1698
  txTransfers.push({
1689
1699
  amount: amount,
1690
- blockNumber: block.parentSlot + 1,
1700
+ blockNumber: typedBlock.parentSlot + 1,
1691
1701
  from: matchingAccounts[0],
1692
1702
  index: index,
1693
1703
  timestamp: timestamp,
@@ -1702,7 +1712,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1702
1712
  const amount = BigInt(amountData.readBigUInt64LE(0).toString());
1703
1713
  txTransfers.push({
1704
1714
  amount: amount,
1705
- blockNumber: block.parentSlot + 1,
1715
+ blockNumber: typedBlock.parentSlot + 1,
1706
1716
  from: matchingAccounts[0],
1707
1717
  index: index,
1708
1718
  timestamp: timestamp,
@@ -1727,7 +1737,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1727
1737
  const amount = BigInt(amountData.readBigUInt64LE(0).toString());
1728
1738
  txTransfers.push({
1729
1739
  amount: amount,
1730
- blockNumber: block.parentSlot + 1,
1740
+ blockNumber: typedBlock.parentSlot + 1,
1731
1741
  from: matchingAccounts[0],
1732
1742
  index: index,
1733
1743
  timestamp: timestamp,
@@ -1766,7 +1776,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1766
1776
  if (toReconcile[t.from] && toReconcile[t.to] && toReconcile[t.from] > 0 && toReconcile[t.from] <= toReconcile[t.to] * BigInt(-1)) {
1767
1777
  txTransfers.push({
1768
1778
  amount: toReconcile[t.from],
1769
- blockNumber: block.parentSlot + 1,
1779
+ blockNumber: typedBlock.parentSlot + 1,
1770
1780
  from: t.to,
1771
1781
  index: t.index + "-1",
1772
1782
  timestamp: timestamp,
@@ -1784,7 +1794,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1784
1794
  if (toReconcile[t.fromTokenAccount]) {
1785
1795
  txTransfers.push({
1786
1796
  amount: t.amount,
1787
- blockNumber: block.parentSlot + 1,
1797
+ blockNumber: typedBlock.parentSlot + 1,
1788
1798
  from: t.fromTokenAccount,
1789
1799
  index: t.index + "-1",
1790
1800
  timestamp: timestamp,
@@ -1800,7 +1810,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1800
1810
  if (toReconcile[t.toTokenAccount]) {
1801
1811
  txTransfers.push({
1802
1812
  amount: t.amount,
1803
- blockNumber: block.parentSlot + 1,
1813
+ blockNumber: typedBlock.parentSlot + 1,
1804
1814
  from: $fc7ca671efecc378$var$WSOL_MINT,
1805
1815
  index: t.index + "-2",
1806
1816
  timestamp: timestamp,
@@ -1820,7 +1830,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1820
1830
  for(const j in toReconcile)if (k !== j && toReconcile[k] === toReconcile[j] * BigInt(-1)) {
1821
1831
  txTransfers.push({
1822
1832
  amount: toReconcile[j] < BigInt(0) ? toReconcile[j] * BigInt(-1) : toReconcile[j],
1823
- blockNumber: block.parentSlot + 1,
1833
+ blockNumber: typedBlock.parentSlot + 1,
1824
1834
  from: toReconcile[j] < BigInt(0) ? j : k,
1825
1835
  timestamp: // index,
1826
1836
  timestamp,
@@ -1851,7 +1861,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1851
1861
  if (toReconcile[from] * BigInt(-1) < amount) amount = toReconcile[from] * BigInt(-1);
1852
1862
  txTransfers.push({
1853
1863
  amount: amount,
1854
- blockNumber: block.parentSlot + 1,
1864
+ blockNumber: typedBlock.parentSlot + 1,
1855
1865
  from: from,
1856
1866
  timestamp: // index,
1857
1867
  timestamp,
@@ -1895,7 +1905,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1895
1905
  // try attributing to unwrapping wSOL
1896
1906
  if (amount > BigInt(0) && post.mint === $fc7ca671efecc378$var$WSOL_MINT) txTransfers.push({
1897
1907
  amount: amount,
1898
- blockNumber: block.parentSlot + 1,
1908
+ blockNumber: typedBlock.parentSlot + 1,
1899
1909
  from: $fc7ca671efecc378$var$WSOL_MINT,
1900
1910
  timestamp: // index,
1901
1911
  timestamp,
@@ -1907,7 +1917,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1907
1917
  });
1908
1918
  else if (!pre && amount > BigInt(0)) txTransfers.push({
1909
1919
  amount: amount,
1910
- blockNumber: block.parentSlot + 1,
1920
+ blockNumber: typedBlock.parentSlot + 1,
1911
1921
  from: post.mint,
1912
1922
  timestamp: // index,
1913
1923
  timestamp,
@@ -3052,10 +3062,10 @@ const $fc745f3cb8eb3f52$export$36783fc9701281c6 = {
3052
3062
  match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "STARKNET",
3053
3063
  transform (block) {
3054
3064
  let transfers = [];
3055
- if (!Array.isArray(block.transactions)) return [];
3056
- for (const tx of block.transactions || []){
3057
- const typedTx = tx;
3058
- const timestamp = block.timestamp ? new Date(block.timestamp * 1000).toISOString() : null;
3065
+ const typedBlock = block;
3066
+ if (!Array.isArray(typedBlock.transactions)) return [];
3067
+ for (const typedTx of typedBlock.transactions || []){
3068
+ const timestamp = typedBlock.timestamp ? new Date(typedBlock.timestamp * 1000).toISOString() : null;
3059
3069
  let transactionGasFee = BigInt(0);
3060
3070
  if (typedTx?.receipt?.actual_fee?.amount) transactionGasFee = BigInt(typedTx.receipt.actual_fee.amount);
3061
3071
  const transactionHash = typedTx.transaction_hash;
@@ -3067,7 +3077,7 @@ const $fc745f3cb8eb3f52$export$36783fc9701281c6 = {
3067
3077
  const amount = BigInt(amountHex);
3068
3078
  transfers.push({
3069
3079
  amount: amount,
3070
- blockNumber: block.block_number,
3080
+ blockNumber: typedBlock.block_number,
3071
3081
  from: from,
3072
3082
  timestamp: timestamp,
3073
3083
  to: to,
@@ -3111,11 +3121,11 @@ const $3478cd776d185339$export$681f497010b17679 = {
3111
3121
  match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "STELLAR",
3112
3122
  transform (block) {
3113
3123
  let transfers = [];
3114
- for (const tx of block.transactions || []){
3115
- const typedTx = tx;
3124
+ const typedBlock = block;
3125
+ for (const typedTx of typedBlock.transactions || []){
3116
3126
  for (const op of typedTx.operations)if (op.type === "payment") transfers.push({
3117
3127
  amount: BigInt(op.amount.replace(".", "")),
3118
- blockNumber: block.sequence,
3128
+ blockNumber: typedBlock.sequence,
3119
3129
  from: op.from,
3120
3130
  memo: typedTx.memo,
3121
3131
  timestamp: typedTx.created_at,
@@ -3227,9 +3237,10 @@ const $cd430dd11c31e572$export$608f3f42810b9879 = {
3227
3237
  match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "TON",
3228
3238
  transform (block) {
3229
3239
  let transfers = [];
3230
- const blockNumber = block.seqno;
3231
- const blockTimestamp = new Date(block.shards?.[0]?.gen_utime * 1000).toISOString();
3232
- for (const shard of block.shards || [])for (const tx of shard.transactions || []){
3240
+ const typedBlock = block;
3241
+ const blockNumber = typedBlock.seqno;
3242
+ const blockTimestamp = new Date(typedBlock.shards?.[0]?.gen_utime * 1000).toISOString();
3243
+ for (const shard of typedBlock.shards || [])for (const tx of shard.transactions || []){
3233
3244
  const transactionLT = tx.transaction_id.lt;
3234
3245
  const transactionHash = tx.transaction_id.hash;
3235
3246
  const transactionFee = BigInt(tx.fee || "0");
@@ -3293,8 +3304,9 @@ const $990c4f660694d8bc$export$4f5322cf4718bd30 = {
3293
3304
  match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "UTXO",
3294
3305
  transform (block) {
3295
3306
  let transfers = [];
3296
- const timestamp = block.time ? new Date(block.time * 1000).toISOString() : null;
3297
- for (const tx of block.tx){
3307
+ const typedBlock = block;
3308
+ const timestamp = typedBlock.time ? new Date(typedBlock.time * 1000).toISOString() : null;
3309
+ for (const tx of typedBlock.tx){
3298
3310
  const vin = tx.vin[0];
3299
3311
  const vout = tx.vout;
3300
3312
  const fromVout = Math.min(vin?.vout || 1000, vout.length - 1);
@@ -3302,7 +3314,7 @@ const $990c4f660694d8bc$export$4f5322cf4718bd30 = {
3302
3314
  if (!fromAddress) continue;
3303
3315
  for (const v of vout)transfers.push({
3304
3316
  amount: BigInt(Math.round(v.value * Math.pow(10, 8))),
3305
- blockNumber: block.height,
3317
+ blockNumber: typedBlock.height,
3306
3318
  from: fromAddress,
3307
3319
  timestamp: timestamp,
3308
3320
  to: v.scriptPubKey.address || v.scriptPubKey.addresses?.[0],
@@ -11105,6 +11117,174 @@ var $59fb8e0333a5d25f$export$2e2bcd8739ae039 = $59fb8e0333a5d25f$var$rawTemplate
11105
11117
  var $faefaad95e5fcca0$exports = {};
11106
11118
 
11107
11119
 
11120
+ var $b4b970cc11bce2a5$exports = {};
11121
+ // Auto-generated by scripts/generate-block-types.ts
11122
+ var $63da2c7fbe36951e$exports = {};
11123
+ // Auto-generated by scripts/generate-block-types.ts
11124
+ // Generated: 2026-03-17
11125
+ // Sources:
11126
+ // https://jiti.indexing.co/networks/aptos/666725417
11127
+ // https://jiti.indexing.co/networks/aptos/666725317
11128
+ // https://jiti.indexing.co/networks/aptos/666724417
11129
+ // Samples: 3
11130
+
11131
+
11132
+ var $22f4303346c10465$exports = {};
11133
+ // Auto-generated by scripts/generate-block-types.ts
11134
+ // Generated: 2026-03-17
11135
+ // Sources:
11136
+ // https://jiti.indexing.co/networks/cardano/13169111
11137
+ // https://jiti.indexing.co/networks/cardano/13169011
11138
+ // https://jiti.indexing.co/networks/cardano/13168111
11139
+ // Samples: 3
11140
+
11141
+
11142
+ var $689707182a8e50d2$exports = {};
11143
+ // Auto-generated by scripts/generate-block-types.ts
11144
+ // Generated: 2026-03-17
11145
+ // Sources:
11146
+ // https://jiti.indexing.co/networks/cosmos/30234630
11147
+ // https://jiti.indexing.co/networks/cosmos/30234530
11148
+ // https://jiti.indexing.co/networks/cosmos/30233630
11149
+ // Samples: 3
11150
+
11151
+
11152
+ var $8e102df1b0c978b9$exports = {};
11153
+ // Auto-generated by scripts/generate-block-types.ts
11154
+ // Generated: 2026-03-17
11155
+ // Sources:
11156
+ // https://jiti.indexing.co/networks/ethereum/24674633
11157
+ // https://jiti.indexing.co/networks/ethereum/24674533
11158
+ // https://jiti.indexing.co/networks/ethereum/24673633
11159
+ // https://jiti.indexing.co/networks/base/43464980
11160
+ // https://jiti.indexing.co/networks/base/43464880
11161
+ // https://jiti.indexing.co/networks/base/43463980
11162
+ // https://jiti.indexing.co/networks/polygon/84299638
11163
+ // https://jiti.indexing.co/networks/polygon/84299538
11164
+ // https://jiti.indexing.co/networks/polygon/84298638
11165
+ // https://jiti.indexing.co/networks/arbitrum/442610729
11166
+ // https://jiti.indexing.co/networks/arbitrum/442610629
11167
+ // https://jiti.indexing.co/networks/arbitrum/442609729
11168
+ // Samples: 12
11169
+
11170
+
11171
+ var $250edd1588e3b00b$exports = {};
11172
+ // Auto-generated by scripts/generate-block-types.ts
11173
+ // Generated: 2026-03-17
11174
+ // Sources:
11175
+ // https://jiti.indexing.co/networks/filecoin/5847092
11176
+ // https://jiti.indexing.co/networks/filecoin/5846992
11177
+ // https://jiti.indexing.co/networks/filecoin/5846092
11178
+ // Samples: 3
11179
+
11180
+
11181
+ var $04dbaca71f47b258$exports = {};
11182
+ // Auto-generated by scripts/generate-block-types.ts
11183
+ // Generated: 2026-03-17
11184
+ // Sources:
11185
+ // https://jiti.indexing.co/networks/ripple/102922872
11186
+ // https://jiti.indexing.co/networks/ripple/102922772
11187
+ // https://jiti.indexing.co/networks/ripple/102921872
11188
+ // Samples: 3
11189
+
11190
+
11191
+ var $e97619bd856df190$exports = {};
11192
+ // Auto-generated by scripts/generate-block-types.ts
11193
+ // Generated: 2026-03-17
11194
+ // Sources:
11195
+ // https://jiti.indexing.co/networks/starknet/7797628
11196
+ // https://jiti.indexing.co/networks/starknet/7797528
11197
+ // https://jiti.indexing.co/networks/starknet/7796628
11198
+ // Samples: 3
11199
+
11200
+
11201
+ var $c8457e155c29716b$exports = {};
11202
+ // Auto-generated by scripts/generate-block-types.ts
11203
+ // Generated: 2026-03-17
11204
+ // Sources:
11205
+ // https://jiti.indexing.co/networks/stellar/61687568
11206
+ // https://jiti.indexing.co/networks/stellar/61687468
11207
+ // https://jiti.indexing.co/networks/stellar/61686568
11208
+ // Samples: 3
11209
+
11210
+
11211
+ var $2c47a7d2c09ba685$exports = {};
11212
+ // Auto-generated by scripts/generate-block-types.ts
11213
+ // Generated: 2026-03-17
11214
+ // Sources:
11215
+ // https://jiti.indexing.co/networks/bittensor/7762563
11216
+ // https://jiti.indexing.co/networks/bittensor/7762463
11217
+ // https://jiti.indexing.co/networks/bittensor/7761563
11218
+ // https://jiti.indexing.co/networks/polkadot/13494424
11219
+ // https://jiti.indexing.co/networks/polkadot/13494324
11220
+ // https://jiti.indexing.co/networks/polkadot/13493424
11221
+ // Samples: 6
11222
+
11223
+
11224
+ var $de65544ccdf7550c$exports = {};
11225
+ // Auto-generated by scripts/generate-block-types.ts
11226
+ // Generated: 2026-03-17
11227
+ // Sources:
11228
+ // https://jiti.indexing.co/networks/sui/255195515
11229
+ // https://jiti.indexing.co/networks/sui/255195415
11230
+ // https://jiti.indexing.co/networks/sui/255194515
11231
+ // Samples: 3
11232
+
11233
+
11234
+ var $bfa1637983c7bdd8$exports = {};
11235
+ // Auto-generated by scripts/generate-block-types.ts
11236
+ // Generated: 2026-03-17
11237
+ // Sources:
11238
+ // https://jiti.indexing.co/networks/solana/406934053
11239
+ // https://jiti.indexing.co/networks/solana/406933953
11240
+ // https://jiti.indexing.co/networks/solana/406933053
11241
+ // https://jiti.indexing.co/networks/eclipse/143074735
11242
+ // https://jiti.indexing.co/networks/eclipse/143074635
11243
+ // https://jiti.indexing.co/networks/eclipse/143073735
11244
+ // Samples: 6
11245
+
11246
+
11247
+ var $4828ba704a8a504f$exports = {};
11248
+ // Auto-generated by scripts/generate-block-types.ts
11249
+ // Generated: 2026-03-17
11250
+ // Sources:
11251
+ // https://jiti.indexing.co/networks/ton/58384846
11252
+ // https://jiti.indexing.co/networks/ton/58384746
11253
+ // https://jiti.indexing.co/networks/ton/58383846
11254
+ // Samples: 3
11255
+
11256
+
11257
+ var $4a8e5fd52443a474$exports = {};
11258
+ // Auto-generated by scripts/generate-block-types.ts
11259
+ // Generated: 2026-03-17
11260
+ // Sources:
11261
+ // https://jiti.indexing.co/networks/bitcoin/940963
11262
+ // https://jiti.indexing.co/networks/bitcoin/940863
11263
+ // https://jiti.indexing.co/networks/bitcoin/939963
11264
+ // https://jiti.indexing.co/networks/dogecoin/6126894
11265
+ // https://jiti.indexing.co/networks/dogecoin/6126794
11266
+ // https://jiti.indexing.co/networks/dogecoin/6125894
11267
+ // https://jiti.indexing.co/networks/zcash/3275181
11268
+ // https://jiti.indexing.co/networks/zcash/3275081
11269
+ // https://jiti.indexing.co/networks/zcash/3274181
11270
+ // Samples: 9
11271
+
11272
+
11273
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $63da2c7fbe36951e$exports);
11274
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $22f4303346c10465$exports);
11275
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $689707182a8e50d2$exports);
11276
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $8e102df1b0c978b9$exports);
11277
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $250edd1588e3b00b$exports);
11278
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $04dbaca71f47b258$exports);
11279
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $e97619bd856df190$exports);
11280
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $c8457e155c29716b$exports);
11281
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $2c47a7d2c09ba685$exports);
11282
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $de65544ccdf7550c$exports);
11283
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $bfa1637983c7bdd8$exports);
11284
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $4828ba704a8a504f$exports);
11285
+ $parcel$exportWildcard($b4b970cc11bce2a5$exports, $4a8e5fd52443a474$exports);
11286
+
11287
+
11108
11288
  const $882b6d93070905b3$export$eab97d15b1788b8d = {
11109
11289
  ...$d7167569386d0d4c$exports
11110
11290
  };
@@ -11118,6 +11298,7 @@ function $882b6d93070905b3$export$a07bfd14bbc36e4b(key) {
11118
11298
  return $882b6d93070905b3$export$a8fc3402335b0b04[key];
11119
11299
  }
11120
11300
  $parcel$exportWildcard(module.exports, $faefaad95e5fcca0$exports);
11301
+ $parcel$exportWildcard(module.exports, $b4b970cc11bce2a5$exports);
11121
11302
 
11122
11303
 
11123
11304
  //# sourceMappingURL=main.js.map