|
2 | 2 | const { ethers, network, upgrades } = require(`hardhat`) |
3 | 3 |
|
4 | 4 | // CHOOSE WHICH FACTORY YOU WANT TO USE: |
5 | | -// const factoryToUse = { name: `axelarnetwork`, address: `0xf0d5258610A5eF4ac7b894DDaAD1c314De8d56a5` } // gas cost: 2222365 |
6 | | -// const factoryToUse = { name: `ZeframLou`, address: `0x92B9db5453E03E516Fd461a1852E67EAF8Bc6dad` } // gas cost: 2145541 |
7 | | -// const factoryToUse = { name: `SKYBITSolady`, address: `0x7008e1DEECA3E45E61b379BBA882134b3A15d9dF` } // gas cost: 2116813 |
8 | | -const factoryToUse = { name: `SKYBITLite`, address: `0xb8462884791B873F68Bc5e2FD90E5BfEc8034D69` } // gas cost: 2117420 |
| 5 | +// const factoryToUse = { name: `axelarnetwork`, address: `0x95A9323CF0443758df5F3becf3B221cB3D42f3A0` } // gas cost: 2413077 + 498930 |
| 6 | +// const factoryToUse = { name: `ZeframLou`, address: `0x2befaF9234EE4d5b10dDAECF55F73dA87F74Facb` } // gas cost: 2413077 + 422294 |
| 7 | +// const factoryToUse = { name: `SKYBITSolady`, address: `0xF545230eE44735CCDb71325c6D4bC981b444CBb6` } // gas cost: 2413077 + 418479 |
| 8 | +const factoryToUse = { name: `SKYBITLite`, address: `0x739201bA340A675624D9ADb1cc27e68F76a29765` } // gas cost: 2413077 + 419071 |
9 | 9 |
|
10 | 10 | const isDeployEnabled = true // toggle in case you do deployment and verification separately. |
11 | 11 |
|
@@ -46,6 +46,9 @@ async function main() { |
46 | 46 | console.log(`Expected address of implementation using nonce ${nonce}: ${addressExpectedOfImpl}`) |
47 | 47 | implAddress = addressExpectedOfImpl |
48 | 48 |
|
| 49 | + const implementationGasCost = await ethers.provider.estimateGas(await cfToken.getDeployTransaction()) |
| 50 | + console.log(`Expected gas cost to deploy implementation: ${implementationGasCost}`) |
| 51 | + |
49 | 52 | if (isDeployEnabled) { |
50 | 53 | const feeData = await ethers.provider.getFeeData() |
51 | 54 | delete feeData.gasPrice |
|
0 commit comments