@merkl/api 0.19.37 → 0.19.38
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 +90 -5
- package/dist/database/api/.generated/drizzle/schema.js +7 -2
- package/dist/database/api/.generated/drizzle/schema.ts +7 -2
- package/dist/database/api/.generated/edge.js +13 -3
- package/dist/database/api/.generated/index-browser.js +10 -0
- package/dist/database/api/.generated/index.d.ts +296 -40
- package/dist/database/api/.generated/index.js +13 -3
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +6 -1
- package/dist/database/api/.generated/wasm.js +10 -0
- package/dist/src/eden/index.d.ts +20 -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 +4 -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 +1 -0
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -0
- package/dist/src/modules/v4/computedValue/computedValue.repository.js +2 -0
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +2 -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 +4 -2
- package/dist/src/modules/v4/reward/reward.repository.js +1 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +8 -2
- package/dist/src/modules/v4/reward/reward.service.js +4 -1
- package/dist/src/modules/v4/router.d.ts +4 -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,23 @@ 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
|
+
}, {}, {}>;
|
505
522
|
campaignId: import("drizzle-orm/pg-core").PgColumn<{
|
506
523
|
name: "campaignId";
|
507
524
|
tableName: "UserComputedValue";
|
@@ -1419,6 +1436,23 @@ export declare const AprBreakdown: import("drizzle-orm/pg-core").PgTableWithColu
|
|
1419
1436
|
identity: undefined;
|
1420
1437
|
generated: undefined;
|
1421
1438
|
}, {}, {}>;
|
1439
|
+
uuid: import("drizzle-orm/pg-core").PgColumn<{
|
1440
|
+
name: "uuid";
|
1441
|
+
tableName: "AprBreakdown";
|
1442
|
+
dataType: "string";
|
1443
|
+
columnType: "PgText";
|
1444
|
+
data: string;
|
1445
|
+
driverParam: string;
|
1446
|
+
notNull: true;
|
1447
|
+
hasDefault: true;
|
1448
|
+
isPrimaryKey: false;
|
1449
|
+
isAutoincrement: false;
|
1450
|
+
hasRuntimeDefault: false;
|
1451
|
+
enumValues: [string, ...string[]];
|
1452
|
+
baseColumn: never;
|
1453
|
+
identity: undefined;
|
1454
|
+
generated: undefined;
|
1455
|
+
}, {}, {}>;
|
1422
1456
|
identifier: import("drizzle-orm/pg-core").PgColumn<{
|
1423
1457
|
name: "identifier";
|
1424
1458
|
tableName: "AprBreakdown";
|
@@ -1586,6 +1620,23 @@ export declare const TVLBreakdown: import("drizzle-orm/pg-core").PgTableWithColu
|
|
1586
1620
|
identity: undefined;
|
1587
1621
|
generated: undefined;
|
1588
1622
|
}, {}, {}>;
|
1623
|
+
uuid: import("drizzle-orm/pg-core").PgColumn<{
|
1624
|
+
name: "uuid";
|
1625
|
+
tableName: "TVLBreakdown";
|
1626
|
+
dataType: "string";
|
1627
|
+
columnType: "PgText";
|
1628
|
+
data: string;
|
1629
|
+
driverParam: string;
|
1630
|
+
notNull: true;
|
1631
|
+
hasDefault: true;
|
1632
|
+
isPrimaryKey: false;
|
1633
|
+
isAutoincrement: false;
|
1634
|
+
hasRuntimeDefault: false;
|
1635
|
+
enumValues: [string, ...string[]];
|
1636
|
+
baseColumn: never;
|
1637
|
+
identity: undefined;
|
1638
|
+
generated: undefined;
|
1639
|
+
}, {}, {}>;
|
1589
1640
|
identifier: import("drizzle-orm/pg-core").PgColumn<{
|
1590
1641
|
name: "identifier";
|
1591
1642
|
tableName: "TVLBreakdown";
|
@@ -1753,6 +1804,23 @@ export declare const DailyRewardsBreakdown: import("drizzle-orm/pg-core").PgTabl
|
|
1753
1804
|
identity: undefined;
|
1754
1805
|
generated: undefined;
|
1755
1806
|
}, {}, {}>;
|
1807
|
+
uuid: import("drizzle-orm/pg-core").PgColumn<{
|
1808
|
+
name: "uuid";
|
1809
|
+
tableName: "DailyRewardsBreakdown";
|
1810
|
+
dataType: "string";
|
1811
|
+
columnType: "PgText";
|
1812
|
+
data: string;
|
1813
|
+
driverParam: string;
|
1814
|
+
notNull: true;
|
1815
|
+
hasDefault: true;
|
1816
|
+
isPrimaryKey: false;
|
1817
|
+
isAutoincrement: false;
|
1818
|
+
hasRuntimeDefault: false;
|
1819
|
+
enumValues: [string, ...string[]];
|
1820
|
+
baseColumn: never;
|
1821
|
+
identity: undefined;
|
1822
|
+
generated: undefined;
|
1823
|
+
}, {}, {}>;
|
1756
1824
|
value: import("drizzle-orm/pg-core").PgColumn<{
|
1757
1825
|
name: "value";
|
1758
1826
|
tableName: "DailyRewardsBreakdown";
|
@@ -2125,12 +2193,12 @@ export declare const RewardBreakdown: import("drizzle-orm/pg-core").PgTableWithC
|
|
2125
2193
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
2126
2194
|
name: "id";
|
2127
2195
|
tableName: "RewardBreakdown";
|
2128
|
-
dataType: "
|
2129
|
-
columnType: "
|
2130
|
-
data:
|
2131
|
-
driverParam:
|
2196
|
+
dataType: "number";
|
2197
|
+
columnType: "PgSerial";
|
2198
|
+
data: number;
|
2199
|
+
driverParam: number;
|
2132
2200
|
notNull: true;
|
2133
|
-
hasDefault:
|
2201
|
+
hasDefault: true;
|
2134
2202
|
isPrimaryKey: true;
|
2135
2203
|
isAutoincrement: false;
|
2136
2204
|
hasRuntimeDefault: false;
|
@@ -2139,6 +2207,23 @@ export declare const RewardBreakdown: import("drizzle-orm/pg-core").PgTableWithC
|
|
2139
2207
|
identity: undefined;
|
2140
2208
|
generated: undefined;
|
2141
2209
|
}, {}, {}>;
|
2210
|
+
stringId: import("drizzle-orm/pg-core").PgColumn<{
|
2211
|
+
name: "stringId";
|
2212
|
+
tableName: "RewardBreakdown";
|
2213
|
+
dataType: "string";
|
2214
|
+
columnType: "PgText";
|
2215
|
+
data: string;
|
2216
|
+
driverParam: string;
|
2217
|
+
notNull: true;
|
2218
|
+
hasDefault: false;
|
2219
|
+
isPrimaryKey: false;
|
2220
|
+
isAutoincrement: false;
|
2221
|
+
hasRuntimeDefault: false;
|
2222
|
+
enumValues: [string, ...string[]];
|
2223
|
+
baseColumn: never;
|
2224
|
+
identity: undefined;
|
2225
|
+
generated: undefined;
|
2226
|
+
}, {}, {}>;
|
2142
2227
|
protocolId: import("drizzle-orm/pg-core").PgColumn<{
|
2143
2228
|
name: "protocolId";
|
2144
2229
|
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,7 @@ 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(),
|
101
102
|
campaignId: text('campaignId').notNull(),
|
102
103
|
address: text('address').notNull(),
|
103
104
|
reason: text('reason').notNull(),
|
@@ -224,6 +225,7 @@ export const AprRecord = pgTable('AprRecord', {
|
|
224
225
|
}));
|
225
226
|
export const AprBreakdown = pgTable('AprBreakdown', {
|
226
227
|
id: serial('id').notNull().primaryKey(),
|
228
|
+
uuid: text('uuid').notNull().default(sql `gen_random_uuid()`),
|
227
229
|
identifier: text('identifier').notNull(),
|
228
230
|
type: AprType('type').notNull(),
|
229
231
|
value: doublePrecision('value').notNull(),
|
@@ -255,6 +257,7 @@ export const TVLRecord = pgTable('TVLRecord', {
|
|
255
257
|
}));
|
256
258
|
export const TVLBreakdown = pgTable('TVLBreakdown', {
|
257
259
|
id: serial('id').notNull().primaryKey(),
|
260
|
+
uuid: text('uuid').notNull().default(sql `gen_random_uuid()`),
|
258
261
|
identifier: text('identifier').notNull(),
|
259
262
|
type: TvlType('type').notNull(),
|
260
263
|
value: doublePrecision('value').notNull(),
|
@@ -286,6 +289,7 @@ export const DailyRewardsRecord = pgTable('DailyRewardsRecord', {
|
|
286
289
|
}));
|
287
290
|
export const DailyRewardsBreakdown = pgTable('DailyRewardsBreakdown', {
|
288
291
|
id: serial('id').notNull().primaryKey(),
|
292
|
+
uuid: text('uuid').notNull().default(sql `gen_random_uuid()`),
|
289
293
|
value: doublePrecision('value').notNull(),
|
290
294
|
campaignId: text('campaignId').notNull(),
|
291
295
|
dailyRewardsRecordId: text('dailyRewardsRecordId').notNull()
|
@@ -358,7 +362,8 @@ export const Reward = pgTable('Reward', {
|
|
358
362
|
.on(Reward.root, Reward.recipient, Reward.rewardTokenId)
|
359
363
|
}));
|
360
364
|
export const RewardBreakdown = pgTable('RewardBreakdown', {
|
361
|
-
id:
|
365
|
+
id: serial('id').notNull().primaryKey(),
|
366
|
+
stringId: text('stringId').notNull(),
|
362
367
|
protocolId: text('protocolId'),
|
363
368
|
reason: text('reason').notNull(),
|
364
369
|
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,7 @@ 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(),
|
116
117
|
campaignId: text('campaignId').notNull(),
|
117
118
|
address: text('address').notNull(),
|
118
119
|
reason: text('reason').notNull(),
|
@@ -246,6 +247,7 @@ export const AprRecord = pgTable('AprRecord', {
|
|
246
247
|
|
247
248
|
export const AprBreakdown = pgTable('AprBreakdown', {
|
248
249
|
id: serial('id').notNull().primaryKey(),
|
250
|
+
uuid: text('uuid').notNull().default(sql`gen_random_uuid()`),
|
249
251
|
identifier: text('identifier').notNull(),
|
250
252
|
type: AprType('type').notNull(),
|
251
253
|
value: doublePrecision('value').notNull(),
|
@@ -279,6 +281,7 @@ export const TVLRecord = pgTable('TVLRecord', {
|
|
279
281
|
|
280
282
|
export const TVLBreakdown = pgTable('TVLBreakdown', {
|
281
283
|
id: serial('id').notNull().primaryKey(),
|
284
|
+
uuid: text('uuid').notNull().default(sql`gen_random_uuid()`),
|
282
285
|
identifier: text('identifier').notNull(),
|
283
286
|
type: TvlType('type').notNull(),
|
284
287
|
value: doublePrecision('value').notNull(),
|
@@ -312,6 +315,7 @@ export const DailyRewardsRecord = pgTable('DailyRewardsRecord', {
|
|
312
315
|
|
313
316
|
export const DailyRewardsBreakdown = pgTable('DailyRewardsBreakdown', {
|
314
317
|
id: serial('id').notNull().primaryKey(),
|
318
|
+
uuid: text('uuid').notNull().default(sql`gen_random_uuid()`),
|
315
319
|
value: doublePrecision('value').notNull(),
|
316
320
|
campaignId: text('campaignId').notNull(),
|
317
321
|
dailyRewardsRecordId: text('dailyRewardsRecordId').notNull()
|
@@ -388,7 +392,8 @@ export const Reward = pgTable('Reward', {
|
|
388
392
|
}));
|
389
393
|
|
390
394
|
export const RewardBreakdown = pgTable('RewardBreakdown', {
|
391
|
-
id:
|
395
|
+
id: serial('id').notNull().primaryKey(),
|
396
|
+
stringId: text('stringId').notNull(),
|
392
397
|
protocolId: text('protocolId'),
|
393
398
|
reason: text('reason').notNull(),
|
394
399
|
amount: text('amount').notNull(),
|