@uniswap/universal-router-sdk 1.4.1 → 1.4.2

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.
@@ -1,13 +1,13 @@
1
- import { RoutePlanner } from '../utils/routerCommands';
2
- export declare type TradeConfig = {
3
- allowRevert: boolean;
4
- };
5
- export declare enum RouterTradeType {
6
- UniswapTrade = "UniswapTrade",
7
- NFTTrade = "NFTTrade",
8
- UnwrapWETH = "UnwrapWETH"
9
- }
10
- export interface Command {
11
- tradeType: RouterTradeType;
12
- encode(planner: RoutePlanner, config: TradeConfig): void;
13
- }
1
+ import { RoutePlanner } from '../utils/routerCommands'
2
+ export declare type TradeConfig = {
3
+ allowRevert: boolean
4
+ }
5
+ export declare enum RouterTradeType {
6
+ UniswapTrade = 'UniswapTrade',
7
+ NFTTrade = 'NFTTrade',
8
+ UnwrapWETH = 'UnwrapWETH',
9
+ }
10
+ export interface Command {
11
+ tradeType: RouterTradeType
12
+ encode(planner: RoutePlanner, config: TradeConfig): void
13
+ }
@@ -1,42 +1,50 @@
1
- import { BigNumber, BigNumberish } from 'ethers';
2
- import { SeaportData } from './protocols/seaport';
3
- import { FoundationData } from './protocols/foundation';
4
- import { NFTXData } from './protocols/nftx';
5
- import { NFT20Data } from './protocols/nft20';
6
- import { RoutePlanner } from '../utils/routerCommands';
7
- import { Command, RouterTradeType, TradeConfig } from './Command';
8
- import { LooksRareData } from './protocols/looksRare';
9
- import { SudoswapData } from './protocols/sudoswap';
10
- import { CryptopunkData } from './protocols/cryptopunk';
11
- import { X2Y2Data } from './protocols/x2y2';
12
- export declare type SupportedProtocolsData = SeaportData | FoundationData | NFTXData | LooksRareData | X2Y2Data | CryptopunkData | NFT20Data | SudoswapData;
13
- export declare abstract class NFTTrade<T> implements Command {
14
- readonly tradeType: RouterTradeType;
15
- readonly orders: T[];
16
- readonly market: Market;
17
- constructor(market: Market, orders: T[]);
18
- abstract encode(planner: RoutePlanner, config: TradeConfig): void;
19
- abstract getBuyItems(): BuyItem[];
20
- abstract getTotalPrice(): BigNumber;
21
- }
22
- export declare type BuyItem = {
23
- tokenAddress: string;
24
- tokenId: BigNumberish;
25
- tokenType: TokenType;
26
- amount?: BigNumberish;
27
- };
28
- export declare enum Market {
29
- Foundation = "foundation",
30
- LooksRare = "looksrare",
31
- NFT20 = "nft20",
32
- NFTX = "nftx",
33
- Seaport = "seaport",
34
- Sudoswap = "Sudoswap",
35
- Cryptopunks = "cryptopunks",
36
- X2Y2 = "x2y2"
37
- }
38
- export declare enum TokenType {
39
- ERC721 = "ERC721",
40
- ERC1155 = "ERC1155",
41
- Cryptopunk = "Cryptopunk"
42
- }
1
+ import { BigNumber, BigNumberish } from 'ethers'
2
+ import { SeaportData } from './protocols/seaport'
3
+ import { FoundationData } from './protocols/foundation'
4
+ import { NFTXData } from './protocols/nftx'
5
+ import { NFT20Data } from './protocols/nft20'
6
+ import { RoutePlanner } from '../utils/routerCommands'
7
+ import { Command, RouterTradeType, TradeConfig } from './Command'
8
+ import { LooksRareData } from './protocols/looksRare'
9
+ import { SudoswapData } from './protocols/sudoswap'
10
+ import { CryptopunkData } from './protocols/cryptopunk'
11
+ import { X2Y2Data } from './protocols/x2y2'
12
+ export declare type SupportedProtocolsData =
13
+ | SeaportData
14
+ | FoundationData
15
+ | NFTXData
16
+ | LooksRareData
17
+ | X2Y2Data
18
+ | CryptopunkData
19
+ | NFT20Data
20
+ | SudoswapData
21
+ export declare abstract class NFTTrade<T> implements Command {
22
+ readonly tradeType: RouterTradeType
23
+ readonly orders: T[]
24
+ readonly market: Market
25
+ constructor(market: Market, orders: T[])
26
+ abstract encode(planner: RoutePlanner, config: TradeConfig): void
27
+ abstract getBuyItems(): BuyItem[]
28
+ abstract getTotalPrice(): BigNumber
29
+ }
30
+ export declare type BuyItem = {
31
+ tokenAddress: string
32
+ tokenId: BigNumberish
33
+ tokenType: TokenType
34
+ amount?: BigNumberish
35
+ }
36
+ export declare enum Market {
37
+ Foundation = 'foundation',
38
+ LooksRare = 'looksrare',
39
+ NFT20 = 'nft20',
40
+ NFTX = 'nftx',
41
+ Seaport = 'seaport',
42
+ Sudoswap = 'Sudoswap',
43
+ Cryptopunks = 'cryptopunks',
44
+ X2Y2 = 'x2y2',
45
+ }
46
+ export declare enum TokenType {
47
+ ERC721 = 'ERC721',
48
+ ERC1155 = 'ERC1155',
49
+ Cryptopunk = 'Cryptopunk',
50
+ }
@@ -1,3 +1,3 @@
1
- export * from './protocols';
2
- export * from './NFTTrade';
3
- export * from './Command';
1
+ export * from './protocols'
2
+ export * from './NFTTrade'
3
+ export * from './Command'
@@ -1,16 +1,16 @@
1
- import { TradeConfig } from '../Command';
2
- import { NFTTrade, BuyItem } from '../NFTTrade';
3
- import { RoutePlanner } from '../../utils/routerCommands';
4
- import { BigNumber, BigNumberish } from 'ethers';
5
- export declare type CryptopunkData = {
6
- tokenId: BigNumberish;
7
- recipient: string;
8
- value: BigNumberish;
9
- };
10
- export declare class CryptopunkTrade extends NFTTrade<CryptopunkData> {
11
- static CRYPTOPUNK_ADDRESS: string;
12
- constructor(orders: CryptopunkData[]);
13
- encode(planner: RoutePlanner, config: TradeConfig): void;
14
- getBuyItems(): BuyItem[];
15
- getTotalPrice(): BigNumber;
16
- }
1
+ import { TradeConfig } from '../Command'
2
+ import { NFTTrade, BuyItem } from '../NFTTrade'
3
+ import { RoutePlanner } from '../../utils/routerCommands'
4
+ import { BigNumber, BigNumberish } from 'ethers'
5
+ export declare type CryptopunkData = {
6
+ tokenId: BigNumberish
7
+ recipient: string
8
+ value: BigNumberish
9
+ }
10
+ export declare class CryptopunkTrade extends NFTTrade<CryptopunkData> {
11
+ static CRYPTOPUNK_ADDRESS: string
12
+ constructor(orders: CryptopunkData[])
13
+ encode(planner: RoutePlanner, config: TradeConfig): void
14
+ getBuyItems(): BuyItem[]
15
+ getTotalPrice(): BigNumber
16
+ }
@@ -1,19 +1,19 @@
1
- import { Interface } from '@ethersproject/abi';
2
- import { BuyItem, NFTTrade } from '../NFTTrade';
3
- import { TradeConfig } from '../Command';
4
- import { RoutePlanner } from '../../utils/routerCommands';
5
- import { BigNumber, BigNumberish } from 'ethers';
6
- export declare type FoundationData = {
7
- recipient: string;
8
- tokenAddress: string;
9
- tokenId: BigNumberish;
10
- price: BigNumberish;
11
- referrer: string;
12
- };
13
- export declare class FoundationTrade extends NFTTrade<FoundationData> {
14
- static INTERFACE: Interface;
15
- constructor(orders: FoundationData[]);
16
- encode(planner: RoutePlanner, config: TradeConfig): void;
17
- getBuyItems(): BuyItem[];
18
- getTotalPrice(): BigNumber;
19
- }
1
+ import { Interface } from '@ethersproject/abi'
2
+ import { BuyItem, NFTTrade } from '../NFTTrade'
3
+ import { TradeConfig } from '../Command'
4
+ import { RoutePlanner } from '../../utils/routerCommands'
5
+ import { BigNumber, BigNumberish } from 'ethers'
6
+ export declare type FoundationData = {
7
+ recipient: string
8
+ tokenAddress: string
9
+ tokenId: BigNumberish
10
+ price: BigNumberish
11
+ referrer: string
12
+ }
13
+ export declare class FoundationTrade extends NFTTrade<FoundationData> {
14
+ static INTERFACE: Interface
15
+ constructor(orders: FoundationData[])
16
+ encode(planner: RoutePlanner, config: TradeConfig): void
17
+ getBuyItems(): BuyItem[]
18
+ getTotalPrice(): BigNumber
19
+ }
@@ -1,10 +1,10 @@
1
- export * from './cryptopunk';
2
- export * from './foundation';
3
- export * from './looksRare';
4
- export * from './nft20';
5
- export * from './nftx';
6
- export * from './seaport';
7
- export * from './uniswap';
8
- export * from './sudoswap';
9
- export * from './x2y2';
10
- export * from './unwrapWETH';
1
+ export * from './cryptopunk'
2
+ export * from './foundation'
3
+ export * from './looksRare'
4
+ export * from './nft20'
5
+ export * from './nftx'
6
+ export * from './seaport'
7
+ export * from './uniswap'
8
+ export * from './sudoswap'
9
+ export * from './x2y2'
10
+ export * from './unwrapWETH'
@@ -1,44 +1,44 @@
1
- import { Interface } from '@ethersproject/abi';
2
- import { BuyItem, NFTTrade, TokenType } from '../NFTTrade';
3
- import { TradeConfig } from '../Command';
4
- import { RoutePlanner } from '../../utils/routerCommands';
5
- import { BigNumber, BigNumberish } from 'ethers';
6
- export declare type MakerOrder = {
7
- collection: string;
8
- tokenId: BigNumberish;
9
- isOrderAsk: true;
10
- signer: string;
11
- strategy: string;
12
- currency: string;
13
- amount: BigNumberish;
14
- price: BigNumberish;
15
- minPercentageToAsk: BigNumberish;
16
- nonce: BigNumberish;
17
- startTime: BigNumberish;
18
- endTime: BigNumberish;
19
- v: BigNumberish;
20
- r: string;
21
- s: string;
22
- params: string;
23
- };
24
- export declare type TakerOrder = {
25
- minPercentageToAsk: BigNumberish;
26
- price: BigNumberish;
27
- taker: string;
28
- tokenId: BigNumberish;
29
- isOrderAsk: boolean;
30
- params: string;
31
- };
32
- export declare type LooksRareData = {
33
- makerOrder: MakerOrder;
34
- takerOrder: TakerOrder;
35
- recipient: string;
36
- tokenType: TokenType;
37
- };
38
- export declare class LooksRareTrade extends NFTTrade<LooksRareData> {
39
- static INTERFACE: Interface;
40
- constructor(orders: LooksRareData[]);
41
- encode(planner: RoutePlanner, config: TradeConfig): void;
42
- getBuyItems(): BuyItem[];
43
- getTotalPrice(): BigNumber;
44
- }
1
+ import { Interface } from '@ethersproject/abi'
2
+ import { BuyItem, NFTTrade, TokenType } from '../NFTTrade'
3
+ import { TradeConfig } from '../Command'
4
+ import { RoutePlanner } from '../../utils/routerCommands'
5
+ import { BigNumber, BigNumberish } from 'ethers'
6
+ export declare type MakerOrder = {
7
+ collection: string
8
+ tokenId: BigNumberish
9
+ isOrderAsk: true
10
+ signer: string
11
+ strategy: string
12
+ currency: string
13
+ amount: BigNumberish
14
+ price: BigNumberish
15
+ minPercentageToAsk: BigNumberish
16
+ nonce: BigNumberish
17
+ startTime: BigNumberish
18
+ endTime: BigNumberish
19
+ v: BigNumberish
20
+ r: string
21
+ s: string
22
+ params: string
23
+ }
24
+ export declare type TakerOrder = {
25
+ minPercentageToAsk: BigNumberish
26
+ price: BigNumberish
27
+ taker: string
28
+ tokenId: BigNumberish
29
+ isOrderAsk: boolean
30
+ params: string
31
+ }
32
+ export declare type LooksRareData = {
33
+ makerOrder: MakerOrder
34
+ takerOrder: TakerOrder
35
+ recipient: string
36
+ tokenType: TokenType
37
+ }
38
+ export declare class LooksRareTrade extends NFTTrade<LooksRareData> {
39
+ static INTERFACE: Interface
40
+ constructor(orders: LooksRareData[])
41
+ encode(planner: RoutePlanner, config: TradeConfig): void
42
+ getBuyItems(): BuyItem[]
43
+ getTotalPrice(): BigNumber
44
+ }
@@ -1,21 +1,21 @@
1
- import { Interface } from '@ethersproject/abi';
2
- import { TradeConfig } from '../Command';
3
- import { NFTTrade, BuyItem } from '../NFTTrade';
4
- import { RoutePlanner } from '../../utils/routerCommands';
5
- import { BigNumber, BigNumberish } from 'ethers';
6
- export declare type NFT20Data = {
7
- tokenAddress: string;
8
- tokenIds: BigNumberish[];
9
- tokenAmounts: BigNumberish[];
10
- recipient: string;
11
- fee: BigNumberish;
12
- isV3: boolean;
13
- value: BigNumberish;
14
- };
15
- export declare class NFT20Trade extends NFTTrade<NFT20Data> {
16
- static INTERFACE: Interface;
17
- constructor(orders: NFT20Data[]);
18
- encode(planner: RoutePlanner, config: TradeConfig): void;
19
- getBuyItems(): BuyItem[];
20
- getTotalPrice(): BigNumber;
21
- }
1
+ import { Interface } from '@ethersproject/abi'
2
+ import { TradeConfig } from '../Command'
3
+ import { NFTTrade, BuyItem } from '../NFTTrade'
4
+ import { RoutePlanner } from '../../utils/routerCommands'
5
+ import { BigNumber, BigNumberish } from 'ethers'
6
+ export declare type NFT20Data = {
7
+ tokenAddress: string
8
+ tokenIds: BigNumberish[]
9
+ tokenAmounts: BigNumberish[]
10
+ recipient: string
11
+ fee: BigNumberish
12
+ isV3: boolean
13
+ value: BigNumberish
14
+ }
15
+ export declare class NFT20Trade extends NFTTrade<NFT20Data> {
16
+ static INTERFACE: Interface
17
+ constructor(orders: NFT20Data[])
18
+ encode(planner: RoutePlanner, config: TradeConfig): void
19
+ getBuyItems(): BuyItem[]
20
+ getTotalPrice(): BigNumber
21
+ }
@@ -1,20 +1,20 @@
1
- import { Interface } from '@ethersproject/abi';
2
- import { BuyItem, NFTTrade } from '../NFTTrade';
3
- import { TradeConfig } from '../Command';
4
- import { RoutePlanner } from '../../utils/routerCommands';
5
- import { BigNumber, BigNumberish } from 'ethers';
6
- export declare type NFTXData = {
7
- recipient: string;
8
- vaultAddress: string;
9
- vaultId: BigNumberish;
10
- tokenAddress: string;
11
- tokenIds: BigNumberish[];
12
- value: BigNumber;
13
- };
14
- export declare class NFTXTrade extends NFTTrade<NFTXData> {
15
- static INTERFACE: Interface;
16
- constructor(orders: NFTXData[]);
17
- encode(planner: RoutePlanner, config: TradeConfig): void;
18
- getBuyItems(): BuyItem[];
19
- getTotalPrice(): BigNumber;
20
- }
1
+ import { Interface } from '@ethersproject/abi'
2
+ import { BuyItem, NFTTrade } from '../NFTTrade'
3
+ import { TradeConfig } from '../Command'
4
+ import { RoutePlanner } from '../../utils/routerCommands'
5
+ import { BigNumber, BigNumberish } from 'ethers'
6
+ export declare type NFTXData = {
7
+ recipient: string
8
+ vaultAddress: string
9
+ vaultId: BigNumberish
10
+ tokenAddress: string
11
+ tokenIds: BigNumberish[]
12
+ value: BigNumber
13
+ }
14
+ export declare class NFTXTrade extends NFTTrade<NFTXData> {
15
+ static INTERFACE: Interface
16
+ constructor(orders: NFTXData[])
17
+ encode(planner: RoutePlanner, config: TradeConfig): void
18
+ getBuyItems(): BuyItem[]
19
+ getTotalPrice(): BigNumber
20
+ }
@@ -1,63 +1,63 @@
1
- import { BigNumber, BigNumberish } from 'ethers';
2
- import { Interface } from '@ethersproject/abi';
3
- import { BuyItem, NFTTrade } from '../NFTTrade';
4
- import { TradeConfig } from '../Command';
5
- import { RoutePlanner } from '../../utils/routerCommands';
6
- export declare enum SeaportVersion {
7
- V1_1 = 0,
8
- V1_4 = 1
9
- }
10
- export declare type SeaportData = {
11
- items: Order[];
12
- recipient: string;
13
- version: SeaportVersion;
14
- };
15
- export declare type FulfillmentComponent = {
16
- orderIndex: BigNumberish;
17
- itemIndex: BigNumberish;
18
- };
19
- export declare type OfferItem = {
20
- itemType: BigNumberish;
21
- token: string;
22
- identifierOrCriteria: BigNumberish;
23
- startAmount: BigNumberish;
24
- endAmount: BigNumberish;
25
- };
26
- export declare type ConsiderationItem = OfferItem & {
27
- recipient: string;
28
- };
29
- export declare type Order = {
30
- parameters: OrderParameters;
31
- signature: string;
32
- };
33
- declare type OrderParameters = {
34
- offerer: string;
35
- offer: OfferItem[];
36
- consideration: ConsiderationItem[];
37
- orderType: BigNumberish;
38
- startTime: BigNumberish;
39
- endTime: BigNumberish;
40
- zoneHash: string;
41
- zone: string;
42
- salt: BigNumberish;
43
- conduitKey: string;
44
- totalOriginalConsiderationItems: BigNumberish;
45
- };
46
- export declare type AdvancedOrder = Order & {
47
- numerator: BigNumber;
48
- denominator: BigNumber;
49
- extraData: string;
50
- };
51
- export declare class SeaportTrade extends NFTTrade<SeaportData> {
52
- static INTERFACE: Interface;
53
- static OPENSEA_CONDUIT_KEY: string;
54
- constructor(orders: SeaportData[]);
55
- encode(planner: RoutePlanner, config: TradeConfig): void;
56
- getBuyItems(): BuyItem[];
57
- getTotalPrice(): BigNumber;
58
- private commandMap;
59
- private getConsiderationFulfillments;
60
- private getAdvancedOrderParams;
61
- private calculateValue;
62
- }
63
- export {};
1
+ import { BigNumber, BigNumberish } from 'ethers'
2
+ import { Interface } from '@ethersproject/abi'
3
+ import { BuyItem, NFTTrade } from '../NFTTrade'
4
+ import { TradeConfig } from '../Command'
5
+ import { RoutePlanner } from '../../utils/routerCommands'
6
+ export declare enum SeaportVersion {
7
+ V1_1 = 0,
8
+ V1_4 = 1,
9
+ }
10
+ export declare type SeaportData = {
11
+ items: Order[]
12
+ recipient: string
13
+ version: SeaportVersion
14
+ }
15
+ export declare type FulfillmentComponent = {
16
+ orderIndex: BigNumberish
17
+ itemIndex: BigNumberish
18
+ }
19
+ export declare type OfferItem = {
20
+ itemType: BigNumberish
21
+ token: string
22
+ identifierOrCriteria: BigNumberish
23
+ startAmount: BigNumberish
24
+ endAmount: BigNumberish
25
+ }
26
+ export declare type ConsiderationItem = OfferItem & {
27
+ recipient: string
28
+ }
29
+ export declare type Order = {
30
+ parameters: OrderParameters
31
+ signature: string
32
+ }
33
+ declare type OrderParameters = {
34
+ offerer: string
35
+ offer: OfferItem[]
36
+ consideration: ConsiderationItem[]
37
+ orderType: BigNumberish
38
+ startTime: BigNumberish
39
+ endTime: BigNumberish
40
+ zoneHash: string
41
+ zone: string
42
+ salt: BigNumberish
43
+ conduitKey: string
44
+ totalOriginalConsiderationItems: BigNumberish
45
+ }
46
+ export declare type AdvancedOrder = Order & {
47
+ numerator: BigNumber
48
+ denominator: BigNumber
49
+ extraData: string
50
+ }
51
+ export declare class SeaportTrade extends NFTTrade<SeaportData> {
52
+ static INTERFACE: Interface
53
+ static OPENSEA_CONDUIT_KEY: string
54
+ constructor(orders: SeaportData[])
55
+ encode(planner: RoutePlanner, config: TradeConfig): void
56
+ getBuyItems(): BuyItem[]
57
+ getTotalPrice(): BigNumber
58
+ private commandMap
59
+ private getConsiderationFulfillments
60
+ private getAdvancedOrderParams
61
+ private calculateValue
62
+ }
63
+ export {}
@@ -1,27 +1,27 @@
1
- import { Interface } from '@ethersproject/abi';
2
- import { BuyItem, NFTTrade } from '../NFTTrade';
3
- import { TradeConfig } from '../Command';
4
- import { RoutePlanner } from '../../utils/routerCommands';
5
- import { BigNumber, BigNumberish } from 'ethers';
6
- declare type PairSwap = {
7
- swapInfo: {
8
- pair: string;
9
- nftIds: BigNumberish[];
10
- };
11
- tokenAddress: string;
12
- maxCost: BigNumberish;
13
- };
14
- export declare type SudoswapData = {
15
- swaps: PairSwap[];
16
- nftRecipient: string;
17
- ethRecipient: string;
18
- deadline: BigNumberish;
19
- };
20
- export declare class SudoswapTrade extends NFTTrade<SudoswapData> {
21
- static INTERFACE: Interface;
22
- constructor(orders: SudoswapData[]);
23
- encode(planner: RoutePlanner, config: TradeConfig): void;
24
- getBuyItems(): BuyItem[];
25
- getTotalPrice(): BigNumber;
26
- }
27
- export {};
1
+ import { Interface } from '@ethersproject/abi'
2
+ import { BuyItem, NFTTrade } from '../NFTTrade'
3
+ import { TradeConfig } from '../Command'
4
+ import { RoutePlanner } from '../../utils/routerCommands'
5
+ import { BigNumber, BigNumberish } from 'ethers'
6
+ declare type PairSwap = {
7
+ swapInfo: {
8
+ pair: string
9
+ nftIds: BigNumberish[]
10
+ }
11
+ tokenAddress: string
12
+ maxCost: BigNumberish
13
+ }
14
+ export declare type SudoswapData = {
15
+ swaps: PairSwap[]
16
+ nftRecipient: string
17
+ ethRecipient: string
18
+ deadline: BigNumberish
19
+ }
20
+ export declare class SudoswapTrade extends NFTTrade<SudoswapData> {
21
+ static INTERFACE: Interface
22
+ constructor(orders: SudoswapData[])
23
+ encode(planner: RoutePlanner, config: TradeConfig): void
24
+ getBuyItems(): BuyItem[]
25
+ getTotalPrice(): BigNumber
26
+ }
27
+ export {}
@@ -1,15 +1,15 @@
1
- import { RoutePlanner } from '../../utils/routerCommands';
2
- import { Trade as RouterTrade, SwapOptions as RouterSwapOptions } from '@uniswap/router-sdk';
3
- import { Permit2Permit } from '../../utils/permit2';
4
- import { Currency, TradeType } from '@uniswap/sdk-core';
5
- import { Command, RouterTradeType, TradeConfig } from '../Command';
6
- export declare type SwapOptions = Omit<RouterSwapOptions, 'inputTokenPermit'> & {
7
- inputTokenPermit?: Permit2Permit;
8
- };
9
- export declare class UniswapTrade implements Command {
10
- trade: RouterTrade<Currency, Currency, TradeType>;
11
- options: SwapOptions;
12
- readonly tradeType: RouterTradeType;
13
- constructor(trade: RouterTrade<Currency, Currency, TradeType>, options: SwapOptions);
14
- encode(planner: RoutePlanner, _config: TradeConfig): void;
15
- }
1
+ import { RoutePlanner } from '../../utils/routerCommands'
2
+ import { Trade as RouterTrade, SwapOptions as RouterSwapOptions } from '@uniswap/router-sdk'
3
+ import { Permit2Permit } from '../../utils/permit2'
4
+ import { Currency, TradeType } from '@uniswap/sdk-core'
5
+ import { Command, RouterTradeType, TradeConfig } from '../Command'
6
+ export declare type SwapOptions = Omit<RouterSwapOptions, 'inputTokenPermit'> & {
7
+ inputTokenPermit?: Permit2Permit
8
+ }
9
+ export declare class UniswapTrade implements Command {
10
+ trade: RouterTrade<Currency, Currency, TradeType>
11
+ options: SwapOptions
12
+ readonly tradeType: RouterTradeType
13
+ constructor(trade: RouterTrade<Currency, Currency, TradeType>, options: SwapOptions)
14
+ encode(planner: RoutePlanner, _config: TradeConfig): void
15
+ }
@@ -1,13 +1,13 @@
1
- import { BigNumberish } from 'ethers';
2
- import { RoutePlanner } from '../../utils/routerCommands';
3
- import { Permit2Permit } from '../../utils/permit2';
4
- import { Command, RouterTradeType, TradeConfig } from '../Command';
5
- export declare class UnwrapWETH implements Command {
6
- readonly tradeType: RouterTradeType;
7
- readonly permit2Data: Permit2Permit;
8
- readonly wethAddress: string;
9
- readonly routerAddress: string;
10
- readonly amount: BigNumberish;
11
- constructor(amount: BigNumberish, chainId: number, permit2?: Permit2Permit);
12
- encode(planner: RoutePlanner, _: TradeConfig): void;
13
- }
1
+ import { BigNumberish } from 'ethers'
2
+ import { RoutePlanner } from '../../utils/routerCommands'
3
+ import { Permit2Permit } from '../../utils/permit2'
4
+ import { Command, RouterTradeType, TradeConfig } from '../Command'
5
+ export declare class UnwrapWETH implements Command {
6
+ readonly tradeType: RouterTradeType
7
+ readonly permit2Data: Permit2Permit
8
+ readonly wethAddress: string
9
+ readonly routerAddress: string
10
+ readonly amount: BigNumberish
11
+ constructor(amount: BigNumberish, chainId: number, permit2?: Permit2Permit)
12
+ encode(planner: RoutePlanner, _: TradeConfig): void
13
+ }
@@ -1,28 +1,28 @@
1
- import { Interface } from '@ethersproject/abi';
2
- import { BuyItem, NFTTrade, TokenType } from '../NFTTrade';
3
- import { TradeConfig } from '../Command';
4
- import { RoutePlanner } from '../../utils/routerCommands';
5
- import { BigNumber, BigNumberish } from 'ethers';
6
- declare type X2Y2PartialData = {
7
- signedInput: string;
8
- recipient: string;
9
- tokenAddress: string;
10
- tokenId: BigNumberish;
11
- price: BigNumberish;
12
- };
13
- export declare type X2Y2_721_Data = X2Y2PartialData & {
14
- tokenType: TokenType.ERC721;
15
- };
16
- export declare type X2Y2_1155_Data = X2Y2PartialData & {
17
- tokenType: TokenType.ERC1155;
18
- tokenAmount: BigNumberish;
19
- };
20
- export declare type X2Y2Data = X2Y2_721_Data | X2Y2_1155_Data;
21
- export declare class X2Y2Trade extends NFTTrade<X2Y2Data> {
22
- static INTERFACE: Interface;
23
- constructor(orders: X2Y2Data[]);
24
- encode(planner: RoutePlanner, config: TradeConfig): void;
25
- getBuyItems(): BuyItem[];
26
- getTotalPrice(): BigNumber;
27
- }
28
- export {};
1
+ import { Interface } from '@ethersproject/abi'
2
+ import { BuyItem, NFTTrade, TokenType } from '../NFTTrade'
3
+ import { TradeConfig } from '../Command'
4
+ import { RoutePlanner } from '../../utils/routerCommands'
5
+ import { BigNumber, BigNumberish } from 'ethers'
6
+ declare type X2Y2PartialData = {
7
+ signedInput: string
8
+ recipient: string
9
+ tokenAddress: string
10
+ tokenId: BigNumberish
11
+ price: BigNumberish
12
+ }
13
+ export declare type X2Y2_721_Data = X2Y2PartialData & {
14
+ tokenType: TokenType.ERC721
15
+ }
16
+ export declare type X2Y2_1155_Data = X2Y2PartialData & {
17
+ tokenType: TokenType.ERC1155
18
+ tokenAmount: BigNumberish
19
+ }
20
+ export declare type X2Y2Data = X2Y2_721_Data | X2Y2_1155_Data
21
+ export declare class X2Y2Trade extends NFTTrade<X2Y2Data> {
22
+ static INTERFACE: Interface
23
+ constructor(orders: X2Y2Data[])
24
+ encode(planner: RoutePlanner, config: TradeConfig): void
25
+ getBuyItems(): BuyItem[]
26
+ getTotalPrice(): BigNumber
27
+ }
28
+ export {}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { SwapRouter } from './swapRouter';
2
- export * from './entities';
3
- export { UNIVERSAL_ROUTER_ADDRESS, PERMIT2_ADDRESS, ROUTER_AS_RECIPIENT, WETH_ADDRESS } from './utils/constants';
1
+ export { SwapRouter } from './swapRouter'
2
+ export * from './entities'
3
+ export { UNIVERSAL_ROUTER_ADDRESS, PERMIT2_ADDRESS, ROUTER_AS_RECIPIENT, WETH_ADDRESS } from './utils/constants'
@@ -1,38 +1,41 @@
1
- import { Interface } from '@ethersproject/abi';
2
- import { BigNumberish } from 'ethers';
3
- import { MethodParameters } from '@uniswap/v3-sdk';
4
- import { Trade as RouterTrade } from '@uniswap/router-sdk';
5
- import { Currency, TradeType } from '@uniswap/sdk-core';
6
- import { Command } from './entities/Command';
7
- import { NFTTrade, SupportedProtocolsData } from './entities/NFTTrade';
8
- import { SwapOptions } from './entities/protocols/uniswap';
9
- export declare type SwapRouterConfig = {
10
- sender?: string;
11
- deadline?: BigNumberish;
12
- };
13
- declare type SupportedNFTTrade = NFTTrade<SupportedProtocolsData>;
14
- export declare abstract class SwapRouter {
15
- static INTERFACE: Interface;
16
- static swapCallParameters(trades: Command[] | Command, config?: SwapRouterConfig): MethodParameters;
17
- /**
18
- * @deprecated in favor of swapCallParameters. Update before next major version 2.0.0
19
- * Produces the on-chain method name to call and the hex encoded parameters to pass as arguments for a given swap.
20
- * @param trades to produce call parameters for
21
- */
22
- static swapNFTCallParameters(trades: SupportedNFTTrade[], config?: SwapRouterConfig): MethodParameters;
23
- /**
24
- * @deprecated in favor of swapCallParameters. Update before next major version 2.0.0
25
- * Produces the on-chain method name to call and the hex encoded parameters to pass as arguments for a given trade.
26
- * @param trades to produce call parameters for
27
- * @param options options for the call parameters
28
- */
29
- static swapERC20CallParameters(trades: RouterTrade<Currency, Currency, TradeType>, options: SwapOptions): MethodParameters;
30
- /**
31
- * Encodes a planned route into a method name and parameters for the Router contract.
32
- * @param planner the planned route
33
- * @param nativeCurrencyValue the native currency value of the planned route
34
- * @param config the router config
35
- */
36
- private static encodePlan;
37
- }
38
- export {};
1
+ import { Interface } from '@ethersproject/abi'
2
+ import { BigNumberish } from 'ethers'
3
+ import { MethodParameters } from '@uniswap/v3-sdk'
4
+ import { Trade as RouterTrade } from '@uniswap/router-sdk'
5
+ import { Currency, TradeType } from '@uniswap/sdk-core'
6
+ import { Command } from './entities/Command'
7
+ import { NFTTrade, SupportedProtocolsData } from './entities/NFTTrade'
8
+ import { SwapOptions } from './entities/protocols/uniswap'
9
+ export declare type SwapRouterConfig = {
10
+ sender?: string
11
+ deadline?: BigNumberish
12
+ }
13
+ declare type SupportedNFTTrade = NFTTrade<SupportedProtocolsData>
14
+ export declare abstract class SwapRouter {
15
+ static INTERFACE: Interface
16
+ static swapCallParameters(trades: Command[] | Command, config?: SwapRouterConfig): MethodParameters
17
+ /**
18
+ * @deprecated in favor of swapCallParameters. Update before next major version 2.0.0
19
+ * Produces the on-chain method name to call and the hex encoded parameters to pass as arguments for a given swap.
20
+ * @param trades to produce call parameters for
21
+ */
22
+ static swapNFTCallParameters(trades: SupportedNFTTrade[], config?: SwapRouterConfig): MethodParameters
23
+ /**
24
+ * @deprecated in favor of swapCallParameters. Update before next major version 2.0.0
25
+ * Produces the on-chain method name to call and the hex encoded parameters to pass as arguments for a given trade.
26
+ * @param trades to produce call parameters for
27
+ * @param options options for the call parameters
28
+ */
29
+ static swapERC20CallParameters(
30
+ trades: RouterTrade<Currency, Currency, TradeType>,
31
+ options: SwapOptions
32
+ ): MethodParameters
33
+ /**
34
+ * Encodes a planned route into a method name and parameters for the Router contract.
35
+ * @param planner the planned route
36
+ * @param nativeCurrencyValue the native currency value of the planned route
37
+ * @param config the router config
38
+ */
39
+ private static encodePlan
40
+ }
41
+ export {}
@@ -1 +1 @@
1
- export declare function registerFixture(key: string, data: any): void;
1
+ export declare function registerFixture(key: string, data: any): void
@@ -1,12 +1,15 @@
1
- import { MakerOrder, TakerOrder } from '../../src/entities/protocols/looksRare';
2
- import { BigNumber } from 'ethers';
3
- export declare type APIOrder = Omit<MakerOrder, 'collection' | 'currency'> & {
4
- collectionAddress: string;
5
- currencyAddress: string;
6
- };
7
- export declare function createLooksRareOrders(apiOrder: APIOrder, taker: string): {
8
- makerOrder: MakerOrder;
9
- takerOrder: TakerOrder;
10
- value: BigNumber;
11
- };
12
- export declare const looksRareOrders: APIOrder[];
1
+ import { MakerOrder, TakerOrder } from '../../src/entities/protocols/looksRare'
2
+ import { BigNumber } from 'ethers'
3
+ export declare type APIOrder = Omit<MakerOrder, 'collection' | 'currency'> & {
4
+ collectionAddress: string
5
+ currencyAddress: string
6
+ }
7
+ export declare function createLooksRareOrders(
8
+ apiOrder: APIOrder,
9
+ taker: string
10
+ ): {
11
+ makerOrder: MakerOrder
12
+ takerOrder: TakerOrder
13
+ value: BigNumber
14
+ }
15
+ export declare const looksRareOrders: APIOrder[]
@@ -1,4 +1,4 @@
1
- import { SeaportData } from '../../src/entities/protocols/seaport';
2
- import { BigNumber } from 'ethers';
3
- export declare const seaportData2Covens: SeaportData;
4
- export declare const seaportValue: BigNumber;
1
+ import { SeaportData } from '../../src/entities/protocols/seaport'
2
+ import { BigNumber } from 'ethers'
3
+ export declare const seaportData2Covens: SeaportData
4
+ export declare const seaportValue: BigNumber
@@ -1,4 +1,4 @@
1
- import { SeaportData } from '../../src/entities/protocols/seaport';
2
- import { BigNumber } from 'ethers';
3
- export declare const seaportV1_4Data: SeaportData;
4
- export declare const seaportV1_4Value: BigNumber;
1
+ import { SeaportData } from '../../src/entities/protocols/seaport'
2
+ import { BigNumber } from 'ethers'
3
+ export declare const seaportV1_4Data: SeaportData
4
+ export declare const seaportV1_4Value: BigNumber
@@ -1,6 +1,6 @@
1
- export declare const x2y2Orders: {
2
- input: string;
3
- order_id: number;
4
- token_id: string;
5
- price: string;
6
- }[];
1
+ export declare const x2y2Orders: {
2
+ input: string
3
+ order_id: number
4
+ token_id: string
5
+ price: string
6
+ }[]
@@ -1,2 +1,2 @@
1
- export declare const PERMIT2_ADDRESS: string;
2
- export declare const ROUTER_ADDRESS: string;
1
+ export declare const PERMIT2_ADDRESS: string
2
+ export declare const ROUTER_ADDRESS: string
@@ -1,2 +1,2 @@
1
- import { BigNumberish } from 'ethers';
2
- export declare function hexToDecimalString(hex: BigNumberish): string;
1
+ import { BigNumberish } from 'ethers'
2
+ export declare function hexToDecimalString(hex: BigNumberish): string
@@ -1,7 +1,17 @@
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 generateEip2098PermitSignature(permit: PermitSingle, signer: Wallet, chainId: number, permitAddress?: string): Promise<string>;
6
- export declare function toInputPermit(signature: string, permit: PermitSingle): Permit2Permit;
7
- export declare function makePermit(token: string, amount?: string, nonce?: string, routerAddress?: string): PermitSingle;
1
+ import { Wallet } from 'ethers'
2
+ import { PermitSingle } from '@uniswap/permit2-sdk'
3
+ import { Permit2Permit } from '../../src/utils/permit2'
4
+ export declare function generatePermitSignature(
5
+ permit: PermitSingle,
6
+ signer: Wallet,
7
+ chainId: number,
8
+ permitAddress?: string
9
+ ): Promise<string>
10
+ export declare function generateEip2098PermitSignature(
11
+ permit: PermitSingle,
12
+ signer: Wallet,
13
+ chainId: number,
14
+ permitAddress?: string
15
+ ): Promise<string>
16
+ export declare function toInputPermit(signature: string, permit: PermitSingle): Permit2Permit
17
+ export declare function makePermit(token: string, amount?: string, nonce?: string, routerAddress?: string): PermitSingle
@@ -1,24 +1,30 @@
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 {};
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(
24
+ trades: (
25
+ | V2Trade<Currency, Currency, TradeType>
26
+ | V3Trade<Currency, Currency, TradeType>
27
+ | MixedRouteTrade<Currency, Currency, TradeType>
28
+ )[]
29
+ ): RouterTrade<Currency, Currency, TradeType>
30
+ export {}
@@ -1,8 +1,8 @@
1
- import { BigNumber } from 'ethers';
2
- export declare const UNIVERSAL_ROUTER_ADDRESS: (chainId: number) => string;
3
- export declare const WETH_ADDRESS: (chainId: number) => string;
4
- export declare const PERMIT2_ADDRESS = "0x000000000022D473030F116dDEE9F6B43aC78BA3";
5
- export declare const CONTRACT_BALANCE: BigNumber;
6
- export declare const ETH_ADDRESS = "0x0000000000000000000000000000000000000000";
7
- export declare const SENDER_AS_RECIPIENT = "0x0000000000000000000000000000000000000001";
8
- export declare const ROUTER_AS_RECIPIENT = "0x0000000000000000000000000000000000000002";
1
+ import { BigNumber } from 'ethers'
2
+ export declare const UNIVERSAL_ROUTER_ADDRESS: (chainId: number) => string
3
+ export declare const WETH_ADDRESS: (chainId: number) => string
4
+ export declare const PERMIT2_ADDRESS = '0x000000000022D473030F116dDEE9F6B43aC78BA3'
5
+ export declare const CONTRACT_BALANCE: BigNumber
6
+ export declare const ETH_ADDRESS = '0x0000000000000000000000000000000000000000'
7
+ export declare const SENDER_AS_RECIPIENT = '0x0000000000000000000000000000000000000001'
8
+ export declare const ROUTER_AS_RECIPIENT = '0x0000000000000000000000000000000000000002'
@@ -1,4 +1,4 @@
1
- import { BigNumber } from 'ethers';
2
- import JSBI from 'jsbi';
3
- export declare function expandTo18DecimalsBN(n: number): BigNumber;
4
- export declare function expandTo18Decimals(n: number): JSBI;
1
+ import { BigNumber } from 'ethers'
2
+ import JSBI from 'jsbi'
3
+ export declare function expandTo18DecimalsBN(n: number): BigNumber
4
+ export declare function expandTo18Decimals(n: number): JSBI
@@ -1,2 +1,2 @@
1
- import { Currency, CurrencyAmount } from '@uniswap/sdk-core';
2
- export declare function getNativeCurrencyValue(currencyValues: CurrencyAmount<Currency>[]): CurrencyAmount<Currency>;
1
+ import { Currency, CurrencyAmount } from '@uniswap/sdk-core'
2
+ export declare function getNativeCurrencyValue(currencyValues: CurrencyAmount<Currency>[]): CurrencyAmount<Currency>
@@ -1,6 +1,6 @@
1
- import { PermitSingle } from '@uniswap/permit2-sdk';
2
- import { RoutePlanner } from './routerCommands';
3
- export interface Permit2Permit extends PermitSingle {
4
- signature: string;
5
- }
6
- export declare function encodePermit(planner: RoutePlanner, permit: Permit2Permit): void;
1
+ import { PermitSingle } from '@uniswap/permit2-sdk'
2
+ import { RoutePlanner } from './routerCommands'
3
+ export interface Permit2Permit extends PermitSingle {
4
+ signature: string
5
+ }
6
+ export declare function encodePermit(planner: RoutePlanner, permit: Permit2Permit): void
@@ -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
- 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;
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/universal-router-sdk",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "sdk for integrating with the Universal Router contracts",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -47,7 +47,7 @@
47
47
  "typescript": "^4.3.3"
48
48
  },
49
49
  "dependencies": {
50
- "@uniswap/universal-router": "1.3.0",
50
+ "@uniswap/universal-router": "1.3.1",
51
51
  "@uniswap/permit2-sdk": "^1.2.0",
52
52
  "@uniswap/router-sdk": "^1.4.0",
53
53
  "@uniswap/sdk-core": "^3.1.0",