@merkl/api 1.0.83 → 1.0.85

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.
@@ -10128,6 +10128,39 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
10128
10128
  };
10129
10129
  };
10130
10130
  };
10131
+ } & {
10132
+ v4: {
10133
+ ton: {
10134
+ users: {
10135
+ ":tonAddress": {
10136
+ get: {
10137
+ body: unknown;
10138
+ params: {
10139
+ tonAddress: string;
10140
+ };
10141
+ query: unknown;
10142
+ headers: unknown;
10143
+ response: {
10144
+ 200: {
10145
+ address: string;
10146
+ tags: string[];
10147
+ creatorId: string | null;
10148
+ };
10149
+ 422: {
10150
+ type: "validation";
10151
+ on: string;
10152
+ summary?: string;
10153
+ message?: string;
10154
+ found?: unknown;
10155
+ property?: string;
10156
+ expected?: string;
10157
+ };
10158
+ };
10159
+ };
10160
+ };
10161
+ };
10162
+ };
10163
+ };
10131
10164
  }, {
10132
10165
  derive: {};
10133
10166
  resolve: {};
@@ -19046,5 +19079,31 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
19046
19079
  };
19047
19080
  }>>;
19048
19081
  };
19082
+ ton: {
19083
+ users: ((params: {
19084
+ tonAddress: string | number;
19085
+ }) => {
19086
+ get: (options?: {
19087
+ headers?: Record<string, unknown> | undefined;
19088
+ query?: Record<string, unknown> | undefined;
19089
+ fetch?: RequestInit | undefined;
19090
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
19091
+ 200: {
19092
+ address: string;
19093
+ tags: string[];
19094
+ creatorId: string | null;
19095
+ };
19096
+ 422: {
19097
+ type: "validation";
19098
+ on: string;
19099
+ summary?: string;
19100
+ message?: string;
19101
+ found?: unknown;
19102
+ property?: string;
19103
+ expected?: string;
19104
+ };
19105
+ }>>;
19106
+ }) & {};
19107
+ };
19049
19108
  };
19050
19109
  };
@@ -26,5 +26,6 @@ export declare class AaveMetadata implements MetadataBuilder<Erc20LikeCampaignEn
26
26
  }[];
27
27
  depositUrl: string;
28
28
  explorerAddress: string;
29
+ description: string;
29
30
  }>;
30
31
  }
@@ -13,5 +13,6 @@ export declare class GearboxMetadata implements MetadataBuilder<Erc20LikeCampaig
13
13
  }[];
14
14
  depositUrl: string;
15
15
  explorerAddress: string;
16
+ description: string;
16
17
  }>;
17
18
  }
@@ -10129,6 +10129,39 @@ declare const app: Elysia<"", {
10129
10129
  };
10130
10130
  };
10131
10131
  };
10132
+ } & {
10133
+ v4: {
10134
+ ton: {
10135
+ users: {
10136
+ ":tonAddress": {
10137
+ get: {
10138
+ body: unknown;
10139
+ params: {
10140
+ tonAddress: string;
10141
+ };
10142
+ query: unknown;
10143
+ headers: unknown;
10144
+ response: {
10145
+ 200: {
10146
+ address: string;
10147
+ tags: string[];
10148
+ creatorId: string | null;
10149
+ };
10150
+ 422: {
10151
+ type: "validation";
10152
+ on: string;
10153
+ summary?: string;
10154
+ message?: string;
10155
+ found?: unknown;
10156
+ property?: string;
10157
+ expected?: string;
10158
+ };
10159
+ };
10160
+ };
10161
+ };
10162
+ };
10163
+ };
10164
+ };
10132
10165
  }, {
10133
10166
  derive: {};
10134
10167
  resolve: {};
@@ -1,4 +1,4 @@
1
- import type { Campaign, CompFork, CompoundSubCampaignType, CompoundV3SubCampaignType, ComputeScoreMethod, ComputeScoreParameters, Forwarder, ForwarderParameters, GenericCampaignConfigComposed, HOOK, HookParameters, MerklChainId, MorphoSubCampaignType } from "@angleprotocol/sdk/ts";
1
+ import type { Campaign, CompFork, CompoundSubCampaignType, CompoundV3SubCampaignType, ComputeScoreMethod, ComputeScoreParameters, DistributionMethod, DistributionParameters, Forwarder, ForwarderParameters, GenericCampaignConfigComposed, HOOK, HookParameters, MerklChainId, MorphoSubCampaignType } from "@angleprotocol/sdk/ts";
2
2
  import type { LockerEventSchema } from "@angleprotocol/sdk/types/merkl/campaignTypes/locker";
3
3
  import type { ComputeCurveMethod, ComputeCurveParameters } from "@angleprotocol/sdk/types/merkl/computeCurve";
4
4
  export declare const CampaignPayloadInputDto: import("@sinclair/typebox").TObject<{
@@ -173,6 +173,17 @@ export type partialConfigMORPHOSUPPLY = {
173
173
  blacklist: string[];
174
174
  url?: string;
175
175
  };
176
+ export type partialConfigMORPHOVAULT = {
177
+ computeChainId?: MerklChainId;
178
+ hooks?: (HookParameters<HOOK> | string)[];
179
+ campaignType: Campaign;
180
+ targetToken: string;
181
+ whitelist: string[];
182
+ blacklist: string[];
183
+ url?: string;
184
+ computeScoreParameters?: ComputeScoreParameters<ComputeScoreMethod> | string;
185
+ distributionMethodParameters?: DistributionParameters<DistributionMethod>;
186
+ };
176
187
  export type partialConfigERC20FixedAPR = {
177
188
  computeChainId?: MerklChainId;
178
189
  hooks?: (HookParameters<HOOK> | string)[];
@@ -269,7 +280,7 @@ export type partialConfigLocker = {
269
280
  lockEvent: LockerEventSchema;
270
281
  unlockEvent: LockerEventSchema;
271
282
  };
272
- export type partialConfig = partialConfigERC20 | partialConfigMorpho | partialConfigCLAMM | partialConfigIonic | partialConfigCompoundV3 | partialConfigMultiLog | partialConfigLocker | partialConfigAirdrop | partialConfigERC20FixedAPR | partialConfigMORPHOBORROW | partialConfigMORPHOSUPPLY;
283
+ export type partialConfig = partialConfigERC20 | partialConfigMorpho | partialConfigCLAMM | partialConfigIonic | partialConfigCompoundV3 | partialConfigMultiLog | partialConfigLocker | partialConfigAirdrop | partialConfigERC20FixedAPR | partialConfigMORPHOBORROW | partialConfigMORPHOSUPPLY | partialConfigMORPHOVAULT;
273
284
  export declare const safeTemplate: {
274
285
  version: string;
275
286
  chainId: string;
@@ -188,7 +188,8 @@ export declare enum etherlinkCampaigns {
188
188
  Uniswap_WBTC_USDC_Etherlink = "Uniswap WBTC/USDC Etherlink 0x80C789EBb377d257b5b660100757307099F0e3c0",
189
189
  Uniswap_WXTZ_USDC_Etherlink = "Uniswap WXTZ/USDC Etherlink 0x659fe227A739D7961F3c7bBc090ea9BfAFCC2A74",
190
190
  Uniswap_WXTZ_WBTC_Etherlink = "Uniswap WXTZ/WBTC Etherlink 0x2a5120e8B04E7F2D3fbbbD82afb4CD70de0F5d0e",
191
- Uniswap_WXTZ_WETH_Etherlink = "Uniswap WXTZ/WETH Etherlink 0xd03b92A27947Bb08dD269107d4Df00F8ab53Fc28"
191
+ Uniswap_WXTZ_WETH_Etherlink = "Uniswap WXTZ/WETH Etherlink 0xd03b92A27947Bb08dD269107d4Df00F8ab53Fc28",
192
+ Iguana_USDC_USDT_Stableswap_Etherlink = "Iguana USDC/USDT Stableswap Etherlink 0xbb6af5cb8bb12129aa051a96b25a94f33c117557"
192
193
  }
193
194
  export declare enum swapxCampaigns {
194
195
  Swapx_SWPx_USDCe_Swapx = "Swapx SWPx/USDC.e Swapx 0x467865E7Ce29E7ED8f362D51Fd7141117B234b44",
@@ -2654,6 +2655,16 @@ declare const EtherlinkInterfaceCampaigns: {
2654
2655
  weightToken0: number;
2655
2656
  weightToken1: number;
2656
2657
  };
2658
+ "Iguana USDC/USDT Stableswap Etherlink 0xbb6af5cb8bb12129aa051a96b25a94f33c117557": {
2659
+ campaignType: Campaign;
2660
+ computeChainId: ChainId;
2661
+ targetToken: string;
2662
+ hooks: never[];
2663
+ whitelist: never[];
2664
+ blacklist: string[];
2665
+ forwarders: never[];
2666
+ url: string;
2667
+ };
2657
2668
  };
2658
2669
  declare const SwapxInterfaceCampaigns: {
2659
2670
  [key in swapxCampaigns]: partialConfig;
@@ -3096,9 +3107,9 @@ export declare enum WorldChainCampaigns {
3096
3107
  WorldChain_Vault_Re7USDC = "WorldChain Vault Re7 USDC 0xb1E80387EbE53Ff75a89736097D34dC8D9E9045B",
3097
3108
  WorldChain_Vault_Re7WLD = "WorldChain Vault Re7 WLD 0x348831b46876d3dF2Db98BdEc5E3B4083329Ab9f",
3098
3109
  WorldChain_Vault_Re7WETH = "WorldChain Vault Re7 WETH 0x0Db7E405278c2674F462aC9D9eb8b8346D1c1571",
3099
- WorldChain_MorphoBorrow_WLD_USDC = "WorldChain MorphoBorrow WLD/USDC 0xba0ae12a5cdbf9a458566be68055f30c859771612950b5e43428a51becc6f6e9",
3100
- WorldChain_MorphoBorrow_WETH_USDC = "WorldChain MorphoBorrow WETH/USDC 0x5fadb14df6523eb13a939f8024dbc54b10bdb4e521741e9995e2951337134b53",
3101
- WorldChain_MorphoBorrow_WBTC_USDC = "WorldChain MorphoBorrow WBTC/USDC 0x787c5ff694f04e20cc6b3932cd662425161109bb0d63b189c48d99e714a3bd69",
3110
+ Worldchain_Morpho_Borrow_USDC_market_WLD_collateral = "WorldChain Morpho Borrow USDC collateral WLD 0xba0ae12a5cdbf9a458566be68055f30c859771612950b5e43428a51becc6f6e9",
3111
+ Worldchain_Morpho_Borrow_USDC_market_WETH_collateral = "WorldChain Morpho Borrow USDC collateral WETH 0x5fadb14df6523eb13a939f8024dbc54b10bdb4e521741e9995e2951337134b53",
3112
+ Worldchain_Morpho_Borrow_USDC_market_WBTC_collateral = "WorldChain Morpho Borrow USDC collateral WBTC 0x787c5ff694f04e20cc6b3932cd662425161109bb0d63b189c48d99e714a3bd69",
3102
3113
  WorldChain_Vault_WORLDID_USDC = "WorldChain Vault World ID USDC 0xb1E80387EbE53Ff75a89736097D34dC8D9E9045B",
3103
3114
  WorldChain_Vault_WORLDID_WLD = "WorldChain Vault World ID WLD 0x348831b46876d3dF2Db98BdEc5E3B4083329Ab9f"
3104
3115
  }
@@ -8558,6 +8558,39 @@ export declare const v4: Elysia<"/v4", {
8558
8558
  };
8559
8559
  };
8560
8560
  };
8561
+ } & {
8562
+ v4: {
8563
+ ton: {
8564
+ users: {
8565
+ ":tonAddress": {
8566
+ get: {
8567
+ body: unknown;
8568
+ params: {
8569
+ tonAddress: string;
8570
+ };
8571
+ query: unknown;
8572
+ headers: unknown;
8573
+ response: {
8574
+ 200: {
8575
+ address: string;
8576
+ tags: string[];
8577
+ creatorId: string | null;
8578
+ };
8579
+ 422: {
8580
+ type: "validation";
8581
+ on: string;
8582
+ summary?: string;
8583
+ message?: string;
8584
+ found?: unknown;
8585
+ property?: string;
8586
+ expected?: string;
8587
+ };
8588
+ };
8589
+ };
8590
+ };
8591
+ };
8592
+ };
8593
+ };
8561
8594
  }, {
8562
8595
  derive: {};
8563
8596
  resolve: {};
@@ -0,0 +1,57 @@
1
+ import Elysia from "elysia";
2
+ export declare const TonController: Elysia<"ton", {
3
+ decorator: {};
4
+ store: {};
5
+ derive: {};
6
+ resolve: {};
7
+ }, {
8
+ typebox: {};
9
+ error: {};
10
+ }, {
11
+ schema: {};
12
+ standaloneSchema: {};
13
+ macro: {};
14
+ macroFn: {};
15
+ parser: {};
16
+ }, {
17
+ ton: {
18
+ users: {
19
+ ":tonAddress": {
20
+ get: {
21
+ body: unknown;
22
+ params: {
23
+ tonAddress: string;
24
+ };
25
+ query: unknown;
26
+ headers: unknown;
27
+ response: {
28
+ 200: {
29
+ address: string;
30
+ tags: string[];
31
+ creatorId: string | null;
32
+ };
33
+ 422: {
34
+ type: "validation";
35
+ on: string;
36
+ summary?: string;
37
+ message?: string;
38
+ found?: unknown;
39
+ property?: string;
40
+ expected?: string;
41
+ };
42
+ };
43
+ };
44
+ };
45
+ };
46
+ };
47
+ }, {
48
+ derive: {};
49
+ resolve: {};
50
+ schema: {};
51
+ standaloneSchema: {};
52
+ }, {
53
+ derive: {};
54
+ resolve: {};
55
+ schema: {};
56
+ standaloneSchema: {};
57
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare abstract class TonService {
2
+ static getEvmAddress(tonAddress: string): Promise<`0x${string}`>;
3
+ }