Skip to content

Commit 95b4b0c

Browse files
committed
fix: rename httpClientOptions to httpTransportOptions
1 parent 2f8302a commit 95b4b0c

File tree

6 files changed

+224
-194
lines changed

6 files changed

+224
-194
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
33
"extends": ["@gearbox-protocol/biome-config"],
44
"vcs": {
55
"enabled": true,

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@
6262
"date-fns": "^4.1.0",
6363
"decimal.js-light": "^2.5.1",
6464
"viem": ">=2.23.15 <3.0.0",
65-
"zod": "^4.2.1"
65+
"zod": "^4.3.5"
6666
},
6767
"devDependencies": {
68-
"@biomejs/biome": "^2.3.10",
69-
"@commitlint/cli": "^20.2.0",
70-
"@commitlint/config-conventional": "^20.2.0",
71-
"@gearbox-protocol/biome-config": "^1.0.16",
68+
"@biomejs/biome": "^2.3.11",
69+
"@commitlint/cli": "^20.3.0",
70+
"@commitlint/config-conventional": "^20.3.0",
71+
"@gearbox-protocol/biome-config": "^1.0.17",
7272
"@types/cross-spawn": "^6.0.6",
7373
"axios": "^1.13.2",
7474
"cross-spawn": "^7.0.6",

src/dev/RevolverTransport.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
import type { HttpRpcClientOptions } from "viem/utils";
1818
import { z } from "zod/v4";
1919
import { type ILogger, NetworkType } from "../sdk/index.js";
20-
import { httpTransportConfigSchema } from "./transports.js";
20+
import { httpTransportOptionsSchema } from "./transports.js";
2121

2222
export const providerConfigSchema = z.object({
2323
/**
@@ -35,7 +35,7 @@ export const providerConfigSchema = z.object({
3535
/**
3636
* HTTP transport options to use for this provider
3737
*/
38-
httpClientOptions: httpTransportConfigSchema.optional(),
38+
httpTransportOptions: httpTransportOptionsSchema.optional(),
3939
});
4040

4141
export type ProviderConfig = z.infer<typeof providerConfigSchema>;
@@ -91,7 +91,7 @@ export const revolverTransportConfigSchema = z.object({
9191
/**
9292
* Default HTTP options to use for all providers, can be overridden by provider config
9393
*/
94-
defaultHTTPOptions: httpTransportConfigSchema.optional(),
94+
defaultHTTPOptions: httpTransportOptionsSchema.optional(),
9595
/**
9696
* Default cooldown, in milliseconds, to wait before try this transport again
9797
*/
@@ -202,11 +202,11 @@ export class RevolverTransport
202202
};
203203

204204
const transports = config.providers.map(
205-
({ url, name, cooldown, httpClientOptions }): TransportEntry => ({
205+
({ url, name, cooldown, httpTransportOptions }): TransportEntry => ({
206206
name,
207207
transport: http(url, {
208208
...config.defaultHTTPOptions,
209-
...httpClientOptions,
209+
...httpTransportOptions,
210210
key: name,
211211
name: name,
212212
onFetchRequest: this.#config.onRequest

src/dev/transports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { z } from "zod/v4";
22

3-
export const httpTransportConfigSchema = z.object({
3+
export const httpTransportOptionsSchema = z.object({
44
/**
55
* Whether to enable Batch JSON-RPC.
66
* @link https://www.jsonrpc.org/specification#batch

src/sdk/GearboxSDK.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export type ClientOptions =
7979
* Retry count for RPC
8080
*/
8181
retryCount?: number;
82-
httpClientOptions?: HttpRpcClientOptions | undefined;
82+
httpTransportOptions?: HttpRpcClientOptions | undefined;
8383
}
8484
| {
8585
/**
@@ -114,7 +114,7 @@ function createClient(
114114
} else {
115115
const rpcs = opts.rpcURLs.map(url =>
116116
http(url, {
117-
...opts.httpClientOptions,
117+
...opts.httpTransportOptions,
118118
timeout: opts.timeout,
119119
retryCount: opts.retryCount,
120120
}),

0 commit comments

Comments
 (0)