@gearbox-protocol/sdk 12.7.0 → 12.7.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.
@@ -22,6 +22,7 @@ __export(RevolverTransport_exports, {
22
22
  RevolverTransport: () => RevolverTransport,
23
23
  SelectionStrategy: () => SelectionStrategy,
24
24
  providerConfigSchema: () => providerConfigSchema,
25
+ revolverTransportConfigBaseSchema: () => revolverTransportConfigBaseSchema,
25
26
  revolverTransportConfigSchema: () => revolverTransportConfigSchema
26
27
  });
27
28
  module.exports = __toCommonJS(RevolverTransport_exports);
@@ -356,5 +357,6 @@ class OrderedTransportSelector extends AbstractTransportSelector {
356
357
  RevolverTransport,
357
358
  SelectionStrategy,
358
359
  providerConfigSchema,
360
+ revolverTransportConfigBaseSchema,
359
361
  revolverTransportConfigSchema
360
362
  });
@@ -339,5 +339,6 @@ export {
339
339
  RevolverTransport,
340
340
  SelectionStrategy,
341
341
  providerConfigSchema,
342
+ revolverTransportConfigBaseSchema,
342
343
  revolverTransportConfigSchema
343
344
  };
@@ -1,7 +1,7 @@
1
1
  import { BaseError, type EIP1193RequestFn, type Transport, type TransportConfig } from "viem";
2
2
  import type { HttpRpcClientOptions } from "viem/utils";
3
3
  import { z } from "zod/v4";
4
- import { type ILogger } from "../sdk/index.js";
4
+ import type { ILogger } from "../sdk/index.js";
5
5
  export declare const providerConfigSchema: z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  url: z.ZodURL;
@@ -39,6 +39,33 @@ export declare const SelectionStrategy: z.ZodEnum<{
39
39
  * - ordered: will select first available transport that is not in cooldown
40
40
  */
41
41
  export type SelectionStrategy = z.infer<typeof SelectionStrategy>;
42
+ /**
43
+ * Schema without underlying transport configs
44
+ */
45
+ export declare const revolverTransportConfigBaseSchema: z.ZodObject<{
46
+ selectionStrategy: z.ZodOptional<z.ZodEnum<{
47
+ simple: "simple";
48
+ ordered: "ordered";
49
+ }>>;
50
+ key: z.ZodOptional<z.ZodString>;
51
+ name: z.ZodOptional<z.ZodString>;
52
+ defaultHTTPOptions: z.ZodOptional<z.ZodObject<{
53
+ batch: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
54
+ batchSize: z.ZodOptional<z.ZodNumber>;
55
+ wait: z.ZodOptional<z.ZodNumber>;
56
+ }, z.core.$strip>]>>;
57
+ fetchOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
58
+ methods: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
59
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
+ }, z.core.$strip>, z.ZodObject<{
61
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
62
+ }, z.core.$strip>]>>;
63
+ retryCount: z.ZodOptional<z.ZodNumber>;
64
+ retryDelay: z.ZodOptional<z.ZodNumber>;
65
+ timeout: z.ZodOptional<z.ZodNumber>;
66
+ }, z.core.$strip>>;
67
+ defaultCooldown: z.ZodOptional<z.ZodNumber>;
68
+ }, z.core.$strip>;
42
69
  export declare const revolverTransportConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
43
70
  selectionStrategy: z.ZodOptional<z.ZodEnum<{
44
71
  simple: "simple";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "12.7.0",
3
+ "version": "12.7.1",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",