Skip to content

Commit 5ab7461

Browse files
author
-
committed
Updated example CREATE3 deployment scripts
1 parent 8da4660 commit 5ab7461

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

scripts/deployKeylessly-Create3Factory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// CHOOSE WHICH FACTORY YOU WANT TO USE:
22
// const factoryToDeploy = `axelarnetwork`
33
// const factoryToDeploy = `ZeframLou`
4-
const factoryToDeploy = `SKYBITSolady`
5-
// const factoryToDeploy = `SKYBITLite`
4+
// const factoryToDeploy = `SKYBITSolady`
5+
const factoryToDeploy = `SKYBITLite`
66

77
const isDeployEnabled = true // toggle in case you do deployment and verification separately.
88

scripts/deployViaCREATE3-TESTERC20.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const { ethers, network } = require(`hardhat`)
22

33
// CHOOSE WHICH FACTORY YOU WANT TO USE:
4-
// const factoryToUse = { name: `axelarnetwork`, address: `0xf0d5258610A5eF4ac7b894DDaAD1c314De8d56a5` } // gas cost: 2222365
5-
// const factoryToUse = { name: `ZeframLou`, address: `0x92B9db5453E03E516Fd461a1852E67EAF8Bc6dad` } // gas cost: 2145541
6-
// const factoryToUse = { name: `SKYBITSolady`, address: `0x7008e1DEECA3E45E61b379BBA882134b3A15d9dF` } // gas cost: 2116813
7-
const factoryToUse = { name: `SKYBITLite`, address: `0xb8462884791B873F68Bc5e2FD90E5BfEc8034D69` } // gas cost: 2117420
4+
// const factoryToUse = { name: `axelarnetwork`, address: `0x95A9323CF0443758df5F3becf3B221cB3D42f3A0` } // gas cost: 1846094
5+
// const factoryToUse = { name: `ZeframLou`, address: `0x2befaF9234EE4d5b10dDAECF55F73dA87F74Facb` } // gas cost: 1767973
6+
// const factoryToUse = { name: `SKYBITSolady`, address: `0xF545230eE44735CCDb71325c6D4bC981b444CBb6` } // gas cost: 1743119
7+
const factoryToUse = { name: `SKYBITLite`, address: `0x739201bA340A675624D9ADb1cc27e68F76a29765` } // gas cost: 1743602
88

99

1010
const isDeployEnabled = true // toggle in case you do deployment and verification separately.

scripts/deployViaCREATE3-TESTERC20UG.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
const { ethers, network, upgrades } = require(`hardhat`)
33

44
// 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
99

1010
const isDeployEnabled = true // toggle in case you do deployment and verification separately.
1111

@@ -46,6 +46,9 @@ async function main() {
4646
console.log(`Expected address of implementation using nonce ${nonce}: ${addressExpectedOfImpl}`)
4747
implAddress = addressExpectedOfImpl
4848

49+
const implementationGasCost = await ethers.provider.estimateGas(await cfToken.getDeployTransaction())
50+
console.log(`Expected gas cost to deploy implementation: ${implementationGasCost}`)
51+
4952
if (isDeployEnabled) {
5053
const feeData = await ethers.provider.getFeeData()
5154
delete feeData.gasPrice

0 commit comments

Comments
 (0)