@gearbox-protocol/deploy-tools 5.70.0 → 5.70.2
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 +219 -73
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -4480,7 +4480,7 @@ var init_size = __esm({
|
|
|
4480
4480
|
var version2;
|
|
4481
4481
|
var init_version2 = __esm({
|
|
4482
4482
|
"../../node_modules/viem/_esm/errors/version.js"() {
|
|
4483
|
-
version2 = "2.45.
|
|
4483
|
+
version2 = "2.45.3";
|
|
4484
4484
|
}
|
|
4485
4485
|
});
|
|
4486
4486
|
|
|
@@ -12178,6 +12178,23 @@ var init_abis = __esm({
|
|
|
12178
12178
|
stateMutability: "view",
|
|
12179
12179
|
type: "function"
|
|
12180
12180
|
},
|
|
12181
|
+
{
|
|
12182
|
+
inputs: [
|
|
12183
|
+
{
|
|
12184
|
+
name: "addr",
|
|
12185
|
+
type: "address"
|
|
12186
|
+
}
|
|
12187
|
+
],
|
|
12188
|
+
name: "getEthBalance",
|
|
12189
|
+
outputs: [
|
|
12190
|
+
{
|
|
12191
|
+
name: "balance",
|
|
12192
|
+
type: "uint256"
|
|
12193
|
+
}
|
|
12194
|
+
],
|
|
12195
|
+
stateMutability: "view",
|
|
12196
|
+
type: "function"
|
|
12197
|
+
},
|
|
12181
12198
|
{
|
|
12182
12199
|
inputs: [],
|
|
12183
12200
|
name: "getCurrentBlockTimestamp",
|
|
@@ -24229,11 +24246,12 @@ var require_browser = __commonJS({
|
|
|
24229
24246
|
var require_has_flag = __commonJS({
|
|
24230
24247
|
"../../node_modules/has-flag/index.js"(exports2, module2) {
|
|
24231
24248
|
"use strict";
|
|
24232
|
-
module2.exports = (flag, argv
|
|
24249
|
+
module2.exports = (flag, argv) => {
|
|
24250
|
+
argv = argv || process.argv;
|
|
24233
24251
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
24234
|
-
const
|
|
24235
|
-
const
|
|
24236
|
-
return
|
|
24252
|
+
const pos = argv.indexOf(prefix + flag);
|
|
24253
|
+
const terminatorPos = argv.indexOf("--");
|
|
24254
|
+
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
24237
24255
|
};
|
|
24238
24256
|
}
|
|
24239
24257
|
});
|
|
@@ -24243,23 +24261,16 @@ var require_supports_color = __commonJS({
|
|
|
24243
24261
|
"../../node_modules/supports-color/index.js"(exports2, module2) {
|
|
24244
24262
|
"use strict";
|
|
24245
24263
|
var os2 = __require("os");
|
|
24246
|
-
var tty2 = __require("tty");
|
|
24247
24264
|
var hasFlag2 = require_has_flag();
|
|
24248
|
-
var
|
|
24265
|
+
var env2 = process.env;
|
|
24249
24266
|
var forceColor;
|
|
24250
|
-
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false")
|
|
24251
|
-
forceColor =
|
|
24267
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false")) {
|
|
24268
|
+
forceColor = false;
|
|
24252
24269
|
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
24253
|
-
forceColor =
|
|
24270
|
+
forceColor = true;
|
|
24254
24271
|
}
|
|
24255
24272
|
if ("FORCE_COLOR" in env2) {
|
|
24256
|
-
|
|
24257
|
-
forceColor = 1;
|
|
24258
|
-
} else if (env2.FORCE_COLOR === "false") {
|
|
24259
|
-
forceColor = 0;
|
|
24260
|
-
} else {
|
|
24261
|
-
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
24262
|
-
}
|
|
24273
|
+
forceColor = env2.FORCE_COLOR.length === 0 || parseInt(env2.FORCE_COLOR, 10) !== 0;
|
|
24263
24274
|
}
|
|
24264
24275
|
function translateLevel2(level) {
|
|
24265
24276
|
if (level === 0) {
|
|
@@ -24272,8 +24283,8 @@ var require_supports_color = __commonJS({
|
|
|
24272
24283
|
has16m: level >= 3
|
|
24273
24284
|
};
|
|
24274
24285
|
}
|
|
24275
|
-
function supportsColor2(
|
|
24276
|
-
if (forceColor ===
|
|
24286
|
+
function supportsColor2(stream) {
|
|
24287
|
+
if (forceColor === false) {
|
|
24277
24288
|
return 0;
|
|
24278
24289
|
}
|
|
24279
24290
|
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
@@ -24282,22 +24293,19 @@ var require_supports_color = __commonJS({
|
|
|
24282
24293
|
if (hasFlag2("color=256")) {
|
|
24283
24294
|
return 2;
|
|
24284
24295
|
}
|
|
24285
|
-
if (
|
|
24296
|
+
if (stream && !stream.isTTY && forceColor !== true) {
|
|
24286
24297
|
return 0;
|
|
24287
24298
|
}
|
|
24288
|
-
const min = forceColor
|
|
24289
|
-
if (env2.TERM === "dumb") {
|
|
24290
|
-
return min;
|
|
24291
|
-
}
|
|
24299
|
+
const min = forceColor ? 1 : 0;
|
|
24292
24300
|
if (process.platform === "win32") {
|
|
24293
24301
|
const osRelease = os2.release().split(".");
|
|
24294
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
24302
|
+
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
24295
24303
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
24296
24304
|
}
|
|
24297
24305
|
return 1;
|
|
24298
24306
|
}
|
|
24299
24307
|
if ("CI" in env2) {
|
|
24300
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"
|
|
24308
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign3) => sign3 in env2) || env2.CI_NAME === "codeship") {
|
|
24301
24309
|
return 1;
|
|
24302
24310
|
}
|
|
24303
24311
|
return min;
|
|
@@ -24326,16 +24334,19 @@ var require_supports_color = __commonJS({
|
|
|
24326
24334
|
if ("COLORTERM" in env2) {
|
|
24327
24335
|
return 1;
|
|
24328
24336
|
}
|
|
24337
|
+
if (env2.TERM === "dumb") {
|
|
24338
|
+
return min;
|
|
24339
|
+
}
|
|
24329
24340
|
return min;
|
|
24330
24341
|
}
|
|
24331
24342
|
function getSupportLevel(stream) {
|
|
24332
|
-
const level = supportsColor2(stream
|
|
24343
|
+
const level = supportsColor2(stream);
|
|
24333
24344
|
return translateLevel2(level);
|
|
24334
24345
|
}
|
|
24335
24346
|
module2.exports = {
|
|
24336
24347
|
supportsColor: getSupportLevel,
|
|
24337
|
-
stdout:
|
|
24338
|
-
stderr:
|
|
24348
|
+
stdout: getSupportLevel(process.stdout),
|
|
24349
|
+
stderr: getSupportLevel(process.stderr)
|
|
24339
24350
|
};
|
|
24340
24351
|
}
|
|
24341
24352
|
});
|
|
@@ -110128,12 +110139,12 @@ var require_utils9 = __commonJS({
|
|
|
110128
110139
|
return hex3.length & 1 ? `0${hex3}` : hex3;
|
|
110129
110140
|
}
|
|
110130
110141
|
exports2.numberToHexUnpadded = numberToHexUnpadded3;
|
|
110131
|
-
function
|
|
110142
|
+
function hexToNumber5(hex3) {
|
|
110132
110143
|
if (typeof hex3 !== "string")
|
|
110133
110144
|
throw new Error("hex string expected, got " + typeof hex3);
|
|
110134
110145
|
return BigInt(hex3 === "" ? "0" : `0x${hex3}`);
|
|
110135
110146
|
}
|
|
110136
|
-
exports2.hexToNumber =
|
|
110147
|
+
exports2.hexToNumber = hexToNumber5;
|
|
110137
110148
|
function hexToBytes4(hex3) {
|
|
110138
110149
|
if (typeof hex3 !== "string")
|
|
110139
110150
|
throw new Error("hex string expected, got " + typeof hex3);
|
|
@@ -110153,13 +110164,13 @@ var require_utils9 = __commonJS({
|
|
|
110153
110164
|
}
|
|
110154
110165
|
exports2.hexToBytes = hexToBytes4;
|
|
110155
110166
|
function bytesToNumberBE3(bytes) {
|
|
110156
|
-
return
|
|
110167
|
+
return hexToNumber5(bytesToHex4(bytes));
|
|
110157
110168
|
}
|
|
110158
110169
|
exports2.bytesToNumberBE = bytesToNumberBE3;
|
|
110159
110170
|
function bytesToNumberLE3(bytes) {
|
|
110160
110171
|
if (!u8a(bytes))
|
|
110161
110172
|
throw new Error("Uint8Array expected");
|
|
110162
|
-
return
|
|
110173
|
+
return hexToNumber5(bytesToHex4(Uint8Array.from(bytes).reverse()));
|
|
110163
110174
|
}
|
|
110164
110175
|
exports2.bytesToNumberLE = bytesToNumberLE3;
|
|
110165
110176
|
function numberToBytesBE3(n, len) {
|
|
@@ -142230,8 +142241,18 @@ var require_sonic_boom = __commonJS({
|
|
|
142230
142241
|
this.flush = flush;
|
|
142231
142242
|
this.flushSync = flushSync;
|
|
142232
142243
|
this._actualWrite = actualWrite;
|
|
142233
|
-
fsWriteSync = () =>
|
|
142234
|
-
|
|
142244
|
+
fsWriteSync = () => {
|
|
142245
|
+
if (Buffer.isBuffer(this._writingBuf)) {
|
|
142246
|
+
return fs3.writeSync(this.fd, this._writingBuf);
|
|
142247
|
+
}
|
|
142248
|
+
return fs3.writeSync(this.fd, this._writingBuf, "utf8");
|
|
142249
|
+
};
|
|
142250
|
+
fsWrite = () => {
|
|
142251
|
+
if (Buffer.isBuffer(this._writingBuf)) {
|
|
142252
|
+
return fs3.write(this.fd, this._writingBuf, this.release);
|
|
142253
|
+
}
|
|
142254
|
+
return fs3.write(this.fd, this._writingBuf, "utf8", this.release);
|
|
142255
|
+
};
|
|
142235
142256
|
} else {
|
|
142236
142257
|
throw new Error(`SonicBoom supports "${kContentModeUtf8}" and "${kContentModeBuffer}", but passed ${contentMode}`);
|
|
142237
142258
|
}
|
|
@@ -142326,11 +142347,11 @@ var require_sonic_boom = __commonJS({
|
|
|
142326
142347
|
}
|
|
142327
142348
|
}
|
|
142328
142349
|
function releaseWritingBuf(writingBuf, len, n) {
|
|
142329
|
-
if (typeof writingBuf === "string"
|
|
142330
|
-
|
|
142350
|
+
if (typeof writingBuf === "string") {
|
|
142351
|
+
writingBuf = Buffer.from(writingBuf);
|
|
142331
142352
|
}
|
|
142332
142353
|
len = Math.max(len - n, 0);
|
|
142333
|
-
writingBuf = writingBuf.
|
|
142354
|
+
writingBuf = writingBuf.subarray(n);
|
|
142334
142355
|
return { writingBuf, len };
|
|
142335
142356
|
}
|
|
142336
142357
|
function emitDrain(sonic2) {
|
|
@@ -142353,14 +142374,16 @@ var require_sonic_boom = __commonJS({
|
|
|
142353
142374
|
if (this.destroyed) {
|
|
142354
142375
|
throw new Error("SonicBoom destroyed");
|
|
142355
142376
|
}
|
|
142356
|
-
|
|
142377
|
+
data = "" + data;
|
|
142378
|
+
const dataLen = Buffer.byteLength(data);
|
|
142379
|
+
const len = this._len + dataLen;
|
|
142357
142380
|
const bufs = this._bufs;
|
|
142358
142381
|
if (this.maxLength && len > this.maxLength) {
|
|
142359
142382
|
this.emit("drop", data);
|
|
142360
142383
|
return this._len < this._hwm;
|
|
142361
142384
|
}
|
|
142362
|
-
if (bufs.length === 0 || bufs[bufs.length - 1]
|
|
142363
|
-
bufs.push(
|
|
142385
|
+
if (bufs.length === 0 || Buffer.byteLength(bufs[bufs.length - 1]) + dataLen > this.maxWrite) {
|
|
142386
|
+
bufs.push(data);
|
|
142364
142387
|
} else {
|
|
142365
142388
|
bufs[bufs.length - 1] += data;
|
|
142366
142389
|
}
|
|
@@ -142545,12 +142568,12 @@ var require_sonic_boom = __commonJS({
|
|
|
142545
142568
|
this._writingBuf = "";
|
|
142546
142569
|
}
|
|
142547
142570
|
let buf = "";
|
|
142548
|
-
while (this._bufs.length || buf) {
|
|
142571
|
+
while (this._bufs.length || buf.length) {
|
|
142549
142572
|
if (buf.length <= 0) {
|
|
142550
142573
|
buf = this._bufs[0];
|
|
142551
142574
|
}
|
|
142552
142575
|
try {
|
|
142553
|
-
const n = fs3.writeSync(this.fd, buf, "utf8");
|
|
142576
|
+
const n = Buffer.isBuffer(buf) ? fs3.writeSync(this.fd, buf) : fs3.writeSync(this.fd, buf, "utf8");
|
|
142554
142577
|
const releasedBufObj = releaseWritingBuf(buf, this._len, n);
|
|
142555
142578
|
buf = releasedBufObj.writingBuf;
|
|
142556
142579
|
this._len = releasedBufObj.len;
|
|
@@ -142612,16 +142635,16 @@ var require_sonic_boom = __commonJS({
|
|
|
142612
142635
|
function actualWrite() {
|
|
142613
142636
|
const release = this.release;
|
|
142614
142637
|
this._writing = true;
|
|
142615
|
-
this._writingBuf = this._writingBuf
|
|
142638
|
+
this._writingBuf = this._writingBuf.length ? this._writingBuf : this._bufs.shift() || "";
|
|
142616
142639
|
if (this.sync) {
|
|
142617
142640
|
try {
|
|
142618
|
-
const written = fs3.writeSync(this.fd, this._writingBuf, "utf8");
|
|
142641
|
+
const written = Buffer.isBuffer(this._writingBuf) ? fs3.writeSync(this.fd, this._writingBuf) : fs3.writeSync(this.fd, this._writingBuf, "utf8");
|
|
142619
142642
|
release(null, written);
|
|
142620
142643
|
} catch (err) {
|
|
142621
142644
|
release(err);
|
|
142622
142645
|
}
|
|
142623
142646
|
} else {
|
|
142624
|
-
fs3.write(this.fd, this._writingBuf,
|
|
142647
|
+
fs3.write(this.fd, this._writingBuf, release);
|
|
142625
142648
|
}
|
|
142626
142649
|
}
|
|
142627
142650
|
function actualWriteBuffer() {
|
|
@@ -143332,8 +143355,10 @@ var require_transport = __commonJS({
|
|
|
143332
143355
|
"../../node_modules/pino/lib/transport.js"(exports2, module2) {
|
|
143333
143356
|
"use strict";
|
|
143334
143357
|
var { createRequire } = __require("module");
|
|
143358
|
+
var { existsSync: existsSync2 } = __require("node:fs");
|
|
143335
143359
|
var getCallers = require_caller();
|
|
143336
143360
|
var { join: join3, isAbsolute, sep } = __require("node:path");
|
|
143361
|
+
var { fileURLToPath } = __require("node:url");
|
|
143337
143362
|
var sleep2 = require_atomic_sleep();
|
|
143338
143363
|
var onExit = require_on_exit_leak_free();
|
|
143339
143364
|
var ThreadStream = require_thread_stream();
|
|
@@ -143357,6 +143382,63 @@ var require_transport = __commonJS({
|
|
|
143357
143382
|
}
|
|
143358
143383
|
return false;
|
|
143359
143384
|
}
|
|
143385
|
+
function sanitizeNodeOptions(nodeOptions) {
|
|
143386
|
+
const tokens = nodeOptions.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g);
|
|
143387
|
+
if (!tokens) {
|
|
143388
|
+
return nodeOptions;
|
|
143389
|
+
}
|
|
143390
|
+
const sanitized = [];
|
|
143391
|
+
let changed = false;
|
|
143392
|
+
for (let i = 0; i < tokens.length; i++) {
|
|
143393
|
+
const token = tokens[i];
|
|
143394
|
+
if (token === "--require" || token === "-r" || token === "--import") {
|
|
143395
|
+
const next = tokens[i + 1];
|
|
143396
|
+
if (next && shouldDropPreload(next)) {
|
|
143397
|
+
changed = true;
|
|
143398
|
+
i++;
|
|
143399
|
+
continue;
|
|
143400
|
+
}
|
|
143401
|
+
sanitized.push(token);
|
|
143402
|
+
if (next) {
|
|
143403
|
+
sanitized.push(next);
|
|
143404
|
+
i++;
|
|
143405
|
+
}
|
|
143406
|
+
continue;
|
|
143407
|
+
}
|
|
143408
|
+
if (token.startsWith("--require=") || token.startsWith("-r=") || token.startsWith("--import=")) {
|
|
143409
|
+
const value = token.slice(token.indexOf("=") + 1);
|
|
143410
|
+
if (shouldDropPreload(value)) {
|
|
143411
|
+
changed = true;
|
|
143412
|
+
continue;
|
|
143413
|
+
}
|
|
143414
|
+
}
|
|
143415
|
+
sanitized.push(token);
|
|
143416
|
+
}
|
|
143417
|
+
return changed ? sanitized.join(" ") : nodeOptions;
|
|
143418
|
+
}
|
|
143419
|
+
function shouldDropPreload(value) {
|
|
143420
|
+
const unquoted = stripQuotes(value);
|
|
143421
|
+
if (!unquoted) {
|
|
143422
|
+
return false;
|
|
143423
|
+
}
|
|
143424
|
+
let path9 = unquoted;
|
|
143425
|
+
if (path9.startsWith("file://")) {
|
|
143426
|
+
try {
|
|
143427
|
+
path9 = fileURLToPath(path9);
|
|
143428
|
+
} catch {
|
|
143429
|
+
return false;
|
|
143430
|
+
}
|
|
143431
|
+
}
|
|
143432
|
+
return isAbsolute(path9) && !existsSync2(path9);
|
|
143433
|
+
}
|
|
143434
|
+
function stripQuotes(value) {
|
|
143435
|
+
const first = value[0];
|
|
143436
|
+
const last = value[value.length - 1];
|
|
143437
|
+
if (first === '"' && last === '"' || first === "'" && last === "'") {
|
|
143438
|
+
return value.slice(1, -1);
|
|
143439
|
+
}
|
|
143440
|
+
return value;
|
|
143441
|
+
}
|
|
143360
143442
|
function buildStream(filename, workerData, workerOpts, sync, name) {
|
|
143361
143443
|
if (!workerOpts.execArgv && hasPreloadFlags() && __require.main === void 0) {
|
|
143362
143444
|
workerOpts = {
|
|
@@ -143364,6 +143446,18 @@ var require_transport = __commonJS({
|
|
|
143364
143446
|
execArgv: []
|
|
143365
143447
|
};
|
|
143366
143448
|
}
|
|
143449
|
+
if (!workerOpts.env && process.env.NODE_OPTIONS) {
|
|
143450
|
+
const nodeOptions = sanitizeNodeOptions(process.env.NODE_OPTIONS);
|
|
143451
|
+
if (nodeOptions !== process.env.NODE_OPTIONS) {
|
|
143452
|
+
workerOpts = {
|
|
143453
|
+
...workerOpts,
|
|
143454
|
+
env: {
|
|
143455
|
+
...process.env,
|
|
143456
|
+
NODE_OPTIONS: nodeOptions
|
|
143457
|
+
}
|
|
143458
|
+
};
|
|
143459
|
+
}
|
|
143460
|
+
}
|
|
143367
143461
|
workerOpts = { ...workerOpts, name };
|
|
143368
143462
|
const stream = new ThreadStream({
|
|
143369
143463
|
filename,
|
|
@@ -144027,7 +144121,7 @@ var require_levels = __commonJS({
|
|
|
144027
144121
|
var require_meta = __commonJS({
|
|
144028
144122
|
"../../node_modules/pino/lib/meta.js"(exports2, module2) {
|
|
144029
144123
|
"use strict";
|
|
144030
|
-
module2.exports = { version: "10.3.
|
|
144124
|
+
module2.exports = { version: "10.3.1" };
|
|
144031
144125
|
}
|
|
144032
144126
|
});
|
|
144033
144127
|
|
|
@@ -184640,17 +184734,17 @@ function numberToHexUnpadded2(num2) {
|
|
|
184640
184734
|
const hex3 = num2.toString(16);
|
|
184641
184735
|
return hex3.length & 1 ? "0" + hex3 : hex3;
|
|
184642
184736
|
}
|
|
184643
|
-
function
|
|
184737
|
+
function hexToNumber4(hex3) {
|
|
184644
184738
|
if (typeof hex3 !== "string")
|
|
184645
184739
|
throw new Error("hex string expected, got " + typeof hex3);
|
|
184646
184740
|
return hex3 === "" ? _0n7 : BigInt("0x" + hex3);
|
|
184647
184741
|
}
|
|
184648
184742
|
function bytesToNumberBE2(bytes) {
|
|
184649
|
-
return
|
|
184743
|
+
return hexToNumber4(bytesToHex2(bytes));
|
|
184650
184744
|
}
|
|
184651
184745
|
function bytesToNumberLE2(bytes) {
|
|
184652
184746
|
abytes(bytes);
|
|
184653
|
-
return
|
|
184747
|
+
return hexToNumber4(bytesToHex2(Uint8Array.from(bytes).reverse()));
|
|
184654
184748
|
}
|
|
184655
184749
|
function numberToBytesBE2(n, len) {
|
|
184656
184750
|
return hexToBytes2(n.toString(16).padStart(len * 2, "0"));
|
|
@@ -200376,12 +200470,12 @@ var require_utils18 = __commonJS({
|
|
|
200376
200470
|
return hex3.length & 1 ? `0${hex3}` : hex3;
|
|
200377
200471
|
}
|
|
200378
200472
|
exports2.numberToHexUnpadded = numberToHexUnpadded3;
|
|
200379
|
-
function
|
|
200473
|
+
function hexToNumber5(hex3) {
|
|
200380
200474
|
if (typeof hex3 !== "string")
|
|
200381
200475
|
throw new Error("hex string expected, got " + typeof hex3);
|
|
200382
200476
|
return BigInt(hex3 === "" ? "0" : `0x${hex3}`);
|
|
200383
200477
|
}
|
|
200384
|
-
exports2.hexToNumber =
|
|
200478
|
+
exports2.hexToNumber = hexToNumber5;
|
|
200385
200479
|
function hexToBytes4(hex3) {
|
|
200386
200480
|
if (typeof hex3 !== "string")
|
|
200387
200481
|
throw new Error("hex string expected, got " + typeof hex3);
|
|
@@ -200401,13 +200495,13 @@ var require_utils18 = __commonJS({
|
|
|
200401
200495
|
}
|
|
200402
200496
|
exports2.hexToBytes = hexToBytes4;
|
|
200403
200497
|
function bytesToNumberBE3(bytes) {
|
|
200404
|
-
return
|
|
200498
|
+
return hexToNumber5(bytesToHex4(bytes));
|
|
200405
200499
|
}
|
|
200406
200500
|
exports2.bytesToNumberBE = bytesToNumberBE3;
|
|
200407
200501
|
function bytesToNumberLE3(bytes) {
|
|
200408
200502
|
if (!u8a(bytes))
|
|
200409
200503
|
throw new Error("Uint8Array expected");
|
|
200410
|
-
return
|
|
200504
|
+
return hexToNumber5(bytesToHex4(Uint8Array.from(bytes).reverse()));
|
|
200411
200505
|
}
|
|
200412
200506
|
exports2.bytesToNumberLE = bytesToNumberLE3;
|
|
200413
200507
|
function numberToBytesBE3(n, len) {
|
|
@@ -282599,8 +282693,32 @@ async function createPendingTransactionFilter(client) {
|
|
|
282599
282693
|
}
|
|
282600
282694
|
|
|
282601
282695
|
// ../../node_modules/viem/_esm/actions/public/getBalance.js
|
|
282696
|
+
init_abis();
|
|
282697
|
+
init_decodeFunctionResult();
|
|
282698
|
+
init_encodeFunctionData();
|
|
282602
282699
|
init_toHex();
|
|
282700
|
+
init_call();
|
|
282603
282701
|
async function getBalance(client, { address, blockNumber: blockNumber2, blockTag: blockTag2 = client.experimental_blockTag ?? "latest" }) {
|
|
282702
|
+
if (client.batch?.multicall && client.chain?.contracts?.multicall3) {
|
|
282703
|
+
const multicall3Address = client.chain.contracts.multicall3.address;
|
|
282704
|
+
const calldata = encodeFunctionData({
|
|
282705
|
+
abi: multicall3Abi,
|
|
282706
|
+
functionName: "getEthBalance",
|
|
282707
|
+
args: [address]
|
|
282708
|
+
});
|
|
282709
|
+
const { data } = await getAction(client, call, "call")({
|
|
282710
|
+
to: multicall3Address,
|
|
282711
|
+
data: calldata,
|
|
282712
|
+
blockNumber: blockNumber2,
|
|
282713
|
+
blockTag: blockTag2
|
|
282714
|
+
});
|
|
282715
|
+
return decodeFunctionResult({
|
|
282716
|
+
abi: multicall3Abi,
|
|
282717
|
+
functionName: "getEthBalance",
|
|
282718
|
+
args: [address],
|
|
282719
|
+
data: data || "0x"
|
|
282720
|
+
});
|
|
282721
|
+
}
|
|
282604
282722
|
const blockNumberHex = typeof blockNumber2 === "bigint" ? numberToHex(blockNumber2) : void 0;
|
|
282605
282723
|
const balance = await client.request({
|
|
282606
282724
|
method: "eth_getBalance",
|
|
@@ -299750,7 +299868,8 @@ var megaeth = /* @__PURE__ */ defineChain({
|
|
|
299750
299868
|
},
|
|
299751
299869
|
contracts: {
|
|
299752
299870
|
multicall3: {
|
|
299753
|
-
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
299871
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
299872
|
+
blockCreated: 0
|
|
299754
299873
|
}
|
|
299755
299874
|
}
|
|
299756
299875
|
});
|
|
@@ -299785,7 +299904,8 @@ var megaethTestnet = /* @__PURE__ */ defineChain({
|
|
|
299785
299904
|
},
|
|
299786
299905
|
contracts: {
|
|
299787
299906
|
multicall3: {
|
|
299788
|
-
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
299907
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
299908
|
+
blockCreated: 0
|
|
299789
299909
|
}
|
|
299790
299910
|
},
|
|
299791
299911
|
testnet: true
|
|
@@ -306450,14 +306570,14 @@ function fromTuple3(tuple2) {
|
|
|
306450
306570
|
})();
|
|
306451
306571
|
const args = {
|
|
306452
306572
|
address: keyId,
|
|
306453
|
-
expiry: typeof expiry !== "undefined" ?
|
|
306573
|
+
expiry: typeof expiry !== "undefined" ? hexToNumber3(expiry) : void 0,
|
|
306454
306574
|
type: keyType,
|
|
306455
306575
|
...chainId !== "0x" ? { chainId: toBigInt(chainId) } : {},
|
|
306456
|
-
...typeof expiry !== "undefined" ? { expiry:
|
|
306576
|
+
...typeof expiry !== "undefined" ? { expiry: hexToNumber3(expiry) } : {},
|
|
306457
306577
|
...typeof limits !== "undefined" ? {
|
|
306458
306578
|
limits: limits.map(([token, limit]) => ({
|
|
306459
306579
|
token,
|
|
306460
|
-
limit:
|
|
306580
|
+
limit: hexToBigint(limit)
|
|
306461
306581
|
}))
|
|
306462
306582
|
} : {}
|
|
306463
306583
|
};
|
|
@@ -306495,14 +306615,26 @@ function toTuple4(authorization) {
|
|
|
306495
306615
|
}
|
|
306496
306616
|
})();
|
|
306497
306617
|
const authorizationTuple = [
|
|
306498
|
-
|
|
306618
|
+
bigintToHex(chainId),
|
|
306499
306619
|
type2,
|
|
306500
306620
|
address,
|
|
306501
|
-
typeof expiry === "number" ?
|
|
306502
|
-
limits?.map((limit) => [limit.token,
|
|
306621
|
+
typeof expiry === "number" ? numberToHex2(expiry) : void 0,
|
|
306622
|
+
limits?.map((limit) => [limit.token, bigintToHex(limit.limit)]) ?? void 0
|
|
306503
306623
|
].filter(Boolean);
|
|
306504
306624
|
return [authorizationTuple, ...signature ? [signature] : []];
|
|
306505
306625
|
}
|
|
306626
|
+
function bigintToHex(value) {
|
|
306627
|
+
return value === 0n ? "0x" : fromNumber(value);
|
|
306628
|
+
}
|
|
306629
|
+
function numberToHex2(value) {
|
|
306630
|
+
return value === 0 ? "0x" : fromNumber(value);
|
|
306631
|
+
}
|
|
306632
|
+
function hexToBigint(hex3) {
|
|
306633
|
+
return hex3 === "0x" ? 0n : BigInt(hex3);
|
|
306634
|
+
}
|
|
306635
|
+
function hexToNumber3(hex3) {
|
|
306636
|
+
return hex3 === "0x" ? 0 : toNumber(hex3);
|
|
306637
|
+
}
|
|
306506
306638
|
|
|
306507
306639
|
// ../../node_modules/viem/node_modules/ox/_esm/tempo/TokenId.js
|
|
306508
306640
|
init_Hex();
|
|
@@ -307067,6 +307199,18 @@ function serialize2(envelope, options = {}) {
|
|
|
307067
307199
|
const feePayerSignatureOrSender = (() => {
|
|
307068
307200
|
if (options.sender)
|
|
307069
307201
|
return options.sender;
|
|
307202
|
+
if (options.format === "feePayer" && signature) {
|
|
307203
|
+
const sig = from14(signature);
|
|
307204
|
+
if (sig.type === "keychain")
|
|
307205
|
+
return sig.userAddress;
|
|
307206
|
+
if (sig.type === "p256" || sig.type === "webAuthn")
|
|
307207
|
+
return fromPublicKey(sig.publicKey);
|
|
307208
|
+
if (sig.type === "secp256k1")
|
|
307209
|
+
return recoverAddress2({
|
|
307210
|
+
payload: getSignPayload2(from17(envelope)),
|
|
307211
|
+
signature: sig.signature
|
|
307212
|
+
});
|
|
307213
|
+
}
|
|
307070
307214
|
const feePayerSignature = typeof options.feePayerSignature !== "undefined" ? options.feePayerSignature : envelope.feePayerSignature;
|
|
307071
307215
|
if (feePayerSignature === null)
|
|
307072
307216
|
return "0x00";
|
|
@@ -309588,7 +309732,8 @@ var zksync = /* @__PURE__ */ defineChain({
|
|
|
309588
309732
|
},
|
|
309589
309733
|
contracts: {
|
|
309590
309734
|
multicall3: {
|
|
309591
|
-
address: "0xF9cda624FBC7e059355ce98a31693d299FACd963"
|
|
309735
|
+
address: "0xF9cda624FBC7e059355ce98a31693d299FACd963",
|
|
309736
|
+
blockCreated: 3908235
|
|
309592
309737
|
},
|
|
309593
309738
|
erc6492Verifier: {
|
|
309594
309739
|
address: "0xfB688330379976DA81eB64Fe4BF50d7401763B9C",
|
|
@@ -347824,6 +347969,7 @@ var CreditSuite = class extends SDKConstruct {
|
|
|
347824
347969
|
}
|
|
347825
347970
|
stateHuman(raw = true) {
|
|
347826
347971
|
return {
|
|
347972
|
+
isExpired: this.isExpired,
|
|
347827
347973
|
creditFacade: this.creditFacade.stateHuman(raw),
|
|
347828
347974
|
creditManager: this.creditManager.stateHuman(raw),
|
|
347829
347975
|
creditConfigurator: this.creditConfigurator.stateHuman(raw)
|
|
@@ -397391,7 +397537,7 @@ var UpdateParser = class extends ProviderBase {
|
|
|
397391
397537
|
// src/renderer/cli/CliRenderer.ts
|
|
397392
397538
|
import readline from "node:readline";
|
|
397393
397539
|
|
|
397394
|
-
// node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
397540
|
+
// ../../node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
397395
397541
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
397396
397542
|
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
397397
397543
|
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
@@ -397577,7 +397723,7 @@ function assembleStyles() {
|
|
|
397577
397723
|
var ansiStyles = assembleStyles();
|
|
397578
397724
|
var ansi_styles_default = ansiStyles;
|
|
397579
397725
|
|
|
397580
|
-
// node_modules/chalk/source/vendor/supports-color/index.js
|
|
397726
|
+
// ../../node_modules/chalk/source/vendor/supports-color/index.js
|
|
397581
397727
|
import process3 from "node:process";
|
|
397582
397728
|
import os from "node:os";
|
|
397583
397729
|
import tty from "node:tty";
|
|
@@ -397709,7 +397855,7 @@ var supportsColor = {
|
|
|
397709
397855
|
};
|
|
397710
397856
|
var supports_color_default = supportsColor;
|
|
397711
397857
|
|
|
397712
|
-
// node_modules/chalk/source/utilities.js
|
|
397858
|
+
// ../../node_modules/chalk/source/utilities.js
|
|
397713
397859
|
function stringReplaceAll(string4, substring, replacer2) {
|
|
397714
397860
|
let index2 = string4.indexOf(substring);
|
|
397715
397861
|
if (index2 === -1) {
|
|
@@ -397739,7 +397885,7 @@ function stringEncaseCRLFWithFirstIndex(string4, prefix, postfix, index2) {
|
|
|
397739
397885
|
return returnValue;
|
|
397740
397886
|
}
|
|
397741
397887
|
|
|
397742
|
-
// node_modules/chalk/source/index.js
|
|
397888
|
+
// ../../node_modules/chalk/source/index.js
|
|
397743
397889
|
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
397744
397890
|
var GENERATOR = /* @__PURE__ */ Symbol("GENERATOR");
|
|
397745
397891
|
var STYLER = /* @__PURE__ */ Symbol("STYLER");
|
|
@@ -398552,7 +398698,7 @@ function getRenderer(opts) {
|
|
|
398552
398698
|
var package_default = {
|
|
398553
398699
|
name: "@gearbox-protocol/deploy-tools",
|
|
398554
398700
|
description: "Gearbox deploy tools",
|
|
398555
|
-
version: "5.70.
|
|
398701
|
+
version: "5.70.2",
|
|
398556
398702
|
homepage: "https://gearbox.fi",
|
|
398557
398703
|
keywords: [
|
|
398558
398704
|
"gearbox"
|
|
@@ -398592,11 +398738,11 @@ var package_default = {
|
|
|
398592
398738
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
398593
398739
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
398594
398740
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
398595
|
-
"@gearbox-protocol/sdk": "12.6.
|
|
398741
|
+
"@gearbox-protocol/sdk": "12.6.8",
|
|
398596
398742
|
"@gearbox-protocol/sdk-gov": "2.34.0-next.114",
|
|
398597
398743
|
"@types/lodash-es": "^4.17.12",
|
|
398598
|
-
"@types/node": "^25.2.
|
|
398599
|
-
"@types/react": "^19.2.
|
|
398744
|
+
"@types/node": "^25.2.3",
|
|
398745
|
+
"@types/react": "^19.2.14",
|
|
398600
398746
|
"@types/react-dom": "^19.2.3",
|
|
398601
398747
|
abitype: "^1.2.3",
|
|
398602
398748
|
chalk: "^5.6.2",
|
|
@@ -398605,14 +398751,14 @@ var package_default = {
|
|
|
398605
398751
|
esbuild: "^0.27.3",
|
|
398606
398752
|
"lodash-es": "^4.17.23",
|
|
398607
398753
|
"p-retry": "^7.1.1",
|
|
398608
|
-
pino: "^10.3.
|
|
398754
|
+
pino: "^10.3.1",
|
|
398609
398755
|
"pino-pretty": "^13.1.3",
|
|
398610
398756
|
queue: "^7.0.0",
|
|
398611
398757
|
react: "^19.2.4",
|
|
398612
398758
|
"react-dom": "^19.2.4",
|
|
398613
398759
|
table: "^6.9.0",
|
|
398614
398760
|
tsx: "^4.21.0",
|
|
398615
|
-
viem: "^2.45.
|
|
398761
|
+
viem: "^2.45.3",
|
|
398616
398762
|
yaml: "^2.8.2",
|
|
398617
398763
|
zod: "^4.3.6"
|
|
398618
398764
|
}
|
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.70.
|
|
4
|
+
"version": "5.70.2",
|
|
5
5
|
"homepage": "https://gearbox.fi",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"gearbox"
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
42
42
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
43
43
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
44
|
-
"@gearbox-protocol/sdk": "12.6.
|
|
44
|
+
"@gearbox-protocol/sdk": "12.6.8",
|
|
45
45
|
"@gearbox-protocol/sdk-gov": "2.34.0-next.114",
|
|
46
46
|
"@types/lodash-es": "^4.17.12",
|
|
47
|
-
"@types/node": "^25.2.
|
|
48
|
-
"@types/react": "^19.2.
|
|
47
|
+
"@types/node": "^25.2.3",
|
|
48
|
+
"@types/react": "^19.2.14",
|
|
49
49
|
"@types/react-dom": "^19.2.3",
|
|
50
50
|
"abitype": "^1.2.3",
|
|
51
51
|
"chalk": "^5.6.2",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"esbuild": "^0.27.3",
|
|
55
55
|
"lodash-es": "^4.17.23",
|
|
56
56
|
"p-retry": "^7.1.1",
|
|
57
|
-
"pino": "^10.3.
|
|
57
|
+
"pino": "^10.3.1",
|
|
58
58
|
"pino-pretty": "^13.1.3",
|
|
59
59
|
"queue": "^7.0.0",
|
|
60
60
|
"react": "^19.2.4",
|
|
61
61
|
"react-dom": "^19.2.4",
|
|
62
62
|
"table": "^6.9.0",
|
|
63
63
|
"tsx": "^4.21.0",
|
|
64
|
-
"viem": "^2.45.
|
|
64
|
+
"viem": "^2.45.3",
|
|
65
65
|
"yaml": "^2.8.2",
|
|
66
66
|
"zod": "^4.3.6"
|
|
67
67
|
}
|