@orderly.network/hooks 1.0.28-alpha.21 → 1.0.28-alpha.23

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.
package/dist/index.d.mts CHANGED
@@ -24,7 +24,7 @@ declare global {
24
24
  };
25
25
  }
26
26
  }
27
- declare const _default: "1.0.28-alpha.21";
27
+ declare const _default: "1.0.28-alpha.23";
28
28
 
29
29
  type useQueryOptions<T> = SWRConfiguration & {
30
30
  formatter?: (data: any) => T;
@@ -138,7 +138,9 @@ interface WalletConnectorContextState {
138
138
  connect: () => Promise<any[]>;
139
139
  disconnect: (options: any) => Promise<any[]>;
140
140
  connecting: boolean;
141
- setChain: (options: any) => Promise<any>;
141
+ setChain: (options: {
142
+ chainId: string | number;
143
+ }) => Promise<any>;
142
144
  chains: any[];
143
145
  wallet: any;
144
146
  connectedChain: ConnectedChain | null;
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ declare global {
24
24
  };
25
25
  }
26
26
  }
27
- declare const _default: "1.0.28-alpha.21";
27
+ declare const _default: "1.0.28-alpha.23";
28
28
 
29
29
  type useQueryOptions<T> = SWRConfiguration & {
30
30
  formatter?: (data: any) => T;
@@ -138,7 +138,9 @@ interface WalletConnectorContextState {
138
138
  connect: () => Promise<any[]>;
139
139
  disconnect: (options: any) => Promise<any[]>;
140
140
  connecting: boolean;
141
- setChain: (options: any) => Promise<any>;
141
+ setChain: (options: {
142
+ chainId: string | number;
143
+ }) => Promise<any>;
142
144
  chains: any[];
143
145
  wallet: any;
144
146
  connectedChain: ConnectedChain | null;
package/dist/index.js CHANGED
@@ -28,9 +28,9 @@ var useSWRSubscription__default = /*#__PURE__*/_interopDefault(useSWRSubscriptio
28
28
  // src/version.ts
29
29
  if (typeof window !== "undefined") {
30
30
  window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
31
- window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.28-alpha.21";
31
+ window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.28-alpha.23";
32
32
  }
33
- var version_default = "1.0.28-alpha.21";
33
+ var version_default = "1.0.28-alpha.23";
34
34
  var fetcher = (url, init = {}, queryOptions) => net.get(url, init, queryOptions?.formatter);
35
35
  var OrderlyContext = React.createContext({
36
36
  // configStore: new MemoryConfigStore(),