@gearbox-protocol/deploy-tools 5.64.2 → 5.65.0
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 +53 -44
- package/package.json +3 -3
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.43.
|
|
4483
|
+
version2 = "2.43.3";
|
|
4484
4484
|
}
|
|
4485
4485
|
});
|
|
4486
4486
|
|
|
@@ -226926,9 +226926,8 @@ var supportsFillTransaction = /* @__PURE__ */ new LruMap(128);
|
|
|
226926
226926
|
async function prepareTransactionRequest(client, args) {
|
|
226927
226927
|
let request = args;
|
|
226928
226928
|
request.account ??= client.account;
|
|
226929
|
-
request.chain ??= client.chain;
|
|
226930
226929
|
request.parameters ??= defaultParameters;
|
|
226931
|
-
const { account: account_, chain, nonceManager, parameters } = request;
|
|
226930
|
+
const { account: account_, chain = client.chain, nonceManager, parameters } = request;
|
|
226932
226931
|
const prepareTransactionRequest2 = (() => {
|
|
226933
226932
|
if (typeof chain?.prepareTransactionRequest === "function")
|
|
226934
226933
|
return {
|
|
@@ -226965,7 +226964,7 @@ async function prepareTransactionRequest(client, args) {
|
|
|
226965
226964
|
});
|
|
226966
226965
|
}
|
|
226967
226966
|
if (prepareTransactionRequest2?.fn && prepareTransactionRequest2.runAt?.includes("beforeFillTransaction")) {
|
|
226968
|
-
request = await prepareTransactionRequest2.fn(request, {
|
|
226967
|
+
request = await prepareTransactionRequest2.fn({ ...request, chain }, {
|
|
226969
226968
|
phase: "beforeFillTransaction"
|
|
226970
226969
|
});
|
|
226971
226970
|
nonce ??= request.nonce;
|
|
@@ -227024,7 +227023,7 @@ async function prepareTransactionRequest(client, args) {
|
|
|
227024
227023
|
};
|
|
227025
227024
|
const { blobs, gas, kzg, type: type2 } = request;
|
|
227026
227025
|
if (prepareTransactionRequest2?.fn && prepareTransactionRequest2.runAt?.includes("beforeFillParameters")) {
|
|
227027
|
-
request = await prepareTransactionRequest2.fn(request, {
|
|
227026
|
+
request = await prepareTransactionRequest2.fn({ ...request, chain }, {
|
|
227028
227027
|
phase: "beforeFillParameters"
|
|
227029
227028
|
});
|
|
227030
227029
|
}
|
|
@@ -227113,7 +227112,7 @@ async function prepareTransactionRequest(client, args) {
|
|
|
227113
227112
|
prepare: account?.type === "local" ? [] : ["blobVersionedHashes"]
|
|
227114
227113
|
});
|
|
227115
227114
|
if (prepareTransactionRequest2?.fn && prepareTransactionRequest2.runAt?.includes("afterFillParameters"))
|
|
227116
|
-
request = await prepareTransactionRequest2.fn(request, {
|
|
227115
|
+
request = await prepareTransactionRequest2.fn({ ...request, chain }, {
|
|
227117
227116
|
phase: "afterFillParameters"
|
|
227118
227117
|
});
|
|
227119
227118
|
assertRequest(request);
|
|
@@ -251985,7 +251984,7 @@ function fromRpc4(envelope) {
|
|
|
251985
251984
|
};
|
|
251986
251985
|
if (envelope.type === "p256") {
|
|
251987
251986
|
return {
|
|
251988
|
-
prehash: envelope.
|
|
251987
|
+
prehash: envelope.preHash,
|
|
251989
251988
|
publicKey: {
|
|
251990
251989
|
prefix: 4,
|
|
251991
251990
|
x: toBigInt(envelope.pubKeyX),
|
|
@@ -252097,7 +252096,7 @@ function toRpc5(envelope) {
|
|
|
252097
252096
|
if (type2 === "p256") {
|
|
252098
252097
|
const p2564 = envelope;
|
|
252099
252098
|
return {
|
|
252100
|
-
|
|
252099
|
+
preHash: p2564.prehash,
|
|
252101
252100
|
pubKeyX: fromNumber(p2564.publicKey.x, { size: 32 }),
|
|
252102
252101
|
pubKeyY: fromNumber(p2564.publicKey.y, { size: 32 }),
|
|
252103
252102
|
r: fromNumber(p2564.signature.r, { size: 32 }),
|
|
@@ -252370,7 +252369,7 @@ function toRpc7(authorization) {
|
|
|
252370
252369
|
const { address, chainId = 0n, expiry, limits, type: type2, signature } = authorization;
|
|
252371
252370
|
return {
|
|
252372
252371
|
chainId: chainId === 0n ? "0x" : fromNumber(chainId),
|
|
252373
|
-
expiry: typeof expiry === "number" ? fromNumber(expiry) :
|
|
252372
|
+
expiry: typeof expiry === "number" ? fromNumber(expiry) : null,
|
|
252374
252373
|
limits: limits?.map(({ token, limit }) => ({
|
|
252375
252374
|
token,
|
|
252376
252375
|
limit: fromNumber(limit)
|
|
@@ -253223,10 +253222,12 @@ function formatTransactionRequest2(r, action) {
|
|
|
253223
253222
|
return [type2, void 0];
|
|
253224
253223
|
return [void 0, void 0];
|
|
253225
253224
|
})();
|
|
253225
|
+
const keyId = account && "accessKeyAddress" in account ? account.accessKeyAddress : void 0;
|
|
253226
253226
|
return {
|
|
253227
253227
|
...rpc,
|
|
253228
|
-
...keyType ? { keyType } : {},
|
|
253229
253228
|
...keyData ? { keyData } : {},
|
|
253229
|
+
...keyId ? { keyId } : {},
|
|
253230
|
+
...keyType ? { keyType } : {},
|
|
253230
253231
|
...request.feePayer ? {
|
|
253231
253232
|
feePayer: typeof request.feePayer === "object" ? parseAccount(request.feePayer) : request.feePayer
|
|
253232
253233
|
} : {}
|
|
@@ -253285,35 +253286,43 @@ var chainConfig5 = {
|
|
|
253285
253286
|
format: formatTransactionRequest2
|
|
253286
253287
|
})
|
|
253287
253288
|
},
|
|
253288
|
-
|
|
253289
|
-
|
|
253290
|
-
|
|
253291
|
-
if (
|
|
253292
|
-
|
|
253293
|
-
|
|
253294
|
-
|
|
253295
|
-
|
|
253296
|
-
|
|
253297
|
-
|
|
253298
|
-
|
|
253299
|
-
address
|
|
253300
|
-
|
|
253301
|
-
|
|
253302
|
-
|
|
253289
|
+
prepareTransactionRequest: [
|
|
253290
|
+
async (r, { phase }) => {
|
|
253291
|
+
const request = r;
|
|
253292
|
+
if (phase === "afterFillParameters") {
|
|
253293
|
+
if (typeof request.nonceKey === "bigint" && request.nonceKey > 0n)
|
|
253294
|
+
request.gas = (request.gas ?? 0n) + 40000n;
|
|
253295
|
+
return request;
|
|
253296
|
+
}
|
|
253297
|
+
request.nonceKey = (() => {
|
|
253298
|
+
if (typeof request.nonceKey !== "undefined" && request.nonceKey !== "random")
|
|
253299
|
+
return request.nonceKey;
|
|
253300
|
+
const address = request.account?.address ?? request.from;
|
|
253301
|
+
if (!address)
|
|
253302
|
+
return void 0;
|
|
253303
|
+
if (!request.chain)
|
|
253304
|
+
return void 0;
|
|
253305
|
+
const nonceKey = getNonceKey(store, {
|
|
253306
|
+
address,
|
|
253307
|
+
chainId: request.chain.id
|
|
253308
|
+
});
|
|
253309
|
+
if (nonceKey === 0n)
|
|
253310
|
+
return void 0;
|
|
253311
|
+
return nonceKey;
|
|
253312
|
+
})();
|
|
253313
|
+
request.nonce = (() => {
|
|
253314
|
+
if (typeof request.nonce === "number")
|
|
253315
|
+
return request.nonce;
|
|
253316
|
+
if (request.nonceKey)
|
|
253317
|
+
return 0;
|
|
253303
253318
|
return void 0;
|
|
253304
|
-
|
|
253305
|
-
|
|
253306
|
-
|
|
253307
|
-
|
|
253308
|
-
|
|
253309
|
-
|
|
253310
|
-
|
|
253311
|
-
return void 0;
|
|
253312
|
-
})();
|
|
253313
|
-
if (!request.feeToken && request.chain?.feeToken)
|
|
253314
|
-
request.feeToken = request.chain.feeToken;
|
|
253315
|
-
return request;
|
|
253316
|
-
},
|
|
253319
|
+
})();
|
|
253320
|
+
if (!request.feeToken && request.chain?.feeToken)
|
|
253321
|
+
request.feeToken = request.chain.feeToken;
|
|
253322
|
+
return request;
|
|
253323
|
+
},
|
|
253324
|
+
{ runAt: ["beforeFillTransaction", "afterFillParameters"] }
|
|
253325
|
+
],
|
|
253317
253326
|
serializers: {
|
|
253318
253327
|
// TODO: casting to satisfy viem – viem v3 to have more flexible serializer type.
|
|
253319
253328
|
transaction: ((transaction, signature) => serialize3(transaction, signature))
|
|
@@ -253346,7 +253355,7 @@ var chainConfig5 = {
|
|
|
253346
253355
|
// ../../node_modules/viem/_esm/chains/definitions/tempoDevnet.js
|
|
253347
253356
|
var tempoDevnet = /* @__PURE__ */ defineChain({
|
|
253348
253357
|
...chainConfig5,
|
|
253349
|
-
id:
|
|
253358
|
+
id: 42429,
|
|
253350
253359
|
name: "Tempo Devnet",
|
|
253351
253360
|
nativeCurrency: {
|
|
253352
253361
|
name: "USD",
|
|
@@ -253355,8 +253364,8 @@ var tempoDevnet = /* @__PURE__ */ defineChain({
|
|
|
253355
253364
|
},
|
|
253356
253365
|
rpcUrls: {
|
|
253357
253366
|
default: {
|
|
253358
|
-
http: ["https://rpc.devnet.
|
|
253359
|
-
webSocket: ["wss://rpc.devnet.
|
|
253367
|
+
http: ["https://rpc.devnet.tempoxyz.dev"],
|
|
253368
|
+
webSocket: ["wss://rpc.devnet.tempoxyz.dev"]
|
|
253360
253369
|
}
|
|
253361
253370
|
}
|
|
253362
253371
|
});
|
|
@@ -314489,7 +314498,7 @@ function getRenderer(opts) {
|
|
|
314489
314498
|
var package_default = {
|
|
314490
314499
|
name: "@gearbox-protocol/deploy-tools",
|
|
314491
314500
|
description: "Gearbox deploy tools",
|
|
314492
|
-
version: "5.
|
|
314501
|
+
version: "5.65.0",
|
|
314493
314502
|
homepage: "https://gearbox.fi",
|
|
314494
314503
|
keywords: [
|
|
314495
314504
|
"gearbox"
|
|
@@ -314529,7 +314538,7 @@ var package_default = {
|
|
|
314529
314538
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
314530
314539
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
314531
314540
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
314532
|
-
"@gearbox-protocol/sdk": "12.
|
|
314541
|
+
"@gearbox-protocol/sdk": "12.3.1",
|
|
314533
314542
|
"@gearbox-protocol/sdk-gov": "2.34.0-next.114",
|
|
314534
314543
|
"@types/lodash-es": "^4.17.12",
|
|
314535
314544
|
"@types/node": "^25.0.3",
|
|
@@ -314549,7 +314558,7 @@ var package_default = {
|
|
|
314549
314558
|
"react-dom": "^19.2.3",
|
|
314550
314559
|
table: "^6.9.0",
|
|
314551
314560
|
tsx: "^4.21.0",
|
|
314552
|
-
viem: "^2.43.
|
|
314561
|
+
viem: "^2.43.3",
|
|
314553
314562
|
yaml: "^2.8.2",
|
|
314554
314563
|
zod: "^4.2.1"
|
|
314555
314564
|
}
|
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.
|
|
4
|
+
"version": "5.65.0",
|
|
5
5
|
"homepage": "https://gearbox.fi",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"gearbox"
|
|
@@ -41,7 +41,7 @@
|
|
|
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.
|
|
44
|
+
"@gearbox-protocol/sdk": "12.3.1",
|
|
45
45
|
"@gearbox-protocol/sdk-gov": "2.34.0-next.114",
|
|
46
46
|
"@types/lodash-es": "^4.17.12",
|
|
47
47
|
"@types/node": "^25.0.3",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react-dom": "^19.2.3",
|
|
62
62
|
"table": "^6.9.0",
|
|
63
63
|
"tsx": "^4.21.0",
|
|
64
|
-
"viem": "^2.43.
|
|
64
|
+
"viem": "^2.43.3",
|
|
65
65
|
"yaml": "^2.8.2",
|
|
66
66
|
"zod": "^4.2.1"
|
|
67
67
|
}
|