@merkl/api 0.10.168 → 0.10.169
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/cache/declaration.d.ts +0 -30
- package/dist/src/cache/declaration.js +0 -30
- package/dist/src/eden/index.d.ts +59 -12
- package/dist/src/index.d.ts +23 -4
- package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.js +2 -2
- package/dist/src/libs/positions/clamm/index.d.ts +1 -2
- package/dist/src/libs/positions/clamm/index.js +322 -330
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.d.ts +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.js +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.js +2 -2
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.d.ts +1 -2
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.js +1 -4
- package/dist/src/libs/positions/euler/index.js +2 -3
- package/dist/src/libs/positions/index.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +6 -5
- package/dist/src/modules/v4/campaign/campaign.service.js +10 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +159 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +29 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +131 -3
- package/dist/src/modules/v4/opportunity/opportunity.service.js +11 -0
- package/dist/src/modules/v4/position/implementations/AjnaPositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/position/implementations/AjnaPositionFetcher.js +90 -0
- package/dist/src/modules/v4/position/implementations/BadgerPositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/position/implementations/BadgerPositionFetcher.js +69 -0
- package/dist/src/modules/v4/position/implementations/ClammPositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/position/implementations/ClammPositionFetcher.js +71 -0
- package/dist/src/modules/v4/position/implementations/DolomitePositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/position/implementations/DolomitePositionFetcher.js +45 -0
- package/dist/src/modules/v4/position/implementations/ERC20PositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/position/implementations/ERC20PositionFetcher.js +47 -0
- package/dist/src/modules/v4/position/implementations/EulerPositionFetcher.d.ts +6 -0
- package/dist/src/modules/v4/position/implementations/EulerPositionFetcher.js +40 -0
- package/dist/src/modules/v4/position/index.d.ts +2 -0
- package/dist/src/modules/v4/position/index.js +2 -0
- package/dist/src/modules/v4/position/position.controller.d.ts +39 -0
- package/dist/src/modules/v4/position/position.controller.js +16 -0
- package/dist/src/modules/v4/position/position.model.d.ts +25 -0
- package/dist/src/modules/v4/position/position.model.js +5 -0
- package/dist/src/modules/v4/position/position.repository.d.ts +14 -0
- package/dist/src/modules/v4/position/position.repository.js +6 -0
- package/dist/src/modules/v4/position/position.service.d.ts +5 -0
- package/dist/src/modules/v4/position/position.service.js +34 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +5 -0
- package/dist/src/modules/v4/reward/reward.service.js +5 -2
- package/dist/src/modules/v4/router.d.ts +23 -4
- package/dist/src/modules/v4/router.js +3 -1
- package/dist/src/routes/v1/prices.js +2 -4
- package/dist/src/routes/v3/blacklist.d.ts +23 -4
- package/dist/src/routes/v3/campaigns.d.ts +24 -5
- package/dist/src/routes/v3/campaignsInfo.d.ts +23 -4
- package/dist/src/routes/v3/multiChainPositions.d.ts +23 -4
- package/dist/src/routes/v3/opportunity.d.ts +23 -4
- package/dist/src/routes/v3/positions.d.ts +23 -4
- package/dist/src/routes/v3/recipients.d.ts +6 -2
- package/dist/src/routes/v3/recipients.js +14 -8
- package/dist/src/routes/v3/rewards.d.ts +23 -4
- package/dist/src/routes/v3/updates.d.ts +23 -4
- package/dist/src/routes/v3/userRewards.d.ts +23 -4
- package/dist/src/utils/prices/services/erc4626Service.js +4 -4
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/libs/reports/campaignReport.d.ts +0 -9
- package/dist/src/libs/reports/campaignReport.js +0 -37
- package/dist/src/libs/reports/mainParameterRewards.d.ts +0 -3
- package/dist/src/libs/reports/mainParameterRewards.js +0 -48
| @@ -15,26 +15,6 @@ export declare const CacheDeclaration: { | |
| 15 15 | 
             
                    redisTTL: TTLType.Minutes5;
         | 
| 16 16 | 
             
                    localCache: false;
         | 
| 17 17 | 
             
                };
         | 
| 18 | 
            -
                CampaignRewards: {
         | 
| 19 | 
            -
                    compressed: true;
         | 
| 20 | 
            -
                    redisTTL: TTLType.Hours12;
         | 
| 21 | 
            -
                    localCache: false;
         | 
| 22 | 
            -
                };
         | 
| 23 | 
            -
                RewardsMainParameter: {
         | 
| 24 | 
            -
                    compressed: true;
         | 
| 25 | 
            -
                    redisTTL: TTLType.Hours12;
         | 
| 26 | 
            -
                    localCache: false;
         | 
| 27 | 
            -
                };
         | 
| 28 | 
            -
                RewardsMainParameterDelta: {
         | 
| 29 | 
            -
                    compressed: true;
         | 
| 30 | 
            -
                    redisTTL: TTLType.Hours12;
         | 
| 31 | 
            -
                    localCache: false;
         | 
| 32 | 
            -
                };
         | 
| 33 | 
            -
                CampaignRewardsDelta: {
         | 
| 34 | 
            -
                    compressed: true;
         | 
| 35 | 
            -
                    redisTTL: TTLType.Hours12;
         | 
| 36 | 
            -
                    localCache: false;
         | 
| 37 | 
            -
                };
         | 
| 38 18 | 
             
                LastBlockBefore: {
         | 
| 39 19 | 
             
                    compressed: false;
         | 
| 40 20 | 
             
                    redisTTL: TTLType.Hours12;
         | 
| @@ -75,16 +55,6 @@ export declare const CacheDeclaration: { | |
| 75 55 | 
             
                    redisTTL: TTLType.Minutes30;
         | 
| 76 56 | 
             
                    localCache: false;
         | 
| 77 57 | 
             
                };
         | 
| 78 | 
            -
                FarmedPositions: {
         | 
| 79 | 
            -
                    compressed: false;
         | 
| 80 | 
            -
                    redisTTL: TTLType.Minutes2;
         | 
| 81 | 
            -
                    localCache: false;
         | 
| 82 | 
            -
                };
         | 
| 83 | 
            -
                JsonByTimestamp: {
         | 
| 84 | 
            -
                    compressed: false;
         | 
| 85 | 
            -
                    redisTTL: TTLType.Minutes10;
         | 
| 86 | 
            -
                    localCache: false;
         | 
| 87 | 
            -
                };
         | 
| 88 58 | 
             
                Prices: {
         | 
| 89 59 | 
             
                    compressed: true;
         | 
| 90 60 | 
             
                    redisTTL: TTLType.Minutes30;
         | 
| @@ -3,26 +3,6 @@ export const CacheDeclaration = { | |
| 3 3 | 
             
                Updates: { compressed: false, redisTTL: TTLType.Minutes2, localCache: false },
         | 
| 4 4 | 
             
                Delays: { compressed: false, redisTTL: TTLType.Minutes2, localCache: false },
         | 
| 5 5 | 
             
                TwtParticipants: { compressed: false, redisTTL: TTLType.Minutes5, localCache: false },
         | 
| 6 | 
            -
                CampaignRewards: {
         | 
| 7 | 
            -
                    compressed: true,
         | 
| 8 | 
            -
                    redisTTL: TTLType.Hours12,
         | 
| 9 | 
            -
                    localCache: false,
         | 
| 10 | 
            -
                },
         | 
| 11 | 
            -
                RewardsMainParameter: {
         | 
| 12 | 
            -
                    compressed: true,
         | 
| 13 | 
            -
                    redisTTL: TTLType.Hours12,
         | 
| 14 | 
            -
                    localCache: false,
         | 
| 15 | 
            -
                },
         | 
| 16 | 
            -
                RewardsMainParameterDelta: {
         | 
| 17 | 
            -
                    compressed: true,
         | 
| 18 | 
            -
                    redisTTL: TTLType.Hours12,
         | 
| 19 | 
            -
                    localCache: false,
         | 
| 20 | 
            -
                },
         | 
| 21 | 
            -
                CampaignRewardsDelta: {
         | 
| 22 | 
            -
                    compressed: true,
         | 
| 23 | 
            -
                    redisTTL: TTLType.Hours12,
         | 
| 24 | 
            -
                    localCache: false,
         | 
| 25 | 
            -
                },
         | 
| 26 6 | 
             
                LastBlockBefore: {
         | 
| 27 7 | 
             
                    compressed: false,
         | 
| 28 8 | 
             
                    redisTTL: TTLType.Hours12,
         | 
| @@ -63,16 +43,6 @@ export const CacheDeclaration = { | |
| 63 43 | 
             
                    redisTTL: TTLType.Minutes30,
         | 
| 64 44 | 
             
                    localCache: false,
         | 
| 65 45 | 
             
                },
         | 
| 66 | 
            -
                FarmedPositions: {
         | 
| 67 | 
            -
                    compressed: false,
         | 
| 68 | 
            -
                    redisTTL: TTLType.Minutes2,
         | 
| 69 | 
            -
                    localCache: false,
         | 
| 70 | 
            -
                },
         | 
| 71 | 
            -
                JsonByTimestamp: {
         | 
| 72 | 
            -
                    compressed: false,
         | 
| 73 | 
            -
                    redisTTL: TTLType.Minutes10,
         | 
| 74 | 
            -
                    localCache: false,
         | 
| 75 | 
            -
                },
         | 
| 76 46 | 
             
                Prices: {
         | 
| 77 47 | 
             
                    compressed: true,
         | 
| 78 48 | 
             
                    redisTTL: TTLType.Minutes30,
         | 
    
        package/dist/src/eden/index.d.ts
    CHANGED
    
    | @@ -192,7 +192,7 @@ declare const eden: { | |
| 192 192 | 
             
                                    tvl: number;
         | 
| 193 193 | 
             
                                    apr: number;
         | 
| 194 194 | 
             
                                    dailyRewards: number;
         | 
| 195 | 
            -
                                    campaigns:  | 
| 195 | 
            +
                                    campaigns: {
         | 
| 196 196 | 
             
                                        params: any;
         | 
| 197 197 | 
             
                                        chain: {
         | 
| 198 198 | 
             
                                            name: string;
         | 
| @@ -235,7 +235,7 @@ declare const eden: { | |
| 235 235 | 
             
                                        amount: string;
         | 
| 236 236 | 
             
                                        opportunityId: string;
         | 
| 237 237 | 
             
                                        creatorAddress: string;
         | 
| 238 | 
            -
                                    } | 
| 238 | 
            +
                                    }[];
         | 
| 239 239 | 
             
                                } | null | undefined;
         | 
| 240 240 | 
             
                            }>>;
         | 
| 241 241 | 
             
                        };
         | 
| @@ -472,7 +472,7 @@ declare const eden: { | |
| 472 472 | 
             
                                };
         | 
| 473 473 | 
             
                                fetch?: RequestInit | undefined;
         | 
| 474 474 | 
             
                            }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
         | 
| 475 | 
            -
                                200:  | 
| 475 | 
            +
                                200: {
         | 
| 476 476 | 
             
                                    params: any;
         | 
| 477 477 | 
             
                                    chain: {
         | 
| 478 478 | 
             
                                        name: string;
         | 
| @@ -515,7 +515,7 @@ declare const eden: { | |
| 515 515 | 
             
                                    amount: string;
         | 
| 516 516 | 
             
                                    opportunityId: string;
         | 
| 517 517 | 
             
                                    creatorAddress: string;
         | 
| 518 | 
            -
                                } | 
| 518 | 
            +
                                }[];
         | 
| 519 519 | 
             
                            }>>;
         | 
| 520 520 | 
             
                        };
         | 
| 521 521 | 
             
                        count: {
         | 
| @@ -1783,6 +1783,20 @@ declare const eden: { | |
| 1783 1783 | 
             
                            }>>;
         | 
| 1784 1784 | 
             
                        };
         | 
| 1785 1785 | 
             
                    };
         | 
| 1786 | 
            +
                    positions: {
         | 
| 1787 | 
            +
                        index: {
         | 
| 1788 | 
            +
                            get: (options: {
         | 
| 1789 | 
            +
                                headers?: Record<string, unknown> | undefined;
         | 
| 1790 | 
            +
                                query: {
         | 
| 1791 | 
            +
                                    chainId: number;
         | 
| 1792 | 
            +
                                    address: string;
         | 
| 1793 | 
            +
                                };
         | 
| 1794 | 
            +
                                fetch?: RequestInit | undefined;
         | 
| 1795 | 
            +
                            }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
         | 
| 1796 | 
            +
                                200: any[];
         | 
| 1797 | 
            +
                            }>>;
         | 
| 1798 | 
            +
                        };
         | 
| 1799 | 
            +
                    };
         | 
| 1786 1800 | 
             
                };
         | 
| 1787 1801 | 
             
            };
         | 
| 1788 1802 | 
             
            type Api = typeof eden;
         | 
| @@ -2053,7 +2067,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 2053 2067 | 
             
                                            tvl: number;
         | 
| 2054 2068 | 
             
                                            apr: number;
         | 
| 2055 2069 | 
             
                                            dailyRewards: number;
         | 
| 2056 | 
            -
                                            campaigns:  | 
| 2070 | 
            +
                                            campaigns: {
         | 
| 2057 2071 | 
             
                                                params: any;
         | 
| 2058 2072 | 
             
                                                chain: {
         | 
| 2059 2073 | 
             
                                                    name: string;
         | 
| @@ -2096,7 +2110,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 2096 2110 | 
             
                                                amount: string;
         | 
| 2097 2111 | 
             
                                                opportunityId: string;
         | 
| 2098 2112 | 
             
                                                creatorAddress: string;
         | 
| 2099 | 
            -
                                            } | 
| 2113 | 
            +
                                            }[];
         | 
| 2100 2114 | 
             
                                        } | null | undefined;
         | 
| 2101 2115 | 
             
                                    };
         | 
| 2102 2116 | 
             
                                };
         | 
| @@ -2338,7 +2352,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 2338 2352 | 
             
                                };
         | 
| 2339 2353 | 
             
                                headers: unknown;
         | 
| 2340 2354 | 
             
                                response: {
         | 
| 2341 | 
            -
                                    200:  | 
| 2355 | 
            +
                                    200: {
         | 
| 2342 2356 | 
             
                                        params: any;
         | 
| 2343 2357 | 
             
                                        chain: {
         | 
| 2344 2358 | 
             
                                            name: string;
         | 
| @@ -2381,7 +2395,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 2381 2395 | 
             
                                        amount: string;
         | 
| 2382 2396 | 
             
                                        opportunityId: string;
         | 
| 2383 2397 | 
             
                                        creatorAddress: string;
         | 
| 2384 | 
            -
                                    } | 
| 2398 | 
            +
                                    }[];
         | 
| 2385 2399 | 
             
                                };
         | 
| 2386 2400 | 
             
                            };
         | 
| 2387 2401 | 
             
                        };
         | 
| @@ -4006,6 +4020,25 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 4006 4020 | 
             
                        };
         | 
| 4007 4021 | 
             
                    };
         | 
| 4008 4022 | 
             
                };
         | 
| 4023 | 
            +
            } & {
         | 
| 4024 | 
            +
                v4: {
         | 
| 4025 | 
            +
                    positions: {
         | 
| 4026 | 
            +
                        index: {
         | 
| 4027 | 
            +
                            get: {
         | 
| 4028 | 
            +
                                body: unknown;
         | 
| 4029 | 
            +
                                params: {};
         | 
| 4030 | 
            +
                                query: {
         | 
| 4031 | 
            +
                                    chainId: number;
         | 
| 4032 | 
            +
                                    address: string;
         | 
| 4033 | 
            +
                                };
         | 
| 4034 | 
            +
                                headers: unknown;
         | 
| 4035 | 
            +
                                response: {
         | 
| 4036 | 
            +
                                    200: any[];
         | 
| 4037 | 
            +
                                };
         | 
| 4038 | 
            +
                            };
         | 
| 4039 | 
            +
                        };
         | 
| 4040 | 
            +
                    };
         | 
| 4041 | 
            +
                };
         | 
| 4009 4042 | 
             
            }, {
         | 
| 4010 4043 | 
             
                derive: {};
         | 
| 4011 4044 | 
             
                resolve: {};
         | 
| @@ -4206,7 +4239,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 4206 4239 | 
             
                                    tvl: number;
         | 
| 4207 4240 | 
             
                                    apr: number;
         | 
| 4208 4241 | 
             
                                    dailyRewards: number;
         | 
| 4209 | 
            -
                                    campaigns:  | 
| 4242 | 
            +
                                    campaigns: {
         | 
| 4210 4243 | 
             
                                        params: any;
         | 
| 4211 4244 | 
             
                                        chain: {
         | 
| 4212 4245 | 
             
                                            name: string;
         | 
| @@ -4249,7 +4282,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 4249 4282 | 
             
                                        amount: string;
         | 
| 4250 4283 | 
             
                                        opportunityId: string;
         | 
| 4251 4284 | 
             
                                        creatorAddress: string;
         | 
| 4252 | 
            -
                                    } | 
| 4285 | 
            +
                                    }[];
         | 
| 4253 4286 | 
             
                                } | null | undefined;
         | 
| 4254 4287 | 
             
                            }>>;
         | 
| 4255 4288 | 
             
                        };
         | 
| @@ -4486,7 +4519,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 4486 4519 | 
             
                                };
         | 
| 4487 4520 | 
             
                                fetch?: RequestInit | undefined;
         | 
| 4488 4521 | 
             
                            }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
         | 
| 4489 | 
            -
                                200:  | 
| 4522 | 
            +
                                200: {
         | 
| 4490 4523 | 
             
                                    params: any;
         | 
| 4491 4524 | 
             
                                    chain: {
         | 
| 4492 4525 | 
             
                                        name: string;
         | 
| @@ -4529,7 +4562,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 4529 4562 | 
             
                                    amount: string;
         | 
| 4530 4563 | 
             
                                    opportunityId: string;
         | 
| 4531 4564 | 
             
                                    creatorAddress: string;
         | 
| 4532 | 
            -
                                } | 
| 4565 | 
            +
                                }[];
         | 
| 4533 4566 | 
             
                            }>>;
         | 
| 4534 4567 | 
             
                        };
         | 
| 4535 4568 | 
             
                        count: {
         | 
| @@ -5797,6 +5830,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 5797 5830 | 
             
                            }>>;
         | 
| 5798 5831 | 
             
                        };
         | 
| 5799 5832 | 
             
                    };
         | 
| 5833 | 
            +
                    positions: {
         | 
| 5834 | 
            +
                        index: {
         | 
| 5835 | 
            +
                            get: (options: {
         | 
| 5836 | 
            +
                                headers?: Record<string, unknown> | undefined;
         | 
| 5837 | 
            +
                                query: {
         | 
| 5838 | 
            +
                                    chainId: number;
         | 
| 5839 | 
            +
                                    address: string;
         | 
| 5840 | 
            +
                                };
         | 
| 5841 | 
            +
                                fetch?: RequestInit | undefined;
         | 
| 5842 | 
            +
                            }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
         | 
| 5843 | 
            +
                                200: any[];
         | 
| 5844 | 
            +
                            }>>;
         | 
| 5845 | 
            +
                        };
         | 
| 5846 | 
            +
                    };
         | 
| 5800 5847 | 
             
                };
         | 
| 5801 5848 | 
             
            };
         | 
| 5802 5849 | 
             
            export type Opportunity = FromPromise<Api["v4"]["opportunities"]["index"]["get"]>;
         | 
    
        package/dist/src/index.d.ts
    CHANGED
    
    | @@ -259,7 +259,7 @@ declare const app: Elysia<"", false, { | |
| 259 259 | 
             
                                            tvl: number;
         | 
| 260 260 | 
             
                                            apr: number;
         | 
| 261 261 | 
             
                                            dailyRewards: number;
         | 
| 262 | 
            -
                                            campaigns:  | 
| 262 | 
            +
                                            campaigns: {
         | 
| 263 263 | 
             
                                                params: any;
         | 
| 264 264 | 
             
                                                chain: {
         | 
| 265 265 | 
             
                                                    name: string;
         | 
| @@ -302,7 +302,7 @@ declare const app: Elysia<"", false, { | |
| 302 302 | 
             
                                                amount: string;
         | 
| 303 303 | 
             
                                                opportunityId: string;
         | 
| 304 304 | 
             
                                                creatorAddress: string;
         | 
| 305 | 
            -
                                            } | 
| 305 | 
            +
                                            }[];
         | 
| 306 306 | 
             
                                        } | null | undefined;
         | 
| 307 307 | 
             
                                    };
         | 
| 308 308 | 
             
                                };
         | 
| @@ -544,7 +544,7 @@ declare const app: Elysia<"", false, { | |
| 544 544 | 
             
                                };
         | 
| 545 545 | 
             
                                headers: unknown;
         | 
| 546 546 | 
             
                                response: {
         | 
| 547 | 
            -
                                    200:  | 
| 547 | 
            +
                                    200: {
         | 
| 548 548 | 
             
                                        params: any;
         | 
| 549 549 | 
             
                                        chain: {
         | 
| 550 550 | 
             
                                            name: string;
         | 
| @@ -587,7 +587,7 @@ declare const app: Elysia<"", false, { | |
| 587 587 | 
             
                                        amount: string;
         | 
| 588 588 | 
             
                                        opportunityId: string;
         | 
| 589 589 | 
             
                                        creatorAddress: string;
         | 
| 590 | 
            -
                                    } | 
| 590 | 
            +
                                    }[];
         | 
| 591 591 | 
             
                                };
         | 
| 592 592 | 
             
                            };
         | 
| 593 593 | 
             
                        };
         | 
| @@ -2212,6 +2212,25 @@ declare const app: Elysia<"", false, { | |
| 2212 2212 | 
             
                        };
         | 
| 2213 2213 | 
             
                    };
         | 
| 2214 2214 | 
             
                };
         | 
| 2215 | 
            +
            } & {
         | 
| 2216 | 
            +
                v4: {
         | 
| 2217 | 
            +
                    positions: {
         | 
| 2218 | 
            +
                        index: {
         | 
| 2219 | 
            +
                            get: {
         | 
| 2220 | 
            +
                                body: unknown;
         | 
| 2221 | 
            +
                                params: {};
         | 
| 2222 | 
            +
                                query: {
         | 
| 2223 | 
            +
                                    chainId: number;
         | 
| 2224 | 
            +
                                    address: string;
         | 
| 2225 | 
            +
                                };
         | 
| 2226 | 
            +
                                headers: unknown;
         | 
| 2227 | 
            +
                                response: {
         | 
| 2228 | 
            +
                                    200: any[];
         | 
| 2229 | 
            +
                                };
         | 
| 2230 | 
            +
                            };
         | 
| 2231 | 
            +
                        };
         | 
| 2232 | 
            +
                    };
         | 
| 2233 | 
            +
                };
         | 
| 2215 2234 | 
             
            }, {
         | 
| 2216 2235 | 
             
                derive: {};
         | 
| 2217 2236 | 
             
                resolve: {};
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import { nftPositionByIdsQuery, positionMultipleOwnersQuery } from "../../positions/clamm/thegraph";
         | 
| 2 | 
            -
            import {  | 
| 2 | 
            +
            import { fetchFarmedPositions } from "../../positions/clamm/thegraph/fetchFarmedPositions";
         | 
| 3 3 | 
             
            import { A51Factory__factory, ALM, ALMMapping, AMM, AMMAlgorithm, AMMAlgorithmMapping, BN2Number, DecodeLiquidity, EAprBreakdownType, ERC20Interface, Forwarder, JonesDoubleRewardTracker__factory, Liquidity, NETWORK_LABELS, NitroInterface, PoolInterface, PoolState, PriorityAMM, SqrtPrice, almName, ammName, getAmountsForLiquidity, getTickAtSqrtRatio, isBlacklisted, isWhitelisted, merklSubgraphAMMEndpoints, shortenAddress, spNFTInterface, withTimeout, } from "@sdk";
         | 
| 4 4 | 
             
            import axios from "axios";
         | 
| 5 5 | 
             
            import { BigNumber, utils } from "ethers";
         | 
| @@ -208,7 +208,7 @@ export async function CLAMMDynamicData(chainId, campaigns) { | |
| 208 208 | 
             
                        if (targetAddressesList?.length > 0) {
         | 
| 209 209 | 
             
                            positions[Number.parseInt(amm)] = [];
         | 
| 210 210 | 
             
                            /** Fetch NFT Wrapper positions */
         | 
| 211 | 
            -
                            const farmedPositionsList = await  | 
| 211 | 
            +
                            const farmedPositionsList = await fetchFarmedPositions(chainId, targetAddressesList, Number(amm));
         | 
| 212 212 | 
             
                            const farmedPositionsById = Object.keys(farmedPositionsList).reduce((acc, curr) => {
         | 
| 213 213 | 
             
                                for (const pos of farmedPositionsList[curr]) {
         | 
| 214 214 | 
             
                                    acc[pos.id] = pos;
         | 
| @@ -1,8 +1,7 @@ | |
| 1 1 | 
             
            import { type MerklChainId } from "@sdk";
         | 
| 2 | 
            -
            import type { UncachedResult } from "../../../utils/execute";
         | 
| 3 2 | 
             
            import type { CLAMMPosition } from "../types";
         | 
| 4 3 | 
             
            export declare function getClammUserPositions(user: string, chainId: MerklChainId, poolsByAmm: {
         | 
| 5 4 | 
             
                [amm: string]: {
         | 
| 6 5 | 
             
                    [pool: string]: any;
         | 
| 7 6 | 
             
                };
         | 
| 8 | 
            -
            }): Promise< | 
| 7 | 
            +
            }, withIndividualAPRs?: boolean): Promise<Record<string, CLAMMPosition>>;
         |