@1inch/fusion-sdk 2.2.3 → 2.2.4-rc.1

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.
@@ -7,3 +7,4 @@ export type WsApiConfig = {
7
7
  authKey?: string;
8
8
  };
9
9
  export type OnMessageCb = (data: any) => void;
10
+ export type OnMessageInputVoidCb = () => void;
@@ -1,5 +1,5 @@
1
1
  import WebSocket from 'ws';
2
- import { AnyFunction, AnyFunctionWithThis, OnMessageCb, WsApiConfig } from './types';
2
+ import { AnyFunction, AnyFunctionWithThis, OnMessageCb, OnMessageInputVoidCb, WsApiConfig } from './types';
3
3
  import { WsProviderConnector } from './websocket-provider.connector';
4
4
  export declare class WebsocketClient implements WsProviderConnector {
5
5
  readonly ws: WebSocket;
@@ -13,6 +13,8 @@ export declare class WebsocketClient implements WsProviderConnector {
13
13
  onOpen(cb: AnyFunctionWithThis): void;
14
14
  send<T>(message: T): void;
15
15
  onMessage(cb: OnMessageCb): void;
16
+ ping(): void;
17
+ onPong(cb: OnMessageInputVoidCb): void;
16
18
  onClose(cb: AnyFunction): void;
17
19
  onError(cb: AnyFunction): void;
18
20
  close(): void;
@@ -1,4 +1,4 @@
1
- import { AnyFunctionWithThis, AnyFunction, OnMessageCb } from './types';
1
+ import { AnyFunctionWithThis, AnyFunction, OnMessageCb, OnMessageInputVoidCb } from './types';
2
2
  export interface WsProviderConnector {
3
3
  init(): void;
4
4
  on(event: string, cb: AnyFunctionWithThis): void;
@@ -6,6 +6,8 @@ export interface WsProviderConnector {
6
6
  onOpen(cb: AnyFunctionWithThis): void;
7
7
  send<T>(message: T): void;
8
8
  close(): void;
9
+ ping(): void;
10
+ onPong(cb: OnMessageInputVoidCb): void;
9
11
  onMessage(cb: OnMessageCb): void;
10
12
  onClose(cb: AnyFunction): void;
11
13
  onError(cb: AnyFunction): void;
@@ -10,7 +10,9 @@ export declare enum NetworkEnum {
10
10
  FANTOM = 250,
11
11
  GNOSIS = 100,
12
12
  COINBASE = 8453,
13
- LINEA = 59144
13
+ LINEA = 59144,
14
+ SONIC = 146,
15
+ UNICHAIN = 130
14
16
  }
15
17
  export declare const ONE_INCH_LIMIT_ORDER_V4 = "0x111111125421ca6dc452d289314280a0f8842a65";
16
18
  export declare const UINT_160_MAX: bigint;
@@ -11,4 +11,6 @@ export declare const CHAIN_TO_WRAPPER: {
11
11
  250: Address;
12
12
  324: Address;
13
13
  59144: Address;
14
+ 130: Address;
15
+ 146: Address;
14
16
  };