@uniswap/universal-router-sdk 1.4.2 → 1.4.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 +13 -13
- package/dist/entities/NFTTrade.d.ts +42 -50
- package/dist/entities/index.d.ts +3 -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 +10 -10
- 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 +64 -63
- package/dist/entities/protocols/sudoswap.d.ts +27 -27
- package/dist/entities/protocols/uniswap.d.ts +15 -15
- package/dist/entities/protocols/unwrapWETH.d.ts +13 -13
- package/dist/entities/protocols/x2y2.d.ts +28 -28
- package/dist/index.d.ts +3 -3
- package/dist/swapRouter.d.ts +38 -41
- package/dist/test/forge/writeInterop.d.ts +1 -1
- package/dist/test/orders/looksRare.d.ts +12 -15
- package/dist/test/orders/seaport.d.ts +4 -4
- package/dist/test/orders/seaportV1_4.d.ts +4 -4
- package/dist/test/orders/x2y2.d.ts +6 -6
- package/dist/test/utils/addresses.d.ts +2 -2
- package/dist/test/utils/hexToDecimalString.d.ts +2 -2
- package/dist/test/utils/permit2.d.ts +7 -17
- package/dist/test/utils/uniswapData.d.ts +24 -30
- package/dist/universal-router-sdk.cjs.development.js +13 -5
- 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 +13 -5
- package/dist/universal-router-sdk.esm.js.map +1 -1
- package/dist/utils/constants.d.ts +8 -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 +44 -44
- package/package.json +1 -1
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CommandTypes
|
|
3
|
-
* @description Flags that modify a command's execution
|
|
4
|
-
* @enum {number}
|
|
5
|
-
*/
|
|
6
|
-
export declare enum CommandType {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
export declare class RoutePlanner {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
export declare type RouterCommand = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
export declare function createCommand(type: CommandType, parameters: any[]): RouterCommand
|
|
1
|
+
/**
|
|
2
|
+
* CommandTypes
|
|
3
|
+
* @description Flags that modify a command's execution
|
|
4
|
+
* @enum {number}
|
|
5
|
+
*/
|
|
6
|
+
export declare enum CommandType {
|
|
7
|
+
V3_SWAP_EXACT_IN = 0,
|
|
8
|
+
V3_SWAP_EXACT_OUT = 1,
|
|
9
|
+
PERMIT2_TRANSFER_FROM = 2,
|
|
10
|
+
PERMIT2_PERMIT_BATCH = 3,
|
|
11
|
+
SWEEP = 4,
|
|
12
|
+
TRANSFER = 5,
|
|
13
|
+
PAY_PORTION = 6,
|
|
14
|
+
V2_SWAP_EXACT_IN = 8,
|
|
15
|
+
V2_SWAP_EXACT_OUT = 9,
|
|
16
|
+
PERMIT = 10,
|
|
17
|
+
WRAP_ETH = 11,
|
|
18
|
+
UNWRAP_WETH = 12,
|
|
19
|
+
PERMIT2_TRANSFER_FROM_BATCH = 13,
|
|
20
|
+
SEAPORT_V1_4 = 14,
|
|
21
|
+
SEAPORT = 16,
|
|
22
|
+
LOOKS_RARE_721 = 17,
|
|
23
|
+
NFTX = 18,
|
|
24
|
+
CRYPTOPUNKS = 19,
|
|
25
|
+
LOOKS_RARE_1155 = 20,
|
|
26
|
+
OWNER_CHECK_721 = 21,
|
|
27
|
+
OWNER_CHECK_1155 = 22,
|
|
28
|
+
X2Y2_721 = 24,
|
|
29
|
+
SUDOSWAP = 25,
|
|
30
|
+
NFT20 = 26,
|
|
31
|
+
X2Y2_1155 = 27,
|
|
32
|
+
FOUNDATION = 28
|
|
33
|
+
}
|
|
34
|
+
export declare class RoutePlanner {
|
|
35
|
+
commands: string;
|
|
36
|
+
inputs: string[];
|
|
37
|
+
constructor();
|
|
38
|
+
addCommand(type: CommandType, parameters: any[], allowRevert?: boolean): void;
|
|
39
|
+
}
|
|
40
|
+
export declare type RouterCommand = {
|
|
41
|
+
type: CommandType;
|
|
42
|
+
encodedInput: string;
|
|
43
|
+
};
|
|
44
|
+
export declare function createCommand(type: CommandType, parameters: any[]): RouterCommand;
|