@merkl/api 1.5.23 → 1.5.25
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/src/eden/index.d.ts +208 -55
- package/dist/src/engine/implementations/Default/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Default/tvl.js.map +1 -0
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/club246/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/club246/metadata.js.map +1 -0
- package/dist/src/engine/implementations/gravitaCollateral/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/gravitaCollateral/metadata.js.map +1 -0
- package/dist/src/engine/implementations/gravitaStability/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/gravitaStability/metadata.js.map +1 -0
- package/dist/src/engine/metadata/factory.js.map +1 -1
- package/dist/src/engine/tvl/factory.js.map +1 -1
- package/dist/src/index.d.ts +208 -55
- package/dist/src/libs/computeFee.d.ts +759 -759
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +10 -10
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +208 -55
- package/dist/src/modules/v4/campaign/campaign.test.controller.js.map +1 -1
- package/dist/src/modules/v4/config/config.controller.js.map +1 -1
- package/dist/src/modules/v4/config/config.model.d.ts +11 -8
- package/dist/src/modules/v4/config/config.model.js.map +1 -1
- package/dist/src/modules/v4/config/config.service.d.ts +6 -0
- package/dist/src/modules/v4/config/config.service.js.map +1 -1
- package/dist/src/modules/v4/program/program.formatter.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +208 -55
- package/dist/src/modules/v4/token/token.service.js.map +1 -1
- package/dist/src/utils/getAPR.d.ts +180 -165
- package/dist/src/utils/parseDistributionType.d.ts +180 -165
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -3234,72 +3234,225 @@ declare const app: Elysia<"", {
|
|
|
3234
3234
|
authorization: string;
|
|
3235
3235
|
};
|
|
3236
3236
|
response: {
|
|
3237
|
-
200:
|
|
3238
|
-
|
|
3237
|
+
200: ({
|
|
3238
|
+
chainId: number;
|
|
3239
|
+
type: string;
|
|
3240
|
+
identifier: string;
|
|
3241
|
+
name?: string | undefined;
|
|
3242
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
3243
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
3244
|
+
description?: string | undefined;
|
|
3245
|
+
howToSteps?: string[] | undefined;
|
|
3246
|
+
tokens: {
|
|
3247
|
+
address: string;
|
|
3239
3248
|
chainId: number;
|
|
3240
|
-
|
|
3241
|
-
|
|
3249
|
+
}[];
|
|
3250
|
+
protocols?: string[] | undefined;
|
|
3251
|
+
mainProtocol?: string | undefined;
|
|
3252
|
+
depositUrl?: string | undefined;
|
|
3253
|
+
explorerAddress?: string | undefined;
|
|
3254
|
+
tags?: string[] | undefined;
|
|
3255
|
+
} & {
|
|
3256
|
+
id: string;
|
|
3257
|
+
}) | ({
|
|
3258
|
+
ActivePrograms: {
|
|
3259
|
+
icon: string;
|
|
3260
|
+
id: string;
|
|
3242
3261
|
name: string;
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3262
|
+
slug: string | null;
|
|
3263
|
+
}[];
|
|
3264
|
+
AprRecords: ({
|
|
3265
|
+
AprBreakdown: {
|
|
3266
|
+
identifier: string;
|
|
3267
|
+
timestamp: bigint;
|
|
3268
|
+
type: import("@package/databases").AprType;
|
|
3269
|
+
value: number;
|
|
3270
|
+
}[];
|
|
3271
|
+
} & {
|
|
3272
|
+
id: string;
|
|
3273
|
+
timestamp: bigint;
|
|
3274
|
+
cumulated: number;
|
|
3275
|
+
opportunityId: string;
|
|
3276
|
+
})[];
|
|
3277
|
+
Campaigns: {
|
|
3278
|
+
id: string;
|
|
3279
|
+
computeChainId: number;
|
|
3280
|
+
distributionChainId: number;
|
|
3281
|
+
campaignId: string;
|
|
3282
|
+
type: string;
|
|
3283
|
+
distributionType: import("@package/databases").DistributionType;
|
|
3284
|
+
subType: number | null;
|
|
3285
|
+
rewardTokenId: string;
|
|
3286
|
+
amount: string;
|
|
3287
|
+
opportunityId: string;
|
|
3288
|
+
startTimestamp: bigint;
|
|
3289
|
+
endTimestamp: bigint;
|
|
3290
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
3291
|
+
description: string | null;
|
|
3250
3292
|
dailyRewards: number;
|
|
3251
|
-
|
|
3293
|
+
apr: number;
|
|
3294
|
+
creatorAddress: string;
|
|
3295
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
3296
|
+
createdAt: Date;
|
|
3297
|
+
rootCampaignId: string | null;
|
|
3298
|
+
parentCampaignId: string | null;
|
|
3299
|
+
}[];
|
|
3300
|
+
Chain: {
|
|
3301
|
+
id: number;
|
|
3302
|
+
name: string;
|
|
3303
|
+
icon: string;
|
|
3252
3304
|
liveCampaigns: number;
|
|
3253
|
-
|
|
3254
|
-
|
|
3305
|
+
endOfDisputePeriod: number;
|
|
3306
|
+
};
|
|
3307
|
+
DailyRewardsRecords: ({
|
|
3308
|
+
DailyRewardsBreakdown: ({
|
|
3309
|
+
Campaign: {
|
|
3310
|
+
CampaignStatus: {
|
|
3311
|
+
campaignId: string;
|
|
3312
|
+
computedUntil: bigint;
|
|
3313
|
+
processingStarted: bigint;
|
|
3314
|
+
status: import("@package/databases").RunStatus;
|
|
3315
|
+
error: string;
|
|
3316
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
3317
|
+
}[];
|
|
3318
|
+
RewardToken: {
|
|
3319
|
+
id: string;
|
|
3320
|
+
name: string | null;
|
|
3321
|
+
chainId: number;
|
|
3322
|
+
address: string;
|
|
3323
|
+
decimals: number;
|
|
3324
|
+
symbol: string;
|
|
3325
|
+
displaySymbol: string;
|
|
3326
|
+
icon: string;
|
|
3327
|
+
verified: boolean;
|
|
3328
|
+
isTest: boolean;
|
|
3329
|
+
type: import("@package/databases").TokenType;
|
|
3330
|
+
isNative: boolean;
|
|
3331
|
+
price: number | null;
|
|
3332
|
+
updatedAt: number | null;
|
|
3333
|
+
priceSource: string | null;
|
|
3334
|
+
};
|
|
3335
|
+
amount: string;
|
|
3336
|
+
campaignId: string;
|
|
3337
|
+
distributionType: import("@package/databases").DistributionType;
|
|
3338
|
+
endTimestamp: bigint;
|
|
3339
|
+
startTimestamp: bigint;
|
|
3340
|
+
};
|
|
3341
|
+
} & {
|
|
3342
|
+
id: string;
|
|
3343
|
+
value: number;
|
|
3344
|
+
timestamp: bigint;
|
|
3345
|
+
campaignId: string;
|
|
3346
|
+
dailyRewardsRecordId: string;
|
|
3347
|
+
})[];
|
|
3348
|
+
} & {
|
|
3349
|
+
id: string;
|
|
3350
|
+
timestamp: bigint;
|
|
3351
|
+
total: number;
|
|
3352
|
+
opportunityId: string;
|
|
3353
|
+
})[];
|
|
3354
|
+
MainProtocol: {
|
|
3355
|
+
id: string;
|
|
3356
|
+
tags: string[];
|
|
3357
|
+
name: string;
|
|
3358
|
+
description: string;
|
|
3359
|
+
url: string;
|
|
3360
|
+
icon: string;
|
|
3361
|
+
banner: string | null;
|
|
3362
|
+
opportunityBannerLight: string | null;
|
|
3363
|
+
opportunityBannerDark: string | null;
|
|
3364
|
+
} | null;
|
|
3365
|
+
NativeAprRecords: ({
|
|
3366
|
+
RewardToken: {
|
|
3367
|
+
id: string;
|
|
3368
|
+
name: string | null;
|
|
3255
3369
|
chainId: number;
|
|
3370
|
+
address: string;
|
|
3256
3371
|
decimals: number;
|
|
3372
|
+
symbol: string;
|
|
3373
|
+
displaySymbol: string;
|
|
3257
3374
|
icon: string;
|
|
3258
|
-
|
|
3259
|
-
isNative: boolean;
|
|
3375
|
+
verified: boolean;
|
|
3260
3376
|
isTest: boolean;
|
|
3261
|
-
name: string | null;
|
|
3262
|
-
symbol: string;
|
|
3263
3377
|
type: import("@package/databases").TokenType;
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3378
|
+
isNative: boolean;
|
|
3379
|
+
price: number | null;
|
|
3380
|
+
updatedAt: number | null;
|
|
3381
|
+
priceSource: string | null;
|
|
3382
|
+
} | null;
|
|
3383
|
+
} & {
|
|
3384
|
+
id: string;
|
|
3385
|
+
title: string;
|
|
3386
|
+
description: string | null;
|
|
3387
|
+
timestamp: bigint;
|
|
3388
|
+
value: number;
|
|
3389
|
+
amount: bigint | null;
|
|
3390
|
+
rewardTokenId: string | null;
|
|
3391
|
+
opportunityId: string;
|
|
3392
|
+
})[];
|
|
3393
|
+
Protocols: {
|
|
3394
|
+
id: string;
|
|
3395
|
+
tags: string[];
|
|
3396
|
+
name: string;
|
|
3397
|
+
description: string;
|
|
3398
|
+
url: string;
|
|
3399
|
+
icon: string;
|
|
3400
|
+
banner: string | null;
|
|
3401
|
+
opportunityBannerLight: string | null;
|
|
3402
|
+
opportunityBannerDark: string | null;
|
|
3403
|
+
}[];
|
|
3404
|
+
Tokens: {
|
|
3405
|
+
id: string;
|
|
3406
|
+
name: string | null;
|
|
3407
|
+
chainId: number;
|
|
3408
|
+
address: string;
|
|
3409
|
+
decimals: number;
|
|
3410
|
+
symbol: string;
|
|
3411
|
+
displaySymbol: string;
|
|
3412
|
+
icon: string;
|
|
3413
|
+
verified: boolean;
|
|
3414
|
+
isTest: boolean;
|
|
3415
|
+
type: import("@package/databases").TokenType;
|
|
3416
|
+
isNative: boolean;
|
|
3417
|
+
price: number | null;
|
|
3418
|
+
updatedAt: number | null;
|
|
3419
|
+
priceSource: string | null;
|
|
3420
|
+
}[];
|
|
3421
|
+
TvlRecords: ({
|
|
3422
|
+
TvlBreakdown: {
|
|
3423
|
+
identifier: string;
|
|
3424
|
+
type: import("@package/databases").TvlType;
|
|
3425
|
+
value: number;
|
|
3295
3426
|
}[];
|
|
3427
|
+
} & {
|
|
3296
3428
|
id: string;
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3429
|
+
timestamp: bigint;
|
|
3430
|
+
total: number;
|
|
3431
|
+
opportunityId: string;
|
|
3432
|
+
})[];
|
|
3433
|
+
} & {
|
|
3434
|
+
id: string;
|
|
3435
|
+
chainId: number;
|
|
3436
|
+
type: string;
|
|
3437
|
+
identifier: string;
|
|
3438
|
+
name: string;
|
|
3439
|
+
description: string;
|
|
3440
|
+
howToSteps: string[];
|
|
3441
|
+
depositUrl: string | null;
|
|
3442
|
+
explorerAddress: string | null;
|
|
3443
|
+
status: import("@package/databases").Status;
|
|
3444
|
+
action: import("@package/databases").OpportunityAction;
|
|
3445
|
+
mainProtocolId: string | null;
|
|
3446
|
+
tvl: number;
|
|
3447
|
+
apr: number;
|
|
3448
|
+
nativeApr: number | null;
|
|
3449
|
+
maxApr: number | null;
|
|
3450
|
+
dailyRewards: number;
|
|
3451
|
+
tags: string[];
|
|
3452
|
+
lastCampaignCreatedAt: Date;
|
|
3453
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
3454
|
+
liveCampaigns: number;
|
|
3455
|
+
});
|
|
3303
3456
|
422: {
|
|
3304
3457
|
type: "validation";
|
|
3305
3458
|
on: string;
|