@merkl/api 0.19.6 → 0.19.7
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 +70 -0
- package/dist/src/factories/opportunityMetadata/implementations/EventBased.d.ts +1 -1
- package/dist/src/factories/opportunityMetadata/implementations/EventBased.js +2 -2
- package/dist/src/index.d.ts +14 -0
- package/dist/src/libs/campaigns/campaignTypes/AjnaDynamicData.js +7 -7
- package/dist/src/libs/campaigns/campaignTypes/AmbientDynamicData.js +7 -5
- package/dist/src/libs/campaigns/campaignTypes/BadgerDynamicData.js +8 -5
- package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.js +7 -5
- package/dist/src/libs/campaigns/campaignTypes/CompoundDynamicData.js +8 -5
- package/dist/src/libs/campaigns/campaignTypes/DolomiteDynamicData.js +9 -6
- package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.js +9 -6
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +2 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BunniV2Processor.d.ts +45 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BunniV2Processor.js +87 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/processorMapping.js +2 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +2 -0
- package/dist/src/libs/campaigns/campaignTypes/EigenLayerDynamicData.js +9 -6
- package/dist/src/libs/campaigns/campaignTypes/EventBasedDynamicData.js +2 -1
- package/dist/src/libs/campaigns/campaignTypes/HyperdriveDynamicData.js +9 -6
- package/dist/src/libs/campaigns/campaignTypes/MORPHODynamicData.js +8 -5
- package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.js +8 -5
- package/dist/src/libs/campaigns/campaignTypes/SILODynamicData.js +8 -5
- package/dist/src/libs/campaigns/campaignTypes/UniswapV4DynamicData.js +7 -5
- package/dist/src/libs/campaigns/campaignTypes/VestDynamicData.js +8 -5
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +5 -0
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +1 -0
- package/dist/src/modules/v4/campaign/campaign.model.js +1 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +4 -0
- package/dist/src/modules/v4/campaign/campaign.repository.js +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +8 -0
- package/dist/src/modules/v4/opportunity/opportunity.converter.js +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +14 -10
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.service.js +4 -4
- package/dist/src/modules/v4/router.d.ts +14 -0
- package/dist/src/modules/v4/token/token.controller.d.ts +1 -0
- package/dist/src/modules/v4/token/token.model.d.ts +1 -0
- package/dist/src/modules/v4/token/token.model.js +1 -0
- package/dist/src/modules/v4/token/token.service.d.ts +3 -1
- package/dist/src/modules/v4/token/token.service.js +18 -0
- package/dist/src/utils/decodeCalls.js +7 -1
- package/dist/src/utils/encodeCalls.js +19 -1
- package/dist/src/utils/generateCardName.js +2 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
import { tokenType } from "@/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType";
|
2
|
-
import { AaveInterface, AccountantWithRateProvidersInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerV3StablePoolInterface, BalancerVaultInterface, BeefyInterface, CPMMGammaPoolMainInterface, CompoundInterface, CurveInterface, CurveLPTokenInterface, CurveStableSwapNGInterface, DefutureVaultInterface, ERC20Interface, ERC4626Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, HourglassERC20TBTInterface, HourglassVedaLockDepositorV2Interface, IonicInterface, LPManagerHelperInterface, LPManagerInterface, LayerBankInterface, LendleInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxDatastoreInterface, RswEthStrategyInterface, SpectraYTInterface, SturdyInterface, SymetricAmbientStrategyInterface, SyncSwapClassicPoolInterface, TorosInterface, UniswapV2PoolInterface, VePufferInterface, ZFStableLPINterface, } from "@sdk";
|
2
|
+
import { AaveInterface, AccountantWithRateProvidersInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerV3StablePoolInterface, BalancerVaultInterface, BeefyInterface, BunniV2HubInterface, BunniV2TokenInterface, CPMMGammaPoolMainInterface, CompoundInterface, CurveInterface, CurveLPTokenInterface, CurveStableSwapNGInterface, DefutureVaultInterface, ERC20Interface, ERC4626Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, HourglassERC20TBTInterface, HourglassVedaLockDepositorV2Interface, IonicInterface, LPManagerHelperInterface, LPManagerInterface, LayerBankInterface, LendleInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxDatastoreInterface, RswEthStrategyInterface, SpectraYTInterface, SturdyInterface, SymetricAmbientStrategyInterface, SyncSwapClassicPoolInterface, TorosInterface, UniswapV2PoolInterface, VePufferInterface, ZFStableLPINterface, } from "@sdk";
|
3
3
|
export function createCall(target, key, type, metaData) {
|
4
4
|
switch (key) {
|
5
5
|
case "tokens":
|
@@ -458,6 +458,24 @@ export function createCall(target, key, type, metaData) {
|
|
458
458
|
callData: BalancerV3StablePoolInterface.encodeFunctionData("getTokenInfo"),
|
459
459
|
target: target,
|
460
460
|
};
|
461
|
+
case "hub":
|
462
|
+
return {
|
463
|
+
allowFailure: true,
|
464
|
+
callData: BunniV2TokenInterface.encodeFunctionData("hub"),
|
465
|
+
target: target,
|
466
|
+
};
|
467
|
+
case "poolKey":
|
468
|
+
return {
|
469
|
+
allowFailure: true,
|
470
|
+
callData: BunniV2TokenInterface.encodeFunctionData("poolKey"),
|
471
|
+
target: target,
|
472
|
+
};
|
473
|
+
case "poolState":
|
474
|
+
return {
|
475
|
+
allowFailure: true,
|
476
|
+
callData: BunniV2HubInterface.encodeFunctionData("poolState", [metaData]),
|
477
|
+
target: target,
|
478
|
+
};
|
461
479
|
default:
|
462
480
|
throw new Error(`Unknown key ${key}`);
|
463
481
|
}
|
@@ -179,6 +179,8 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""], displ
|
|
179
179
|
return `Deposit ${typeInfo.symbolUnderlyingToken} into Hourglass`;
|
180
180
|
case tokenType.hanji_liquidity_vault_token:
|
181
181
|
return "Provide Liquidity on Hanji Vault";
|
182
|
+
case tokenType.bunniV2:
|
183
|
+
return `Provide Liquidity on Bunni V2 ${typeInfo.symbolToken0}-${typeInfo.symbolToken1}`;
|
182
184
|
default:
|
183
185
|
// OVERRIDE
|
184
186
|
switch (typeInfo.tokenAddress) {
|