@merkl/api 0.20.46 → 0.20.48
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 +44 -1
- package/dist/database/api/.generated/drizzle/schema.js +3 -2
- package/dist/database/api/.generated/drizzle/schema.ts +3 -2
- package/dist/database/api/.generated/edge.js +7 -7
- package/dist/database/api/.generated/index-browser.js +9 -1
- package/dist/database/api/.generated/index.d.ts +97 -5
- package/dist/database/api/.generated/index.js +7 -7
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +13 -13
- package/dist/database/api/.generated/wasm.js +9 -1
- package/dist/src/eden/index.d.ts +351 -15
- package/dist/src/engine/dynamicData/implementations/Clamm.js +30 -31
- package/dist/src/index.d.ts +87 -3
- package/dist/src/jobs/update-dynamic-data.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +3 -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/dynamicData/dynamicData.controller.d.ts +2 -0
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +2 -0
- package/dist/src/modules/v4/dynamicData/dynamicData.model.js +2 -0
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +4 -4
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +80 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +16 -3
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +26 -4
- package/dist/src/modules/v4/opportunity/opportunity.model.js +8 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +16 -40
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +72 -181
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +44 -25
- package/dist/src/modules/v4/opportunity/opportunity.service.js +15 -33
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +9 -3
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -0
- package/dist/src/modules/v4/reward/reward.repository.d.ts +1 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +7 -0
- package/dist/src/modules/v4/router.d.ts +87 -3
- package/dist/src/modules/v4/token/token.controller.d.ts +0 -3
- package/dist/src/modules/v4/token/token.model.d.ts +0 -3
- package/dist/src/modules/v4/token/token.model.js +0 -1
- package/dist/src/modules/v4/token/token.service.js +5 -5
- package/dist/src/modules/v4/user/user.controller.d.ts +2 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -111,28 +111,29 @@ model Explorer {
|
|
111
111
|
}
|
112
112
|
|
113
113
|
model Opportunity {
|
114
|
-
id String
|
115
|
-
Chain Chain
|
114
|
+
id String @id
|
115
|
+
Chain Chain @relation(fields: [chainId], references: [id]) // compute
|
116
116
|
chainId Int // compute
|
117
117
|
type String
|
118
118
|
identifier String // eg. 0xUniswapPool - formerly mainParameter
|
119
|
-
name String
|
120
|
-
depositUrl String?
|
121
|
-
explorerAddress String?
|
119
|
+
name String // Override
|
120
|
+
depositUrl String? // Override
|
121
|
+
explorerAddress String? // Override
|
122
122
|
status Status
|
123
|
-
action OpportunityAction
|
123
|
+
action OpportunityAction // Override
|
124
124
|
Tokens Token[]
|
125
125
|
Campaigns Campaign[]
|
126
126
|
Protocols Protocol[]
|
127
|
-
MainProtocol Protocol?
|
127
|
+
MainProtocol Protocol? @relation(name: "main", fields: [mainProtocolId], references: [id])
|
128
128
|
mainProtocolId String?
|
129
|
-
tvl Float
|
129
|
+
tvl Float @default(0)
|
130
130
|
TvlRecords TVLRecord[]
|
131
|
-
apr Float
|
131
|
+
apr Float @default(0)
|
132
132
|
AprRecords AprRecord[]
|
133
|
-
dailyRewards Float
|
133
|
+
dailyRewards Float @default(0)
|
134
134
|
DailyRewardsRecords DailyRewardsRecord[]
|
135
|
-
tags String[]
|
135
|
+
tags String[] @default([])
|
136
|
+
manualOverrides OpportunityManualOverride[] @default([])
|
136
137
|
|
137
138
|
// Fields should be automatically parsable and overriden periodically UNLESS
|
138
139
|
// they are manually overridden, in which case they should be kept as is
|
@@ -442,11 +443,10 @@ enum CampaignManualOverride {
|
|
442
443
|
}
|
443
444
|
|
444
445
|
enum OpportunityManualOverride {
|
445
|
-
identifier
|
446
446
|
name
|
447
447
|
depositUrl
|
448
|
+
explorerAddress
|
448
449
|
action
|
449
|
-
mainProtocolId
|
450
450
|
}
|
451
451
|
|
452
452
|
enum DistributionType {
|
@@ -191,7 +191,8 @@ exports.Prisma.OpportunityScalarFieldEnum = {
|
|
191
191
|
tvl: 'tvl',
|
192
192
|
apr: 'apr',
|
193
193
|
dailyRewards: 'dailyRewards',
|
194
|
-
tags: 'tags'
|
194
|
+
tags: 'tags',
|
195
|
+
manualOverrides: 'manualOverrides'
|
195
196
|
};
|
196
197
|
|
197
198
|
exports.Prisma.ProtocolScalarFieldEnum = {
|
@@ -570,6 +571,13 @@ exports.OpportunityAction = exports.$Enums.OpportunityAction = {
|
|
570
571
|
INVALID: 'INVALID'
|
571
572
|
};
|
572
573
|
|
574
|
+
exports.OpportunityManualOverride = exports.$Enums.OpportunityManualOverride = {
|
575
|
+
name: 'name',
|
576
|
+
depositUrl: 'depositUrl',
|
577
|
+
explorerAddress: 'explorerAddress',
|
578
|
+
action: 'action'
|
579
|
+
};
|
580
|
+
|
573
581
|
exports.AprType = exports.$Enums.AprType = {
|
574
582
|
CAMPAIGN: 'CAMPAIGN',
|
575
583
|
TOKEN: 'TOKEN',
|