@merkl/api 0.20.154 → 0.20.156
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/database/api/.generated/drizzle/schema.d.ts +84 -7
- package/dist/database/api/.generated/drizzle/schema.js +4 -1
- package/dist/database/api/.generated/drizzle/schema.ts +4 -1
- package/dist/database/api/.generated/edge.js +12 -4
- package/dist/database/api/.generated/index-browser.js +9 -1
- package/dist/database/api/.generated/index.d.ts +303 -79
- package/dist/database/api/.generated/index.js +12 -4
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +5 -0
- package/dist/database/api/.generated/wasm.js +9 -1
- package/dist/src/eden/index.d.ts +171 -3
- package/dist/src/index.d.ts +59 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +15 -0
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -0
- package/dist/src/modules/v4/campaign/campaign.model.js +1 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +18 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +34 -0
- package/dist/src/modules/v4/campaign/campaign.service.js +2 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +10 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +30 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +11 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.js +6 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +23 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +4 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +46 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.js +44 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +3 -0
- package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +17 -0
- package/dist/src/modules/v4/router.d.ts +59 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +4 -0
- package/dist/src/scripts/fill-descriptions.d.ts +1 -0
- package/dist/src/scripts/fill-descriptions.js +101 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -7,7 +7,7 @@ export declare const AprType: import("drizzle-orm/pg-core").PgEnum<["CAMPAIGN",
|
|
7
7
|
export declare const TvlType: import("drizzle-orm/pg-core").PgEnum<["TOKEN", "PROTOCOL"]>;
|
8
8
|
export declare const PriceSourceMethod: import("drizzle-orm/pg-core").PgEnum<["COINGECKO", "CONSTANT", "EQUAL_TO", "ERC4626", "DEXSCREENER", "INDEXCOOP", "DEFILLAMA"]>;
|
9
9
|
export declare const CampaignManualOverride: import("drizzle-orm/pg-core").PgEnum<["opportunityId", "creatorAddress"]>;
|
10
|
-
export declare const OpportunityManualOverride: import("drizzle-orm/pg-core").PgEnum<["name", "depositUrl", "explorerAddress", "action"]>;
|
10
|
+
export declare const OpportunityManualOverride: import("drizzle-orm/pg-core").PgEnum<["name", "depositUrl", "explorerAddress", "action", "description", "howToSteps"]>;
|
11
11
|
export declare const DistributionType: import("drizzle-orm/pg-core").PgEnum<["DUTCH_AUCTION", "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE", "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE", "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT", "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT"]>;
|
12
12
|
export declare const Campaign: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
13
13
|
name: "Campaign";
|
@@ -234,6 +234,23 @@ export declare const Campaign: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
234
234
|
identity: undefined;
|
235
235
|
generated: undefined;
|
236
236
|
}, {}, {}>;
|
237
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
238
|
+
name: "description";
|
239
|
+
tableName: "Campaign";
|
240
|
+
dataType: "string";
|
241
|
+
columnType: "PgText";
|
242
|
+
data: string;
|
243
|
+
driverParam: string;
|
244
|
+
notNull: false;
|
245
|
+
hasDefault: false;
|
246
|
+
isPrimaryKey: false;
|
247
|
+
isAutoincrement: false;
|
248
|
+
hasRuntimeDefault: false;
|
249
|
+
enumValues: [string, ...string[]];
|
250
|
+
baseColumn: never;
|
251
|
+
identity: undefined;
|
252
|
+
generated: undefined;
|
253
|
+
}, {}, {}>;
|
237
254
|
creatorAddress: import("drizzle-orm/pg-core").PgColumn<{
|
238
255
|
name: "creatorAddress";
|
239
256
|
tableName: "Campaign";
|
@@ -812,6 +829,66 @@ export declare const Opportunity: import("drizzle-orm/pg-core").PgTableWithColum
|
|
812
829
|
identity: undefined;
|
813
830
|
generated: undefined;
|
814
831
|
}, {}, {}>;
|
832
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
833
|
+
name: "description";
|
834
|
+
tableName: "Opportunity";
|
835
|
+
dataType: "string";
|
836
|
+
columnType: "PgText";
|
837
|
+
data: string;
|
838
|
+
driverParam: string;
|
839
|
+
notNull: true;
|
840
|
+
hasDefault: false;
|
841
|
+
isPrimaryKey: false;
|
842
|
+
isAutoincrement: false;
|
843
|
+
hasRuntimeDefault: false;
|
844
|
+
enumValues: [string, ...string[]];
|
845
|
+
baseColumn: never;
|
846
|
+
identity: undefined;
|
847
|
+
generated: undefined;
|
848
|
+
}, {}, {}>;
|
849
|
+
howToSteps: import("drizzle-orm/pg-core").PgColumn<{
|
850
|
+
name: "howToSteps";
|
851
|
+
tableName: "Opportunity";
|
852
|
+
dataType: "array";
|
853
|
+
columnType: "PgArray";
|
854
|
+
data: string[];
|
855
|
+
driverParam: string | string[];
|
856
|
+
notNull: true;
|
857
|
+
hasDefault: true;
|
858
|
+
isPrimaryKey: false;
|
859
|
+
isAutoincrement: false;
|
860
|
+
hasRuntimeDefault: false;
|
861
|
+
enumValues: [string, ...string[]];
|
862
|
+
baseColumn: import("drizzle-orm").Column<{
|
863
|
+
name: "howToSteps";
|
864
|
+
tableName: "Opportunity";
|
865
|
+
dataType: "string";
|
866
|
+
columnType: "PgText";
|
867
|
+
data: string;
|
868
|
+
driverParam: string;
|
869
|
+
notNull: false;
|
870
|
+
hasDefault: false;
|
871
|
+
isPrimaryKey: false;
|
872
|
+
isAutoincrement: false;
|
873
|
+
hasRuntimeDefault: false;
|
874
|
+
enumValues: [string, ...string[]];
|
875
|
+
baseColumn: never;
|
876
|
+
identity: undefined;
|
877
|
+
generated: undefined;
|
878
|
+
}, {}, {}>;
|
879
|
+
identity: undefined;
|
880
|
+
generated: undefined;
|
881
|
+
}, {}, {
|
882
|
+
size: undefined;
|
883
|
+
baseBuilder: import("drizzle-orm/pg-core").PgColumnBuilder<{
|
884
|
+
name: "howToSteps";
|
885
|
+
dataType: "string";
|
886
|
+
columnType: "PgText";
|
887
|
+
data: string;
|
888
|
+
enumValues: [string, ...string[]];
|
889
|
+
driverParam: string;
|
890
|
+
}, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
|
891
|
+
}>;
|
815
892
|
depositUrl: import("drizzle-orm/pg-core").PgColumn<{
|
816
893
|
name: "depositUrl";
|
817
894
|
tableName: "Opportunity";
|
@@ -1013,27 +1090,27 @@ export declare const Opportunity: import("drizzle-orm/pg-core").PgTableWithColum
|
|
1013
1090
|
tableName: "Opportunity";
|
1014
1091
|
dataType: "array";
|
1015
1092
|
columnType: "PgArray";
|
1016
|
-
data: ("name" | "action" | "depositUrl" | "explorerAddress")[];
|
1093
|
+
data: ("name" | "description" | "action" | "howToSteps" | "depositUrl" | "explorerAddress")[];
|
1017
1094
|
driverParam: string | string[];
|
1018
1095
|
notNull: true;
|
1019
1096
|
hasDefault: true;
|
1020
1097
|
isPrimaryKey: false;
|
1021
1098
|
isAutoincrement: false;
|
1022
1099
|
hasRuntimeDefault: false;
|
1023
|
-
enumValues: ["name", "depositUrl", "explorerAddress", "action"];
|
1100
|
+
enumValues: ["name", "depositUrl", "explorerAddress", "action", "description", "howToSteps"];
|
1024
1101
|
baseColumn: import("drizzle-orm").Column<{
|
1025
1102
|
name: "manualOverrides";
|
1026
1103
|
tableName: "Opportunity";
|
1027
1104
|
dataType: "string";
|
1028
1105
|
columnType: "PgEnumColumn";
|
1029
|
-
data: "name" | "action" | "depositUrl" | "explorerAddress";
|
1106
|
+
data: "name" | "description" | "action" | "howToSteps" | "depositUrl" | "explorerAddress";
|
1030
1107
|
driverParam: string;
|
1031
1108
|
notNull: false;
|
1032
1109
|
hasDefault: false;
|
1033
1110
|
isPrimaryKey: false;
|
1034
1111
|
isAutoincrement: false;
|
1035
1112
|
hasRuntimeDefault: false;
|
1036
|
-
enumValues: ["name", "depositUrl", "explorerAddress", "action"];
|
1113
|
+
enumValues: ["name", "depositUrl", "explorerAddress", "action", "description", "howToSteps"];
|
1037
1114
|
baseColumn: never;
|
1038
1115
|
identity: undefined;
|
1039
1116
|
generated: undefined;
|
@@ -1046,8 +1123,8 @@ export declare const Opportunity: import("drizzle-orm/pg-core").PgTableWithColum
|
|
1046
1123
|
name: "manualOverrides";
|
1047
1124
|
dataType: "string";
|
1048
1125
|
columnType: "PgEnumColumn";
|
1049
|
-
data: "name" | "action" | "depositUrl" | "explorerAddress";
|
1050
|
-
enumValues: ["name", "depositUrl", "explorerAddress", "action"];
|
1126
|
+
data: "name" | "description" | "action" | "howToSteps" | "depositUrl" | "explorerAddress";
|
1127
|
+
enumValues: ["name", "depositUrl", "explorerAddress", "action", "description", "howToSteps"];
|
1051
1128
|
driverParam: string;
|
1052
1129
|
}, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
|
1053
1130
|
}>;
|
@@ -9,7 +9,7 @@ export const AprType = pgEnum('AprType', ['CAMPAIGN', 'TOKEN', 'PROTOCOL']);
|
|
9
9
|
export const TvlType = pgEnum('TvlType', ['TOKEN', 'PROTOCOL']);
|
10
10
|
export const PriceSourceMethod = pgEnum('PriceSourceMethod', ['COINGECKO', 'CONSTANT', 'EQUAL_TO', 'ERC4626', 'DEXSCREENER', 'INDEXCOOP', 'DEFILLAMA']);
|
11
11
|
export const CampaignManualOverride = pgEnum('CampaignManualOverride', ['opportunityId', 'creatorAddress']);
|
12
|
-
export const OpportunityManualOverride = pgEnum('OpportunityManualOverride', ['name', 'depositUrl', 'explorerAddress', 'action']);
|
12
|
+
export const OpportunityManualOverride = pgEnum('OpportunityManualOverride', ['name', 'depositUrl', 'explorerAddress', 'action', 'description', 'howToSteps']);
|
13
13
|
export const DistributionType = pgEnum('DistributionType', ['DUTCH_AUCTION', 'FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE', 'FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE', 'FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT', 'FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT']);
|
14
14
|
export const Campaign = pgTable('Campaign', {
|
15
15
|
id: text('id').notNull().primaryKey(),
|
@@ -25,6 +25,7 @@ export const Campaign = pgTable('Campaign', {
|
|
25
25
|
startTimestamp: bigint('startTimestamp', { mode: 'bigint' }).notNull(),
|
26
26
|
endTimestamp: bigint('endTimestamp', { mode: 'bigint' }).notNull(),
|
27
27
|
params: jsonb('params').notNull(),
|
28
|
+
description: text('description'),
|
28
29
|
creatorAddress: text('creatorAddress').notNull(),
|
29
30
|
manualOverrides: CampaignManualOverride('manualOverrides').array().notNull().default([]),
|
30
31
|
createdAt: timestamp('createdAt', { precision: 3 }).notNull().defaultNow()
|
@@ -148,6 +149,8 @@ export const Opportunity = pgTable('Opportunity', {
|
|
148
149
|
type: text('type').notNull(),
|
149
150
|
identifier: text('identifier').notNull(),
|
150
151
|
name: text('name').notNull(),
|
152
|
+
description: text('description').notNull(),
|
153
|
+
howToSteps: text('howToSteps').array().notNull().default([]),
|
151
154
|
depositUrl: text('depositUrl'),
|
152
155
|
explorerAddress: text('explorerAddress'),
|
153
156
|
status: Status('status').notNull(),
|
@@ -19,7 +19,7 @@ export const PriceSourceMethod = pgEnum('PriceSourceMethod', ['COINGECKO', 'CONS
|
|
19
19
|
|
20
20
|
export const CampaignManualOverride = pgEnum('CampaignManualOverride', ['opportunityId', 'creatorAddress'])
|
21
21
|
|
22
|
-
export const OpportunityManualOverride = pgEnum('OpportunityManualOverride', ['name', 'depositUrl', 'explorerAddress', 'action'])
|
22
|
+
export const OpportunityManualOverride = pgEnum('OpportunityManualOverride', ['name', 'depositUrl', 'explorerAddress', 'action', 'description', 'howToSteps'])
|
23
23
|
|
24
24
|
export const DistributionType = pgEnum('DistributionType', ['DUTCH_AUCTION', 'FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE', 'FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE', 'FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT', 'FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT'])
|
25
25
|
|
@@ -37,6 +37,7 @@ export const Campaign = pgTable('Campaign', {
|
|
37
37
|
startTimestamp: bigint('startTimestamp', { mode: 'bigint' }).notNull(),
|
38
38
|
endTimestamp: bigint('endTimestamp', { mode: 'bigint' }).notNull(),
|
39
39
|
params: jsonb('params').notNull(),
|
40
|
+
description: text('description'),
|
40
41
|
creatorAddress: text('creatorAddress').notNull(),
|
41
42
|
manualOverrides: CampaignManualOverride('manualOverrides').array().notNull().default([]),
|
42
43
|
createdAt: timestamp('createdAt', { precision: 3 }).notNull().defaultNow()
|
@@ -166,6 +167,8 @@ export const Opportunity = pgTable('Opportunity', {
|
|
166
167
|
type: text('type').notNull(),
|
167
168
|
identifier: text('identifier').notNull(),
|
168
169
|
name: text('name').notNull(),
|
170
|
+
description: text('description').notNull(),
|
171
|
+
howToSteps: text('howToSteps').array().notNull().default([]),
|
169
172
|
depositUrl: text('depositUrl'),
|
170
173
|
explorerAddress: text('explorerAddress'),
|
171
174
|
status: Status('status').notNull(),
|