@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 CHANGED
@@ -13,10 +13,6 @@ function $parcel$interopDefault(a) {
13
13
  return a && a.__esModule ? a.default : a;
14
14
  }
15
15
 
16
- function $parcel$defineInteropFlag(a) {
17
- Object.defineProperty(a, '__esModule', {value: true, configurable: true});
18
- }
19
-
20
16
  function $parcel$exportWildcard(dest, source) {
21
17
  Object.keys(source).forEach(function(key) {
22
18
  if (key === 'default' || key === '__esModule' || Object.prototype.hasOwnProperty.call(dest, key)) {
@@ -42,9 +38,7 @@ $parcel$export(module.exports, "types", () => $faefaad95e5fcca0$exports);
42
38
 
43
39
  var $6bd2ca253e883278$exports = {};
44
40
 
45
- $parcel$defineInteropFlag($6bd2ca253e883278$exports);
46
-
47
- $parcel$export($6bd2ca253e883278$exports, "default", () => $6bd2ca253e883278$export$2e2bcd8739ae039);
41
+ $parcel$export($6bd2ca253e883278$exports, "blockToVM", () => $6bd2ca253e883278$export$ae001c77434c5340);
48
42
  const $6bd2ca253e883278$var$PARTIAL_VM_TO_NETWORK_MAP = {
49
43
  APTOS: [
50
44
  "APTOS",
@@ -97,7 +91,7 @@ const $6bd2ca253e883278$var$PARTIAL_NETWORK_TO_VM_MAP = Object.entries($6bd2ca25
97
91
  ...a,
98
92
  ...b
99
93
  }), {});
100
- function $6bd2ca253e883278$export$2e2bcd8739ae039(block) {
94
+ function $6bd2ca253e883278$export$ae001c77434c5340(block) {
101
95
  if (!block) return null;
102
96
  if ($6bd2ca253e883278$var$PARTIAL_NETWORK_TO_VM_MAP[block._network]) return $6bd2ca253e883278$var$PARTIAL_NETWORK_TO_VM_MAP[block._network];
103
97
  if (!!block.block) return "COSMOS";
@@ -108,7 +102,7 @@ function $6bd2ca253e883278$export$2e2bcd8739ae039(block) {
108
102
 
109
103
 
110
104
  const $25d5bdd23cba31eb$export$ace043a4f2efe476 = {
111
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "APTOS",
105
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "APTOS",
112
106
  transform (block) {
113
107
  let transfers = [];
114
108
  for (const tx of block.transactions){
@@ -322,7 +316,7 @@ const $25d5bdd23cba31eb$export$ace043a4f2efe476 = {
322
316
 
323
317
 
324
318
  const $60d24c82dc5feb2e$export$893111d8d332e195 = {
325
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "CARDANO",
319
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "CARDANO",
326
320
  transform (block) {
327
321
  let transfers = [];
328
322
  const blockTimestamp = new Date(block.timestamp * 1000).toISOString();
@@ -395,7 +389,7 @@ const $60d24c82dc5feb2e$export$893111d8d332e195 = {
395
389
 
396
390
  var $f9ab50a3e879ac1c$require$Buffer = $8zHUo$buffer.Buffer;
397
391
  const $f9ab50a3e879ac1c$export$b5fd4920e8b7d913 = {
398
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "COSMOS",
392
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "COSMOS",
399
393
  transform (block) {
400
394
  let transfers = [];
401
395
  const typedBlock = block;
@@ -455,12 +449,10 @@ const $f9ab50a3e879ac1c$export$b5fd4920e8b7d913 = {
455
449
  var $d7167569386d0d4c$exports = {};
456
450
  var $b8691f253b6baa6e$exports = {};
457
451
 
458
- $parcel$defineInteropFlag($b8691f253b6baa6e$exports);
459
-
460
- $parcel$export($b8691f253b6baa6e$exports, "default", () => $b8691f253b6baa6e$export$2e2bcd8739ae039);
452
+ $parcel$export($b8691f253b6baa6e$exports, "blockToTimestamp", () => $b8691f253b6baa6e$export$ec64f6024312bb14);
461
453
 
462
- function $b8691f253b6baa6e$export$2e2bcd8739ae039(block) {
463
- const vm = (0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block);
454
+ function $b8691f253b6baa6e$export$ec64f6024312bb14(block) {
455
+ const vm = (0, $6bd2ca253e883278$export$ae001c77434c5340)(block);
464
456
  switch(vm){
465
457
  case "APTOS":
466
458
  return new Date(parseInt(block.transactions[0].timestamp, 10) / 1000);
@@ -712,7 +704,7 @@ $parcel$exportWildcard($d7167569386d0d4c$exports, $414c83047563e72e$exports);
712
704
 
713
705
  const $8deaea1ef39b6485$var$NULL_ADDRESS = "0x0000000000000000000000000000000000000000";
714
706
  const $8deaea1ef39b6485$export$5beebc5708fabf3c = {
715
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "EVM",
707
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "EVM",
716
708
  transform (block, _ctx) {
717
709
  const TOKEN_TYPES = _ctx.params.tokenTypes || [];
718
710
  let transfers = [];
@@ -878,7 +870,7 @@ const $8deaea1ef39b6485$export$5beebc5708fabf3c = {
878
870
 
879
871
 
880
872
  const $5a4d345db3c04a51$export$d7ac970e8e789607 = {
881
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "FILECOIN",
873
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "FILECOIN",
882
874
  transform (block) {
883
875
  let transfers = [];
884
876
  const typedBlock = block;
@@ -938,7 +930,7 @@ const $5a4d345db3c04a51$export$d7ac970e8e789607 = {
938
930
 
939
931
 
940
932
  const $2e46ec862e47c14f$export$400f08bfae9ee97f = {
941
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "RIPPLE",
933
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "RIPPLE",
942
934
  transform (block) {
943
935
  let transfers = [];
944
936
  if (!Array.isArray(block.transactions)) return [];
@@ -998,7 +990,7 @@ const $2e46ec862e47c14f$export$400f08bfae9ee97f = {
998
990
 
999
991
 
1000
992
  const $3b9b8f5747dcca8e$export$722698bc663d0ac0 = {
1001
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "SUI",
993
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "SUI",
1002
994
  transform (block) {
1003
995
  let transfers = [];
1004
996
  const blockNumber = parseInt(block.sequence, 10);
@@ -1103,7 +1095,7 @@ const $3b9b8f5747dcca8e$export$722698bc663d0ac0 = {
1103
1095
 
1104
1096
 
1105
1097
  const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1106
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "SVM",
1098
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "SVM",
1107
1099
  transform (block) {
1108
1100
  let transfers = [];
1109
1101
  for (const tx of block.transactions){
@@ -1515,7 +1507,7 @@ const $fc7ca671efecc378$export$a51565c56ceacb0a = {
1515
1507
 
1516
1508
 
1517
1509
  const $fc745f3cb8eb3f52$export$36783fc9701281c6 = {
1518
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "STARKNET",
1510
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "STARKNET",
1519
1511
  transform (block) {
1520
1512
  let transfers = [];
1521
1513
  if (!Array.isArray(block.transactions)) return [];
@@ -1574,7 +1566,7 @@ const $fc745f3cb8eb3f52$export$36783fc9701281c6 = {
1574
1566
 
1575
1567
 
1576
1568
  const $3478cd776d185339$export$681f497010b17679 = {
1577
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "STELLAR",
1569
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "STELLAR",
1578
1570
  transform (block) {
1579
1571
  let transfers = [];
1580
1572
  for (const tx of block.transactions){
@@ -1621,7 +1613,7 @@ const $3478cd776d185339$export$681f497010b17679 = {
1621
1613
 
1622
1614
 
1623
1615
  const $11a2c5b0fd56c033$export$bc6c7ab7e0727dd7 = {
1624
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "SUBSTRATE",
1616
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "SUBSTRATE",
1625
1617
  transform (block) {
1626
1618
  let transfers = [];
1627
1619
  const typedBlock = block;
@@ -1677,7 +1669,7 @@ const $11a2c5b0fd56c033$export$bc6c7ab7e0727dd7 = {
1677
1669
 
1678
1670
 
1679
1671
  const $cd430dd11c31e572$export$608f3f42810b9879 = {
1680
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "TON",
1672
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "TON",
1681
1673
  transform (block) {
1682
1674
  let transfers = [];
1683
1675
  const blockNumber = block.seqno;
@@ -1743,7 +1735,7 @@ const $cd430dd11c31e572$export$608f3f42810b9879 = {
1743
1735
 
1744
1736
 
1745
1737
  const $990c4f660694d8bc$export$4f5322cf4718bd30 = {
1746
- match: (block)=>(0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block) === "UTXO",
1738
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "UTXO",
1747
1739
  transform (block) {
1748
1740
  let transfers = [];
1749
1741
  const timestamp = block.time ? new Date(block.time * 1000).toISOString() : null;
@@ -1890,7 +1882,7 @@ const $9af31dbb692f94e3$var$filterValuesTemplate = {
1890
1882
  params: [],
1891
1883
  transform: (block)=>{
1892
1884
  let finalValues = [];
1893
- const vm = block._vm || (0, $6bd2ca253e883278$export$2e2bcd8739ae039)(block);
1885
+ const vm = block._vm || (0, $6bd2ca253e883278$export$ae001c77434c5340)(block);
1894
1886
  switch(vm){
1895
1887
  case "APTOS":
1896
1888
  {