Skip to content

Commit 9855dbc

Browse files
committed
chore(deploy-scripts): added gas options and removed bignumber
1 parent 89d10c7 commit 9855dbc

File tree

6 files changed

+32
-3
lines changed

6 files changed

+32
-3
lines changed

contracts/deploy/01-outbox/01-arb-sepolia-to-chiado-outbox.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ const deployOutbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
9696

9797
// ----------------------------------------------------------------------------------------------
9898
const liveDeployer = async () => {
99+
const gasOptions = {
100+
maxFeePerGas: String(ethers.parseUnits("1", "gwei")),
101+
maxPriorityFeePerGas: String(ethers.parseUnits("1", "gwei")),
102+
};
103+
99104
const senderChainProvider = new ethers.JsonRpcProvider(senderNetworks[ReceiverChains[chainId]].url);
100105
let nonce = await senderChainProvider.getTransactionCount(deployer);
101106

@@ -120,6 +125,7 @@ const deployOutbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
120125
WETH,
121126
],
122127
log: true,
128+
...gasOptions,
123129
});
124130

125131
console.log("VeaOutboxArbToGnosisDevnet deployed to:", txn.address);

contracts/deploy/01-outbox/01-arb-to-gnosis-outbox.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";
33
import { DeployFunction } from "hardhat-deploy/types";
44
import getContractAddress from "../../deploy-helpers/getContractAddress";
55
import { ethers } from "hardhat";
6-
import { BigNumber } from "@ethersproject/bignumber";
76

87
enum ReceiverChains {
98
GNOSIS_MAINNET = 100,
@@ -132,7 +131,7 @@ const deployOutbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
132131
from: deployer,
133132
contract: "ReceiverGatewayMock",
134133
args: [veaOutbox.address, senderGatewayAddress],
135-
gasLimit: BigNumber.from(4000000),
134+
gasLimit: 4000000,
136135
log: true,
137136
});
138137
};

contracts/deploy/01-outbox/01-chiado-to-arb-sepolia-outbox.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ const deployOutbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
9090

9191
// ----------------------------------------------------------------------------------------------
9292
const liveDeployer = async () => {
93+
const gasOptions = {
94+
maxFeePerGas: String(ethers.parseUnits("1", "gwei")),
95+
maxPriorityFeePerGas: String(ethers.parseUnits("1", "gwei")),
96+
};
97+
9398
const senderChainProvider = new ethers.JsonRpcProvider(senderNetworks[ReceiverChains[chainId]].url);
9499
let nonce = await senderChainProvider.getTransactionCount(deployer);
95100

@@ -111,6 +116,7 @@ const deployOutbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
111116
sequencerFutureLimit,
112117
],
113118
log: true,
119+
...gasOptions,
114120
});
115121

116122
console.log("VeaOutboxGnosisToArbDevnet deployed to:", txn.address);

contracts/deploy/01-outbox/01-gnosis-to-arb-outbox.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ const deployOutbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
9595

9696
// ----------------------------------------------------------------------------------------------
9797
const liveDeployer = async () => {
98+
const gasOptions = {
99+
maxFeePerGas: String(ethers.parseUnits("1", "gwei")),
100+
maxPriorityFeePerGas: String(ethers.parseUnits("1", "gwei")),
101+
};
102+
98103
const senderChainProvider = new ethers.JsonRpcProvider(senderNetworks[ReceiverChains[chainId]].url);
99104
let nonce = await senderChainProvider.getTransactionCount(deployer);
100105

@@ -117,6 +122,7 @@ const deployOutbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
117122
sequencerFutureLimit,
118123
],
119124
log: true,
125+
...gasOptions,
120126
});
121127

122128
console.log("VeaOutboxGnosisToArb" + (chainId === 42161 ? "" : "Testnet") + " deployed to:", txn.address);

contracts/deploy/02-inbox/02-chiado-to-arb-sepolia-inbox.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@ const deployInbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
3333

3434
const veaOutboxArb = await hre.companionNetworks.arbitrumSepolia.deployments.get("VeaOutboxGnosisToArbDevnet");
3535

36+
const gasOptions = {
37+
maxFeePerGas: String(ethers.parseUnits("1", "gwei")),
38+
maxPriorityFeePerGas: String(ethers.parseUnits("1", "gwei")),
39+
};
40+
3641
const inbox = await deploy("VeaInboxGnosisToArbDevnet", {
3742
from: deployer,
3843
contract: "VeaInboxGnosisToArb",
3944
args: [epochPeriod, veaOutboxArb.address, amb],
4045
log: true,
46+
...gasOptions,
4147
});
4248

4349
console.log("VeaInboxGnosisToArbDevnet deployed to: %s", inbox.address);

contracts/deploy/02-inbox/02-gnosis-to-arb-inbox.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { HardhatRuntimeEnvironment } from "hardhat/types";
22
import { DeployFunction } from "hardhat-deploy/types";
3-
import { BigNumber } from "@ethersproject/bignumber";
3+
import { ethers } from "ethers";
44

55
enum SenderChains {
66
GNOSIS = 100,
@@ -39,11 +39,17 @@ const deployInbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
3939
"VeaOutboxGnosisToArb" + (chainId === 100 ? "" : "Testnet")
4040
);
4141

42+
const gasOptions = {
43+
maxFeePerGas: String(ethers.parseUnits("1", "gwei")),
44+
maxPriorityFeePerGas: String(ethers.parseUnits("1", "gwei")),
45+
};
46+
4247
const inbox = await deploy("VeaInboxGnosisToArb" + (chainId === 100 ? "" : "Testnet"), {
4348
from: deployer,
4449
contract: "VeaInboxGnosisToArb",
4550
args: [epochPeriod, veaOutboxArb.address, amb],
4651
log: true,
52+
...(chainId === 100 ? {} : gasOptions),
4753
});
4854

4955
console.log("VeaInboxGnosisToArb" + (chainId === 100 ? "" : "Testnet") + " deployed to: %s", inbox.address);

0 commit comments

Comments
 (0)