@gearbox-protocol/deploy-tools 5.3.2 → 5.3.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.
- package/dist/index.mjs +13 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -381671,11 +381671,21 @@ function normalizeTransactions(batch) {
|
|
|
381671
381671
|
if (["queueTransaction", "executeTransaction", "cancelTransaction"].includes(t.contractMethod.name)) {
|
|
381672
381672
|
return normalizeTimelockTx(t);
|
|
381673
381673
|
}
|
|
381674
|
-
|
|
381674
|
+
try {
|
|
381675
|
+
return normalizeDirectTx(t);
|
|
381676
|
+
} catch (e) {
|
|
381677
|
+
throw new Error(`failed to normalize direct tx to ${t.to}/${t.contractMethod.name}: ${e}`);
|
|
381678
|
+
}
|
|
381675
381679
|
});
|
|
381676
381680
|
}
|
|
381677
381681
|
function normalizeDirectTx(t) {
|
|
381678
|
-
const abi32 = [
|
|
381682
|
+
const abi32 = [
|
|
381683
|
+
{
|
|
381684
|
+
type: "function",
|
|
381685
|
+
outputs: [],
|
|
381686
|
+
...t.contractMethod
|
|
381687
|
+
}
|
|
381688
|
+
];
|
|
381679
381689
|
const parameters = t.contractMethod.inputs.map((i) => ({
|
|
381680
381690
|
name: i.name,
|
|
381681
381691
|
type: i.type,
|
|
@@ -397213,7 +397223,7 @@ function getRenderer(opts) {
|
|
|
397213
397223
|
var package_default = {
|
|
397214
397224
|
name: "@gearbox-protocol/deploy-tools",
|
|
397215
397225
|
description: "Gearbox deploy tools",
|
|
397216
|
-
version: "5.3.
|
|
397226
|
+
version: "5.3.4",
|
|
397217
397227
|
homepage: "https://gearbox.fi",
|
|
397218
397228
|
keywords: [
|
|
397219
397229
|
"gearbox"
|