@uniswap/universal-router-sdk 1.3.2 → 1.3.3
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/entities/Command.d.ts +7 -13
- package/dist/entities/NFTTrade.d.ts +49 -42
- package/dist/entities/index.d.ts +2 -3
- package/dist/entities/protocols/cryptopunk.d.ts +16 -16
- package/dist/entities/protocols/foundation.d.ts +19 -19
- package/dist/entities/protocols/index.d.ts +9 -9
- package/dist/entities/protocols/looksRare.d.ts +44 -44
- package/dist/entities/protocols/nft20.d.ts +21 -21
- package/dist/entities/protocols/nftx.d.ts +20 -20
- package/dist/entities/protocols/seaport.d.ts +57 -57
- package/dist/entities/protocols/sudoswap.d.ts +27 -27
- package/dist/entities/protocols/uniswap.d.ts +14 -15
- package/dist/entities/protocols/x2y2.d.ts +28 -28
- package/dist/index.d.ts +3 -3
- package/dist/swapRouter.d.ts +35 -38
- package/dist/universal-router-sdk.cjs.development.js +18 -133
- package/dist/universal-router-sdk.cjs.development.js.map +1 -1
- package/dist/universal-router-sdk.cjs.production.min.js +1 -1
- package/dist/universal-router-sdk.cjs.production.min.js.map +1 -1
- package/dist/universal-router-sdk.esm.js +19 -133
- package/dist/universal-router-sdk.esm.js.map +1 -1
- package/dist/utils/constants.d.ts +7 -8
- package/dist/utils/expandTo18Decimals.d.ts +4 -4
- package/dist/utils/getNativeCurrencyValue.d.ts +2 -2
- package/dist/utils/permit2.d.ts +6 -6
- package/dist/utils/routerCommands.d.ts +43 -43
- package/package.json +1 -1
- package/dist/entities/protocols/UnwrapWETH.d.ts +0 -13
- package/dist/test/forge/writeInterop.d.ts +0 -1
- package/dist/test/orders/looksRare.d.ts +0 -12
- package/dist/test/orders/seaport.d.ts +0 -4
- package/dist/test/orders/x2y2.d.ts +0 -6
- package/dist/test/utils/addresses.d.ts +0 -2
- package/dist/test/utils/hexToDecimalString.d.ts +0 -2
- package/dist/test/utils/permit2.d.ts +0 -6
- package/dist/test/utils/uniswapData.d.ts +0 -24
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Wallet } from 'ethers';
|
|
2
|
-
import { PermitSingle } from '@uniswap/permit2-sdk';
|
|
3
|
-
import { Permit2Permit } from '../../src/utils/permit2';
|
|
4
|
-
export declare function generatePermitSignature(permit: PermitSingle, signer: Wallet, chainId: number, permitAddress?: string): Promise<string>;
|
|
5
|
-
export declare function toInputPermit(signature: string, permit: PermitSingle): Permit2Permit;
|
|
6
|
-
export declare function makePermit(token: string, amount?: string, nonce?: string, routerAddress?: string): PermitSingle;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { MixedRouteTrade, Trade as RouterTrade } from '@uniswap/router-sdk';
|
|
2
|
-
import { Trade as V2Trade, Pair } from '@uniswap/v2-sdk';
|
|
3
|
-
import { Trade as V3Trade, Pool, FeeAmount } from '@uniswap/v3-sdk';
|
|
4
|
-
import { SwapOptions } from '../../src';
|
|
5
|
-
import { TradeType, Ether, Token, Currency } from '@uniswap/sdk-core';
|
|
6
|
-
export declare const ETHER: Ether;
|
|
7
|
-
export declare const RECIPIENT = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
|
|
8
|
-
export declare const WETH: Token;
|
|
9
|
-
export declare const DAI: Token;
|
|
10
|
-
export declare const USDC: Token;
|
|
11
|
-
export declare const FEE_AMOUNT = FeeAmount.MEDIUM;
|
|
12
|
-
declare type UniswapPools = {
|
|
13
|
-
WETH_USDC_V2: Pair;
|
|
14
|
-
USDC_DAI_V2: Pair;
|
|
15
|
-
WETH_USDC_V3: Pool;
|
|
16
|
-
WETH_USDC_V3_LOW_FEE: Pool;
|
|
17
|
-
USDC_DAI_V3: Pool;
|
|
18
|
-
};
|
|
19
|
-
export declare function getUniswapPools(forkBlock?: number): Promise<UniswapPools>;
|
|
20
|
-
export declare function getPair(tokenA: Token, tokenB: Token, blockNumber: number): Promise<Pair>;
|
|
21
|
-
export declare function getPool(tokenA: Token, tokenB: Token, feeAmount: FeeAmount, blockNumber: number): Promise<Pool>;
|
|
22
|
-
export declare function swapOptions(options: Partial<SwapOptions>): SwapOptions;
|
|
23
|
-
export declare function buildTrade(trades: (V2Trade<Currency, Currency, TradeType> | V3Trade<Currency, Currency, TradeType> | MixedRouteTrade<Currency, Currency, TradeType>)[]): RouterTrade<Currency, Currency, TradeType>;
|
|
24
|
-
export {};
|