@gearbox-protocol/deploy-tools 4.15.5 → 4.15.6
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 +104 -10
- 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",
|
|
@@ -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
|
}
|
|
@@ -353434,7 +353522,7 @@ function getRenderer(opts) {
|
|
|
353434
353522
|
}
|
|
353435
353523
|
|
|
353436
353524
|
// package.json
|
|
353437
|
-
var version3 = "4.15.
|
|
353525
|
+
var version3 = "4.15.6";
|
|
353438
353526
|
|
|
353439
353527
|
// src/version.ts
|
|
353440
353528
|
var version_default = version3;
|
|
@@ -353443,7 +353531,9 @@ var version_default = version3;
|
|
|
353443
353531
|
function parse() {
|
|
353444
353532
|
return new Command().name("parse").description(
|
|
353445
353533
|
"displays protocol updates from safe multisig or from batch json files"
|
|
353446
|
-
).addOption(
|
|
353534
|
+
).addOption(
|
|
353535
|
+
new Option("--rpc-url <url>", "rpc provider url").default("https://rpc.ankr.com/eth").env("RPC_URL")
|
|
353536
|
+
).addOption(
|
|
353447
353537
|
new Option(
|
|
353448
353538
|
"--batch-dir [dir]",
|
|
353449
353539
|
"Directory (can be recursive) with batch and meta jsons"
|
|
@@ -353898,7 +353988,9 @@ import { readFile as readFile8 } from "node:fs/promises";
|
|
|
353898
353988
|
function verifyEtherscan() {
|
|
353899
353989
|
return new Command().name("verify-etherscan").description(
|
|
353900
353990
|
"performs bulk verification of gearbox contracts using etherscan"
|
|
353901
|
-
).addOption(
|
|
353991
|
+
).addOption(
|
|
353992
|
+
new Option("--rpc-url <url>", "rpc provider url").default("https://rpc.ankr.com/eth").env("RPC_URL")
|
|
353993
|
+
).addOption(
|
|
353902
353994
|
new Option(
|
|
353903
353995
|
"--addresses-file [json]",
|
|
353904
353996
|
"json file where keys are addresses to verify, e.g. gearbox contracts tree"
|
|
@@ -353954,7 +354046,9 @@ function warpTime() {
|
|
|
353954
354046
|
|
|
353955
354047
|
// src/commands/zero-lt.ts
|
|
353956
354048
|
function zeroLT() {
|
|
353957
|
-
return new Command().name("zero-lt").description("sets LTs to zero on credit managers").addOption(
|
|
354049
|
+
return new Command().name("zero-lt").description("sets LTs to zero on credit managers").addOption(
|
|
354050
|
+
new Option("--anvil-url <url>", "anvil rpc url").default("http://127.0.0.1:8545").env("ANVIL_URL")
|
|
354051
|
+
).addOption(new Option("--cm [address]", "Single credit manager option")).action(async (opts) => {
|
|
353958
354052
|
const zlt = new ZeroLT(opts);
|
|
353959
354053
|
await zlt.setLtZero(opts);
|
|
353960
354054
|
});
|
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.6",
|
|
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",
|