@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
package/dist/src/eden/index.d.ts
CHANGED
@@ -1349,7 +1349,7 @@ declare const eden: {
|
|
1349
1349
|
opportunityId: string;
|
1350
1350
|
};
|
1351
1351
|
}>>;
|
1352
|
-
|
1352
|
+
metrics: {
|
1353
1353
|
get: (options?: {
|
1354
1354
|
headers?: Record<string, unknown> | undefined;
|
1355
1355
|
query?: Record<string, unknown> | undefined;
|
@@ -1362,8 +1362,17 @@ declare const eden: {
|
|
1362
1362
|
}[];
|
1363
1363
|
aprRecords: {
|
1364
1364
|
timestamp: bigint;
|
1365
|
-
|
1365
|
+
apr: number;
|
1366
|
+
}[];
|
1367
|
+
dailyRewardsRecords: {
|
1368
|
+
total: number;
|
1369
|
+
timestamp: bigint;
|
1370
|
+
}[];
|
1371
|
+
walletCount: {
|
1372
|
+
timestamp: bigint;
|
1373
|
+
walletCount: number;
|
1366
1374
|
}[];
|
1375
|
+
tvlInflowPerDollar: bigint;
|
1367
1376
|
};
|
1368
1377
|
}>>;
|
1369
1378
|
};
|
@@ -3332,33 +3341,122 @@ declare const eden: {
|
|
3332
3341
|
users: ((params: {
|
3333
3342
|
address: string | number;
|
3334
3343
|
}) => {
|
3335
|
-
|
3336
|
-
|
3337
|
-
query?: Record<string, unknown> | undefined;
|
3338
|
-
fetch?: RequestInit | undefined;
|
3339
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3340
|
-
200: {
|
3341
|
-
tags: string[];
|
3342
|
-
address: string;
|
3343
|
-
creatorId: string | null;
|
3344
|
-
} | null;
|
3345
|
-
}>>;
|
3346
|
-
creator: {
|
3347
|
-
get: (options?: {
|
3344
|
+
rewards: {
|
3345
|
+
get: (options: {
|
3348
3346
|
headers?: Record<string, unknown> | undefined;
|
3349
|
-
query
|
3347
|
+
query: {
|
3348
|
+
test?: boolean | undefined;
|
3349
|
+
reloadChainId?: number | undefined;
|
3350
|
+
claimableOnly?: boolean | undefined;
|
3351
|
+
chainId: number[];
|
3352
|
+
};
|
3350
3353
|
fetch?: RequestInit | undefined;
|
3351
|
-
}
|
3352
|
-
200: {
|
3353
|
-
|
3354
|
-
|
3355
|
-
|
3356
|
-
|
3357
|
-
|
3358
|
-
|
3354
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3355
|
+
200: (Omit<{
|
3356
|
+
chain: import("@db/api").Chain;
|
3357
|
+
rewards: Awaited<ReturnType<typeof import("../modules/v4/reward/reward.service").RewardService["format"]>>;
|
3358
|
+
}, "rewards"> & {
|
3359
|
+
rewards: (Omit<{
|
3360
|
+
token: {
|
3361
|
+
symbol: string;
|
3362
|
+
name: string | null;
|
3363
|
+
id: string;
|
3364
|
+
icon: string;
|
3365
|
+
address: string;
|
3366
|
+
chainId: number;
|
3367
|
+
decimals: number;
|
3368
|
+
displaySymbol: string;
|
3369
|
+
verified: boolean;
|
3370
|
+
isTest: boolean;
|
3371
|
+
isPoint: boolean;
|
3372
|
+
isPreTGE: boolean;
|
3373
|
+
isNative: boolean;
|
3374
|
+
price: number | null;
|
3375
|
+
};
|
3376
|
+
breakdowns: {
|
3377
|
+
campaignId: string;
|
3378
|
+
subCampaignId: string | undefined;
|
3379
|
+
opportunity: {
|
3380
|
+
Chain: {
|
3381
|
+
name: string;
|
3382
|
+
id: number;
|
3383
|
+
icon: string;
|
3384
|
+
};
|
3385
|
+
Tokens: {
|
3386
|
+
symbol: string;
|
3387
|
+
name: string | null;
|
3388
|
+
id: string;
|
3389
|
+
icon: string;
|
3390
|
+
address: string;
|
3391
|
+
chainId: number;
|
3392
|
+
decimals: number;
|
3393
|
+
displaySymbol: string;
|
3394
|
+
verified: boolean;
|
3395
|
+
isTest: boolean;
|
3396
|
+
isPoint: boolean;
|
3397
|
+
isPreTGE: boolean;
|
3398
|
+
isNative: boolean;
|
3399
|
+
price: number | null;
|
3400
|
+
}[];
|
3401
|
+
Protocols: {
|
3402
|
+
url: string;
|
3403
|
+
name: string;
|
3404
|
+
description: string;
|
3405
|
+
id: string;
|
3406
|
+
tags: string[];
|
3407
|
+
icon: string;
|
3408
|
+
}[];
|
3409
|
+
MainProtocol: {
|
3410
|
+
url: string;
|
3411
|
+
name: string;
|
3412
|
+
description: string;
|
3413
|
+
id: string;
|
3414
|
+
tags: string[];
|
3415
|
+
icon: string;
|
3416
|
+
} | null;
|
3417
|
+
} & {
|
3418
|
+
status: import("@db/api").$Enums.Status;
|
3419
|
+
type: string;
|
3420
|
+
name: string;
|
3421
|
+
description: string;
|
3422
|
+
id: string;
|
3423
|
+
tags: string[];
|
3424
|
+
identifier: string;
|
3425
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
3426
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
3427
|
+
chainId: number;
|
3428
|
+
howToSteps: string[];
|
3429
|
+
depositUrl: string | null;
|
3430
|
+
explorerAddress: string | null;
|
3431
|
+
mainProtocolId: string | null;
|
3432
|
+
tvl: number;
|
3433
|
+
apr: number;
|
3434
|
+
dailyRewards: number;
|
3435
|
+
lastCampaignCreatedAt: Date;
|
3436
|
+
};
|
3437
|
+
reason: string;
|
3438
|
+
pending: string;
|
3439
|
+
amount: string;
|
3440
|
+
claimed: string;
|
3441
|
+
}[];
|
3442
|
+
claimed: bigint;
|
3443
|
+
amount: bigint;
|
3444
|
+
pending: bigint;
|
3445
|
+
root: string;
|
3446
|
+
recipient: string;
|
3447
|
+
proofs: string[];
|
3448
|
+
}, "breakdowns"> & {
|
3449
|
+
breakdowns: {
|
3450
|
+
campaignId: string;
|
3451
|
+
subCampaignId: string | undefined;
|
3452
|
+
reason: string;
|
3453
|
+
pending: string;
|
3454
|
+
amount: string;
|
3455
|
+
claimed: string;
|
3456
|
+
}[];
|
3457
|
+
})[];
|
3458
|
+
})[];
|
3359
3459
|
}>>;
|
3360
|
-
};
|
3361
|
-
rewards: {
|
3362
3460
|
breakdowns: {
|
3363
3461
|
get: (options: {
|
3364
3462
|
headers?: Record<string, unknown> | undefined;
|
@@ -3475,133 +3573,29 @@ declare const eden: {
|
|
3475
3573
|
})[];
|
3476
3574
|
}>>;
|
3477
3575
|
};
|
3576
|
+
};
|
3577
|
+
terms: {
|
3478
3578
|
get: (options: {
|
3479
3579
|
headers?: Record<string, unknown> | undefined;
|
3480
3580
|
query: {
|
3481
|
-
|
3482
|
-
reloadChainId?: number | undefined;
|
3483
|
-
claimableOnly?: boolean | undefined;
|
3484
|
-
chainId: number[];
|
3581
|
+
chainId: number;
|
3485
3582
|
};
|
3486
3583
|
fetch?: RequestInit | undefined;
|
3487
3584
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3488
|
-
200:
|
3489
|
-
chain: import("@db/api").Chain;
|
3490
|
-
rewards: Awaited<ReturnType<typeof import("../modules/v4/reward/reward.service").RewardService["format"]>>;
|
3491
|
-
}, "rewards"> & {
|
3492
|
-
rewards: (Omit<{
|
3493
|
-
token: {
|
3494
|
-
symbol: string;
|
3495
|
-
name: string | null;
|
3496
|
-
id: string;
|
3497
|
-
icon: string;
|
3498
|
-
address: string;
|
3499
|
-
chainId: number;
|
3500
|
-
decimals: number;
|
3501
|
-
displaySymbol: string;
|
3502
|
-
verified: boolean;
|
3503
|
-
isTest: boolean;
|
3504
|
-
isPoint: boolean;
|
3505
|
-
isPreTGE: boolean;
|
3506
|
-
isNative: boolean;
|
3507
|
-
price: number | null;
|
3508
|
-
};
|
3509
|
-
breakdowns: {
|
3510
|
-
campaignId: string;
|
3511
|
-
subCampaignId: string | undefined;
|
3512
|
-
opportunity: {
|
3513
|
-
Chain: {
|
3514
|
-
name: string;
|
3515
|
-
id: number;
|
3516
|
-
icon: string;
|
3517
|
-
};
|
3518
|
-
Tokens: {
|
3519
|
-
symbol: string;
|
3520
|
-
name: string | null;
|
3521
|
-
id: string;
|
3522
|
-
icon: string;
|
3523
|
-
address: string;
|
3524
|
-
chainId: number;
|
3525
|
-
decimals: number;
|
3526
|
-
displaySymbol: string;
|
3527
|
-
verified: boolean;
|
3528
|
-
isTest: boolean;
|
3529
|
-
isPoint: boolean;
|
3530
|
-
isPreTGE: boolean;
|
3531
|
-
isNative: boolean;
|
3532
|
-
price: number | null;
|
3533
|
-
}[];
|
3534
|
-
Protocols: {
|
3535
|
-
url: string;
|
3536
|
-
name: string;
|
3537
|
-
description: string;
|
3538
|
-
id: string;
|
3539
|
-
tags: string[];
|
3540
|
-
icon: string;
|
3541
|
-
}[];
|
3542
|
-
MainProtocol: {
|
3543
|
-
url: string;
|
3544
|
-
name: string;
|
3545
|
-
description: string;
|
3546
|
-
id: string;
|
3547
|
-
tags: string[];
|
3548
|
-
icon: string;
|
3549
|
-
} | null;
|
3550
|
-
} & {
|
3551
|
-
status: import("@db/api").$Enums.Status;
|
3552
|
-
type: string;
|
3553
|
-
name: string;
|
3554
|
-
description: string;
|
3555
|
-
id: string;
|
3556
|
-
tags: string[];
|
3557
|
-
identifier: string;
|
3558
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
3559
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
3560
|
-
chainId: number;
|
3561
|
-
howToSteps: string[];
|
3562
|
-
depositUrl: string | null;
|
3563
|
-
explorerAddress: string | null;
|
3564
|
-
mainProtocolId: string | null;
|
3565
|
-
tvl: number;
|
3566
|
-
apr: number;
|
3567
|
-
dailyRewards: number;
|
3568
|
-
lastCampaignCreatedAt: Date;
|
3569
|
-
};
|
3570
|
-
reason: string;
|
3571
|
-
pending: string;
|
3572
|
-
amount: string;
|
3573
|
-
claimed: string;
|
3574
|
-
}[];
|
3575
|
-
claimed: bigint;
|
3576
|
-
amount: bigint;
|
3577
|
-
pending: bigint;
|
3578
|
-
root: string;
|
3579
|
-
recipient: string;
|
3580
|
-
proofs: string[];
|
3581
|
-
}, "breakdowns"> & {
|
3582
|
-
breakdowns: {
|
3583
|
-
campaignId: string;
|
3584
|
-
subCampaignId: string | undefined;
|
3585
|
-
reason: string;
|
3586
|
-
pending: string;
|
3587
|
-
amount: string;
|
3588
|
-
claimed: string;
|
3589
|
-
}[];
|
3590
|
-
})[];
|
3591
|
-
})[];
|
3592
|
-
}>>;
|
3593
|
-
};
|
3594
|
-
terms: {
|
3595
|
-
get: (options: {
|
3596
|
-
headers?: Record<string, unknown> | undefined;
|
3597
|
-
query: {
|
3598
|
-
chainId: number;
|
3599
|
-
};
|
3600
|
-
fetch?: RequestInit | undefined;
|
3601
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3602
|
-
200: boolean;
|
3585
|
+
200: boolean;
|
3603
3586
|
}>>;
|
3604
3587
|
};
|
3588
|
+
get: (options?: {
|
3589
|
+
headers?: Record<string, unknown> | undefined;
|
3590
|
+
query?: Record<string, unknown> | undefined;
|
3591
|
+
fetch?: RequestInit | undefined;
|
3592
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3593
|
+
200: {
|
3594
|
+
tags: string[];
|
3595
|
+
address: string;
|
3596
|
+
creatorId: string | null;
|
3597
|
+
};
|
3598
|
+
}>>;
|
3605
3599
|
tags: {
|
3606
3600
|
patch: (body: {
|
3607
3601
|
tags: string[];
|
@@ -4499,7 +4493,7 @@ declare const eden: {
|
|
4499
4493
|
};
|
4500
4494
|
};
|
4501
4495
|
creators: ((params: {
|
4502
|
-
|
4496
|
+
address: string | number;
|
4503
4497
|
}) => {
|
4504
4498
|
get: (options?: {
|
4505
4499
|
headers?: Record<string, unknown> | undefined;
|
@@ -4507,11 +4501,15 @@ declare const eden: {
|
|
4507
4501
|
fetch?: RequestInit | undefined;
|
4508
4502
|
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4509
4503
|
200: {
|
4504
|
+
Users: {
|
4505
|
+
tags: string[];
|
4506
|
+
address: string;
|
4507
|
+
creatorId: string | null;
|
4508
|
+
}[];
|
4510
4509
|
name: string;
|
4511
4510
|
id: string;
|
4512
|
-
|
4513
|
-
|
4514
|
-
rebateFee?: number | undefined;
|
4511
|
+
icon: string | null;
|
4512
|
+
rebateFee: number;
|
4515
4513
|
};
|
4516
4514
|
}>>;
|
4517
4515
|
patch: (body: {
|
@@ -4532,47 +4530,170 @@ declare const eden: {
|
|
4532
4530
|
rebateFee: number;
|
4533
4531
|
};
|
4534
4532
|
}>>;
|
4535
|
-
|
4536
|
-
|
4537
|
-
|
4538
|
-
}
|
4539
|
-
|
4540
|
-
|
4541
|
-
|
4533
|
+
delete: (body: unknown, options: {
|
4534
|
+
headers: {
|
4535
|
+
authorization: string;
|
4536
|
+
};
|
4537
|
+
query?: Record<string, unknown> | undefined;
|
4538
|
+
fetch?: RequestInit | undefined;
|
4539
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4540
|
+
200: {
|
4541
|
+
name: string;
|
4542
|
+
id: string;
|
4543
|
+
icon: string | null;
|
4544
|
+
rebateFee: number;
|
4545
|
+
};
|
4546
|
+
}>>;
|
4547
|
+
dashboard: {
|
4548
|
+
get: (options?: {
|
4549
|
+
headers?: Record<string, unknown> | undefined;
|
4542
4550
|
query?: Record<string, unknown> | undefined;
|
4543
4551
|
fetch?: RequestInit | undefined;
|
4544
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4552
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4545
4553
|
200: {
|
4546
|
-
|
4547
|
-
|
4548
|
-
|
4549
|
-
|
4554
|
+
pastCampaigns: number;
|
4555
|
+
liveCampaigns: number;
|
4556
|
+
futureCampaigns: number;
|
4557
|
+
incentivizedTvl: number;
|
4558
|
+
totalCampaigns: number;
|
4559
|
+
creatorId: string | null;
|
4550
4560
|
};
|
4551
4561
|
}>>;
|
4552
4562
|
};
|
4553
|
-
|
4554
|
-
index: {
|
4563
|
+
campaigns: {
|
4555
4564
|
get: (options: {
|
4556
4565
|
headers?: Record<string, unknown> | undefined;
|
4557
4566
|
query: {
|
4558
|
-
|
4559
|
-
page?: number | undefined;
|
4560
|
-
address?: string | undefined;
|
4567
|
+
status?: "PAST" | "LIVE" | "FUTURE" | undefined;
|
4561
4568
|
};
|
4562
4569
|
fetch?: RequestInit | undefined;
|
4563
4570
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4564
4571
|
200: ({
|
4565
|
-
|
4566
|
-
|
4567
|
-
|
4572
|
+
Opportunity: {
|
4573
|
+
status: import("@db/api").$Enums.Status;
|
4574
|
+
type: string;
|
4575
|
+
name: string;
|
4576
|
+
description: string;
|
4577
|
+
id: string;
|
4578
|
+
tags: string[];
|
4579
|
+
identifier: string;
|
4580
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
4581
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
4582
|
+
chainId: number;
|
4583
|
+
howToSteps: string[];
|
4584
|
+
depositUrl: string | null;
|
4585
|
+
explorerAddress: string | null;
|
4586
|
+
mainProtocolId: string | null;
|
4587
|
+
tvl: number;
|
4588
|
+
apr: number;
|
4589
|
+
dailyRewards: number;
|
4590
|
+
lastCampaignCreatedAt: Date;
|
4591
|
+
};
|
4568
4592
|
} & {
|
4569
|
-
|
4570
|
-
|
4571
|
-
|
4593
|
+
type: string;
|
4594
|
+
description: string | null;
|
4595
|
+
id: string;
|
4596
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
4597
|
+
subType: number | null;
|
4598
|
+
computeChainId: number;
|
4599
|
+
distributionChainId: number;
|
4600
|
+
campaignId: string;
|
4601
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
4602
|
+
rewardTokenId: string;
|
4603
|
+
amount: string;
|
4604
|
+
opportunityId: string;
|
4605
|
+
startTimestamp: bigint;
|
4606
|
+
endTimestamp: bigint;
|
4607
|
+
creatorAddress: string;
|
4608
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
4609
|
+
createdAt: Date;
|
4610
|
+
rootCampaignId: string | null;
|
4611
|
+
parentCampaignId: string | null;
|
4612
|
+
})[] | {
|
4613
|
+
params: any;
|
4614
|
+
chain: {
|
4615
|
+
name: string;
|
4616
|
+
id: number;
|
4617
|
+
icon: string;
|
4618
|
+
};
|
4619
|
+
endTimestamp: number;
|
4620
|
+
startTimestamp: number;
|
4621
|
+
rewardToken: {
|
4622
|
+
symbol: string;
|
4623
|
+
name: string | null;
|
4624
|
+
id: string;
|
4625
|
+
icon: string;
|
4626
|
+
address: string;
|
4627
|
+
chainId: number;
|
4628
|
+
decimals: number;
|
4629
|
+
verified: boolean;
|
4630
|
+
isTest: boolean;
|
4631
|
+
isPoint: boolean;
|
4632
|
+
isPreTGE: boolean;
|
4633
|
+
isNative: boolean;
|
4634
|
+
} & {
|
4635
|
+
price?: number | null | undefined;
|
4636
|
+
};
|
4637
|
+
distributionChain: {
|
4638
|
+
name: string;
|
4639
|
+
id: number;
|
4640
|
+
icon: string;
|
4641
|
+
} | undefined;
|
4642
|
+
campaignStatus: {
|
4643
|
+
computedUntil: number;
|
4644
|
+
processingStarted: number;
|
4645
|
+
status: import("@db/api").$Enums.RunStatus;
|
4646
|
+
error: string;
|
4647
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
4648
|
+
campaignId: string;
|
4649
|
+
} | undefined;
|
4650
|
+
creatorAddress: string;
|
4651
|
+
creator: {
|
4652
|
+
tags: string[];
|
4653
|
+
address: string;
|
4654
|
+
creatorId: string | null;
|
4655
|
+
};
|
4656
|
+
createdAt: string;
|
4657
|
+
description: string | undefined;
|
4658
|
+
parentCampaignId: string | undefined;
|
4659
|
+
rootCampaignId: string | undefined;
|
4660
|
+
Opportunity: {
|
4661
|
+
status: import("@db/api").$Enums.Status;
|
4662
|
+
type: string;
|
4663
|
+
name: string;
|
4664
|
+
description: string;
|
4665
|
+
id: string;
|
4666
|
+
tags: string[];
|
4667
|
+
identifier: string;
|
4668
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
4669
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
4670
|
+
chainId: number;
|
4671
|
+
howToSteps: string[];
|
4672
|
+
depositUrl: string | null;
|
4673
|
+
explorerAddress: string | null;
|
4674
|
+
mainProtocolId: string | null;
|
4675
|
+
tvl: number;
|
4676
|
+
apr: number;
|
4677
|
+
dailyRewards: number;
|
4678
|
+
lastCampaignCreatedAt: Date;
|
4679
|
+
};
|
4680
|
+
type: string;
|
4681
|
+
id: string;
|
4682
|
+
subType: number | null;
|
4683
|
+
computeChainId: number;
|
4684
|
+
distributionChainId: number;
|
4685
|
+
campaignId: string;
|
4686
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
4687
|
+
rewardTokenId: string;
|
4688
|
+
amount: string;
|
4689
|
+
opportunityId: string;
|
4690
|
+
}[];
|
4572
4691
|
}>>;
|
4692
|
+
};
|
4693
|
+
}) & {
|
4694
|
+
index: {
|
4573
4695
|
post: (body: {
|
4574
4696
|
icon?: string | undefined;
|
4575
|
-
rebateFee?: number | undefined;
|
4576
4697
|
name: string;
|
4577
4698
|
id: string;
|
4578
4699
|
addresses: string[];
|
@@ -4590,7 +4711,57 @@ declare const eden: {
|
|
4590
4711
|
rebateFee: number;
|
4591
4712
|
};
|
4592
4713
|
}>>;
|
4714
|
+
get: (options: {
|
4715
|
+
headers?: Record<string, unknown> | undefined;
|
4716
|
+
query: {
|
4717
|
+
id?: string | undefined;
|
4718
|
+
items?: number | undefined;
|
4719
|
+
page?: number | undefined;
|
4720
|
+
address?: string | undefined;
|
4721
|
+
};
|
4722
|
+
fetch?: RequestInit | undefined;
|
4723
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4724
|
+
200: ({
|
4725
|
+
Users: {
|
4726
|
+
address: string;
|
4727
|
+
}[];
|
4728
|
+
} & {
|
4729
|
+
name: string;
|
4730
|
+
id: string;
|
4731
|
+
icon: string | null;
|
4732
|
+
rebateFee: number;
|
4733
|
+
})[];
|
4734
|
+
}>>;
|
4593
4735
|
};
|
4736
|
+
campaigns: ((params: {
|
4737
|
+
id: string | number;
|
4738
|
+
}) => {
|
4739
|
+
get: (options?: {
|
4740
|
+
headers?: Record<string, unknown> | undefined;
|
4741
|
+
query?: Record<string, unknown> | undefined;
|
4742
|
+
fetch?: RequestInit | undefined;
|
4743
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4744
|
+
200: {
|
4745
|
+
tvlRecords: {
|
4746
|
+
total: number;
|
4747
|
+
timestamp: bigint;
|
4748
|
+
}[];
|
4749
|
+
aprRecords: {
|
4750
|
+
timestamp: bigint;
|
4751
|
+
apr: number;
|
4752
|
+
}[];
|
4753
|
+
dailyRewardsRecords: {
|
4754
|
+
total: number;
|
4755
|
+
timestamp: bigint;
|
4756
|
+
}[];
|
4757
|
+
walletCount: {
|
4758
|
+
timestamp: bigint;
|
4759
|
+
walletCount: number;
|
4760
|
+
}[];
|
4761
|
+
tvlInflowPerDollar: bigint;
|
4762
|
+
};
|
4763
|
+
}>>;
|
4764
|
+
}) & {};
|
4594
4765
|
};
|
4595
4766
|
referral: {
|
4596
4767
|
code: {
|
@@ -7284,7 +7455,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
7284
7455
|
};
|
7285
7456
|
} & {
|
7286
7457
|
":id": {
|
7287
|
-
|
7458
|
+
metrics: {
|
7288
7459
|
get: {
|
7289
7460
|
body: unknown;
|
7290
7461
|
params: {
|
@@ -7300,8 +7471,17 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
7300
7471
|
}[];
|
7301
7472
|
aprRecords: {
|
7302
7473
|
timestamp: bigint;
|
7303
|
-
|
7474
|
+
apr: number;
|
7475
|
+
}[];
|
7476
|
+
dailyRewardsRecords: {
|
7477
|
+
total: number;
|
7478
|
+
timestamp: bigint;
|
7479
|
+
}[];
|
7480
|
+
walletCount: {
|
7481
|
+
timestamp: bigint;
|
7482
|
+
walletCount: number;
|
7304
7483
|
}[];
|
7484
|
+
tvlInflowPerDollar: bigint;
|
7305
7485
|
};
|
7306
7486
|
};
|
7307
7487
|
};
|
@@ -9439,37 +9619,163 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
9439
9619
|
} & {
|
9440
9620
|
v4: {
|
9441
9621
|
users: {
|
9442
|
-
|
9443
|
-
|
9444
|
-
|
9445
|
-
|
9446
|
-
|
9447
|
-
|
9448
|
-
|
9449
|
-
|
9450
|
-
|
9451
|
-
|
9452
|
-
|
9453
|
-
|
9454
|
-
|
9455
|
-
|
9456
|
-
|
9457
|
-
|
9458
|
-
|
9622
|
+
":address": {
|
9623
|
+
rewards: {
|
9624
|
+
get: {
|
9625
|
+
body: unknown;
|
9626
|
+
params: {
|
9627
|
+
address: string;
|
9628
|
+
};
|
9629
|
+
query: {
|
9630
|
+
test?: boolean | undefined;
|
9631
|
+
reloadChainId?: number | undefined;
|
9632
|
+
claimableOnly?: boolean | undefined;
|
9633
|
+
chainId: number[];
|
9634
|
+
};
|
9635
|
+
headers: unknown;
|
9636
|
+
response: {
|
9637
|
+
200: (Omit<{
|
9638
|
+
chain: import("@db/api").Chain;
|
9639
|
+
rewards: Awaited<ReturnType<typeof import("../modules/v4/reward/reward.service").RewardService["format"]>>;
|
9640
|
+
}, "rewards"> & {
|
9641
|
+
rewards: (Omit<{
|
9642
|
+
token: {
|
9643
|
+
symbol: string;
|
9644
|
+
name: string | null;
|
9645
|
+
id: string;
|
9646
|
+
icon: string;
|
9647
|
+
address: string;
|
9648
|
+
chainId: number;
|
9649
|
+
decimals: number;
|
9650
|
+
displaySymbol: string;
|
9651
|
+
verified: boolean;
|
9652
|
+
isTest: boolean;
|
9653
|
+
isPoint: boolean;
|
9654
|
+
isPreTGE: boolean;
|
9655
|
+
isNative: boolean;
|
9656
|
+
price: number | null;
|
9657
|
+
};
|
9658
|
+
breakdowns: {
|
9659
|
+
campaignId: string;
|
9660
|
+
subCampaignId: string | undefined;
|
9661
|
+
opportunity: {
|
9662
|
+
Chain: {
|
9663
|
+
name: string;
|
9664
|
+
id: number;
|
9665
|
+
icon: string;
|
9666
|
+
};
|
9667
|
+
Tokens: {
|
9668
|
+
symbol: string;
|
9669
|
+
name: string | null;
|
9670
|
+
id: string;
|
9671
|
+
icon: string;
|
9672
|
+
address: string;
|
9673
|
+
chainId: number;
|
9674
|
+
decimals: number;
|
9675
|
+
displaySymbol: string;
|
9676
|
+
verified: boolean;
|
9677
|
+
isTest: boolean;
|
9678
|
+
isPoint: boolean;
|
9679
|
+
isPreTGE: boolean;
|
9680
|
+
isNative: boolean;
|
9681
|
+
price: number | null;
|
9682
|
+
}[];
|
9683
|
+
Protocols: {
|
9684
|
+
url: string;
|
9685
|
+
name: string;
|
9686
|
+
description: string;
|
9687
|
+
id: string;
|
9688
|
+
tags: string[];
|
9689
|
+
icon: string;
|
9690
|
+
}[];
|
9691
|
+
MainProtocol: {
|
9692
|
+
url: string;
|
9693
|
+
name: string;
|
9694
|
+
description: string;
|
9695
|
+
id: string;
|
9696
|
+
tags: string[];
|
9697
|
+
icon: string;
|
9698
|
+
} | null;
|
9699
|
+
} & {
|
9700
|
+
status: import("@db/api").$Enums.Status;
|
9701
|
+
type: string;
|
9702
|
+
name: string;
|
9703
|
+
description: string;
|
9704
|
+
id: string;
|
9705
|
+
tags: string[];
|
9706
|
+
identifier: string;
|
9707
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
9708
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
9709
|
+
chainId: number;
|
9710
|
+
howToSteps: string[];
|
9711
|
+
depositUrl: string | null;
|
9712
|
+
explorerAddress: string | null;
|
9713
|
+
mainProtocolId: string | null;
|
9714
|
+
tvl: number;
|
9715
|
+
apr: number;
|
9716
|
+
dailyRewards: number;
|
9717
|
+
lastCampaignCreatedAt: Date;
|
9718
|
+
};
|
9719
|
+
reason: string;
|
9720
|
+
pending: string;
|
9721
|
+
amount: string;
|
9722
|
+
claimed: string;
|
9723
|
+
}[];
|
9724
|
+
claimed: bigint;
|
9725
|
+
amount: bigint;
|
9726
|
+
pending: bigint;
|
9727
|
+
root: string;
|
9728
|
+
recipient: string;
|
9729
|
+
proofs: string[];
|
9730
|
+
}, "breakdowns"> & {
|
9731
|
+
breakdowns: {
|
9732
|
+
campaignId: string;
|
9733
|
+
subCampaignId: string | undefined;
|
9734
|
+
reason: string;
|
9735
|
+
pending: string;
|
9736
|
+
amount: string;
|
9737
|
+
claimed: string;
|
9738
|
+
}[];
|
9739
|
+
})[];
|
9740
|
+
})[];
|
9741
|
+
};
|
9459
9742
|
};
|
9460
9743
|
};
|
9461
9744
|
};
|
9462
9745
|
};
|
9463
9746
|
} & {
|
9464
9747
|
users: {
|
9465
|
-
|
9748
|
+
":address": {
|
9749
|
+
terms: {
|
9750
|
+
get: {
|
9751
|
+
body: unknown;
|
9752
|
+
params: {
|
9753
|
+
address: string;
|
9754
|
+
};
|
9755
|
+
query: {
|
9756
|
+
chainId: number;
|
9757
|
+
};
|
9758
|
+
headers: unknown;
|
9759
|
+
response: {
|
9760
|
+
200: boolean;
|
9761
|
+
};
|
9762
|
+
};
|
9763
|
+
};
|
9764
|
+
};
|
9765
|
+
};
|
9766
|
+
} & {
|
9767
|
+
users: {
|
9768
|
+
index: {
|
9466
9769
|
get: {
|
9467
9770
|
body: unknown;
|
9468
9771
|
params: {};
|
9469
|
-
query:
|
9470
|
-
|
9471
|
-
|
9772
|
+
query: {
|
9773
|
+
items?: number | undefined;
|
9774
|
+
tags?: string[] | undefined;
|
9775
|
+
page?: number | undefined;
|
9776
|
+
address?: string | undefined;
|
9472
9777
|
};
|
9778
|
+
headers: unknown;
|
9473
9779
|
response: {
|
9474
9780
|
200: {
|
9475
9781
|
tags: string[];
|
@@ -9495,30 +9801,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
9495
9801
|
tags: string[];
|
9496
9802
|
address: string;
|
9497
9803
|
creatorId: string | null;
|
9498
|
-
} | null;
|
9499
|
-
};
|
9500
|
-
};
|
9501
|
-
};
|
9502
|
-
};
|
9503
|
-
} & {
|
9504
|
-
users: {
|
9505
|
-
":address": {
|
9506
|
-
creator: {
|
9507
|
-
get: {
|
9508
|
-
body: unknown;
|
9509
|
-
params: {
|
9510
|
-
address: string;
|
9511
|
-
};
|
9512
|
-
query: unknown;
|
9513
|
-
headers: unknown;
|
9514
|
-
response: {
|
9515
|
-
200: {
|
9516
|
-
name: string;
|
9517
|
-
id: string;
|
9518
|
-
addresses: string[];
|
9519
|
-
icon?: string | undefined;
|
9520
|
-
rebateFee?: number | undefined;
|
9521
|
-
} | null;
|
9522
9804
|
};
|
9523
9805
|
};
|
9524
9806
|
};
|
@@ -9651,132 +9933,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
9651
9933
|
};
|
9652
9934
|
};
|
9653
9935
|
};
|
9654
|
-
} & {
|
9655
|
-
users: {
|
9656
|
-
":address": {
|
9657
|
-
rewards: {
|
9658
|
-
get: {
|
9659
|
-
body: unknown;
|
9660
|
-
params: {
|
9661
|
-
address: string;
|
9662
|
-
};
|
9663
|
-
query: {
|
9664
|
-
test?: boolean | undefined;
|
9665
|
-
reloadChainId?: number | undefined;
|
9666
|
-
claimableOnly?: boolean | undefined;
|
9667
|
-
chainId: number[];
|
9668
|
-
};
|
9669
|
-
headers: unknown;
|
9670
|
-
response: {
|
9671
|
-
200: (Omit<{
|
9672
|
-
chain: import("@db/api").Chain;
|
9673
|
-
rewards: Awaited<ReturnType<typeof import("../modules/v4/reward/reward.service").RewardService["format"]>>;
|
9674
|
-
}, "rewards"> & {
|
9675
|
-
rewards: (Omit<{
|
9676
|
-
token: {
|
9677
|
-
symbol: string;
|
9678
|
-
name: string | null;
|
9679
|
-
id: string;
|
9680
|
-
icon: string;
|
9681
|
-
address: string;
|
9682
|
-
chainId: number;
|
9683
|
-
decimals: number;
|
9684
|
-
displaySymbol: string;
|
9685
|
-
verified: boolean;
|
9686
|
-
isTest: boolean;
|
9687
|
-
isPoint: boolean;
|
9688
|
-
isPreTGE: boolean;
|
9689
|
-
isNative: boolean;
|
9690
|
-
price: number | null;
|
9691
|
-
};
|
9692
|
-
breakdowns: {
|
9693
|
-
campaignId: string;
|
9694
|
-
subCampaignId: string | undefined;
|
9695
|
-
opportunity: {
|
9696
|
-
Chain: {
|
9697
|
-
name: string;
|
9698
|
-
id: number;
|
9699
|
-
icon: string;
|
9700
|
-
};
|
9701
|
-
Tokens: {
|
9702
|
-
symbol: string;
|
9703
|
-
name: string | null;
|
9704
|
-
id: string;
|
9705
|
-
icon: string;
|
9706
|
-
address: string;
|
9707
|
-
chainId: number;
|
9708
|
-
decimals: number;
|
9709
|
-
displaySymbol: string;
|
9710
|
-
verified: boolean;
|
9711
|
-
isTest: boolean;
|
9712
|
-
isPoint: boolean;
|
9713
|
-
isPreTGE: boolean;
|
9714
|
-
isNative: boolean;
|
9715
|
-
price: number | null;
|
9716
|
-
}[];
|
9717
|
-
Protocols: {
|
9718
|
-
url: string;
|
9719
|
-
name: string;
|
9720
|
-
description: string;
|
9721
|
-
id: string;
|
9722
|
-
tags: string[];
|
9723
|
-
icon: string;
|
9724
|
-
}[];
|
9725
|
-
MainProtocol: {
|
9726
|
-
url: string;
|
9727
|
-
name: string;
|
9728
|
-
description: string;
|
9729
|
-
id: string;
|
9730
|
-
tags: string[];
|
9731
|
-
icon: string;
|
9732
|
-
} | null;
|
9733
|
-
} & {
|
9734
|
-
status: import("@db/api").$Enums.Status;
|
9735
|
-
type: string;
|
9736
|
-
name: string;
|
9737
|
-
description: string;
|
9738
|
-
id: string;
|
9739
|
-
tags: string[];
|
9740
|
-
identifier: string;
|
9741
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
9742
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
9743
|
-
chainId: number;
|
9744
|
-
howToSteps: string[];
|
9745
|
-
depositUrl: string | null;
|
9746
|
-
explorerAddress: string | null;
|
9747
|
-
mainProtocolId: string | null;
|
9748
|
-
tvl: number;
|
9749
|
-
apr: number;
|
9750
|
-
dailyRewards: number;
|
9751
|
-
lastCampaignCreatedAt: Date;
|
9752
|
-
};
|
9753
|
-
reason: string;
|
9754
|
-
pending: string;
|
9755
|
-
amount: string;
|
9756
|
-
claimed: string;
|
9757
|
-
}[];
|
9758
|
-
claimed: bigint;
|
9759
|
-
amount: bigint;
|
9760
|
-
pending: bigint;
|
9761
|
-
root: string;
|
9762
|
-
recipient: string;
|
9763
|
-
proofs: string[];
|
9764
|
-
}, "breakdowns"> & {
|
9765
|
-
breakdowns: {
|
9766
|
-
campaignId: string;
|
9767
|
-
subCampaignId: string | undefined;
|
9768
|
-
reason: string;
|
9769
|
-
pending: string;
|
9770
|
-
amount: string;
|
9771
|
-
claimed: string;
|
9772
|
-
}[];
|
9773
|
-
})[];
|
9774
|
-
})[];
|
9775
|
-
};
|
9776
|
-
};
|
9777
|
-
};
|
9778
|
-
};
|
9779
|
-
};
|
9780
9936
|
} & {
|
9781
9937
|
users: {
|
9782
9938
|
index: {
|
@@ -9802,36 +9958,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
9802
9958
|
};
|
9803
9959
|
} & {
|
9804
9960
|
users: {
|
9805
|
-
|
9806
|
-
|
9961
|
+
tags: {
|
9962
|
+
get: {
|
9807
9963
|
body: unknown;
|
9808
9964
|
params: {};
|
9809
|
-
query: unknown;
|
9810
|
-
headers: {
|
9811
|
-
authorization: string;
|
9812
|
-
};
|
9813
|
-
response: {
|
9814
|
-
200:
|
9815
|
-
|
9816
|
-
};
|
9817
|
-
};
|
9818
|
-
};
|
9819
|
-
} & {
|
9820
|
-
users: {
|
9821
|
-
":address": {
|
9822
|
-
terms: {
|
9823
|
-
get: {
|
9824
|
-
body: unknown;
|
9825
|
-
params: {
|
9965
|
+
query: unknown;
|
9966
|
+
headers: {
|
9967
|
+
authorization: string;
|
9968
|
+
};
|
9969
|
+
response: {
|
9970
|
+
200: {
|
9971
|
+
tags: string[];
|
9826
9972
|
address: string;
|
9827
|
-
|
9828
|
-
|
9829
|
-
chainId: number;
|
9830
|
-
};
|
9831
|
-
headers: unknown;
|
9832
|
-
response: {
|
9833
|
-
200: boolean;
|
9834
|
-
};
|
9973
|
+
creatorId: string | null;
|
9974
|
+
}[];
|
9835
9975
|
};
|
9836
9976
|
};
|
9837
9977
|
};
|
@@ -9862,6 +10002,22 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
9862
10002
|
};
|
9863
10003
|
};
|
9864
10004
|
};
|
10005
|
+
} & {
|
10006
|
+
users: {
|
10007
|
+
sync: {
|
10008
|
+
post: {
|
10009
|
+
body: unknown;
|
10010
|
+
params: {};
|
10011
|
+
query: unknown;
|
10012
|
+
headers: {
|
10013
|
+
authorization: string;
|
10014
|
+
};
|
10015
|
+
response: {
|
10016
|
+
200: void;
|
10017
|
+
};
|
10018
|
+
};
|
10019
|
+
};
|
10020
|
+
};
|
9865
10021
|
};
|
9866
10022
|
} & {
|
9867
10023
|
v4: {
|
@@ -10907,12 +11063,39 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
10907
11063
|
};
|
10908
11064
|
} & {
|
10909
11065
|
v4: {
|
11066
|
+
creators: {
|
11067
|
+
index: {
|
11068
|
+
post: {
|
11069
|
+
body: {
|
11070
|
+
icon?: string | undefined;
|
11071
|
+
name: string;
|
11072
|
+
id: string;
|
11073
|
+
addresses: string[];
|
11074
|
+
};
|
11075
|
+
params: {};
|
11076
|
+
query: unknown;
|
11077
|
+
headers: {
|
11078
|
+
authorization: string;
|
11079
|
+
};
|
11080
|
+
response: {
|
11081
|
+
200: {
|
11082
|
+
name: string;
|
11083
|
+
id: string;
|
11084
|
+
icon: string | null;
|
11085
|
+
rebateFee: number;
|
11086
|
+
};
|
11087
|
+
};
|
11088
|
+
};
|
11089
|
+
};
|
11090
|
+
};
|
11091
|
+
} & {
|
10910
11092
|
creators: {
|
10911
11093
|
index: {
|
10912
11094
|
get: {
|
10913
11095
|
body: unknown;
|
10914
11096
|
params: {};
|
10915
11097
|
query: {
|
11098
|
+
id?: string | undefined;
|
10916
11099
|
items?: number | undefined;
|
10917
11100
|
page?: number | undefined;
|
10918
11101
|
address?: string | undefined;
|
@@ -10920,12 +11103,14 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
10920
11103
|
headers: unknown;
|
10921
11104
|
response: {
|
10922
11105
|
200: ({
|
11106
|
+
Users: {
|
11107
|
+
address: string;
|
11108
|
+
}[];
|
11109
|
+
} & {
|
10923
11110
|
name: string;
|
10924
11111
|
id: string;
|
10925
|
-
|
10926
|
-
|
10927
|
-
icon?: string | undefined;
|
10928
|
-
rebateFee?: number | undefined;
|
11112
|
+
icon: string | null;
|
11113
|
+
rebateFee: number;
|
10929
11114
|
})[];
|
10930
11115
|
};
|
10931
11116
|
};
|
@@ -10933,21 +11118,25 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
10933
11118
|
};
|
10934
11119
|
} & {
|
10935
11120
|
creators: {
|
10936
|
-
":
|
11121
|
+
":address": {
|
10937
11122
|
get: {
|
10938
11123
|
body: unknown;
|
10939
11124
|
params: {
|
10940
|
-
|
11125
|
+
address: string;
|
10941
11126
|
};
|
10942
11127
|
query: unknown;
|
10943
11128
|
headers: unknown;
|
10944
11129
|
response: {
|
10945
11130
|
200: {
|
11131
|
+
Users: {
|
11132
|
+
tags: string[];
|
11133
|
+
address: string;
|
11134
|
+
creatorId: string | null;
|
11135
|
+
}[];
|
10946
11136
|
name: string;
|
10947
11137
|
id: string;
|
10948
|
-
|
10949
|
-
|
10950
|
-
rebateFee?: number | undefined;
|
11138
|
+
icon: string | null;
|
11139
|
+
rebateFee: number;
|
10951
11140
|
};
|
10952
11141
|
};
|
10953
11142
|
};
|
@@ -10955,16 +11144,16 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
10955
11144
|
};
|
10956
11145
|
} & {
|
10957
11146
|
creators: {
|
10958
|
-
|
10959
|
-
|
11147
|
+
":address": {
|
11148
|
+
patch: {
|
10960
11149
|
body: {
|
10961
11150
|
icon?: string | undefined;
|
10962
|
-
rebateFee?: number | undefined;
|
10963
11151
|
name: string;
|
10964
|
-
id: string;
|
10965
11152
|
addresses: string[];
|
10966
11153
|
};
|
10967
|
-
params: {
|
11154
|
+
params: {
|
11155
|
+
address: string;
|
11156
|
+
};
|
10968
11157
|
query: unknown;
|
10969
11158
|
headers: {
|
10970
11159
|
authorization: string;
|
@@ -10982,15 +11171,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
10982
11171
|
};
|
10983
11172
|
} & {
|
10984
11173
|
creators: {
|
10985
|
-
":
|
10986
|
-
|
10987
|
-
body:
|
10988
|
-
icon?: string | undefined;
|
10989
|
-
name: string;
|
10990
|
-
addresses: string[];
|
10991
|
-
};
|
11174
|
+
":address": {
|
11175
|
+
delete: {
|
11176
|
+
body: unknown;
|
10992
11177
|
params: {
|
10993
|
-
|
11178
|
+
address: string;
|
10994
11179
|
};
|
10995
11180
|
query: unknown;
|
10996
11181
|
headers: {
|
@@ -11009,25 +11194,198 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
11009
11194
|
};
|
11010
11195
|
} & {
|
11011
11196
|
creators: {
|
11012
|
-
":
|
11013
|
-
|
11014
|
-
|
11015
|
-
body:
|
11016
|
-
|
11197
|
+
":address": {
|
11198
|
+
dashboard: {
|
11199
|
+
get: {
|
11200
|
+
body: unknown;
|
11201
|
+
params: {
|
11202
|
+
address: string;
|
11203
|
+
};
|
11204
|
+
query: unknown;
|
11205
|
+
headers: unknown;
|
11206
|
+
response: {
|
11207
|
+
200: {
|
11208
|
+
pastCampaigns: number;
|
11209
|
+
liveCampaigns: number;
|
11210
|
+
futureCampaigns: number;
|
11211
|
+
incentivizedTvl: number;
|
11212
|
+
totalCampaigns: number;
|
11213
|
+
creatorId: string | null;
|
11214
|
+
};
|
11215
|
+
};
|
11216
|
+
};
|
11217
|
+
};
|
11218
|
+
};
|
11219
|
+
};
|
11220
|
+
} & {
|
11221
|
+
creators: {
|
11222
|
+
":address": {
|
11223
|
+
campaigns: {
|
11224
|
+
get: {
|
11225
|
+
body: unknown;
|
11226
|
+
params: {
|
11227
|
+
address: string;
|
11228
|
+
};
|
11229
|
+
query: {
|
11230
|
+
status?: "PAST" | "LIVE" | "FUTURE" | undefined;
|
11231
|
+
};
|
11232
|
+
headers: unknown;
|
11233
|
+
response: {
|
11234
|
+
200: ({
|
11235
|
+
Opportunity: {
|
11236
|
+
status: import("@db/api").$Enums.Status;
|
11237
|
+
type: string;
|
11238
|
+
name: string;
|
11239
|
+
description: string;
|
11240
|
+
id: string;
|
11241
|
+
tags: string[];
|
11242
|
+
identifier: string;
|
11243
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
11244
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
11245
|
+
chainId: number;
|
11246
|
+
howToSteps: string[];
|
11247
|
+
depositUrl: string | null;
|
11248
|
+
explorerAddress: string | null;
|
11249
|
+
mainProtocolId: string | null;
|
11250
|
+
tvl: number;
|
11251
|
+
apr: number;
|
11252
|
+
dailyRewards: number;
|
11253
|
+
lastCampaignCreatedAt: Date;
|
11254
|
+
};
|
11255
|
+
} & {
|
11256
|
+
type: string;
|
11257
|
+
description: string | null;
|
11258
|
+
id: string;
|
11259
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
11260
|
+
subType: number | null;
|
11261
|
+
computeChainId: number;
|
11262
|
+
distributionChainId: number;
|
11263
|
+
campaignId: string;
|
11264
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
11265
|
+
rewardTokenId: string;
|
11266
|
+
amount: string;
|
11267
|
+
opportunityId: string;
|
11268
|
+
startTimestamp: bigint;
|
11269
|
+
endTimestamp: bigint;
|
11270
|
+
creatorAddress: string;
|
11271
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
11272
|
+
createdAt: Date;
|
11273
|
+
rootCampaignId: string | null;
|
11274
|
+
parentCampaignId: string | null;
|
11275
|
+
})[] | {
|
11276
|
+
params: any;
|
11277
|
+
chain: {
|
11278
|
+
name: string;
|
11279
|
+
id: number;
|
11280
|
+
icon: string;
|
11281
|
+
};
|
11282
|
+
endTimestamp: number;
|
11283
|
+
startTimestamp: number;
|
11284
|
+
rewardToken: {
|
11285
|
+
symbol: string;
|
11286
|
+
name: string | null;
|
11287
|
+
id: string;
|
11288
|
+
icon: string;
|
11289
|
+
address: string;
|
11290
|
+
chainId: number;
|
11291
|
+
decimals: number;
|
11292
|
+
verified: boolean;
|
11293
|
+
isTest: boolean;
|
11294
|
+
isPoint: boolean;
|
11295
|
+
isPreTGE: boolean;
|
11296
|
+
isNative: boolean;
|
11297
|
+
} & {
|
11298
|
+
price?: number | null | undefined;
|
11299
|
+
};
|
11300
|
+
distributionChain: {
|
11301
|
+
name: string;
|
11302
|
+
id: number;
|
11303
|
+
icon: string;
|
11304
|
+
} | undefined;
|
11305
|
+
campaignStatus: {
|
11306
|
+
computedUntil: number;
|
11307
|
+
processingStarted: number;
|
11308
|
+
status: import("@db/api").$Enums.RunStatus;
|
11309
|
+
error: string;
|
11310
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
11311
|
+
campaignId: string;
|
11312
|
+
} | undefined;
|
11313
|
+
creatorAddress: string;
|
11314
|
+
creator: {
|
11315
|
+
tags: string[];
|
11316
|
+
address: string;
|
11317
|
+
creatorId: string | null;
|
11318
|
+
};
|
11319
|
+
createdAt: string;
|
11320
|
+
description: string | undefined;
|
11321
|
+
parentCampaignId: string | undefined;
|
11322
|
+
rootCampaignId: string | undefined;
|
11323
|
+
Opportunity: {
|
11324
|
+
status: import("@db/api").$Enums.Status;
|
11325
|
+
type: string;
|
11326
|
+
name: string;
|
11327
|
+
description: string;
|
11328
|
+
id: string;
|
11329
|
+
tags: string[];
|
11330
|
+
identifier: string;
|
11331
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
11332
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
11333
|
+
chainId: number;
|
11334
|
+
howToSteps: string[];
|
11335
|
+
depositUrl: string | null;
|
11336
|
+
explorerAddress: string | null;
|
11337
|
+
mainProtocolId: string | null;
|
11338
|
+
tvl: number;
|
11339
|
+
apr: number;
|
11340
|
+
dailyRewards: number;
|
11341
|
+
lastCampaignCreatedAt: Date;
|
11342
|
+
};
|
11343
|
+
type: string;
|
11344
|
+
id: string;
|
11345
|
+
subType: number | null;
|
11346
|
+
computeChainId: number;
|
11347
|
+
distributionChainId: number;
|
11348
|
+
campaignId: string;
|
11349
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
11350
|
+
rewardTokenId: string;
|
11351
|
+
amount: string;
|
11352
|
+
opportunityId: string;
|
11353
|
+
}[];
|
11017
11354
|
};
|
11355
|
+
};
|
11356
|
+
};
|
11357
|
+
};
|
11358
|
+
};
|
11359
|
+
} & {
|
11360
|
+
creators: {
|
11361
|
+
campaigns: {
|
11362
|
+
":id": {
|
11363
|
+
get: {
|
11364
|
+
body: unknown;
|
11018
11365
|
params: {
|
11019
11366
|
id: string;
|
11020
11367
|
};
|
11021
11368
|
query: unknown;
|
11022
|
-
headers:
|
11023
|
-
authorization: string;
|
11024
|
-
};
|
11369
|
+
headers: unknown;
|
11025
11370
|
response: {
|
11026
11371
|
200: {
|
11027
|
-
|
11028
|
-
|
11029
|
-
|
11030
|
-
|
11372
|
+
tvlRecords: {
|
11373
|
+
total: number;
|
11374
|
+
timestamp: bigint;
|
11375
|
+
}[];
|
11376
|
+
aprRecords: {
|
11377
|
+
timestamp: bigint;
|
11378
|
+
apr: number;
|
11379
|
+
}[];
|
11380
|
+
dailyRewardsRecords: {
|
11381
|
+
total: number;
|
11382
|
+
timestamp: bigint;
|
11383
|
+
}[];
|
11384
|
+
walletCount: {
|
11385
|
+
timestamp: bigint;
|
11386
|
+
walletCount: number;
|
11387
|
+
}[];
|
11388
|
+
tvlInflowPerDollar: bigint;
|
11031
11389
|
};
|
11032
11390
|
};
|
11033
11391
|
};
|
@@ -13457,7 +13815,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13457
13815
|
opportunityId: string;
|
13458
13816
|
};
|
13459
13817
|
}>>;
|
13460
|
-
|
13818
|
+
metrics: {
|
13461
13819
|
get: (options?: {
|
13462
13820
|
headers?: Record<string, unknown> | undefined;
|
13463
13821
|
query?: Record<string, unknown> | undefined;
|
@@ -13470,8 +13828,17 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13470
13828
|
}[];
|
13471
13829
|
aprRecords: {
|
13472
13830
|
timestamp: bigint;
|
13473
|
-
|
13831
|
+
apr: number;
|
13474
13832
|
}[];
|
13833
|
+
dailyRewardsRecords: {
|
13834
|
+
total: number;
|
13835
|
+
timestamp: bigint;
|
13836
|
+
}[];
|
13837
|
+
walletCount: {
|
13838
|
+
timestamp: bigint;
|
13839
|
+
walletCount: number;
|
13840
|
+
}[];
|
13841
|
+
tvlInflowPerDollar: bigint;
|
13475
13842
|
};
|
13476
13843
|
}>>;
|
13477
13844
|
};
|
@@ -15440,149 +15807,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
15440
15807
|
users: ((params: {
|
15441
15808
|
address: string | number;
|
15442
15809
|
}) => {
|
15443
|
-
get: (options?: {
|
15444
|
-
headers?: Record<string, unknown> | undefined;
|
15445
|
-
query?: Record<string, unknown> | undefined;
|
15446
|
-
fetch?: RequestInit | undefined;
|
15447
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
15448
|
-
200: {
|
15449
|
-
tags: string[];
|
15450
|
-
address: string;
|
15451
|
-
creatorId: string | null;
|
15452
|
-
} | null;
|
15453
|
-
}>>;
|
15454
|
-
creator: {
|
15455
|
-
get: (options?: {
|
15456
|
-
headers?: Record<string, unknown> | undefined;
|
15457
|
-
query?: Record<string, unknown> | undefined;
|
15458
|
-
fetch?: RequestInit | undefined;
|
15459
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
15460
|
-
200: {
|
15461
|
-
name: string;
|
15462
|
-
id: string;
|
15463
|
-
addresses: string[];
|
15464
|
-
icon?: string | undefined;
|
15465
|
-
rebateFee?: number | undefined;
|
15466
|
-
} | null;
|
15467
|
-
}>>;
|
15468
|
-
};
|
15469
15810
|
rewards: {
|
15470
|
-
breakdowns: {
|
15471
|
-
get: (options: {
|
15472
|
-
headers?: Record<string, unknown> | undefined;
|
15473
|
-
query: {
|
15474
|
-
test?: boolean | undefined;
|
15475
|
-
chainIds?: number[] | undefined;
|
15476
|
-
reloadChainId?: number | undefined;
|
15477
|
-
claimableOnly?: boolean | undefined;
|
15478
|
-
};
|
15479
|
-
fetch?: RequestInit | undefined;
|
15480
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
15481
|
-
200: (Omit<{
|
15482
|
-
chain: import("@db/api").Chain;
|
15483
|
-
rewards: Awaited<ReturnType<typeof import("../modules/v4/reward/reward.service").RewardService["format"]>>;
|
15484
|
-
}, "rewards"> & {
|
15485
|
-
rewards: (Omit<{
|
15486
|
-
token: {
|
15487
|
-
symbol: string;
|
15488
|
-
name: string | null;
|
15489
|
-
id: string;
|
15490
|
-
icon: string;
|
15491
|
-
address: string;
|
15492
|
-
chainId: number;
|
15493
|
-
decimals: number;
|
15494
|
-
displaySymbol: string;
|
15495
|
-
verified: boolean;
|
15496
|
-
isTest: boolean;
|
15497
|
-
isPoint: boolean;
|
15498
|
-
isPreTGE: boolean;
|
15499
|
-
isNative: boolean;
|
15500
|
-
price: number | null;
|
15501
|
-
};
|
15502
|
-
breakdowns: {
|
15503
|
-
campaignId: string;
|
15504
|
-
subCampaignId: string | undefined;
|
15505
|
-
opportunity: {
|
15506
|
-
Chain: {
|
15507
|
-
name: string;
|
15508
|
-
id: number;
|
15509
|
-
icon: string;
|
15510
|
-
};
|
15511
|
-
Tokens: {
|
15512
|
-
symbol: string;
|
15513
|
-
name: string | null;
|
15514
|
-
id: string;
|
15515
|
-
icon: string;
|
15516
|
-
address: string;
|
15517
|
-
chainId: number;
|
15518
|
-
decimals: number;
|
15519
|
-
displaySymbol: string;
|
15520
|
-
verified: boolean;
|
15521
|
-
isTest: boolean;
|
15522
|
-
isPoint: boolean;
|
15523
|
-
isPreTGE: boolean;
|
15524
|
-
isNative: boolean;
|
15525
|
-
price: number | null;
|
15526
|
-
}[];
|
15527
|
-
Protocols: {
|
15528
|
-
url: string;
|
15529
|
-
name: string;
|
15530
|
-
description: string;
|
15531
|
-
id: string;
|
15532
|
-
tags: string[];
|
15533
|
-
icon: string;
|
15534
|
-
}[];
|
15535
|
-
MainProtocol: {
|
15536
|
-
url: string;
|
15537
|
-
name: string;
|
15538
|
-
description: string;
|
15539
|
-
id: string;
|
15540
|
-
tags: string[];
|
15541
|
-
icon: string;
|
15542
|
-
} | null;
|
15543
|
-
} & {
|
15544
|
-
status: import("@db/api").$Enums.Status;
|
15545
|
-
type: string;
|
15546
|
-
name: string;
|
15547
|
-
description: string;
|
15548
|
-
id: string;
|
15549
|
-
tags: string[];
|
15550
|
-
identifier: string;
|
15551
|
-
action: import("@db/api").$Enums.OpportunityAction;
|
15552
|
-
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
15553
|
-
chainId: number;
|
15554
|
-
howToSteps: string[];
|
15555
|
-
depositUrl: string | null;
|
15556
|
-
explorerAddress: string | null;
|
15557
|
-
mainProtocolId: string | null;
|
15558
|
-
tvl: number;
|
15559
|
-
apr: number;
|
15560
|
-
dailyRewards: number;
|
15561
|
-
lastCampaignCreatedAt: Date;
|
15562
|
-
};
|
15563
|
-
reason: string;
|
15564
|
-
pending: string;
|
15565
|
-
amount: string;
|
15566
|
-
claimed: string;
|
15567
|
-
}[];
|
15568
|
-
claimed: bigint;
|
15569
|
-
amount: bigint;
|
15570
|
-
pending: bigint;
|
15571
|
-
root: string;
|
15572
|
-
recipient: string;
|
15573
|
-
proofs: string[];
|
15574
|
-
}, "breakdowns"> & {
|
15575
|
-
breakdowns: {
|
15576
|
-
opportunity: import("../modules/v4/opportunity/opportunity.model").Opportunity["model"];
|
15577
|
-
claimed: bigint;
|
15578
|
-
amount: bigint;
|
15579
|
-
pending: bigint;
|
15580
|
-
}[];
|
15581
|
-
})[];
|
15582
|
-
distributor: string;
|
15583
|
-
})[];
|
15584
|
-
}>>;
|
15585
|
-
};
|
15586
15811
|
get: (options: {
|
15587
15812
|
headers?: Record<string, unknown> | undefined;
|
15588
15813
|
query: {
|
@@ -15696,8 +15921,124 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
15696
15921
|
claimed: string;
|
15697
15922
|
}[];
|
15698
15923
|
})[];
|
15699
|
-
})[];
|
15700
|
-
}>>;
|
15924
|
+
})[];
|
15925
|
+
}>>;
|
15926
|
+
breakdowns: {
|
15927
|
+
get: (options: {
|
15928
|
+
headers?: Record<string, unknown> | undefined;
|
15929
|
+
query: {
|
15930
|
+
test?: boolean | undefined;
|
15931
|
+
chainIds?: number[] | undefined;
|
15932
|
+
reloadChainId?: number | undefined;
|
15933
|
+
claimableOnly?: boolean | undefined;
|
15934
|
+
};
|
15935
|
+
fetch?: RequestInit | undefined;
|
15936
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
15937
|
+
200: (Omit<{
|
15938
|
+
chain: import("@db/api").Chain;
|
15939
|
+
rewards: Awaited<ReturnType<typeof import("../modules/v4/reward/reward.service").RewardService["format"]>>;
|
15940
|
+
}, "rewards"> & {
|
15941
|
+
rewards: (Omit<{
|
15942
|
+
token: {
|
15943
|
+
symbol: string;
|
15944
|
+
name: string | null;
|
15945
|
+
id: string;
|
15946
|
+
icon: string;
|
15947
|
+
address: string;
|
15948
|
+
chainId: number;
|
15949
|
+
decimals: number;
|
15950
|
+
displaySymbol: string;
|
15951
|
+
verified: boolean;
|
15952
|
+
isTest: boolean;
|
15953
|
+
isPoint: boolean;
|
15954
|
+
isPreTGE: boolean;
|
15955
|
+
isNative: boolean;
|
15956
|
+
price: number | null;
|
15957
|
+
};
|
15958
|
+
breakdowns: {
|
15959
|
+
campaignId: string;
|
15960
|
+
subCampaignId: string | undefined;
|
15961
|
+
opportunity: {
|
15962
|
+
Chain: {
|
15963
|
+
name: string;
|
15964
|
+
id: number;
|
15965
|
+
icon: string;
|
15966
|
+
};
|
15967
|
+
Tokens: {
|
15968
|
+
symbol: string;
|
15969
|
+
name: string | null;
|
15970
|
+
id: string;
|
15971
|
+
icon: string;
|
15972
|
+
address: string;
|
15973
|
+
chainId: number;
|
15974
|
+
decimals: number;
|
15975
|
+
displaySymbol: string;
|
15976
|
+
verified: boolean;
|
15977
|
+
isTest: boolean;
|
15978
|
+
isPoint: boolean;
|
15979
|
+
isPreTGE: boolean;
|
15980
|
+
isNative: boolean;
|
15981
|
+
price: number | null;
|
15982
|
+
}[];
|
15983
|
+
Protocols: {
|
15984
|
+
url: string;
|
15985
|
+
name: string;
|
15986
|
+
description: string;
|
15987
|
+
id: string;
|
15988
|
+
tags: string[];
|
15989
|
+
icon: string;
|
15990
|
+
}[];
|
15991
|
+
MainProtocol: {
|
15992
|
+
url: string;
|
15993
|
+
name: string;
|
15994
|
+
description: string;
|
15995
|
+
id: string;
|
15996
|
+
tags: string[];
|
15997
|
+
icon: string;
|
15998
|
+
} | null;
|
15999
|
+
} & {
|
16000
|
+
status: import("@db/api").$Enums.Status;
|
16001
|
+
type: string;
|
16002
|
+
name: string;
|
16003
|
+
description: string;
|
16004
|
+
id: string;
|
16005
|
+
tags: string[];
|
16006
|
+
identifier: string;
|
16007
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
16008
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
16009
|
+
chainId: number;
|
16010
|
+
howToSteps: string[];
|
16011
|
+
depositUrl: string | null;
|
16012
|
+
explorerAddress: string | null;
|
16013
|
+
mainProtocolId: string | null;
|
16014
|
+
tvl: number;
|
16015
|
+
apr: number;
|
16016
|
+
dailyRewards: number;
|
16017
|
+
lastCampaignCreatedAt: Date;
|
16018
|
+
};
|
16019
|
+
reason: string;
|
16020
|
+
pending: string;
|
16021
|
+
amount: string;
|
16022
|
+
claimed: string;
|
16023
|
+
}[];
|
16024
|
+
claimed: bigint;
|
16025
|
+
amount: bigint;
|
16026
|
+
pending: bigint;
|
16027
|
+
root: string;
|
16028
|
+
recipient: string;
|
16029
|
+
proofs: string[];
|
16030
|
+
}, "breakdowns"> & {
|
16031
|
+
breakdowns: {
|
16032
|
+
opportunity: import("../modules/v4/opportunity/opportunity.model").Opportunity["model"];
|
16033
|
+
claimed: bigint;
|
16034
|
+
amount: bigint;
|
16035
|
+
pending: bigint;
|
16036
|
+
}[];
|
16037
|
+
})[];
|
16038
|
+
distributor: string;
|
16039
|
+
})[];
|
16040
|
+
}>>;
|
16041
|
+
};
|
15701
16042
|
};
|
15702
16043
|
terms: {
|
15703
16044
|
get: (options: {
|
@@ -15710,6 +16051,17 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
15710
16051
|
200: boolean;
|
15711
16052
|
}>>;
|
15712
16053
|
};
|
16054
|
+
get: (options?: {
|
16055
|
+
headers?: Record<string, unknown> | undefined;
|
16056
|
+
query?: Record<string, unknown> | undefined;
|
16057
|
+
fetch?: RequestInit | undefined;
|
16058
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
16059
|
+
200: {
|
16060
|
+
tags: string[];
|
16061
|
+
address: string;
|
16062
|
+
creatorId: string | null;
|
16063
|
+
};
|
16064
|
+
}>>;
|
15713
16065
|
tags: {
|
15714
16066
|
patch: (body: {
|
15715
16067
|
tags: string[];
|
@@ -16607,7 +16959,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16607
16959
|
};
|
16608
16960
|
};
|
16609
16961
|
creators: ((params: {
|
16610
|
-
|
16962
|
+
address: string | number;
|
16611
16963
|
}) => {
|
16612
16964
|
get: (options?: {
|
16613
16965
|
headers?: Record<string, unknown> | undefined;
|
@@ -16615,11 +16967,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16615
16967
|
fetch?: RequestInit | undefined;
|
16616
16968
|
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
16617
16969
|
200: {
|
16970
|
+
Users: {
|
16971
|
+
tags: string[];
|
16972
|
+
address: string;
|
16973
|
+
creatorId: string | null;
|
16974
|
+
}[];
|
16618
16975
|
name: string;
|
16619
16976
|
id: string;
|
16620
|
-
|
16621
|
-
|
16622
|
-
rebateFee?: number | undefined;
|
16977
|
+
icon: string | null;
|
16978
|
+
rebateFee: number;
|
16623
16979
|
};
|
16624
16980
|
}>>;
|
16625
16981
|
patch: (body: {
|
@@ -16640,47 +16996,170 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16640
16996
|
rebateFee: number;
|
16641
16997
|
};
|
16642
16998
|
}>>;
|
16643
|
-
|
16644
|
-
|
16645
|
-
|
16646
|
-
}
|
16647
|
-
|
16648
|
-
|
16649
|
-
|
16999
|
+
delete: (body: unknown, options: {
|
17000
|
+
headers: {
|
17001
|
+
authorization: string;
|
17002
|
+
};
|
17003
|
+
query?: Record<string, unknown> | undefined;
|
17004
|
+
fetch?: RequestInit | undefined;
|
17005
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17006
|
+
200: {
|
17007
|
+
name: string;
|
17008
|
+
id: string;
|
17009
|
+
icon: string | null;
|
17010
|
+
rebateFee: number;
|
17011
|
+
};
|
17012
|
+
}>>;
|
17013
|
+
dashboard: {
|
17014
|
+
get: (options?: {
|
17015
|
+
headers?: Record<string, unknown> | undefined;
|
16650
17016
|
query?: Record<string, unknown> | undefined;
|
16651
17017
|
fetch?: RequestInit | undefined;
|
16652
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17018
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
16653
17019
|
200: {
|
16654
|
-
|
16655
|
-
|
16656
|
-
|
16657
|
-
|
17020
|
+
pastCampaigns: number;
|
17021
|
+
liveCampaigns: number;
|
17022
|
+
futureCampaigns: number;
|
17023
|
+
incentivizedTvl: number;
|
17024
|
+
totalCampaigns: number;
|
17025
|
+
creatorId: string | null;
|
16658
17026
|
};
|
16659
17027
|
}>>;
|
16660
17028
|
};
|
16661
|
-
|
16662
|
-
index: {
|
17029
|
+
campaigns: {
|
16663
17030
|
get: (options: {
|
16664
17031
|
headers?: Record<string, unknown> | undefined;
|
16665
17032
|
query: {
|
16666
|
-
|
16667
|
-
page?: number | undefined;
|
16668
|
-
address?: string | undefined;
|
17033
|
+
status?: "PAST" | "LIVE" | "FUTURE" | undefined;
|
16669
17034
|
};
|
16670
17035
|
fetch?: RequestInit | undefined;
|
16671
17036
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
16672
17037
|
200: ({
|
16673
|
-
|
16674
|
-
|
16675
|
-
|
17038
|
+
Opportunity: {
|
17039
|
+
status: import("@db/api").$Enums.Status;
|
17040
|
+
type: string;
|
17041
|
+
name: string;
|
17042
|
+
description: string;
|
17043
|
+
id: string;
|
17044
|
+
tags: string[];
|
17045
|
+
identifier: string;
|
17046
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
17047
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
17048
|
+
chainId: number;
|
17049
|
+
howToSteps: string[];
|
17050
|
+
depositUrl: string | null;
|
17051
|
+
explorerAddress: string | null;
|
17052
|
+
mainProtocolId: string | null;
|
17053
|
+
tvl: number;
|
17054
|
+
apr: number;
|
17055
|
+
dailyRewards: number;
|
17056
|
+
lastCampaignCreatedAt: Date;
|
17057
|
+
};
|
16676
17058
|
} & {
|
16677
|
-
|
16678
|
-
|
16679
|
-
|
17059
|
+
type: string;
|
17060
|
+
description: string | null;
|
17061
|
+
id: string;
|
17062
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
17063
|
+
subType: number | null;
|
17064
|
+
computeChainId: number;
|
17065
|
+
distributionChainId: number;
|
17066
|
+
campaignId: string;
|
17067
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
17068
|
+
rewardTokenId: string;
|
17069
|
+
amount: string;
|
17070
|
+
opportunityId: string;
|
17071
|
+
startTimestamp: bigint;
|
17072
|
+
endTimestamp: bigint;
|
17073
|
+
creatorAddress: string;
|
17074
|
+
manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
|
17075
|
+
createdAt: Date;
|
17076
|
+
rootCampaignId: string | null;
|
17077
|
+
parentCampaignId: string | null;
|
17078
|
+
})[] | {
|
17079
|
+
params: any;
|
17080
|
+
chain: {
|
17081
|
+
name: string;
|
17082
|
+
id: number;
|
17083
|
+
icon: string;
|
17084
|
+
};
|
17085
|
+
endTimestamp: number;
|
17086
|
+
startTimestamp: number;
|
17087
|
+
rewardToken: {
|
17088
|
+
symbol: string;
|
17089
|
+
name: string | null;
|
17090
|
+
id: string;
|
17091
|
+
icon: string;
|
17092
|
+
address: string;
|
17093
|
+
chainId: number;
|
17094
|
+
decimals: number;
|
17095
|
+
verified: boolean;
|
17096
|
+
isTest: boolean;
|
17097
|
+
isPoint: boolean;
|
17098
|
+
isPreTGE: boolean;
|
17099
|
+
isNative: boolean;
|
17100
|
+
} & {
|
17101
|
+
price?: number | null | undefined;
|
17102
|
+
};
|
17103
|
+
distributionChain: {
|
17104
|
+
name: string;
|
17105
|
+
id: number;
|
17106
|
+
icon: string;
|
17107
|
+
} | undefined;
|
17108
|
+
campaignStatus: {
|
17109
|
+
computedUntil: number;
|
17110
|
+
processingStarted: number;
|
17111
|
+
status: import("@db/api").$Enums.RunStatus;
|
17112
|
+
error: string;
|
17113
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
17114
|
+
campaignId: string;
|
17115
|
+
} | undefined;
|
17116
|
+
creatorAddress: string;
|
17117
|
+
creator: {
|
17118
|
+
tags: string[];
|
17119
|
+
address: string;
|
17120
|
+
creatorId: string | null;
|
17121
|
+
};
|
17122
|
+
createdAt: string;
|
17123
|
+
description: string | undefined;
|
17124
|
+
parentCampaignId: string | undefined;
|
17125
|
+
rootCampaignId: string | undefined;
|
17126
|
+
Opportunity: {
|
17127
|
+
status: import("@db/api").$Enums.Status;
|
17128
|
+
type: string;
|
17129
|
+
name: string;
|
17130
|
+
description: string;
|
17131
|
+
id: string;
|
17132
|
+
tags: string[];
|
17133
|
+
identifier: string;
|
17134
|
+
action: import("@db/api").$Enums.OpportunityAction;
|
17135
|
+
manualOverrides: import("@db/api").$Enums.OpportunityManualOverride[];
|
17136
|
+
chainId: number;
|
17137
|
+
howToSteps: string[];
|
17138
|
+
depositUrl: string | null;
|
17139
|
+
explorerAddress: string | null;
|
17140
|
+
mainProtocolId: string | null;
|
17141
|
+
tvl: number;
|
17142
|
+
apr: number;
|
17143
|
+
dailyRewards: number;
|
17144
|
+
lastCampaignCreatedAt: Date;
|
17145
|
+
};
|
17146
|
+
type: string;
|
17147
|
+
id: string;
|
17148
|
+
subType: number | null;
|
17149
|
+
computeChainId: number;
|
17150
|
+
distributionChainId: number;
|
17151
|
+
campaignId: string;
|
17152
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
17153
|
+
rewardTokenId: string;
|
17154
|
+
amount: string;
|
17155
|
+
opportunityId: string;
|
17156
|
+
}[];
|
16680
17157
|
}>>;
|
17158
|
+
};
|
17159
|
+
}) & {
|
17160
|
+
index: {
|
16681
17161
|
post: (body: {
|
16682
17162
|
icon?: string | undefined;
|
16683
|
-
rebateFee?: number | undefined;
|
16684
17163
|
name: string;
|
16685
17164
|
id: string;
|
16686
17165
|
addresses: string[];
|
@@ -16698,7 +17177,57 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16698
17177
|
rebateFee: number;
|
16699
17178
|
};
|
16700
17179
|
}>>;
|
17180
|
+
get: (options: {
|
17181
|
+
headers?: Record<string, unknown> | undefined;
|
17182
|
+
query: {
|
17183
|
+
id?: string | undefined;
|
17184
|
+
items?: number | undefined;
|
17185
|
+
page?: number | undefined;
|
17186
|
+
address?: string | undefined;
|
17187
|
+
};
|
17188
|
+
fetch?: RequestInit | undefined;
|
17189
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17190
|
+
200: ({
|
17191
|
+
Users: {
|
17192
|
+
address: string;
|
17193
|
+
}[];
|
17194
|
+
} & {
|
17195
|
+
name: string;
|
17196
|
+
id: string;
|
17197
|
+
icon: string | null;
|
17198
|
+
rebateFee: number;
|
17199
|
+
})[];
|
17200
|
+
}>>;
|
16701
17201
|
};
|
17202
|
+
campaigns: ((params: {
|
17203
|
+
id: string | number;
|
17204
|
+
}) => {
|
17205
|
+
get: (options?: {
|
17206
|
+
headers?: Record<string, unknown> | undefined;
|
17207
|
+
query?: Record<string, unknown> | undefined;
|
17208
|
+
fetch?: RequestInit | undefined;
|
17209
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
17210
|
+
200: {
|
17211
|
+
tvlRecords: {
|
17212
|
+
total: number;
|
17213
|
+
timestamp: bigint;
|
17214
|
+
}[];
|
17215
|
+
aprRecords: {
|
17216
|
+
timestamp: bigint;
|
17217
|
+
apr: number;
|
17218
|
+
}[];
|
17219
|
+
dailyRewardsRecords: {
|
17220
|
+
total: number;
|
17221
|
+
timestamp: bigint;
|
17222
|
+
}[];
|
17223
|
+
walletCount: {
|
17224
|
+
timestamp: bigint;
|
17225
|
+
walletCount: number;
|
17226
|
+
}[];
|
17227
|
+
tvlInflowPerDollar: bigint;
|
17228
|
+
};
|
17229
|
+
}>>;
|
17230
|
+
}) & {};
|
16702
17231
|
};
|
16703
17232
|
referral: {
|
16704
17233
|
code: {
|