@merkl/api 0.21.3 → 0.21.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/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/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.repository.d.ts +7 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +90 -0
- 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 +1 -1
@@ -1736,7 +1736,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1736
1736
|
};
|
1737
1737
|
} & {
|
1738
1738
|
":id": {
|
1739
|
-
|
1739
|
+
metrics: {
|
1740
1740
|
get: {
|
1741
1741
|
body: unknown;
|
1742
1742
|
params: {
|
@@ -1752,8 +1752,17 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1752
1752
|
}[];
|
1753
1753
|
aprRecords: {
|
1754
1754
|
timestamp: bigint;
|
1755
|
-
|
1755
|
+
apr: number;
|
1756
|
+
}[];
|
1757
|
+
dailyRewardsRecords: {
|
1758
|
+
total: number;
|
1759
|
+
timestamp: bigint;
|
1760
|
+
}[];
|
1761
|
+
walletCount: {
|
1762
|
+
timestamp: bigint;
|
1763
|
+
walletCount: number;
|
1756
1764
|
}[];
|
1765
|
+
tvlInflowPerDollar: bigint;
|
1757
1766
|
};
|
1758
1767
|
};
|
1759
1768
|
};
|
@@ -3891,37 +3900,163 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3891
3900
|
} & {
|
3892
3901
|
v4: {
|
3893
3902
|
users: {
|
3894
|
-
|
3895
|
-
|
3896
|
-
|
3897
|
-
|
3898
|
-
|
3899
|
-
|
3900
|
-
|
3901
|
-
|
3902
|
-
|
3903
|
+
":address": {
|
3904
|
+
rewards: {
|
3905
|
+
get: {
|
3906
|
+
body: unknown;
|
3907
|
+
params: {
|
3908
|
+
address: string;
|
3909
|
+
};
|
3910
|
+
query: {
|
3911
|
+
test?: boolean | undefined;
|
3912
|
+
reloadChainId?: number | undefined;
|
3913
|
+
claimableOnly?: boolean | undefined;
|
3914
|
+
chainId: number[];
|
3915
|
+
};
|
3916
|
+
headers: unknown;
|
3917
|
+
response: {
|
3918
|
+
200: (Omit<{
|
3919
|
+
chain: import("@db/api").Chain;
|
3920
|
+
rewards: Awaited<ReturnType<typeof import("./reward/reward.service").RewardService["format"]>>;
|
3921
|
+
}, "rewards"> & {
|
3922
|
+
rewards: (Omit<{
|
3923
|
+
token: {
|
3924
|
+
symbol: string;
|
3925
|
+
name: string | null;
|
3926
|
+
id: string;
|
3927
|
+
icon: string;
|
3928
|
+
address: string;
|
3929
|
+
chainId: number;
|
3930
|
+
decimals: number;
|
3931
|
+
displaySymbol: string;
|
3932
|
+
verified: boolean;
|
3933
|
+
isTest: boolean;
|
3934
|
+
isPoint: boolean;
|
3935
|
+
isPreTGE: boolean;
|
3936
|
+
isNative: boolean;
|
3937
|
+
price: number | null;
|
3938
|
+
};
|
3939
|
+
breakdowns: {
|
3940
|
+
campaignId: string;
|
3941
|
+
subCampaignId: string | undefined;
|
3942
|
+
opportunity: {
|
3943
|
+
Chain: {
|
3944
|
+
name: string;
|
3945
|
+
id: number;
|
3946
|
+
icon: string;
|
3947
|
+
};
|
3948
|
+
Tokens: {
|
3949
|
+
symbol: string;
|
3950
|
+
name: string | null;
|
3951
|
+
id: string;
|
3952
|
+
icon: string;
|
3953
|
+
address: string;
|
3954
|
+
chainId: number;
|
3955
|
+
decimals: number;
|
3956
|
+
displaySymbol: string;
|
3957
|
+
verified: boolean;
|
3958
|
+
isTest: boolean;
|
3959
|
+
isPoint: boolean;
|
3960
|
+
isPreTGE: boolean;
|
3961
|
+
isNative: boolean;
|
3962
|
+
price: number | null;
|
3963
|
+
}[];
|
3964
|
+
Protocols: {
|
3965
|
+
url: string;
|
3966
|
+
name: string;
|
3967
|
+
description: string;
|
3968
|
+
id: string;
|
3969
|
+
tags: string[];
|
3970
|
+
icon: string;
|
3971
|
+
}[];
|
3972
|
+
MainProtocol: {
|
3973
|
+
url: string;
|
3974
|
+
name: string;
|
3975
|
+
description: string;
|
3976
|
+
id: string;
|
3977
|
+
tags: string[];
|
3978
|
+
icon: string;
|
3979
|
+
} | null;
|
3980
|
+
} & {
|
3981
|
+
status: import("@db/api").$Enums.Status;
|
3982
|
+
type: string;
|
3983
|
+
name: string;
|
3984
|
+
description: string;
|
3985
|
+
id: string;
|
3986
|
+
tags: string[];
|
3987
|
+
identifier: string;
|
3988
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
3989
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
3990
|
+
chainId: number;
|
3991
|
+
howToSteps: string[];
|
3992
|
+
depositUrl: string | null;
|
3993
|
+
explorerAddress: string | null;
|
3994
|
+
mainProtocolId: string | null;
|
3995
|
+
tvl: number;
|
3996
|
+
apr: number;
|
3997
|
+
dailyRewards: number;
|
3998
|
+
lastCampaignCreatedAt: Date;
|
3999
|
+
};
|
4000
|
+
reason: string;
|
4001
|
+
pending: string;
|
4002
|
+
amount: string;
|
4003
|
+
claimed: string;
|
4004
|
+
}[];
|
4005
|
+
claimed: bigint;
|
4006
|
+
amount: bigint;
|
4007
|
+
pending: bigint;
|
4008
|
+
root: string;
|
4009
|
+
recipient: string;
|
4010
|
+
proofs: string[];
|
4011
|
+
}, "breakdowns"> & {
|
4012
|
+
breakdowns: {
|
4013
|
+
campaignId: string;
|
4014
|
+
subCampaignId: string | undefined;
|
4015
|
+
reason: string;
|
4016
|
+
pending: string;
|
4017
|
+
amount: string;
|
4018
|
+
claimed: string;
|
4019
|
+
}[];
|
4020
|
+
})[];
|
4021
|
+
})[];
|
4022
|
+
};
|
3903
4023
|
};
|
3904
|
-
|
3905
|
-
|
3906
|
-
|
3907
|
-
|
4024
|
+
};
|
4025
|
+
};
|
4026
|
+
};
|
4027
|
+
} & {
|
4028
|
+
users: {
|
4029
|
+
":address": {
|
4030
|
+
terms: {
|
4031
|
+
get: {
|
4032
|
+
body: unknown;
|
4033
|
+
params: {
|
3908
4034
|
address: string;
|
3909
|
-
|
3910
|
-
|
4035
|
+
};
|
4036
|
+
query: {
|
4037
|
+
chainId: number;
|
4038
|
+
};
|
4039
|
+
headers: unknown;
|
4040
|
+
response: {
|
4041
|
+
200: boolean;
|
4042
|
+
};
|
3911
4043
|
};
|
3912
4044
|
};
|
3913
4045
|
};
|
3914
4046
|
};
|
3915
4047
|
} & {
|
3916
4048
|
users: {
|
3917
|
-
|
4049
|
+
index: {
|
3918
4050
|
get: {
|
3919
4051
|
body: unknown;
|
3920
4052
|
params: {};
|
3921
|
-
query:
|
3922
|
-
|
3923
|
-
|
4053
|
+
query: {
|
4054
|
+
items?: number | undefined;
|
4055
|
+
tags?: string[] | undefined;
|
4056
|
+
page?: number | undefined;
|
4057
|
+
address?: string | undefined;
|
3924
4058
|
};
|
4059
|
+
headers: unknown;
|
3925
4060
|
response: {
|
3926
4061
|
200: {
|
3927
4062
|
tags: string[];
|
@@ -3947,30 +4082,6 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3947
4082
|
tags: string[];
|
3948
4083
|
address: string;
|
3949
4084
|
creatorId: string | null;
|
3950
|
-
} | null;
|
3951
|
-
};
|
3952
|
-
};
|
3953
|
-
};
|
3954
|
-
};
|
3955
|
-
} & {
|
3956
|
-
users: {
|
3957
|
-
":address": {
|
3958
|
-
creator: {
|
3959
|
-
get: {
|
3960
|
-
body: unknown;
|
3961
|
-
params: {
|
3962
|
-
address: string;
|
3963
|
-
};
|
3964
|
-
query: unknown;
|
3965
|
-
headers: unknown;
|
3966
|
-
response: {
|
3967
|
-
200: {
|
3968
|
-
name: string;
|
3969
|
-
id: string;
|
3970
|
-
addresses: string[];
|
3971
|
-
icon?: string | undefined;
|
3972
|
-
rebateFee?: number | undefined;
|
3973
|
-
} | null;
|
3974
4085
|
};
|
3975
4086
|
};
|
3976
4087
|
};
|
@@ -4103,150 +4214,70 @@ export declare const v4: Elysia<"/v4", false, {
|
|
4103
4214
|
};
|
4104
4215
|
};
|
4105
4216
|
};
|
4217
|
+
} & {
|
4218
|
+
users: {
|
4219
|
+
index: {
|
4220
|
+
post: {
|
4221
|
+
body: {
|
4222
|
+
tags: string[];
|
4223
|
+
address: string;
|
4224
|
+
};
|
4225
|
+
params: {};
|
4226
|
+
query: unknown;
|
4227
|
+
headers: {
|
4228
|
+
authorization: string;
|
4229
|
+
};
|
4230
|
+
response: {
|
4231
|
+
200: {
|
4232
|
+
tags: string[];
|
4233
|
+
address: string;
|
4234
|
+
creatorId: string | null;
|
4235
|
+
};
|
4236
|
+
};
|
4237
|
+
};
|
4238
|
+
};
|
4239
|
+
};
|
4240
|
+
} & {
|
4241
|
+
users: {
|
4242
|
+
tags: {
|
4243
|
+
get: {
|
4244
|
+
body: unknown;
|
4245
|
+
params: {};
|
4246
|
+
query: unknown;
|
4247
|
+
headers: {
|
4248
|
+
authorization: string;
|
4249
|
+
};
|
4250
|
+
response: {
|
4251
|
+
200: {
|
4252
|
+
tags: string[];
|
4253
|
+
address: string;
|
4254
|
+
creatorId: string | null;
|
4255
|
+
}[];
|
4256
|
+
};
|
4257
|
+
};
|
4258
|
+
};
|
4259
|
+
};
|
4106
4260
|
} & {
|
4107
4261
|
users: {
|
4108
4262
|
":address": {
|
4109
|
-
|
4110
|
-
|
4111
|
-
body:
|
4263
|
+
tags: {
|
4264
|
+
patch: {
|
4265
|
+
body: {
|
4266
|
+
tags: string[];
|
4267
|
+
};
|
4112
4268
|
params: {
|
4113
4269
|
address: string;
|
4114
4270
|
};
|
4115
|
-
query:
|
4116
|
-
|
4117
|
-
|
4118
|
-
claimableOnly?: boolean | undefined;
|
4119
|
-
chainId: number[];
|
4271
|
+
query: unknown;
|
4272
|
+
headers: {
|
4273
|
+
authorization: string;
|
4120
4274
|
};
|
4121
|
-
headers: unknown;
|
4122
4275
|
response: {
|
4123
|
-
200:
|
4124
|
-
|
4125
|
-
|
4126
|
-
|
4127
|
-
|
4128
|
-
token: {
|
4129
|
-
symbol: string;
|
4130
|
-
name: string | null;
|
4131
|
-
id: string;
|
4132
|
-
icon: string;
|
4133
|
-
address: string;
|
4134
|
-
chainId: number;
|
4135
|
-
decimals: number;
|
4136
|
-
displaySymbol: string;
|
4137
|
-
verified: boolean;
|
4138
|
-
isTest: boolean;
|
4139
|
-
isPoint: boolean;
|
4140
|
-
isPreTGE: boolean;
|
4141
|
-
isNative: boolean;
|
4142
|
-
price: number | null;
|
4143
|
-
};
|
4144
|
-
breakdowns: {
|
4145
|
-
campaignId: string;
|
4146
|
-
subCampaignId: string | undefined;
|
4147
|
-
opportunity: {
|
4148
|
-
Chain: {
|
4149
|
-
name: string;
|
4150
|
-
id: number;
|
4151
|
-
icon: string;
|
4152
|
-
};
|
4153
|
-
Tokens: {
|
4154
|
-
symbol: string;
|
4155
|
-
name: string | null;
|
4156
|
-
id: string;
|
4157
|
-
icon: string;
|
4158
|
-
address: string;
|
4159
|
-
chainId: number;
|
4160
|
-
decimals: number;
|
4161
|
-
displaySymbol: string;
|
4162
|
-
verified: boolean;
|
4163
|
-
isTest: boolean;
|
4164
|
-
isPoint: boolean;
|
4165
|
-
isPreTGE: boolean;
|
4166
|
-
isNative: boolean;
|
4167
|
-
price: number | null;
|
4168
|
-
}[];
|
4169
|
-
Protocols: {
|
4170
|
-
url: string;
|
4171
|
-
name: string;
|
4172
|
-
description: string;
|
4173
|
-
id: string;
|
4174
|
-
tags: string[];
|
4175
|
-
icon: string;
|
4176
|
-
}[];
|
4177
|
-
MainProtocol: {
|
4178
|
-
url: string;
|
4179
|
-
name: string;
|
4180
|
-
description: string;
|
4181
|
-
id: string;
|
4182
|
-
tags: string[];
|
4183
|
-
icon: string;
|
4184
|
-
} | null;
|
4185
|
-
} & {
|
4186
|
-
status: import("@db/api").$Enums.Status;
|
4187
|
-
type: string;
|
4188
|
-
name: string;
|
4189
|
-
description: string;
|
4190
|
-
id: string;
|
4191
|
-
tags: string[];
|
4192
|
-
identifier: string;
|
4193
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
4194
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
4195
|
-
chainId: number;
|
4196
|
-
howToSteps: string[];
|
4197
|
-
depositUrl: string | null;
|
4198
|
-
explorerAddress: string | null;
|
4199
|
-
mainProtocolId: string | null;
|
4200
|
-
tvl: number;
|
4201
|
-
apr: number;
|
4202
|
-
dailyRewards: number;
|
4203
|
-
lastCampaignCreatedAt: Date;
|
4204
|
-
};
|
4205
|
-
reason: string;
|
4206
|
-
pending: string;
|
4207
|
-
amount: string;
|
4208
|
-
claimed: string;
|
4209
|
-
}[];
|
4210
|
-
claimed: bigint;
|
4211
|
-
amount: bigint;
|
4212
|
-
pending: bigint;
|
4213
|
-
root: string;
|
4214
|
-
recipient: string;
|
4215
|
-
proofs: string[];
|
4216
|
-
}, "breakdowns"> & {
|
4217
|
-
breakdowns: {
|
4218
|
-
campaignId: string;
|
4219
|
-
subCampaignId: string | undefined;
|
4220
|
-
reason: string;
|
4221
|
-
pending: string;
|
4222
|
-
amount: string;
|
4223
|
-
claimed: string;
|
4224
|
-
}[];
|
4225
|
-
})[];
|
4226
|
-
})[];
|
4227
|
-
};
|
4228
|
-
};
|
4229
|
-
};
|
4230
|
-
};
|
4231
|
-
};
|
4232
|
-
} & {
|
4233
|
-
users: {
|
4234
|
-
index: {
|
4235
|
-
post: {
|
4236
|
-
body: {
|
4237
|
-
tags: string[];
|
4238
|
-
address: string;
|
4239
|
-
};
|
4240
|
-
params: {};
|
4241
|
-
query: unknown;
|
4242
|
-
headers: {
|
4243
|
-
authorization: string;
|
4244
|
-
};
|
4245
|
-
response: {
|
4246
|
-
200: {
|
4247
|
-
tags: string[];
|
4248
|
-
address: string;
|
4249
|
-
creatorId: string | null;
|
4276
|
+
200: {
|
4277
|
+
tags: string[];
|
4278
|
+
address: string;
|
4279
|
+
creatorId: string | null;
|
4280
|
+
};
|
4250
4281
|
};
|
4251
4282
|
};
|
4252
4283
|
};
|
@@ -4268,52 +4299,6 @@ export declare const v4: Elysia<"/v4", false, {
|
|
4268
4299
|
};
|
4269
4300
|
};
|
4270
4301
|
};
|
4271
|
-
} & {
|
4272
|
-
users: {
|
4273
|
-
":address": {
|
4274
|
-
terms: {
|
4275
|
-
get: {
|
4276
|
-
body: unknown;
|
4277
|
-
params: {
|
4278
|
-
address: string;
|
4279
|
-
};
|
4280
|
-
query: {
|
4281
|
-
chainId: number;
|
4282
|
-
};
|
4283
|
-
headers: unknown;
|
4284
|
-
response: {
|
4285
|
-
200: boolean;
|
4286
|
-
};
|
4287
|
-
};
|
4288
|
-
};
|
4289
|
-
};
|
4290
|
-
};
|
4291
|
-
} & {
|
4292
|
-
users: {
|
4293
|
-
":address": {
|
4294
|
-
tags: {
|
4295
|
-
patch: {
|
4296
|
-
body: {
|
4297
|
-
tags: string[];
|
4298
|
-
};
|
4299
|
-
params: {
|
4300
|
-
address: string;
|
4301
|
-
};
|
4302
|
-
query: unknown;
|
4303
|
-
headers: {
|
4304
|
-
authorization: string;
|
4305
|
-
};
|
4306
|
-
response: {
|
4307
|
-
200: {
|
4308
|
-
tags: string[];
|
4309
|
-
address: string;
|
4310
|
-
creatorId: string | null;
|
4311
|
-
};
|
4312
|
-
};
|
4313
|
-
};
|
4314
|
-
};
|
4315
|
-
};
|
4316
|
-
};
|
4317
4302
|
};
|
4318
4303
|
} & {
|
4319
4304
|
v4: {
|
@@ -5359,12 +5344,39 @@ export declare const v4: Elysia<"/v4", false, {
|
|
5359
5344
|
};
|
5360
5345
|
} & {
|
5361
5346
|
v4: {
|
5347
|
+
creators: {
|
5348
|
+
index: {
|
5349
|
+
post: {
|
5350
|
+
body: {
|
5351
|
+
icon?: string | undefined;
|
5352
|
+
name: string;
|
5353
|
+
id: string;
|
5354
|
+
addresses: string[];
|
5355
|
+
};
|
5356
|
+
params: {};
|
5357
|
+
query: unknown;
|
5358
|
+
headers: {
|
5359
|
+
authorization: string;
|
5360
|
+
};
|
5361
|
+
response: {
|
5362
|
+
200: {
|
5363
|
+
name: string;
|
5364
|
+
id: string;
|
5365
|
+
icon: string | null;
|
5366
|
+
rebateFee: number;
|
5367
|
+
};
|
5368
|
+
};
|
5369
|
+
};
|
5370
|
+
};
|
5371
|
+
};
|
5372
|
+
} & {
|
5362
5373
|
creators: {
|
5363
5374
|
index: {
|
5364
5375
|
get: {
|
5365
5376
|
body: unknown;
|
5366
5377
|
params: {};
|
5367
5378
|
query: {
|
5379
|
+
id?: string | undefined;
|
5368
5380
|
items?: number | undefined;
|
5369
5381
|
page?: number | undefined;
|
5370
5382
|
address?: string | undefined;
|
@@ -5372,12 +5384,14 @@ export declare const v4: Elysia<"/v4", false, {
|
|
5372
5384
|
headers: unknown;
|
5373
5385
|
response: {
|
5374
5386
|
200: ({
|
5387
|
+
Users: {
|
5388
|
+
address: string;
|
5389
|
+
}[];
|
5390
|
+
} & {
|
5375
5391
|
name: string;
|
5376
5392
|
id: string;
|
5377
|
-
|
5378
|
-
|
5379
|
-
icon?: string | undefined;
|
5380
|
-
rebateFee?: number | undefined;
|
5393
|
+
icon: string | null;
|
5394
|
+
rebateFee: number;
|
5381
5395
|
})[];
|
5382
5396
|
};
|
5383
5397
|
};
|
@@ -5385,21 +5399,25 @@ export declare const v4: Elysia<"/v4", false, {
|
|
5385
5399
|
};
|
5386
5400
|
} & {
|
5387
5401
|
creators: {
|
5388
|
-
":
|
5402
|
+
":address": {
|
5389
5403
|
get: {
|
5390
5404
|
body: unknown;
|
5391
5405
|
params: {
|
5392
|
-
|
5406
|
+
address: string;
|
5393
5407
|
};
|
5394
5408
|
query: unknown;
|
5395
5409
|
headers: unknown;
|
5396
5410
|
response: {
|
5397
5411
|
200: {
|
5412
|
+
Users: {
|
5413
|
+
tags: string[];
|
5414
|
+
address: string;
|
5415
|
+
creatorId: string | null;
|
5416
|
+
}[];
|
5398
5417
|
name: string;
|
5399
5418
|
id: string;
|
5400
|
-
|
5401
|
-
|
5402
|
-
rebateFee?: number | undefined;
|
5419
|
+
icon: string | null;
|
5420
|
+
rebateFee: number;
|
5403
5421
|
};
|
5404
5422
|
};
|
5405
5423
|
};
|
@@ -5407,16 +5425,16 @@ export declare const v4: Elysia<"/v4", false, {
|
|
5407
5425
|
};
|
5408
5426
|
} & {
|
5409
5427
|
creators: {
|
5410
|
-
|
5411
|
-
|
5428
|
+
":address": {
|
5429
|
+
patch: {
|
5412
5430
|
body: {
|
5413
5431
|
icon?: string | undefined;
|
5414
|
-
rebateFee?: number | undefined;
|
5415
5432
|
name: string;
|
5416
|
-
id: string;
|
5417
5433
|
addresses: string[];
|
5418
5434
|
};
|
5419
|
-
params: {
|
5435
|
+
params: {
|
5436
|
+
address: string;
|
5437
|
+
};
|
5420
5438
|
query: unknown;
|
5421
5439
|
headers: {
|
5422
5440
|
authorization: string;
|
@@ -5434,15 +5452,11 @@ export declare const v4: Elysia<"/v4", false, {
|
|
5434
5452
|
};
|
5435
5453
|
} & {
|
5436
5454
|
creators: {
|
5437
|
-
":
|
5438
|
-
|
5439
|
-
body:
|
5440
|
-
icon?: string | undefined;
|
5441
|
-
name: string;
|
5442
|
-
addresses: string[];
|
5443
|
-
};
|
5455
|
+
":address": {
|
5456
|
+
delete: {
|
5457
|
+
body: unknown;
|
5444
5458
|
params: {
|
5445
|
-
|
5459
|
+
address: string;
|
5446
5460
|
};
|
5447
5461
|
query: unknown;
|
5448
5462
|
headers: {
|
@@ -5461,25 +5475,198 @@ export declare const v4: Elysia<"/v4", false, {
|
|
5461
5475
|
};
|
5462
5476
|
} & {
|
5463
5477
|
creators: {
|
5464
|
-
":
|
5465
|
-
|
5466
|
-
|
5467
|
-
body:
|
5468
|
-
|
5478
|
+
":address": {
|
5479
|
+
dashboard: {
|
5480
|
+
get: {
|
5481
|
+
body: unknown;
|
5482
|
+
params: {
|
5483
|
+
address: string;
|
5484
|
+
};
|
5485
|
+
query: unknown;
|
5486
|
+
headers: unknown;
|
5487
|
+
response: {
|
5488
|
+
200: {
|
5489
|
+
pastCampaigns: number;
|
5490
|
+
liveCampaigns: number;
|
5491
|
+
futureCampaigns: number;
|
5492
|
+
incentivizedTvl: number;
|
5493
|
+
totalCampaigns: number;
|
5494
|
+
creatorId: string | null;
|
5495
|
+
};
|
5496
|
+
};
|
5497
|
+
};
|
5498
|
+
};
|
5499
|
+
};
|
5500
|
+
};
|
5501
|
+
} & {
|
5502
|
+
creators: {
|
5503
|
+
":address": {
|
5504
|
+
campaigns: {
|
5505
|
+
get: {
|
5506
|
+
body: unknown;
|
5507
|
+
params: {
|
5508
|
+
address: string;
|
5509
|
+
};
|
5510
|
+
query: {
|
5511
|
+
status?: "PAST" | "LIVE" | "FUTURE" | undefined;
|
5512
|
+
};
|
5513
|
+
headers: unknown;
|
5514
|
+
response: {
|
5515
|
+
200: ({
|
5516
|
+
Opportunity: {
|
5517
|
+
status: import("@db/api").$Enums.Status;
|
5518
|
+
type: string;
|
5519
|
+
name: string;
|
5520
|
+
description: string;
|
5521
|
+
id: string;
|
5522
|
+
tags: string[];
|
5523
|
+
identifier: string;
|
5524
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
5525
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
5526
|
+
chainId: number;
|
5527
|
+
howToSteps: string[];
|
5528
|
+
depositUrl: string | null;
|
5529
|
+
explorerAddress: string | null;
|
5530
|
+
mainProtocolId: string | null;
|
5531
|
+
tvl: number;
|
5532
|
+
apr: number;
|
5533
|
+
dailyRewards: number;
|
5534
|
+
lastCampaignCreatedAt: Date;
|
5535
|
+
};
|
5536
|
+
} & {
|
5537
|
+
type: string;
|
5538
|
+
description: string | null;
|
5539
|
+
id: string;
|
5540
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
5541
|
+
subType: number | null;
|
5542
|
+
computeChainId: number;
|
5543
|
+
distributionChainId: number;
|
5544
|
+
campaignId: string;
|
5545
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
5546
|
+
rewardTokenId: string;
|
5547
|
+
amount: string;
|
5548
|
+
opportunityId: string;
|
5549
|
+
startTimestamp: bigint;
|
5550
|
+
endTimestamp: bigint;
|
5551
|
+
creatorAddress: string;
|
5552
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
5553
|
+
createdAt: Date;
|
5554
|
+
rootCampaignId: string | null;
|
5555
|
+
parentCampaignId: string | null;
|
5556
|
+
})[] | {
|
5557
|
+
params: any;
|
5558
|
+
chain: {
|
5559
|
+
name: string;
|
5560
|
+
id: number;
|
5561
|
+
icon: string;
|
5562
|
+
};
|
5563
|
+
endTimestamp: number;
|
5564
|
+
startTimestamp: number;
|
5565
|
+
rewardToken: {
|
5566
|
+
symbol: string;
|
5567
|
+
name: string | null;
|
5568
|
+
id: string;
|
5569
|
+
icon: string;
|
5570
|
+
address: string;
|
5571
|
+
chainId: number;
|
5572
|
+
decimals: number;
|
5573
|
+
verified: boolean;
|
5574
|
+
isTest: boolean;
|
5575
|
+
isPoint: boolean;
|
5576
|
+
isPreTGE: boolean;
|
5577
|
+
isNative: boolean;
|
5578
|
+
} & {
|
5579
|
+
price?: number | null | undefined;
|
5580
|
+
};
|
5581
|
+
distributionChain: {
|
5582
|
+
name: string;
|
5583
|
+
id: number;
|
5584
|
+
icon: string;
|
5585
|
+
} | undefined;
|
5586
|
+
campaignStatus: {
|
5587
|
+
computedUntil: number;
|
5588
|
+
processingStarted: number;
|
5589
|
+
status: import("@db/api").$Enums.RunStatus;
|
5590
|
+
error: string;
|
5591
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
5592
|
+
campaignId: string;
|
5593
|
+
} | undefined;
|
5594
|
+
creatorAddress: string;
|
5595
|
+
creator: {
|
5596
|
+
tags: string[];
|
5597
|
+
address: string;
|
5598
|
+
creatorId: string | null;
|
5599
|
+
};
|
5600
|
+
createdAt: string;
|
5601
|
+
description: string | undefined;
|
5602
|
+
parentCampaignId: string | undefined;
|
5603
|
+
rootCampaignId: string | undefined;
|
5604
|
+
Opportunity: {
|
5605
|
+
status: import("@db/api").$Enums.Status;
|
5606
|
+
type: string;
|
5607
|
+
name: string;
|
5608
|
+
description: string;
|
5609
|
+
id: string;
|
5610
|
+
tags: string[];
|
5611
|
+
identifier: string;
|
5612
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
5613
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
5614
|
+
chainId: number;
|
5615
|
+
howToSteps: string[];
|
5616
|
+
depositUrl: string | null;
|
5617
|
+
explorerAddress: string | null;
|
5618
|
+
mainProtocolId: string | null;
|
5619
|
+
tvl: number;
|
5620
|
+
apr: number;
|
5621
|
+
dailyRewards: number;
|
5622
|
+
lastCampaignCreatedAt: Date;
|
5623
|
+
};
|
5624
|
+
type: string;
|
5625
|
+
id: string;
|
5626
|
+
subType: number | null;
|
5627
|
+
computeChainId: number;
|
5628
|
+
distributionChainId: number;
|
5629
|
+
campaignId: string;
|
5630
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
5631
|
+
rewardTokenId: string;
|
5632
|
+
amount: string;
|
5633
|
+
opportunityId: string;
|
5634
|
+
}[];
|
5469
5635
|
};
|
5636
|
+
};
|
5637
|
+
};
|
5638
|
+
};
|
5639
|
+
};
|
5640
|
+
} & {
|
5641
|
+
creators: {
|
5642
|
+
campaigns: {
|
5643
|
+
":id": {
|
5644
|
+
get: {
|
5645
|
+
body: unknown;
|
5470
5646
|
params: {
|
5471
5647
|
id: string;
|
5472
5648
|
};
|
5473
5649
|
query: unknown;
|
5474
|
-
headers:
|
5475
|
-
authorization: string;
|
5476
|
-
};
|
5650
|
+
headers: unknown;
|
5477
5651
|
response: {
|
5478
5652
|
200: {
|
5479
|
-
|
5480
|
-
|
5481
|
-
|
5482
|
-
|
5653
|
+
tvlRecords: {
|
5654
|
+
total: number;
|
5655
|
+
timestamp: bigint;
|
5656
|
+
}[];
|
5657
|
+
aprRecords: {
|
5658
|
+
timestamp: bigint;
|
5659
|
+
apr: number;
|
5660
|
+
}[];
|
5661
|
+
dailyRewardsRecords: {
|
5662
|
+
total: number;
|
5663
|
+
timestamp: bigint;
|
5664
|
+
}[];
|
5665
|
+
walletCount: {
|
5666
|
+
timestamp: bigint;
|
5667
|
+
walletCount: number;
|
5668
|
+
}[];
|
5669
|
+
tvlInflowPerDollar: bigint;
|
5483
5670
|
};
|
5484
5671
|
};
|
5485
5672
|
};
|