@uniswap/universal-router-sdk 4.3.2 → 4.4.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,5 +1,5 @@
1
1
  import { Interface } from '@ethersproject/abi';
2
- import { CommandType } from '../utils/routerCommands';
2
+ import { CommandType, CommandDefinition } from '../utils/routerCommands';
3
3
  export declare type Param = {
4
4
  readonly name: string;
5
5
  readonly value: any;
@@ -17,9 +17,17 @@ export declare type V3PathItem = {
17
17
  readonly tokenOut: string;
18
18
  readonly fee: number;
19
19
  };
20
+ export interface CommandsDefinition {
21
+ [key: number]: CommandDefinition;
22
+ }
20
23
  export declare abstract class CommandParser {
21
24
  static INTERFACE: Interface;
22
25
  static parseCalldata(calldata: string): UniversalRouterCall;
26
+ }
27
+ export declare class GenericCommandParser {
28
+ private readonly commandDefinition;
29
+ constructor(commandDefinition: CommandsDefinition);
30
+ parse(commands: string, inputs: string[]): UniversalRouterCall;
23
31
  private static getCommands;
24
32
  }
25
33
  export declare function parseV3PathExactIn(path: string): readonly V3PathItem[];
package/package.json CHANGED
@@ -100,5 +100,5 @@
100
100
  "installConfig": {
101
101
  "hoistingLimits": "workspaces"
102
102
  },
103
- "version": "4.3.2"
103
+ "version": "4.4.0"
104
104
  }