@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
@@ -153,9 +153,9 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
153
153
|
};
|
154
154
|
response: {
|
155
155
|
200: {
|
156
|
-
id: string;
|
157
156
|
type: string;
|
158
157
|
description: string | null;
|
158
|
+
id: string;
|
159
159
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
160
160
|
subType: number | null;
|
161
161
|
computeChainId: number;
|
@@ -173,8 +173,8 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
173
173
|
} | {
|
174
174
|
Tokens: {
|
175
175
|
symbol: string;
|
176
|
-
id: string;
|
177
176
|
name: string | null;
|
177
|
+
id: string;
|
178
178
|
icon: string;
|
179
179
|
address: string;
|
180
180
|
chainId: number;
|
@@ -188,18 +188,18 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
188
188
|
price: number | null;
|
189
189
|
}[];
|
190
190
|
Protocols: {
|
191
|
-
id: string;
|
192
|
-
name: string;
|
193
191
|
url: string;
|
192
|
+
name: string;
|
194
193
|
description: string;
|
194
|
+
id: string;
|
195
195
|
tags: string[];
|
196
196
|
icon: string;
|
197
197
|
}[];
|
198
|
-
id: string;
|
199
|
-
name: string;
|
200
|
-
type: string;
|
201
198
|
status: import("@db/api").$Enums.Status;
|
199
|
+
type: string;
|
200
|
+
name: string;
|
202
201
|
description: string;
|
202
|
+
id: string;
|
203
203
|
tags: string[];
|
204
204
|
identifier: string;
|
205
205
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -223,8 +223,8 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
223
223
|
action: any;
|
224
224
|
tokens: ({
|
225
225
|
symbol: string;
|
226
|
-
id: string;
|
227
226
|
name: string | null;
|
227
|
+
id: string;
|
228
228
|
icon: string;
|
229
229
|
address: string;
|
230
230
|
chainId: number;
|
@@ -237,7 +237,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
237
237
|
} & {
|
238
238
|
price?: number | null | undefined;
|
239
239
|
})[];
|
240
|
-
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
240
|
+
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | "puffer" | undefined;
|
241
241
|
description: string;
|
242
242
|
howToSteps: string[];
|
243
243
|
depositUrl: string | undefined;
|
@@ -263,9 +263,9 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
263
263
|
};
|
264
264
|
response: {
|
265
265
|
200: {
|
266
|
-
id: string;
|
267
266
|
type: string;
|
268
267
|
description: string | null;
|
268
|
+
id: string;
|
269
269
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
270
270
|
subType: number | null;
|
271
271
|
computeChainId: number;
|
@@ -283,8 +283,8 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
283
283
|
} | {
|
284
284
|
Tokens: {
|
285
285
|
symbol: string;
|
286
|
-
id: string;
|
287
286
|
name: string | null;
|
287
|
+
id: string;
|
288
288
|
icon: string;
|
289
289
|
address: string;
|
290
290
|
chainId: number;
|
@@ -298,18 +298,18 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
298
298
|
price: number | null;
|
299
299
|
}[];
|
300
300
|
Protocols: {
|
301
|
-
id: string;
|
302
|
-
name: string;
|
303
301
|
url: string;
|
302
|
+
name: string;
|
304
303
|
description: string;
|
304
|
+
id: string;
|
305
305
|
tags: string[];
|
306
306
|
icon: string;
|
307
307
|
}[];
|
308
|
-
id: string;
|
309
|
-
name: string;
|
310
|
-
type: string;
|
311
308
|
status: import("@db/api").$Enums.Status;
|
309
|
+
type: string;
|
310
|
+
name: string;
|
312
311
|
description: string;
|
312
|
+
id: string;
|
313
313
|
tags: string[];
|
314
314
|
identifier: string;
|
315
315
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -333,8 +333,8 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
333
333
|
action: any;
|
334
334
|
tokens: ({
|
335
335
|
symbol: string;
|
336
|
-
id: string;
|
337
336
|
name: string | null;
|
337
|
+
id: string;
|
338
338
|
icon: string;
|
339
339
|
address: string;
|
340
340
|
chainId: number;
|
@@ -347,7 +347,7 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
|
|
347
347
|
} & {
|
348
348
|
price?: number | null | undefined;
|
349
349
|
})[];
|
350
|
-
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
|
350
|
+
mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | "puffer" | undefined;
|
351
351
|
description: string;
|
352
352
|
howToSteps: string[];
|
353
353
|
depositUrl: string | undefined;
|
@@ -23,13 +23,13 @@ export declare const ChainController: Elysia<"/chains", false, {
|
|
23
23
|
headers: unknown;
|
24
24
|
response: {
|
25
25
|
200: {
|
26
|
-
id: number;
|
27
26
|
name: string;
|
27
|
+
id: number;
|
28
28
|
icon: string;
|
29
29
|
explorers: {
|
30
|
-
id: string;
|
31
|
-
type: import("@db/api").$Enums.ExplorerType;
|
32
30
|
url: string;
|
31
|
+
type: import("@db/api").$Enums.ExplorerType;
|
32
|
+
id: string;
|
33
33
|
chainId: number;
|
34
34
|
}[];
|
35
35
|
} | null;
|
@@ -50,13 +50,13 @@ export declare const ChainController: Elysia<"/chains", false, {
|
|
50
50
|
headers: unknown;
|
51
51
|
response: {
|
52
52
|
200: {
|
53
|
-
id: number;
|
54
53
|
name: string;
|
54
|
+
id: number;
|
55
55
|
icon: string;
|
56
56
|
explorers: {
|
57
|
-
id: string;
|
58
|
-
type: import("@db/api").$Enums.ExplorerType;
|
59
57
|
url: string;
|
58
|
+
type: import("@db/api").$Enums.ExplorerType;
|
59
|
+
id: string;
|
60
60
|
chainId: number;
|
61
61
|
}[];
|
62
62
|
}[];
|
@@ -99,8 +99,8 @@ export declare const ChainController: Elysia<"/chains", false, {
|
|
99
99
|
};
|
100
100
|
response: {
|
101
101
|
200: {
|
102
|
-
id: number;
|
103
102
|
name: string;
|
103
|
+
id: number;
|
104
104
|
icon: string;
|
105
105
|
};
|
106
106
|
};
|
@@ -112,8 +112,8 @@ export declare const ChainController: Elysia<"/chains", false, {
|
|
112
112
|
index: {
|
113
113
|
post: {
|
114
114
|
body: {
|
115
|
-
id: number;
|
116
115
|
name: string;
|
116
|
+
id: number;
|
117
117
|
icon: string;
|
118
118
|
explorerType: "ETHERSCAN" | "BLOCKSCOUT";
|
119
119
|
explorerUrl: string;
|
@@ -126,13 +126,13 @@ export declare const ChainController: Elysia<"/chains", false, {
|
|
126
126
|
response: {
|
127
127
|
200: {
|
128
128
|
Explorer: {
|
129
|
-
id: string;
|
130
|
-
type: import("@db/api").$Enums.ExplorerType;
|
131
129
|
url: string;
|
130
|
+
type: import("@db/api").$Enums.ExplorerType;
|
131
|
+
id: string;
|
132
132
|
chainId: number;
|
133
133
|
}[];
|
134
|
-
id: number;
|
135
134
|
name: string;
|
135
|
+
id: number;
|
136
136
|
icon: string;
|
137
137
|
};
|
138
138
|
};
|
@@ -6,14 +6,14 @@ export declare class ChainRepository {
|
|
6
6
|
*/
|
7
7
|
static read(id: number): Promise<({
|
8
8
|
Explorer: {
|
9
|
-
id: string;
|
10
|
-
type: import("@db/api").$Enums.ExplorerType;
|
11
9
|
url: string;
|
10
|
+
type: import("@db/api").$Enums.ExplorerType;
|
11
|
+
id: string;
|
12
12
|
chainId: number;
|
13
13
|
}[];
|
14
14
|
} & {
|
15
|
-
id: number;
|
16
15
|
name: string;
|
16
|
+
id: number;
|
17
17
|
icon: string;
|
18
18
|
}) | null>;
|
19
19
|
static transformQueryToPrismaFilters(query: ChainSearchDto): {
|
@@ -41,14 +41,14 @@ export declare class ChainRepository {
|
|
41
41
|
*/
|
42
42
|
static findMany(query: ChainSearchDto): Promise<({
|
43
43
|
Explorer: {
|
44
|
-
id: string;
|
45
|
-
type: import("@db/api").$Enums.ExplorerType;
|
46
44
|
url: string;
|
45
|
+
type: import("@db/api").$Enums.ExplorerType;
|
46
|
+
id: string;
|
47
47
|
chainId: number;
|
48
48
|
}[];
|
49
49
|
} & {
|
50
|
-
id: number;
|
51
50
|
name: string;
|
51
|
+
id: number;
|
52
52
|
icon: string;
|
53
53
|
})[]>;
|
54
54
|
static countMany(query: ChainSearchDto): Promise<number>;
|
@@ -64,31 +64,31 @@ export declare class ChainRepository {
|
|
64
64
|
*/
|
65
65
|
static create(data: CreateChainModel): Promise<{
|
66
66
|
Explorer: {
|
67
|
-
id: string;
|
68
|
-
type: import("@db/api").$Enums.ExplorerType;
|
69
67
|
url: string;
|
68
|
+
type: import("@db/api").$Enums.ExplorerType;
|
69
|
+
id: string;
|
70
70
|
chainId: number;
|
71
71
|
}[];
|
72
72
|
} & {
|
73
|
-
id: number;
|
74
73
|
name: string;
|
74
|
+
id: number;
|
75
75
|
icon: string;
|
76
76
|
}>;
|
77
77
|
static findUniqueOrThrow(id: number): Promise<{
|
78
78
|
Explorer: {
|
79
|
-
id: string;
|
80
|
-
type: import("@db/api").$Enums.ExplorerType;
|
81
79
|
url: string;
|
80
|
+
type: import("@db/api").$Enums.ExplorerType;
|
81
|
+
id: string;
|
82
82
|
chainId: number;
|
83
83
|
}[];
|
84
84
|
} & {
|
85
|
-
id: number;
|
86
85
|
name: string;
|
86
|
+
id: number;
|
87
87
|
icon: string;
|
88
88
|
}>;
|
89
89
|
static update(id: number, data: UpdateChainModel): Promise<{
|
90
|
-
id: number;
|
91
90
|
name: string;
|
91
|
+
id: number;
|
92
92
|
icon: string;
|
93
93
|
}>;
|
94
94
|
}
|
@@ -2,38 +2,38 @@ import type { ChainSearchDto, CreateChainModel, UpdateChainModel } from "./chain
|
|
2
2
|
export declare abstract class ChainService {
|
3
3
|
static get(chainId: number): Promise<({
|
4
4
|
Explorer: {
|
5
|
-
id: string;
|
6
|
-
type: import("@db/api").$Enums.ExplorerType;
|
7
5
|
url: string;
|
6
|
+
type: import("@db/api").$Enums.ExplorerType;
|
7
|
+
id: string;
|
8
8
|
chainId: number;
|
9
9
|
}[];
|
10
10
|
} & {
|
11
|
-
id: number;
|
12
11
|
name: string;
|
12
|
+
id: number;
|
13
13
|
icon: string;
|
14
14
|
}) | null>;
|
15
15
|
static findMany(query: ChainSearchDto): Promise<({
|
16
16
|
Explorer: {
|
17
|
-
id: string;
|
18
|
-
type: import("@db/api").$Enums.ExplorerType;
|
19
17
|
url: string;
|
18
|
+
type: import("@db/api").$Enums.ExplorerType;
|
19
|
+
id: string;
|
20
20
|
chainId: number;
|
21
21
|
}[];
|
22
22
|
} & {
|
23
|
-
id: number;
|
24
23
|
name: string;
|
24
|
+
id: number;
|
25
25
|
icon: string;
|
26
26
|
})[]>;
|
27
27
|
static findUniqueOrThrow(id: number): Promise<{
|
28
28
|
Explorer: {
|
29
|
-
id: string;
|
30
|
-
type: import("@db/api").$Enums.ExplorerType;
|
31
29
|
url: string;
|
30
|
+
type: import("@db/api").$Enums.ExplorerType;
|
31
|
+
id: string;
|
32
32
|
chainId: number;
|
33
33
|
}[];
|
34
34
|
} & {
|
35
|
-
id: number;
|
36
35
|
name: string;
|
36
|
+
id: number;
|
37
37
|
icon: string;
|
38
38
|
}>;
|
39
39
|
static countMany(query: ChainSearchDto): Promise<number>;
|
@@ -48,24 +48,24 @@ export declare abstract class ChainService {
|
|
48
48
|
static getSupportedIds(): Promise<number[]>;
|
49
49
|
static create(chain: CreateChainModel): Promise<{
|
50
50
|
Explorer: {
|
51
|
-
id: string;
|
52
|
-
type: import("@db/api").$Enums.ExplorerType;
|
53
51
|
url: string;
|
52
|
+
type: import("@db/api").$Enums.ExplorerType;
|
53
|
+
id: string;
|
54
54
|
chainId: number;
|
55
55
|
}[];
|
56
56
|
} & {
|
57
|
-
id: number;
|
58
57
|
name: string;
|
58
|
+
id: number;
|
59
59
|
icon: string;
|
60
60
|
}>;
|
61
61
|
static update(id: number, data: UpdateChainModel): Promise<{
|
62
|
-
id: number;
|
63
62
|
name: string;
|
63
|
+
id: number;
|
64
64
|
icon: string;
|
65
65
|
}>;
|
66
66
|
static updateDailyRewards(id: number, dailyRewards: number): Promise<{
|
67
|
-
id: number;
|
68
67
|
name: string;
|
68
|
+
id: number;
|
69
69
|
icon: string;
|
70
70
|
}>;
|
71
71
|
}
|
@@ -7,8 +7,8 @@ export declare abstract class ComputedValueRepository {
|
|
7
7
|
} | null>;
|
8
8
|
static upsertCampaignComputedValue(data: UpsertCampaignComputedValueModel): Promise<void>;
|
9
9
|
static findUserValues(data: GetUserComputedValuesModel): Promise<{
|
10
|
-
id: string;
|
11
10
|
reason: string;
|
11
|
+
id: string;
|
12
12
|
campaignId: string;
|
13
13
|
boost: number | null;
|
14
14
|
}[]>;
|
@@ -8,8 +8,8 @@ export declare abstract class ComputedValueService {
|
|
8
8
|
} | null>;
|
9
9
|
static upsertCampaignComputedValue(data: UpsertCampaignComputedValueModel): Promise<void>;
|
10
10
|
static findUserValues(params: GetUserComputedValuesModel): Promise<{
|
11
|
-
id: string;
|
12
11
|
reason: string;
|
12
|
+
id: string;
|
13
13
|
campaignId: string;
|
14
14
|
boost: number | null;
|
15
15
|
}[]>;
|
@@ -25,8 +25,8 @@ export declare const CreatorController: Elysia<"/creators", false, {
|
|
25
25
|
headers: unknown;
|
26
26
|
response: {
|
27
27
|
200: ({
|
28
|
-
id: string;
|
29
28
|
name: string;
|
29
|
+
id: string;
|
30
30
|
addresses: string[];
|
31
31
|
} & {
|
32
32
|
icon?: string | undefined;
|
@@ -47,8 +47,8 @@ export declare const CreatorController: Elysia<"/creators", false, {
|
|
47
47
|
headers: unknown;
|
48
48
|
response: {
|
49
49
|
200: {
|
50
|
-
id: string;
|
51
50
|
name: string;
|
51
|
+
id: string;
|
52
52
|
addresses: string[];
|
53
53
|
icon?: string | undefined;
|
54
54
|
};
|
@@ -62,8 +62,8 @@ export declare const CreatorController: Elysia<"/creators", false, {
|
|
62
62
|
post: {
|
63
63
|
body: {
|
64
64
|
icon?: string | undefined;
|
65
|
-
id: string;
|
66
65
|
name: string;
|
66
|
+
id: string;
|
67
67
|
addresses: string[];
|
68
68
|
};
|
69
69
|
params: {};
|
@@ -73,8 +73,8 @@ export declare const CreatorController: Elysia<"/creators", false, {
|
|
73
73
|
};
|
74
74
|
response: {
|
75
75
|
200: {
|
76
|
-
id: string;
|
77
76
|
name: string;
|
77
|
+
id: string;
|
78
78
|
icon: string | null;
|
79
79
|
};
|
80
80
|
};
|
@@ -99,8 +99,8 @@ export declare const CreatorController: Elysia<"/creators", false, {
|
|
99
99
|
};
|
100
100
|
response: {
|
101
101
|
200: {
|
102
|
-
id: string;
|
103
102
|
name: string;
|
103
|
+
id: string;
|
104
104
|
icon: string | null;
|
105
105
|
};
|
106
106
|
};
|
@@ -7,13 +7,13 @@ export declare abstract class CreatorRepository {
|
|
7
7
|
creatorId: string | null;
|
8
8
|
}[];
|
9
9
|
} & {
|
10
|
-
id: string;
|
11
10
|
name: string;
|
11
|
+
id: string;
|
12
12
|
icon: string | null;
|
13
13
|
}) | null>;
|
14
14
|
static findUniqueFromAddress(address: string): Promise<{
|
15
|
-
id: string;
|
16
15
|
name: string;
|
16
|
+
id: string;
|
17
17
|
icon: string | null;
|
18
18
|
} | null>;
|
19
19
|
static findMany(query: GetManyCreatorModel): Promise<({
|
@@ -23,18 +23,18 @@ export declare abstract class CreatorRepository {
|
|
23
23
|
creatorId: string | null;
|
24
24
|
}[];
|
25
25
|
} & {
|
26
|
-
id: string;
|
27
26
|
name: string;
|
27
|
+
id: string;
|
28
28
|
icon: string | null;
|
29
29
|
})[]>;
|
30
30
|
static create({ addresses, ...creator }: Creator["model"]): Promise<{
|
31
|
-
id: string;
|
32
31
|
name: string;
|
32
|
+
id: string;
|
33
33
|
icon: string | null;
|
34
34
|
}>;
|
35
35
|
static update(id: Creator["model"]["id"], { addresses, ...creator }: UpdateCreatorDto): Promise<{
|
36
|
-
id: string;
|
37
36
|
name: string;
|
37
|
+
id: string;
|
38
38
|
icon: string | null;
|
39
39
|
}>;
|
40
40
|
}
|
@@ -18,8 +18,8 @@ export declare abstract class CreatorService {
|
|
18
18
|
creatorId: string | null;
|
19
19
|
}[];
|
20
20
|
} & {
|
21
|
-
id: string;
|
22
21
|
name: string;
|
22
|
+
id: string;
|
23
23
|
icon: string | null;
|
24
24
|
}) | null>;
|
25
25
|
/**
|
@@ -34,8 +34,8 @@ export declare abstract class CreatorService {
|
|
34
34
|
creatorId: string | null;
|
35
35
|
}[];
|
36
36
|
} & {
|
37
|
-
id: string;
|
38
37
|
name: string;
|
38
|
+
id: string;
|
39
39
|
icon: string | null;
|
40
40
|
})[]>;
|
41
41
|
/**
|
@@ -43,8 +43,8 @@ export declare abstract class CreatorService {
|
|
43
43
|
* @param creator {addresses, id, name}
|
44
44
|
*/
|
45
45
|
static create(creator: Creator["model"]): Promise<{
|
46
|
-
id: string;
|
47
46
|
name: string;
|
47
|
+
id: string;
|
48
48
|
icon: string | null;
|
49
49
|
}>;
|
50
50
|
/**
|
@@ -54,8 +54,8 @@ export declare abstract class CreatorService {
|
|
54
54
|
* @param creator data for each field
|
55
55
|
*/
|
56
56
|
static update(id: Creator["model"]["id"], creator: UpdateCreatorDto): Promise<{
|
57
|
-
id: string;
|
58
57
|
name: string;
|
58
|
+
id: string;
|
59
59
|
icon: string | null;
|
60
60
|
}>;
|
61
61
|
}
|
@@ -6,10 +6,10 @@ export declare abstract class EnsoService {
|
|
6
6
|
static getSlug(protocolId: ProtocolId | string): EnsoSlug | undefined;
|
7
7
|
static getProtocolId(slug: EnsoSlug | string): ProtocolId | undefined;
|
8
8
|
static getCompatibleProtocols(query: GetInteractionProtocolsQuery): Promise<({
|
9
|
-
id: string;
|
10
|
-
name: string;
|
11
9
|
url: string;
|
10
|
+
name: string;
|
12
11
|
description: string;
|
12
|
+
id: string;
|
13
13
|
tags: string[];
|
14
14
|
icon: string;
|
15
15
|
} & {
|
@@ -15,8 +15,8 @@ export declare const ExplorerController: Elysia<"/explorers", false, {
|
|
15
15
|
explorers: {
|
16
16
|
post: {
|
17
17
|
body: {
|
18
|
-
type: "ETHERSCAN" | "BLOCKSCOUT";
|
19
18
|
url: string;
|
19
|
+
type: "ETHERSCAN" | "BLOCKSCOUT";
|
20
20
|
chainId: number;
|
21
21
|
};
|
22
22
|
params: {};
|
@@ -26,9 +26,9 @@ export declare const ExplorerController: Elysia<"/explorers", false, {
|
|
26
26
|
};
|
27
27
|
response: {
|
28
28
|
200: {
|
29
|
-
id: string;
|
30
|
-
type: import("@db/api").$Enums.ExplorerType;
|
31
29
|
url: string;
|
30
|
+
type: import("@db/api").$Enums.ExplorerType;
|
31
|
+
id: string;
|
32
32
|
chainId: number;
|
33
33
|
};
|
34
34
|
};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { ExplorerType } from "@db/api";
|
2
2
|
export declare abstract class ExplorerRepository {
|
3
3
|
static getByChainId(chainId: number): Promise<{
|
4
|
-
id: string;
|
5
|
-
type: import("@db/api").$Enums.ExplorerType;
|
6
4
|
url: string;
|
5
|
+
type: import("@db/api").$Enums.ExplorerType;
|
6
|
+
id: string;
|
7
7
|
chainId: number;
|
8
8
|
}>;
|
9
9
|
/**
|
@@ -13,9 +13,9 @@ export declare abstract class ExplorerRepository {
|
|
13
13
|
* @param url base url without / suffix
|
14
14
|
*/
|
15
15
|
static create(chainId: number, type: ExplorerType, url: string): Promise<{
|
16
|
-
id: string;
|
17
|
-
type: import("@db/api").$Enums.ExplorerType;
|
18
16
|
url: string;
|
17
|
+
type: import("@db/api").$Enums.ExplorerType;
|
18
|
+
id: string;
|
19
19
|
chainId: number;
|
20
20
|
}>;
|
21
21
|
}
|
@@ -3,14 +3,14 @@ import type { CreateExplorerDto, Explorer } from "./explorer.model";
|
|
3
3
|
export declare abstract class ExplorerService {
|
4
4
|
static hashId(type: ExplorerType, chainId: number): string;
|
5
5
|
static getByChainId(chainId: number): Promise<{
|
6
|
-
id: string;
|
7
|
-
type: import("@db/api").$Enums.ExplorerType;
|
8
6
|
url: string;
|
7
|
+
type: import("@db/api").$Enums.ExplorerType;
|
8
|
+
id: string;
|
9
9
|
chainId: number;
|
10
10
|
}>;
|
11
11
|
static format(explorer: Explorer["raw"]): {
|
12
|
-
type: import("@db/api").$Enums.ExplorerType;
|
13
12
|
url: string;
|
13
|
+
type: import("@db/api").$Enums.ExplorerType;
|
14
14
|
chainId: number;
|
15
15
|
};
|
16
16
|
/**
|
@@ -20,9 +20,9 @@ export declare abstract class ExplorerService {
|
|
20
20
|
* @param url base url without / suffix
|
21
21
|
*/
|
22
22
|
static create(data: CreateExplorerDto): Promise<{
|
23
|
-
id: string;
|
24
|
-
type: import("@db/api").$Enums.ExplorerType;
|
25
23
|
url: string;
|
24
|
+
type: import("@db/api").$Enums.ExplorerType;
|
25
|
+
id: string;
|
26
26
|
chainId: number;
|
27
27
|
}>;
|
28
28
|
}
|
@@ -41,10 +41,10 @@ export declare const InteractionController: Elysia<"/interaction", false, {
|
|
41
41
|
headers: unknown;
|
42
42
|
response: {
|
43
43
|
200: ({
|
44
|
-
id: string;
|
45
|
-
name: string;
|
46
44
|
url: string;
|
45
|
+
name: string;
|
47
46
|
description: string;
|
47
|
+
id: string;
|
48
48
|
tags: string[];
|
49
49
|
icon: string;
|
50
50
|
} & {
|