@merkl/api 1.13.26 → 1.13.28
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/src/eden/index.d.ts +378 -4
- package/dist/src/engine/implementations/DolomiteNetLending/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/DolomiteNetLending/metadata.js.map +1 -0
- package/dist/src/engine/implementations/clamm/tvl.abstract.d.ts +1 -1
- package/dist/src/engine/metadata/factory.js.map +1 -1
- package/dist/src/engine/tvl/factory.js.map +1 -1
- package/dist/src/index.d.ts +421 -2
- package/dist/src/modules/v4/block-timestamp/block-timestamp.controller.d.ts +36 -0
- package/dist/src/modules/v4/block-timestamp/block-timestamp.controller.js.map +1 -1
- package/dist/src/modules/v4/block-timestamp/block-timestamp.model.d.ts +19 -0
- package/dist/src/modules/v4/block-timestamp/block-timestamp.model.js.map +1 -1
- package/dist/src/modules/v4/block-timestamp/block-timestamp.repository.d.ts +15 -0
- package/dist/src/modules/v4/block-timestamp/block-timestamp.repository.js.map +1 -1
- package/dist/src/modules/v4/block-timestamp/block-timestamp.service.d.ts +10 -0
- package/dist/src/modules/v4/block-timestamp/block-timestamp.service.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +85 -85
- package/dist/src/modules/v4/clamm/clamm.controller.d.ts +2 -2
- package/dist/src/modules/v4/diff/diff.controller.d.ts +412 -0
- package/dist/src/modules/v4/diff/diff.controller.js.map +1 -0
- package/dist/src/modules/v4/diff/diff.model.d.ts +65 -0
- package/dist/src/modules/v4/diff/diff.model.js.map +1 -0
- package/dist/src/modules/v4/diff/diff.repository.d.ts +196 -0
- package/dist/src/modules/v4/diff/diff.repository.js.map +1 -0
- package/dist/src/modules/v4/diff/diff.service.d.ts +108 -0
- package/dist/src/modules/v4/diff/diff.service.js.map +1 -0
- package/dist/src/modules/v4/leaf/leaf.model.d.ts +27 -0
- package/dist/src/modules/v4/leaf/leaf.model.js.map +1 -1
- package/dist/src/modules/v4/leaf/leaf.repository.d.ts +252 -4
- package/dist/src/modules/v4/leaf/leaf.repository.js.map +1 -1
- package/dist/src/modules/v4/leaf/leaf.service.d.ts +20 -138
- package/dist/src/modules/v4/leaf/leaf.service.js.map +1 -1
- package/dist/src/modules/v4/node/nodeStatus.service.d.ts +1 -1
- package/dist/src/modules/v4/node/nodeStatus.service.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +56 -56
- package/dist/src/modules/v4/reward/reward.service.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +421 -2
- package/dist/src/modules/v4/router.js.map +1 -1
- package/dist/src/modules/v4/transaction/transaction.service.d.ts +2793 -483
- package/dist/src/scripts/meta-leaf-migration-safety.js.map +1 -1
- package/dist/src/utils/getAPR.d.ts +1158 -3
- package/dist/src/utils/parseDistributionType.d.ts +1158 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -758,6 +758,42 @@ declare const app: Elysia<"", {
|
|
|
758
758
|
};
|
|
759
759
|
};
|
|
760
760
|
};
|
|
761
|
+
} & {
|
|
762
|
+
"block-timestamp": {
|
|
763
|
+
bounds: {
|
|
764
|
+
get: {
|
|
765
|
+
body: unknown;
|
|
766
|
+
params: {};
|
|
767
|
+
query: {
|
|
768
|
+
chainId: number;
|
|
769
|
+
timestamp: number;
|
|
770
|
+
};
|
|
771
|
+
headers: unknown;
|
|
772
|
+
response: {
|
|
773
|
+
200: {
|
|
774
|
+
lower: {
|
|
775
|
+
blockNumber: number;
|
|
776
|
+
timestamp: number;
|
|
777
|
+
} | null;
|
|
778
|
+
upper: {
|
|
779
|
+
blockNumber: number;
|
|
780
|
+
timestamp: number;
|
|
781
|
+
} | null;
|
|
782
|
+
exactMatch: boolean;
|
|
783
|
+
};
|
|
784
|
+
422: {
|
|
785
|
+
type: "validation";
|
|
786
|
+
on: string;
|
|
787
|
+
summary?: string | undefined;
|
|
788
|
+
message?: string | undefined;
|
|
789
|
+
found?: unknown;
|
|
790
|
+
property?: string | undefined;
|
|
791
|
+
expected?: string | undefined;
|
|
792
|
+
};
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
};
|
|
761
797
|
} & {
|
|
762
798
|
boosts: {
|
|
763
799
|
euler: {
|
|
@@ -8237,7 +8273,7 @@ declare const app: Elysia<"", {
|
|
|
8237
8273
|
symbolCurrency1: string;
|
|
8238
8274
|
tickSpacing: number;
|
|
8239
8275
|
} & {
|
|
8240
|
-
protocol: import("@package/resources/enums").ProtocolType.AERODROME | import("@package/resources/enums").ProtocolType.AERODROME_GAUGE_CAP | import("@package/resources/enums").ProtocolType.ARTHSWAP | import("@package/resources/enums").ProtocolType.BASE_SWAP | import("@package/resources/enums").ProtocolType.CAMELOT | import("@package/resources/enums").ProtocolType.CAPRICORN | import("@package/resources/enums").ProtocolType.FENIX | import("@package/resources/enums").ProtocolType.FLOWSWAP | import("@package/resources/enums").ProtocolType.HYBRA | import("@package/resources/enums").ProtocolType.HYDREX | import("@package/resources/enums").ProtocolType.HYPERSWAP | import("@package/resources/enums").ProtocolType.IONEX | import("@package/resources/enums").ProtocolType.IZUMI | import("@package/resources/enums").ProtocolType.JAINE | import("@package/resources/enums").ProtocolType.KATANA | import("@package/resources/enums").ProtocolType.KATANA_ALGEBRA | import("@package/resources/enums").ProtocolType.KITTEN_SWAP | import("@package/resources/enums").ProtocolType.KYO | import("@package/resources/enums").ProtocolType.MONDAY_TRADE | import("@package/resources/enums").ProtocolType.NEPTUNE | import("@package/resources/enums").ProtocolType.NINEMM | import("@package/resources/enums").ProtocolType.PANCAKESWAP | import("@package/resources/enums").ProtocolType.PHARAOH | import("@package/resources/enums").ProtocolType.QUICKSWAP | import("@package/resources/enums").ProtocolType.QUICKSWAP_ALGEBRA | import("@package/resources/enums").ProtocolType.QUICKSWAP_ALGEBRA_12 | import("@package/resources/enums").ProtocolType.RAMSES | import("@package/resources/enums").ProtocolType.RETRO | import("@package/resources/enums").ProtocolType.ROOSTER | import("@package/resources/enums").ProtocolType.SATSUMA | import("@package/resources/enums").ProtocolType.PROJECT_X | import("@package/resources/enums").ProtocolType.SNAP | import("@package/resources/enums").ProtocolType.SONEX | import("@package/resources/enums").ProtocolType.SPOOKYSWAP_V3 | import("@package/resources/enums").ProtocolType.SUSHI_SWAP | import("@package/resources/enums").ProtocolType.SWAP_X | import("@package/resources/enums").ProtocolType.SYNC_SWAP | import("@package/resources/enums").ProtocolType.UNISWAPV3 | import("@package/resources/enums").ProtocolType.UNISWAPV4 | import("@package/resources/enums").ProtocolType.VELODROME | import("@package/resources/enums").ProtocolType.VOLTAGE | import("@package/resources/enums").ProtocolType.WOODSWAP | import("@package/resources/enums").ProtocolType.XSWAP | import("@package/resources/enums").ProtocolType.ZERO | import("@package/resources/enums").ProtocolType.GLIQUID;
|
|
8276
|
+
protocol: import("@package/resources/enums").ProtocolType.AERODROME | import("@package/resources/enums").ProtocolType.AERODROME_GAUGE_CAP | import("@package/resources/enums").ProtocolType.ARTHSWAP | import("@package/resources/enums").ProtocolType.BASE_SWAP | import("@package/resources/enums").ProtocolType.CAMELOT | import("@package/resources/enums").ProtocolType.CAPRICORN | import("@package/resources/enums").ProtocolType.FENIX | import("@package/resources/enums").ProtocolType.FLOWSWAP | import("@package/resources/enums").ProtocolType.HYBRA | import("@package/resources/enums").ProtocolType.HYDREX | import("@package/resources/enums").ProtocolType.HYPERSWAP | import("@package/resources/enums").ProtocolType.IONEX | import("@package/resources/enums").ProtocolType.IZUMI | import("@package/resources/enums").ProtocolType.JAINE | import("@package/resources/enums").ProtocolType.KATANA | import("@package/resources/enums").ProtocolType.KATANA_ALGEBRA | import("@package/resources/enums").ProtocolType.KITTEN_SWAP | import("@package/resources/enums").ProtocolType.KYO | import("@package/resources/enums").ProtocolType.MONDAY_TRADE | import("@package/resources/enums").ProtocolType.NEPTUNE | import("@package/resources/enums").ProtocolType.NINEMM | import("@package/resources/enums").ProtocolType.PANCAKESWAP | import("@package/resources/enums").ProtocolType.PHARAOH | import("@package/resources/enums").ProtocolType.QUICKSWAP | import("@package/resources/enums").ProtocolType.QUICKSWAP_ALGEBRA | import("@package/resources/enums").ProtocolType.QUICKSWAP_ALGEBRA_12 | import("@package/resources/enums").ProtocolType.RAMSES | import("@package/resources/enums").ProtocolType.RETRO | import("@package/resources/enums").ProtocolType.ROOSTER | import("@package/resources/enums").ProtocolType.SATSUMA | import("@package/resources/enums").ProtocolType.PROJECT_X | import("@package/resources/enums").ProtocolType.SNAP | import("@package/resources/enums").ProtocolType.SONEX | import("@package/resources/enums").ProtocolType.SPOOKYSWAP_V3 | import("@package/resources/enums").ProtocolType.SUSHI_SWAP | import("@package/resources/enums").ProtocolType.SWAP_X | import("@package/resources/enums").ProtocolType.SYNC_SWAP | import("@package/resources/enums").ProtocolType.UNISWAPV3 | import("@package/resources/enums").ProtocolType.UNISWAPV4 | import("@package/resources/enums").ProtocolType.VELODROME | import("@package/resources/enums").ProtocolType.VOLTAGE | import("@package/resources/enums").ProtocolType.WOODSWAP | import("@package/resources/enums").ProtocolType.XSWAP | import("@package/resources/enums").ProtocolType.ZERO | import("@package/resources/enums").ProtocolType.GLIQUID | import("@package/resources/enums").ProtocolType.TIGRIS;
|
|
8241
8277
|
}) | ({
|
|
8242
8278
|
chainId: number;
|
|
8243
8279
|
currency0: string;
|
|
@@ -8299,7 +8335,7 @@ declare const app: Elysia<"", {
|
|
|
8299
8335
|
symbolCurrency1: string;
|
|
8300
8336
|
tickSpacing: number;
|
|
8301
8337
|
} & {
|
|
8302
|
-
protocol: import("@package/resources/enums").ProtocolType.AERODROME | import("@package/resources/enums").ProtocolType.AERODROME_GAUGE_CAP | import("@package/resources/enums").ProtocolType.ARTHSWAP | import("@package/resources/enums").ProtocolType.BASE_SWAP | import("@package/resources/enums").ProtocolType.CAMELOT | import("@package/resources/enums").ProtocolType.CAPRICORN | import("@package/resources/enums").ProtocolType.FENIX | import("@package/resources/enums").ProtocolType.FLOWSWAP | import("@package/resources/enums").ProtocolType.HYBRA | import("@package/resources/enums").ProtocolType.HYDREX | import("@package/resources/enums").ProtocolType.HYPERSWAP | import("@package/resources/enums").ProtocolType.IONEX | import("@package/resources/enums").ProtocolType.IZUMI | import("@package/resources/enums").ProtocolType.JAINE | import("@package/resources/enums").ProtocolType.KATANA | import("@package/resources/enums").ProtocolType.KATANA_ALGEBRA | import("@package/resources/enums").ProtocolType.KITTEN_SWAP | import("@package/resources/enums").ProtocolType.KYO | import("@package/resources/enums").ProtocolType.MONDAY_TRADE | import("@package/resources/enums").ProtocolType.NEPTUNE | import("@package/resources/enums").ProtocolType.NINEMM | import("@package/resources/enums").ProtocolType.PANCAKESWAP | import("@package/resources/enums").ProtocolType.PHARAOH | import("@package/resources/enums").ProtocolType.QUICKSWAP | import("@package/resources/enums").ProtocolType.QUICKSWAP_ALGEBRA | import("@package/resources/enums").ProtocolType.QUICKSWAP_ALGEBRA_12 | import("@package/resources/enums").ProtocolType.RAMSES | import("@package/resources/enums").ProtocolType.RETRO | import("@package/resources/enums").ProtocolType.ROOSTER | import("@package/resources/enums").ProtocolType.SATSUMA | import("@package/resources/enums").ProtocolType.PROJECT_X | import("@package/resources/enums").ProtocolType.SNAP | import("@package/resources/enums").ProtocolType.SONEX | import("@package/resources/enums").ProtocolType.SPOOKYSWAP_V3 | import("@package/resources/enums").ProtocolType.SUSHI_SWAP | import("@package/resources/enums").ProtocolType.SWAP_X | import("@package/resources/enums").ProtocolType.SYNC_SWAP | import("@package/resources/enums").ProtocolType.UNISWAPV3 | import("@package/resources/enums").ProtocolType.UNISWAPV4 | import("@package/resources/enums").ProtocolType.VELODROME | import("@package/resources/enums").ProtocolType.VOLTAGE | import("@package/resources/enums").ProtocolType.WOODSWAP | import("@package/resources/enums").ProtocolType.XSWAP | import("@package/resources/enums").ProtocolType.ZERO | import("@package/resources/enums").ProtocolType.GLIQUID;
|
|
8338
|
+
protocol: import("@package/resources/enums").ProtocolType.AERODROME | import("@package/resources/enums").ProtocolType.AERODROME_GAUGE_CAP | import("@package/resources/enums").ProtocolType.ARTHSWAP | import("@package/resources/enums").ProtocolType.BASE_SWAP | import("@package/resources/enums").ProtocolType.CAMELOT | import("@package/resources/enums").ProtocolType.CAPRICORN | import("@package/resources/enums").ProtocolType.FENIX | import("@package/resources/enums").ProtocolType.FLOWSWAP | import("@package/resources/enums").ProtocolType.HYBRA | import("@package/resources/enums").ProtocolType.HYDREX | import("@package/resources/enums").ProtocolType.HYPERSWAP | import("@package/resources/enums").ProtocolType.IONEX | import("@package/resources/enums").ProtocolType.IZUMI | import("@package/resources/enums").ProtocolType.JAINE | import("@package/resources/enums").ProtocolType.KATANA | import("@package/resources/enums").ProtocolType.KATANA_ALGEBRA | import("@package/resources/enums").ProtocolType.KITTEN_SWAP | import("@package/resources/enums").ProtocolType.KYO | import("@package/resources/enums").ProtocolType.MONDAY_TRADE | import("@package/resources/enums").ProtocolType.NEPTUNE | import("@package/resources/enums").ProtocolType.NINEMM | import("@package/resources/enums").ProtocolType.PANCAKESWAP | import("@package/resources/enums").ProtocolType.PHARAOH | import("@package/resources/enums").ProtocolType.QUICKSWAP | import("@package/resources/enums").ProtocolType.QUICKSWAP_ALGEBRA | import("@package/resources/enums").ProtocolType.QUICKSWAP_ALGEBRA_12 | import("@package/resources/enums").ProtocolType.RAMSES | import("@package/resources/enums").ProtocolType.RETRO | import("@package/resources/enums").ProtocolType.ROOSTER | import("@package/resources/enums").ProtocolType.SATSUMA | import("@package/resources/enums").ProtocolType.PROJECT_X | import("@package/resources/enums").ProtocolType.SNAP | import("@package/resources/enums").ProtocolType.SONEX | import("@package/resources/enums").ProtocolType.SPOOKYSWAP_V3 | import("@package/resources/enums").ProtocolType.SUSHI_SWAP | import("@package/resources/enums").ProtocolType.SWAP_X | import("@package/resources/enums").ProtocolType.SYNC_SWAP | import("@package/resources/enums").ProtocolType.UNISWAPV3 | import("@package/resources/enums").ProtocolType.UNISWAPV4 | import("@package/resources/enums").ProtocolType.VELODROME | import("@package/resources/enums").ProtocolType.VOLTAGE | import("@package/resources/enums").ProtocolType.WOODSWAP | import("@package/resources/enums").ProtocolType.XSWAP | import("@package/resources/enums").ProtocolType.ZERO | import("@package/resources/enums").ProtocolType.GLIQUID | import("@package/resources/enums").ProtocolType.TIGRIS;
|
|
8303
8339
|
}) | ({
|
|
8304
8340
|
chainId: number;
|
|
8305
8341
|
currency0: string;
|
|
@@ -10481,6 +10517,389 @@ declare const app: Elysia<"", {
|
|
|
10481
10517
|
};
|
|
10482
10518
|
};
|
|
10483
10519
|
};
|
|
10520
|
+
} & {
|
|
10521
|
+
diffs: {
|
|
10522
|
+
get: {
|
|
10523
|
+
body: unknown;
|
|
10524
|
+
params: {};
|
|
10525
|
+
query: {
|
|
10526
|
+
page?: number | undefined;
|
|
10527
|
+
items?: number | undefined;
|
|
10528
|
+
chainId: number;
|
|
10529
|
+
root: string;
|
|
10530
|
+
tokenAddress?: string | undefined;
|
|
10531
|
+
recipient?: string | undefined;
|
|
10532
|
+
sort?: string | undefined;
|
|
10533
|
+
order?: string | undefined;
|
|
10534
|
+
};
|
|
10535
|
+
headers: {
|
|
10536
|
+
authorization: string;
|
|
10537
|
+
};
|
|
10538
|
+
response: {
|
|
10539
|
+
200: {
|
|
10540
|
+
diffs: {
|
|
10541
|
+
distributionChainId: number;
|
|
10542
|
+
tokenAddress: string;
|
|
10543
|
+
recipient: string;
|
|
10544
|
+
root: string;
|
|
10545
|
+
amount: string;
|
|
10546
|
+
claimed: string;
|
|
10547
|
+
merged: boolean;
|
|
10548
|
+
mergedAt: Date | null;
|
|
10549
|
+
}[];
|
|
10550
|
+
count: number;
|
|
10551
|
+
summary: {
|
|
10552
|
+
total: number;
|
|
10553
|
+
merged: number;
|
|
10554
|
+
unmerged: number;
|
|
10555
|
+
totalAmount: string;
|
|
10556
|
+
totalClaimed: string;
|
|
10557
|
+
positiveAmount: string;
|
|
10558
|
+
negativeAmount: string;
|
|
10559
|
+
};
|
|
10560
|
+
};
|
|
10561
|
+
422: {
|
|
10562
|
+
type: "validation";
|
|
10563
|
+
on: string;
|
|
10564
|
+
summary?: string | undefined;
|
|
10565
|
+
message?: string | undefined;
|
|
10566
|
+
found?: unknown;
|
|
10567
|
+
property?: string | undefined;
|
|
10568
|
+
expected?: string | undefined;
|
|
10569
|
+
};
|
|
10570
|
+
};
|
|
10571
|
+
};
|
|
10572
|
+
};
|
|
10573
|
+
} & {
|
|
10574
|
+
diffs: {
|
|
10575
|
+
leaves: {
|
|
10576
|
+
get: {
|
|
10577
|
+
body: unknown;
|
|
10578
|
+
params: {};
|
|
10579
|
+
query: {
|
|
10580
|
+
page?: number | undefined;
|
|
10581
|
+
items?: number | undefined;
|
|
10582
|
+
chainId: number;
|
|
10583
|
+
tokenAddress: string;
|
|
10584
|
+
recipient?: string | undefined;
|
|
10585
|
+
sort?: string | undefined;
|
|
10586
|
+
order?: string | undefined;
|
|
10587
|
+
};
|
|
10588
|
+
headers: {
|
|
10589
|
+
authorization: string;
|
|
10590
|
+
};
|
|
10591
|
+
response: {
|
|
10592
|
+
200: {
|
|
10593
|
+
leaves: {
|
|
10594
|
+
distributionChainId: number;
|
|
10595
|
+
tokenAddress: string;
|
|
10596
|
+
recipient: string;
|
|
10597
|
+
amount: string;
|
|
10598
|
+
claimed: string;
|
|
10599
|
+
}[];
|
|
10600
|
+
count: number;
|
|
10601
|
+
summary: {
|
|
10602
|
+
total: number;
|
|
10603
|
+
totalAmount: string;
|
|
10604
|
+
totalClaimed: string;
|
|
10605
|
+
positiveAmount: string;
|
|
10606
|
+
negativeAmount: string;
|
|
10607
|
+
};
|
|
10608
|
+
};
|
|
10609
|
+
422: {
|
|
10610
|
+
type: "validation";
|
|
10611
|
+
on: string;
|
|
10612
|
+
summary?: string | undefined;
|
|
10613
|
+
message?: string | undefined;
|
|
10614
|
+
found?: unknown;
|
|
10615
|
+
property?: string | undefined;
|
|
10616
|
+
expected?: string | undefined;
|
|
10617
|
+
};
|
|
10618
|
+
};
|
|
10619
|
+
};
|
|
10620
|
+
};
|
|
10621
|
+
};
|
|
10622
|
+
} & {
|
|
10623
|
+
diffs: {
|
|
10624
|
+
breakdowns: {
|
|
10625
|
+
get: {
|
|
10626
|
+
body: unknown;
|
|
10627
|
+
params: {};
|
|
10628
|
+
query: {
|
|
10629
|
+
page?: number | undefined;
|
|
10630
|
+
items?: number | undefined;
|
|
10631
|
+
chainId: number;
|
|
10632
|
+
root: string;
|
|
10633
|
+
tokenAddress?: string | undefined;
|
|
10634
|
+
campaignId?: string | undefined;
|
|
10635
|
+
recipient?: string | undefined;
|
|
10636
|
+
sort?: string | undefined;
|
|
10637
|
+
order?: string | undefined;
|
|
10638
|
+
};
|
|
10639
|
+
headers: {
|
|
10640
|
+
authorization: string;
|
|
10641
|
+
};
|
|
10642
|
+
response: {
|
|
10643
|
+
200: {
|
|
10644
|
+
breakdowns: {
|
|
10645
|
+
tokenAddress: string;
|
|
10646
|
+
recipient: string;
|
|
10647
|
+
campaignId: string;
|
|
10648
|
+
reason: string;
|
|
10649
|
+
root: string;
|
|
10650
|
+
amount: string;
|
|
10651
|
+
claimed: string;
|
|
10652
|
+
merged: boolean;
|
|
10653
|
+
mergedAt: string | null;
|
|
10654
|
+
lastProcessedTimestamp: number;
|
|
10655
|
+
createdAt: number | null;
|
|
10656
|
+
publishAfterTimestamp: number | null;
|
|
10657
|
+
distributionChainId: number;
|
|
10658
|
+
}[];
|
|
10659
|
+
count: number;
|
|
10660
|
+
summary: {
|
|
10661
|
+
total: number;
|
|
10662
|
+
merged: number;
|
|
10663
|
+
unmerged: number;
|
|
10664
|
+
totalAmount: string;
|
|
10665
|
+
totalClaimed: string;
|
|
10666
|
+
positiveAmount: string;
|
|
10667
|
+
negativeAmount: string;
|
|
10668
|
+
};
|
|
10669
|
+
opportunities: Record<string, {
|
|
10670
|
+
name: string | null;
|
|
10671
|
+
path: string;
|
|
10672
|
+
}>;
|
|
10673
|
+
};
|
|
10674
|
+
422: {
|
|
10675
|
+
type: "validation";
|
|
10676
|
+
on: string;
|
|
10677
|
+
summary?: string | undefined;
|
|
10678
|
+
message?: string | undefined;
|
|
10679
|
+
found?: unknown;
|
|
10680
|
+
property?: string | undefined;
|
|
10681
|
+
expected?: string | undefined;
|
|
10682
|
+
};
|
|
10683
|
+
};
|
|
10684
|
+
};
|
|
10685
|
+
};
|
|
10686
|
+
};
|
|
10687
|
+
} & {
|
|
10688
|
+
diffs: {
|
|
10689
|
+
breakdowns: {
|
|
10690
|
+
count: {
|
|
10691
|
+
get: {
|
|
10692
|
+
body: unknown;
|
|
10693
|
+
params: {};
|
|
10694
|
+
query: {
|
|
10695
|
+
page?: number | undefined;
|
|
10696
|
+
items?: number | undefined;
|
|
10697
|
+
chainId: number;
|
|
10698
|
+
root: string;
|
|
10699
|
+
tokenAddress?: string | undefined;
|
|
10700
|
+
campaignId?: string | undefined;
|
|
10701
|
+
recipient?: string | undefined;
|
|
10702
|
+
sort?: string | undefined;
|
|
10703
|
+
order?: string | undefined;
|
|
10704
|
+
};
|
|
10705
|
+
headers: {
|
|
10706
|
+
authorization: string;
|
|
10707
|
+
};
|
|
10708
|
+
response: {
|
|
10709
|
+
200: number;
|
|
10710
|
+
422: {
|
|
10711
|
+
type: "validation";
|
|
10712
|
+
on: string;
|
|
10713
|
+
summary?: string | undefined;
|
|
10714
|
+
message?: string | undefined;
|
|
10715
|
+
found?: unknown;
|
|
10716
|
+
property?: string | undefined;
|
|
10717
|
+
expected?: string | undefined;
|
|
10718
|
+
};
|
|
10719
|
+
};
|
|
10720
|
+
};
|
|
10721
|
+
};
|
|
10722
|
+
};
|
|
10723
|
+
};
|
|
10724
|
+
} & {
|
|
10725
|
+
diffs: {
|
|
10726
|
+
tokens: {
|
|
10727
|
+
get: {
|
|
10728
|
+
body: unknown;
|
|
10729
|
+
params: {};
|
|
10730
|
+
query: {
|
|
10731
|
+
chainId: number;
|
|
10732
|
+
root: string;
|
|
10733
|
+
};
|
|
10734
|
+
headers: {
|
|
10735
|
+
authorization: string;
|
|
10736
|
+
};
|
|
10737
|
+
response: {
|
|
10738
|
+
200: {
|
|
10739
|
+
id: string;
|
|
10740
|
+
name: string | null;
|
|
10741
|
+
chainId: number;
|
|
10742
|
+
address: string;
|
|
10743
|
+
decimals: number;
|
|
10744
|
+
symbol: string;
|
|
10745
|
+
icon: string;
|
|
10746
|
+
verified: boolean;
|
|
10747
|
+
isNative: boolean;
|
|
10748
|
+
isTest: boolean;
|
|
10749
|
+
type: "POINT" | "PRETGE" | "TOKEN";
|
|
10750
|
+
price?: number | null | undefined;
|
|
10751
|
+
updatedAt?: number | null | undefined;
|
|
10752
|
+
priceSource?: string | null | undefined;
|
|
10753
|
+
displaySymbol?: string | undefined;
|
|
10754
|
+
underlyingTokenId?: string | undefined;
|
|
10755
|
+
}[];
|
|
10756
|
+
422: {
|
|
10757
|
+
type: "validation";
|
|
10758
|
+
on: string;
|
|
10759
|
+
summary?: string | undefined;
|
|
10760
|
+
message?: string | undefined;
|
|
10761
|
+
found?: unknown;
|
|
10762
|
+
property?: string | undefined;
|
|
10763
|
+
expected?: string | undefined;
|
|
10764
|
+
};
|
|
10765
|
+
};
|
|
10766
|
+
};
|
|
10767
|
+
};
|
|
10768
|
+
};
|
|
10769
|
+
} & {
|
|
10770
|
+
diffs: {
|
|
10771
|
+
roots: {
|
|
10772
|
+
get: {
|
|
10773
|
+
body: unknown;
|
|
10774
|
+
params: {};
|
|
10775
|
+
query: {
|
|
10776
|
+
chainId: number;
|
|
10777
|
+
};
|
|
10778
|
+
headers: {
|
|
10779
|
+
authorization: string;
|
|
10780
|
+
};
|
|
10781
|
+
response: {
|
|
10782
|
+
200: {
|
|
10783
|
+
root: string;
|
|
10784
|
+
chainId: number;
|
|
10785
|
+
epoch: number;
|
|
10786
|
+
timestamp: string;
|
|
10787
|
+
}[];
|
|
10788
|
+
422: {
|
|
10789
|
+
type: "validation";
|
|
10790
|
+
on: string;
|
|
10791
|
+
summary?: string | undefined;
|
|
10792
|
+
message?: string | undefined;
|
|
10793
|
+
found?: unknown;
|
|
10794
|
+
property?: string | undefined;
|
|
10795
|
+
expected?: string | undefined;
|
|
10796
|
+
};
|
|
10797
|
+
};
|
|
10798
|
+
};
|
|
10799
|
+
};
|
|
10800
|
+
};
|
|
10801
|
+
} & {
|
|
10802
|
+
diffs: {
|
|
10803
|
+
"leaf-breakdowns": {
|
|
10804
|
+
get: {
|
|
10805
|
+
body: unknown;
|
|
10806
|
+
params: {};
|
|
10807
|
+
query: {
|
|
10808
|
+
page?: number | undefined;
|
|
10809
|
+
items?: number | undefined;
|
|
10810
|
+
chainId: number;
|
|
10811
|
+
tokenAddress: string;
|
|
10812
|
+
campaignId?: string | undefined;
|
|
10813
|
+
recipient?: string | undefined;
|
|
10814
|
+
sort?: string | undefined;
|
|
10815
|
+
order?: string | undefined;
|
|
10816
|
+
};
|
|
10817
|
+
headers: {
|
|
10818
|
+
authorization: string;
|
|
10819
|
+
};
|
|
10820
|
+
response: {
|
|
10821
|
+
200: {
|
|
10822
|
+
breakdowns: {
|
|
10823
|
+
tokenAddress: string;
|
|
10824
|
+
recipient: string;
|
|
10825
|
+
campaignId: string;
|
|
10826
|
+
reason: string;
|
|
10827
|
+
amount: string;
|
|
10828
|
+
claimed: string;
|
|
10829
|
+
subCampaignId: string | null;
|
|
10830
|
+
lastProcessedTimestamp: number;
|
|
10831
|
+
distributionChainId: number;
|
|
10832
|
+
}[];
|
|
10833
|
+
count: number;
|
|
10834
|
+
summary: {
|
|
10835
|
+
total: number;
|
|
10836
|
+
totalAmount: string;
|
|
10837
|
+
totalClaimed: string;
|
|
10838
|
+
positiveAmount: string;
|
|
10839
|
+
negativeAmount: string;
|
|
10840
|
+
};
|
|
10841
|
+
opportunities: Record<string, {
|
|
10842
|
+
name: string | null;
|
|
10843
|
+
path: string;
|
|
10844
|
+
}>;
|
|
10845
|
+
};
|
|
10846
|
+
422: {
|
|
10847
|
+
type: "validation";
|
|
10848
|
+
on: string;
|
|
10849
|
+
summary?: string | undefined;
|
|
10850
|
+
message?: string | undefined;
|
|
10851
|
+
found?: unknown;
|
|
10852
|
+
property?: string | undefined;
|
|
10853
|
+
expected?: string | undefined;
|
|
10854
|
+
};
|
|
10855
|
+
};
|
|
10856
|
+
};
|
|
10857
|
+
};
|
|
10858
|
+
};
|
|
10859
|
+
} & {
|
|
10860
|
+
diffs: {
|
|
10861
|
+
"leaf-tokens": {
|
|
10862
|
+
get: {
|
|
10863
|
+
body: unknown;
|
|
10864
|
+
params: {};
|
|
10865
|
+
query: {
|
|
10866
|
+
chainId: number;
|
|
10867
|
+
};
|
|
10868
|
+
headers: {
|
|
10869
|
+
authorization: string;
|
|
10870
|
+
};
|
|
10871
|
+
response: {
|
|
10872
|
+
200: {
|
|
10873
|
+
id: string;
|
|
10874
|
+
name: string | null;
|
|
10875
|
+
chainId: number;
|
|
10876
|
+
address: string;
|
|
10877
|
+
decimals: number;
|
|
10878
|
+
symbol: string;
|
|
10879
|
+
icon: string;
|
|
10880
|
+
verified: boolean;
|
|
10881
|
+
isNative: boolean;
|
|
10882
|
+
isTest: boolean;
|
|
10883
|
+
type: "POINT" | "PRETGE" | "TOKEN";
|
|
10884
|
+
price?: number | null | undefined;
|
|
10885
|
+
updatedAt?: number | null | undefined;
|
|
10886
|
+
priceSource?: string | null | undefined;
|
|
10887
|
+
displaySymbol?: string | undefined;
|
|
10888
|
+
underlyingTokenId?: string | undefined;
|
|
10889
|
+
}[];
|
|
10890
|
+
422: {
|
|
10891
|
+
type: "validation";
|
|
10892
|
+
on: string;
|
|
10893
|
+
summary?: string | undefined;
|
|
10894
|
+
message?: string | undefined;
|
|
10895
|
+
found?: unknown;
|
|
10896
|
+
property?: string | undefined;
|
|
10897
|
+
expected?: string | undefined;
|
|
10898
|
+
};
|
|
10899
|
+
};
|
|
10900
|
+
};
|
|
10901
|
+
};
|
|
10902
|
+
};
|
|
10484
10903
|
} & {
|
|
10485
10904
|
disputes: {
|
|
10486
10905
|
post: {
|
|
@@ -70,6 +70,42 @@ export declare const BlockTimestampController: Elysia<"/block-timestamp", {
|
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
|
+
} & {
|
|
74
|
+
"block-timestamp": {
|
|
75
|
+
bounds: {
|
|
76
|
+
get: {
|
|
77
|
+
body: unknown;
|
|
78
|
+
params: {};
|
|
79
|
+
query: {
|
|
80
|
+
chainId: number;
|
|
81
|
+
timestamp: number;
|
|
82
|
+
};
|
|
83
|
+
headers: unknown;
|
|
84
|
+
response: {
|
|
85
|
+
200: {
|
|
86
|
+
lower: {
|
|
87
|
+
blockNumber: number;
|
|
88
|
+
timestamp: number;
|
|
89
|
+
} | null;
|
|
90
|
+
upper: {
|
|
91
|
+
blockNumber: number;
|
|
92
|
+
timestamp: number;
|
|
93
|
+
} | null;
|
|
94
|
+
exactMatch: boolean;
|
|
95
|
+
};
|
|
96
|
+
422: {
|
|
97
|
+
type: "validation";
|
|
98
|
+
on: string;
|
|
99
|
+
summary?: string | undefined;
|
|
100
|
+
message?: string | undefined;
|
|
101
|
+
found?: unknown;
|
|
102
|
+
property?: string | undefined;
|
|
103
|
+
expected?: string | undefined;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
73
109
|
}, {
|
|
74
110
|
derive: {};
|
|
75
111
|
resolve: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-timestamp.controller.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/block-timestamp/block-timestamp.controller.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,MAAM,CAAC;IACjD,MAAM,EAAE,kBAAkB;IAC1B,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,iBAAiB,CAAC,EAAE;CACtC,CAAC;IACA,iDAAiD;KAChD,GAAG,CACF,QAAQ,EACR,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC;IAC3C,MAAM,WAAW,GAAG,MAAM,qBAAqB,CAAC,0BAA0B,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC/F,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,sCAAsC,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,EAAE,WAAW,EAAE,CAAC;AAAA,CACxB,EACD;IACE,KAAK,EAAE,2BAA2B;IAClC,QAAQ,EAAE,sBAAsB;IAChC,MAAM,EAAE;QACN,WAAW,EAAE,uEAAuE;KACrF;CACF,CACF;IAED,iDAAiD;KAChD,GAAG,CACF,YAAY,EACZ,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,EAAE,CAAC;IAC7C,MAAM,SAAS,GAAG,MAAM,qBAAqB,CAAC,0BAA0B,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAC/F,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,0CAA0C,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,EAAE,SAAS,EAAE,CAAC;AAAA,CACtB,EACD;IACE,KAAK,EAAE,2BAA2B;IAClC,QAAQ,EAAE,oBAAoB;IAC9B,MAAM,EAAE;QACN,WAAW,EAAE,uEAAuE;KACrF;CACF,CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"block-timestamp.controller.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/block-timestamp/block-timestamp.controller.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,EAC3B,iBAAiB,EACjB,2BAA2B,EAC3B,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,MAAM,CAAC;IACjD,MAAM,EAAE,kBAAkB;IAC1B,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,iBAAiB,CAAC,EAAE;CACtC,CAAC;IACA,iDAAiD;KAChD,GAAG,CACF,QAAQ,EACR,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC;IAC3C,MAAM,WAAW,GAAG,MAAM,qBAAqB,CAAC,0BAA0B,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC/F,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,sCAAsC,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,EAAE,WAAW,EAAE,CAAC;AAAA,CACxB,EACD;IACE,KAAK,EAAE,2BAA2B;IAClC,QAAQ,EAAE,sBAAsB;IAChC,MAAM,EAAE;QACN,WAAW,EAAE,uEAAuE;KACrF;CACF,CACF;IAED,iDAAiD;KAChD,GAAG,CACF,YAAY,EACZ,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,EAAE,CAAC;IAC7C,MAAM,SAAS,GAAG,MAAM,qBAAqB,CAAC,0BAA0B,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAC/F,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,0CAA0C,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,EAAE,SAAS,EAAE,CAAC;AAAA,CACtB,EACD;IACE,KAAK,EAAE,2BAA2B;IAClC,QAAQ,EAAE,oBAAoB;IAC9B,MAAM,EAAE;QACN,WAAW,EAAE,uEAAuE;KACrF;CACF,CACF;IAED,iEAAiE;KAChE,GAAG,CACF,SAAS,EACT,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAG,MAAM,qBAAqB,CAAC,qBAAqB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACrF,OAAO;QACL,GAAG,MAAM;QACT,UAAU,EAAE,MAAM,CAAC,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,SAAS,KAAK,MAAM,CAAC,KAAK,CAAC,SAAS;KAChH,CAAC;AAAA,CACH,EACD;IACE,KAAK,EAAE,iBAAiB;IACxB,QAAQ,EAAE,iBAAiB;IAC3B,MAAM,EAAE;QACN,WAAW,EAAE,+FAA+F;KAC7G;CACF,CACF,CAAC"}
|
|
@@ -12,3 +12,22 @@ export declare const BlockNumberResponseDto: import("@sinclair/typebox").TObject
|
|
|
12
12
|
export declare const TimestampResponseDto: import("@sinclair/typebox").TObject<{
|
|
13
13
|
timestamp: import("@sinclair/typebox").TNumber;
|
|
14
14
|
}>;
|
|
15
|
+
export declare const GetBoundsQueryDto: import("@sinclair/typebox").TObject<{
|
|
16
|
+
chainId: import("@sinclair/typebox").TNumber;
|
|
17
|
+
timestamp: import("@sinclair/typebox").TNumber;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const BlockTimestampDto: import("@sinclair/typebox").TObject<{
|
|
20
|
+
blockNumber: import("@sinclair/typebox").TNumber;
|
|
21
|
+
timestamp: import("@sinclair/typebox").TNumber;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const BoundsResponseDto: import("@sinclair/typebox").TObject<{
|
|
24
|
+
lower: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
25
|
+
blockNumber: import("@sinclair/typebox").TNumber;
|
|
26
|
+
timestamp: import("@sinclair/typebox").TNumber;
|
|
27
|
+
}>, import("@sinclair/typebox").TNull]>;
|
|
28
|
+
upper: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
29
|
+
blockNumber: import("@sinclair/typebox").TNumber;
|
|
30
|
+
timestamp: import("@sinclair/typebox").TNumber;
|
|
31
|
+
}>, import("@sinclair/typebox").TNull]>;
|
|
32
|
+
exactMatch: import("@sinclair/typebox").TBoolean;
|
|
33
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-timestamp.model.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/block-timestamp/block-timestamp.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;CACvD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;IAC9C,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;CACvD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;CAC/D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;CAC1D,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"block-timestamp.model.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/block-timestamp/block-timestamp.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;CACvD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;IAC9C,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;CACvD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;CAC/D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;CAC1D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;CACvD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;IACtD,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;CACvD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;IACxG,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;IACxG,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,8CAA8C,EAAE,CAAC;CACvF,CAAC,CAAC"}
|
|
@@ -7,4 +7,19 @@ export declare abstract class BlockTimestampRepository {
|
|
|
7
7
|
* Get the closest timestamp to a given block number on a specific chain
|
|
8
8
|
*/
|
|
9
9
|
static getClosestTimestampToBlock(chainId: number, blockNumber: number): Promise<number | null>;
|
|
10
|
+
/**
|
|
11
|
+
* Get the closest lower and upper bound blocks for a given timestamp.
|
|
12
|
+
* Lower: closest block with blockTimestamp <= target
|
|
13
|
+
* Upper: closest block with blockTimestamp >= target
|
|
14
|
+
*/
|
|
15
|
+
static getBoundsForTimestamp(chainId: number, timestamp: number): Promise<{
|
|
16
|
+
lower: {
|
|
17
|
+
blockNumber: number;
|
|
18
|
+
timestamp: number;
|
|
19
|
+
} | null;
|
|
20
|
+
upper: {
|
|
21
|
+
blockNumber: number;
|
|
22
|
+
timestamp: number;
|
|
23
|
+
} | null;
|
|
24
|
+
}>;
|
|
10
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-timestamp.repository.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/block-timestamp/block-timestamp.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,OAAgB,wBAAwB;IAC5C;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,OAAe,EAAE,SAAiB,EAA0B;QAClG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,SAAS,CAAA;;;0BAG3B,OAAO;wDACuB,SAAS;;KAE5D,CAAmC,CAAC;QAErC,OAAO,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAAA,CACrD;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,OAAe,EAAE,WAAmB,EAA0B;QACpG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,SAAS,CAAA;;;0BAG3B,OAAO;qDACoB,WAAW;;KAE3D,CAAsC,CAAC;QAExC,OAAO,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAAA,CACxD;CACF"}
|
|
1
|
+
{"version":3,"file":"block-timestamp.repository.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/block-timestamp/block-timestamp.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,OAAgB,wBAAwB;IAC5C;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,OAAe,EAAE,SAAiB,EAA0B;QAClG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,SAAS,CAAA;;;0BAG3B,OAAO;wDACuB,SAAS;;KAE5D,CAAmC,CAAC;QAErC,OAAO,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAAA,CACrD;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,OAAe,EAAE,WAAmB,EAA0B;QACpG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,SAAS,CAAA;;;0BAG3B,OAAO;qDACoB,WAAW;;KAE3D,CAAsC,CAAC;QAExC,OAAO,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAAA,CACxD;IAED;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAChC,OAAe,EACf,SAAiB,EAIhB;QACD,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YACvC,cAAc,CAAC,qBAAqB,CAAC,SAAS,CAAC;gBAC7C,KAAK,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;gBACtD,OAAO,EAAE,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;gBAC7D,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE;aACpD,CAAC;YACF,cAAc,CAAC,qBAAqB,CAAC,SAAS,CAAC;gBAC7C,KAAK,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;gBACtD,OAAO,EAAE,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;gBAC7D,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE;aACpD,CAAC;SACH,CAAC,CAAC;QAEH,OAAO;YACL,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;YACzG,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;SAC1G,CAAC;IAAA,CACH;CACF"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
export declare abstract class BlockTimestampService {
|
|
2
2
|
static getClosestBlockToTimestamp(chainId: number, timestamp: number): Promise<number | null>;
|
|
3
3
|
static getClosestTimestampToBlock(chainId: number, blockNumber: number): Promise<number | null>;
|
|
4
|
+
static getBoundsForTimestamp(chainId: number, timestamp: number): Promise<{
|
|
5
|
+
lower: {
|
|
6
|
+
blockNumber: number;
|
|
7
|
+
timestamp: number;
|
|
8
|
+
} | null;
|
|
9
|
+
upper: {
|
|
10
|
+
blockNumber: number;
|
|
11
|
+
timestamp: number;
|
|
12
|
+
} | null;
|
|
13
|
+
}>;
|
|
4
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-timestamp.service.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/block-timestamp/block-timestamp.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE,MAAM,OAAgB,qBAAqB;IACzC,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,OAAe,EAAE,SAAiB,EAA0B;QAClG,OAAO,wBAAwB,CAAC,0BAA0B,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAAA,CAChF;IAED,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,OAAe,EAAE,WAAmB,EAA0B;QACpG,OAAO,wBAAwB,CAAC,0BAA0B,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAAA,CAClF;CACF"}
|
|
1
|
+
{"version":3,"file":"block-timestamp.service.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/block-timestamp/block-timestamp.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE,MAAM,OAAgB,qBAAqB;IACzC,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,OAAe,EAAE,SAAiB,EAA0B;QAClG,OAAO,wBAAwB,CAAC,0BAA0B,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAAA,CAChF;IAED,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,OAAe,EAAE,WAAmB,EAA0B;QACpG,OAAO,wBAAwB,CAAC,0BAA0B,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAAA,CAClF;IAED,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,OAAe,EAAE,SAAiB,EAAE;QACrE,OAAO,wBAAwB,CAAC,qBAAqB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAAA,CAC3E;CACF"}
|