@gearbox-protocol/deploy-tools 5.24.25 → 5.24.27
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/index.mjs +26 -6
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -369231,7 +369231,9 @@ var chains = {
|
|
|
369231
369231
|
MegaETH: defineChain({
|
|
369232
369232
|
...megaethTestnet,
|
|
369233
369233
|
network: "MegaETH",
|
|
369234
|
-
defaultMarketConfigurators: {
|
|
369234
|
+
defaultMarketConfigurators: {
|
|
369235
|
+
"0x59Db4A2241BFe5Ba9023d47A012a6c7A039139A6": "Chaos Labs"
|
|
369236
|
+
},
|
|
369235
369237
|
isPublic: false,
|
|
369236
369238
|
// TODO: has no block explorer API
|
|
369237
369239
|
wellKnownToken: {
|
|
@@ -423820,14 +423822,14 @@ function openAccounts() {
|
|
|
423820
423822
|
new Option("--shared-dir <dir>", "dir to put output files").env(
|
|
423821
423823
|
"SHARED_DIR"
|
|
423822
423824
|
)
|
|
423823
|
-
).addOption(new Option("--
|
|
423825
|
+
).addOption(new Option("--mode <string>", "script to select accounts")).action(async (opts) => {
|
|
423824
423826
|
log_default.info("starting sdk v3.1 example");
|
|
423825
423827
|
let {
|
|
423826
423828
|
addressProvider,
|
|
423827
423829
|
marketConfigurators,
|
|
423828
423830
|
anvilUrl = "http://127.0.0.1:8545",
|
|
423829
423831
|
sharedDir = ".",
|
|
423830
|
-
|
|
423832
|
+
mode,
|
|
423831
423833
|
castBin = "cast"
|
|
423832
423834
|
} = opts;
|
|
423833
423835
|
await mkdir2(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
|
|
@@ -423914,7 +423916,7 @@ function openAccounts() {
|
|
|
423914
423916
|
// sUSDe
|
|
423915
423917
|
}
|
|
423916
423918
|
];
|
|
423917
|
-
if (nexo) {
|
|
423919
|
+
if (mode === "nexo") {
|
|
423918
423920
|
accounts = [
|
|
423919
423921
|
{
|
|
423920
423922
|
creditManager: "0x3EB95430FdB99439A86d3c6D7D01C3c561393556",
|
|
@@ -423954,6 +423956,24 @@ function openAccounts() {
|
|
|
423954
423956
|
)
|
|
423955
423957
|
);
|
|
423956
423958
|
}
|
|
423959
|
+
} else if (mode === "stkcvxRLUSDUSDC") {
|
|
423960
|
+
const t = sdk.tokensMeta.findBySymbol("stkcvxRLUSDUSDC");
|
|
423961
|
+
if (!t) {
|
|
423962
|
+
log_default.error(`cannot find stkcvxRLUSDUSDC in tokens meta`);
|
|
423963
|
+
return;
|
|
423964
|
+
}
|
|
423965
|
+
const cms = sdk.marketRegister.creditManagers.filter(
|
|
423966
|
+
(cm) => cm.creditManager.collateralTokens.some(
|
|
423967
|
+
(tok) => tok.toLowerCase() === t.addr.toLowerCase()
|
|
423968
|
+
)
|
|
423969
|
+
);
|
|
423970
|
+
log_default.debug(
|
|
423971
|
+
`found ${cms.length} cms with stkcvxRLUSDUSDC as collateral: ${cms.map((cm) => cm.name)}`
|
|
423972
|
+
);
|
|
423973
|
+
accounts = cms.map((cm) => ({
|
|
423974
|
+
creditManager: cm.creditManager.address,
|
|
423975
|
+
collateral: t.addr
|
|
423976
|
+
}));
|
|
423957
423977
|
}
|
|
423958
423978
|
const results = await accountOpener.openCreditAccounts(accounts, true);
|
|
423959
423979
|
const destDir = path9.resolve(sharedDir, "open-accounts");
|
|
@@ -424068,7 +424088,7 @@ function getRenderer(opts) {
|
|
|
424068
424088
|
var package_default = {
|
|
424069
424089
|
name: "@gearbox-protocol/deploy-tools",
|
|
424070
424090
|
description: "Gearbox deploy tools",
|
|
424071
|
-
version: "5.24.
|
|
424091
|
+
version: "5.24.27",
|
|
424072
424092
|
homepage: "https://gearbox.fi",
|
|
424073
424093
|
keywords: [
|
|
424074
424094
|
"gearbox"
|
|
@@ -424111,7 +424131,7 @@ var package_default = {
|
|
|
424111
424131
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
424112
424132
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
424113
424133
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
424114
|
-
"@gearbox-protocol/sdk": "3.0.0-vfour.
|
|
424134
|
+
"@gearbox-protocol/sdk": "3.0.0-vfour.358",
|
|
424115
424135
|
"@gearbox-protocol/sdk-gov": "^2.37.0",
|
|
424116
424136
|
"@types/lodash-es": "^4.17.12",
|
|
424117
424137
|
"@types/node": "^22.13.14",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/deploy-tools",
|
|
3
3
|
"description": "Gearbox deploy tools",
|
|
4
|
-
"version": "5.24.
|
|
4
|
+
"version": "5.24.27",
|
|
5
5
|
"homepage": "https://gearbox.fi",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"gearbox"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
45
45
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
46
46
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
47
|
-
"@gearbox-protocol/sdk": "3.0.0-vfour.
|
|
47
|
+
"@gearbox-protocol/sdk": "3.0.0-vfour.358",
|
|
48
48
|
"@gearbox-protocol/sdk-gov": "^2.37.0",
|
|
49
49
|
"@types/lodash-es": "^4.17.12",
|
|
50
50
|
"@types/node": "^22.13.14",
|