@merkl/api 0.21.4 → 0.21.6
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/edge.js +2 -2
- package/dist/database/api/.generated/index.js +2 -2
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +1 -0
- package/dist/src/eden/index.d.ts +1110 -581
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js +2 -11
- package/dist/src/engine/deprecated/dynamicData/utils/getCompV2ForksVaults.js +10 -3
- package/dist/src/engine/implementations/MultiLog/tvl.js +33 -0
- package/dist/src/index.d.ts +448 -261
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +11 -2
- package/dist/src/modules/v4/campaign/campaign.controller.js +3 -3
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +44 -3
- package/dist/src/modules/v4/campaign/campaign.repository.js +46 -2
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +36 -2
- package/dist/src/modules/v4/campaign/campaign.service.js +20 -8
- package/dist/src/modules/v4/creator/creator.controller.d.ts +236 -34
- package/dist/src/modules/v4/creator/creator.controller.js +28 -21
- package/dist/src/modules/v4/creator/creator.model.d.ts +29 -5
- package/dist/src/modules/v4/creator/creator.model.js +21 -1
- package/dist/src/modules/v4/creator/creator.repository.d.ts +52 -6
- package/dist/src/modules/v4/creator/creator.repository.js +16 -13
- package/dist/src/modules/v4/creator/creator.service.d.ts +161 -14
- package/dist/src/modules/v4/creator/creator.service.js +49 -11
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +4 -3
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +14 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +68 -7
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +240 -12
- package/dist/src/modules/v4/router.d.ts +448 -261
- package/dist/src/modules/v4/user/user.controller.d.ts +177 -192
- package/dist/src/modules/v4/user/user.controller.js +38 -56
- package/dist/src/modules/v4/user/user.model.d.ts +1 -1
- package/dist/src/modules/v4/user/user.model.js +1 -1
- package/dist/src/modules/v4/user/user.repository.d.ts +1 -1
- package/dist/src/modules/v4/user/user.repository.js +1 -1
- package/dist/src/modules/v4/user/user.service.d.ts +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +3 -2
package/dist/src/index.d.ts
CHANGED
@@ -1866,7 +1866,7 @@ declare const app: Elysia<"", false, {
|
|
1866
1866
|
};
|
1867
1867
|
} & {
|
1868
1868
|
":id": {
|
1869
|
-
|
1869
|
+
metrics: {
|
1870
1870
|
get: {
|
1871
1871
|
body: unknown;
|
1872
1872
|
params: {
|
@@ -1882,8 +1882,17 @@ declare const app: Elysia<"", false, {
|
|
1882
1882
|
}[];
|
1883
1883
|
aprRecords: {
|
1884
1884
|
timestamp: bigint;
|
1885
|
-
|
1885
|
+
apr: number;
|
1886
|
+
}[];
|
1887
|
+
dailyRewardsRecords: {
|
1888
|
+
total: number;
|
1889
|
+
timestamp: bigint;
|
1890
|
+
}[];
|
1891
|
+
walletCount: {
|
1892
|
+
timestamp: bigint;
|
1893
|
+
walletCount: number;
|
1886
1894
|
}[];
|
1895
|
+
tvlInflowPerDollar: bigint;
|
1887
1896
|
};
|
1888
1897
|
};
|
1889
1898
|
};
|
@@ -4021,37 +4030,163 @@ declare const app: Elysia<"", false, {
|
|
4021
4030
|
} & {
|
4022
4031
|
v4: {
|
4023
4032
|
users: {
|
4024
|
-
|
4025
|
-
|
4026
|
-
|
4027
|
-
|
4028
|
-
|
4029
|
-
|
4030
|
-
|
4031
|
-
|
4032
|
-
|
4033
|
+
":address": {
|
4034
|
+
rewards: {
|
4035
|
+
get: {
|
4036
|
+
body: unknown;
|
4037
|
+
params: {
|
4038
|
+
address: string;
|
4039
|
+
};
|
4040
|
+
query: {
|
4041
|
+
test?: boolean | undefined;
|
4042
|
+
reloadChainId?: number | undefined;
|
4043
|
+
claimableOnly?: boolean | undefined;
|
4044
|
+
chainId: number[];
|
4045
|
+
};
|
4046
|
+
headers: unknown;
|
4047
|
+
response: {
|
4048
|
+
200: (Omit<{
|
4049
|
+
chain: import("@db/api").Chain;
|
4050
|
+
rewards: Awaited<ReturnType<typeof import("./modules/v4/reward/reward.service").RewardService["format"]>>;
|
4051
|
+
}, "rewards"> & {
|
4052
|
+
rewards: (Omit<{
|
4053
|
+
token: {
|
4054
|
+
symbol: string;
|
4055
|
+
name: string | null;
|
4056
|
+
id: string;
|
4057
|
+
icon: string;
|
4058
|
+
address: string;
|
4059
|
+
chainId: number;
|
4060
|
+
decimals: number;
|
4061
|
+
displaySymbol: string;
|
4062
|
+
verified: boolean;
|
4063
|
+
isTest: boolean;
|
4064
|
+
isPoint: boolean;
|
4065
|
+
isPreTGE: boolean;
|
4066
|
+
isNative: boolean;
|
4067
|
+
price: number | null;
|
4068
|
+
};
|
4069
|
+
breakdowns: {
|
4070
|
+
campaignId: string;
|
4071
|
+
subCampaignId: string | undefined;
|
4072
|
+
opportunity: {
|
4073
|
+
Chain: {
|
4074
|
+
name: string;
|
4075
|
+
id: number;
|
4076
|
+
icon: string;
|
4077
|
+
};
|
4078
|
+
Tokens: {
|
4079
|
+
symbol: string;
|
4080
|
+
name: string | null;
|
4081
|
+
id: string;
|
4082
|
+
icon: string;
|
4083
|
+
address: string;
|
4084
|
+
chainId: number;
|
4085
|
+
decimals: number;
|
4086
|
+
displaySymbol: string;
|
4087
|
+
verified: boolean;
|
4088
|
+
isTest: boolean;
|
4089
|
+
isPoint: boolean;
|
4090
|
+
isPreTGE: boolean;
|
4091
|
+
isNative: boolean;
|
4092
|
+
price: number | null;
|
4093
|
+
}[];
|
4094
|
+
Protocols: {
|
4095
|
+
url: string;
|
4096
|
+
name: string;
|
4097
|
+
description: string;
|
4098
|
+
id: string;
|
4099
|
+
tags: string[];
|
4100
|
+
icon: string;
|
4101
|
+
}[];
|
4102
|
+
MainProtocol: {
|
4103
|
+
url: string;
|
4104
|
+
name: string;
|
4105
|
+
description: string;
|
4106
|
+
id: string;
|
4107
|
+
tags: string[];
|
4108
|
+
icon: string;
|
4109
|
+
} | null;
|
4110
|
+
} & {
|
4111
|
+
status: import("@db/api").$Enums.Status;
|
4112
|
+
type: string;
|
4113
|
+
name: string;
|
4114
|
+
description: string;
|
4115
|
+
id: string;
|
4116
|
+
tags: string[];
|
4117
|
+
identifier: string;
|
4118
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
4119
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
4120
|
+
chainId: number;
|
4121
|
+
howToSteps: string[];
|
4122
|
+
depositUrl: string | null;
|
4123
|
+
explorerAddress: string | null;
|
4124
|
+
mainProtocolId: string | null;
|
4125
|
+
tvl: number;
|
4126
|
+
apr: number;
|
4127
|
+
dailyRewards: number;
|
4128
|
+
lastCampaignCreatedAt: Date;
|
4129
|
+
};
|
4130
|
+
reason: string;
|
4131
|
+
pending: string;
|
4132
|
+
amount: string;
|
4133
|
+
claimed: string;
|
4134
|
+
}[];
|
4135
|
+
claimed: bigint;
|
4136
|
+
amount: bigint;
|
4137
|
+
pending: bigint;
|
4138
|
+
root: string;
|
4139
|
+
recipient: string;
|
4140
|
+
proofs: string[];
|
4141
|
+
}, "breakdowns"> & {
|
4142
|
+
breakdowns: {
|
4143
|
+
campaignId: string;
|
4144
|
+
subCampaignId: string | undefined;
|
4145
|
+
reason: string;
|
4146
|
+
pending: string;
|
4147
|
+
amount: string;
|
4148
|
+
claimed: string;
|
4149
|
+
}[];
|
4150
|
+
})[];
|
4151
|
+
})[];
|
4152
|
+
};
|
4033
4153
|
};
|
4034
|
-
|
4035
|
-
|
4036
|
-
|
4037
|
-
|
4154
|
+
};
|
4155
|
+
};
|
4156
|
+
};
|
4157
|
+
} & {
|
4158
|
+
users: {
|
4159
|
+
":address": {
|
4160
|
+
terms: {
|
4161
|
+
get: {
|
4162
|
+
body: unknown;
|
4163
|
+
params: {
|
4038
4164
|
address: string;
|
4039
|
-
|
4040
|
-
|
4165
|
+
};
|
4166
|
+
query: {
|
4167
|
+
chainId: number;
|
4168
|
+
};
|
4169
|
+
headers: unknown;
|
4170
|
+
response: {
|
4171
|
+
200: boolean;
|
4172
|
+
};
|
4041
4173
|
};
|
4042
4174
|
};
|
4043
4175
|
};
|
4044
4176
|
};
|
4045
4177
|
} & {
|
4046
4178
|
users: {
|
4047
|
-
|
4179
|
+
index: {
|
4048
4180
|
get: {
|
4049
4181
|
body: unknown;
|
4050
4182
|
params: {};
|
4051
|
-
query:
|
4052
|
-
|
4053
|
-
|
4183
|
+
query: {
|
4184
|
+
items?: number | undefined;
|
4185
|
+
tags?: string[] | undefined;
|
4186
|
+
page?: number | undefined;
|
4187
|
+
address?: string | undefined;
|
4054
4188
|
};
|
4189
|
+
headers: unknown;
|
4055
4190
|
response: {
|
4056
4191
|
200: {
|
4057
4192
|
tags: string[];
|
@@ -4077,30 +4212,6 @@ declare const app: Elysia<"", false, {
|
|
4077
4212
|
tags: string[];
|
4078
4213
|
address: string;
|
4079
4214
|
creatorId: string | null;
|
4080
|
-
} | null;
|
4081
|
-
};
|
4082
|
-
};
|
4083
|
-
};
|
4084
|
-
};
|
4085
|
-
} & {
|
4086
|
-
users: {
|
4087
|
-
":address": {
|
4088
|
-
creator: {
|
4089
|
-
get: {
|
4090
|
-
body: unknown;
|
4091
|
-
params: {
|
4092
|
-
address: string;
|
4093
|
-
};
|
4094
|
-
query: unknown;
|
4095
|
-
headers: unknown;
|
4096
|
-
response: {
|
4097
|
-
200: {
|
4098
|
-
name: string;
|
4099
|
-
id: string;
|
4100
|
-
addresses: string[];
|
4101
|
-
icon?: string | undefined;
|
4102
|
-
rebateFee?: number | undefined;
|
4103
|
-
} | null;
|
4104
4215
|
};
|
4105
4216
|
};
|
4106
4217
|
};
|
@@ -4233,150 +4344,70 @@ declare const app: Elysia<"", false, {
|
|
4233
4344
|
};
|
4234
4345
|
};
|
4235
4346
|
};
|
4347
|
+
} & {
|
4348
|
+
users: {
|
4349
|
+
index: {
|
4350
|
+
post: {
|
4351
|
+
body: {
|
4352
|
+
tags: string[];
|
4353
|
+
address: string;
|
4354
|
+
};
|
4355
|
+
params: {};
|
4356
|
+
query: unknown;
|
4357
|
+
headers: {
|
4358
|
+
authorization: string;
|
4359
|
+
};
|
4360
|
+
response: {
|
4361
|
+
200: {
|
4362
|
+
tags: string[];
|
4363
|
+
address: string;
|
4364
|
+
creatorId: string | null;
|
4365
|
+
};
|
4366
|
+
};
|
4367
|
+
};
|
4368
|
+
};
|
4369
|
+
};
|
4370
|
+
} & {
|
4371
|
+
users: {
|
4372
|
+
tags: {
|
4373
|
+
get: {
|
4374
|
+
body: unknown;
|
4375
|
+
params: {};
|
4376
|
+
query: unknown;
|
4377
|
+
headers: {
|
4378
|
+
authorization: string;
|
4379
|
+
};
|
4380
|
+
response: {
|
4381
|
+
200: {
|
4382
|
+
tags: string[];
|
4383
|
+
address: string;
|
4384
|
+
creatorId: string | null;
|
4385
|
+
}[];
|
4386
|
+
};
|
4387
|
+
};
|
4388
|
+
};
|
4389
|
+
};
|
4236
4390
|
} & {
|
4237
4391
|
users: {
|
4238
4392
|
":address": {
|
4239
|
-
|
4240
|
-
|
4241
|
-
body:
|
4393
|
+
tags: {
|
4394
|
+
patch: {
|
4395
|
+
body: {
|
4396
|
+
tags: string[];
|
4397
|
+
};
|
4242
4398
|
params: {
|
4243
4399
|
address: string;
|
4244
4400
|
};
|
4245
|
-
query:
|
4246
|
-
|
4247
|
-
|
4248
|
-
claimableOnly?: boolean | undefined;
|
4249
|
-
chainId: number[];
|
4401
|
+
query: unknown;
|
4402
|
+
headers: {
|
4403
|
+
authorization: string;
|
4250
4404
|
};
|
4251
|
-
headers: unknown;
|
4252
4405
|
response: {
|
4253
|
-
200:
|
4254
|
-
|
4255
|
-
|
4256
|
-
|
4257
|
-
|
4258
|
-
token: {
|
4259
|
-
symbol: string;
|
4260
|
-
name: string | null;
|
4261
|
-
id: string;
|
4262
|
-
icon: string;
|
4263
|
-
address: string;
|
4264
|
-
chainId: number;
|
4265
|
-
decimals: number;
|
4266
|
-
displaySymbol: string;
|
4267
|
-
verified: boolean;
|
4268
|
-
isTest: boolean;
|
4269
|
-
isPoint: boolean;
|
4270
|
-
isPreTGE: boolean;
|
4271
|
-
isNative: boolean;
|
4272
|
-
price: number | null;
|
4273
|
-
};
|
4274
|
-
breakdowns: {
|
4275
|
-
campaignId: string;
|
4276
|
-
subCampaignId: string | undefined;
|
4277
|
-
opportunity: {
|
4278
|
-
Chain: {
|
4279
|
-
name: string;
|
4280
|
-
id: number;
|
4281
|
-
icon: string;
|
4282
|
-
};
|
4283
|
-
Tokens: {
|
4284
|
-
symbol: string;
|
4285
|
-
name: string | null;
|
4286
|
-
id: string;
|
4287
|
-
icon: string;
|
4288
|
-
address: string;
|
4289
|
-
chainId: number;
|
4290
|
-
decimals: number;
|
4291
|
-
displaySymbol: string;
|
4292
|
-
verified: boolean;
|
4293
|
-
isTest: boolean;
|
4294
|
-
isPoint: boolean;
|
4295
|
-
isPreTGE: boolean;
|
4296
|
-
isNative: boolean;
|
4297
|
-
price: number | null;
|
4298
|
-
}[];
|
4299
|
-
Protocols: {
|
4300
|
-
url: string;
|
4301
|
-
name: string;
|
4302
|
-
description: string;
|
4303
|
-
id: string;
|
4304
|
-
tags: string[];
|
4305
|
-
icon: string;
|
4306
|
-
}[];
|
4307
|
-
MainProtocol: {
|
4308
|
-
url: string;
|
4309
|
-
name: string;
|
4310
|
-
description: string;
|
4311
|
-
id: string;
|
4312
|
-
tags: string[];
|
4313
|
-
icon: string;
|
4314
|
-
} | null;
|
4315
|
-
} & {
|
4316
|
-
status: import("@db/api").$Enums.Status;
|
4317
|
-
type: string;
|
4318
|
-
name: string;
|
4319
|
-
description: string;
|
4320
|
-
id: string;
|
4321
|
-
tags: string[];
|
4322
|
-
identifier: string;
|
4323
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
4324
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
4325
|
-
chainId: number;
|
4326
|
-
howToSteps: string[];
|
4327
|
-
depositUrl: string | null;
|
4328
|
-
explorerAddress: string | null;
|
4329
|
-
mainProtocolId: string | null;
|
4330
|
-
tvl: number;
|
4331
|
-
apr: number;
|
4332
|
-
dailyRewards: number;
|
4333
|
-
lastCampaignCreatedAt: Date;
|
4334
|
-
};
|
4335
|
-
reason: string;
|
4336
|
-
pending: string;
|
4337
|
-
amount: string;
|
4338
|
-
claimed: string;
|
4339
|
-
}[];
|
4340
|
-
claimed: bigint;
|
4341
|
-
amount: bigint;
|
4342
|
-
pending: bigint;
|
4343
|
-
root: string;
|
4344
|
-
recipient: string;
|
4345
|
-
proofs: string[];
|
4346
|
-
}, "breakdowns"> & {
|
4347
|
-
breakdowns: {
|
4348
|
-
campaignId: string;
|
4349
|
-
subCampaignId: string | undefined;
|
4350
|
-
reason: string;
|
4351
|
-
pending: string;
|
4352
|
-
amount: string;
|
4353
|
-
claimed: string;
|
4354
|
-
}[];
|
4355
|
-
})[];
|
4356
|
-
})[];
|
4357
|
-
};
|
4358
|
-
};
|
4359
|
-
};
|
4360
|
-
};
|
4361
|
-
};
|
4362
|
-
} & {
|
4363
|
-
users: {
|
4364
|
-
index: {
|
4365
|
-
post: {
|
4366
|
-
body: {
|
4367
|
-
tags: string[];
|
4368
|
-
address: string;
|
4369
|
-
};
|
4370
|
-
params: {};
|
4371
|
-
query: unknown;
|
4372
|
-
headers: {
|
4373
|
-
authorization: string;
|
4374
|
-
};
|
4375
|
-
response: {
|
4376
|
-
200: {
|
4377
|
-
tags: string[];
|
4378
|
-
address: string;
|
4379
|
-
creatorId: string | null;
|
4406
|
+
200: {
|
4407
|
+
tags: string[];
|
4408
|
+
address: string;
|
4409
|
+
creatorId: string | null;
|
4410
|
+
};
|
4380
4411
|
};
|
4381
4412
|
};
|
4382
4413
|
};
|
@@ -4398,52 +4429,6 @@ declare const app: Elysia<"", false, {
|
|
4398
4429
|
};
|
4399
4430
|
};
|
4400
4431
|
};
|
4401
|
-
} & {
|
4402
|
-
users: {
|
4403
|
-
":address": {
|
4404
|
-
terms: {
|
4405
|
-
get: {
|
4406
|
-
body: unknown;
|
4407
|
-
params: {
|
4408
|
-
address: string;
|
4409
|
-
};
|
4410
|
-
query: {
|
4411
|
-
chainId: number;
|
4412
|
-
};
|
4413
|
-
headers: unknown;
|
4414
|
-
response: {
|
4415
|
-
200: boolean;
|
4416
|
-
};
|
4417
|
-
};
|
4418
|
-
};
|
4419
|
-
};
|
4420
|
-
};
|
4421
|
-
} & {
|
4422
|
-
users: {
|
4423
|
-
":address": {
|
4424
|
-
tags: {
|
4425
|
-
patch: {
|
4426
|
-
body: {
|
4427
|
-
tags: string[];
|
4428
|
-
};
|
4429
|
-
params: {
|
4430
|
-
address: string;
|
4431
|
-
};
|
4432
|
-
query: unknown;
|
4433
|
-
headers: {
|
4434
|
-
authorization: string;
|
4435
|
-
};
|
4436
|
-
response: {
|
4437
|
-
200: {
|
4438
|
-
tags: string[];
|
4439
|
-
address: string;
|
4440
|
-
creatorId: string | null;
|
4441
|
-
};
|
4442
|
-
};
|
4443
|
-
};
|
4444
|
-
};
|
4445
|
-
};
|
4446
|
-
};
|
4447
4432
|
};
|
4448
4433
|
} & {
|
4449
4434
|
v4: {
|
@@ -5489,12 +5474,39 @@ declare const app: Elysia<"", false, {
|
|
5489
5474
|
};
|
5490
5475
|
} & {
|
5491
5476
|
v4: {
|
5477
|
+
creators: {
|
5478
|
+
index: {
|
5479
|
+
post: {
|
5480
|
+
body: {
|
5481
|
+
icon?: string | undefined;
|
5482
|
+
name: string;
|
5483
|
+
id: string;
|
5484
|
+
addresses: string[];
|
5485
|
+
};
|
5486
|
+
params: {};
|
5487
|
+
query: unknown;
|
5488
|
+
headers: {
|
5489
|
+
authorization: string;
|
5490
|
+
};
|
5491
|
+
response: {
|
5492
|
+
200: {
|
5493
|
+
name: string;
|
5494
|
+
id: string;
|
5495
|
+
icon: string | null;
|
5496
|
+
rebateFee: number;
|
5497
|
+
};
|
5498
|
+
};
|
5499
|
+
};
|
5500
|
+
};
|
5501
|
+
};
|
5502
|
+
} & {
|
5492
5503
|
creators: {
|
5493
5504
|
index: {
|
5494
5505
|
get: {
|
5495
5506
|
body: unknown;
|
5496
5507
|
params: {};
|
5497
5508
|
query: {
|
5509
|
+
id?: string | undefined;
|
5498
5510
|
items?: number | undefined;
|
5499
5511
|
page?: number | undefined;
|
5500
5512
|
address?: string | undefined;
|
@@ -5502,12 +5514,14 @@ declare const app: Elysia<"", false, {
|
|
5502
5514
|
headers: unknown;
|
5503
5515
|
response: {
|
5504
5516
|
200: ({
|
5517
|
+
Users: {
|
5518
|
+
address: string;
|
5519
|
+
}[];
|
5520
|
+
} & {
|
5505
5521
|
name: string;
|
5506
5522
|
id: string;
|
5507
|
-
|
5508
|
-
|
5509
|
-
icon?: string | undefined;
|
5510
|
-
rebateFee?: number | undefined;
|
5523
|
+
icon: string | null;
|
5524
|
+
rebateFee: number;
|
5511
5525
|
})[];
|
5512
5526
|
};
|
5513
5527
|
};
|
@@ -5515,21 +5529,25 @@ declare const app: Elysia<"", false, {
|
|
5515
5529
|
};
|
5516
5530
|
} & {
|
5517
5531
|
creators: {
|
5518
|
-
":
|
5532
|
+
":address": {
|
5519
5533
|
get: {
|
5520
5534
|
body: unknown;
|
5521
5535
|
params: {
|
5522
|
-
|
5536
|
+
address: string;
|
5523
5537
|
};
|
5524
5538
|
query: unknown;
|
5525
5539
|
headers: unknown;
|
5526
5540
|
response: {
|
5527
5541
|
200: {
|
5542
|
+
Users: {
|
5543
|
+
tags: string[];
|
5544
|
+
address: string;
|
5545
|
+
creatorId: string | null;
|
5546
|
+
}[];
|
5528
5547
|
name: string;
|
5529
5548
|
id: string;
|
5530
|
-
|
5531
|
-
|
5532
|
-
rebateFee?: number | undefined;
|
5549
|
+
icon: string | null;
|
5550
|
+
rebateFee: number;
|
5533
5551
|
};
|
5534
5552
|
};
|
5535
5553
|
};
|
@@ -5537,16 +5555,16 @@ declare const app: Elysia<"", false, {
|
|
5537
5555
|
};
|
5538
5556
|
} & {
|
5539
5557
|
creators: {
|
5540
|
-
|
5541
|
-
|
5558
|
+
":address": {
|
5559
|
+
patch: {
|
5542
5560
|
body: {
|
5543
5561
|
icon?: string | undefined;
|
5544
|
-
rebateFee?: number | undefined;
|
5545
5562
|
name: string;
|
5546
|
-
id: string;
|
5547
5563
|
addresses: string[];
|
5548
5564
|
};
|
5549
|
-
params: {
|
5565
|
+
params: {
|
5566
|
+
address: string;
|
5567
|
+
};
|
5550
5568
|
query: unknown;
|
5551
5569
|
headers: {
|
5552
5570
|
authorization: string;
|
@@ -5564,15 +5582,11 @@ declare const app: Elysia<"", false, {
|
|
5564
5582
|
};
|
5565
5583
|
} & {
|
5566
5584
|
creators: {
|
5567
|
-
":
|
5568
|
-
|
5569
|
-
body:
|
5570
|
-
icon?: string | undefined;
|
5571
|
-
name: string;
|
5572
|
-
addresses: string[];
|
5573
|
-
};
|
5585
|
+
":address": {
|
5586
|
+
delete: {
|
5587
|
+
body: unknown;
|
5574
5588
|
params: {
|
5575
|
-
|
5589
|
+
address: string;
|
5576
5590
|
};
|
5577
5591
|
query: unknown;
|
5578
5592
|
headers: {
|
@@ -5591,25 +5605,198 @@ declare const app: Elysia<"", false, {
|
|
5591
5605
|
};
|
5592
5606
|
} & {
|
5593
5607
|
creators: {
|
5594
|
-
":
|
5595
|
-
|
5596
|
-
|
5597
|
-
body:
|
5598
|
-
|
5608
|
+
":address": {
|
5609
|
+
dashboard: {
|
5610
|
+
get: {
|
5611
|
+
body: unknown;
|
5612
|
+
params: {
|
5613
|
+
address: string;
|
5614
|
+
};
|
5615
|
+
query: unknown;
|
5616
|
+
headers: unknown;
|
5617
|
+
response: {
|
5618
|
+
200: {
|
5619
|
+
pastCampaigns: number;
|
5620
|
+
liveCampaigns: number;
|
5621
|
+
futureCampaigns: number;
|
5622
|
+
incentivizedTvl: number;
|
5623
|
+
totalCampaigns: number;
|
5624
|
+
creatorId: string | null;
|
5625
|
+
};
|
5626
|
+
};
|
5627
|
+
};
|
5628
|
+
};
|
5629
|
+
};
|
5630
|
+
};
|
5631
|
+
} & {
|
5632
|
+
creators: {
|
5633
|
+
":address": {
|
5634
|
+
campaigns: {
|
5635
|
+
get: {
|
5636
|
+
body: unknown;
|
5637
|
+
params: {
|
5638
|
+
address: string;
|
5639
|
+
};
|
5640
|
+
query: {
|
5641
|
+
status?: "PAST" | "LIVE" | "FUTURE" | undefined;
|
5642
|
+
};
|
5643
|
+
headers: unknown;
|
5644
|
+
response: {
|
5645
|
+
200: ({
|
5646
|
+
Opportunity: {
|
5647
|
+
status: import("@db/api").$Enums.Status;
|
5648
|
+
type: string;
|
5649
|
+
name: string;
|
5650
|
+
description: string;
|
5651
|
+
id: string;
|
5652
|
+
tags: string[];
|
5653
|
+
identifier: string;
|
5654
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
5655
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
5656
|
+
chainId: number;
|
5657
|
+
howToSteps: string[];
|
5658
|
+
depositUrl: string | null;
|
5659
|
+
explorerAddress: string | null;
|
5660
|
+
mainProtocolId: string | null;
|
5661
|
+
tvl: number;
|
5662
|
+
apr: number;
|
5663
|
+
dailyRewards: number;
|
5664
|
+
lastCampaignCreatedAt: Date;
|
5665
|
+
};
|
5666
|
+
} & {
|
5667
|
+
type: string;
|
5668
|
+
description: string | null;
|
5669
|
+
id: string;
|
5670
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
5671
|
+
subType: number | null;
|
5672
|
+
computeChainId: number;
|
5673
|
+
distributionChainId: number;
|
5674
|
+
campaignId: string;
|
5675
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
5676
|
+
rewardTokenId: string;
|
5677
|
+
amount: string;
|
5678
|
+
opportunityId: string;
|
5679
|
+
startTimestamp: bigint;
|
5680
|
+
endTimestamp: bigint;
|
5681
|
+
creatorAddress: string;
|
5682
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
5683
|
+
createdAt: Date;
|
5684
|
+
rootCampaignId: string | null;
|
5685
|
+
parentCampaignId: string | null;
|
5686
|
+
})[] | {
|
5687
|
+
params: any;
|
5688
|
+
chain: {
|
5689
|
+
name: string;
|
5690
|
+
id: number;
|
5691
|
+
icon: string;
|
5692
|
+
};
|
5693
|
+
endTimestamp: number;
|
5694
|
+
startTimestamp: number;
|
5695
|
+
rewardToken: {
|
5696
|
+
symbol: string;
|
5697
|
+
name: string | null;
|
5698
|
+
id: string;
|
5699
|
+
icon: string;
|
5700
|
+
address: string;
|
5701
|
+
chainId: number;
|
5702
|
+
decimals: number;
|
5703
|
+
verified: boolean;
|
5704
|
+
isTest: boolean;
|
5705
|
+
isPoint: boolean;
|
5706
|
+
isPreTGE: boolean;
|
5707
|
+
isNative: boolean;
|
5708
|
+
} & {
|
5709
|
+
price?: number | null | undefined;
|
5710
|
+
};
|
5711
|
+
distributionChain: {
|
5712
|
+
name: string;
|
5713
|
+
id: number;
|
5714
|
+
icon: string;
|
5715
|
+
} | undefined;
|
5716
|
+
campaignStatus: {
|
5717
|
+
computedUntil: number;
|
5718
|
+
processingStarted: number;
|
5719
|
+
status: import("@db/api").$Enums.RunStatus;
|
5720
|
+
error: string;
|
5721
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
5722
|
+
campaignId: string;
|
5723
|
+
} | undefined;
|
5724
|
+
creatorAddress: string;
|
5725
|
+
creator: {
|
5726
|
+
tags: string[];
|
5727
|
+
address: string;
|
5728
|
+
creatorId: string | null;
|
5729
|
+
};
|
5730
|
+
createdAt: string;
|
5731
|
+
description: string | undefined;
|
5732
|
+
parentCampaignId: string | undefined;
|
5733
|
+
rootCampaignId: string | undefined;
|
5734
|
+
Opportunity: {
|
5735
|
+
status: import("@db/api").$Enums.Status;
|
5736
|
+
type: string;
|
5737
|
+
name: string;
|
5738
|
+
description: string;
|
5739
|
+
id: string;
|
5740
|
+
tags: string[];
|
5741
|
+
identifier: string;
|
5742
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
5743
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
5744
|
+
chainId: number;
|
5745
|
+
howToSteps: string[];
|
5746
|
+
depositUrl: string | null;
|
5747
|
+
explorerAddress: string | null;
|
5748
|
+
mainProtocolId: string | null;
|
5749
|
+
tvl: number;
|
5750
|
+
apr: number;
|
5751
|
+
dailyRewards: number;
|
5752
|
+
lastCampaignCreatedAt: Date;
|
5753
|
+
};
|
5754
|
+
type: string;
|
5755
|
+
id: string;
|
5756
|
+
subType: number | null;
|
5757
|
+
computeChainId: number;
|
5758
|
+
distributionChainId: number;
|
5759
|
+
campaignId: string;
|
5760
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
5761
|
+
rewardTokenId: string;
|
5762
|
+
amount: string;
|
5763
|
+
opportunityId: string;
|
5764
|
+
}[];
|
5599
5765
|
};
|
5766
|
+
};
|
5767
|
+
};
|
5768
|
+
};
|
5769
|
+
};
|
5770
|
+
} & {
|
5771
|
+
creators: {
|
5772
|
+
campaigns: {
|
5773
|
+
":id": {
|
5774
|
+
get: {
|
5775
|
+
body: unknown;
|
5600
5776
|
params: {
|
5601
5777
|
id: string;
|
5602
5778
|
};
|
5603
5779
|
query: unknown;
|
5604
|
-
headers:
|
5605
|
-
authorization: string;
|
5606
|
-
};
|
5780
|
+
headers: unknown;
|
5607
5781
|
response: {
|
5608
5782
|
200: {
|
5609
|
-
|
5610
|
-
|
5611
|
-
|
5612
|
-
|
5783
|
+
tvlRecords: {
|
5784
|
+
total: number;
|
5785
|
+
timestamp: bigint;
|
5786
|
+
}[];
|
5787
|
+
aprRecords: {
|
5788
|
+
timestamp: bigint;
|
5789
|
+
apr: number;
|
5790
|
+
}[];
|
5791
|
+
dailyRewardsRecords: {
|
5792
|
+
total: number;
|
5793
|
+
timestamp: bigint;
|
5794
|
+
}[];
|
5795
|
+
walletCount: {
|
5796
|
+
timestamp: bigint;
|
5797
|
+
walletCount: number;
|
5798
|
+
}[];
|
5799
|
+
tvlInflowPerDollar: bigint;
|
5613
5800
|
};
|
5614
5801
|
};
|
5615
5802
|
};
|