@gearbox-protocol/deploy-tools 5.24.4 → 5.24.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 +12 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -408685,7 +408685,7 @@ async function loadGovernorBatches(opts) {
|
|
|
408685
408685
|
}
|
|
408686
408686
|
logger2?.debug(`loaded ${batches.size} governor batches, in ${govLogs.length} events`);
|
|
408687
408687
|
let queue = [];
|
|
408688
|
-
const pageSize =
|
|
408688
|
+
const pageSize = 500000n;
|
|
408689
408689
|
for (let start = fromBlock; start <= toBlock; start += pageSize) {
|
|
408690
408690
|
let end = start + pageSize - 1n;
|
|
408691
408691
|
if (end > toBlock) {
|
|
@@ -408693,7 +408693,7 @@ async function loadGovernorBatches(opts) {
|
|
|
408693
408693
|
}
|
|
408694
408694
|
const logs = await client.getLogs({
|
|
408695
408695
|
address: timelock,
|
|
408696
|
-
event: parseAbiItem("event QueueTransaction(
|
|
408696
|
+
event: parseAbiItem("event QueueTransaction(bytes32 indexed txHash, address indexed target, uint256 value, string signature, bytes data, uint256 eta)"),
|
|
408697
408697
|
fromBlock: start,
|
|
408698
408698
|
toBlock: end,
|
|
408699
408699
|
strict: true
|
|
@@ -408718,12 +408718,19 @@ async function loadGovernorBatches(opts) {
|
|
|
408718
408718
|
description: `batch in block ${b.block}`,
|
|
408719
408719
|
type: "governor",
|
|
408720
408720
|
transactions: b.transactions,
|
|
408721
|
-
status: b.status,
|
|
408721
|
+
status: statusOrExpired(b.status, b.transactions[0]?.eta),
|
|
408722
408722
|
blockNumber: b.block,
|
|
408723
408723
|
queueTxHash: b.queueTxHash,
|
|
408724
408724
|
eta: b.transactions[0]?.eta
|
|
408725
408725
|
}));
|
|
408726
408726
|
}
|
|
408727
|
+
function statusOrExpired(status, eta) {
|
|
408728
|
+
const now = Math.floor(Date.now() / 1e3);
|
|
408729
|
+
if (status === "queued" && eta && parseInt(eta, 10) < now) {
|
|
408730
|
+
return "expired";
|
|
408731
|
+
}
|
|
408732
|
+
return status;
|
|
408733
|
+
}
|
|
408727
408734
|
function compareLogs(a, b) {
|
|
408728
408735
|
if (a.blockNumber < b.blockNumber) {
|
|
408729
408736
|
return -1;
|
|
@@ -418949,7 +418956,7 @@ function openAccounts() {
|
|
|
418949
418956
|
}
|
|
418950
418957
|
];
|
|
418951
418958
|
const nexoCMs = sdk.marketRegister.creditManagers.filter(
|
|
418952
|
-
(cm) => cm.name.toLowerCase().includes("
|
|
418959
|
+
(cm) => cm.name.toLowerCase().includes("k3")
|
|
418953
418960
|
);
|
|
418954
418961
|
for (const cm of nexoCMs) {
|
|
418955
418962
|
const cmAddr = cm.creditManager.address;
|
|
@@ -419093,7 +419100,7 @@ function getRenderer(opts) {
|
|
|
419093
419100
|
var package_default = {
|
|
419094
419101
|
name: "@gearbox-protocol/deploy-tools",
|
|
419095
419102
|
description: "Gearbox deploy tools",
|
|
419096
|
-
version: "5.24.
|
|
419103
|
+
version: "5.24.6",
|
|
419097
419104
|
homepage: "https://gearbox.fi",
|
|
419098
419105
|
keywords: [
|
|
419099
419106
|
"gearbox"
|