@gearbox-protocol/deploy-tools 4.15.5 → 4.15.7
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 +107 -14
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -326804,6 +326804,84 @@ var _abi45 = [
|
|
|
326804
326804
|
],
|
|
326805
326805
|
stateMutability: "nonpayable"
|
|
326806
326806
|
},
|
|
326807
|
+
{
|
|
326808
|
+
type: "function",
|
|
326809
|
+
name: "findOneTokenDiffPath",
|
|
326810
|
+
inputs: [
|
|
326811
|
+
{
|
|
326812
|
+
name: "tokenIn",
|
|
326813
|
+
type: "address",
|
|
326814
|
+
internalType: "address"
|
|
326815
|
+
},
|
|
326816
|
+
{
|
|
326817
|
+
name: "expectedBalance",
|
|
326818
|
+
type: "uint256",
|
|
326819
|
+
internalType: "uint256"
|
|
326820
|
+
},
|
|
326821
|
+
{
|
|
326822
|
+
name: "leftoverAmount",
|
|
326823
|
+
type: "uint256",
|
|
326824
|
+
internalType: "uint256"
|
|
326825
|
+
},
|
|
326826
|
+
{
|
|
326827
|
+
name: "tokenOut",
|
|
326828
|
+
type: "address",
|
|
326829
|
+
internalType: "address"
|
|
326830
|
+
},
|
|
326831
|
+
{
|
|
326832
|
+
name: "creditAccount",
|
|
326833
|
+
type: "address",
|
|
326834
|
+
internalType: "address"
|
|
326835
|
+
},
|
|
326836
|
+
{
|
|
326837
|
+
name: "connectors",
|
|
326838
|
+
type: "address[]",
|
|
326839
|
+
internalType: "address[]"
|
|
326840
|
+
},
|
|
326841
|
+
{
|
|
326842
|
+
name: "slippage",
|
|
326843
|
+
type: "uint256",
|
|
326844
|
+
internalType: "uint256"
|
|
326845
|
+
}
|
|
326846
|
+
],
|
|
326847
|
+
outputs: [
|
|
326848
|
+
{
|
|
326849
|
+
name: "",
|
|
326850
|
+
type: "tuple",
|
|
326851
|
+
internalType: "struct RouterResult",
|
|
326852
|
+
components: [
|
|
326853
|
+
{
|
|
326854
|
+
name: "amount",
|
|
326855
|
+
type: "uint256",
|
|
326856
|
+
internalType: "uint256"
|
|
326857
|
+
},
|
|
326858
|
+
{
|
|
326859
|
+
name: "minAmount",
|
|
326860
|
+
type: "uint256",
|
|
326861
|
+
internalType: "uint256"
|
|
326862
|
+
},
|
|
326863
|
+
{
|
|
326864
|
+
name: "calls",
|
|
326865
|
+
type: "tuple[]",
|
|
326866
|
+
internalType: "struct MultiCall[]",
|
|
326867
|
+
components: [
|
|
326868
|
+
{
|
|
326869
|
+
name: "target",
|
|
326870
|
+
type: "address",
|
|
326871
|
+
internalType: "address"
|
|
326872
|
+
},
|
|
326873
|
+
{
|
|
326874
|
+
name: "callData",
|
|
326875
|
+
type: "bytes",
|
|
326876
|
+
internalType: "bytes"
|
|
326877
|
+
}
|
|
326878
|
+
]
|
|
326879
|
+
}
|
|
326880
|
+
]
|
|
326881
|
+
}
|
|
326882
|
+
],
|
|
326883
|
+
stateMutability: "nonpayable"
|
|
326884
|
+
},
|
|
326807
326885
|
{
|
|
326808
326886
|
type: "function",
|
|
326809
326887
|
name: "findOneTokenPath",
|
|
@@ -327023,6 +327101,19 @@ var _abi45 = [
|
|
|
327023
327101
|
],
|
|
327024
327102
|
stateMutability: "view"
|
|
327025
327103
|
},
|
|
327104
|
+
{
|
|
327105
|
+
type: "function",
|
|
327106
|
+
name: "maxComponentId",
|
|
327107
|
+
inputs: [],
|
|
327108
|
+
outputs: [
|
|
327109
|
+
{
|
|
327110
|
+
name: "",
|
|
327111
|
+
type: "uint8",
|
|
327112
|
+
internalType: "uint8"
|
|
327113
|
+
}
|
|
327114
|
+
],
|
|
327115
|
+
stateMutability: "view"
|
|
327116
|
+
},
|
|
327026
327117
|
{
|
|
327027
327118
|
type: "function",
|
|
327028
327119
|
name: "migrateRouterComponents",
|
|
@@ -352210,7 +352301,7 @@ var ZeroLT = class extends ProviderBase {
|
|
|
352210
352301
|
} else {
|
|
352211
352302
|
throw new Error(`acl not loaded: ${aclAddr.reason}`);
|
|
352212
352303
|
}
|
|
352213
|
-
this.#configurator = await this
|
|
352304
|
+
this.#configurator = await this.acl.owner();
|
|
352214
352305
|
this.logger?.debug("configurator: ", this.#configurator);
|
|
352215
352306
|
const [cmV2s, cmV3s] = await this.#loadCMs(opts.cm);
|
|
352216
352307
|
this.logger.debug(`managers: ${cmV2s.length} v2, ${cmV3s.length} v3`);
|
|
@@ -352297,8 +352388,8 @@ var ZeroLT = class extends ProviderBase {
|
|
|
352297
352388
|
await stopImpersonate(this.provider, cm.creditConfigurator);
|
|
352298
352389
|
await stopImpersonate(this.provider, this.configurator);
|
|
352299
352390
|
logger2.trace("zero lt self-checking");
|
|
352300
|
-
const
|
|
352301
|
-
if (
|
|
352391
|
+
const cms = await this.dc300.getCreditManagerData(cm.addr);
|
|
352392
|
+
if (cms.liquidationThresholds.some((lt) => lt > 1)) {
|
|
352302
352393
|
throw new Error("LT is not 1");
|
|
352303
352394
|
}
|
|
352304
352395
|
logger2.info("zero lt OK for CM " + cm.addr);
|
|
@@ -352329,14 +352420,11 @@ var ZeroLT = class extends ProviderBase {
|
|
|
352329
352420
|
}
|
|
352330
352421
|
};
|
|
352331
352422
|
|
|
352332
|
-
// src/commands/options.ts
|
|
352333
|
-
function RpcURL(local) {
|
|
352334
|
-
return new Option("--rpc-url <url>", "rpc provider url").default(local ? "http://127.0.0.1:8545" : "https://rpc.ankr.com/eth").env("RPC_URL");
|
|
352335
|
-
}
|
|
352336
|
-
|
|
352337
352423
|
// src/commands/address-tree.ts
|
|
352338
352424
|
function addressTree() {
|
|
352339
|
-
return new Command().name("address-tree").description("builds gearbox addresses tree").addOption(
|
|
352425
|
+
return new Command().name("address-tree").description("builds gearbox addresses tree").addOption(
|
|
352426
|
+
new Option("--rpc-url <url>", "rpc provider url").default("https://rpc.ankr.com/eth").env("RPC_URL")
|
|
352427
|
+
).action(async (opts) => {
|
|
352340
352428
|
await new GearboxAddressTree(opts).build();
|
|
352341
352429
|
});
|
|
352342
352430
|
}
|
|
@@ -352376,7 +352464,6 @@ function launchForks() {
|
|
|
352376
352464
|
Authorization: `Bearer ${apiKey}`
|
|
352377
352465
|
},
|
|
352378
352466
|
body: JSON.stringify(r)
|
|
352379
|
-
}).catch(() => {
|
|
352380
352467
|
});
|
|
352381
352468
|
});
|
|
352382
352469
|
process.exit(0);
|
|
@@ -353434,7 +353521,7 @@ function getRenderer(opts) {
|
|
|
353434
353521
|
}
|
|
353435
353522
|
|
|
353436
353523
|
// package.json
|
|
353437
|
-
var version3 = "4.15.
|
|
353524
|
+
var version3 = "4.15.7";
|
|
353438
353525
|
|
|
353439
353526
|
// src/version.ts
|
|
353440
353527
|
var version_default = version3;
|
|
@@ -353443,7 +353530,9 @@ var version_default = version3;
|
|
|
353443
353530
|
function parse() {
|
|
353444
353531
|
return new Command().name("parse").description(
|
|
353445
353532
|
"displays protocol updates from safe multisig or from batch json files"
|
|
353446
|
-
).addOption(
|
|
353533
|
+
).addOption(
|
|
353534
|
+
new Option("--rpc-url <url>", "rpc provider url").default("https://rpc.ankr.com/eth").env("RPC_URL")
|
|
353535
|
+
).addOption(
|
|
353447
353536
|
new Option(
|
|
353448
353537
|
"--batch-dir [dir]",
|
|
353449
353538
|
"Directory (can be recursive) with batch and meta jsons"
|
|
@@ -353898,7 +353987,9 @@ import { readFile as readFile8 } from "node:fs/promises";
|
|
|
353898
353987
|
function verifyEtherscan() {
|
|
353899
353988
|
return new Command().name("verify-etherscan").description(
|
|
353900
353989
|
"performs bulk verification of gearbox contracts using etherscan"
|
|
353901
|
-
).addOption(
|
|
353990
|
+
).addOption(
|
|
353991
|
+
new Option("--rpc-url <url>", "rpc provider url").default("https://rpc.ankr.com/eth").env("RPC_URL")
|
|
353992
|
+
).addOption(
|
|
353902
353993
|
new Option(
|
|
353903
353994
|
"--addresses-file [json]",
|
|
353904
353995
|
"json file where keys are addresses to verify, e.g. gearbox contracts tree"
|
|
@@ -353954,7 +354045,9 @@ function warpTime() {
|
|
|
353954
354045
|
|
|
353955
354046
|
// src/commands/zero-lt.ts
|
|
353956
354047
|
function zeroLT() {
|
|
353957
|
-
return new Command().name("zero-lt").description("sets LTs to zero on credit managers").addOption(
|
|
354048
|
+
return new Command().name("zero-lt").description("sets LTs to zero on credit managers").addOption(
|
|
354049
|
+
new Option("--anvil-url <url>", "anvil rpc url").default("http://127.0.0.1:8545").env("ANVIL_URL")
|
|
354050
|
+
).addOption(new Option("--cm [address]", "Single credit manager option")).action(async (opts) => {
|
|
353958
354051
|
const zlt = new ZeroLT(opts);
|
|
353959
354052
|
await zlt.setLtZero(opts);
|
|
353960
354053
|
});
|
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": "4.15.
|
|
4
|
+
"version": "4.15.7",
|
|
5
5
|
"homepage": "https://gearbox.fi",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"gearbox"
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
45
45
|
"@gearbox-protocol/sdk-gov": "^1.42.0",
|
|
46
46
|
"@types/lodash-es": "^4.17.12",
|
|
47
|
-
"@types/node": "^20.11.
|
|
48
|
-
"@types/react": "^18.2.
|
|
49
|
-
"@types/react-dom": "^18.2.
|
|
47
|
+
"@types/node": "^20.11.25",
|
|
48
|
+
"@types/react": "^18.2.64",
|
|
49
|
+
"@types/react-dom": "^18.2.21",
|
|
50
50
|
"abitype": "^0.10.1",
|
|
51
51
|
"chalk": "^5.3.0",
|
|
52
52
|
"commander": "^12.0.0",
|