@indexing/jiti 0.0.43 → 0.0.44
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 +19 -27
- package/dist/main.js.map +1 -1
- package/dist/module.js +19 -27
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -5,10 +5,6 @@ import {defaultRegistryTypes as $hgUW1$defaultRegistryTypes} from "@cosmjs/starg
|
|
|
5
5
|
import {sha256 as $hgUW1$sha256, keccak256 as $hgUW1$keccak256, decodeEventLog as $hgUW1$decodeEventLog, parseAbi as $hgUW1$parseAbi} from "viem";
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
function $parcel$defineInteropFlag(a) {
|
|
9
|
-
Object.defineProperty(a, '__esModule', {value: true, configurable: true});
|
|
10
|
-
}
|
|
11
|
-
|
|
12
8
|
function $parcel$export(e, n, v, s) {
|
|
13
9
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
14
10
|
}
|
|
@@ -32,9 +28,7 @@ function $parcel$exportWildcard(dest, source) {
|
|
|
32
28
|
|
|
33
29
|
var $09654dffcb68affa$exports = {};
|
|
34
30
|
|
|
35
|
-
$parcel$
|
|
36
|
-
|
|
37
|
-
$parcel$export($09654dffcb68affa$exports, "default", () => $09654dffcb68affa$export$2e2bcd8739ae039);
|
|
31
|
+
$parcel$export($09654dffcb68affa$exports, "blockToVM", () => $09654dffcb68affa$export$ae001c77434c5340);
|
|
38
32
|
const $09654dffcb68affa$var$PARTIAL_VM_TO_NETWORK_MAP = {
|
|
39
33
|
APTOS: [
|
|
40
34
|
"APTOS",
|
|
@@ -87,7 +81,7 @@ const $09654dffcb68affa$var$PARTIAL_NETWORK_TO_VM_MAP = Object.entries($09654dff
|
|
|
87
81
|
...a,
|
|
88
82
|
...b
|
|
89
83
|
}), {});
|
|
90
|
-
function $09654dffcb68affa$export$
|
|
84
|
+
function $09654dffcb68affa$export$ae001c77434c5340(block) {
|
|
91
85
|
if (!block) return null;
|
|
92
86
|
if ($09654dffcb68affa$var$PARTIAL_NETWORK_TO_VM_MAP[block._network]) return $09654dffcb68affa$var$PARTIAL_NETWORK_TO_VM_MAP[block._network];
|
|
93
87
|
if (!!block.block) return "COSMOS";
|
|
@@ -98,7 +92,7 @@ function $09654dffcb68affa$export$2e2bcd8739ae039(block) {
|
|
|
98
92
|
|
|
99
93
|
|
|
100
94
|
const $bea1ed486f96b980$export$ace043a4f2efe476 = {
|
|
101
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
95
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "APTOS",
|
|
102
96
|
transform (block) {
|
|
103
97
|
let transfers = [];
|
|
104
98
|
for (const tx of block.transactions){
|
|
@@ -312,7 +306,7 @@ const $bea1ed486f96b980$export$ace043a4f2efe476 = {
|
|
|
312
306
|
|
|
313
307
|
|
|
314
308
|
const $8860a67278817de8$export$893111d8d332e195 = {
|
|
315
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
309
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "CARDANO",
|
|
316
310
|
transform (block) {
|
|
317
311
|
let transfers = [];
|
|
318
312
|
const blockTimestamp = new Date(block.timestamp * 1000).toISOString();
|
|
@@ -385,7 +379,7 @@ const $8860a67278817de8$export$893111d8d332e195 = {
|
|
|
385
379
|
|
|
386
380
|
var $8d6646508fb2fa58$require$Buffer = $hgUW1$Buffer;
|
|
387
381
|
const $8d6646508fb2fa58$export$b5fd4920e8b7d913 = {
|
|
388
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
382
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "COSMOS",
|
|
389
383
|
transform (block) {
|
|
390
384
|
let transfers = [];
|
|
391
385
|
const typedBlock = block;
|
|
@@ -445,12 +439,10 @@ const $8d6646508fb2fa58$export$b5fd4920e8b7d913 = {
|
|
|
445
439
|
var $fde9406d76ec24a9$exports = {};
|
|
446
440
|
var $cc5213c20a6615f3$exports = {};
|
|
447
441
|
|
|
448
|
-
$parcel$
|
|
449
|
-
|
|
450
|
-
$parcel$export($cc5213c20a6615f3$exports, "default", () => $cc5213c20a6615f3$export$2e2bcd8739ae039);
|
|
442
|
+
$parcel$export($cc5213c20a6615f3$exports, "blockToTimestamp", () => $cc5213c20a6615f3$export$ec64f6024312bb14);
|
|
451
443
|
|
|
452
|
-
function $cc5213c20a6615f3$export$
|
|
453
|
-
const vm = (0, $09654dffcb68affa$export$
|
|
444
|
+
function $cc5213c20a6615f3$export$ec64f6024312bb14(block) {
|
|
445
|
+
const vm = (0, $09654dffcb68affa$export$ae001c77434c5340)(block);
|
|
454
446
|
switch(vm){
|
|
455
447
|
case "APTOS":
|
|
456
448
|
return new Date(parseInt(block.transactions[0].timestamp, 10) / 1000);
|
|
@@ -702,7 +694,7 @@ $parcel$exportWildcard($fde9406d76ec24a9$exports, $8f1e0ae1ead9a2a9$exports);
|
|
|
702
694
|
|
|
703
695
|
const $5ec62a2088d070a8$var$NULL_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
704
696
|
const $5ec62a2088d070a8$export$5beebc5708fabf3c = {
|
|
705
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
697
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "EVM",
|
|
706
698
|
transform (block, _ctx) {
|
|
707
699
|
const TOKEN_TYPES = _ctx.params.tokenTypes || [];
|
|
708
700
|
let transfers = [];
|
|
@@ -868,7 +860,7 @@ const $5ec62a2088d070a8$export$5beebc5708fabf3c = {
|
|
|
868
860
|
|
|
869
861
|
|
|
870
862
|
const $548ae36ea3681b01$export$d7ac970e8e789607 = {
|
|
871
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
863
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "FILECOIN",
|
|
872
864
|
transform (block) {
|
|
873
865
|
let transfers = [];
|
|
874
866
|
const typedBlock = block;
|
|
@@ -928,7 +920,7 @@ const $548ae36ea3681b01$export$d7ac970e8e789607 = {
|
|
|
928
920
|
|
|
929
921
|
|
|
930
922
|
const $07b3982e2fc4c8b2$export$400f08bfae9ee97f = {
|
|
931
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
923
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "RIPPLE",
|
|
932
924
|
transform (block) {
|
|
933
925
|
let transfers = [];
|
|
934
926
|
if (!Array.isArray(block.transactions)) return [];
|
|
@@ -988,7 +980,7 @@ const $07b3982e2fc4c8b2$export$400f08bfae9ee97f = {
|
|
|
988
980
|
|
|
989
981
|
|
|
990
982
|
const $f9f6601c9222cc8e$export$722698bc663d0ac0 = {
|
|
991
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
983
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "SUI",
|
|
992
984
|
transform (block) {
|
|
993
985
|
let transfers = [];
|
|
994
986
|
const blockNumber = parseInt(block.sequence, 10);
|
|
@@ -1093,7 +1085,7 @@ const $f9f6601c9222cc8e$export$722698bc663d0ac0 = {
|
|
|
1093
1085
|
|
|
1094
1086
|
|
|
1095
1087
|
const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
1096
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
1088
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "SVM",
|
|
1097
1089
|
transform (block) {
|
|
1098
1090
|
let transfers = [];
|
|
1099
1091
|
for (const tx of block.transactions){
|
|
@@ -1505,7 +1497,7 @@ const $64e1e522540ffc4e$export$a51565c56ceacb0a = {
|
|
|
1505
1497
|
|
|
1506
1498
|
|
|
1507
1499
|
const $f7da547a9d6b4fc0$export$36783fc9701281c6 = {
|
|
1508
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
1500
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "STARKNET",
|
|
1509
1501
|
transform (block) {
|
|
1510
1502
|
let transfers = [];
|
|
1511
1503
|
if (!Array.isArray(block.transactions)) return [];
|
|
@@ -1564,7 +1556,7 @@ const $f7da547a9d6b4fc0$export$36783fc9701281c6 = {
|
|
|
1564
1556
|
|
|
1565
1557
|
|
|
1566
1558
|
const $725699ccb951d76d$export$681f497010b17679 = {
|
|
1567
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
1559
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "STELLAR",
|
|
1568
1560
|
transform (block) {
|
|
1569
1561
|
let transfers = [];
|
|
1570
1562
|
for (const tx of block.transactions){
|
|
@@ -1611,7 +1603,7 @@ const $725699ccb951d76d$export$681f497010b17679 = {
|
|
|
1611
1603
|
|
|
1612
1604
|
|
|
1613
1605
|
const $13c3ff41f568666f$export$bc6c7ab7e0727dd7 = {
|
|
1614
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
1606
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "SUBSTRATE",
|
|
1615
1607
|
transform (block) {
|
|
1616
1608
|
let transfers = [];
|
|
1617
1609
|
const typedBlock = block;
|
|
@@ -1667,7 +1659,7 @@ const $13c3ff41f568666f$export$bc6c7ab7e0727dd7 = {
|
|
|
1667
1659
|
|
|
1668
1660
|
|
|
1669
1661
|
const $e97546fe39f2692a$export$608f3f42810b9879 = {
|
|
1670
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
1662
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "TON",
|
|
1671
1663
|
transform (block) {
|
|
1672
1664
|
let transfers = [];
|
|
1673
1665
|
const blockNumber = block.seqno;
|
|
@@ -1733,7 +1725,7 @@ const $e97546fe39f2692a$export$608f3f42810b9879 = {
|
|
|
1733
1725
|
|
|
1734
1726
|
|
|
1735
1727
|
const $532fac82d96b89f2$export$4f5322cf4718bd30 = {
|
|
1736
|
-
match: (block)=>(0, $09654dffcb68affa$export$
|
|
1728
|
+
match: (block)=>(0, $09654dffcb68affa$export$ae001c77434c5340)(block) === "UTXO",
|
|
1737
1729
|
transform (block) {
|
|
1738
1730
|
let transfers = [];
|
|
1739
1731
|
const timestamp = block.time ? new Date(block.time * 1000).toISOString() : null;
|
|
@@ -1880,7 +1872,7 @@ const $dc0c078500ed1fea$var$filterValuesTemplate = {
|
|
|
1880
1872
|
params: [],
|
|
1881
1873
|
transform: (block)=>{
|
|
1882
1874
|
let finalValues = [];
|
|
1883
|
-
const vm = block._vm || (0, $09654dffcb68affa$export$
|
|
1875
|
+
const vm = block._vm || (0, $09654dffcb68affa$export$ae001c77434c5340)(block);
|
|
1884
1876
|
switch(vm){
|
|
1885
1877
|
case "APTOS":
|
|
1886
1878
|
{
|