@uniswap/universal-router-sdk 2.2.3 → 3.0.0

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,6 +1,23 @@
1
1
  import { BigNumber } from 'ethers';
2
- export declare const UNIVERSAL_ROUTER_ADDRESS: (chainId: number) => string;
3
- export declare const UNIVERSAL_ROUTER_CREATION_BLOCK: (chainId: number) => number;
2
+ export declare enum RouterVersion {
3
+ V1_2 = 0,
4
+ V2_0 = 1
5
+ }
6
+ export declare type RouterConfig = {
7
+ address: string;
8
+ creationBlock: number;
9
+ };
10
+ declare type ChainConfig = {
11
+ weth: string;
12
+ routerConfigs: {
13
+ [key in RouterVersion]: RouterConfig;
14
+ };
15
+ };
16
+ export declare const CHAIN_CONFIGS: {
17
+ [key: number]: ChainConfig;
18
+ };
19
+ export declare const UNIVERSAL_ROUTER_ADDRESS: (version: RouterVersion, chainId: number) => string;
20
+ export declare const UNIVERSAL_ROUTER_CREATION_BLOCK: (version: RouterVersion, chainId: number) => number;
4
21
  export declare const WETH_ADDRESS: (chainId: number) => string;
5
22
  export declare const PERMIT2_ADDRESS = "0x000000000022D473030F116dDEE9F6B43aC78BA3";
6
23
  export declare const CONTRACT_BALANCE: BigNumber;
@@ -13,3 +30,4 @@ export declare const SENDER_AS_RECIPIENT = "0x0000000000000000000000000000000000
13
30
  export declare const ROUTER_AS_RECIPIENT = "0x0000000000000000000000000000000000000002";
14
31
  export declare const OPENSEA_CONDUIT_SPENDER_ID = 0;
15
32
  export declare const SUDOSWAP_SPENDER_ID = 1;
33
+ export {};
package/package.json CHANGED
@@ -31,11 +31,12 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@uniswap/permit2-sdk": "^1.3.0",
34
- "@uniswap/router-sdk": "^1.9.3",
34
+ "@uniswap/router-sdk": "^1.10.0",
35
35
  "@uniswap/sdk-core": "^5.3.1",
36
36
  "@uniswap/universal-router": "1.6.0",
37
37
  "@uniswap/v2-sdk": "^4.4.1",
38
38
  "@uniswap/v3-sdk": "^3.13.1",
39
+ "@uniswap/v4-sdk": "^1.0.0",
39
40
  "bignumber.js": "^9.0.2",
40
41
  "ethers": "^5.7.0"
41
42
  },
@@ -62,7 +63,8 @@
62
63
  "trailingComma": "es5"
63
64
  },
64
65
  "publishConfig": {
65
- "access": "public"
66
+ "access": "public",
67
+ "provenance": true
66
68
  },
67
69
  "release": {
68
70
  "extends": "semantic-release-monorepo",
@@ -96,5 +98,5 @@
96
98
  "installConfig": {
97
99
  "hoistingLimits": "workspaces"
98
100
  },
99
- "version": "2.2.3"
101
+ "version": "3.0.0"
100
102
  }