@merkl/api 1.7.12 → 1.7.14
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/engine/deprecated/dynamicData/implementations/Erc20.d.ts +150 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/tvl.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +1200 -0
- package/dist/src/modules/v4/campaign/campaign.query-transformer.js.map +1 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +0 -1110
- package/dist/src/modules/v4/campaign/campaign.repository.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +0 -26
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +769 -0
- package/dist/src/modules/v4/opportunity/opportunity.query-transformer.js.map +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +22 -23
- package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.js.map +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.js.map +1 -1
- package/dist/src/modules/v4/programPayload/subPayloads/ethena.d.ts +32 -32
- package/dist/src/utils/getAPR.d.ts +1345 -1195
- package/dist/src/utils/parseDistributionType.d.ts +150 -0
- package/package.json +1 -1
|
@@ -140,6 +140,16 @@ export declare const parseDistributionType: (params: {
|
|
|
140
140
|
AddressBookChainId: number;
|
|
141
141
|
})[] | undefined;
|
|
142
142
|
distributionMethodParameters?: {
|
|
143
|
+
distributionMethod: DistributionMethod.AAVE_NET_APR;
|
|
144
|
+
distributionSettings: {
|
|
145
|
+
useTempLeaves?: boolean | undefined;
|
|
146
|
+
publishAfterTimestamp?: number | undefined;
|
|
147
|
+
targetAPR: number;
|
|
148
|
+
rewardTokenPricing?: boolean | undefined;
|
|
149
|
+
targetTokenPricing?: boolean | undefined;
|
|
150
|
+
targetToken?: string | undefined;
|
|
151
|
+
};
|
|
152
|
+
} | {
|
|
143
153
|
distributionMethod: DistributionMethod.AIRDROP;
|
|
144
154
|
distributionSettings: {
|
|
145
155
|
useTempLeaves?: boolean | undefined;
|
|
@@ -156,6 +166,21 @@ export declare const parseDistributionType: (params: {
|
|
|
156
166
|
useTempLeaves?: boolean | undefined;
|
|
157
167
|
publishAfterTimestamp?: number | undefined;
|
|
158
168
|
};
|
|
169
|
+
} | {
|
|
170
|
+
distributionMethod: DistributionMethod.COMPOSED;
|
|
171
|
+
distributionSettings: {
|
|
172
|
+
useTempLeaves?: boolean | undefined;
|
|
173
|
+
publishAfterTimestamp?: number | undefined;
|
|
174
|
+
adapters: {
|
|
175
|
+
name: import("@package/resources/enums").AAVE_NATIVE_APR;
|
|
176
|
+
key: string;
|
|
177
|
+
}[];
|
|
178
|
+
computeExpression: string;
|
|
179
|
+
targetDistributionMethod: DistributionMethod.DUTCH_AUCTION | DistributionMethod.FIX_APR | DistributionMethod.MAX_APR;
|
|
180
|
+
rewardTokenPricing: boolean;
|
|
181
|
+
targetTokenPricing: boolean;
|
|
182
|
+
targetToken?: string | undefined;
|
|
183
|
+
};
|
|
159
184
|
} | {
|
|
160
185
|
distributionMethod: DistributionMethod.DUTCH_AUCTION;
|
|
161
186
|
distributionSettings: {
|
|
@@ -675,6 +700,16 @@ export declare const parseDistributionType: (params: {
|
|
|
675
700
|
AddressBookChainId: number;
|
|
676
701
|
})[] | undefined;
|
|
677
702
|
distributionMethodParameters?: {
|
|
703
|
+
distributionMethod: DistributionMethod.AAVE_NET_APR;
|
|
704
|
+
distributionSettings: {
|
|
705
|
+
useTempLeaves?: boolean | undefined;
|
|
706
|
+
publishAfterTimestamp?: number | undefined;
|
|
707
|
+
targetAPR: number;
|
|
708
|
+
rewardTokenPricing?: boolean | undefined;
|
|
709
|
+
targetTokenPricing?: boolean | undefined;
|
|
710
|
+
targetToken?: string | undefined;
|
|
711
|
+
};
|
|
712
|
+
} | {
|
|
678
713
|
distributionMethod: DistributionMethod.AIRDROP;
|
|
679
714
|
distributionSettings: {
|
|
680
715
|
useTempLeaves?: boolean | undefined;
|
|
@@ -691,6 +726,21 @@ export declare const parseDistributionType: (params: {
|
|
|
691
726
|
useTempLeaves?: boolean | undefined;
|
|
692
727
|
publishAfterTimestamp?: number | undefined;
|
|
693
728
|
};
|
|
729
|
+
} | {
|
|
730
|
+
distributionMethod: DistributionMethod.COMPOSED;
|
|
731
|
+
distributionSettings: {
|
|
732
|
+
useTempLeaves?: boolean | undefined;
|
|
733
|
+
publishAfterTimestamp?: number | undefined;
|
|
734
|
+
adapters: {
|
|
735
|
+
name: import("@package/resources/enums").AAVE_NATIVE_APR;
|
|
736
|
+
key: string;
|
|
737
|
+
}[];
|
|
738
|
+
computeExpression: string;
|
|
739
|
+
targetDistributionMethod: DistributionMethod.DUTCH_AUCTION | DistributionMethod.FIX_APR | DistributionMethod.MAX_APR;
|
|
740
|
+
rewardTokenPricing: boolean;
|
|
741
|
+
targetTokenPricing: boolean;
|
|
742
|
+
targetToken?: string | undefined;
|
|
743
|
+
};
|
|
694
744
|
} | {
|
|
695
745
|
distributionMethod: DistributionMethod.DUTCH_AUCTION;
|
|
696
746
|
distributionSettings: {
|
|
@@ -2219,6 +2269,16 @@ export declare const parseDistributionType: (params: {
|
|
|
2219
2269
|
AddressBookChainId: number;
|
|
2220
2270
|
})[] | undefined;
|
|
2221
2271
|
distributionMethodParameters?: {
|
|
2272
|
+
distributionMethod: DistributionMethod.AAVE_NET_APR;
|
|
2273
|
+
distributionSettings: {
|
|
2274
|
+
useTempLeaves?: boolean | undefined;
|
|
2275
|
+
publishAfterTimestamp?: number | undefined;
|
|
2276
|
+
targetAPR: number;
|
|
2277
|
+
rewardTokenPricing?: boolean | undefined;
|
|
2278
|
+
targetTokenPricing?: boolean | undefined;
|
|
2279
|
+
targetToken?: string | undefined;
|
|
2280
|
+
};
|
|
2281
|
+
} | {
|
|
2222
2282
|
distributionMethod: DistributionMethod.AIRDROP;
|
|
2223
2283
|
distributionSettings: {
|
|
2224
2284
|
useTempLeaves?: boolean | undefined;
|
|
@@ -2235,6 +2295,21 @@ export declare const parseDistributionType: (params: {
|
|
|
2235
2295
|
useTempLeaves?: boolean | undefined;
|
|
2236
2296
|
publishAfterTimestamp?: number | undefined;
|
|
2237
2297
|
};
|
|
2298
|
+
} | {
|
|
2299
|
+
distributionMethod: DistributionMethod.COMPOSED;
|
|
2300
|
+
distributionSettings: {
|
|
2301
|
+
useTempLeaves?: boolean | undefined;
|
|
2302
|
+
publishAfterTimestamp?: number | undefined;
|
|
2303
|
+
adapters: {
|
|
2304
|
+
name: import("@package/resources/enums").AAVE_NATIVE_APR;
|
|
2305
|
+
key: string;
|
|
2306
|
+
}[];
|
|
2307
|
+
computeExpression: string;
|
|
2308
|
+
targetDistributionMethod: DistributionMethod.DUTCH_AUCTION | DistributionMethod.FIX_APR | DistributionMethod.MAX_APR;
|
|
2309
|
+
rewardTokenPricing: boolean;
|
|
2310
|
+
targetTokenPricing: boolean;
|
|
2311
|
+
targetToken?: string | undefined;
|
|
2312
|
+
};
|
|
2238
2313
|
} | {
|
|
2239
2314
|
distributionMethod: DistributionMethod.DUTCH_AUCTION;
|
|
2240
2315
|
distributionSettings: {
|
|
@@ -3243,6 +3318,16 @@ export declare const parseDistributionType: (params: {
|
|
|
3243
3318
|
AddressBookChainId: number;
|
|
3244
3319
|
})[] | undefined;
|
|
3245
3320
|
distributionMethodParameters?: {
|
|
3321
|
+
distributionMethod: DistributionMethod.AAVE_NET_APR;
|
|
3322
|
+
distributionSettings: {
|
|
3323
|
+
useTempLeaves?: boolean | undefined;
|
|
3324
|
+
publishAfterTimestamp?: number | undefined;
|
|
3325
|
+
targetAPR: number;
|
|
3326
|
+
rewardTokenPricing?: boolean | undefined;
|
|
3327
|
+
targetTokenPricing?: boolean | undefined;
|
|
3328
|
+
targetToken?: string | undefined;
|
|
3329
|
+
};
|
|
3330
|
+
} | {
|
|
3246
3331
|
distributionMethod: DistributionMethod.AIRDROP;
|
|
3247
3332
|
distributionSettings: {
|
|
3248
3333
|
useTempLeaves?: boolean | undefined;
|
|
@@ -3259,6 +3344,21 @@ export declare const parseDistributionType: (params: {
|
|
|
3259
3344
|
useTempLeaves?: boolean | undefined;
|
|
3260
3345
|
publishAfterTimestamp?: number | undefined;
|
|
3261
3346
|
};
|
|
3347
|
+
} | {
|
|
3348
|
+
distributionMethod: DistributionMethod.COMPOSED;
|
|
3349
|
+
distributionSettings: {
|
|
3350
|
+
useTempLeaves?: boolean | undefined;
|
|
3351
|
+
publishAfterTimestamp?: number | undefined;
|
|
3352
|
+
adapters: {
|
|
3353
|
+
name: import("@package/resources/enums").AAVE_NATIVE_APR;
|
|
3354
|
+
key: string;
|
|
3355
|
+
}[];
|
|
3356
|
+
computeExpression: string;
|
|
3357
|
+
targetDistributionMethod: DistributionMethod.DUTCH_AUCTION | DistributionMethod.FIX_APR | DistributionMethod.MAX_APR;
|
|
3358
|
+
rewardTokenPricing: boolean;
|
|
3359
|
+
targetTokenPricing: boolean;
|
|
3360
|
+
targetToken?: string | undefined;
|
|
3361
|
+
};
|
|
3262
3362
|
} | {
|
|
3263
3363
|
distributionMethod: DistributionMethod.DUTCH_AUCTION;
|
|
3264
3364
|
distributionSettings: {
|
|
@@ -4272,6 +4372,16 @@ export declare const parseDistributionType: (params: {
|
|
|
4272
4372
|
AddressBookChainId: number;
|
|
4273
4373
|
})[] | undefined;
|
|
4274
4374
|
distributionMethodParameters?: {
|
|
4375
|
+
distributionMethod: DistributionMethod.AAVE_NET_APR;
|
|
4376
|
+
distributionSettings: {
|
|
4377
|
+
useTempLeaves?: boolean | undefined;
|
|
4378
|
+
publishAfterTimestamp?: number | undefined;
|
|
4379
|
+
targetAPR: number;
|
|
4380
|
+
rewardTokenPricing?: boolean | undefined;
|
|
4381
|
+
targetTokenPricing?: boolean | undefined;
|
|
4382
|
+
targetToken?: string | undefined;
|
|
4383
|
+
};
|
|
4384
|
+
} | {
|
|
4275
4385
|
distributionMethod: DistributionMethod.AIRDROP;
|
|
4276
4386
|
distributionSettings: {
|
|
4277
4387
|
useTempLeaves?: boolean | undefined;
|
|
@@ -4288,6 +4398,21 @@ export declare const parseDistributionType: (params: {
|
|
|
4288
4398
|
useTempLeaves?: boolean | undefined;
|
|
4289
4399
|
publishAfterTimestamp?: number | undefined;
|
|
4290
4400
|
};
|
|
4401
|
+
} | {
|
|
4402
|
+
distributionMethod: DistributionMethod.COMPOSED;
|
|
4403
|
+
distributionSettings: {
|
|
4404
|
+
useTempLeaves?: boolean | undefined;
|
|
4405
|
+
publishAfterTimestamp?: number | undefined;
|
|
4406
|
+
adapters: {
|
|
4407
|
+
name: import("@package/resources/enums").AAVE_NATIVE_APR;
|
|
4408
|
+
key: string;
|
|
4409
|
+
}[];
|
|
4410
|
+
computeExpression: string;
|
|
4411
|
+
targetDistributionMethod: DistributionMethod.DUTCH_AUCTION | DistributionMethod.FIX_APR | DistributionMethod.MAX_APR;
|
|
4412
|
+
rewardTokenPricing: boolean;
|
|
4413
|
+
targetTokenPricing: boolean;
|
|
4414
|
+
targetToken?: string | undefined;
|
|
4415
|
+
};
|
|
4291
4416
|
} | {
|
|
4292
4417
|
distributionMethod: DistributionMethod.DUTCH_AUCTION;
|
|
4293
4418
|
distributionSettings: {
|
|
@@ -5302,6 +5427,16 @@ export declare const parseDistributionType: (params: {
|
|
|
5302
5427
|
AddressBookChainId: number;
|
|
5303
5428
|
})[] | undefined;
|
|
5304
5429
|
distributionMethodParameters?: {
|
|
5430
|
+
distributionMethod: DistributionMethod.AAVE_NET_APR;
|
|
5431
|
+
distributionSettings: {
|
|
5432
|
+
useTempLeaves?: boolean | undefined;
|
|
5433
|
+
publishAfterTimestamp?: number | undefined;
|
|
5434
|
+
targetAPR: number;
|
|
5435
|
+
rewardTokenPricing?: boolean | undefined;
|
|
5436
|
+
targetTokenPricing?: boolean | undefined;
|
|
5437
|
+
targetToken?: string | undefined;
|
|
5438
|
+
};
|
|
5439
|
+
} | {
|
|
5305
5440
|
distributionMethod: DistributionMethod.AIRDROP;
|
|
5306
5441
|
distributionSettings: {
|
|
5307
5442
|
useTempLeaves?: boolean | undefined;
|
|
@@ -5318,6 +5453,21 @@ export declare const parseDistributionType: (params: {
|
|
|
5318
5453
|
useTempLeaves?: boolean | undefined;
|
|
5319
5454
|
publishAfterTimestamp?: number | undefined;
|
|
5320
5455
|
};
|
|
5456
|
+
} | {
|
|
5457
|
+
distributionMethod: DistributionMethod.COMPOSED;
|
|
5458
|
+
distributionSettings: {
|
|
5459
|
+
useTempLeaves?: boolean | undefined;
|
|
5460
|
+
publishAfterTimestamp?: number | undefined;
|
|
5461
|
+
adapters: {
|
|
5462
|
+
name: import("@package/resources/enums").AAVE_NATIVE_APR;
|
|
5463
|
+
key: string;
|
|
5464
|
+
}[];
|
|
5465
|
+
computeExpression: string;
|
|
5466
|
+
targetDistributionMethod: DistributionMethod.DUTCH_AUCTION | DistributionMethod.FIX_APR | DistributionMethod.MAX_APR;
|
|
5467
|
+
rewardTokenPricing: boolean;
|
|
5468
|
+
targetTokenPricing: boolean;
|
|
5469
|
+
targetToken?: string | undefined;
|
|
5470
|
+
};
|
|
5321
5471
|
} | {
|
|
5322
5472
|
distributionMethod: DistributionMethod.DUTCH_AUCTION;
|
|
5323
5473
|
distributionSettings: {
|
package/package.json
CHANGED