@gearbox-protocol/sdk 8.26.1 → 8.26.2

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.
@@ -27,15 +27,17 @@ module.exports = __toCommonJS(createAnvilClient_exports);
27
27
  var import_viem = require("viem");
28
28
  function createAnvilClient({
29
29
  chain,
30
- transport
30
+ transport,
31
+ cacheTime = 0,
32
+ pollingInterval = 50
31
33
  }) {
32
34
  return (0, import_viem.createTestClient)(
33
35
  {
34
36
  chain,
35
37
  mode: "anvil",
36
38
  transport,
37
- cacheTime: 0,
38
- pollingInterval: 50
39
+ cacheTime,
40
+ pollingInterval
39
41
  }
40
42
  ).extend(import_viem.publicActions).extend(import_viem.walletActions).extend((client) => ({
41
43
  anvilNodeInfo: () => anvilNodeInfo(client),
@@ -1,15 +1,17 @@
1
1
  import { createTestClient, publicActions, toHex, walletActions } from "viem";
2
2
  function createAnvilClient({
3
3
  chain,
4
- transport
4
+ transport,
5
+ cacheTime = 0,
6
+ pollingInterval = 50
5
7
  }) {
6
8
  return createTestClient(
7
9
  {
8
10
  chain,
9
11
  mode: "anvil",
10
12
  transport,
11
- cacheTime: 0,
12
- pollingInterval: 50
13
+ cacheTime,
14
+ pollingInterval
13
15
  }
14
16
  ).extend(publicActions).extend(walletActions).extend((client) => ({
15
17
  anvilNodeInfo: () => anvilNodeInfo(client),
@@ -45,8 +45,10 @@ export type AnvilClient = Prettify<{
45
45
  export interface AnvilClientConfig<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined> {
46
46
  transport: transport;
47
47
  chain?: chain;
48
+ cacheTime?: number;
49
+ pollingInterval?: number;
48
50
  }
49
- export declare function createAnvilClient({ chain, transport, }: AnvilClientConfig): AnvilClient;
51
+ export declare function createAnvilClient({ chain, transport, cacheTime, pollingInterval, }: AnvilClientConfig): AnvilClient;
50
52
  /**
51
53
  * View action to detect if client is an anvil client
52
54
  * @param client
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "8.26.1",
3
+ "version": "8.26.2",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",