@merkl/api 1.5.24 → 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/club246/metadata.d.ts +2 -1
- package/dist/src/engine/implementations/club246/metadata.js.map +1 -1
- package/dist/src/index.d.ts +208 -55
- 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/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
|
@@ -3449,72 +3449,225 @@ declare const eden: {
|
|
|
3449
3449
|
};
|
|
3450
3450
|
query?: Record<string, unknown> | undefined;
|
|
3451
3451
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
3452
|
-
200:
|
|
3453
|
-
|
|
3452
|
+
200: ({
|
|
3453
|
+
chainId: number;
|
|
3454
|
+
type: string;
|
|
3455
|
+
identifier: string;
|
|
3456
|
+
name?: string | undefined;
|
|
3457
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
3458
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
3459
|
+
description?: string | undefined;
|
|
3460
|
+
howToSteps?: string[] | undefined;
|
|
3461
|
+
tokens: {
|
|
3462
|
+
address: string;
|
|
3454
3463
|
chainId: number;
|
|
3455
|
-
|
|
3456
|
-
|
|
3464
|
+
}[];
|
|
3465
|
+
protocols?: string[] | undefined;
|
|
3466
|
+
mainProtocol?: string | undefined;
|
|
3467
|
+
depositUrl?: string | undefined;
|
|
3468
|
+
explorerAddress?: string | undefined;
|
|
3469
|
+
tags?: string[] | undefined;
|
|
3470
|
+
} & {
|
|
3471
|
+
id: string;
|
|
3472
|
+
}) | ({
|
|
3473
|
+
ActivePrograms: {
|
|
3474
|
+
icon: string;
|
|
3475
|
+
id: string;
|
|
3457
3476
|
name: string;
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3477
|
+
slug: string | null;
|
|
3478
|
+
}[];
|
|
3479
|
+
AprRecords: ({
|
|
3480
|
+
AprBreakdown: {
|
|
3481
|
+
identifier: string;
|
|
3482
|
+
timestamp: bigint;
|
|
3483
|
+
type: import("@package/databases").AprType;
|
|
3484
|
+
value: number;
|
|
3485
|
+
}[];
|
|
3486
|
+
} & {
|
|
3487
|
+
id: string;
|
|
3488
|
+
timestamp: bigint;
|
|
3489
|
+
cumulated: number;
|
|
3490
|
+
opportunityId: string;
|
|
3491
|
+
})[];
|
|
3492
|
+
Campaigns: {
|
|
3493
|
+
id: string;
|
|
3494
|
+
computeChainId: number;
|
|
3495
|
+
distributionChainId: number;
|
|
3496
|
+
campaignId: string;
|
|
3497
|
+
type: string;
|
|
3498
|
+
distributionType: import("@package/databases").DistributionType;
|
|
3499
|
+
subType: number | null;
|
|
3500
|
+
rewardTokenId: string;
|
|
3501
|
+
amount: string;
|
|
3502
|
+
opportunityId: string;
|
|
3503
|
+
startTimestamp: bigint;
|
|
3504
|
+
endTimestamp: bigint;
|
|
3505
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
3506
|
+
description: string | null;
|
|
3465
3507
|
dailyRewards: number;
|
|
3466
|
-
|
|
3508
|
+
apr: number;
|
|
3509
|
+
creatorAddress: string;
|
|
3510
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
3511
|
+
createdAt: Date;
|
|
3512
|
+
rootCampaignId: string | null;
|
|
3513
|
+
parentCampaignId: string | null;
|
|
3514
|
+
}[];
|
|
3515
|
+
Chain: {
|
|
3516
|
+
id: number;
|
|
3517
|
+
name: string;
|
|
3518
|
+
icon: string;
|
|
3467
3519
|
liveCampaigns: number;
|
|
3468
|
-
|
|
3469
|
-
|
|
3520
|
+
endOfDisputePeriod: number;
|
|
3521
|
+
};
|
|
3522
|
+
DailyRewardsRecords: ({
|
|
3523
|
+
DailyRewardsBreakdown: ({
|
|
3524
|
+
Campaign: {
|
|
3525
|
+
CampaignStatus: {
|
|
3526
|
+
campaignId: string;
|
|
3527
|
+
computedUntil: bigint;
|
|
3528
|
+
processingStarted: bigint;
|
|
3529
|
+
status: import("@package/databases").RunStatus;
|
|
3530
|
+
error: string;
|
|
3531
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
3532
|
+
}[];
|
|
3533
|
+
RewardToken: {
|
|
3534
|
+
id: string;
|
|
3535
|
+
name: string | null;
|
|
3536
|
+
chainId: number;
|
|
3537
|
+
address: string;
|
|
3538
|
+
decimals: number;
|
|
3539
|
+
symbol: string;
|
|
3540
|
+
displaySymbol: string;
|
|
3541
|
+
icon: string;
|
|
3542
|
+
verified: boolean;
|
|
3543
|
+
isTest: boolean;
|
|
3544
|
+
type: import("@package/databases").TokenType;
|
|
3545
|
+
isNative: boolean;
|
|
3546
|
+
price: number | null;
|
|
3547
|
+
updatedAt: number | null;
|
|
3548
|
+
priceSource: string | null;
|
|
3549
|
+
};
|
|
3550
|
+
amount: string;
|
|
3551
|
+
campaignId: string;
|
|
3552
|
+
distributionType: import("@package/databases").DistributionType;
|
|
3553
|
+
endTimestamp: bigint;
|
|
3554
|
+
startTimestamp: bigint;
|
|
3555
|
+
};
|
|
3556
|
+
} & {
|
|
3557
|
+
id: string;
|
|
3558
|
+
value: number;
|
|
3559
|
+
timestamp: bigint;
|
|
3560
|
+
campaignId: string;
|
|
3561
|
+
dailyRewardsRecordId: string;
|
|
3562
|
+
})[];
|
|
3563
|
+
} & {
|
|
3564
|
+
id: string;
|
|
3565
|
+
timestamp: bigint;
|
|
3566
|
+
total: number;
|
|
3567
|
+
opportunityId: string;
|
|
3568
|
+
})[];
|
|
3569
|
+
MainProtocol: {
|
|
3570
|
+
id: string;
|
|
3571
|
+
tags: string[];
|
|
3572
|
+
name: string;
|
|
3573
|
+
description: string;
|
|
3574
|
+
url: string;
|
|
3575
|
+
icon: string;
|
|
3576
|
+
banner: string | null;
|
|
3577
|
+
opportunityBannerLight: string | null;
|
|
3578
|
+
opportunityBannerDark: string | null;
|
|
3579
|
+
} | null;
|
|
3580
|
+
NativeAprRecords: ({
|
|
3581
|
+
RewardToken: {
|
|
3582
|
+
id: string;
|
|
3583
|
+
name: string | null;
|
|
3470
3584
|
chainId: number;
|
|
3585
|
+
address: string;
|
|
3471
3586
|
decimals: number;
|
|
3587
|
+
symbol: string;
|
|
3588
|
+
displaySymbol: string;
|
|
3472
3589
|
icon: string;
|
|
3473
|
-
|
|
3474
|
-
isNative: boolean;
|
|
3590
|
+
verified: boolean;
|
|
3475
3591
|
isTest: boolean;
|
|
3476
|
-
name: string | null;
|
|
3477
|
-
symbol: string;
|
|
3478
3592
|
type: import("@package/databases").TokenType;
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3593
|
+
isNative: boolean;
|
|
3594
|
+
price: number | null;
|
|
3595
|
+
updatedAt: number | null;
|
|
3596
|
+
priceSource: string | null;
|
|
3597
|
+
} | null;
|
|
3598
|
+
} & {
|
|
3599
|
+
id: string;
|
|
3600
|
+
title: string;
|
|
3601
|
+
description: string | null;
|
|
3602
|
+
timestamp: bigint;
|
|
3603
|
+
value: number;
|
|
3604
|
+
amount: bigint | null;
|
|
3605
|
+
rewardTokenId: string | null;
|
|
3606
|
+
opportunityId: string;
|
|
3607
|
+
})[];
|
|
3608
|
+
Protocols: {
|
|
3609
|
+
id: string;
|
|
3610
|
+
tags: string[];
|
|
3611
|
+
name: string;
|
|
3612
|
+
description: string;
|
|
3613
|
+
url: string;
|
|
3614
|
+
icon: string;
|
|
3615
|
+
banner: string | null;
|
|
3616
|
+
opportunityBannerLight: string | null;
|
|
3617
|
+
opportunityBannerDark: string | null;
|
|
3618
|
+
}[];
|
|
3619
|
+
Tokens: {
|
|
3620
|
+
id: string;
|
|
3621
|
+
name: string | null;
|
|
3622
|
+
chainId: number;
|
|
3623
|
+
address: string;
|
|
3624
|
+
decimals: number;
|
|
3625
|
+
symbol: string;
|
|
3626
|
+
displaySymbol: string;
|
|
3627
|
+
icon: string;
|
|
3628
|
+
verified: boolean;
|
|
3629
|
+
isTest: boolean;
|
|
3630
|
+
type: import("@package/databases").TokenType;
|
|
3631
|
+
isNative: boolean;
|
|
3632
|
+
price: number | null;
|
|
3633
|
+
updatedAt: number | null;
|
|
3634
|
+
priceSource: string | null;
|
|
3635
|
+
}[];
|
|
3636
|
+
TvlRecords: ({
|
|
3637
|
+
TvlBreakdown: {
|
|
3638
|
+
identifier: string;
|
|
3639
|
+
type: import("@package/databases").TvlType;
|
|
3640
|
+
value: number;
|
|
3510
3641
|
}[];
|
|
3642
|
+
} & {
|
|
3511
3643
|
id: string;
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3644
|
+
timestamp: bigint;
|
|
3645
|
+
total: number;
|
|
3646
|
+
opportunityId: string;
|
|
3647
|
+
})[];
|
|
3648
|
+
} & {
|
|
3649
|
+
id: string;
|
|
3650
|
+
chainId: number;
|
|
3651
|
+
type: string;
|
|
3652
|
+
identifier: string;
|
|
3653
|
+
name: string;
|
|
3654
|
+
description: string;
|
|
3655
|
+
howToSteps: string[];
|
|
3656
|
+
depositUrl: string | null;
|
|
3657
|
+
explorerAddress: string | null;
|
|
3658
|
+
status: import("@package/databases").Status;
|
|
3659
|
+
action: import("@package/databases").OpportunityAction;
|
|
3660
|
+
mainProtocolId: string | null;
|
|
3661
|
+
tvl: number;
|
|
3662
|
+
apr: number;
|
|
3663
|
+
nativeApr: number | null;
|
|
3664
|
+
maxApr: number | null;
|
|
3665
|
+
dailyRewards: number;
|
|
3666
|
+
tags: string[];
|
|
3667
|
+
lastCampaignCreatedAt: Date;
|
|
3668
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
3669
|
+
liveCampaigns: number;
|
|
3670
|
+
});
|
|
3518
3671
|
422: {
|
|
3519
3672
|
type: "validation";
|
|
3520
3673
|
on: string;
|
|
@@ -4,9 +4,10 @@ import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.m
|
|
|
4
4
|
type campaignType = CampaignType.CLUB246;
|
|
5
5
|
export declare class Club246Metadata implements MetadataBuilder<campaignType> {
|
|
6
6
|
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides" | "opportunityId" | "program">): Promise<{
|
|
7
|
-
action: "
|
|
7
|
+
action: "STAKE";
|
|
8
8
|
mainProtocol: ProtocolType;
|
|
9
9
|
name: string;
|
|
10
|
+
description: string;
|
|
10
11
|
tokens: {
|
|
11
12
|
chainId: number;
|
|
12
13
|
address: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/engine/implementations/club246/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAqB,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/engine/implementations/club246/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAqB,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAM9C,MAAM,OAAO,eAAe;IAC1B,KAAK,CAAC,KAAK,CAAC,QAAiG,EAAE;QAC7G,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,QAAQ,CAAC;QACzD,MAAM,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC;QACnD,OAAO;YACL,MAAM,EAAE,iBAAiB,CAAC,KAAK;YAC/B,YAAY,EAAE,YAAY,CAAC,OAAO;YAClC,IAAI,EAAE,WAAW,iBAAiB,aAAa;YAC/C,WAAW,EAAE,6BAA6B,iBAAiB,oBAAoB,cAAc,CAAC,cAA6C,CAAC,EAAE;YAC9I,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC;YAClE,eAAe,EAAE,WAAW,CAAC,OAAO;SACrC,CAAC;IAAA,CACH;CACF"}
|
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;
|