@merkl/api 0.19.37 → 0.19.39
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 +124 -5
- package/dist/database/api/.generated/drizzle/schema.js +9 -2
- package/dist/database/api/.generated/drizzle/schema.ts +9 -2
- package/dist/database/api/.generated/edge.js +17 -3
- package/dist/database/api/.generated/index-browser.js +14 -0
- package/dist/database/api/.generated/index.d.ts +388 -40
- package/dist/database/api/.generated/index.js +17 -3
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +8 -1
- package/dist/database/api/.generated/wasm.js +14 -0
- package/dist/src/eden/index.d.ts +25 -0
- package/dist/src/engine/opportunityMetadata/implementations/Compound.d.ts +1 -2
- package/dist/src/engine/opportunityMetadata/implementations/Compound.js +1 -4
- package/dist/src/engine/opportunityMetadata/implementations/Morpho.d.ts +7 -1
- package/dist/src/engine/opportunityMetadata/implementations/Morpho.js +5 -2
- package/dist/src/index.d.ts +5 -0
- package/dist/src/jobs/pendings.js +4 -1
- package/dist/src/jobs/reward-breakdowns.js +3 -0
- package/dist/src/modules/v4/apr/apr.model.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +2 -0
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +2 -0
- package/dist/src/modules/v4/computedValue/computedValue.repository.js +2 -0
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +3 -0
- package/dist/src/modules/v4/computedValue/computedValue.service.js +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +17 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +9 -0
- package/dist/src/modules/v4/reward/reward.model.d.ts +2 -2
- package/dist/src/modules/v4/reward/reward.repository.d.ts +6 -2
- package/dist/src/modules/v4/reward/reward.repository.js +1 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +10 -2
- package/dist/src/modules/v4/reward/reward.service.js +4 -1
- package/dist/src/modules/v4/router.d.ts +5 -0
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -502,6 +502,40 @@ export declare const UserComputedValue: import("drizzle-orm/pg-core").PgTableWit
|
|
502
502
|
identity: undefined;
|
503
503
|
generated: undefined;
|
504
504
|
}, {}, {}>;
|
505
|
+
stringId: import("drizzle-orm/pg-core").PgColumn<{
|
506
|
+
name: "stringId";
|
507
|
+
tableName: "UserComputedValue";
|
508
|
+
dataType: "string";
|
509
|
+
columnType: "PgText";
|
510
|
+
data: string;
|
511
|
+
driverParam: string;
|
512
|
+
notNull: true;
|
513
|
+
hasDefault: false;
|
514
|
+
isPrimaryKey: false;
|
515
|
+
isAutoincrement: false;
|
516
|
+
hasRuntimeDefault: false;
|
517
|
+
enumValues: [string, ...string[]];
|
518
|
+
baseColumn: never;
|
519
|
+
identity: undefined;
|
520
|
+
generated: undefined;
|
521
|
+
}, {}, {}>;
|
522
|
+
uuid: import("drizzle-orm/pg-core").PgColumn<{
|
523
|
+
name: "uuid";
|
524
|
+
tableName: "UserComputedValue";
|
525
|
+
dataType: "string";
|
526
|
+
columnType: "PgText";
|
527
|
+
data: string;
|
528
|
+
driverParam: string;
|
529
|
+
notNull: true;
|
530
|
+
hasDefault: true;
|
531
|
+
isPrimaryKey: false;
|
532
|
+
isAutoincrement: false;
|
533
|
+
hasRuntimeDefault: false;
|
534
|
+
enumValues: [string, ...string[]];
|
535
|
+
baseColumn: never;
|
536
|
+
identity: undefined;
|
537
|
+
generated: undefined;
|
538
|
+
}, {}, {}>;
|
505
539
|
campaignId: import("drizzle-orm/pg-core").PgColumn<{
|
506
540
|
name: "campaignId";
|
507
541
|
tableName: "UserComputedValue";
|
@@ -1419,6 +1453,23 @@ export declare const AprBreakdown: import("drizzle-orm/pg-core").PgTableWithColu
|
|
1419
1453
|
identity: undefined;
|
1420
1454
|
generated: undefined;
|
1421
1455
|
}, {}, {}>;
|
1456
|
+
uuid: import("drizzle-orm/pg-core").PgColumn<{
|
1457
|
+
name: "uuid";
|
1458
|
+
tableName: "AprBreakdown";
|
1459
|
+
dataType: "string";
|
1460
|
+
columnType: "PgText";
|
1461
|
+
data: string;
|
1462
|
+
driverParam: string;
|
1463
|
+
notNull: true;
|
1464
|
+
hasDefault: true;
|
1465
|
+
isPrimaryKey: false;
|
1466
|
+
isAutoincrement: false;
|
1467
|
+
hasRuntimeDefault: false;
|
1468
|
+
enumValues: [string, ...string[]];
|
1469
|
+
baseColumn: never;
|
1470
|
+
identity: undefined;
|
1471
|
+
generated: undefined;
|
1472
|
+
}, {}, {}>;
|
1422
1473
|
identifier: import("drizzle-orm/pg-core").PgColumn<{
|
1423
1474
|
name: "identifier";
|
1424
1475
|
tableName: "AprBreakdown";
|
@@ -1586,6 +1637,23 @@ export declare const TVLBreakdown: import("drizzle-orm/pg-core").PgTableWithColu
|
|
1586
1637
|
identity: undefined;
|
1587
1638
|
generated: undefined;
|
1588
1639
|
}, {}, {}>;
|
1640
|
+
uuid: import("drizzle-orm/pg-core").PgColumn<{
|
1641
|
+
name: "uuid";
|
1642
|
+
tableName: "TVLBreakdown";
|
1643
|
+
dataType: "string";
|
1644
|
+
columnType: "PgText";
|
1645
|
+
data: string;
|
1646
|
+
driverParam: string;
|
1647
|
+
notNull: true;
|
1648
|
+
hasDefault: true;
|
1649
|
+
isPrimaryKey: false;
|
1650
|
+
isAutoincrement: false;
|
1651
|
+
hasRuntimeDefault: false;
|
1652
|
+
enumValues: [string, ...string[]];
|
1653
|
+
baseColumn: never;
|
1654
|
+
identity: undefined;
|
1655
|
+
generated: undefined;
|
1656
|
+
}, {}, {}>;
|
1589
1657
|
identifier: import("drizzle-orm/pg-core").PgColumn<{
|
1590
1658
|
name: "identifier";
|
1591
1659
|
tableName: "TVLBreakdown";
|
@@ -1753,6 +1821,23 @@ export declare const DailyRewardsBreakdown: import("drizzle-orm/pg-core").PgTabl
|
|
1753
1821
|
identity: undefined;
|
1754
1822
|
generated: undefined;
|
1755
1823
|
}, {}, {}>;
|
1824
|
+
uuid: import("drizzle-orm/pg-core").PgColumn<{
|
1825
|
+
name: "uuid";
|
1826
|
+
tableName: "DailyRewardsBreakdown";
|
1827
|
+
dataType: "string";
|
1828
|
+
columnType: "PgText";
|
1829
|
+
data: string;
|
1830
|
+
driverParam: string;
|
1831
|
+
notNull: true;
|
1832
|
+
hasDefault: true;
|
1833
|
+
isPrimaryKey: false;
|
1834
|
+
isAutoincrement: false;
|
1835
|
+
hasRuntimeDefault: false;
|
1836
|
+
enumValues: [string, ...string[]];
|
1837
|
+
baseColumn: never;
|
1838
|
+
identity: undefined;
|
1839
|
+
generated: undefined;
|
1840
|
+
}, {}, {}>;
|
1756
1841
|
value: import("drizzle-orm/pg-core").PgColumn<{
|
1757
1842
|
name: "value";
|
1758
1843
|
tableName: "DailyRewardsBreakdown";
|
@@ -2125,12 +2210,12 @@ export declare const RewardBreakdown: import("drizzle-orm/pg-core").PgTableWithC
|
|
2125
2210
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
2126
2211
|
name: "id";
|
2127
2212
|
tableName: "RewardBreakdown";
|
2128
|
-
dataType: "
|
2129
|
-
columnType: "
|
2130
|
-
data:
|
2131
|
-
driverParam:
|
2213
|
+
dataType: "number";
|
2214
|
+
columnType: "PgSerial";
|
2215
|
+
data: number;
|
2216
|
+
driverParam: number;
|
2132
2217
|
notNull: true;
|
2133
|
-
hasDefault:
|
2218
|
+
hasDefault: true;
|
2134
2219
|
isPrimaryKey: true;
|
2135
2220
|
isAutoincrement: false;
|
2136
2221
|
hasRuntimeDefault: false;
|
@@ -2139,6 +2224,40 @@ export declare const RewardBreakdown: import("drizzle-orm/pg-core").PgTableWithC
|
|
2139
2224
|
identity: undefined;
|
2140
2225
|
generated: undefined;
|
2141
2226
|
}, {}, {}>;
|
2227
|
+
stringId: import("drizzle-orm/pg-core").PgColumn<{
|
2228
|
+
name: "stringId";
|
2229
|
+
tableName: "RewardBreakdown";
|
2230
|
+
dataType: "string";
|
2231
|
+
columnType: "PgText";
|
2232
|
+
data: string;
|
2233
|
+
driverParam: string;
|
2234
|
+
notNull: true;
|
2235
|
+
hasDefault: false;
|
2236
|
+
isPrimaryKey: false;
|
2237
|
+
isAutoincrement: false;
|
2238
|
+
hasRuntimeDefault: false;
|
2239
|
+
enumValues: [string, ...string[]];
|
2240
|
+
baseColumn: never;
|
2241
|
+
identity: undefined;
|
2242
|
+
generated: undefined;
|
2243
|
+
}, {}, {}>;
|
2244
|
+
uuid: import("drizzle-orm/pg-core").PgColumn<{
|
2245
|
+
name: "uuid";
|
2246
|
+
tableName: "RewardBreakdown";
|
2247
|
+
dataType: "string";
|
2248
|
+
columnType: "PgText";
|
2249
|
+
data: string;
|
2250
|
+
driverParam: string;
|
2251
|
+
notNull: true;
|
2252
|
+
hasDefault: true;
|
2253
|
+
isPrimaryKey: false;
|
2254
|
+
isAutoincrement: false;
|
2255
|
+
hasRuntimeDefault: false;
|
2256
|
+
enumValues: [string, ...string[]];
|
2257
|
+
baseColumn: never;
|
2258
|
+
identity: undefined;
|
2259
|
+
generated: undefined;
|
2260
|
+
}, {}, {}>;
|
2142
2261
|
protocolId: import("drizzle-orm/pg-core").PgColumn<{
|
2143
2262
|
name: "protocolId";
|
2144
2263
|
tableName: "RewardBreakdown";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { relations } from 'drizzle-orm';
|
1
|
+
import { relations, sql } from 'drizzle-orm';
|
2
2
|
import { bigint, boolean, doublePrecision, foreignKey, integer, jsonb, pgEnum, pgTable, serial, text, timestamp, uniqueIndex } from 'drizzle-orm/pg-core';
|
3
3
|
export const LoggedEntityType = pgEnum('LoggedEntityType', ['UNKNOWN', 'EULER_VAULT', 'UNISWAP_V4', 'COMPOUND_v2']);
|
4
4
|
export const RunStatus = pgEnum('RunStatus', ['PROCESSING', 'SUCCESS', 'FAILED', 'SKIPPED']);
|
@@ -98,6 +98,8 @@ export const CampaignComputedValue = pgTable('CampaignComputedValue', {
|
|
98
98
|
}));
|
99
99
|
export const UserComputedValue = pgTable('UserComputedValue', {
|
100
100
|
id: serial('id').notNull().primaryKey(),
|
101
|
+
stringId: text('stringId').notNull(),
|
102
|
+
uuid: text('uuid').notNull().default(sql `gen_random_uuid()`),
|
101
103
|
campaignId: text('campaignId').notNull(),
|
102
104
|
address: text('address').notNull(),
|
103
105
|
reason: text('reason').notNull(),
|
@@ -224,6 +226,7 @@ export const AprRecord = pgTable('AprRecord', {
|
|
224
226
|
}));
|
225
227
|
export const AprBreakdown = pgTable('AprBreakdown', {
|
226
228
|
id: serial('id').notNull().primaryKey(),
|
229
|
+
uuid: text('uuid').notNull().default(sql `gen_random_uuid()`),
|
227
230
|
identifier: text('identifier').notNull(),
|
228
231
|
type: AprType('type').notNull(),
|
229
232
|
value: doublePrecision('value').notNull(),
|
@@ -255,6 +258,7 @@ export const TVLRecord = pgTable('TVLRecord', {
|
|
255
258
|
}));
|
256
259
|
export const TVLBreakdown = pgTable('TVLBreakdown', {
|
257
260
|
id: serial('id').notNull().primaryKey(),
|
261
|
+
uuid: text('uuid').notNull().default(sql `gen_random_uuid()`),
|
258
262
|
identifier: text('identifier').notNull(),
|
259
263
|
type: TvlType('type').notNull(),
|
260
264
|
value: doublePrecision('value').notNull(),
|
@@ -286,6 +290,7 @@ export const DailyRewardsRecord = pgTable('DailyRewardsRecord', {
|
|
286
290
|
}));
|
287
291
|
export const DailyRewardsBreakdown = pgTable('DailyRewardsBreakdown', {
|
288
292
|
id: serial('id').notNull().primaryKey(),
|
293
|
+
uuid: text('uuid').notNull().default(sql `gen_random_uuid()`),
|
289
294
|
value: doublePrecision('value').notNull(),
|
290
295
|
campaignId: text('campaignId').notNull(),
|
291
296
|
dailyRewardsRecordId: text('dailyRewardsRecordId').notNull()
|
@@ -358,7 +363,9 @@ export const Reward = pgTable('Reward', {
|
|
358
363
|
.on(Reward.root, Reward.recipient, Reward.rewardTokenId)
|
359
364
|
}));
|
360
365
|
export const RewardBreakdown = pgTable('RewardBreakdown', {
|
361
|
-
id:
|
366
|
+
id: serial('id').notNull().primaryKey(),
|
367
|
+
stringId: text('stringId').notNull(),
|
368
|
+
uuid: text('uuid').notNull().default(sql `gen_random_uuid()`),
|
362
369
|
protocolId: text('protocolId'),
|
363
370
|
reason: text('reason').notNull(),
|
364
371
|
amount: text('amount').notNull(),
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { relations } from 'drizzle-orm'
|
1
|
+
import { relations, sql } from 'drizzle-orm'
|
2
2
|
import { bigint, boolean, doublePrecision, foreignKey, integer, jsonb, pgEnum, pgTable, serial, text, timestamp, uniqueIndex } from 'drizzle-orm/pg-core'
|
3
3
|
|
4
4
|
export const LoggedEntityType = pgEnum('LoggedEntityType', ['UNKNOWN', 'EULER_VAULT', 'UNISWAP_V4', 'COMPOUND_v2'])
|
@@ -113,6 +113,8 @@ export const CampaignComputedValue = pgTable('CampaignComputedValue', {
|
|
113
113
|
|
114
114
|
export const UserComputedValue = pgTable('UserComputedValue', {
|
115
115
|
id: serial('id').notNull().primaryKey(),
|
116
|
+
stringId: text('stringId').notNull(),
|
117
|
+
uuid: text('uuid').notNull().default(sql`gen_random_uuid()`),
|
116
118
|
campaignId: text('campaignId').notNull(),
|
117
119
|
address: text('address').notNull(),
|
118
120
|
reason: text('reason').notNull(),
|
@@ -246,6 +248,7 @@ export const AprRecord = pgTable('AprRecord', {
|
|
246
248
|
|
247
249
|
export const AprBreakdown = pgTable('AprBreakdown', {
|
248
250
|
id: serial('id').notNull().primaryKey(),
|
251
|
+
uuid: text('uuid').notNull().default(sql`gen_random_uuid()`),
|
249
252
|
identifier: text('identifier').notNull(),
|
250
253
|
type: AprType('type').notNull(),
|
251
254
|
value: doublePrecision('value').notNull(),
|
@@ -279,6 +282,7 @@ export const TVLRecord = pgTable('TVLRecord', {
|
|
279
282
|
|
280
283
|
export const TVLBreakdown = pgTable('TVLBreakdown', {
|
281
284
|
id: serial('id').notNull().primaryKey(),
|
285
|
+
uuid: text('uuid').notNull().default(sql`gen_random_uuid()`),
|
282
286
|
identifier: text('identifier').notNull(),
|
283
287
|
type: TvlType('type').notNull(),
|
284
288
|
value: doublePrecision('value').notNull(),
|
@@ -312,6 +316,7 @@ export const DailyRewardsRecord = pgTable('DailyRewardsRecord', {
|
|
312
316
|
|
313
317
|
export const DailyRewardsBreakdown = pgTable('DailyRewardsBreakdown', {
|
314
318
|
id: serial('id').notNull().primaryKey(),
|
319
|
+
uuid: text('uuid').notNull().default(sql`gen_random_uuid()`),
|
315
320
|
value: doublePrecision('value').notNull(),
|
316
321
|
campaignId: text('campaignId').notNull(),
|
317
322
|
dailyRewardsRecordId: text('dailyRewardsRecordId').notNull()
|
@@ -388,7 +393,9 @@ export const Reward = pgTable('Reward', {
|
|
388
393
|
}));
|
389
394
|
|
390
395
|
export const RewardBreakdown = pgTable('RewardBreakdown', {
|
391
|
-
id:
|
396
|
+
id: serial('id').notNull().primaryKey(),
|
397
|
+
stringId: text('stringId').notNull(),
|
398
|
+
uuid: text('uuid').notNull().default(sql`gen_random_uuid()`),
|
392
399
|
protocolId: text('protocolId'),
|
393
400
|
reason: text('reason').notNull(),
|
394
401
|
amount: text('amount').notNull(),
|