@hyperbridge/sdk 1.6.5 → 1.6.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/node/index.js
CHANGED
|
@@ -548,12 +548,14 @@ var chainConfigs = {
|
|
|
548
548
|
DAI: "0x50c5725949a6f0c72e6c4a641f24049a917db0cb",
|
|
549
549
|
USDC: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
550
550
|
USDT: "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2",
|
|
551
|
+
EXT: "0x0e668E5127087e236578893a0e01E41837A28469",
|
|
551
552
|
cNGN: "0x46C85152bFe9f96829aA94755D9f915F9B10EF5F"
|
|
552
553
|
},
|
|
553
554
|
tokenDecimals: {
|
|
554
555
|
USDC: 6,
|
|
555
556
|
USDT: 6,
|
|
556
|
-
cNGN: 6
|
|
557
|
+
cNGN: 6,
|
|
558
|
+
EXT: 18
|
|
557
559
|
},
|
|
558
560
|
tokenStorageSlots: {
|
|
559
561
|
USDT: { balanceSlot: 0, allowanceSlot: 1 },
|
|
@@ -600,11 +602,13 @@ var chainConfigs = {
|
|
|
600
602
|
DAI: "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
|
|
601
603
|
USDC: "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
|
|
602
604
|
USDT: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
|
|
605
|
+
EXT: "0x7C8c11ADb8EF7cd3CFa718008Ea048445C6E7209",
|
|
603
606
|
cNGN: "0x52828daa48C1a9A06F37500882b42daf0bE04C3B"
|
|
604
607
|
},
|
|
605
608
|
tokenDecimals: {
|
|
606
609
|
USDC: 6,
|
|
607
610
|
USDT: 6,
|
|
611
|
+
EXT: 18,
|
|
608
612
|
cNGN: 6
|
|
609
613
|
},
|
|
610
614
|
tokenStorageSlots: {
|
|
@@ -16422,7 +16426,7 @@ var GasEstimator = class {
|
|
|
16422
16426
|
BundlerMethod.ETH_ESTIMATE_USER_OPERATION_GAS,
|
|
16423
16427
|
[bundlerUserOp, entryPointAddress, bundlerStateOverrides]
|
|
16424
16428
|
);
|
|
16425
|
-
callGasLimit = BigInt(gasEstimate.callGasLimit) *
|
|
16429
|
+
callGasLimit = BigInt(gasEstimate.callGasLimit) * 130n / 100n;
|
|
16426
16430
|
verificationGasLimit = BigInt(gasEstimate.verificationGasLimit) * 105n / 100n;
|
|
16427
16431
|
preVerificationGas = BigInt(gasEstimate.preVerificationGas) * 105n / 100n;
|
|
16428
16432
|
if (this.ctx.bundlerUrl?.toLowerCase().includes("pimlico.io")) {
|
|
@@ -16435,8 +16439,8 @@ var GasEstimator = class {
|
|
|
16435
16439
|
if (level) {
|
|
16436
16440
|
const pimMaxFeePerGas = BigInt(level.maxFeePerGas);
|
|
16437
16441
|
const pimMaxPriorityFeePerGas = BigInt(level.maxPriorityFeePerGas);
|
|
16438
|
-
maxFeePerGas = pimMaxFeePerGas;
|
|
16439
|
-
maxPriorityFeePerGas = pimMaxPriorityFeePerGas;
|
|
16442
|
+
maxFeePerGas = pimMaxFeePerGas + pimMaxFeePerGas * BigInt(maxFeeBumpPercent) / 100n;
|
|
16443
|
+
maxPriorityFeePerGas = pimMaxPriorityFeePerGas + pimMaxPriorityFeePerGas * BigInt(priorityFeeBumpPercent) / 100n;
|
|
16440
16444
|
}
|
|
16441
16445
|
} catch (e) {
|
|
16442
16446
|
console.warn("Pimlico gas price fetch failed, using default gas price:", e);
|