@gearbox-protocol/sdk 12.7.0 → 12.7.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.
|
@@ -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
|
});
|
|
@@ -71,7 +71,7 @@ const DRPC_NETS = {
|
|
|
71
71
|
Monad: "monad-mainnet",
|
|
72
72
|
Hemi: "hemi",
|
|
73
73
|
Lisk: "lisk",
|
|
74
|
-
MegaETH:
|
|
74
|
+
MegaETH: "megaeth",
|
|
75
75
|
Etherlink: null,
|
|
76
76
|
Plasma: "plasma",
|
|
77
77
|
Somnia: "somnia"
|
|
@@ -87,7 +87,7 @@ const ALCHEMY_DOMAINS = {
|
|
|
87
87
|
Avalanche: "avax-mainnet",
|
|
88
88
|
BNB: "bnb-mainnet",
|
|
89
89
|
WorldChain: "worldchain-mainnet",
|
|
90
|
-
MegaETH:
|
|
90
|
+
MegaETH: "megaeth-mainnet",
|
|
91
91
|
Etherlink: null,
|
|
92
92
|
Hemi: null,
|
|
93
93
|
Lisk: null,
|
|
@@ -41,7 +41,7 @@ const DRPC_NETS = {
|
|
|
41
41
|
Monad: "monad-mainnet",
|
|
42
42
|
Hemi: "hemi",
|
|
43
43
|
Lisk: "lisk",
|
|
44
|
-
MegaETH:
|
|
44
|
+
MegaETH: "megaeth",
|
|
45
45
|
Etherlink: null,
|
|
46
46
|
Plasma: "plasma",
|
|
47
47
|
Somnia: "somnia"
|
|
@@ -57,7 +57,7 @@ const ALCHEMY_DOMAINS = {
|
|
|
57
57
|
Avalanche: "avax-mainnet",
|
|
58
58
|
BNB: "bnb-mainnet",
|
|
59
59
|
WorldChain: "worldchain-mainnet",
|
|
60
|
-
MegaETH:
|
|
60
|
+
MegaETH: "megaeth-mainnet",
|
|
61
61
|
Etherlink: null,
|
|
62
62
|
Hemi: null,
|
|
63
63
|
Lisk: null,
|
|
@@ -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 {
|
|
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";
|