@merkl/api 1.0.68 → 1.0.69

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.
@@ -1526,6 +1526,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1526
1526
  747474?: {
1527
1527
  [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
1528
1528
  } | undefined;
1529
+ 151?: {
1530
+ [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
1531
+ } | undefined;
1529
1532
  } | null;
1530
1533
  };
1531
1534
  };
@@ -9511,6 +9514,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
9511
9514
  747474?: {
9512
9515
  [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
9513
9516
  } | undefined;
9517
+ 151?: {
9518
+ [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
9519
+ } | undefined;
9514
9520
  };
9515
9521
  };
9516
9522
  };
@@ -9956,7 +9962,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
9956
9962
  };
9957
9963
  headers: unknown;
9958
9964
  response: {
9959
- [x: string]: any;
9960
9965
  200: {
9961
9966
  id: string;
9962
9967
  recipient: string;
@@ -11312,6 +11317,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11312
11317
  747474?: {
11313
11318
  [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
11314
11319
  } | undefined;
11320
+ 151?: {
11321
+ [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
11322
+ } | undefined;
11315
11323
  } | null;
11316
11324
  }>>;
11317
11325
  pool: ((params: {
@@ -18366,6 +18374,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
18366
18374
  747474?: {
18367
18375
  [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
18368
18376
  } | undefined;
18377
+ 151?: {
18378
+ [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
18379
+ } | undefined;
18369
18380
  };
18370
18381
  }>>;
18371
18382
  };
@@ -18705,7 +18716,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
18705
18716
  };
18706
18717
  fetch?: RequestInit | undefined;
18707
18718
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
18708
- [x: string]: any;
18709
18719
  200: {
18710
18720
  id: string;
18711
18721
  recipient: string;
@@ -1527,6 +1527,9 @@ declare const app: Elysia<"", {
1527
1527
  747474?: {
1528
1528
  [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
1529
1529
  } | undefined;
1530
+ 151?: {
1531
+ [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
1532
+ } | undefined;
1530
1533
  } | null;
1531
1534
  };
1532
1535
  };
@@ -9512,6 +9515,9 @@ declare const app: Elysia<"", {
9512
9515
  747474?: {
9513
9516
  [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
9514
9517
  } | undefined;
9518
+ 151?: {
9519
+ [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
9520
+ } | undefined;
9515
9521
  };
9516
9522
  };
9517
9523
  };
@@ -9957,7 +9963,6 @@ declare const app: Elysia<"", {
9957
9963
  };
9958
9964
  headers: unknown;
9959
9965
  response: {
9960
- [x: string]: any;
9961
9966
  200: {
9962
9967
  id: string;
9963
9968
  recipient: string;
@@ -586,7 +586,21 @@ export declare abstract class CampaignRepository {
586
586
  * @dev IDs are different from the API database.
587
587
  * id in the engine database = campaignId in the API database
588
588
  */
589
- static getFromEngineDbWithId(campaignIds: CampaignUnique[]): Promise<any>;
589
+ static getFromEngineDbWithId(campaignIds: CampaignUnique[]): Promise<{
590
+ rewardToken: string;
591
+ campaignId: string;
592
+ creator: string;
593
+ amount: string;
594
+ index: number;
595
+ chainId: number;
596
+ campaignType: number;
597
+ startTimestamp: number;
598
+ computeChainId: number;
599
+ endTimestamp: number;
600
+ campaignParameters: import("@prisma/client/runtime/client").JsonValue;
601
+ mainParameter: string;
602
+ campaignSubType: number;
603
+ }[]>;
590
604
  static findUnique(id: string, withOpportunity: boolean): Promise<({
591
605
  CampaignStatus: {
592
606
  campaignId: string;
@@ -316,7 +316,20 @@ export declare abstract class CampaignService {
316
316
  static pickCampaignToProcess(chainId: ChainId): Promise<{
317
317
  campaignId: string;
318
318
  }>;
319
- static findEngineCampaigns(campaigns: CampaignUnique[]): Promise<any>;
319
+ static findEngineCampaigns(campaigns: CampaignUnique[]): Promise<{
320
+ amount: string;
321
+ chainId: number;
322
+ computeChainId: number;
323
+ creator: string;
324
+ endTimestamp: string;
325
+ campaignId: string;
326
+ opportunityIdentifier: string;
327
+ params: string;
328
+ rewardTokenAddress: string;
329
+ startTimestamp: string;
330
+ type: number;
331
+ subType: number;
332
+ }[]>;
320
333
  static fill(campaigns: CampaignUnique[]): Promise<{
321
334
  success: number;
322
335
  fail: number;
@@ -352,8 +365,8 @@ export declare abstract class CampaignService {
352
365
  static getDailyAmount<T extends bigint | number>(start: T, end: T, amount: bigint): bigint;
353
366
  static createFakeCampaign<C extends CampaignType>(body: CampaignConfigMinimalModel): CampaignParameters<C>;
354
367
  static createFakeCampaignEngine(body: CampaignConfigMinimalModel): {
355
- computeChainId: ChainId.ARBITRUM | ChainId.AVALANCHE | ChainId.BASE | ChainId.BSC | ChainId.CELO | ChainId.CORE | ChainId.FANTOM | ChainId.FUSE | ChainId.XLAYER | ChainId.GNOSIS | ChainId.LINEA | ChainId.MAINNET | ChainId.MANTLE | ChainId.OPTIMISM | ChainId.POLYGON | ChainId.POLYGONZKEVM | ChainId.THUNDERCORE | ChainId.ZKSYNC | ChainId.SCROLL | ChainId.MANTA | ChainId.IMMUTABLE | ChainId.BLAST | ChainId.MODE | ChainId.ASTAR | ChainId.ROOTSTOCK | ChainId.TAIKO | ChainId.SEI | ChainId.MOONBEAM | ChainId.SKALE | ChainId.FRAXTAL | ChainId.BOB | ChainId.WORLDCHAIN | ChainId.ETHERLINK | ChainId.LISK | ChainId.UNICHAIN | ChainId.BERACHAIN | ChainId.SWELL | ChainId.ARTHERA | ChainId.SONIC | ChainId.CORN | ChainId.SONEIUM | ChainId.INK | ChainId.RONIN | ChainId.FLOW | ChainId.NIBIRU | ChainId.APECHAIN | ChainId.HYPEREVM | ChainId.ZIRCUIT | ChainId.HEMI | ChainId.SAGA_EVM | ChainId.PLUME | ChainId.XDC | ChainId.KATANA;
356
- chainId: ChainId.ARBITRUM | ChainId.AVALANCHE | ChainId.BASE | ChainId.BSC | ChainId.CELO | ChainId.CORE | ChainId.FANTOM | ChainId.FUSE | ChainId.XLAYER | ChainId.GNOSIS | ChainId.LINEA | ChainId.MAINNET | ChainId.MANTLE | ChainId.OPTIMISM | ChainId.POLYGON | ChainId.POLYGONZKEVM | ChainId.THUNDERCORE | ChainId.ZKSYNC | ChainId.SCROLL | ChainId.MANTA | ChainId.IMMUTABLE | ChainId.BLAST | ChainId.MODE | ChainId.ASTAR | ChainId.ROOTSTOCK | ChainId.TAIKO | ChainId.SEI | ChainId.MOONBEAM | ChainId.SKALE | ChainId.FRAXTAL | ChainId.BOB | ChainId.WORLDCHAIN | ChainId.ETHERLINK | ChainId.LISK | ChainId.UNICHAIN | ChainId.BERACHAIN | ChainId.SWELL | ChainId.ARTHERA | ChainId.SONIC | ChainId.CORN | ChainId.SONEIUM | ChainId.INK | ChainId.RONIN | ChainId.FLOW | ChainId.NIBIRU | ChainId.APECHAIN | ChainId.HYPEREVM | ChainId.ZIRCUIT | ChainId.HEMI | ChainId.SAGA_EVM | ChainId.PLUME | ChainId.XDC | ChainId.KATANA;
368
+ computeChainId: ChainId.ARBITRUM | ChainId.AVALANCHE | ChainId.BASE | ChainId.BSC | ChainId.CELO | ChainId.CORE | ChainId.FANTOM | ChainId.FUSE | ChainId.XLAYER | ChainId.GNOSIS | ChainId.LINEA | ChainId.MAINNET | ChainId.MANTLE | ChainId.OPTIMISM | ChainId.POLYGON | ChainId.POLYGONZKEVM | ChainId.THUNDERCORE | ChainId.ZKSYNC | ChainId.SCROLL | ChainId.MANTA | ChainId.IMMUTABLE | ChainId.BLAST | ChainId.MODE | ChainId.ASTAR | ChainId.ROOTSTOCK | ChainId.TAIKO | ChainId.SEI | ChainId.MOONBEAM | ChainId.SKALE | ChainId.FRAXTAL | ChainId.BOB | ChainId.WORLDCHAIN | ChainId.ETHERLINK | ChainId.LISK | ChainId.UNICHAIN | ChainId.BERACHAIN | ChainId.SWELL | ChainId.ARTHERA | ChainId.SONIC | ChainId.CORN | ChainId.SONEIUM | ChainId.INK | ChainId.RONIN | ChainId.FLOW | ChainId.NIBIRU | ChainId.APECHAIN | ChainId.HYPEREVM | ChainId.ZIRCUIT | ChainId.HEMI | ChainId.SAGA_EVM | ChainId.PLUME | ChainId.XDC | ChainId.KATANA | ChainId.REDBELLY;
369
+ chainId: ChainId.ARBITRUM | ChainId.AVALANCHE | ChainId.BASE | ChainId.BSC | ChainId.CELO | ChainId.CORE | ChainId.FANTOM | ChainId.FUSE | ChainId.XLAYER | ChainId.GNOSIS | ChainId.LINEA | ChainId.MAINNET | ChainId.MANTLE | ChainId.OPTIMISM | ChainId.POLYGON | ChainId.POLYGONZKEVM | ChainId.THUNDERCORE | ChainId.ZKSYNC | ChainId.SCROLL | ChainId.MANTA | ChainId.IMMUTABLE | ChainId.BLAST | ChainId.MODE | ChainId.ASTAR | ChainId.ROOTSTOCK | ChainId.TAIKO | ChainId.SEI | ChainId.MOONBEAM | ChainId.SKALE | ChainId.FRAXTAL | ChainId.BOB | ChainId.WORLDCHAIN | ChainId.ETHERLINK | ChainId.LISK | ChainId.UNICHAIN | ChainId.BERACHAIN | ChainId.SWELL | ChainId.ARTHERA | ChainId.SONIC | ChainId.CORN | ChainId.SONEIUM | ChainId.INK | ChainId.RONIN | ChainId.FLOW | ChainId.NIBIRU | ChainId.APECHAIN | ChainId.HYPEREVM | ChainId.ZIRCUIT | ChainId.HEMI | ChainId.SAGA_EVM | ChainId.PLUME | ChainId.XDC | ChainId.KATANA | ChainId.REDBELLY;
357
370
  campaignId: string;
358
371
  creator: string;
359
372
  type: CampaignType;
@@ -24,7 +24,6 @@ export declare const NodeController: Elysia<"/node", {
24
24
  };
25
25
  headers: unknown;
26
26
  response: {
27
- [x: string]: any;
28
27
  200: {
29
28
  id: string;
30
29
  recipient: string;
@@ -1,4 +1,21 @@
1
1
  import type { GetNodeModel } from "./node.model";
2
2
  export declare class NodeRepository {
3
- static findMany(query: GetNodeModel): Promise<any>;
3
+ static findMany(query: GetNodeModel): Promise<({
4
+ NodesSources: {
5
+ id: string;
6
+ chainId: number;
7
+ source: string;
8
+ nodeType: string;
9
+ lastFetchedBlockNumber: number;
10
+ topics: string[];
11
+ };
12
+ } & {
13
+ id: string;
14
+ recipient: string;
15
+ chainId: number;
16
+ metadata: import("@prisma/client/runtime/client").JsonValue | null;
17
+ nodeType: string;
18
+ nodesSourceId: string;
19
+ creationBlockNumber: number;
20
+ })[]>;
4
21
  }
@@ -1,4 +1,21 @@
1
1
  import type { GetNodeModel } from "./node.model";
2
2
  export declare abstract class NodeService {
3
- static findMany(query: GetNodeModel): Promise<any>;
3
+ static findMany(query: GetNodeModel): Promise<({
4
+ NodesSources: {
5
+ id: string;
6
+ chainId: number;
7
+ source: string;
8
+ nodeType: string;
9
+ lastFetchedBlockNumber: number;
10
+ topics: string[];
11
+ };
12
+ } & {
13
+ id: string;
14
+ recipient: string;
15
+ chainId: number;
16
+ metadata: import("@prisma/client/runtime/client").JsonValue | null;
17
+ nodeType: string;
18
+ nodesSourceId: string;
19
+ creationBlockNumber: number;
20
+ })[]>;
4
21
  }
@@ -155,6 +155,24 @@ export type partialConfigERC20 = {
155
155
  forwarders: ForwarderParameters<Forwarder>[];
156
156
  apr?: string;
157
157
  };
158
+ export type partialConfigMORPHOBORROW = {
159
+ computeChainId?: MerklChainId;
160
+ hooks?: (HookParameters<HOOK> | string)[];
161
+ campaignType: Campaign;
162
+ market: string;
163
+ whitelist: string[];
164
+ blacklist: string[];
165
+ url?: string;
166
+ };
167
+ export type partialConfigMORPHOSUPPLY = {
168
+ computeChainId?: MerklChainId;
169
+ hooks?: (HookParameters<HOOK> | string)[];
170
+ campaignType: Campaign;
171
+ market: string;
172
+ whitelist: string[];
173
+ blacklist: string[];
174
+ url?: string;
175
+ };
158
176
  export type partialConfigERC20FixedAPR = {
159
177
  computeChainId?: MerklChainId;
160
178
  hooks?: (HookParameters<HOOK> | string)[];
@@ -251,7 +269,7 @@ export type partialConfigLocker = {
251
269
  lockEvent: LockerEventSchema;
252
270
  unlockEvent: LockerEventSchema;
253
271
  };
254
- export type partialConfig = partialConfigERC20 | partialConfigMorpho | partialConfigCLAMM | partialConfigIonic | partialConfigCompoundV3 | partialConfigMultiLog | partialConfigLocker | partialConfigAirdrop | partialConfigERC20FixedAPR;
272
+ export type partialConfig = partialConfigERC20 | partialConfigMorpho | partialConfigCLAMM | partialConfigIonic | partialConfigCompoundV3 | partialConfigMultiLog | partialConfigLocker | partialConfigAirdrop | partialConfigERC20FixedAPR | partialConfigMORPHOBORROW | partialConfigMORPHOSUPPLY;
255
273
  export declare const safeTemplate: {
256
274
  version: string;
257
275
  chainId: string;
@@ -393,7 +393,8 @@ export declare enum pufferCampaigns {
393
393
  Karak = "0x1f2aa9680910aC5a4527FA72001dC249943f60b4",
394
394
  Curve_pufEth = "0xEEda34A377dD0ca676b9511EE1324974fA8d980D",
395
395
  Curve_pufEth_wETH = "0x39F5b252dE249790fAEd0C2F05aBead56D2088e1",
396
- Morpho_pufETH_WETH = "0x0eed5a89c7d397d02fd0b9b8e42811ca67e50ed5aeaa4f22e506516c716cfbbf",
396
+ Morpho_Supply_pufETH_WETH = "0x0eed5a89c7d397d02fd0b9b8e42811ca67e50ed5aeaa4f22e506516c716cfbbf",
397
+ Morpho_Borrow_WETH_market_pufETH_collateral = "Morpho Borrow WETH market with pufETH collateral 0x0eed5a89c7d397d02fd0b9b8e42811ca67e50ed5aeaa4f22e506516c716cfbbf",
397
398
  Pencils_ppufEth = "0x0C530882C0900b13FC6E8312B52c26e7a5b8e505",
398
399
  Morpho_pufETH_USDC = "0x7e9c708876fa3816c46aeb08937b51aa0461c2af3865ecb306433db8a80b1d1b",
399
400
  balancer_wstETH_pufETH = "0x63E0d47A6964aD1565345Da9bfA66659F4983F02",
@@ -7949,6 +7949,9 @@ export declare const v4: Elysia<"/v4", {
7949
7949
  747474?: {
7950
7950
  [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
7951
7951
  } | undefined;
7952
+ 151?: {
7953
+ [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
7954
+ } | undefined;
7952
7955
  };
7953
7956
  };
7954
7957
  };
@@ -8394,7 +8397,6 @@ export declare const v4: Elysia<"/v4", {
8394
8397
  };
8395
8398
  headers: unknown;
8396
8399
  response: {
8397
- [x: string]: any;
8398
8400
  200: {
8399
8401
  id: string;
8400
8402
  recipient: string;
@@ -259,6 +259,9 @@ export declare const UniswapController: Elysia<"uniswap", {
259
259
  747474?: {
260
260
  [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
261
261
  } | undefined;
262
+ 151?: {
263
+ [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
264
+ } | undefined;
262
265
  };
263
266
  };
264
267
  };
@@ -12,5 +12,13 @@ export declare abstract class UniswapRepository {
12
12
  static createMany(data: LoggedCreateBody): Promise<import("@package/databases").BatchPayload>;
13
13
  }
14
14
  export declare abstract class EkuboRepository {
15
- static getStoredEkuboPools(chainId?: EkuboChainId): Promise<any>;
15
+ static getStoredEkuboPools(chainId?: EkuboChainId): Promise<{
16
+ id: string;
17
+ recipient: string;
18
+ chainId: number;
19
+ metadata: import("@prisma/client/runtime/client").JsonValue | null;
20
+ nodeType: string;
21
+ nodesSourceId: string;
22
+ creationBlockNumber: number;
23
+ }[]>;
16
24
  }
@@ -1330,6 +1330,9 @@ export declare const v3: Elysia<"/v3", {
1330
1330
  747474?: {
1331
1331
  [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
1332
1332
  } | undefined;
1333
+ 151?: {
1334
+ [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
1335
+ } | undefined;
1333
1336
  } | null;
1334
1337
  };
1335
1338
  };
@@ -181,6 +181,9 @@ declare const _default: (app: Elysia) => Elysia<"", {
181
181
  747474?: {
182
182
  [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
183
183
  } | undefined;
184
+ 151?: {
185
+ [poolId: string]: import("@angleprotocol/sdk/ts").UniswapV4PoolType;
186
+ } | undefined;
184
187
  } | null;
185
188
  };
186
189
  };
@@ -58,6 +58,7 @@ export declare const providers: {
58
58
  98866: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
59
59
  50: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
60
60
  747474: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
61
+ 151: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
61
62
  };
62
63
  export declare const archiveProviders: {
63
64
  42161: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
@@ -117,6 +118,7 @@ export declare const archiveProviders: {
117
118
  98866: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
118
119
  50: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
119
120
  747474: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
121
+ 151: ethers.providers.StaticJsonRpcProvider | ethers.providers.InfuraProvider;
120
122
  };
121
123
  export declare const multicalls: {
122
124
  [chainId: number]: Multicall;