@gearbox-protocol/cli-utils 5.65.2 → 5.65.4
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.
|
@@ -41,7 +41,7 @@ function getProviders(config) {
|
|
|
41
41
|
const urlObj = new URL(url.value);
|
|
42
42
|
const hasCredentials = urlObj.username || urlObj.password;
|
|
43
43
|
let cleanUrl = url.value;
|
|
44
|
-
let
|
|
44
|
+
let httpTransportOptions = {};
|
|
45
45
|
if (hasCredentials) {
|
|
46
46
|
// Create URL without credentials
|
|
47
47
|
const cleanUrlObj = new URL(url.value);
|
|
@@ -51,7 +51,7 @@ function getProviders(config) {
|
|
|
51
51
|
// Create Basic Auth header
|
|
52
52
|
const credentials = `${urlObj.username}:${urlObj.password}`;
|
|
53
53
|
const encodedCredentials = Buffer.from(credentials).toString("base64");
|
|
54
|
-
|
|
54
|
+
httpTransportOptions = {
|
|
55
55
|
fetchOptions: {
|
|
56
56
|
headers: {
|
|
57
57
|
Authorization: `Basic ${encodedCredentials}`,
|
|
@@ -62,7 +62,7 @@ function getProviders(config) {
|
|
|
62
62
|
return {
|
|
63
63
|
name: getTopLevelDomain(urlObj),
|
|
64
64
|
url: cleanUrl,
|
|
65
|
-
|
|
65
|
+
httpTransportOptions,
|
|
66
66
|
};
|
|
67
67
|
}));
|
|
68
68
|
break;
|
|
@@ -80,7 +80,7 @@ function getProviders(config) {
|
|
|
80
80
|
.map(p => ({
|
|
81
81
|
...p,
|
|
82
82
|
httpClientOptions: {
|
|
83
|
-
...p.
|
|
83
|
+
...p.httpTransportOptions,
|
|
84
84
|
methods: { exclude: ["eth_fillTransaction"] },
|
|
85
85
|
},
|
|
86
86
|
}))
|
|
@@ -88,7 +88,6 @@ function getProviders(config) {
|
|
|
88
88
|
}
|
|
89
89
|
export function createRevolverTransport(providers, config) {
|
|
90
90
|
return RevolverTransport.create({
|
|
91
|
-
network: providers.network,
|
|
92
91
|
providers: getProviders(providers),
|
|
93
92
|
...config,
|
|
94
93
|
});
|
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": "5.65.
|
|
4
|
+
"version": "5.65.4",
|
|
5
5
|
"homepage": "https://gearbox.fi",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"gearbox"
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"package:version": "yarn version"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
33
|
-
"@aws-sdk/client-ssm": "^3.
|
|
34
|
-
"@gearbox-protocol/sdk": ">=12.3.
|
|
32
|
+
"@aws-sdk/client-secrets-manager": "^3.964.0",
|
|
33
|
+
"@aws-sdk/client-ssm": "^3.964.0",
|
|
34
|
+
"@gearbox-protocol/sdk": ">=12.3.13",
|
|
35
35
|
"abitype": "^1.2.3",
|
|
36
36
|
"commander": "^14.0.2",
|
|
37
37
|
"lodash-es": "^4.17.22",
|
|
38
|
-
"viem": "^2.43.
|
|
38
|
+
"viem": "^2.43.5",
|
|
39
39
|
"yaml": "^2.8.2",
|
|
40
|
-
"zod": "^4.
|
|
40
|
+
"zod": "^4.3.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@commander-js/extra-typings": "^14.0.0",
|