@merkl/api 0.10.152 → 0.10.154
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 +53 -34
 - package/dist/src/index.d.ts +17 -12
 - package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
 - package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +4 -0
 - package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MaverickBPProcessor.js +0 -1
 - package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/ZkSwapThreePoolProcessor.d.ts +53 -0
 - package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/ZkSwapThreePoolProcessor.js +55 -0
 - package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +2 -0
 - package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +6 -1
 - package/dist/src/libs/campaigns/utils/getLastEligibilityRatio.js +15 -6
 - package/dist/src/modules/v4/campaign/campaign.controller.d.ts +14 -12
 - package/dist/src/modules/v4/campaign/campaign.controller.js +1 -1
 - package/dist/src/modules/v4/chainInteraction/chainInteraction.service.d.ts +2 -0
 - package/dist/src/modules/v4/chainInteraction/chainInteraction.service.js +4 -0
 - package/dist/src/modules/v4/chainInteraction/index.d.ts +1 -0
 - package/dist/src/modules/v4/chainInteraction/index.js +1 -0
 - package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +3 -0
 - package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -1
 - package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -1
 - package/dist/src/modules/v4/opportunity/opportunity.repository.js +1 -0
 - package/dist/src/modules/v4/router.d.ts +17 -12
 - package/dist/src/modules/v4/tracer/index.d.ts +1 -0
 - package/dist/src/modules/v4/tracer/index.js +1 -0
 - package/dist/src/modules/v4/tracer/tracer.service.d.ts +3 -0
 - package/dist/src/modules/v4/tracer/tracer.service.js +30 -0
 - package/dist/src/routes/v3/ERC20Campaigns.d.ts +17 -12
 - package/dist/src/routes/v3/blacklist.d.ts +17 -12
 - package/dist/src/routes/v3/campaigns.d.ts +17 -12
 - package/dist/src/routes/v3/campaignsInfo.d.ts +17 -12
 - package/dist/src/routes/v3/multiChainPositions.d.ts +17 -12
 - package/dist/src/routes/v3/opportunity.d.ts +17 -12
 - package/dist/src/routes/v3/positions.d.ts +17 -12
 - package/dist/src/routes/v3/rewards.d.ts +17 -12
 - package/dist/src/routes/v3/updates.d.ts +17 -12
 - package/dist/src/routes/v3/userRewards.d.ts +17 -12
 - package/dist/src/utils/decodeCalls.js +7 -1
 - package/dist/src/utils/encodeCalls.js +19 -1
 - package/dist/src/utils/generateCardName.js +3 -1
 - package/dist/tsconfig.package.tsbuildinfo +1 -1
 - package/package.json +1 -1
 - package/dist/src/libs/rewards/userRewards.d.ts +0 -2
 - package/dist/src/libs/rewards/userRewards.js +0 -154
 
| 
         @@ -1,5 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import { tokenType } from "../libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType";
         
     | 
| 
       2 
     | 
    
         
            -
            import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, RadiantInterface, RfxDatastoreInterface, SturdyInterface, TorosInterface, UniswapV2PoolInterface, } from "@sdk";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, RadiantInterface, RfxDatastoreInterface, SturdyInterface, TorosInterface, UniswapV2PoolInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } from "@sdk";
         
     | 
| 
       3 
3 
     | 
    
         
             
            import { fluidInterface } from "src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1";
         
     | 
| 
       4 
4 
     | 
    
         
             
            export function createCall(target, key, type, metaData) {
         
     | 
| 
       5 
5 
     | 
    
         
             
                switch (key) {
         
     | 
| 
         @@ -240,6 +240,24 @@ export function createCall(target, key, type, metaData) { 
     | 
|
| 
       240 
240 
     | 
    
         
             
                            callData: MaverickBPLensInterface.encodeFunctionData("boostedPositionInformation", [metaData]),
         
     | 
| 
       241 
241 
     | 
    
         
             
                            target: target,
         
     | 
| 
       242 
242 
     | 
    
         
             
                        };
         
     | 
| 
      
 243 
     | 
    
         
            +
                    case "coins":
         
     | 
| 
      
 244 
     | 
    
         
            +
                        return {
         
     | 
| 
      
 245 
     | 
    
         
            +
                            allowFailure: true,
         
     | 
| 
      
 246 
     | 
    
         
            +
                            callData: ZFStableSwapThreePoolInterface.encodeFunctionData("coins", [metaData]),
         
     | 
| 
      
 247 
     | 
    
         
            +
                            target: target,
         
     | 
| 
      
 248 
     | 
    
         
            +
                        };
         
     | 
| 
      
 249 
     | 
    
         
            +
                    case "balances":
         
     | 
| 
      
 250 
     | 
    
         
            +
                        return {
         
     | 
| 
      
 251 
     | 
    
         
            +
                            allowFailure: true,
         
     | 
| 
      
 252 
     | 
    
         
            +
                            callData: ZFStableSwapThreePoolInterface.encodeFunctionData("balances", [metaData]),
         
     | 
| 
      
 253 
     | 
    
         
            +
                            target: target,
         
     | 
| 
      
 254 
     | 
    
         
            +
                        };
         
     | 
| 
      
 255 
     | 
    
         
            +
                    case "minter":
         
     | 
| 
      
 256 
     | 
    
         
            +
                        return {
         
     | 
| 
      
 257 
     | 
    
         
            +
                            allowFailure: true,
         
     | 
| 
      
 258 
     | 
    
         
            +
                            callData: ZFStableLPINterface.encodeFunctionData("minter"),
         
     | 
| 
      
 259 
     | 
    
         
            +
                            target: target,
         
     | 
| 
      
 260 
     | 
    
         
            +
                        };
         
     | 
| 
       243 
261 
     | 
    
         
             
                    default:
         
     | 
| 
       244 
262 
     | 
    
         
             
                        throw new Error(`Unknown key ${key}`);
         
     | 
| 
       245 
263 
     | 
    
         
             
                }
         
     | 
| 
         @@ -84,7 +84,9 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""]) { 
     | 
|
| 
       84 
84 
     | 
    
         
             
                    case tokenType.woofi:
         
     | 
| 
       85 
85 
     | 
    
         
             
                        return `Supercharge ${typeInfo.symbolUnderlying} on ${typeInfo.protocol}`;
         
     | 
| 
       86 
86 
     | 
    
         
             
                    case tokenType.maverickBoostedPosition:
         
     | 
| 
       87 
     | 
    
         
            -
                        return `Hold or stake Maverick Boosted Position ${campaign.campaignParameters.symbolTargetToken} on ${typeInfo.protocol}`;
         
     | 
| 
      
 87 
     | 
    
         
            +
                        return `Hold (or stake) Maverick Boosted Position ${campaign.campaignParameters.symbolTargetToken} on ${typeInfo.protocol}`;
         
     | 
| 
      
 88 
     | 
    
         
            +
                    case tokenType.zkSwapThreePool:
         
     | 
| 
      
 89 
     | 
    
         
            +
                        return `Hold (or stake) ${campaign.campaignParameters.symbolTargetToken} ${typeInfo.symbolToken0}-${typeInfo.symbolToken1}-${typeInfo.symbolToken2} on ${typeInfo.protocol}`;
         
     | 
| 
       88 
90 
     | 
    
         
             
                    default:
         
     | 
| 
       89 
91 
     | 
    
         
             
                        return `Hold ${typeInfo.name} (${campaign.campaignParameters.symbolTargetToken})`;
         
     | 
| 
       90 
92 
     | 
    
         
             
                }
         
     |