@gearbox-protocol/cli-utils 6.3.1 → 6.3.3
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/getProviders.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { getAlchemyUrl, getAnkrUrl, getDrpcUrl, getErpcKey, getThirdWebUrl, } from "./providers.js";
|
|
2
2
|
export function getProviders(config) {
|
|
3
|
-
const { network, enabledProviders
|
|
3
|
+
const { network, enabledProviders = [
|
|
4
|
+
"erpc",
|
|
5
|
+
"custom",
|
|
6
|
+
"drpc",
|
|
7
|
+
"alchemy",
|
|
8
|
+
"ankr",
|
|
9
|
+
"thirdweb",
|
|
10
|
+
], alchemyKeys = [], ankrKeys = [], drpcKeys = [], thirdwebKeys = [], jsonRpcProviders = [], erpcProjectId, erpcUrl, } = config;
|
|
4
11
|
const result = [];
|
|
5
12
|
for (const p of enabledProviders) {
|
|
6
13
|
switch (p) {
|
|
@@ -30,7 +30,7 @@ export declare const ProvidersSchema: z.ZodObject<{
|
|
|
30
30
|
Somnia: "Somnia";
|
|
31
31
|
}>;
|
|
32
32
|
jsonRpcProviders: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodPipe<z.ZodURL, z.ZodTransform<CensoredURL, string>>>>, z.ZodTransform<CensoredURL[] | undefined, CensoredURL[]>>>;
|
|
33
|
-
enabledProviders: z.
|
|
33
|
+
enabledProviders: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodArray<z.ZodEnum<{
|
|
34
34
|
custom: "custom";
|
|
35
35
|
alchemy: "alchemy";
|
|
36
36
|
drpc: "drpc";
|
package/dist/providers-schema.js
CHANGED
|
@@ -36,7 +36,7 @@ export const ProvidersSchema = z.object({
|
|
|
36
36
|
*/
|
|
37
37
|
enabledProviders: stringArrayLike()
|
|
38
38
|
.pipe(z.array(RpcProvider))
|
|
39
|
-
.
|
|
39
|
+
.optional()
|
|
40
40
|
.register(zommandRegistry, {
|
|
41
41
|
flags: "--enabled-providers <providers...>",
|
|
42
42
|
description: "Keyed RPC providers to use, comma separated, order matters. Possible values: custom (for full json rpc urls)/alchemy/drpc/ankr/thirdweb",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/cli-utils",
|
|
3
3
|
"description": "Utils for creating cli apps",
|
|
4
|
-
"version": "6.3.
|
|
4
|
+
"version": "6.3.3",
|
|
5
5
|
"homepage": "https://gearbox.fi",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"gearbox"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@aws-sdk/client-s3": "^3.1019.0",
|
|
33
33
|
"@aws-sdk/client-secrets-manager": "^3.1019.0",
|
|
34
34
|
"@aws-sdk/client-ssm": "^3.1019.0",
|
|
35
|
-
"@gearbox-protocol/sdk": "13.
|
|
35
|
+
"@gearbox-protocol/sdk": "13.7.0-kyc.3",
|
|
36
36
|
"@vlad-yakovlev/telegram-md": "^2.1.0",
|
|
37
37
|
"abitype": "^1.2.3",
|
|
38
38
|
"commander": "^14.0.3",
|