@merkl/api 0.20.158 → 0.20.159
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 +747 -747
- package/dist/src/engine/deprecated/dynamicData/factory.js +1 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js +29 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +1 -3
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Locker/metadata.d.ts +24 -0
- package/dist/src/engine/implementations/Locker/metadata.js +36 -0
- package/dist/src/engine/implementations/Locker/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/Locker/tvl.js +21 -0
- package/dist/src/engine/implementations/MultiLog/tvl.d.ts +1 -12
- package/dist/src/engine/implementations/MultiLog/tvl.js +1 -61
- package/dist/src/engine/metadata/factory.js +1 -0
- package/dist/src/engine/tvl/logStates.d.ts +17 -0
- package/dist/src/engine/tvl/logStates.js +106 -0
- package/dist/src/index.d.ts +255 -255
- package/dist/src/index.js +2 -2
- package/dist/src/modules/v4/boost/boost.controller.d.ts +1 -1
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +2 -0
- package/dist/src/modules/v4/bucket/bucket.service.js +3 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +41 -41
- package/dist/src/modules/v4/campaign/campaign.controller.js +0 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +36 -36
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +76 -76
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +18 -18
- package/dist/src/modules/v4/chain/chain.controller.d.ts +11 -11
- package/dist/src/modules/v4/chain/chain.repository.d.ts +13 -13
- package/dist/src/modules/v4/chain/chain.service.d.ts +14 -14
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.controller.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.repository.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.service.d.ts +4 -4
- package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +3 -3
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +4 -4
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +5 -5
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +105 -105
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -3
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +117 -117
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +122 -122
- package/dist/src/modules/v4/price/price.controller.d.ts +4 -4
- package/dist/src/modules/v4/price/price.repository.d.ts +5 -5
- package/dist/src/modules/v4/price/price.service.d.ts +4 -4
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +18 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +14 -7
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +128 -8
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +24 -24
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +14 -14
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +6 -6
- package/dist/src/modules/v4/reward/reward.controller.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.controller.js +0 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -12
- package/dist/src/modules/v4/reward/reward.service.d.ts +82 -82
- package/dist/src/modules/v4/router.d.ts +255 -255
- package/dist/src/modules/v4/status/status.controller.d.ts +5 -5
- package/dist/src/modules/v4/status/status.repository.d.ts +11 -11
- package/dist/src/modules/v4/status/status.service.d.ts +7 -7
- package/dist/src/modules/v4/token/token.controller.d.ts +11 -11
- package/dist/src/modules/v4/token/token.repository.d.ts +4 -4
- package/dist/src/modules/v4/token/token.service.d.ts +14 -14
- package/dist/src/modules/v4/token/token.service.js +3 -3
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +1 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +24 -24
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +3 -3
@@ -117,8 +117,8 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
|
|
117
117
|
headers: unknown;
|
118
118
|
response: {
|
119
119
|
200: {
|
120
|
-
error: string;
|
121
120
|
status: import("@db/api").$Enums.RunStatus;
|
121
|
+
error: string;
|
122
122
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
123
123
|
campaignId: string;
|
124
124
|
computedUntil: bigint;
|
@@ -138,15 +138,15 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
|
|
138
138
|
headers: unknown;
|
139
139
|
response: {
|
140
140
|
200: {
|
141
|
-
error: string;
|
142
141
|
status: import("@db/api").$Enums.RunStatus;
|
142
|
+
error: string;
|
143
143
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
144
144
|
campaignId: string;
|
145
145
|
computedUntil: bigint;
|
146
146
|
processingStarted: bigint;
|
147
147
|
}[] | {
|
148
|
-
error: string;
|
149
148
|
status: import("@db/api").$Enums.RunStatus;
|
149
|
+
error: string;
|
150
150
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
151
151
|
campaignId: string;
|
152
152
|
computedUntil: bigint;
|
@@ -182,13 +182,13 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
|
|
182
182
|
isTest: boolean;
|
183
183
|
};
|
184
184
|
Opportunity: {
|
185
|
-
name: string;
|
186
185
|
type: string;
|
186
|
+
name: string;
|
187
187
|
identifier: string;
|
188
188
|
};
|
189
189
|
CampaignStatus: {
|
190
|
-
error: string;
|
191
190
|
status: import("@db/api").$Enums.RunStatus;
|
191
|
+
error: string;
|
192
192
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
193
193
|
campaignId: string;
|
194
194
|
computedUntil: bigint;
|
@@ -4,56 +4,56 @@ import type { DelayModel, QueryCampaignStatus } from "./status.model";
|
|
4
4
|
export declare abstract class StatusRepository {
|
5
5
|
#private;
|
6
6
|
static findMany(query: QueryCampaignStatus): Promise<{
|
7
|
-
error: string;
|
8
7
|
status: import("@db/api").$Enums.RunStatus;
|
8
|
+
error: string;
|
9
9
|
details: Prisma.JsonValue;
|
10
10
|
campaignId: string;
|
11
11
|
computedUntil: bigint;
|
12
12
|
processingStarted: bigint;
|
13
13
|
}[]>;
|
14
14
|
static findManyByCampaignId(campaignId: string): Promise<{
|
15
|
-
error: string;
|
16
15
|
status: import("@db/api").$Enums.RunStatus;
|
16
|
+
error: string;
|
17
17
|
details: Prisma.JsonValue;
|
18
18
|
campaignId: string;
|
19
19
|
computedUntil: bigint;
|
20
20
|
processingStarted: bigint;
|
21
21
|
}[]>;
|
22
22
|
static findUniqueOrThrow(campaignId: string): Promise<{
|
23
|
-
error: string;
|
24
23
|
status: import("@db/api").$Enums.RunStatus;
|
24
|
+
error: string;
|
25
25
|
details: Prisma.JsonValue;
|
26
26
|
campaignId: string;
|
27
27
|
computedUntil: bigint;
|
28
28
|
processingStarted: bigint;
|
29
29
|
}>;
|
30
30
|
static findUnique(campaignUnique: CampaignUnique): Promise<{
|
31
|
-
error: string;
|
32
31
|
status: import("@db/api").$Enums.RunStatus;
|
32
|
+
error: string;
|
33
33
|
details: Prisma.JsonValue;
|
34
34
|
campaignId: string;
|
35
35
|
computedUntil: bigint;
|
36
36
|
processingStarted: bigint;
|
37
37
|
} | null>;
|
38
38
|
static create(campaign: CampaignUnique, startTimestamp: bigint): Promise<{
|
39
|
-
error: string;
|
40
39
|
status: import("@db/api").$Enums.RunStatus;
|
40
|
+
error: string;
|
41
41
|
details: Prisma.JsonValue;
|
42
42
|
campaignId: string;
|
43
43
|
computedUntil: bigint;
|
44
44
|
processingStarted: bigint;
|
45
45
|
}>;
|
46
46
|
static updateSuccess(campaignUnique: CampaignUnique, computedUntil: number): Promise<{
|
47
|
-
error: string;
|
48
47
|
status: import("@db/api").$Enums.RunStatus;
|
48
|
+
error: string;
|
49
49
|
details: Prisma.JsonValue;
|
50
50
|
campaignId: string;
|
51
51
|
computedUntil: bigint;
|
52
52
|
processingStarted: bigint;
|
53
53
|
}>;
|
54
54
|
static updateWithError(campaignUnique: CampaignUnique, status: Exclude<RunStatus, "SUCCESS" | "PROCESSING">, error: string, details: string): Promise<{
|
55
|
-
error: string;
|
56
55
|
status: import("@db/api").$Enums.RunStatus;
|
56
|
+
error: string;
|
57
57
|
details: Prisma.JsonValue;
|
58
58
|
campaignId: string;
|
59
59
|
computedUntil: bigint;
|
@@ -61,16 +61,16 @@ export declare abstract class StatusRepository {
|
|
61
61
|
}>;
|
62
62
|
static updateProcessing(campaignUnique: CampaignUnique): Promise<void>;
|
63
63
|
static updateComputedUntil(campaignUnique: CampaignUnique, computedUntil: number): Promise<{
|
64
|
-
error: string;
|
65
64
|
status: import("@db/api").$Enums.RunStatus;
|
65
|
+
error: string;
|
66
66
|
details: Prisma.JsonValue;
|
67
67
|
campaignId: string;
|
68
68
|
computedUntil: bigint;
|
69
69
|
processingStarted: bigint;
|
70
70
|
}>;
|
71
71
|
static updateErrorMessage(campaignUnique: CampaignUnique, error: string): Promise<{
|
72
|
-
error: string;
|
73
72
|
status: import("@db/api").$Enums.RunStatus;
|
73
|
+
error: string;
|
74
74
|
details: Prisma.JsonValue;
|
75
75
|
campaignId: string;
|
76
76
|
computedUntil: bigint;
|
@@ -88,13 +88,13 @@ export declare abstract class StatusRepository {
|
|
88
88
|
isTest: boolean;
|
89
89
|
};
|
90
90
|
Opportunity: {
|
91
|
-
name: string;
|
92
91
|
type: string;
|
92
|
+
name: string;
|
93
93
|
identifier: string;
|
94
94
|
};
|
95
95
|
CampaignStatus: {
|
96
|
-
error: string;
|
97
96
|
status: import("@db/api").$Enums.RunStatus;
|
97
|
+
error: string;
|
98
98
|
details: Prisma.JsonValue;
|
99
99
|
campaignId: string;
|
100
100
|
computedUntil: bigint;
|
@@ -5,38 +5,38 @@ export declare abstract class StatusService {
|
|
5
5
|
static format(status: Awaited<ReturnType<(typeof CampaignService)["findUniqueOrThrow"]>>["CampaignStatus"][number]): {
|
6
6
|
computedUntil: number;
|
7
7
|
processingStarted: number;
|
8
|
-
error: string;
|
9
8
|
status: import("@db/api").$Enums.RunStatus;
|
9
|
+
error: string;
|
10
10
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
11
11
|
campaignId: string;
|
12
12
|
};
|
13
13
|
static findMany(query: QueryCampaignStatus): Promise<{
|
14
|
-
error: string;
|
15
14
|
status: import("@db/api").$Enums.RunStatus;
|
15
|
+
error: string;
|
16
16
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
17
17
|
campaignId: string;
|
18
18
|
computedUntil: bigint;
|
19
19
|
processingStarted: bigint;
|
20
20
|
}[]>;
|
21
21
|
static findManyByCampaignId(campaignId: string): Promise<{
|
22
|
-
error: string;
|
23
22
|
status: import("@db/api").$Enums.RunStatus;
|
23
|
+
error: string;
|
24
24
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
25
25
|
campaignId: string;
|
26
26
|
computedUntil: bigint;
|
27
27
|
processingStarted: bigint;
|
28
28
|
}[]>;
|
29
29
|
static findUniqueOrThrow(campaignUnique: CampaignUnique | string): Promise<{
|
30
|
-
error: string;
|
31
30
|
status: import("@db/api").$Enums.RunStatus;
|
31
|
+
error: string;
|
32
32
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
33
33
|
campaignId: string;
|
34
34
|
computedUntil: bigint;
|
35
35
|
processingStarted: bigint;
|
36
36
|
}>;
|
37
37
|
static findUnique(campaignUnique: CampaignUnique): Promise<{
|
38
|
-
error: string;
|
39
38
|
status: import("@db/api").$Enums.RunStatus;
|
39
|
+
error: string;
|
40
40
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
41
41
|
campaignId: string;
|
42
42
|
computedUntil: bigint;
|
@@ -73,13 +73,13 @@ export declare abstract class StatusService {
|
|
73
73
|
isTest: boolean;
|
74
74
|
};
|
75
75
|
Opportunity: {
|
76
|
-
name: string;
|
77
76
|
type: string;
|
77
|
+
name: string;
|
78
78
|
identifier: string;
|
79
79
|
};
|
80
80
|
CampaignStatus: {
|
81
|
-
error: string;
|
82
81
|
status: import("@db/api").$Enums.RunStatus;
|
82
|
+
error: string;
|
83
83
|
details: import("database/api/.generated/runtime/library").JsonValue;
|
84
84
|
campaignId: string;
|
85
85
|
computedUntil: bigint;
|
@@ -24,8 +24,8 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
24
24
|
response: {
|
25
25
|
200: {
|
26
26
|
symbol: string;
|
27
|
-
id: string;
|
28
27
|
name: string | null;
|
28
|
+
id: string;
|
29
29
|
icon: string;
|
30
30
|
address: string;
|
31
31
|
chainId: number;
|
@@ -58,8 +58,8 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
58
58
|
200: {
|
59
59
|
allowance: bigint;
|
60
60
|
symbol: string;
|
61
|
-
id: string;
|
62
61
|
name: string | null;
|
62
|
+
id: string;
|
63
63
|
icon: string;
|
64
64
|
address: string;
|
65
65
|
chainId: number;
|
@@ -91,8 +91,8 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
91
91
|
[x: number]: {
|
92
92
|
minimumAmountPerHour: any;
|
93
93
|
symbol: string;
|
94
|
-
id: string;
|
95
94
|
name: string | null;
|
95
|
+
id: string;
|
96
96
|
icon: string;
|
97
97
|
address: string;
|
98
98
|
chainId: number;
|
@@ -123,8 +123,8 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
123
123
|
200: {
|
124
124
|
minimumAmountPerHour: any;
|
125
125
|
symbol: string;
|
126
|
-
id: string;
|
127
126
|
name: string | null;
|
127
|
+
id: string;
|
128
128
|
icon: string;
|
129
129
|
address: string;
|
130
130
|
chainId: number;
|
@@ -157,8 +157,8 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
157
157
|
response: {
|
158
158
|
200: ({
|
159
159
|
symbol: string;
|
160
|
-
id: string;
|
161
160
|
name: string | null;
|
161
|
+
id: string;
|
162
162
|
icon: string;
|
163
163
|
address: string;
|
164
164
|
chainId: number;
|
@@ -183,9 +183,9 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
183
183
|
params: {};
|
184
184
|
query: {
|
185
185
|
symbol?: string | undefined;
|
186
|
-
id?: string[] | undefined;
|
187
186
|
search?: string | undefined;
|
188
187
|
name?: string | undefined;
|
188
|
+
id?: string[] | undefined;
|
189
189
|
items?: number | undefined;
|
190
190
|
page?: number | undefined;
|
191
191
|
address?: string | undefined;
|
@@ -201,8 +201,8 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
201
201
|
response: {
|
202
202
|
200: ({
|
203
203
|
symbol: string;
|
204
|
-
id: string;
|
205
204
|
name: string | null;
|
205
|
+
id: string;
|
206
206
|
icon: string;
|
207
207
|
address: string;
|
208
208
|
chainId: number;
|
@@ -225,9 +225,9 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
225
225
|
params: {};
|
226
226
|
query: {
|
227
227
|
symbol?: string | undefined;
|
228
|
-
id?: string[] | undefined;
|
229
228
|
search?: string | undefined;
|
230
229
|
name?: string | undefined;
|
230
|
+
id?: string[] | undefined;
|
231
231
|
items?: number | undefined;
|
232
232
|
page?: number | undefined;
|
233
233
|
address?: string | undefined;
|
@@ -263,8 +263,8 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
263
263
|
response: {
|
264
264
|
200: {
|
265
265
|
symbol: string;
|
266
|
-
id: string;
|
267
266
|
name: string | null;
|
267
|
+
id: string;
|
268
268
|
icon: string;
|
269
269
|
address: string;
|
270
270
|
chainId: number;
|
@@ -302,8 +302,8 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
302
302
|
response: {
|
303
303
|
200: {
|
304
304
|
symbol: string;
|
305
|
-
id: string;
|
306
305
|
name: string | null;
|
306
|
+
id: string;
|
307
307
|
icon: string;
|
308
308
|
address: string;
|
309
309
|
chainId: number;
|
@@ -366,8 +366,8 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
366
366
|
response: {
|
367
367
|
200: {
|
368
368
|
symbol: string;
|
369
|
-
id: string;
|
370
369
|
name: string | null;
|
370
|
+
id: string;
|
371
371
|
icon: string;
|
372
372
|
address: string;
|
373
373
|
chainId: number;
|
@@ -26,8 +26,8 @@ export declare abstract class TokenRepository {
|
|
26
26
|
*/
|
27
27
|
static findMany(query: GetTokenQueryModel): Promise<{
|
28
28
|
symbol: string;
|
29
|
-
id: string;
|
30
29
|
name: string | null;
|
30
|
+
id: string;
|
31
31
|
icon: string;
|
32
32
|
address: string;
|
33
33
|
chainId: number;
|
@@ -42,8 +42,8 @@ export declare abstract class TokenRepository {
|
|
42
42
|
}[]>;
|
43
43
|
static findList(chainId: number, addresses: string[]): Promise<{
|
44
44
|
symbol: string;
|
45
|
-
id: string;
|
46
45
|
name: string | null;
|
46
|
+
id: string;
|
47
47
|
icon: string;
|
48
48
|
address: string;
|
49
49
|
chainId: number;
|
@@ -63,8 +63,8 @@ export declare abstract class TokenRepository {
|
|
63
63
|
*/
|
64
64
|
static upsert(token: Token["model"]): Promise<{
|
65
65
|
symbol: string;
|
66
|
-
id: string;
|
67
66
|
name: string | null;
|
67
|
+
id: string;
|
68
68
|
icon: string;
|
69
69
|
address: string;
|
70
70
|
chainId: number;
|
@@ -101,8 +101,8 @@ export declare abstract class TokenRepository {
|
|
101
101
|
static create(token: Token["model"]): Promise<Token["model"] | undefined>;
|
102
102
|
static update(id: string, data: UpdateTokenModel): Promise<{
|
103
103
|
symbol: string;
|
104
|
-
id: string;
|
105
104
|
name: string | null;
|
105
|
+
id: string;
|
106
106
|
icon: string;
|
107
107
|
address: string;
|
108
108
|
chainId: number;
|
@@ -18,8 +18,8 @@ export declare abstract class TokenService {
|
|
18
18
|
*/
|
19
19
|
static fetchTokensAndBalances(chainId: number, userAddress: string, addresses: string[]): Promise<({
|
20
20
|
symbol: string;
|
21
|
-
id: string;
|
22
21
|
name: string | null;
|
22
|
+
id: string;
|
23
23
|
icon: string;
|
24
24
|
address: string;
|
25
25
|
chainId: number;
|
@@ -41,8 +41,8 @@ export declare abstract class TokenService {
|
|
41
41
|
*/
|
42
42
|
static fetchVerifiedAndNativeBalances(chainId: number, userAddress: string, additionalTokenAddresses?: string[]): Promise<({
|
43
43
|
symbol: string;
|
44
|
-
id: string;
|
45
44
|
name: string | null;
|
45
|
+
id: string;
|
46
46
|
icon: string;
|
47
47
|
address: string;
|
48
48
|
chainId: number;
|
@@ -61,8 +61,8 @@ export declare abstract class TokenService {
|
|
61
61
|
static fetchManyOnChain(chainId: ChainId, addresses: string[]): Promise<{
|
62
62
|
[address: string]: Omit<{
|
63
63
|
symbol: string;
|
64
|
-
id: string;
|
65
64
|
name: string | null;
|
65
|
+
id: string;
|
66
66
|
icon: string;
|
67
67
|
address: string;
|
68
68
|
chainId: number;
|
@@ -104,8 +104,8 @@ export declare abstract class TokenService {
|
|
104
104
|
*/
|
105
105
|
static findUniqueOrThrow(token: TokenUnique | string): Promise<{
|
106
106
|
symbol: string;
|
107
|
-
id: string;
|
108
107
|
name: string | null;
|
108
|
+
id: string;
|
109
109
|
icon: string;
|
110
110
|
address: string;
|
111
111
|
chainId: number;
|
@@ -125,8 +125,8 @@ export declare abstract class TokenService {
|
|
125
125
|
*/
|
126
126
|
static findUniqueFillOrThrow(token: TokenUnique): Promise<{
|
127
127
|
symbol: string;
|
128
|
-
id: string;
|
129
128
|
name: string | null;
|
129
|
+
id: string;
|
130
130
|
icon: string;
|
131
131
|
address: string;
|
132
132
|
chainId: number;
|
@@ -153,8 +153,8 @@ export declare abstract class TokenService {
|
|
153
153
|
*/
|
154
154
|
static findMany(query: GetTokenQueryModel): Promise<({
|
155
155
|
symbol: string;
|
156
|
-
id: string;
|
157
156
|
name: string | null;
|
157
|
+
id: string;
|
158
158
|
icon: string;
|
159
159
|
address: string;
|
160
160
|
chainId: number;
|
@@ -174,8 +174,8 @@ export declare abstract class TokenService {
|
|
174
174
|
*/
|
175
175
|
static findManyOrFetch(query: GetTokenQueryModel): Promise<({
|
176
176
|
symbol: string;
|
177
|
-
id: string;
|
178
177
|
name: string | null;
|
178
|
+
id: string;
|
179
179
|
icon: string;
|
180
180
|
address: string;
|
181
181
|
chainId: number;
|
@@ -191,8 +191,8 @@ export declare abstract class TokenService {
|
|
191
191
|
static getPrice(query: GetTokenQueryModel): Promise<number>;
|
192
192
|
static findManyObjectPerAddress(query: GetTokenQueryModel): Promise<Record<string, {
|
193
193
|
symbol: string;
|
194
|
-
id: string;
|
195
194
|
name: string | null;
|
195
|
+
id: string;
|
196
196
|
icon: string;
|
197
197
|
address: string;
|
198
198
|
chainId: number;
|
@@ -232,8 +232,8 @@ export declare abstract class TokenService {
|
|
232
232
|
*/
|
233
233
|
static findManyOrCreate(tokens: TokenModel[]): Promise<({
|
234
234
|
symbol: string;
|
235
|
-
id: string;
|
236
235
|
name: string | null;
|
236
|
+
id: string;
|
237
237
|
icon: string;
|
238
238
|
address: string;
|
239
239
|
chainId: number;
|
@@ -251,8 +251,8 @@ export declare abstract class TokenService {
|
|
251
251
|
}): Promise<Record<number, {
|
252
252
|
minimumAmountPerHour: any;
|
253
253
|
symbol: string;
|
254
|
-
id: string;
|
255
254
|
name: string | null;
|
255
|
+
id: string;
|
256
256
|
icon: string;
|
257
257
|
address: string;
|
258
258
|
chainId: number;
|
@@ -268,8 +268,8 @@ export declare abstract class TokenService {
|
|
268
268
|
static getValidRewardTokens(chainId: number): Promise<{
|
269
269
|
minimumAmountPerHour: any;
|
270
270
|
symbol: string;
|
271
|
-
id: string;
|
272
271
|
name: string | null;
|
272
|
+
id: string;
|
273
273
|
icon: string;
|
274
274
|
address: string;
|
275
275
|
chainId: number;
|
@@ -284,8 +284,8 @@ export declare abstract class TokenService {
|
|
284
284
|
}[]>;
|
285
285
|
static update(id: string, data: UpdateTokenModel): Promise<{
|
286
286
|
symbol: string;
|
287
|
-
id: string;
|
288
287
|
name: string | null;
|
288
|
+
id: string;
|
289
289
|
icon: string;
|
290
290
|
address: string;
|
291
291
|
chainId: number;
|
@@ -300,8 +300,8 @@ export declare abstract class TokenService {
|
|
300
300
|
}>;
|
301
301
|
static notionWebhook(body: NotionWebhookModel): Promise<{
|
302
302
|
symbol: string;
|
303
|
-
id: string;
|
304
303
|
name: string | null;
|
304
|
+
id: string;
|
305
305
|
icon: string;
|
306
306
|
address: string;
|
307
307
|
chainId: number;
|
@@ -321,8 +321,8 @@ export declare abstract class TokenService {
|
|
321
321
|
*/
|
322
322
|
static fillAndCreate(token: CreateTokenModel): Promise<{
|
323
323
|
symbol: string;
|
324
|
-
id: string;
|
325
324
|
name: string | null;
|
325
|
+
id: string;
|
326
326
|
icon: string;
|
327
327
|
address: string;
|
328
328
|
chainId: number;
|
@@ -294,7 +294,7 @@ export class TokenService {
|
|
294
294
|
}));
|
295
295
|
}
|
296
296
|
}
|
297
|
-
catch { }
|
297
|
+
catch (_err) { }
|
298
298
|
throw new HttpError(`Failed to fetch or create token ${token.address} on chain ${token.chainId}.`);
|
299
299
|
}
|
300
300
|
}));
|
@@ -355,9 +355,9 @@ export class TokenService {
|
|
355
355
|
throw new HttpError(`Failed to fetch on-chain data for token ${token?.symbol} (${address} on chainId ${chainId}).`);
|
356
356
|
try {
|
357
357
|
await IconService.pullPush(iconURL, new BucketService("merkl-static-assets", `angle-${env}-1`), {
|
358
|
-
name:
|
358
|
+
name: `tokens/${token.symbol}`,
|
359
359
|
});
|
360
|
-
token.icon = `${process.env.GCS_ENDPOINT}/merkl-static-assets/tokens/${
|
360
|
+
token.icon = `${process.env.GCS_ENDPOINT}/merkl-static-assets/tokens/${token.symbol}.${extension}`;
|
361
361
|
}
|
362
362
|
catch (err) {
|
363
363
|
log.error(`[${token.id} (${chainId} | ${address})] Failed to pull / push from Notion to GCP. Using Notion URI for now.`, err);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { LoggedCreateBody, UniV4ChainId } from "./uniswap.model";
|
2
2
|
export declare abstract class UniswapRepository {
|
3
3
|
static getStoredUniswapV4Pools(chainId?: UniV4ChainId): Promise<{
|
4
|
-
id: string;
|
5
4
|
type: import("@db/api").$Enums.LoggedEntityType;
|
5
|
+
id: string;
|
6
6
|
address: string | null;
|
7
7
|
chainId: number;
|
8
8
|
fetchAtBlock: number;
|
@@ -88,8 +88,8 @@ export declare const UserController: Elysia<"/users", false, {
|
|
88
88
|
headers: unknown;
|
89
89
|
response: {
|
90
90
|
200: {
|
91
|
-
id: string;
|
92
91
|
name: string;
|
92
|
+
id: string;
|
93
93
|
addresses: string[];
|
94
94
|
icon?: string | undefined;
|
95
95
|
} | null;
|
@@ -123,8 +123,8 @@ export declare const UserController: Elysia<"/users", false, {
|
|
123
123
|
rewards: (Omit<{
|
124
124
|
token: {
|
125
125
|
symbol: string;
|
126
|
-
id: string;
|
127
126
|
name: string | null;
|
127
|
+
id: string;
|
128
128
|
icon: string;
|
129
129
|
address: string;
|
130
130
|
chainId: number;
|
@@ -141,14 +141,14 @@ export declare const UserController: Elysia<"/users", false, {
|
|
141
141
|
campaignId: string;
|
142
142
|
opportunity: {
|
143
143
|
Chain: {
|
144
|
-
id: number;
|
145
144
|
name: string;
|
145
|
+
id: number;
|
146
146
|
icon: string;
|
147
147
|
};
|
148
148
|
Tokens: {
|
149
149
|
symbol: string;
|
150
|
-
id: string;
|
151
150
|
name: string | null;
|
151
|
+
id: string;
|
152
152
|
icon: string;
|
153
153
|
address: string;
|
154
154
|
chainId: number;
|
@@ -162,27 +162,27 @@ export declare const UserController: Elysia<"/users", false, {
|
|
162
162
|
price: number | null;
|
163
163
|
}[];
|
164
164
|
Protocols: {
|
165
|
-
id: string;
|
166
|
-
name: string;
|
167
165
|
url: string;
|
166
|
+
name: string;
|
168
167
|
description: string;
|
168
|
+
id: string;
|
169
169
|
tags: string[];
|
170
170
|
icon: string;
|
171
171
|
}[];
|
172
172
|
MainProtocol: {
|
173
|
-
id: string;
|
174
|
-
name: string;
|
175
173
|
url: string;
|
174
|
+
name: string;
|
176
175
|
description: string;
|
176
|
+
id: string;
|
177
177
|
tags: string[];
|
178
178
|
icon: string;
|
179
179
|
} | null;
|
180
180
|
} & {
|
181
|
-
id: string;
|
182
|
-
name: string;
|
183
|
-
type: string;
|
184
181
|
status: import("@db/api").$Enums.Status;
|
182
|
+
type: string;
|
183
|
+
name: string;
|
185
184
|
description: string;
|
185
|
+
id: string;
|
186
186
|
tags: string[];
|
187
187
|
identifier: string;
|
188
188
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -197,8 +197,8 @@ export declare const UserController: Elysia<"/users", false, {
|
|
197
197
|
dailyRewards: number;
|
198
198
|
lastCampaignCreatedAt: Date;
|
199
199
|
};
|
200
|
-
pending: string;
|
201
200
|
reason: string;
|
201
|
+
pending: string;
|
202
202
|
amount: string;
|
203
203
|
claimed: string;
|
204
204
|
}[];
|
@@ -248,8 +248,8 @@ export declare const UserController: Elysia<"/users", false, {
|
|
248
248
|
rewards: (Omit<{
|
249
249
|
token: {
|
250
250
|
symbol: string;
|
251
|
-
id: string;
|
252
251
|
name: string | null;
|
252
|
+
id: string;
|
253
253
|
icon: string;
|
254
254
|
address: string;
|
255
255
|
chainId: number;
|
@@ -266,14 +266,14 @@ export declare const UserController: Elysia<"/users", false, {
|
|
266
266
|
campaignId: string;
|
267
267
|
opportunity: {
|
268
268
|
Chain: {
|
269
|
-
id: number;
|
270
269
|
name: string;
|
270
|
+
id: number;
|
271
271
|
icon: string;
|
272
272
|
};
|
273
273
|
Tokens: {
|
274
274
|
symbol: string;
|
275
|
-
id: string;
|
276
275
|
name: string | null;
|
276
|
+
id: string;
|
277
277
|
icon: string;
|
278
278
|
address: string;
|
279
279
|
chainId: number;
|
@@ -287,27 +287,27 @@ export declare const UserController: Elysia<"/users", false, {
|
|
287
287
|
price: number | null;
|
288
288
|
}[];
|
289
289
|
Protocols: {
|
290
|
-
id: string;
|
291
|
-
name: string;
|
292
290
|
url: string;
|
291
|
+
name: string;
|
293
292
|
description: string;
|
293
|
+
id: string;
|
294
294
|
tags: string[];
|
295
295
|
icon: string;
|
296
296
|
}[];
|
297
297
|
MainProtocol: {
|
298
|
-
id: string;
|
299
|
-
name: string;
|
300
298
|
url: string;
|
299
|
+
name: string;
|
301
300
|
description: string;
|
301
|
+
id: string;
|
302
302
|
tags: string[];
|
303
303
|
icon: string;
|
304
304
|
} | null;
|
305
305
|
} & {
|
306
|
-
id: string;
|
307
|
-
name: string;
|
308
|
-
type: string;
|
309
306
|
status: import("@db/api").$Enums.Status;
|
307
|
+
type: string;
|
308
|
+
name: string;
|
310
309
|
description: string;
|
310
|
+
id: string;
|
311
311
|
tags: string[];
|
312
312
|
identifier: string;
|
313
313
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -322,8 +322,8 @@ export declare const UserController: Elysia<"/users", false, {
|
|
322
322
|
dailyRewards: number;
|
323
323
|
lastCampaignCreatedAt: Date;
|
324
324
|
};
|
325
|
-
pending: string;
|
326
325
|
reason: string;
|
326
|
+
pending: string;
|
327
327
|
amount: string;
|
328
328
|
claimed: string;
|
329
329
|
}[];
|
@@ -336,8 +336,8 @@ export declare const UserController: Elysia<"/users", false, {
|
|
336
336
|
}, "breakdowns"> & {
|
337
337
|
breakdowns: {
|
338
338
|
campaignId: string;
|
339
|
-
pending: string;
|
340
339
|
reason: string;
|
340
|
+
pending: string;
|
341
341
|
amount: string;
|
342
342
|
claimed: string;
|
343
343
|
}[];
|