@merkl/api 0.20.138 → 0.20.139
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 +15 -15
- package/dist/src/index.d.ts +5 -5
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +5 -5
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +11 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -2
- package/dist/src/modules/v4/router.d.ts +5 -5
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -648,7 +648,7 @@ declare const eden: {
|
|
648
648
|
tags?: string | undefined;
|
649
649
|
identifier?: string | undefined;
|
650
650
|
page?: number | undefined;
|
651
|
-
action?:
|
651
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
652
652
|
campaignId?: string | undefined;
|
653
653
|
creatorAddress?: string | undefined;
|
654
654
|
chainId?: string | undefined;
|
@@ -856,7 +856,7 @@ declare const eden: {
|
|
856
856
|
tags?: string | undefined;
|
857
857
|
identifier?: string | undefined;
|
858
858
|
page?: number | undefined;
|
859
|
-
action?:
|
859
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
860
860
|
campaignId?: string | undefined;
|
861
861
|
creatorAddress?: string | undefined;
|
862
862
|
chainId?: string | undefined;
|
@@ -1074,7 +1074,7 @@ declare const eden: {
|
|
1074
1074
|
tags?: string | undefined;
|
1075
1075
|
identifier?: string | undefined;
|
1076
1076
|
page?: number | undefined;
|
1077
|
-
action?:
|
1077
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1078
1078
|
campaignId?: string | undefined;
|
1079
1079
|
creatorAddress?: string | undefined;
|
1080
1080
|
chainId?: string | undefined;
|
@@ -1109,7 +1109,7 @@ declare const eden: {
|
|
1109
1109
|
tags?: string | undefined;
|
1110
1110
|
identifier?: string | undefined;
|
1111
1111
|
page?: number | undefined;
|
1112
|
-
action?:
|
1112
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1113
1113
|
campaignId?: string | undefined;
|
1114
1114
|
creatorAddress?: string | undefined;
|
1115
1115
|
chainId?: string | undefined;
|
@@ -1144,7 +1144,7 @@ declare const eden: {
|
|
1144
1144
|
tags?: string | undefined;
|
1145
1145
|
identifier?: string | undefined;
|
1146
1146
|
page?: number | undefined;
|
1147
|
-
action?:
|
1147
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1148
1148
|
campaignId?: string | undefined;
|
1149
1149
|
creatorAddress?: string | undefined;
|
1150
1150
|
chainId?: string | undefined;
|
@@ -5700,7 +5700,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
5700
5700
|
tags?: string | undefined;
|
5701
5701
|
identifier?: string | undefined;
|
5702
5702
|
page?: number | undefined;
|
5703
|
-
action?:
|
5703
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
5704
5704
|
campaignId?: string | undefined;
|
5705
5705
|
creatorAddress?: string | undefined;
|
5706
5706
|
chainId?: string | undefined;
|
@@ -5913,7 +5913,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
5913
5913
|
tags?: string | undefined;
|
5914
5914
|
identifier?: string | undefined;
|
5915
5915
|
page?: number | undefined;
|
5916
|
-
action?:
|
5916
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
5917
5917
|
campaignId?: string | undefined;
|
5918
5918
|
creatorAddress?: string | undefined;
|
5919
5919
|
chainId?: string | undefined;
|
@@ -6435,7 +6435,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
6435
6435
|
tags?: string | undefined;
|
6436
6436
|
identifier?: string | undefined;
|
6437
6437
|
page?: number | undefined;
|
6438
|
-
action?:
|
6438
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
6439
6439
|
campaignId?: string | undefined;
|
6440
6440
|
creatorAddress?: string | undefined;
|
6441
6441
|
chainId?: string | undefined;
|
@@ -6478,7 +6478,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
6478
6478
|
tags?: string | undefined;
|
6479
6479
|
identifier?: string | undefined;
|
6480
6480
|
page?: number | undefined;
|
6481
|
-
action?:
|
6481
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
6482
6482
|
campaignId?: string | undefined;
|
6483
6483
|
creatorAddress?: string | undefined;
|
6484
6484
|
chainId?: string | undefined;
|
@@ -6522,7 +6522,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
6522
6522
|
tags?: string | undefined;
|
6523
6523
|
identifier?: string | undefined;
|
6524
6524
|
page?: number | undefined;
|
6525
|
-
action?:
|
6525
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
6526
6526
|
campaignId?: string | undefined;
|
6527
6527
|
creatorAddress?: string | undefined;
|
6528
6528
|
chainId?: string | undefined;
|
@@ -12349,7 +12349,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
12349
12349
|
tags?: string | undefined;
|
12350
12350
|
identifier?: string | undefined;
|
12351
12351
|
page?: number | undefined;
|
12352
|
-
action?:
|
12352
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
12353
12353
|
campaignId?: string | undefined;
|
12354
12354
|
creatorAddress?: string | undefined;
|
12355
12355
|
chainId?: string | undefined;
|
@@ -12557,7 +12557,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
12557
12557
|
tags?: string | undefined;
|
12558
12558
|
identifier?: string | undefined;
|
12559
12559
|
page?: number | undefined;
|
12560
|
-
action?:
|
12560
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
12561
12561
|
campaignId?: string | undefined;
|
12562
12562
|
creatorAddress?: string | undefined;
|
12563
12563
|
chainId?: string | undefined;
|
@@ -12775,7 +12775,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
12775
12775
|
tags?: string | undefined;
|
12776
12776
|
identifier?: string | undefined;
|
12777
12777
|
page?: number | undefined;
|
12778
|
-
action?:
|
12778
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
12779
12779
|
campaignId?: string | undefined;
|
12780
12780
|
creatorAddress?: string | undefined;
|
12781
12781
|
chainId?: string | undefined;
|
@@ -12810,7 +12810,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
12810
12810
|
tags?: string | undefined;
|
12811
12811
|
identifier?: string | undefined;
|
12812
12812
|
page?: number | undefined;
|
12813
|
-
action?:
|
12813
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
12814
12814
|
campaignId?: string | undefined;
|
12815
12815
|
creatorAddress?: string | undefined;
|
12816
12816
|
chainId?: string | undefined;
|
@@ -12845,7 +12845,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
12845
12845
|
tags?: string | undefined;
|
12846
12846
|
identifier?: string | undefined;
|
12847
12847
|
page?: number | undefined;
|
12848
|
-
action?:
|
12848
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
12849
12849
|
campaignId?: string | undefined;
|
12850
12850
|
creatorAddress?: string | undefined;
|
12851
12851
|
chainId?: string | undefined;
|
package/dist/src/index.d.ts
CHANGED
@@ -465,7 +465,7 @@ declare const app: Elysia<"", false, {
|
|
465
465
|
tags?: string | undefined;
|
466
466
|
identifier?: string | undefined;
|
467
467
|
page?: number | undefined;
|
468
|
-
action?:
|
468
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
469
469
|
campaignId?: string | undefined;
|
470
470
|
creatorAddress?: string | undefined;
|
471
471
|
chainId?: string | undefined;
|
@@ -678,7 +678,7 @@ declare const app: Elysia<"", false, {
|
|
678
678
|
tags?: string | undefined;
|
679
679
|
identifier?: string | undefined;
|
680
680
|
page?: number | undefined;
|
681
|
-
action?:
|
681
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
682
682
|
campaignId?: string | undefined;
|
683
683
|
creatorAddress?: string | undefined;
|
684
684
|
chainId?: string | undefined;
|
@@ -1200,7 +1200,7 @@ declare const app: Elysia<"", false, {
|
|
1200
1200
|
tags?: string | undefined;
|
1201
1201
|
identifier?: string | undefined;
|
1202
1202
|
page?: number | undefined;
|
1203
|
-
action?:
|
1203
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1204
1204
|
campaignId?: string | undefined;
|
1205
1205
|
creatorAddress?: string | undefined;
|
1206
1206
|
chainId?: string | undefined;
|
@@ -1243,7 +1243,7 @@ declare const app: Elysia<"", false, {
|
|
1243
1243
|
tags?: string | undefined;
|
1244
1244
|
identifier?: string | undefined;
|
1245
1245
|
page?: number | undefined;
|
1246
|
-
action?:
|
1246
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1247
1247
|
campaignId?: string | undefined;
|
1248
1248
|
creatorAddress?: string | undefined;
|
1249
1249
|
chainId?: string | undefined;
|
@@ -1287,7 +1287,7 @@ declare const app: Elysia<"", false, {
|
|
1287
1287
|
tags?: string | undefined;
|
1288
1288
|
identifier?: string | undefined;
|
1289
1289
|
page?: number | undefined;
|
1290
|
-
action?:
|
1290
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1291
1291
|
campaignId?: string | undefined;
|
1292
1292
|
creatorAddress?: string | undefined;
|
1293
1293
|
chainId?: string | undefined;
|
@@ -320,7 +320,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
320
320
|
tags?: string | undefined;
|
321
321
|
identifier?: string | undefined;
|
322
322
|
page?: number | undefined;
|
323
|
-
action?:
|
323
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
324
324
|
campaignId?: string | undefined;
|
325
325
|
creatorAddress?: string | undefined;
|
326
326
|
chainId?: string | undefined;
|
@@ -533,7 +533,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
533
533
|
tags?: string | undefined;
|
534
534
|
identifier?: string | undefined;
|
535
535
|
page?: number | undefined;
|
536
|
-
action?:
|
536
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
537
537
|
campaignId?: string | undefined;
|
538
538
|
creatorAddress?: string | undefined;
|
539
539
|
chainId?: string | undefined;
|
@@ -1055,7 +1055,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1055
1055
|
tags?: string | undefined;
|
1056
1056
|
identifier?: string | undefined;
|
1057
1057
|
page?: number | undefined;
|
1058
|
-
action?:
|
1058
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1059
1059
|
campaignId?: string | undefined;
|
1060
1060
|
creatorAddress?: string | undefined;
|
1061
1061
|
chainId?: string | undefined;
|
@@ -1098,7 +1098,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1098
1098
|
tags?: string | undefined;
|
1099
1099
|
identifier?: string | undefined;
|
1100
1100
|
page?: number | undefined;
|
1101
|
-
action?:
|
1101
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1102
1102
|
campaignId?: string | undefined;
|
1103
1103
|
creatorAddress?: string | undefined;
|
1104
1104
|
chainId?: string | undefined;
|
@@ -1142,7 +1142,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
1142
1142
|
tags?: string | undefined;
|
1143
1143
|
identifier?: string | undefined;
|
1144
1144
|
page?: number | undefined;
|
1145
|
-
action?:
|
1145
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1146
1146
|
campaignId?: string | undefined;
|
1147
1147
|
creatorAddress?: string | undefined;
|
1148
1148
|
chainId?: string | undefined;
|
@@ -309,7 +309,17 @@ export declare const GetOpportunitiesQueryDto: import("@sinclair/typebox").TObje
|
|
309
309
|
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
310
310
|
campaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
311
311
|
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRegExp>;
|
312
|
-
action: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").
|
312
|
+
action: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
313
|
+
POOL: "POOL";
|
314
|
+
HOLD: "HOLD";
|
315
|
+
DROP: "DROP";
|
316
|
+
LEND: "LEND";
|
317
|
+
BORROW: "BORROW";
|
318
|
+
LONG: "LONG";
|
319
|
+
SHORT: "SHORT";
|
320
|
+
SWAP: "SWAP";
|
321
|
+
INVALID: "INVALID";
|
322
|
+
}>>;
|
313
323
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
314
324
|
creatorAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
315
325
|
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
@@ -60,8 +60,8 @@ export const GetOpportunitiesQueryDto = t.Object({
|
|
60
60
|
description: "A comma separated list of chain ids. Example: ?chainId=1,42161<br>You can get the list of all supported chains by calling [GET /v4/chains](#tag/chains/GET/v4/chains/)",
|
61
61
|
})),
|
62
62
|
//TODO: find a systemic way of handling query param arrays
|
63
|
-
action: t.Optional(t.
|
64
|
-
description:
|
63
|
+
action: t.Optional(t.Enum(OpportunityAction, {
|
64
|
+
description: `A comma seprated list actions. Legal values are: ${Object.values(OpportunityAction).join(", ")}`,
|
65
65
|
})),
|
66
66
|
type: t.Optional(t.String({ description: "A comma separated list of Opportunity type" })),
|
67
67
|
creatorAddress: t.Optional(t.String({ description: "Filter by creator address" })),
|
@@ -335,7 +335,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
335
335
|
tags?: string | undefined;
|
336
336
|
identifier?: string | undefined;
|
337
337
|
page?: number | undefined;
|
338
|
-
action?:
|
338
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
339
339
|
campaignId?: string | undefined;
|
340
340
|
creatorAddress?: string | undefined;
|
341
341
|
chainId?: string | undefined;
|
@@ -548,7 +548,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
548
548
|
tags?: string | undefined;
|
549
549
|
identifier?: string | undefined;
|
550
550
|
page?: number | undefined;
|
551
|
-
action?:
|
551
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
552
552
|
campaignId?: string | undefined;
|
553
553
|
creatorAddress?: string | undefined;
|
554
554
|
chainId?: string | undefined;
|
@@ -1070,7 +1070,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1070
1070
|
tags?: string | undefined;
|
1071
1071
|
identifier?: string | undefined;
|
1072
1072
|
page?: number | undefined;
|
1073
|
-
action?:
|
1073
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1074
1074
|
campaignId?: string | undefined;
|
1075
1075
|
creatorAddress?: string | undefined;
|
1076
1076
|
chainId?: string | undefined;
|
@@ -1113,7 +1113,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1113
1113
|
tags?: string | undefined;
|
1114
1114
|
identifier?: string | undefined;
|
1115
1115
|
page?: number | undefined;
|
1116
|
-
action?:
|
1116
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1117
1117
|
campaignId?: string | undefined;
|
1118
1118
|
creatorAddress?: string | undefined;
|
1119
1119
|
chainId?: string | undefined;
|
@@ -1157,7 +1157,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1157
1157
|
tags?: string | undefined;
|
1158
1158
|
identifier?: string | undefined;
|
1159
1159
|
page?: number | undefined;
|
1160
|
-
action?:
|
1160
|
+
action?: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP" | "INVALID" | undefined;
|
1161
1161
|
campaignId?: string | undefined;
|
1162
1162
|
creatorAddress?: string | undefined;
|
1163
1163
|
chainId?: string | undefined;
|