@uniswap/universal-router-sdk 4.24.0 → 4.26.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,8 +1,7 @@
1
1
  import { BigNumber } from 'ethers';
2
2
  export declare enum UniversalRouterVersion {
3
3
  V1_2 = "1.2",
4
- V2_0 = "2.0",
5
- V2_1 = "2.1"
4
+ V2_0 = "2.0"
6
5
  }
7
6
  export declare type RouterConfig = {
8
7
  address: string;
@@ -1,4 +1,3 @@
1
- import { AcrossV4DepositV3Params } from '../entities/actions/across';
2
1
  /**
3
2
  * CommandTypes
4
3
  * @description Flags that modify a command's execution
@@ -24,8 +23,7 @@ export declare enum CommandType {
24
23
  V3_POSITION_MANAGER_CALL = 18,
25
24
  V4_INITIALIZE_POOL = 19,
26
25
  V4_POSITION_MANAGER_CALL = 20,
27
- EXECUTE_SUB_PLAN = 33,
28
- ACROSS_V4_DEPOSIT_V3 = 64
26
+ EXECUTE_SUB_PLAN = 33
29
27
  }
30
28
  export declare enum Subparser {
31
29
  V3PathExactIn = 0,
@@ -58,12 +56,6 @@ export declare class RoutePlanner {
58
56
  constructor();
59
57
  addSubPlan(subplan: RoutePlanner): RoutePlanner;
60
58
  addCommand(type: CommandType, parameters: any[], allowRevert?: boolean): RoutePlanner;
61
- /**
62
- * Add Across bridge deposit command for cross-chain bridging
63
- * @param params AcrossV4DepositV3Params containing bridge parameters
64
- * @returns RoutePlanner instance for chaining
65
- */
66
- addAcrossBridge(params: AcrossV4DepositV3Params): RoutePlanner;
67
59
  }
68
60
  export declare type RouterCommand = {
69
61
  type: CommandType;
package/package.json CHANGED
@@ -31,14 +31,14 @@
31
31
  "dependencies": {
32
32
  "@openzeppelin/contracts": "4.7.0",
33
33
  "@uniswap/permit2-sdk": "^1.3.0",
34
- "@uniswap/router-sdk": "^2.1.0",
35
- "@uniswap/sdk-core": "^7.8.0",
34
+ "@uniswap/router-sdk": "^2.3.0",
35
+ "@uniswap/sdk-core": "^7.10.0",
36
36
  "@uniswap/universal-router": "2.1.0",
37
37
  "@uniswap/v2-core": "^1.0.1",
38
- "@uniswap/v2-sdk": "^4.16.0",
38
+ "@uniswap/v2-sdk": "^4.17.0",
39
39
  "@uniswap/v3-core": "1.0.0",
40
- "@uniswap/v3-sdk": "^3.26.0",
41
- "@uniswap/v4-sdk": "^1.23.0",
40
+ "@uniswap/v3-sdk": "^3.27.0",
41
+ "@uniswap/v4-sdk": "^1.24.0",
42
42
  "bignumber.js": "^9.0.2",
43
43
  "ethers": "^5.7.0"
44
44
  },
@@ -101,5 +101,5 @@
101
101
  "hoistingLimits": "workspaces"
102
102
  },
103
103
  "sideEffects": false,
104
- "version": "4.24.0"
104
+ "version": "4.26.0"
105
105
  }
@@ -1,21 +0,0 @@
1
- import { BigNumberish } from 'ethers';
2
- /**
3
- * Parameters for Across V4 Deposit V3 command
4
- * Used for cross-chain bridging via Across Protocol V3 SpokePool
5
- */
6
- export declare type AcrossV4DepositV3Params = {
7
- depositor: string;
8
- recipient: string;
9
- inputToken: string;
10
- outputToken: string;
11
- inputAmount: BigNumberish;
12
- outputAmount: BigNumberish;
13
- destinationChainId: number;
14
- exclusiveRelayer: string;
15
- quoteTimestamp: number;
16
- fillDeadline: number;
17
- exclusivityDeadline: number;
18
- message: string;
19
- useNative: boolean;
20
- };
21
- export { CONTRACT_BALANCE } from '../../utils/constants';
@@ -1,17 +0,0 @@
1
- import { TypedDataDomain, TypedDataField } from '@ethersproject/abstract-signer';
2
- export declare const EIP712_DOMAIN_NAME = "UniversalRouter";
3
- export declare const EIP712_DOMAIN_VERSION = "2";
4
- export declare const EXECUTE_SIGNED_TYPES: Record<string, TypedDataField[]>;
5
- /**
6
- * Generate EIP712 domain for Universal Router
7
- */
8
- export declare function getUniversalRouterDomain(chainId: number, verifyingContract: string): TypedDataDomain;
9
- /**
10
- * Generate a random nonce for signed execution
11
- * Uses ethers.utils.randomBytes for secure randomness
12
- */
13
- export declare function generateNonce(): string;
14
- /**
15
- * Sentinel value to skip nonce checking (allows signature replay)
16
- */
17
- export declare const NONCE_SKIP_CHECK: string;