@merkl/api 0.20.0 → 0.20.2
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 +28 -28
- package/dist/database/api/.generated/drizzle/schema.js +11 -11
- package/dist/database/api/.generated/drizzle/schema.ts +11 -11
- package/dist/database/api/.generated/edge.js +5 -5
- package/dist/database/api/.generated/index-browser.js +2 -2
- package/dist/database/api/.generated/index.d.ts +151 -154
- package/dist/database/api/.generated/index.js +5 -5
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +11 -11
- package/dist/database/api/.generated/wasm.js +2 -2
- package/dist/src/eden/index.d.ts +2088 -667
- package/dist/src/engine/opportunityMetadata/implementations/Clamm.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Clamm.js +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Dolomite.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Dolomite.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/Erc20.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Erc20.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/Euler.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Euler.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/Hyperdrive.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Hyperdrive.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/Morpho.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Morpho.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/Radiant.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Radiant.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/Silo.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/Silo.js +2 -0
- package/dist/src/engine/opportunityMetadata/implementations/UniswapV4.d.ts +1 -0
- package/dist/src/engine/opportunityMetadata/implementations/UniswapV4.js +2 -0
- package/dist/src/index.d.ts +380 -95
- package/dist/src/jobs/reward-breakdowns.js +0 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +5 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +9 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.service.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +374 -95
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +11 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +8 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +14 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -0
- package/dist/src/modules/v4/reward/reward.model.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -4
- package/dist/src/modules/v4/reward/reward.repository.js +0 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +10 -4
- package/dist/src/modules/v4/reward/reward.service.js +1 -1
- package/dist/src/modules/v4/router.d.ts +380 -95
- package/dist/src/modules/v4/user/user.controller.d.ts +2 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +2 -1
@@ -73,9 +73,9 @@ model CampaignComputedValue {
|
|
73
73
|
}
|
74
74
|
|
75
75
|
model UserComputedValue {
|
76
|
-
id Int @
|
76
|
+
id Int @default(autoincrement()) // TODO Migrate to something smarter than Int ids
|
77
77
|
stringId String @default("")
|
78
|
-
uuid String @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
78
|
+
uuid String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
79
79
|
campaignId String
|
80
80
|
Campaign Campaign @relation(fields: [campaignId], references: [id])
|
81
81
|
address String @db.Char(42)
|
@@ -120,6 +120,7 @@ model Opportunity {
|
|
120
120
|
identifier String // eg. 0xUniswapPool - formerly mainParameter
|
121
121
|
name String
|
122
122
|
depositUrl String?
|
123
|
+
explorerAddress String?
|
123
124
|
status Status
|
124
125
|
action OpportunityAction
|
125
126
|
Tokens Token[]
|
@@ -195,8 +196,8 @@ model AprRecord {
|
|
195
196
|
}
|
196
197
|
|
197
198
|
model AprBreakdown {
|
198
|
-
id Int @
|
199
|
-
uuid String @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
199
|
+
id Int @default(autoincrement()) // TODO Migrate to something smarter than Int ids
|
200
|
+
uuid String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
200
201
|
identifier String
|
201
202
|
type AprType
|
202
203
|
value Float
|
@@ -220,8 +221,8 @@ model TVLRecord {
|
|
220
221
|
}
|
221
222
|
|
222
223
|
model TVLBreakdown {
|
223
|
-
id Int @
|
224
|
-
uuid String @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
224
|
+
id Int @default(autoincrement()) // TODO Migrate to something smarter than Int ids
|
225
|
+
uuid String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
225
226
|
identifier String
|
226
227
|
type TvlType
|
227
228
|
value Float
|
@@ -246,8 +247,8 @@ model DailyRewardsRecord {
|
|
246
247
|
}
|
247
248
|
|
248
249
|
model DailyRewardsBreakdown {
|
249
|
-
id Int @
|
250
|
-
uuid String @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
250
|
+
id Int @default(autoincrement()) // TODO Migrate to something smarter than Int ids
|
251
|
+
uuid String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
251
252
|
value Float
|
252
253
|
campaignId String
|
253
254
|
Campaign Campaign @relation(fields: [campaignId], references: [id])
|
@@ -297,9 +298,8 @@ model Reward {
|
|
297
298
|
}
|
298
299
|
|
299
300
|
model RewardBreakdown {
|
300
|
-
id Int @
|
301
|
-
|
302
|
-
uuid String? @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
301
|
+
id Int @default(autoincrement())
|
302
|
+
uuid String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
303
303
|
Protocol Protocol? @relation(fields: [protocolId], references: [id])
|
304
304
|
protocolId String?
|
305
305
|
reason String
|
@@ -186,6 +186,7 @@ exports.Prisma.OpportunityScalarFieldEnum = {
|
|
186
186
|
identifier: 'identifier',
|
187
187
|
name: 'name',
|
188
188
|
depositUrl: 'depositUrl',
|
189
|
+
explorerAddress: 'explorerAddress',
|
189
190
|
status: 'status',
|
190
191
|
action: 'action',
|
191
192
|
mainProtocolId: 'mainProtocolId',
|
@@ -292,7 +293,6 @@ exports.Prisma.RewardScalarFieldEnum = {
|
|
292
293
|
|
293
294
|
exports.Prisma.RewardBreakdownScalarFieldEnum = {
|
294
295
|
id: 'id',
|
295
|
-
stringId: 'stringId',
|
296
296
|
uuid: 'uuid',
|
297
297
|
protocolId: 'protocolId',
|
298
298
|
reason: 'reason',
|
@@ -422,6 +422,7 @@ exports.Prisma.OpportunityOrderByRelevanceFieldEnum = {
|
|
422
422
|
identifier: 'identifier',
|
423
423
|
name: 'name',
|
424
424
|
depositUrl: 'depositUrl',
|
425
|
+
explorerAddress: 'explorerAddress',
|
425
426
|
mainProtocolId: 'mainProtocolId',
|
426
427
|
tags: 'tags'
|
427
428
|
};
|
@@ -501,7 +502,6 @@ exports.Prisma.RewardOrderByRelevanceFieldEnum = {
|
|
501
502
|
};
|
502
503
|
|
503
504
|
exports.Prisma.RewardBreakdownOrderByRelevanceFieldEnum = {
|
504
|
-
stringId: 'stringId',
|
505
505
|
uuid: 'uuid',
|
506
506
|
protocolId: 'protocolId',
|
507
507
|
reason: 'reason',
|