@continuumdao/ctm-mpc-defi 0.2.2 → 0.2.4
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/agent/catalog.cjs +440 -45
- package/dist/agent/catalog.cjs.map +1 -1
- package/dist/agent/catalog.d.ts +836 -1
- package/dist/agent/catalog.js +423 -46
- package/dist/agent/catalog.js.map +1 -1
- package/dist/agent/skills/aave-v4/SKILL.md +120 -14
- package/dist/agent/skills/curve-dao/SKILL.md +125 -6
- package/dist/agent/skills/uniswap-v4/SKILL.md +187 -11
- package/dist/index.cjs +790 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +791 -19
- package/dist/index.js.map +1 -1
- package/dist/protocols/evm/curve-dao/index.cjs +53 -19
- package/dist/protocols/evm/curve-dao/index.cjs.map +1 -1
- package/dist/protocols/evm/curve-dao/index.d.ts +9 -9
- package/dist/protocols/evm/curve-dao/index.js +53 -19
- package/dist/protocols/evm/curve-dao/index.js.map +1 -1
- package/dist/protocols/evm/uniswap-v4/index.cjs +1007 -1
- package/dist/protocols/evm/uniswap-v4/index.cjs.map +1 -1
- package/dist/protocols/evm/uniswap-v4/index.d.ts +304 -4
- package/dist/protocols/evm/uniswap-v4/index.js +965 -3
- package/dist/protocols/evm/uniswap-v4/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as KeyGenSubsetForPermit, e as ProtocolModule } from '../../../types-BfjWdw1j.js';
|
|
2
|
-
import { Address } from 'viem';
|
|
2
|
+
import { Address, createPublicClient, TransactionReceipt } from 'viem';
|
|
3
3
|
import { NodeReadAuth } from '@continuumdao/continuum-node-sdk';
|
|
4
4
|
import { E as EvmChainDetail } from '../../../types-DUeNJLr9.js';
|
|
5
5
|
|
|
@@ -11,9 +11,26 @@ declare const MAX_UINT160: bigint;
|
|
|
11
11
|
declare const MAX_UINT48: bigint;
|
|
12
12
|
declare const UNISWAP_UNIVERSAL_ROUTER_DEFAULT_GAS_UNITS = 1500000n;
|
|
13
13
|
declare const UNISWAP_TRADE_BASE_DEFAULT = "https://trade-api.gateway.uniswap.org/v1";
|
|
14
|
+
/** Alternate LP API host (integration guide); trade-api `/v1/lp/*` is primary. */
|
|
15
|
+
declare const UNISWAP_LP_API_BASE_DEFAULT = "https://api.uniswap.org";
|
|
14
16
|
declare const UNISWAP_UNIVERSAL_ROUTER_VERSION_DEFAULT = "2.0";
|
|
15
17
|
declare const UNISWAP_SWAP_DEFAULT_EXPIRY_MINUTES = 30;
|
|
16
18
|
declare const UNISWAP_SWAP_DEFAULT_DEADLINE_SEC_OFFSET: number;
|
|
19
|
+
declare const UNISWAP_LP_DEFAULT_EXPIRY_MINUTES = 30;
|
|
20
|
+
declare const UNISWAP_LP_DEFAULT_DEADLINE_SEC_OFFSET: number;
|
|
21
|
+
declare const UNISWAP_LP_DEFAULT_SLIPPAGE_PERCENT = 0.5;
|
|
22
|
+
declare function getUniswapV4PositionManagerOrThrow(chainId: number): Address;
|
|
23
|
+
declare function tryGetUniswapV4PositionManager(chainId: number): Address | null;
|
|
24
|
+
/** Default `eth_getLogs` span — many free RPCs cap at 250 blocks (e.g. Nodies). */
|
|
25
|
+
declare const UNISWAP_V4_LP_LOG_CHUNK_SIZE_DEFAULT = 200n;
|
|
26
|
+
declare const UNISWAP_V4_LP_LOG_CHUNK_SIZE_MIN = 10n;
|
|
27
|
+
declare function getUniswapV4PositionManagerDeployBlock(chainId: number): bigint | undefined;
|
|
28
|
+
declare const UNISWAP_V4_LP_MINT_DEFAULT_GAS_UNITS = 1800000n;
|
|
29
|
+
declare const UNISWAP_V4_LP_INCREASE_DEFAULT_GAS_UNITS = 1500000n;
|
|
30
|
+
declare const UNISWAP_V4_LP_DECREASE_DEFAULT_GAS_UNITS = 1200000n;
|
|
31
|
+
declare const UNISWAP_V4_LP_COLLECT_DEFAULT_GAS_UNITS = 900000n;
|
|
32
|
+
declare const UNISWAP_V4_LP_ERC20_APPROVE_FALLBACK = 100000n;
|
|
33
|
+
declare const UNISWAP_V4_LP_WETH_DEPOSIT_FALLBACK = 120000n;
|
|
17
34
|
|
|
18
35
|
/** POST /v1/quote `type` (same as `uniswap_trade_quote.py` `--type`). */
|
|
19
36
|
type UniswapQuoteTradeType = 'EXACT_INPUT' | 'EXACT_OUTPUT';
|
|
@@ -211,7 +228,7 @@ declare function uniswapCreateSwap(args: {
|
|
|
211
228
|
*/
|
|
212
229
|
swapTransactionDeadlineUnix?: number;
|
|
213
230
|
}): Promise<CreateSwapResponse>;
|
|
214
|
-
type ChainRow = {
|
|
231
|
+
type ChainRow$1 = {
|
|
215
232
|
legacy?: boolean;
|
|
216
233
|
gasLimit?: number;
|
|
217
234
|
gasMultiplier?: number;
|
|
@@ -229,7 +246,7 @@ type UniswapV4SkipPermit2BatchArg = {
|
|
|
229
246
|
keyGen: KeyGenSubsetForPermit;
|
|
230
247
|
chainId: number;
|
|
231
248
|
rpcUrl: string;
|
|
232
|
-
chainDetail: ChainRow;
|
|
249
|
+
chainDetail: ChainRow$1;
|
|
233
250
|
useCustomGas: boolean;
|
|
234
251
|
customGasChainDetails?: Record<string, unknown> | null;
|
|
235
252
|
/** `0x0` = native (ETH) in; otherwise ERC-20. */
|
|
@@ -263,6 +280,280 @@ declare function buildEvmMultisignBodyUniswapV4SkipPermit2Batch(args: UniswapV4S
|
|
|
263
280
|
messageToSign: string;
|
|
264
281
|
}>;
|
|
265
282
|
|
|
283
|
+
type UniswapLpProtocol = 'V4';
|
|
284
|
+
type UniswapLpTransactionRequest = {
|
|
285
|
+
to: string;
|
|
286
|
+
from?: string;
|
|
287
|
+
data: string;
|
|
288
|
+
value: string;
|
|
289
|
+
chainId?: number;
|
|
290
|
+
gasLimit?: string;
|
|
291
|
+
gasPrice?: string;
|
|
292
|
+
maxFeePerGas?: string;
|
|
293
|
+
maxPriorityFeePerGas?: string;
|
|
294
|
+
};
|
|
295
|
+
type UniswapLpTokenAmount = {
|
|
296
|
+
tokenAddress: string;
|
|
297
|
+
amount: string;
|
|
298
|
+
};
|
|
299
|
+
type UniswapLpExistingPool = {
|
|
300
|
+
token0Address: string;
|
|
301
|
+
token1Address: string;
|
|
302
|
+
/** V4 pool id (bytes32 hex); V3 pool contract address. */
|
|
303
|
+
poolReference: string;
|
|
304
|
+
};
|
|
305
|
+
type UniswapLpNewPool = {
|
|
306
|
+
token0Address: string;
|
|
307
|
+
token1Address: string;
|
|
308
|
+
fee: number;
|
|
309
|
+
tickSpacing: number;
|
|
310
|
+
hooks?: string;
|
|
311
|
+
initialPrice: string;
|
|
312
|
+
};
|
|
313
|
+
type UniswapLpIndependentToken = {
|
|
314
|
+
tokenAddress: string;
|
|
315
|
+
amount: string;
|
|
316
|
+
};
|
|
317
|
+
type UniswapLpPriceBounds = {
|
|
318
|
+
minPrice: string;
|
|
319
|
+
maxPrice: string;
|
|
320
|
+
};
|
|
321
|
+
type UniswapLpTickBounds = {
|
|
322
|
+
tickLower: number;
|
|
323
|
+
tickUpper: number;
|
|
324
|
+
};
|
|
325
|
+
declare function extractUniswapLpTransaction(response: Record<string, unknown>, field: 'create' | 'increase' | 'decrease' | 'claim'): UniswapLpTransactionRequest;
|
|
326
|
+
declare function extractUniswapLpTokenAmounts(response: Record<string, unknown>): {
|
|
327
|
+
token0?: UniswapLpTokenAmount;
|
|
328
|
+
token1?: UniswapLpTokenAmount;
|
|
329
|
+
};
|
|
330
|
+
declare function uniswapLpCreatePosition(args: {
|
|
331
|
+
uniswapApiKey: string;
|
|
332
|
+
walletAddress: string;
|
|
333
|
+
chainId: number;
|
|
334
|
+
existingPool?: UniswapLpExistingPool;
|
|
335
|
+
newPool?: UniswapLpNewPool;
|
|
336
|
+
independentToken: UniswapLpIndependentToken;
|
|
337
|
+
priceBounds?: UniswapLpPriceBounds;
|
|
338
|
+
tickBounds?: UniswapLpTickBounds;
|
|
339
|
+
slippageTolerance?: number;
|
|
340
|
+
deadline?: number;
|
|
341
|
+
simulateTransaction?: boolean;
|
|
342
|
+
batchPermitData?: Record<string, unknown>;
|
|
343
|
+
signature?: string;
|
|
344
|
+
baseUrl?: string;
|
|
345
|
+
fetchImpl?: typeof fetch;
|
|
346
|
+
useServerProxy?: boolean;
|
|
347
|
+
}): Promise<Record<string, unknown>>;
|
|
348
|
+
declare function uniswapLpIncreasePosition(args: {
|
|
349
|
+
uniswapApiKey: string;
|
|
350
|
+
walletAddress: string;
|
|
351
|
+
chainId: number;
|
|
352
|
+
token0Address: string;
|
|
353
|
+
token1Address: string;
|
|
354
|
+
nftTokenId: string | number;
|
|
355
|
+
independentToken: UniswapLpIndependentToken;
|
|
356
|
+
slippageTolerance?: number;
|
|
357
|
+
deadline?: number;
|
|
358
|
+
simulateTransaction?: boolean;
|
|
359
|
+
v4BatchPermitData?: Record<string, unknown>;
|
|
360
|
+
signature?: string;
|
|
361
|
+
baseUrl?: string;
|
|
362
|
+
fetchImpl?: typeof fetch;
|
|
363
|
+
useServerProxy?: boolean;
|
|
364
|
+
}): Promise<Record<string, unknown>>;
|
|
365
|
+
declare function uniswapLpDecreasePosition(args: {
|
|
366
|
+
uniswapApiKey: string;
|
|
367
|
+
walletAddress: string;
|
|
368
|
+
chainId: number;
|
|
369
|
+
token0Address: string;
|
|
370
|
+
token1Address: string;
|
|
371
|
+
nftTokenId: string | number;
|
|
372
|
+
liquidityPercentageToDecrease: number;
|
|
373
|
+
slippageTolerance?: number;
|
|
374
|
+
deadline?: number;
|
|
375
|
+
simulateTransaction?: boolean;
|
|
376
|
+
baseUrl?: string;
|
|
377
|
+
fetchImpl?: typeof fetch;
|
|
378
|
+
useServerProxy?: boolean;
|
|
379
|
+
}): Promise<Record<string, unknown>>;
|
|
380
|
+
declare function uniswapLpClaimFees(args: {
|
|
381
|
+
uniswapApiKey: string;
|
|
382
|
+
walletAddress: string;
|
|
383
|
+
chainId: number;
|
|
384
|
+
tokenId: string | number;
|
|
385
|
+
simulateTransaction?: boolean;
|
|
386
|
+
baseUrl?: string;
|
|
387
|
+
fetchImpl?: typeof fetch;
|
|
388
|
+
useServerProxy?: boolean;
|
|
389
|
+
}): Promise<Record<string, unknown>>;
|
|
390
|
+
|
|
391
|
+
type UniswapLpAction = 'mint' | 'increase' | 'decrease' | 'collect';
|
|
392
|
+
declare function uniswapLpTxFieldForAction(action: UniswapLpAction): 'create' | 'increase' | 'decrease' | 'claim';
|
|
393
|
+
declare function parseUniswapLpApiSnapshot(args: {
|
|
394
|
+
action: UniswapLpAction;
|
|
395
|
+
lpResponse: Record<string, unknown>;
|
|
396
|
+
}): {
|
|
397
|
+
transaction: UniswapLpTransactionRequest;
|
|
398
|
+
token0?: UniswapLpTokenAmount;
|
|
399
|
+
token1?: UniswapLpTokenAmount;
|
|
400
|
+
tickLower?: number;
|
|
401
|
+
tickUpper?: number;
|
|
402
|
+
minPrice?: string;
|
|
403
|
+
maxPrice?: string;
|
|
404
|
+
};
|
|
405
|
+
declare function formatUniswapLpAmountHuman(amountWei: string, decimals: number): string;
|
|
406
|
+
|
|
407
|
+
type ChainRow = {
|
|
408
|
+
legacy?: boolean;
|
|
409
|
+
gasLimit?: number;
|
|
410
|
+
gasMultiplier?: number;
|
|
411
|
+
gasPrice?: number;
|
|
412
|
+
baseFee?: number;
|
|
413
|
+
priorityFee?: number;
|
|
414
|
+
baseFeeMultiplier?: number;
|
|
415
|
+
};
|
|
416
|
+
declare function isUniswapV4LiquidityEvmSignRequest(detail: Record<string, unknown> | null | undefined, batchIndex?: number): boolean;
|
|
417
|
+
type LiquidityMultisignCommon = {
|
|
418
|
+
keyGen: KeyGenSubsetForPermit;
|
|
419
|
+
chainId: number;
|
|
420
|
+
rpcUrl: string;
|
|
421
|
+
chainDetail: ChainRow;
|
|
422
|
+
useCustomGas: boolean;
|
|
423
|
+
customGasChainDetails?: Record<string, unknown> | null;
|
|
424
|
+
executorAddress: Address;
|
|
425
|
+
purposeText: string;
|
|
426
|
+
lpResponse: Record<string, unknown>;
|
|
427
|
+
action: UniswapLpAction;
|
|
428
|
+
/** Wrapped native token when pool uses native ETH as currency0/1. */
|
|
429
|
+
nativeWrapped?: Address;
|
|
430
|
+
nftTokenId?: string | number;
|
|
431
|
+
poolReference?: string;
|
|
432
|
+
};
|
|
433
|
+
declare function buildEvmMultisignBodyUniswapV4MintLiquidityBatch(args: Omit<LiquidityMultisignCommon, 'action' | 'nftTokenId'> & {
|
|
434
|
+
poolReference?: string;
|
|
435
|
+
}): Promise<{
|
|
436
|
+
bodyForSign: Record<string, unknown>;
|
|
437
|
+
messageToSign: string;
|
|
438
|
+
}>;
|
|
439
|
+
declare function buildEvmMultisignBodyUniswapV4IncreaseLiquidityBatch(args: Omit<LiquidityMultisignCommon, 'action'> & {
|
|
440
|
+
nftTokenId: string | number;
|
|
441
|
+
}): Promise<{
|
|
442
|
+
bodyForSign: Record<string, unknown>;
|
|
443
|
+
messageToSign: string;
|
|
444
|
+
}>;
|
|
445
|
+
declare function buildEvmMultisignBodyUniswapV4DecreaseLiquidityBatch(args: Omit<LiquidityMultisignCommon, 'action'> & {
|
|
446
|
+
nftTokenId: string | number;
|
|
447
|
+
}): Promise<{
|
|
448
|
+
bodyForSign: Record<string, unknown>;
|
|
449
|
+
messageToSign: string;
|
|
450
|
+
}>;
|
|
451
|
+
declare function buildEvmMultisignBodyUniswapV4CollectFeesBatch(args: Omit<LiquidityMultisignCommon, 'action'> & {
|
|
452
|
+
nftTokenId: string | number;
|
|
453
|
+
}): Promise<{
|
|
454
|
+
bodyForSign: Record<string, unknown>;
|
|
455
|
+
messageToSign: string;
|
|
456
|
+
}>;
|
|
457
|
+
|
|
458
|
+
type UniswapV4PositionRow = {
|
|
459
|
+
tokenId: string;
|
|
460
|
+
positionManager: Address;
|
|
461
|
+
owner: Address;
|
|
462
|
+
name?: string;
|
|
463
|
+
symbol?: string;
|
|
464
|
+
};
|
|
465
|
+
/** Shown when LP tools cannot resolve a position NFT from the node token registry. */
|
|
466
|
+
declare const UNISWAP_V4_LP_POSITION_REGISTRY_HINT: string;
|
|
467
|
+
declare function formatUniswapV4PositionNotFoundError(args: {
|
|
468
|
+
tokenId: string;
|
|
469
|
+
chainId: number | string;
|
|
470
|
+
}): string;
|
|
471
|
+
/** Minted position NFT ids from a successful Position Manager mint receipt. */
|
|
472
|
+
declare function uniswapV4PositionMintedTokenIdsFromReceipt(receipt: TransactionReceipt, positionManager: Address, owner: Address): bigint[];
|
|
473
|
+
type UniswapV4RegistryErc721Row = {
|
|
474
|
+
contractAddress: string;
|
|
475
|
+
tokenId: string;
|
|
476
|
+
name?: string;
|
|
477
|
+
symbol?: string;
|
|
478
|
+
};
|
|
479
|
+
/** List positions from saved ERC721 tokens (Position Manager contract on this chain). */
|
|
480
|
+
declare function uniswapV4ListPositionsFromRegistryForMcp(args: {
|
|
481
|
+
chainId: number | string;
|
|
482
|
+
walletAddress: Address | string;
|
|
483
|
+
erc721Tokens: UniswapV4RegistryErc721Row[];
|
|
484
|
+
positionManagerAddress?: Address | string;
|
|
485
|
+
}): {
|
|
486
|
+
positions: UniswapV4PositionRow[];
|
|
487
|
+
source: 'token_registry';
|
|
488
|
+
};
|
|
489
|
+
type UniswapV4PositionScanProgress = {
|
|
490
|
+
latestBlock: string;
|
|
491
|
+
scanFromBlock: string;
|
|
492
|
+
scanningFromBlock: string;
|
|
493
|
+
scanningToBlock: string;
|
|
494
|
+
foundCount: number;
|
|
495
|
+
targetCount: number;
|
|
496
|
+
};
|
|
497
|
+
/** True when the RPC rejects `eth_getLogs` because the block span is too large. */
|
|
498
|
+
declare function isEthGetLogsBlockRangeTooLargeError(err: unknown): boolean;
|
|
499
|
+
/** Parse `YYYY-MM-DD` as UTC midnight. */
|
|
500
|
+
declare function parseUniswapV4ScanFromDateYmd(fromDate: string): number;
|
|
501
|
+
/** Smallest block whose timestamp is >= `unixTime` (binary search). */
|
|
502
|
+
declare function resolveBlockAtOrAfterUnixTime(client: ReturnType<typeof createPublicClient>, unixTime: number, bounds: {
|
|
503
|
+
minBlock: bigint;
|
|
504
|
+
maxBlock: bigint;
|
|
505
|
+
}): Promise<bigint>;
|
|
506
|
+
/** Map a calendar date to the first block to scan from (never before Position Manager deploy). */
|
|
507
|
+
declare function resolveUniswapV4PositionScanFromDate(args: {
|
|
508
|
+
chainId: number;
|
|
509
|
+
rpcUrl: string;
|
|
510
|
+
fromDate: string;
|
|
511
|
+
}): Promise<bigint>;
|
|
512
|
+
/**
|
|
513
|
+
* List v4 position NFT tokenIds owned by `walletAddress` via Position Manager Transfer logs.
|
|
514
|
+
* Uses small `eth_getLogs` chunks (default 200 blocks) and scans backward so wallets with
|
|
515
|
+
* few positions finish without walking full chain history.
|
|
516
|
+
*/
|
|
517
|
+
declare function listUniswapV4PositionsForWallet(args: {
|
|
518
|
+
chainId: number;
|
|
519
|
+
rpcUrl: string;
|
|
520
|
+
walletAddress: Address | string;
|
|
521
|
+
positionManagerAddress?: Address | string;
|
|
522
|
+
fromBlock?: bigint;
|
|
523
|
+
maxBlocksToScan?: bigint;
|
|
524
|
+
chunkSize?: bigint;
|
|
525
|
+
onProgress?: (progress: UniswapV4PositionScanProgress) => void;
|
|
526
|
+
signal?: AbortSignal;
|
|
527
|
+
}): Promise<UniswapV4PositionRow[]>;
|
|
528
|
+
declare function readUniswapV4PositionInfoRaw(args: {
|
|
529
|
+
chainId: number;
|
|
530
|
+
rpcUrl: string;
|
|
531
|
+
tokenId: string | number;
|
|
532
|
+
positionManagerAddress?: Address | string;
|
|
533
|
+
}): Promise<{
|
|
534
|
+
info: bigint;
|
|
535
|
+
positionManager: Address;
|
|
536
|
+
}>;
|
|
537
|
+
/** MCP handler for `ctm_uniswap_v4_lp_list_positions`. */
|
|
538
|
+
declare function uniswapV4ListPositionsForMcp(args: {
|
|
539
|
+
chainId: number | string;
|
|
540
|
+
rpcUrl: string;
|
|
541
|
+
walletAddress: string;
|
|
542
|
+
positionManagerAddress?: string;
|
|
543
|
+
fromBlock?: string | number;
|
|
544
|
+
onProgress?: (progress: UniswapV4PositionScanProgress) => void;
|
|
545
|
+
signal?: AbortSignal;
|
|
546
|
+
}): Promise<{
|
|
547
|
+
positions: UniswapV4PositionRow[];
|
|
548
|
+
}>;
|
|
549
|
+
/** Stub — continuum-node-sdk MCP server lists positions from token registry. */
|
|
550
|
+
declare function uniswapV4ListPositionsRegistryMcpPlaceholder(): never;
|
|
551
|
+
/** Stub — continuum-node-sdk MCP server implements registration (management POST). */
|
|
552
|
+
declare function uniswapV4RegisterPositionNftPlaceholder(): never;
|
|
553
|
+
/** Stub — continuum-node-sdk MCP server implements registration from mint receipt. */
|
|
554
|
+
declare function uniswapV4RegisterPositionFromMintTxPlaceholder(): never;
|
|
555
|
+
declare function isNativeUniswapLpTokenAddress(token: string): boolean;
|
|
556
|
+
|
|
266
557
|
type UniswapV4SessionPayload = {
|
|
267
558
|
chainId: number;
|
|
268
559
|
rpcUrl: string;
|
|
@@ -317,7 +608,16 @@ declare const uniswapV4: {
|
|
|
317
608
|
swapFromQuote: typeof swapFromQuote;
|
|
318
609
|
buildSwapMultisignBody: typeof buildEvmMultisignBodyUniswapV4SkipPermit2Batch;
|
|
319
610
|
quote: typeof uniswapTradeQuote;
|
|
611
|
+
createLiquidityPosition: typeof uniswapLpCreatePosition;
|
|
612
|
+
increaseLiquidityPosition: typeof uniswapLpIncreasePosition;
|
|
613
|
+
decreaseLiquidityPosition: typeof uniswapLpDecreasePosition;
|
|
614
|
+
claimLiquidityFees: typeof uniswapLpClaimFees;
|
|
615
|
+
buildMintLiquidityMultisignBody: typeof buildEvmMultisignBodyUniswapV4MintLiquidityBatch;
|
|
616
|
+
buildIncreaseLiquidityMultisignBody: typeof buildEvmMultisignBodyUniswapV4IncreaseLiquidityBatch;
|
|
617
|
+
buildDecreaseLiquidityMultisignBody: typeof buildEvmMultisignBodyUniswapV4DecreaseLiquidityBatch;
|
|
618
|
+
buildCollectFeesMultisignBody: typeof buildEvmMultisignBodyUniswapV4CollectFeesBatch;
|
|
619
|
+
listPositions: typeof listUniswapV4PositionsForWallet;
|
|
320
620
|
isChainSupported: typeof isUniswapV4ChainSupported;
|
|
321
621
|
};
|
|
322
622
|
|
|
323
|
-
export { MAX_UINT160, MAX_UINT48, PERMIT2_ADDRESS, type SwapExactInputArgs, UNISWAP_SWAP_DEFAULT_DEADLINE_SEC_OFFSET, UNISWAP_SWAP_DEFAULT_EXPIRY_MINUTES, UNISWAP_TRADE_BASE_DEFAULT, UNISWAP_UNIVERSAL_ROUTER_DEFAULT_GAS_UNITS, UNISWAP_UNIVERSAL_ROUTER_VERSION_DEFAULT, UNISWAP_V4_PROTOCOL_ID, type UniswapQuoteTradeType, type UniswapTradeQuoteParams, type UniswapV4SessionPayload, applySlippagePercentToApproveWei, buildEvmMultisignBodyUniswapV4SkipPermit2Batch, buildUniswapQuoteRequestBody, buildUniswapV4PurposePrefill, computeUniswapV4Session, createSwap, errorMessageFromUniswapJsonBody, fetchEthereumAddressForKeyGen, formatUniswapAmountFieldFromWei, formatUniswapPercentForUi, formatUniswapQuoteForDisplay, getClassicQuoteFromStoredUniswapResponse, getUniswapUniversalRouterSpenderOrThrow, isUniswapFullQuoteResponseNativeIn, isUniswapTokenInAddressNative, isUniswapV4ChainSupported, isUniswapV4SwapEvmSignRequest, messageFromUniswapHttpResponseBody, parseUniswapChainId, parseUniswapQuoteClassicInOut, parseUniswapQuoteSlippageInfo, quoteSwap, resolveRouterSwapGasUnitsFromSignRequest, swapExactInput, swapFromQuote, swapTransactionDeadlineUnixFromExpiryMinutes, uniswapCreateSwap, uniswapQuoteToJsonQuoteOneLine, uniswapTradeQuote, uniswapV4, uniswapV4ProtocolModule };
|
|
623
|
+
export { MAX_UINT160, MAX_UINT48, PERMIT2_ADDRESS, type SwapExactInputArgs, UNISWAP_LP_API_BASE_DEFAULT, UNISWAP_LP_DEFAULT_DEADLINE_SEC_OFFSET, UNISWAP_LP_DEFAULT_EXPIRY_MINUTES, UNISWAP_LP_DEFAULT_SLIPPAGE_PERCENT, UNISWAP_SWAP_DEFAULT_DEADLINE_SEC_OFFSET, UNISWAP_SWAP_DEFAULT_EXPIRY_MINUTES, UNISWAP_TRADE_BASE_DEFAULT, UNISWAP_UNIVERSAL_ROUTER_DEFAULT_GAS_UNITS, UNISWAP_UNIVERSAL_ROUTER_VERSION_DEFAULT, UNISWAP_V4_LP_COLLECT_DEFAULT_GAS_UNITS, UNISWAP_V4_LP_DECREASE_DEFAULT_GAS_UNITS, UNISWAP_V4_LP_ERC20_APPROVE_FALLBACK, UNISWAP_V4_LP_INCREASE_DEFAULT_GAS_UNITS, UNISWAP_V4_LP_LOG_CHUNK_SIZE_DEFAULT, UNISWAP_V4_LP_LOG_CHUNK_SIZE_MIN, UNISWAP_V4_LP_MINT_DEFAULT_GAS_UNITS, UNISWAP_V4_LP_POSITION_REGISTRY_HINT, UNISWAP_V4_LP_WETH_DEPOSIT_FALLBACK, UNISWAP_V4_PROTOCOL_ID, type UniswapLpAction, type UniswapLpExistingPool, type UniswapLpIndependentToken, type UniswapLpNewPool, type UniswapLpPriceBounds, type UniswapLpProtocol, type UniswapLpTickBounds, type UniswapLpTokenAmount, type UniswapLpTransactionRequest, type UniswapQuoteTradeType, type UniswapTradeQuoteParams, type UniswapV4PositionRow, type UniswapV4PositionScanProgress, type UniswapV4RegistryErc721Row, type UniswapV4SessionPayload, applySlippagePercentToApproveWei, buildEvmMultisignBodyUniswapV4CollectFeesBatch, buildEvmMultisignBodyUniswapV4DecreaseLiquidityBatch, buildEvmMultisignBodyUniswapV4IncreaseLiquidityBatch, buildEvmMultisignBodyUniswapV4MintLiquidityBatch, buildEvmMultisignBodyUniswapV4SkipPermit2Batch, buildUniswapQuoteRequestBody, buildUniswapV4PurposePrefill, computeUniswapV4Session, createSwap, errorMessageFromUniswapJsonBody, extractUniswapLpTokenAmounts, extractUniswapLpTransaction, fetchEthereumAddressForKeyGen, formatUniswapAmountFieldFromWei, formatUniswapLpAmountHuman, formatUniswapPercentForUi, formatUniswapQuoteForDisplay, formatUniswapV4PositionNotFoundError, getClassicQuoteFromStoredUniswapResponse, getUniswapUniversalRouterSpenderOrThrow, getUniswapV4PositionManagerDeployBlock, getUniswapV4PositionManagerOrThrow, isEthGetLogsBlockRangeTooLargeError, isNativeUniswapLpTokenAddress, isUniswapFullQuoteResponseNativeIn, isUniswapTokenInAddressNative, isUniswapV4ChainSupported, isUniswapV4LiquidityEvmSignRequest, isUniswapV4SwapEvmSignRequest, listUniswapV4PositionsForWallet, messageFromUniswapHttpResponseBody, parseUniswapChainId, parseUniswapLpApiSnapshot, parseUniswapQuoteClassicInOut, parseUniswapQuoteSlippageInfo, parseUniswapV4ScanFromDateYmd, quoteSwap, readUniswapV4PositionInfoRaw, resolveBlockAtOrAfterUnixTime, resolveRouterSwapGasUnitsFromSignRequest, resolveUniswapV4PositionScanFromDate, swapExactInput, swapFromQuote, swapTransactionDeadlineUnixFromExpiryMinutes, tryGetUniswapV4PositionManager, uniswapCreateSwap, uniswapLpClaimFees, uniswapLpCreatePosition, uniswapLpDecreasePosition, uniswapLpIncreasePosition, uniswapLpTxFieldForAction, uniswapQuoteToJsonQuoteOneLine, uniswapTradeQuote, uniswapV4, uniswapV4ListPositionsForMcp, uniswapV4ListPositionsFromRegistryForMcp, uniswapV4ListPositionsRegistryMcpPlaceholder, uniswapV4PositionMintedTokenIdsFromReceipt, uniswapV4ProtocolModule, uniswapV4RegisterPositionFromMintTxPlaceholder, uniswapV4RegisterPositionNftPlaceholder };
|