@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 +251 -70
- package/dist/main.js.map +1 -1
- package/dist/module.js +250 -70
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +2020 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -1
package/dist/module.js
CHANGED
|
@@ -112,10 +112,7 @@ function $82293038337e7b3f$export$363ea1acea6aebd6(block) {
|
|
|
112
112
|
case "CARDANO":
|
|
113
113
|
return block.block_identifier.index;
|
|
114
114
|
case "COSMOS":
|
|
115
|
-
|
|
116
|
-
const typedBlock = block;
|
|
117
|
-
return Number(typedBlock.block.header.height);
|
|
118
|
-
}
|
|
115
|
+
return Number(block.block.header.height);
|
|
119
116
|
case "EVM":
|
|
120
117
|
return block.number;
|
|
121
118
|
case "FILECOIN":
|
|
@@ -157,15 +154,12 @@ function $e23c2d0dc0ca1317$export$eda46897866e27cc(block) {
|
|
|
157
154
|
for (const tx of block.transactions || [])hashes.add(tx.hash);
|
|
158
155
|
break;
|
|
159
156
|
case "CARDANO":
|
|
160
|
-
for (const tx of block.transactions || [])
|
|
161
|
-
const typedTx = tx;
|
|
162
|
-
hashes.add(typedTx.transaction_identifier?.hash);
|
|
163
|
-
}
|
|
157
|
+
for (const tx of block.transactions || [])hashes.add(tx.transaction_identifier?.hash);
|
|
164
158
|
break;
|
|
165
159
|
case "COSMOS":
|
|
166
160
|
{
|
|
167
|
-
const
|
|
168
|
-
for (const txRaw of
|
|
161
|
+
const cosmosBlock = block;
|
|
162
|
+
for (const txRaw of cosmosBlock.block.data.txs || []){
|
|
169
163
|
const txHash = (0, $hgUW1$sha256)(new Uint8Array($e23c2d0dc0ca1317$require$Buffer.from(txRaw, "base64")));
|
|
170
164
|
hashes.add(txHash.slice(2).toUpperCase());
|
|
171
165
|
}
|
|
@@ -176,8 +170,8 @@ function $e23c2d0dc0ca1317$export$eda46897866e27cc(block) {
|
|
|
176
170
|
break;
|
|
177
171
|
case "FILECOIN":
|
|
178
172
|
{
|
|
179
|
-
const
|
|
180
|
-
for (const msgGroup of
|
|
173
|
+
const filecoinBlock = block;
|
|
174
|
+
for (const msgGroup of filecoinBlock.messages){
|
|
181
175
|
const secpkMessages = msgGroup.blockMessages.SecpkMessages || [];
|
|
182
176
|
for (const msg of secpkMessages)hashes.add(msg.CID["/"]);
|
|
183
177
|
}
|
|
@@ -202,8 +196,11 @@ function $e23c2d0dc0ca1317$export$eda46897866e27cc(block) {
|
|
|
202
196
|
for (const tx of block.transactions || [])hashes.add(tx.transaction.signatures[0]);
|
|
203
197
|
break;
|
|
204
198
|
case "TON":
|
|
205
|
-
|
|
206
|
-
|
|
199
|
+
{
|
|
200
|
+
const tonBlock = block;
|
|
201
|
+
for (const shard of tonBlock.shards || [])for (const tx of shard.transactions || [])hashes.add(tx.transaction_id.hash);
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
207
204
|
case "UTXO":
|
|
208
205
|
for (const tx of block.tx)hashes.add(tx.txid);
|
|
209
206
|
break;
|
|
@@ -224,7 +221,10 @@ function $cc5213c20a6615f3$export$ec64f6024312bb14(block) {
|
|
|
224
221
|
const vm = (0, $09654dffcb68affa$export$ae001c77434c5340)(block);
|
|
225
222
|
switch(vm){
|
|
226
223
|
case "APTOS":
|
|
227
|
-
|
|
224
|
+
{
|
|
225
|
+
const aptosBlock = block;
|
|
226
|
+
return new Date(parseInt(aptosBlock.transactions[0].timestamp, 10) / 1000);
|
|
227
|
+
}
|
|
228
228
|
case "CARDANO":
|
|
229
229
|
return new Date(block.timestamp);
|
|
230
230
|
case "COSMOS":
|
|
@@ -238,10 +238,14 @@ function $cc5213c20a6615f3$export$ec64f6024312bb14(block) {
|
|
|
238
238
|
case "STARKNET":
|
|
239
239
|
return new Date(block.timestamp * 1000);
|
|
240
240
|
case "STELLAR":
|
|
241
|
-
|
|
241
|
+
{
|
|
242
|
+
const stellarBlock = block;
|
|
243
|
+
return new Date(stellarBlock.transactions[0].created_at);
|
|
244
|
+
}
|
|
242
245
|
case "SUBSTRATE":
|
|
243
246
|
{
|
|
244
|
-
const
|
|
247
|
+
const substrateBlock = block;
|
|
248
|
+
const timestampExtrinsic = substrateBlock.extrinsics.find((ex)=>ex.method === "timestamp.set");
|
|
245
249
|
return new Date(Number(timestampExtrinsic.args[0].toString().replace(/,/g, "")));
|
|
246
250
|
}
|
|
247
251
|
case "SUI":
|
|
@@ -249,7 +253,10 @@ function $cc5213c20a6615f3$export$ec64f6024312bb14(block) {
|
|
|
249
253
|
case "SVM":
|
|
250
254
|
return new Date(block.blockTime * 1000);
|
|
251
255
|
case "TON":
|
|
252
|
-
|
|
256
|
+
{
|
|
257
|
+
const tonBlock = block;
|
|
258
|
+
return new Date(tonBlock.shards?.[0]?.gen_utime * 1000);
|
|
259
|
+
}
|
|
253
260
|
case "UTXO":
|
|
254
261
|
return new Date(block.time * 1000);
|
|
255
262
|
}
|
|
@@ -662,7 +669,8 @@ const $bea1ed486f96b980$export$ace043a4f2efe476 = {
|
|
|
662
669
|
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "APTOS",
|
|
663
670
|
transform (block) {
|
|
664
671
|
let transfers = [];
|
|
665
|
-
|
|
672
|
+
const typedBlock = block;
|
|
673
|
+
for (const tx of typedBlock.transactions || []){
|
|
666
674
|
if (!tx?.events || !Array.isArray(tx.events)) continue;
|
|
667
675
|
const timestamp = tx.timestamp ? new Date(parseInt(tx.timestamp, 10) / 1000).toISOString() : null;
|
|
668
676
|
const gasUsed = BigInt(tx.gas_used || "0");
|
|
@@ -681,7 +689,7 @@ const $bea1ed486f96b980$export$ace043a4f2efe476 = {
|
|
|
681
689
|
if (!to || !tokenAddress || to === sender) continue;
|
|
682
690
|
transfers.push({
|
|
683
691
|
amount: BigInt(balance),
|
|
684
|
-
blockNumber: parseInt(
|
|
692
|
+
blockNumber: parseInt(typedBlock.block_height, 10),
|
|
685
693
|
from: sender,
|
|
686
694
|
to: to,
|
|
687
695
|
timestamp: timestamp,
|
|
@@ -694,7 +702,7 @@ const $bea1ed486f96b980$export$ace043a4f2efe476 = {
|
|
|
694
702
|
const payload = tx.payload;
|
|
695
703
|
if (payload && payload.function === "0x1::aptos_account::transfer_coins") transfers.push({
|
|
696
704
|
amount: BigInt(payload.arguments[1]),
|
|
697
|
-
blockNumber: parseInt(
|
|
705
|
+
blockNumber: parseInt(typedBlock.block_height, 10),
|
|
698
706
|
from: sender,
|
|
699
707
|
to: owner,
|
|
700
708
|
timestamp: timestamp,
|
|
@@ -731,7 +739,7 @@ const $bea1ed486f96b980$export$ace043a4f2efe476 = {
|
|
|
731
739
|
else finalToken = partial.tokenAddress?.toLowerCase();
|
|
732
740
|
transfers.push({
|
|
733
741
|
amount: BigInt(partial.amount || 0),
|
|
734
|
-
blockNumber: parseInt(
|
|
742
|
+
blockNumber: parseInt(typedBlock.block_height, 10),
|
|
735
743
|
from: partial.from,
|
|
736
744
|
to: partial.to,
|
|
737
745
|
timestamp: timestamp,
|
|
@@ -877,9 +885,9 @@ const $8860a67278817de8$export$893111d8d332e195 = {
|
|
|
877
885
|
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "CARDANO",
|
|
878
886
|
transform (block) {
|
|
879
887
|
let transfers = [];
|
|
880
|
-
const
|
|
881
|
-
|
|
882
|
-
|
|
888
|
+
const typedBlock = block;
|
|
889
|
+
const blockTimestamp = new Date(typedBlock.timestamp).toISOString();
|
|
890
|
+
for (const typedTx of typedBlock.transactions || []){
|
|
883
891
|
if (!Array.isArray(typedTx.operations)) continue;
|
|
884
892
|
const transactionHash = typedTx.transaction_identifier?.hash || "";
|
|
885
893
|
const inputs = typedTx.operations.filter((op)=>op.type === "input");
|
|
@@ -897,7 +905,7 @@ const $8860a67278817de8$export$893111d8d332e195 = {
|
|
|
897
905
|
}, BigInt(0));
|
|
898
906
|
const transactionFee = sumInputs + BigInt(sumOutputs);
|
|
899
907
|
const absFee = transactionFee < 0 ? -transactionFee : transactionFee;
|
|
900
|
-
const blockNumber =
|
|
908
|
+
const blockNumber = typedBlock.block_identifier.index;
|
|
901
909
|
for (const out of outputs){
|
|
902
910
|
const toAddress = out.account?.address || "";
|
|
903
911
|
// ADA (native) transfer
|
|
@@ -1092,9 +1100,10 @@ const $5ec62a2088d070a8$export$5beebc5708fabf3c = {
|
|
|
1092
1100
|
transform (block, _ctx) {
|
|
1093
1101
|
const TOKEN_TYPES = _ctx.params.tokenTypes || [];
|
|
1094
1102
|
let transfers = [];
|
|
1095
|
-
|
|
1103
|
+
const typedBlock = block;
|
|
1104
|
+
for (const tx of typedBlock.transactions || []){
|
|
1096
1105
|
if (!tx.receipt) continue;
|
|
1097
|
-
const timestamp = new Date(
|
|
1106
|
+
const timestamp = new Date(typedBlock.timestamp * 1000).toISOString();
|
|
1098
1107
|
const transactionGasFee = BigInt(tx.receipt.gasUsed) * BigInt(tx.receipt.effectiveGasPrice);
|
|
1099
1108
|
// track direct ETH transfers
|
|
1100
1109
|
if (!TOKEN_TYPES.length || TOKEN_TYPES.includes("NATIVE")) {
|
|
@@ -1317,9 +1326,9 @@ const $07b3982e2fc4c8b2$export$400f08bfae9ee97f = {
|
|
|
1317
1326
|
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "RIPPLE",
|
|
1318
1327
|
transform (block) {
|
|
1319
1328
|
let transfers = [];
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1329
|
+
const typedBlock = block;
|
|
1330
|
+
if (!Array.isArray(typedBlock.transactions)) return [];
|
|
1331
|
+
for (const typedTx of typedBlock.transactions || []){
|
|
1323
1332
|
if (typedTx.TransactionType !== "Payment") continue;
|
|
1324
1333
|
const deliveredOrAmount = typedTx.metaData?.delivered_amount ?? typedTx.Amount ?? "0";
|
|
1325
1334
|
let tokenSymbol = "XRP";
|
|
@@ -1334,10 +1343,10 @@ const $07b3982e2fc4c8b2$export$400f08bfae9ee97f = {
|
|
|
1334
1343
|
} else parsedAmount = BigInt(String(deliveredOrAmount));
|
|
1335
1344
|
transfers.push({
|
|
1336
1345
|
amount: parsedAmount,
|
|
1337
|
-
blockNumber: parseInt(
|
|
1346
|
+
blockNumber: parseInt(typedBlock.ledger_index, 10),
|
|
1338
1347
|
from: typedTx.Account ?? "UNKNOWN",
|
|
1339
1348
|
memo: typedTx.DestinationTag,
|
|
1340
|
-
timestamp:
|
|
1349
|
+
timestamp: typedBlock.close_time_iso || null,
|
|
1341
1350
|
to: typedTx.Destination ?? "UNKNOWN",
|
|
1342
1351
|
token: tokenSymbol,
|
|
1343
1352
|
tokenType: tokenType,
|
|
@@ -1379,9 +1388,10 @@ const $f9f6601c9222cc8e$export$722698bc663d0ac0 = {
|
|
|
1379
1388
|
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "SUI",
|
|
1380
1389
|
transform (block) {
|
|
1381
1390
|
let transfers = [];
|
|
1382
|
-
const
|
|
1383
|
-
const
|
|
1384
|
-
const
|
|
1391
|
+
const typedBlock = block;
|
|
1392
|
+
const blockNumber = parseInt(typedBlock.sequence, 10);
|
|
1393
|
+
const blockTimestamp = new Date(parseInt(typedBlock.timestamp, 10)).toISOString();
|
|
1394
|
+
const transactions = typedBlock.transactions || [];
|
|
1385
1395
|
for (const tx of transactions){
|
|
1386
1396
|
const transactionHash = tx.digest;
|
|
1387
1397
|
let transactionGasFee = BigInt(0);
|
|
@@ -1491,11 +1501,11 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1491
1501
|
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "SVM",
|
|
1492
1502
|
transform (block) {
|
|
1493
1503
|
let transfers = [];
|
|
1494
|
-
|
|
1504
|
+
const typedBlock = block;
|
|
1505
|
+
for (const svmTx of typedBlock.transactions || []){
|
|
1495
1506
|
const txTransfers = [];
|
|
1496
|
-
const svmTx = tx;
|
|
1497
1507
|
const txHash = svmTx.transaction.signatures[0];
|
|
1498
|
-
const timestamp =
|
|
1508
|
+
const timestamp = typedBlock.blockTime ? new Date(typedBlock.blockTime * 1000).toISOString() : null;
|
|
1499
1509
|
const allAccounts = svmTx.transaction.message.accountKeys.concat(svmTx.meta.loadedAddresses.writable).concat(svmTx.meta.loadedAddresses.readonly).map((a)=>typeof a === "string" ? a : a?.pubkey);
|
|
1500
1510
|
let txFee = BigInt(svmTx.meta.fee);
|
|
1501
1511
|
if (txFee < BigInt(10)) txFee = txFee * BigInt(Math.pow(10, 9));
|
|
@@ -1505,7 +1515,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1505
1515
|
// handle tx fee
|
|
1506
1516
|
txTransfers.push({
|
|
1507
1517
|
amount: txFee,
|
|
1508
|
-
blockNumber:
|
|
1518
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1509
1519
|
from: feePayer,
|
|
1510
1520
|
index: "0",
|
|
1511
1521
|
timestamp: timestamp,
|
|
@@ -1571,7 +1581,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1571
1581
|
if (!to) to = svmTx.meta.postTokenBalances.find((ptb)=>ptb.accountIndex === toIdx + 1)?.owner || allAccounts[toIdx] || signer;
|
|
1572
1582
|
txTransfers.push({
|
|
1573
1583
|
amount: amount,
|
|
1574
|
-
blockNumber:
|
|
1584
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1575
1585
|
from: from,
|
|
1576
1586
|
fromTokenAccount: allAccounts[fromIdx],
|
|
1577
1587
|
index: index,
|
|
@@ -1599,7 +1609,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1599
1609
|
}
|
|
1600
1610
|
txTransfers.push({
|
|
1601
1611
|
amount: solAmount,
|
|
1602
|
-
blockNumber:
|
|
1612
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1603
1613
|
from: from,
|
|
1604
1614
|
index: index,
|
|
1605
1615
|
timestamp: timestamp,
|
|
@@ -1614,7 +1624,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1614
1624
|
if (wSolAmount > BigInt(0)) {
|
|
1615
1625
|
txTransfers.push({
|
|
1616
1626
|
amount: wSolAmount,
|
|
1617
|
-
blockNumber:
|
|
1627
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1618
1628
|
from: from,
|
|
1619
1629
|
index: `${index}-1`,
|
|
1620
1630
|
timestamp: timestamp,
|
|
@@ -1626,7 +1636,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1626
1636
|
});
|
|
1627
1637
|
txTransfers.push({
|
|
1628
1638
|
amount: wSolAmount,
|
|
1629
|
-
blockNumber:
|
|
1639
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1630
1640
|
from: $64e1e522540ffc4e$var$WSOL_MINT,
|
|
1631
1641
|
index: `${index}-2`,
|
|
1632
1642
|
timestamp: timestamp,
|
|
@@ -1640,7 +1650,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1640
1650
|
} else if (wSolAmount < BigInt(0)) {
|
|
1641
1651
|
txTransfers.push({
|
|
1642
1652
|
amount: wSolAmount * BigInt(-1),
|
|
1643
|
-
blockNumber:
|
|
1653
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1644
1654
|
from: $64e1e522540ffc4e$var$WSOL_MINT,
|
|
1645
1655
|
index: `${index}-1`,
|
|
1646
1656
|
timestamp: timestamp,
|
|
@@ -1652,7 +1662,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1652
1662
|
});
|
|
1653
1663
|
txTransfers.push({
|
|
1654
1664
|
amount: wSolAmount * BigInt(-1),
|
|
1655
|
-
blockNumber:
|
|
1665
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1656
1666
|
from: to,
|
|
1657
1667
|
index: `${index}-2`,
|
|
1658
1668
|
timestamp: timestamp,
|
|
@@ -1678,7 +1688,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1678
1688
|
const amount = BigInt(amountData.readBigUInt64LE(0).toString());
|
|
1679
1689
|
txTransfers.push({
|
|
1680
1690
|
amount: amount,
|
|
1681
|
-
blockNumber:
|
|
1691
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1682
1692
|
from: matchingAccounts[0],
|
|
1683
1693
|
index: index,
|
|
1684
1694
|
timestamp: timestamp,
|
|
@@ -1693,7 +1703,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1693
1703
|
const amount = BigInt(amountData.readBigUInt64LE(0).toString());
|
|
1694
1704
|
txTransfers.push({
|
|
1695
1705
|
amount: amount,
|
|
1696
|
-
blockNumber:
|
|
1706
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1697
1707
|
from: matchingAccounts[0],
|
|
1698
1708
|
index: index,
|
|
1699
1709
|
timestamp: timestamp,
|
|
@@ -1718,7 +1728,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1718
1728
|
const amount = BigInt(amountData.readBigUInt64LE(0).toString());
|
|
1719
1729
|
txTransfers.push({
|
|
1720
1730
|
amount: amount,
|
|
1721
|
-
blockNumber:
|
|
1731
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1722
1732
|
from: matchingAccounts[0],
|
|
1723
1733
|
index: index,
|
|
1724
1734
|
timestamp: timestamp,
|
|
@@ -1757,7 +1767,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1757
1767
|
if (toReconcile[t.from] && toReconcile[t.to] && toReconcile[t.from] > 0 && toReconcile[t.from] <= toReconcile[t.to] * BigInt(-1)) {
|
|
1758
1768
|
txTransfers.push({
|
|
1759
1769
|
amount: toReconcile[t.from],
|
|
1760
|
-
blockNumber:
|
|
1770
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1761
1771
|
from: t.to,
|
|
1762
1772
|
index: t.index + "-1",
|
|
1763
1773
|
timestamp: timestamp,
|
|
@@ -1775,7 +1785,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1775
1785
|
if (toReconcile[t.fromTokenAccount]) {
|
|
1776
1786
|
txTransfers.push({
|
|
1777
1787
|
amount: t.amount,
|
|
1778
|
-
blockNumber:
|
|
1788
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1779
1789
|
from: t.fromTokenAccount,
|
|
1780
1790
|
index: t.index + "-1",
|
|
1781
1791
|
timestamp: timestamp,
|
|
@@ -1791,7 +1801,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1791
1801
|
if (toReconcile[t.toTokenAccount]) {
|
|
1792
1802
|
txTransfers.push({
|
|
1793
1803
|
amount: t.amount,
|
|
1794
|
-
blockNumber:
|
|
1804
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1795
1805
|
from: $64e1e522540ffc4e$var$WSOL_MINT,
|
|
1796
1806
|
index: t.index + "-2",
|
|
1797
1807
|
timestamp: timestamp,
|
|
@@ -1811,7 +1821,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1811
1821
|
for(const j in toReconcile)if (k !== j && toReconcile[k] === toReconcile[j] * BigInt(-1)) {
|
|
1812
1822
|
txTransfers.push({
|
|
1813
1823
|
amount: toReconcile[j] < BigInt(0) ? toReconcile[j] * BigInt(-1) : toReconcile[j],
|
|
1814
|
-
blockNumber:
|
|
1824
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1815
1825
|
from: toReconcile[j] < BigInt(0) ? j : k,
|
|
1816
1826
|
timestamp: // index,
|
|
1817
1827
|
timestamp,
|
|
@@ -1842,7 +1852,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1842
1852
|
if (toReconcile[from] * BigInt(-1) < amount) amount = toReconcile[from] * BigInt(-1);
|
|
1843
1853
|
txTransfers.push({
|
|
1844
1854
|
amount: amount,
|
|
1845
|
-
blockNumber:
|
|
1855
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1846
1856
|
from: from,
|
|
1847
1857
|
timestamp: // index,
|
|
1848
1858
|
timestamp,
|
|
@@ -1886,7 +1896,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1886
1896
|
// try attributing to unwrapping wSOL
|
|
1887
1897
|
if (amount > BigInt(0) && post.mint === $64e1e522540ffc4e$var$WSOL_MINT) txTransfers.push({
|
|
1888
1898
|
amount: amount,
|
|
1889
|
-
blockNumber:
|
|
1899
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1890
1900
|
from: $64e1e522540ffc4e$var$WSOL_MINT,
|
|
1891
1901
|
timestamp: // index,
|
|
1892
1902
|
timestamp,
|
|
@@ -1898,7 +1908,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1898
1908
|
});
|
|
1899
1909
|
else if (!pre && amount > BigInt(0)) txTransfers.push({
|
|
1900
1910
|
amount: amount,
|
|
1901
|
-
blockNumber:
|
|
1911
|
+
blockNumber: typedBlock.parentSlot + 1,
|
|
1902
1912
|
from: post.mint,
|
|
1903
1913
|
timestamp: // index,
|
|
1904
1914
|
timestamp,
|
|
@@ -3043,10 +3053,10 @@ const $f7da547a9d6b4fc0$export$36783fc9701281c6 = {
|
|
|
3043
3053
|
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "STARKNET",
|
|
3044
3054
|
transform (block) {
|
|
3045
3055
|
let transfers = [];
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
const timestamp =
|
|
3056
|
+
const typedBlock = block;
|
|
3057
|
+
if (!Array.isArray(typedBlock.transactions)) return [];
|
|
3058
|
+
for (const typedTx of typedBlock.transactions || []){
|
|
3059
|
+
const timestamp = typedBlock.timestamp ? new Date(typedBlock.timestamp * 1000).toISOString() : null;
|
|
3050
3060
|
let transactionGasFee = BigInt(0);
|
|
3051
3061
|
if (typedTx?.receipt?.actual_fee?.amount) transactionGasFee = BigInt(typedTx.receipt.actual_fee.amount);
|
|
3052
3062
|
const transactionHash = typedTx.transaction_hash;
|
|
@@ -3058,7 +3068,7 @@ const $f7da547a9d6b4fc0$export$36783fc9701281c6 = {
|
|
|
3058
3068
|
const amount = BigInt(amountHex);
|
|
3059
3069
|
transfers.push({
|
|
3060
3070
|
amount: amount,
|
|
3061
|
-
blockNumber:
|
|
3071
|
+
blockNumber: typedBlock.block_number,
|
|
3062
3072
|
from: from,
|
|
3063
3073
|
timestamp: timestamp,
|
|
3064
3074
|
to: to,
|
|
@@ -3102,11 +3112,11 @@ const $725699ccb951d76d$export$681f497010b17679 = {
|
|
|
3102
3112
|
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "STELLAR",
|
|
3103
3113
|
transform (block) {
|
|
3104
3114
|
let transfers = [];
|
|
3105
|
-
|
|
3106
|
-
|
|
3115
|
+
const typedBlock = block;
|
|
3116
|
+
for (const typedTx of typedBlock.transactions || []){
|
|
3107
3117
|
for (const op of typedTx.operations)if (op.type === "payment") transfers.push({
|
|
3108
3118
|
amount: BigInt(op.amount.replace(".", "")),
|
|
3109
|
-
blockNumber:
|
|
3119
|
+
blockNumber: typedBlock.sequence,
|
|
3110
3120
|
from: op.from,
|
|
3111
3121
|
memo: typedTx.memo,
|
|
3112
3122
|
timestamp: typedTx.created_at,
|
|
@@ -3218,9 +3228,10 @@ const $e97546fe39f2692a$export$608f3f42810b9879 = {
|
|
|
3218
3228
|
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "TON",
|
|
3219
3229
|
transform (block) {
|
|
3220
3230
|
let transfers = [];
|
|
3221
|
-
const
|
|
3222
|
-
const
|
|
3223
|
-
|
|
3231
|
+
const typedBlock = block;
|
|
3232
|
+
const blockNumber = typedBlock.seqno;
|
|
3233
|
+
const blockTimestamp = new Date(typedBlock.shards?.[0]?.gen_utime * 1000).toISOString();
|
|
3234
|
+
for (const shard of typedBlock.shards || [])for (const tx of shard.transactions || []){
|
|
3224
3235
|
const transactionLT = tx.transaction_id.lt;
|
|
3225
3236
|
const transactionHash = tx.transaction_id.hash;
|
|
3226
3237
|
const transactionFee = BigInt(tx.fee || "0");
|
|
@@ -3284,8 +3295,9 @@ const $532fac82d96b89f2$export$4f5322cf4718bd30 = {
|
|
|
3284
3295
|
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "UTXO",
|
|
3285
3296
|
transform (block) {
|
|
3286
3297
|
let transfers = [];
|
|
3287
|
-
const
|
|
3288
|
-
|
|
3298
|
+
const typedBlock = block;
|
|
3299
|
+
const timestamp = typedBlock.time ? new Date(typedBlock.time * 1000).toISOString() : null;
|
|
3300
|
+
for (const tx of typedBlock.tx){
|
|
3289
3301
|
const vin = tx.vin[0];
|
|
3290
3302
|
const vout = tx.vout;
|
|
3291
3303
|
const fromVout = Math.min(vin?.vout || 1000, vout.length - 1);
|
|
@@ -3293,7 +3305,7 @@ const $532fac82d96b89f2$export$4f5322cf4718bd30 = {
|
|
|
3293
3305
|
if (!fromAddress) continue;
|
|
3294
3306
|
for (const v of vout)transfers.push({
|
|
3295
3307
|
amount: BigInt(Math.round(v.value * Math.pow(10, 8))),
|
|
3296
|
-
blockNumber:
|
|
3308
|
+
blockNumber: typedBlock.height,
|
|
3297
3309
|
from: fromAddress,
|
|
3298
3310
|
timestamp: timestamp,
|
|
3299
3311
|
to: v.scriptPubKey.address || v.scriptPubKey.addresses?.[0],
|
|
@@ -11096,6 +11108,174 @@ var $a4b307b872b01f44$export$2e2bcd8739ae039 = $a4b307b872b01f44$var$rawTemplate
|
|
|
11096
11108
|
var $81c1b644006d48ec$exports = {};
|
|
11097
11109
|
|
|
11098
11110
|
|
|
11111
|
+
var $a4e0e4b4a62175c4$exports = {};
|
|
11112
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11113
|
+
var $cdaccca5755c2b25$exports = {};
|
|
11114
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11115
|
+
// Generated: 2026-03-17
|
|
11116
|
+
// Sources:
|
|
11117
|
+
// https://jiti.indexing.co/networks/aptos/666725417
|
|
11118
|
+
// https://jiti.indexing.co/networks/aptos/666725317
|
|
11119
|
+
// https://jiti.indexing.co/networks/aptos/666724417
|
|
11120
|
+
// Samples: 3
|
|
11121
|
+
|
|
11122
|
+
|
|
11123
|
+
var $ac91e39aa31e7121$exports = {};
|
|
11124
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11125
|
+
// Generated: 2026-03-17
|
|
11126
|
+
// Sources:
|
|
11127
|
+
// https://jiti.indexing.co/networks/cardano/13169111
|
|
11128
|
+
// https://jiti.indexing.co/networks/cardano/13169011
|
|
11129
|
+
// https://jiti.indexing.co/networks/cardano/13168111
|
|
11130
|
+
// Samples: 3
|
|
11131
|
+
|
|
11132
|
+
|
|
11133
|
+
var $fbc7264686ecdc8f$exports = {};
|
|
11134
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11135
|
+
// Generated: 2026-03-17
|
|
11136
|
+
// Sources:
|
|
11137
|
+
// https://jiti.indexing.co/networks/cosmos/30234630
|
|
11138
|
+
// https://jiti.indexing.co/networks/cosmos/30234530
|
|
11139
|
+
// https://jiti.indexing.co/networks/cosmos/30233630
|
|
11140
|
+
// Samples: 3
|
|
11141
|
+
|
|
11142
|
+
|
|
11143
|
+
var $a024eb8aae4121fc$exports = {};
|
|
11144
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11145
|
+
// Generated: 2026-03-17
|
|
11146
|
+
// Sources:
|
|
11147
|
+
// https://jiti.indexing.co/networks/ethereum/24674633
|
|
11148
|
+
// https://jiti.indexing.co/networks/ethereum/24674533
|
|
11149
|
+
// https://jiti.indexing.co/networks/ethereum/24673633
|
|
11150
|
+
// https://jiti.indexing.co/networks/base/43464980
|
|
11151
|
+
// https://jiti.indexing.co/networks/base/43464880
|
|
11152
|
+
// https://jiti.indexing.co/networks/base/43463980
|
|
11153
|
+
// https://jiti.indexing.co/networks/polygon/84299638
|
|
11154
|
+
// https://jiti.indexing.co/networks/polygon/84299538
|
|
11155
|
+
// https://jiti.indexing.co/networks/polygon/84298638
|
|
11156
|
+
// https://jiti.indexing.co/networks/arbitrum/442610729
|
|
11157
|
+
// https://jiti.indexing.co/networks/arbitrum/442610629
|
|
11158
|
+
// https://jiti.indexing.co/networks/arbitrum/442609729
|
|
11159
|
+
// Samples: 12
|
|
11160
|
+
|
|
11161
|
+
|
|
11162
|
+
var $3b641f1d93f8e861$exports = {};
|
|
11163
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11164
|
+
// Generated: 2026-03-17
|
|
11165
|
+
// Sources:
|
|
11166
|
+
// https://jiti.indexing.co/networks/filecoin/5847092
|
|
11167
|
+
// https://jiti.indexing.co/networks/filecoin/5846992
|
|
11168
|
+
// https://jiti.indexing.co/networks/filecoin/5846092
|
|
11169
|
+
// Samples: 3
|
|
11170
|
+
|
|
11171
|
+
|
|
11172
|
+
var $a507a65ae307f974$exports = {};
|
|
11173
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11174
|
+
// Generated: 2026-03-17
|
|
11175
|
+
// Sources:
|
|
11176
|
+
// https://jiti.indexing.co/networks/ripple/102922872
|
|
11177
|
+
// https://jiti.indexing.co/networks/ripple/102922772
|
|
11178
|
+
// https://jiti.indexing.co/networks/ripple/102921872
|
|
11179
|
+
// Samples: 3
|
|
11180
|
+
|
|
11181
|
+
|
|
11182
|
+
var $615e314153e52bad$exports = {};
|
|
11183
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11184
|
+
// Generated: 2026-03-17
|
|
11185
|
+
// Sources:
|
|
11186
|
+
// https://jiti.indexing.co/networks/starknet/7797628
|
|
11187
|
+
// https://jiti.indexing.co/networks/starknet/7797528
|
|
11188
|
+
// https://jiti.indexing.co/networks/starknet/7796628
|
|
11189
|
+
// Samples: 3
|
|
11190
|
+
|
|
11191
|
+
|
|
11192
|
+
var $e5041b0a92b41052$exports = {};
|
|
11193
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11194
|
+
// Generated: 2026-03-17
|
|
11195
|
+
// Sources:
|
|
11196
|
+
// https://jiti.indexing.co/networks/stellar/61687568
|
|
11197
|
+
// https://jiti.indexing.co/networks/stellar/61687468
|
|
11198
|
+
// https://jiti.indexing.co/networks/stellar/61686568
|
|
11199
|
+
// Samples: 3
|
|
11200
|
+
|
|
11201
|
+
|
|
11202
|
+
var $e964f2aee2d00bfe$exports = {};
|
|
11203
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11204
|
+
// Generated: 2026-03-17
|
|
11205
|
+
// Sources:
|
|
11206
|
+
// https://jiti.indexing.co/networks/bittensor/7762563
|
|
11207
|
+
// https://jiti.indexing.co/networks/bittensor/7762463
|
|
11208
|
+
// https://jiti.indexing.co/networks/bittensor/7761563
|
|
11209
|
+
// https://jiti.indexing.co/networks/polkadot/13494424
|
|
11210
|
+
// https://jiti.indexing.co/networks/polkadot/13494324
|
|
11211
|
+
// https://jiti.indexing.co/networks/polkadot/13493424
|
|
11212
|
+
// Samples: 6
|
|
11213
|
+
|
|
11214
|
+
|
|
11215
|
+
var $bb1ffb53a3b14860$exports = {};
|
|
11216
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11217
|
+
// Generated: 2026-03-17
|
|
11218
|
+
// Sources:
|
|
11219
|
+
// https://jiti.indexing.co/networks/sui/255195515
|
|
11220
|
+
// https://jiti.indexing.co/networks/sui/255195415
|
|
11221
|
+
// https://jiti.indexing.co/networks/sui/255194515
|
|
11222
|
+
// Samples: 3
|
|
11223
|
+
|
|
11224
|
+
|
|
11225
|
+
var $480b559416e5cd89$exports = {};
|
|
11226
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11227
|
+
// Generated: 2026-03-17
|
|
11228
|
+
// Sources:
|
|
11229
|
+
// https://jiti.indexing.co/networks/solana/406934053
|
|
11230
|
+
// https://jiti.indexing.co/networks/solana/406933953
|
|
11231
|
+
// https://jiti.indexing.co/networks/solana/406933053
|
|
11232
|
+
// https://jiti.indexing.co/networks/eclipse/143074735
|
|
11233
|
+
// https://jiti.indexing.co/networks/eclipse/143074635
|
|
11234
|
+
// https://jiti.indexing.co/networks/eclipse/143073735
|
|
11235
|
+
// Samples: 6
|
|
11236
|
+
|
|
11237
|
+
|
|
11238
|
+
var $f3761421850600fb$exports = {};
|
|
11239
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11240
|
+
// Generated: 2026-03-17
|
|
11241
|
+
// Sources:
|
|
11242
|
+
// https://jiti.indexing.co/networks/ton/58384846
|
|
11243
|
+
// https://jiti.indexing.co/networks/ton/58384746
|
|
11244
|
+
// https://jiti.indexing.co/networks/ton/58383846
|
|
11245
|
+
// Samples: 3
|
|
11246
|
+
|
|
11247
|
+
|
|
11248
|
+
var $e64a550a52a9d690$exports = {};
|
|
11249
|
+
// Auto-generated by scripts/generate-block-types.ts
|
|
11250
|
+
// Generated: 2026-03-17
|
|
11251
|
+
// Sources:
|
|
11252
|
+
// https://jiti.indexing.co/networks/bitcoin/940963
|
|
11253
|
+
// https://jiti.indexing.co/networks/bitcoin/940863
|
|
11254
|
+
// https://jiti.indexing.co/networks/bitcoin/939963
|
|
11255
|
+
// https://jiti.indexing.co/networks/dogecoin/6126894
|
|
11256
|
+
// https://jiti.indexing.co/networks/dogecoin/6126794
|
|
11257
|
+
// https://jiti.indexing.co/networks/dogecoin/6125894
|
|
11258
|
+
// https://jiti.indexing.co/networks/zcash/3275181
|
|
11259
|
+
// https://jiti.indexing.co/networks/zcash/3275081
|
|
11260
|
+
// https://jiti.indexing.co/networks/zcash/3274181
|
|
11261
|
+
// Samples: 9
|
|
11262
|
+
|
|
11263
|
+
|
|
11264
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $cdaccca5755c2b25$exports);
|
|
11265
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $ac91e39aa31e7121$exports);
|
|
11266
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $fbc7264686ecdc8f$exports);
|
|
11267
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $a024eb8aae4121fc$exports);
|
|
11268
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $3b641f1d93f8e861$exports);
|
|
11269
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $a507a65ae307f974$exports);
|
|
11270
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $615e314153e52bad$exports);
|
|
11271
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $e5041b0a92b41052$exports);
|
|
11272
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $e964f2aee2d00bfe$exports);
|
|
11273
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $bb1ffb53a3b14860$exports);
|
|
11274
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $480b559416e5cd89$exports);
|
|
11275
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $f3761421850600fb$exports);
|
|
11276
|
+
$parcel$exportWildcard($a4e0e4b4a62175c4$exports, $e64a550a52a9d690$exports);
|
|
11277
|
+
|
|
11278
|
+
|
|
11099
11279
|
const $149c1bd638913645$export$eab97d15b1788b8d = {
|
|
11100
11280
|
...$fde9406d76ec24a9$exports
|
|
11101
11281
|
};
|