@merkl/api 0.15.26 → 0.15.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 +172 -125
- package/dist/src/index.d.ts +36 -25
- package/dist/src/modules/v4/boost/boost.controller.d.ts +32 -25
- package/dist/src/modules/v4/boost/boost.controller.js +4 -3
- package/dist/src/modules/v4/boost/boost.model.d.ts +6 -0
- package/dist/src/modules/v4/boost/boost.model.js +4 -0
- package/dist/src/modules/v4/boost/boost.service.d.ts +6 -1
- package/dist/src/modules/v4/boost/boost.service.js +33 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +22 -2
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +403 -42
- package/dist/src/modules/v4/router.d.ts +36 -25
- package/dist/src/modules/v4/status/status.controller.d.ts +4 -0
- package/dist/src/modules/v4/status/status.service.d.ts +4 -0
- package/dist/src/modules/v4/status/status.service.js +9 -4
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -2713,6 +2713,10 @@ declare const eden: {
|
|
2713
2713
|
live: string;
|
2714
2714
|
tree: string;
|
2715
2715
|
lastTree: string;
|
2716
|
+
admin: string;
|
2717
|
+
adminUrl: string;
|
2718
|
+
distributor: string;
|
2719
|
+
distributionCreator: string;
|
2716
2720
|
endOfDisputePeriod: number;
|
2717
2721
|
delayed: Awaited<ReturnType<typeof import("../modules/v4/status").StatusService.findManyDelay>>;
|
2718
2722
|
};
|
@@ -2995,32 +2999,37 @@ declare const eden: {
|
|
2995
2999
|
}[];
|
2996
3000
|
}>>;
|
2997
3001
|
};
|
2998
|
-
|
2999
|
-
|
3000
|
-
|
3001
|
-
score: string;
|
3002
|
-
}[] | {
|
3003
|
-
addresses: string[];
|
3004
|
-
}, options?: {
|
3005
|
-
headers?: Record<string, unknown> | undefined;
|
3006
|
-
query?: Record<string, unknown> | undefined;
|
3007
|
-
fetch?: RequestInit | undefined;
|
3008
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3009
|
-
200: {
|
3010
|
-
address: string;
|
3011
|
-
boost: string;
|
3012
|
-
}[];
|
3013
|
-
}>>;
|
3014
|
-
get: (options?: {
|
3015
|
-
headers?: Record<string, unknown> | undefined;
|
3016
|
-
query?: Record<string, unknown> | undefined;
|
3017
|
-
fetch?: RequestInit | undefined;
|
3018
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3019
|
-
200: {
|
3002
|
+
openblock: {
|
3003
|
+
zksync: {
|
3004
|
+
post: (body: {
|
3020
3005
|
address: string;
|
3021
|
-
|
3022
|
-
}[]
|
3023
|
-
|
3006
|
+
score: string;
|
3007
|
+
}[] | {
|
3008
|
+
addresses: string[];
|
3009
|
+
}, options: {
|
3010
|
+
headers?: Record<string, unknown> | undefined;
|
3011
|
+
query: {
|
3012
|
+
protocol: string;
|
3013
|
+
target: string;
|
3014
|
+
};
|
3015
|
+
fetch?: RequestInit | undefined;
|
3016
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3017
|
+
200: {
|
3018
|
+
address: string;
|
3019
|
+
boost: string;
|
3020
|
+
}[];
|
3021
|
+
}>>;
|
3022
|
+
get: (options?: {
|
3023
|
+
headers?: Record<string, unknown> | undefined;
|
3024
|
+
query?: Record<string, unknown> | undefined;
|
3025
|
+
fetch?: RequestInit | undefined;
|
3026
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3027
|
+
200: {
|
3028
|
+
address: string;
|
3029
|
+
boost: string;
|
3030
|
+
}[];
|
3031
|
+
}>>;
|
3032
|
+
};
|
3024
3033
|
};
|
3025
3034
|
};
|
3026
3035
|
value: {
|
@@ -5785,6 +5794,10 @@ declare const eden: {
|
|
5785
5794
|
live: string;
|
5786
5795
|
tree: string;
|
5787
5796
|
lastTree: string;
|
5797
|
+
admin: string;
|
5798
|
+
adminUrl: string;
|
5799
|
+
distributor: string;
|
5800
|
+
distributionCreator: string;
|
5788
5801
|
endOfDisputePeriod: number;
|
5789
5802
|
delayed: Awaited<ReturnType<typeof import("../modules/v4/status").StatusService.findManyDelay>>;
|
5790
5803
|
};
|
@@ -6067,32 +6080,37 @@ declare const eden: {
|
|
6067
6080
|
}[];
|
6068
6081
|
}>>;
|
6069
6082
|
};
|
6070
|
-
|
6071
|
-
|
6072
|
-
|
6073
|
-
score: string;
|
6074
|
-
}[] | {
|
6075
|
-
addresses: string[];
|
6076
|
-
}, options?: {
|
6077
|
-
headers?: Record<string, unknown> | undefined;
|
6078
|
-
query?: Record<string, unknown> | undefined;
|
6079
|
-
fetch?: RequestInit | undefined;
|
6080
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6081
|
-
200: {
|
6082
|
-
address: string;
|
6083
|
-
boost: string;
|
6084
|
-
}[];
|
6085
|
-
}>>;
|
6086
|
-
get: (options?: {
|
6087
|
-
headers?: Record<string, unknown> | undefined;
|
6088
|
-
query?: Record<string, unknown> | undefined;
|
6089
|
-
fetch?: RequestInit | undefined;
|
6090
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6091
|
-
200: {
|
6083
|
+
openblock: {
|
6084
|
+
zksync: {
|
6085
|
+
post: (body: {
|
6092
6086
|
address: string;
|
6093
|
-
|
6094
|
-
}[]
|
6095
|
-
|
6087
|
+
score: string;
|
6088
|
+
}[] | {
|
6089
|
+
addresses: string[];
|
6090
|
+
}, options: {
|
6091
|
+
headers?: Record<string, unknown> | undefined;
|
6092
|
+
query: {
|
6093
|
+
protocol: string;
|
6094
|
+
target: string;
|
6095
|
+
};
|
6096
|
+
fetch?: RequestInit | undefined;
|
6097
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6098
|
+
200: {
|
6099
|
+
address: string;
|
6100
|
+
boost: string;
|
6101
|
+
}[];
|
6102
|
+
}>>;
|
6103
|
+
get: (options?: {
|
6104
|
+
headers?: Record<string, unknown> | undefined;
|
6105
|
+
query?: Record<string, unknown> | undefined;
|
6106
|
+
fetch?: RequestInit | undefined;
|
6107
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6108
|
+
200: {
|
6109
|
+
address: string;
|
6110
|
+
boost: string;
|
6111
|
+
}[];
|
6112
|
+
}>>;
|
6113
|
+
};
|
6096
6114
|
};
|
6097
6115
|
};
|
6098
6116
|
value: {
|
@@ -10186,6 +10204,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
10186
10204
|
live: string;
|
10187
10205
|
tree: string;
|
10188
10206
|
lastTree: string;
|
10207
|
+
admin: string;
|
10208
|
+
adminUrl: string;
|
10209
|
+
distributor: string;
|
10210
|
+
distributionCreator: string;
|
10189
10211
|
endOfDisputePeriod: number;
|
10190
10212
|
delayed: Awaited<ReturnType<typeof import("../modules/v4/status").StatusService.findManyDelay>>;
|
10191
10213
|
};
|
@@ -10540,39 +10562,46 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
10540
10562
|
};
|
10541
10563
|
} & {
|
10542
10564
|
boosts: {
|
10543
|
-
|
10544
|
-
|
10545
|
-
|
10546
|
-
|
10547
|
-
|
10548
|
-
|
10549
|
-
score: string;
|
10550
|
-
}[];
|
10551
|
-
params: {};
|
10552
|
-
query: unknown;
|
10553
|
-
headers: unknown;
|
10554
|
-
response: {
|
10555
|
-
200: {
|
10565
|
+
openblock: {
|
10566
|
+
zksync: {
|
10567
|
+
post: {
|
10568
|
+
body: {
|
10569
|
+
addresses: string[];
|
10570
|
+
} | {
|
10556
10571
|
address: string;
|
10557
|
-
|
10572
|
+
score: string;
|
10558
10573
|
}[];
|
10574
|
+
params: {};
|
10575
|
+
query: {
|
10576
|
+
protocol: string;
|
10577
|
+
target: string;
|
10578
|
+
};
|
10579
|
+
headers: unknown;
|
10580
|
+
response: {
|
10581
|
+
200: {
|
10582
|
+
address: string;
|
10583
|
+
boost: string;
|
10584
|
+
}[];
|
10585
|
+
};
|
10559
10586
|
};
|
10560
10587
|
};
|
10561
10588
|
};
|
10562
10589
|
};
|
10563
10590
|
} & {
|
10564
10591
|
boosts: {
|
10565
|
-
|
10566
|
-
|
10567
|
-
|
10568
|
-
|
10569
|
-
|
10570
|
-
|
10571
|
-
|
10572
|
-
|
10573
|
-
|
10574
|
-
|
10575
|
-
|
10592
|
+
openblock: {
|
10593
|
+
zksync: {
|
10594
|
+
get: {
|
10595
|
+
body: unknown;
|
10596
|
+
params: {};
|
10597
|
+
query: unknown;
|
10598
|
+
headers: unknown;
|
10599
|
+
response: {
|
10600
|
+
200: {
|
10601
|
+
address: string;
|
10602
|
+
boost: string;
|
10603
|
+
}[];
|
10604
|
+
};
|
10576
10605
|
};
|
10577
10606
|
};
|
10578
10607
|
};
|
@@ -14276,6 +14305,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
14276
14305
|
live: string;
|
14277
14306
|
tree: string;
|
14278
14307
|
lastTree: string;
|
14308
|
+
admin: string;
|
14309
|
+
adminUrl: string;
|
14310
|
+
distributor: string;
|
14311
|
+
distributionCreator: string;
|
14279
14312
|
endOfDisputePeriod: number;
|
14280
14313
|
delayed: Awaited<ReturnType<typeof import("../modules/v4/status").StatusService.findManyDelay>>;
|
14281
14314
|
};
|
@@ -14558,32 +14591,37 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
14558
14591
|
}[];
|
14559
14592
|
}>>;
|
14560
14593
|
};
|
14561
|
-
|
14562
|
-
|
14563
|
-
|
14564
|
-
score: string;
|
14565
|
-
}[] | {
|
14566
|
-
addresses: string[];
|
14567
|
-
}, options?: {
|
14568
|
-
headers?: Record<string, unknown> | undefined;
|
14569
|
-
query?: Record<string, unknown> | undefined;
|
14570
|
-
fetch?: RequestInit | undefined;
|
14571
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
14572
|
-
200: {
|
14573
|
-
address: string;
|
14574
|
-
boost: string;
|
14575
|
-
}[];
|
14576
|
-
}>>;
|
14577
|
-
get: (options?: {
|
14578
|
-
headers?: Record<string, unknown> | undefined;
|
14579
|
-
query?: Record<string, unknown> | undefined;
|
14580
|
-
fetch?: RequestInit | undefined;
|
14581
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
14582
|
-
200: {
|
14594
|
+
openblock: {
|
14595
|
+
zksync: {
|
14596
|
+
post: (body: {
|
14583
14597
|
address: string;
|
14584
|
-
|
14585
|
-
}[]
|
14586
|
-
|
14598
|
+
score: string;
|
14599
|
+
}[] | {
|
14600
|
+
addresses: string[];
|
14601
|
+
}, options: {
|
14602
|
+
headers?: Record<string, unknown> | undefined;
|
14603
|
+
query: {
|
14604
|
+
protocol: string;
|
14605
|
+
target: string;
|
14606
|
+
};
|
14607
|
+
fetch?: RequestInit | undefined;
|
14608
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
14609
|
+
200: {
|
14610
|
+
address: string;
|
14611
|
+
boost: string;
|
14612
|
+
}[];
|
14613
|
+
}>>;
|
14614
|
+
get: (options?: {
|
14615
|
+
headers?: Record<string, unknown> | undefined;
|
14616
|
+
query?: Record<string, unknown> | undefined;
|
14617
|
+
fetch?: RequestInit | undefined;
|
14618
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
14619
|
+
200: {
|
14620
|
+
address: string;
|
14621
|
+
boost: string;
|
14622
|
+
}[];
|
14623
|
+
}>>;
|
14624
|
+
};
|
14587
14625
|
};
|
14588
14626
|
};
|
14589
14627
|
value: {
|
@@ -17348,6 +17386,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17348
17386
|
live: string;
|
17349
17387
|
tree: string;
|
17350
17388
|
lastTree: string;
|
17389
|
+
admin: string;
|
17390
|
+
adminUrl: string;
|
17391
|
+
distributor: string;
|
17392
|
+
distributionCreator: string;
|
17351
17393
|
endOfDisputePeriod: number;
|
17352
17394
|
delayed: Awaited<ReturnType<typeof import("../modules/v4/status").StatusService.findManyDelay>>;
|
17353
17395
|
};
|
@@ -17630,32 +17672,37 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17630
17672
|
}[];
|
17631
17673
|
}>>;
|
17632
17674
|
};
|
17633
|
-
|
17634
|
-
|
17635
|
-
|
17636
|
-
score: string;
|
17637
|
-
}[] | {
|
17638
|
-
addresses: string[];
|
17639
|
-
}, options?: {
|
17640
|
-
headers?: Record<string, unknown> | undefined;
|
17641
|
-
query?: Record<string, unknown> | undefined;
|
17642
|
-
fetch?: RequestInit | undefined;
|
17643
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17644
|
-
200: {
|
17645
|
-
address: string;
|
17646
|
-
boost: string;
|
17647
|
-
}[];
|
17648
|
-
}>>;
|
17649
|
-
get: (options?: {
|
17650
|
-
headers?: Record<string, unknown> | undefined;
|
17651
|
-
query?: Record<string, unknown> | undefined;
|
17652
|
-
fetch?: RequestInit | undefined;
|
17653
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17654
|
-
200: {
|
17675
|
+
openblock: {
|
17676
|
+
zksync: {
|
17677
|
+
post: (body: {
|
17655
17678
|
address: string;
|
17656
|
-
|
17657
|
-
}[]
|
17658
|
-
|
17679
|
+
score: string;
|
17680
|
+
}[] | {
|
17681
|
+
addresses: string[];
|
17682
|
+
}, options: {
|
17683
|
+
headers?: Record<string, unknown> | undefined;
|
17684
|
+
query: {
|
17685
|
+
protocol: string;
|
17686
|
+
target: string;
|
17687
|
+
};
|
17688
|
+
fetch?: RequestInit | undefined;
|
17689
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17690
|
+
200: {
|
17691
|
+
address: string;
|
17692
|
+
boost: string;
|
17693
|
+
}[];
|
17694
|
+
}>>;
|
17695
|
+
get: (options?: {
|
17696
|
+
headers?: Record<string, unknown> | undefined;
|
17697
|
+
query?: Record<string, unknown> | undefined;
|
17698
|
+
fetch?: RequestInit | undefined;
|
17699
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17700
|
+
200: {
|
17701
|
+
address: string;
|
17702
|
+
boost: string;
|
17703
|
+
}[];
|
17704
|
+
}>>;
|
17705
|
+
};
|
17659
17706
|
};
|
17660
17707
|
};
|
17661
17708
|
value: {
|
package/dist/src/index.d.ts
CHANGED
@@ -3344,6 +3344,10 @@ declare const app: Elysia<"", false, {
|
|
3344
3344
|
live: string;
|
3345
3345
|
tree: string;
|
3346
3346
|
lastTree: string;
|
3347
|
+
admin: string;
|
3348
|
+
adminUrl: string;
|
3349
|
+
distributor: string;
|
3350
|
+
distributionCreator: string;
|
3347
3351
|
endOfDisputePeriod: number;
|
3348
3352
|
delayed: Awaited<ReturnType<typeof import("./modules/v4/status").StatusService.findManyDelay>>;
|
3349
3353
|
};
|
@@ -3698,39 +3702,46 @@ declare const app: Elysia<"", false, {
|
|
3698
3702
|
};
|
3699
3703
|
} & {
|
3700
3704
|
boosts: {
|
3701
|
-
|
3702
|
-
|
3703
|
-
|
3704
|
-
|
3705
|
-
|
3706
|
-
|
3707
|
-
score: string;
|
3708
|
-
}[];
|
3709
|
-
params: {};
|
3710
|
-
query: unknown;
|
3711
|
-
headers: unknown;
|
3712
|
-
response: {
|
3713
|
-
200: {
|
3705
|
+
openblock: {
|
3706
|
+
zksync: {
|
3707
|
+
post: {
|
3708
|
+
body: {
|
3709
|
+
addresses: string[];
|
3710
|
+
} | {
|
3714
3711
|
address: string;
|
3715
|
-
|
3712
|
+
score: string;
|
3716
3713
|
}[];
|
3714
|
+
params: {};
|
3715
|
+
query: {
|
3716
|
+
protocol: string;
|
3717
|
+
target: string;
|
3718
|
+
};
|
3719
|
+
headers: unknown;
|
3720
|
+
response: {
|
3721
|
+
200: {
|
3722
|
+
address: string;
|
3723
|
+
boost: string;
|
3724
|
+
}[];
|
3725
|
+
};
|
3717
3726
|
};
|
3718
3727
|
};
|
3719
3728
|
};
|
3720
3729
|
};
|
3721
3730
|
} & {
|
3722
3731
|
boosts: {
|
3723
|
-
|
3724
|
-
|
3725
|
-
|
3726
|
-
|
3727
|
-
|
3728
|
-
|
3729
|
-
|
3730
|
-
|
3731
|
-
|
3732
|
-
|
3733
|
-
|
3732
|
+
openblock: {
|
3733
|
+
zksync: {
|
3734
|
+
get: {
|
3735
|
+
body: unknown;
|
3736
|
+
params: {};
|
3737
|
+
query: unknown;
|
3738
|
+
headers: unknown;
|
3739
|
+
response: {
|
3740
|
+
200: {
|
3741
|
+
address: string;
|
3742
|
+
boost: string;
|
3743
|
+
}[];
|
3744
|
+
};
|
3734
3745
|
};
|
3735
3746
|
};
|
3736
3747
|
};
|
@@ -52,39 +52,46 @@ export declare const BoostController: Elysia<"/boosts", false, {
|
|
52
52
|
};
|
53
53
|
} & {
|
54
54
|
boosts: {
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
score: string;
|
62
|
-
}[];
|
63
|
-
params: {};
|
64
|
-
query: unknown;
|
65
|
-
headers: unknown;
|
66
|
-
response: {
|
67
|
-
200: {
|
55
|
+
openblock: {
|
56
|
+
zksync: {
|
57
|
+
post: {
|
58
|
+
body: {
|
59
|
+
addresses: string[];
|
60
|
+
} | {
|
68
61
|
address: string;
|
69
|
-
|
62
|
+
score: string;
|
70
63
|
}[];
|
64
|
+
params: {};
|
65
|
+
query: {
|
66
|
+
protocol: string;
|
67
|
+
target: string;
|
68
|
+
};
|
69
|
+
headers: unknown;
|
70
|
+
response: {
|
71
|
+
200: {
|
72
|
+
address: string;
|
73
|
+
boost: string;
|
74
|
+
}[];
|
75
|
+
};
|
71
76
|
};
|
72
77
|
};
|
73
78
|
};
|
74
79
|
};
|
75
80
|
} & {
|
76
81
|
boosts: {
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
82
|
+
openblock: {
|
83
|
+
zksync: {
|
84
|
+
get: {
|
85
|
+
body: unknown;
|
86
|
+
params: {};
|
87
|
+
query: unknown;
|
88
|
+
headers: unknown;
|
89
|
+
response: {
|
90
|
+
200: {
|
91
|
+
address: string;
|
92
|
+
boost: string;
|
93
|
+
}[];
|
94
|
+
};
|
88
95
|
};
|
89
96
|
};
|
90
97
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
import { getEulerBoostBody } from "./boost.model";
|
2
|
+
import { getEulerBoostBody, getZksyncBoost } from "./boost.model";
|
3
3
|
import { BoostService } from "./boost.service";
|
4
4
|
export const BoostController = new Elysia({ prefix: "/boosts", detail: { tags: ["Boosts"], hide: true } })
|
5
5
|
// ─── Get Euler Boost ─────────────────────────────────────────────────
|
@@ -8,8 +8,9 @@ export const BoostController = new Elysia({ prefix: "/boosts", detail: { tags: [
|
|
8
8
|
detail: { hide: true },
|
9
9
|
})
|
10
10
|
.get("/euler", async () => BoostService.getEulerBoost())
|
11
|
-
.post("/
|
11
|
+
.post("/openblock/zksync", async ({ query, body }) => BoostService.getOpenBlockBoost(query, body), {
|
12
|
+
query: getZksyncBoost,
|
12
13
|
body: getEulerBoostBody,
|
13
14
|
detail: { hide: true },
|
14
15
|
})
|
15
|
-
.get("/
|
16
|
+
.get("/openblock/zksync", async () => BoostService.getOpenBlockBoostDefault());
|
@@ -4,3 +4,9 @@ export declare const getEulerBoostBody: import("@sinclair/typebox").TUnion<[impo
|
|
4
4
|
address: import("@sinclair/typebox").TString;
|
5
5
|
score: import("@sinclair/typebox").TString;
|
6
6
|
}>>]>;
|
7
|
+
export declare const getZksyncBoost: import("@sinclair/typebox").TObject<{
|
8
|
+
protocol: import("@sinclair/typebox").TString;
|
9
|
+
target: import("@sinclair/typebox").TString;
|
10
|
+
}>;
|
11
|
+
export type getZksyncBoostModel = typeof getZksyncBoost.static;
|
12
|
+
export type getEulerBoostBodyModel = typeof getEulerBoostBody.static;
|
@@ -1,9 +1,14 @@
|
|
1
|
+
import type { getEulerBoostBodyModel, getZksyncBoostModel } from "./boost.model";
|
1
2
|
export declare class BoostService {
|
2
3
|
static getEulerBoost(): Promise<{
|
3
4
|
address: string;
|
4
5
|
boost: string;
|
5
6
|
}[]>;
|
6
|
-
static getOpenBlockBoost(): Promise<{
|
7
|
+
static getOpenBlockBoost(query: getZksyncBoostModel, body: getEulerBoostBodyModel): Promise<{
|
8
|
+
address: string;
|
9
|
+
boost: string;
|
10
|
+
}[]>;
|
11
|
+
static getOpenBlockBoostDefault(): Promise<{
|
7
12
|
address: string;
|
8
13
|
boost: string;
|
9
14
|
}[]>;
|
@@ -3,7 +3,39 @@ export class BoostService {
|
|
3
3
|
static async getEulerBoost() {
|
4
4
|
return (await axios.get("https://points.euler.finance/integrations/merkl/usd0multipliers")).data.map(({ address, score }) => ({ address, boost: score }));
|
5
5
|
}
|
6
|
-
static async getOpenBlockBoost() {
|
6
|
+
static async getOpenBlockBoost(query, body) {
|
7
|
+
const protocol = query.protocol;
|
8
|
+
const target = query.target;
|
9
|
+
const url = `https://www.data-openblocklabs.com/zksync/boosts/${protocol}/${target}`;
|
10
|
+
// console.log(url);
|
11
|
+
// return (
|
12
|
+
// await axios.post(url, body, {
|
13
|
+
// headers: {
|
14
|
+
// "Content-Type": "application/json",
|
15
|
+
// }}));
|
16
|
+
return [
|
17
|
+
{ address: "0x684566c9ffcac7f6a04c3a9997000d2d58c00824", boost: "0" },
|
18
|
+
{ address: "0x29dfdd80d6acc0f9028d8a6fa7d7d448342e25c1", boost: "0" },
|
19
|
+
{ address: "0x5b9effdcbd65946f2b143725dc244563248aa4ee", boost: "0" },
|
20
|
+
{ address: "0xd2262a05e225ce0c61fb699fdcf14068132dd362", boost: "0" },
|
21
|
+
{ address: "0x7da8481e24303d55f29f0c06174f18b30b81c9ac", boost: "0" },
|
22
|
+
{ address: "0x1d098a8d7fa63a39e0884b720f86f9ba8cbbeef1", boost: "0" },
|
23
|
+
{ address: "0x7f3e3d663a5f29274d0809020c675f5cc3d1429a", boost: "0" },
|
24
|
+
{ address: "0x7f04f7fdad3272b806e3d57bec445e0ece82f2ad", boost: "0" },
|
25
|
+
{ address: "0xfe769b6f39a000ff508b5baf8fbe3a1f516f258c", boost: "0" },
|
26
|
+
{ address: "0xd635736f8ac2241cdfcc3ee02d3f3bac1f78431f", boost: "0" },
|
27
|
+
{ address: "0xb38c7e2b4ba3cdc4eaea863cbb01470353c5ea16", boost: "0" },
|
28
|
+
{ address: "0xe37885b5e1187f7f618407fb0c14a3383998348e", boost: "0" },
|
29
|
+
{ address: "0xe01f660b304be815627628c38c2dcdf37f68245e", boost: "0" },
|
30
|
+
{ address: "0xe746db07d2b4babf5f2051d40987b7278414192f", boost: "0" },
|
31
|
+
{ address: "0xa0265ed27561b25c0e7ad3ed1fed74c2ee5f8cdf", boost: "0" },
|
32
|
+
{ address: "0xdf5ad5a87fceaacb1ecef40e8e61c42c92339a10", boost: "0" },
|
33
|
+
{ address: "0xc91fc9dd7f1bb6ec429eddb577b9ace6236b2147", boost: "0" },
|
34
|
+
{ address: "0x8b81420441ac3933c58d1190c8499c2f89eb1263", boost: "0" },
|
35
|
+
{ address: "0x0000000000000000000000000000000000000000", boost: "1" },
|
36
|
+
];
|
37
|
+
}
|
38
|
+
static async getOpenBlockBoostDefault() {
|
7
39
|
return [
|
8
40
|
{ address: "0x684566c9ffcac7f6a04c3a9997000d2d58c00824", boost: "0" },
|
9
41
|
{ address: "0x29dfdd80d6acc0f9028d8a6fa7d7d448342e25c1", boost: "0" },
|