@merkl/api 0.20.4 → 0.20.5
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 +0 -102
- package/dist/database/api/.generated/drizzle/schema.js +5 -11
- package/dist/database/api/.generated/drizzle/schema.ts +5 -11
- package/dist/database/api/.generated/edge.js +8 -15
- package/dist/database/api/.generated/index-browser.js +5 -12
- package/dist/database/api/.generated/index.d.ts +149 -464
- package/dist/database/api/.generated/index.js +8 -15
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +5 -11
- package/dist/database/api/.generated/wasm.js +5 -12
- package/dist/src/eden/index.d.ts +65 -90
- package/dist/src/index.d.ts +13 -18
- package/dist/src/modules/v4/apr/apr.model.d.ts +3 -3
- package/dist/src/modules/v4/apr/apr.model.js +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -3
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -3
- package/dist/src/modules/v4/computedValue/computedValue.repository.js +0 -2
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -3
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +12 -15
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +6 -6
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +17 -34
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +15 -24
- package/dist/src/modules/v4/reward/reward.model.d.ts +4 -4
- package/dist/src/modules/v4/reward/reward.model.js +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -4
- package/dist/src/modules/v4/reward/reward.service.d.ts +5 -10
- package/dist/src/modules/v4/reward/reward.service.js +1 -1
- package/dist/src/modules/v4/router.d.ts +13 -18
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +3 -3
- package/dist/src/modules/v4/tvl/tvl.model.js +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -488,40 +488,6 @@ export declare const UserComputedValue: import("drizzle-orm/pg-core").PgTableWit
|
|
488
488
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
489
489
|
name: "id";
|
490
490
|
tableName: "UserComputedValue";
|
491
|
-
dataType: "number";
|
492
|
-
columnType: "PgSerial";
|
493
|
-
data: number;
|
494
|
-
driverParam: number;
|
495
|
-
notNull: true;
|
496
|
-
hasDefault: true;
|
497
|
-
isPrimaryKey: false;
|
498
|
-
isAutoincrement: false;
|
499
|
-
hasRuntimeDefault: false;
|
500
|
-
enumValues: undefined;
|
501
|
-
baseColumn: never;
|
502
|
-
identity: undefined;
|
503
|
-
generated: undefined;
|
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
491
|
dataType: "string";
|
526
492
|
columnType: "PgText";
|
527
493
|
data: string;
|
@@ -1456,23 +1422,6 @@ export declare const AprBreakdown: import("drizzle-orm/pg-core").PgTableWithColu
|
|
1456
1422
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
1457
1423
|
name: "id";
|
1458
1424
|
tableName: "AprBreakdown";
|
1459
|
-
dataType: "number";
|
1460
|
-
columnType: "PgSerial";
|
1461
|
-
data: number;
|
1462
|
-
driverParam: number;
|
1463
|
-
notNull: true;
|
1464
|
-
hasDefault: true;
|
1465
|
-
isPrimaryKey: false;
|
1466
|
-
isAutoincrement: false;
|
1467
|
-
hasRuntimeDefault: false;
|
1468
|
-
enumValues: undefined;
|
1469
|
-
baseColumn: never;
|
1470
|
-
identity: undefined;
|
1471
|
-
generated: undefined;
|
1472
|
-
}, {}, {}>;
|
1473
|
-
uuid: import("drizzle-orm/pg-core").PgColumn<{
|
1474
|
-
name: "uuid";
|
1475
|
-
tableName: "AprBreakdown";
|
1476
1425
|
dataType: "string";
|
1477
1426
|
columnType: "PgText";
|
1478
1427
|
data: string;
|
@@ -1640,23 +1589,6 @@ export declare const TVLBreakdown: import("drizzle-orm/pg-core").PgTableWithColu
|
|
1640
1589
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
1641
1590
|
name: "id";
|
1642
1591
|
tableName: "TVLBreakdown";
|
1643
|
-
dataType: "number";
|
1644
|
-
columnType: "PgSerial";
|
1645
|
-
data: number;
|
1646
|
-
driverParam: number;
|
1647
|
-
notNull: true;
|
1648
|
-
hasDefault: true;
|
1649
|
-
isPrimaryKey: false;
|
1650
|
-
isAutoincrement: false;
|
1651
|
-
hasRuntimeDefault: false;
|
1652
|
-
enumValues: undefined;
|
1653
|
-
baseColumn: never;
|
1654
|
-
identity: undefined;
|
1655
|
-
generated: undefined;
|
1656
|
-
}, {}, {}>;
|
1657
|
-
uuid: import("drizzle-orm/pg-core").PgColumn<{
|
1658
|
-
name: "uuid";
|
1659
|
-
tableName: "TVLBreakdown";
|
1660
1592
|
dataType: "string";
|
1661
1593
|
columnType: "PgText";
|
1662
1594
|
data: string;
|
@@ -1824,23 +1756,6 @@ export declare const DailyRewardsBreakdown: import("drizzle-orm/pg-core").PgTabl
|
|
1824
1756
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
1825
1757
|
name: "id";
|
1826
1758
|
tableName: "DailyRewardsBreakdown";
|
1827
|
-
dataType: "number";
|
1828
|
-
columnType: "PgSerial";
|
1829
|
-
data: number;
|
1830
|
-
driverParam: number;
|
1831
|
-
notNull: true;
|
1832
|
-
hasDefault: true;
|
1833
|
-
isPrimaryKey: false;
|
1834
|
-
isAutoincrement: false;
|
1835
|
-
hasRuntimeDefault: false;
|
1836
|
-
enumValues: undefined;
|
1837
|
-
baseColumn: never;
|
1838
|
-
identity: undefined;
|
1839
|
-
generated: undefined;
|
1840
|
-
}, {}, {}>;
|
1841
|
-
uuid: import("drizzle-orm/pg-core").PgColumn<{
|
1842
|
-
name: "uuid";
|
1843
|
-
tableName: "DailyRewardsBreakdown";
|
1844
1759
|
dataType: "string";
|
1845
1760
|
columnType: "PgText";
|
1846
1761
|
data: string;
|
@@ -2227,23 +2142,6 @@ export declare const RewardBreakdown: import("drizzle-orm/pg-core").PgTableWithC
|
|
2227
2142
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
2228
2143
|
name: "id";
|
2229
2144
|
tableName: "RewardBreakdown";
|
2230
|
-
dataType: "number";
|
2231
|
-
columnType: "PgSerial";
|
2232
|
-
data: number;
|
2233
|
-
driverParam: number;
|
2234
|
-
notNull: true;
|
2235
|
-
hasDefault: true;
|
2236
|
-
isPrimaryKey: false;
|
2237
|
-
isAutoincrement: false;
|
2238
|
-
hasRuntimeDefault: false;
|
2239
|
-
enumValues: undefined;
|
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
2145
|
dataType: "string";
|
2248
2146
|
columnType: "PgText";
|
2249
2147
|
data: string;
|
@@ -97,9 +97,7 @@ export const CampaignComputedValue = pgTable('CampaignComputedValue', {
|
|
97
97
|
.onUpdate('cascade')
|
98
98
|
}));
|
99
99
|
export const UserComputedValue = pgTable('UserComputedValue', {
|
100
|
-
id:
|
101
|
-
stringId: text('stringId').notNull(),
|
102
|
-
uuid: text('uuid').notNull().primaryKey().default(sql `gen_random_uuid()`),
|
100
|
+
id: text('id').notNull().primaryKey().default(sql `gen_random_uuid()`),
|
103
101
|
campaignId: text('campaignId').notNull(),
|
104
102
|
address: text('address').notNull(),
|
105
103
|
reason: text('reason').notNull(),
|
@@ -226,8 +224,7 @@ export const AprRecord = pgTable('AprRecord', {
|
|
226
224
|
.on(AprRecord.opportunityId, AprRecord.timestamp)
|
227
225
|
}));
|
228
226
|
export const AprBreakdown = pgTable('AprBreakdown', {
|
229
|
-
id:
|
230
|
-
uuid: text('uuid').notNull().primaryKey().default(sql `gen_random_uuid()`),
|
227
|
+
id: text('id').notNull().primaryKey().default(sql `gen_random_uuid()`),
|
231
228
|
identifier: text('identifier').notNull(),
|
232
229
|
type: AprType('type').notNull(),
|
233
230
|
value: doublePrecision('value').notNull(),
|
@@ -258,8 +255,7 @@ export const TVLRecord = pgTable('TVLRecord', {
|
|
258
255
|
.on(TVLRecord.opportunityId, TVLRecord.timestamp)
|
259
256
|
}));
|
260
257
|
export const TVLBreakdown = pgTable('TVLBreakdown', {
|
261
|
-
id:
|
262
|
-
uuid: text('uuid').notNull().primaryKey().default(sql `gen_random_uuid()`),
|
258
|
+
id: text('id').notNull().primaryKey().default(sql `gen_random_uuid()`),
|
263
259
|
identifier: text('identifier').notNull(),
|
264
260
|
type: TvlType('type').notNull(),
|
265
261
|
value: doublePrecision('value').notNull(),
|
@@ -290,8 +286,7 @@ export const DailyRewardsRecord = pgTable('DailyRewardsRecord', {
|
|
290
286
|
.on(DailyRewardsRecord.opportunityId, DailyRewardsRecord.timestamp)
|
291
287
|
}));
|
292
288
|
export const DailyRewardsBreakdown = pgTable('DailyRewardsBreakdown', {
|
293
|
-
id:
|
294
|
-
uuid: text('uuid').notNull().primaryKey().default(sql `gen_random_uuid()`),
|
289
|
+
id: text('id').notNull().primaryKey().default(sql `gen_random_uuid()`),
|
295
290
|
value: doublePrecision('value').notNull(),
|
296
291
|
campaignId: text('campaignId').notNull(),
|
297
292
|
dailyRewardsRecordId: text('dailyRewardsRecordId').notNull()
|
@@ -364,8 +359,7 @@ export const Reward = pgTable('Reward', {
|
|
364
359
|
.on(Reward.root, Reward.recipient, Reward.rewardTokenId)
|
365
360
|
}));
|
366
361
|
export const RewardBreakdown = pgTable('RewardBreakdown', {
|
367
|
-
id:
|
368
|
-
uuid: text('uuid').notNull().primaryKey().default(sql `gen_random_uuid()`),
|
362
|
+
id: text('id').notNull().primaryKey().default(sql `gen_random_uuid()`),
|
369
363
|
protocolId: text('protocolId'),
|
370
364
|
reason: text('reason').notNull(),
|
371
365
|
amount: text('amount').notNull(),
|
@@ -112,9 +112,7 @@ export const CampaignComputedValue = pgTable('CampaignComputedValue', {
|
|
112
112
|
}));
|
113
113
|
|
114
114
|
export const UserComputedValue = pgTable('UserComputedValue', {
|
115
|
-
id:
|
116
|
-
stringId: text('stringId').notNull(),
|
117
|
-
uuid: text('uuid').notNull().primaryKey().default(sql`gen_random_uuid()`),
|
115
|
+
id: text('id').notNull().primaryKey().default(sql`gen_random_uuid()`),
|
118
116
|
campaignId: text('campaignId').notNull(),
|
119
117
|
address: text('address').notNull(),
|
120
118
|
reason: text('reason').notNull(),
|
@@ -248,8 +246,7 @@ export const AprRecord = pgTable('AprRecord', {
|
|
248
246
|
}));
|
249
247
|
|
250
248
|
export const AprBreakdown = pgTable('AprBreakdown', {
|
251
|
-
id:
|
252
|
-
uuid: text('uuid').notNull().primaryKey().default(sql`gen_random_uuid()`),
|
249
|
+
id: text('id').notNull().primaryKey().default(sql`gen_random_uuid()`),
|
253
250
|
identifier: text('identifier').notNull(),
|
254
251
|
type: AprType('type').notNull(),
|
255
252
|
value: doublePrecision('value').notNull(),
|
@@ -282,8 +279,7 @@ export const TVLRecord = pgTable('TVLRecord', {
|
|
282
279
|
}));
|
283
280
|
|
284
281
|
export const TVLBreakdown = pgTable('TVLBreakdown', {
|
285
|
-
id:
|
286
|
-
uuid: text('uuid').notNull().primaryKey().default(sql`gen_random_uuid()`),
|
282
|
+
id: text('id').notNull().primaryKey().default(sql`gen_random_uuid()`),
|
287
283
|
identifier: text('identifier').notNull(),
|
288
284
|
type: TvlType('type').notNull(),
|
289
285
|
value: doublePrecision('value').notNull(),
|
@@ -316,8 +312,7 @@ export const DailyRewardsRecord = pgTable('DailyRewardsRecord', {
|
|
316
312
|
}));
|
317
313
|
|
318
314
|
export const DailyRewardsBreakdown = pgTable('DailyRewardsBreakdown', {
|
319
|
-
id:
|
320
|
-
uuid: text('uuid').notNull().primaryKey().default(sql`gen_random_uuid()`),
|
315
|
+
id: text('id').notNull().primaryKey().default(sql`gen_random_uuid()`),
|
321
316
|
value: doublePrecision('value').notNull(),
|
322
317
|
campaignId: text('campaignId').notNull(),
|
323
318
|
dailyRewardsRecordId: text('dailyRewardsRecordId').notNull()
|
@@ -394,8 +389,7 @@ export const Reward = pgTable('Reward', {
|
|
394
389
|
}));
|
395
390
|
|
396
391
|
export const RewardBreakdown = pgTable('RewardBreakdown', {
|
397
|
-
id:
|
398
|
-
uuid: text('uuid').notNull().primaryKey().default(sql`gen_random_uuid()`),
|
392
|
+
id: text('id').notNull().primaryKey().default(sql`gen_random_uuid()`),
|
399
393
|
protocolId: text('protocolId'),
|
400
394
|
reason: text('reason').notNull(),
|
401
395
|
amount: text('amount').notNull(),
|