@merkl/api 1.4.0 → 1.4.1
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 +76 -327
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound1.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/factories.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/curveGauge/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/curveGauge/metadata.js.map +1 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/curveGauge/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/curveGauge/tvl.js.map +1 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/midas/metadata.d.ts +17 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/midas/metadata.js.map +1 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/midas/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/midas/tvl.js.map +1 -0
- package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +2 -0
- package/dist/src/engine/implementations/Erc20/subTypes/index.js.map +1 -1
- package/dist/src/index.d.ts +78 -324
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +33 -226
- package/dist/src/modules/v4/campaign/campaign.controller.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -101
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.d.ts +45 -98
- package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.js.map +1 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +2 -101
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.js.map +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +78 -324
- package/package.json +1 -1
@@ -3326,106 +3326,15 @@ export declare const v4: Elysia<"/v4", {
|
|
3326
3326
|
headers: unknown;
|
3327
3327
|
response: {
|
3328
3328
|
200: {
|
3329
|
-
|
3330
|
-
|
3331
|
-
|
3332
|
-
|
3333
|
-
|
3334
|
-
|
3335
|
-
|
3336
|
-
|
3337
|
-
|
3338
|
-
chainId: number;
|
3339
|
-
type: string;
|
3340
|
-
identifier: string;
|
3341
|
-
name: string;
|
3342
|
-
status: "LIVE" | "PAST" | "SOON";
|
3343
|
-
action: OpportunityAction;
|
3344
|
-
tokens: ({
|
3345
|
-
address: string;
|
3346
|
-
chainId: number;
|
3347
|
-
decimals: number;
|
3348
|
-
icon: string;
|
3349
|
-
id: string;
|
3350
|
-
isNative: boolean;
|
3351
|
-
isTest: boolean;
|
3352
|
-
name: string | null;
|
3353
|
-
symbol: string;
|
3354
|
-
type: import("@package/databases").TokenType;
|
3355
|
-
verified: boolean;
|
3356
|
-
} & {
|
3357
|
-
price?: number | null | undefined;
|
3358
|
-
updatedAt?: number | null | undefined;
|
3359
|
-
priceSource?: string | null | undefined;
|
3360
|
-
isTokenWrapper?: boolean | undefined;
|
3361
|
-
tokenWrapperAddress?: string | undefined;
|
3362
|
-
})[];
|
3363
|
-
mainProtocol: "aave" | "aerodrome" | "ajna" | "akron" | "ambient" | "angles" | "arrakis" | "arthswap" | "aura" | "avalon" | "badger" | "balancer" | "base-swap" | "beefy" | "beraborrow" | "beratrax" | "bunni" | "camelot" | "cian" | "compound" | "concrete" | "cross_curve" | "crust" | "curve" | "curveNPool" | "dlend" | "dolomite" | "dragonswap" | "eigenlayer" | "ekubo" | "enzyme" | "equalizer" | "equilibria" | "euler" | "fenix" | "filament" | "fluid" | "fluidvault" | "frax" | "fraxlend" | "gamma" | "gammaswap" | "gearbox" | "hanji" | "holdstation" | "horiza" | "hourglass" | "hybra-pair" | "hyperdrive" | "hypurrfi" | "ichi" | "iguana" | "ion" | "ionic" | "ironclad" | "izumi" | "katana" | "kim" | "koi" | "kyo" | "lagoon" | "layerbank" | "lendle" | "lnd" | "maha" | "mangrove" | "maverick" | "mimswap" | "moonwell" | "morpho" | "neptune" | "oku" | "oxium" | "pancake-swap" | "pendle" | "pinto" | "poolside" | "puffer" | "punchswap" | "quickswap" | "ra" | "radiant" | "ramses" | "reactor_fusion" | "reserve" | "retro" | "rfx" | "sake" | "satlayer" | "satoshi" | "silo" | "sonex" | "sonicmarket" | "spectra" | "splice" | "stability" | "stabull" | "stryke" | "sturdy" | "summerfinance" | "superlend" | "supswap" | "sushi-swap" | "swap-x" | "swapr" | "syncswap" | "tako-tako" | "teller" | "tempest" | "termmax" | "thirdtrade" | "thruster" | "toros" | "trader-joe" | "uniswap" | "uranium" | "veda" | "velodrome" | "venus" | "vest" | "vicuna" | "voltage" | "woofi" | "xlend" | "yei" | "zero" | "zerolend" | "zk-swap" | "zkSwapThreePool" | undefined;
|
3364
|
-
description: string;
|
3365
|
-
howToSteps: string[];
|
3366
|
-
depositUrl: string | undefined;
|
3367
|
-
explorerAddress: string | undefined;
|
3368
|
-
tags: string[];
|
3369
|
-
} | ({
|
3370
|
-
Protocols: {
|
3371
|
-
id: string;
|
3372
|
-
tags: string[];
|
3373
|
-
name: string;
|
3374
|
-
description: string;
|
3375
|
-
url: string;
|
3376
|
-
icon: string;
|
3377
|
-
}[];
|
3378
|
-
Tokens: {
|
3379
|
-
id: string;
|
3380
|
-
name: string | null;
|
3381
|
-
chainId: number;
|
3382
|
-
address: string;
|
3383
|
-
decimals: number;
|
3384
|
-
symbol: string;
|
3385
|
-
displaySymbol: string;
|
3386
|
-
icon: string;
|
3387
|
-
verified: boolean;
|
3388
|
-
isTest: boolean;
|
3389
|
-
type: import("@package/databases").TokenType;
|
3390
|
-
isNative: boolean;
|
3391
|
-
price: number | null;
|
3392
|
-
updatedAt: number | null;
|
3393
|
-
priceSource: string | null;
|
3394
|
-
}[];
|
3395
|
-
} & {
|
3396
|
-
id: string;
|
3397
|
-
chainId: number;
|
3398
|
-
type: string;
|
3399
|
-
identifier: string;
|
3400
|
-
name: string;
|
3401
|
-
description: string;
|
3402
|
-
howToSteps: string[];
|
3403
|
-
depositUrl: string | null;
|
3404
|
-
explorerAddress: string | null;
|
3405
|
-
status: import("@package/databases").Status;
|
3406
|
-
action: import("@package/databases").OpportunityAction;
|
3407
|
-
mainProtocolId: string | null;
|
3408
|
-
tvl: number;
|
3409
|
-
apr: number;
|
3410
|
-
maxApr: number | null;
|
3411
|
-
dailyRewards: number;
|
3412
|
-
tags: string[];
|
3413
|
-
lastCampaignCreatedAt: Date;
|
3414
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
3415
|
-
liveCampaigns: number;
|
3416
|
-
}) | undefined;
|
3417
|
-
tvl: ({
|
3418
|
-
breakdowns: ({
|
3419
|
-
identifier: string;
|
3420
|
-
type: import("@package/databases").TvlType;
|
3421
|
-
value: number;
|
3422
|
-
} & {})[];
|
3423
|
-
timestamp: bigint;
|
3424
|
-
total: number;
|
3425
|
-
} & {}) | undefined;
|
3426
|
-
fee: string;
|
3427
|
-
}[];
|
3428
|
-
};
|
3329
|
+
version: string;
|
3330
|
+
chainId: string;
|
3331
|
+
createdAt: number;
|
3332
|
+
meta: {
|
3333
|
+
name: string;
|
3334
|
+
txBuilderVersion: string;
|
3335
|
+
};
|
3336
|
+
transactions: import("./campaignBatch/campaignBatch.model").Transaction[];
|
3337
|
+
} | null;
|
3429
3338
|
422: {
|
3430
3339
|
type: "validation";
|
3431
3340
|
on: string;
|
@@ -3439,135 +3348,33 @@ export declare const v4: Elysia<"/v4", {
|
|
3439
3348
|
};
|
3440
3349
|
};
|
3441
3350
|
} & {
|
3442
|
-
"
|
3443
|
-
|
3444
|
-
|
3445
|
-
|
3446
|
-
|
3447
|
-
|
3448
|
-
|
3449
|
-
|
3450
|
-
|
3451
|
-
|
3351
|
+
"simulate-payload": {
|
3352
|
+
post: {
|
3353
|
+
body: {
|
3354
|
+
creatorAddress: string;
|
3355
|
+
rewardToken: string;
|
3356
|
+
distributionChainId: number;
|
3357
|
+
startTimestamp: number;
|
3358
|
+
endTimestamp: number;
|
3359
|
+
campaignsParams: {
|
3360
|
+
[x: string]: {
|
3452
3361
|
amount: string;
|
3453
3362
|
}[];
|
3454
3363
|
};
|
3455
|
-
|
3456
|
-
|
3457
|
-
|
3458
|
-
|
3459
|
-
|
3460
|
-
|
3461
|
-
|
3462
|
-
|
3463
|
-
|
3464
|
-
|
3465
|
-
|
3466
|
-
|
3467
|
-
|
3468
|
-
|
3469
|
-
opportunity: Omit<import("./campaign/campaign.model").CampaignWithParams, "manualOverrides"> | {
|
3470
|
-
id: string;
|
3471
|
-
chainId: number;
|
3472
|
-
type: string;
|
3473
|
-
identifier: string;
|
3474
|
-
name: string;
|
3475
|
-
status: "LIVE" | "PAST" | "SOON";
|
3476
|
-
action: OpportunityAction;
|
3477
|
-
tokens: ({
|
3478
|
-
address: string;
|
3479
|
-
chainId: number;
|
3480
|
-
decimals: number;
|
3481
|
-
icon: string;
|
3482
|
-
id: string;
|
3483
|
-
isNative: boolean;
|
3484
|
-
isTest: boolean;
|
3485
|
-
name: string | null;
|
3486
|
-
symbol: string;
|
3487
|
-
type: import("@package/databases").TokenType;
|
3488
|
-
verified: boolean;
|
3489
|
-
} & {
|
3490
|
-
price?: number | null | undefined;
|
3491
|
-
updatedAt?: number | null | undefined;
|
3492
|
-
priceSource?: string | null | undefined;
|
3493
|
-
isTokenWrapper?: boolean | undefined;
|
3494
|
-
tokenWrapperAddress?: string | undefined;
|
3495
|
-
})[];
|
3496
|
-
mainProtocol: "aave" | "aerodrome" | "ajna" | "akron" | "ambient" | "angles" | "arrakis" | "arthswap" | "aura" | "avalon" | "badger" | "balancer" | "base-swap" | "beefy" | "beraborrow" | "beratrax" | "bunni" | "camelot" | "cian" | "compound" | "concrete" | "cross_curve" | "crust" | "curve" | "curveNPool" | "dlend" | "dolomite" | "dragonswap" | "eigenlayer" | "ekubo" | "enzyme" | "equalizer" | "equilibria" | "euler" | "fenix" | "filament" | "fluid" | "fluidvault" | "frax" | "fraxlend" | "gamma" | "gammaswap" | "gearbox" | "hanji" | "holdstation" | "horiza" | "hourglass" | "hybra-pair" | "hyperdrive" | "hypurrfi" | "ichi" | "iguana" | "ion" | "ionic" | "ironclad" | "izumi" | "katana" | "kim" | "koi" | "kyo" | "lagoon" | "layerbank" | "lendle" | "lnd" | "maha" | "mangrove" | "maverick" | "mimswap" | "moonwell" | "morpho" | "neptune" | "oku" | "oxium" | "pancake-swap" | "pendle" | "pinto" | "poolside" | "puffer" | "punchswap" | "quickswap" | "ra" | "radiant" | "ramses" | "reactor_fusion" | "reserve" | "retro" | "rfx" | "sake" | "satlayer" | "satoshi" | "silo" | "sonex" | "sonicmarket" | "spectra" | "splice" | "stability" | "stabull" | "stryke" | "sturdy" | "summerfinance" | "superlend" | "supswap" | "sushi-swap" | "swap-x" | "swapr" | "syncswap" | "tako-tako" | "teller" | "tempest" | "termmax" | "thirdtrade" | "thruster" | "toros" | "trader-joe" | "uniswap" | "uranium" | "veda" | "velodrome" | "venus" | "vest" | "vicuna" | "voltage" | "woofi" | "xlend" | "yei" | "zero" | "zerolend" | "zk-swap" | "zkSwapThreePool" | undefined;
|
3497
|
-
description: string;
|
3498
|
-
howToSteps: string[];
|
3499
|
-
depositUrl: string | undefined;
|
3500
|
-
explorerAddress: string | undefined;
|
3501
|
-
tags: string[];
|
3502
|
-
} | ({
|
3503
|
-
Protocols: {
|
3504
|
-
id: string;
|
3505
|
-
tags: string[];
|
3506
|
-
name: string;
|
3507
|
-
description: string;
|
3508
|
-
url: string;
|
3509
|
-
icon: string;
|
3510
|
-
}[];
|
3511
|
-
Tokens: {
|
3512
|
-
id: string;
|
3513
|
-
name: string | null;
|
3514
|
-
chainId: number;
|
3515
|
-
address: string;
|
3516
|
-
decimals: number;
|
3517
|
-
symbol: string;
|
3518
|
-
displaySymbol: string;
|
3519
|
-
icon: string;
|
3520
|
-
verified: boolean;
|
3521
|
-
isTest: boolean;
|
3522
|
-
type: import("@package/databases").TokenType;
|
3523
|
-
isNative: boolean;
|
3524
|
-
price: number | null;
|
3525
|
-
updatedAt: number | null;
|
3526
|
-
priceSource: string | null;
|
3527
|
-
}[];
|
3528
|
-
} & {
|
3529
|
-
id: string;
|
3530
|
-
chainId: number;
|
3531
|
-
type: string;
|
3532
|
-
identifier: string;
|
3533
|
-
name: string;
|
3534
|
-
description: string;
|
3535
|
-
howToSteps: string[];
|
3536
|
-
depositUrl: string | null;
|
3537
|
-
explorerAddress: string | null;
|
3538
|
-
status: import("@package/databases").Status;
|
3539
|
-
action: import("@package/databases").OpportunityAction;
|
3540
|
-
mainProtocolId: string | null;
|
3541
|
-
tvl: number;
|
3542
|
-
apr: number;
|
3543
|
-
maxApr: number | null;
|
3544
|
-
dailyRewards: number;
|
3545
|
-
tags: string[];
|
3546
|
-
lastCampaignCreatedAt: Date;
|
3547
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
3548
|
-
liveCampaigns: number;
|
3549
|
-
}) | undefined;
|
3550
|
-
tvl: ({
|
3551
|
-
breakdowns: ({
|
3552
|
-
identifier: string;
|
3553
|
-
type: import("@package/databases").TvlType;
|
3554
|
-
value: number;
|
3555
|
-
} & {})[];
|
3556
|
-
timestamp: bigint;
|
3557
|
-
total: number;
|
3558
|
-
} & {}) | undefined;
|
3559
|
-
fee: string;
|
3560
|
-
}[];
|
3561
|
-
};
|
3562
|
-
422: {
|
3563
|
-
type: "validation";
|
3564
|
-
on: string;
|
3565
|
-
summary?: string | undefined;
|
3566
|
-
message?: string | undefined;
|
3567
|
-
found?: unknown;
|
3568
|
-
property?: string | undefined;
|
3569
|
-
expected?: string | undefined;
|
3570
|
-
};
|
3364
|
+
};
|
3365
|
+
params: {};
|
3366
|
+
query: unknown;
|
3367
|
+
headers: unknown;
|
3368
|
+
response: {
|
3369
|
+
200: unknown[];
|
3370
|
+
422: {
|
3371
|
+
type: "validation";
|
3372
|
+
on: string;
|
3373
|
+
summary?: string | undefined;
|
3374
|
+
message?: string | undefined;
|
3375
|
+
found?: unknown;
|
3376
|
+
property?: string | undefined;
|
3377
|
+
expected?: string | undefined;
|
3571
3378
|
};
|
3572
3379
|
};
|
3573
3380
|
};
|
@@ -29605,106 +29412,53 @@ export declare const v4: Elysia<"/v4", {
|
|
29605
29412
|
headers: unknown;
|
29606
29413
|
response: {
|
29607
29414
|
200: {
|
29608
|
-
|
29609
|
-
|
29610
|
-
|
29611
|
-
|
29612
|
-
|
29613
|
-
|
29614
|
-
|
29615
|
-
|
29616
|
-
|
29617
|
-
|
29618
|
-
|
29619
|
-
|
29620
|
-
|
29621
|
-
|
29622
|
-
|
29623
|
-
|
29624
|
-
|
29625
|
-
|
29626
|
-
|
29627
|
-
|
29628
|
-
|
29629
|
-
|
29630
|
-
|
29631
|
-
|
29632
|
-
|
29633
|
-
|
29634
|
-
|
29635
|
-
|
29636
|
-
|
29637
|
-
|
29638
|
-
|
29639
|
-
|
29640
|
-
|
29641
|
-
|
29642
|
-
|
29643
|
-
|
29644
|
-
|
29645
|
-
depositUrl: string | undefined;
|
29646
|
-
explorerAddress: string | undefined;
|
29647
|
-
tags: string[];
|
29648
|
-
} | ({
|
29649
|
-
Protocols: {
|
29650
|
-
id: string;
|
29651
|
-
tags: string[];
|
29652
|
-
name: string;
|
29653
|
-
description: string;
|
29654
|
-
url: string;
|
29655
|
-
icon: string;
|
29656
|
-
}[];
|
29657
|
-
Tokens: {
|
29658
|
-
id: string;
|
29659
|
-
name: string | null;
|
29660
|
-
chainId: number;
|
29661
|
-
address: string;
|
29662
|
-
decimals: number;
|
29663
|
-
symbol: string;
|
29664
|
-
displaySymbol: string;
|
29665
|
-
icon: string;
|
29666
|
-
verified: boolean;
|
29667
|
-
isTest: boolean;
|
29668
|
-
type: import("@package/databases").TokenType;
|
29669
|
-
isNative: boolean;
|
29670
|
-
price: number | null;
|
29671
|
-
updatedAt: number | null;
|
29672
|
-
priceSource: string | null;
|
29673
|
-
}[];
|
29674
|
-
} & {
|
29675
|
-
id: string;
|
29676
|
-
chainId: number;
|
29677
|
-
type: string;
|
29678
|
-
identifier: string;
|
29679
|
-
name: string;
|
29680
|
-
description: string;
|
29681
|
-
howToSteps: string[];
|
29682
|
-
depositUrl: string | null;
|
29683
|
-
explorerAddress: string | null;
|
29684
|
-
status: import("@package/databases").Status;
|
29685
|
-
action: import("@package/databases").OpportunityAction;
|
29686
|
-
mainProtocolId: string | null;
|
29687
|
-
tvl: number;
|
29688
|
-
apr: number;
|
29689
|
-
maxApr: number | null;
|
29690
|
-
dailyRewards: number;
|
29691
|
-
tags: string[];
|
29692
|
-
lastCampaignCreatedAt: Date;
|
29693
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
29694
|
-
liveCampaigns: number;
|
29695
|
-
}) | undefined;
|
29696
|
-
tvl: ({
|
29697
|
-
breakdowns: ({
|
29698
|
-
identifier: string;
|
29699
|
-
type: import("@package/databases").TvlType;
|
29700
|
-
value: number;
|
29701
|
-
} & {})[];
|
29702
|
-
timestamp: bigint;
|
29703
|
-
total: number;
|
29704
|
-
} & {}) | undefined;
|
29705
|
-
fee: string;
|
29415
|
+
version: string;
|
29416
|
+
chainId: string;
|
29417
|
+
createdAt: number;
|
29418
|
+
meta: {
|
29419
|
+
name: string;
|
29420
|
+
txBuilderVersion: string;
|
29421
|
+
};
|
29422
|
+
transactions: import("./campaignBatch/campaignBatch.model").Transaction[];
|
29423
|
+
} | null;
|
29424
|
+
422: {
|
29425
|
+
type: "validation";
|
29426
|
+
on: string;
|
29427
|
+
summary?: string | undefined;
|
29428
|
+
message?: string | undefined;
|
29429
|
+
found?: unknown;
|
29430
|
+
property?: string | undefined;
|
29431
|
+
expected?: string | undefined;
|
29432
|
+
};
|
29433
|
+
};
|
29434
|
+
};
|
29435
|
+
};
|
29436
|
+
};
|
29437
|
+
};
|
29438
|
+
} & {
|
29439
|
+
"campaign-batch": {
|
29440
|
+
":id": {
|
29441
|
+
"simulate-payload": {
|
29442
|
+
post: {
|
29443
|
+
body: {
|
29444
|
+
creatorAddress: string;
|
29445
|
+
rewardToken: string;
|
29446
|
+
distributionChainId: number;
|
29447
|
+
startTimestamp: number;
|
29448
|
+
endTimestamp: number;
|
29449
|
+
campaignsParams: {
|
29450
|
+
[x: string]: {
|
29451
|
+
amount: string;
|
29706
29452
|
}[];
|
29707
29453
|
};
|
29454
|
+
};
|
29455
|
+
params: {
|
29456
|
+
id: string;
|
29457
|
+
};
|
29458
|
+
query: unknown;
|
29459
|
+
headers: unknown;
|
29460
|
+
response: {
|
29461
|
+
200: unknown[];
|
29708
29462
|
422: {
|
29709
29463
|
type: "validation";
|
29710
29464
|
on: string;
|
package/package.json
CHANGED