Skip to content

Commit b9ae01f

Browse files
author
-
committed
Changed factory name from SKYBIT to SKYBITSolady; Updated address
1 parent 27fe88a commit b9ae01f

File tree

6 files changed

+24
-38
lines changed

6 files changed

+24
-38
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ The original Vectorized/solady CREATE3 solidity file was obtained by firstly add
120120

121121
Gas used for the deployment is around 247,752, so gas limit in this deployment transaction has been set to 350,000, giving some room in case some opcode costs increase in future, hence there should be at least 0.035 of native currency at the signer's address before factory deployment.
122122

123-
The SKYBIT factory contract will be deployed to this address (if the EVM version is `shanghai` and transaction bytecode is unchanged):
123+
The SKYBITSolady factory contract will be deployed to this address (if the EVM version is `shanghai` and transaction bytecode is unchanged):
124124
```
125-
0xdD4Be472a59a5272C6970D759565cf38d26d4010
125+
0x7008e1DEECA3E45E61b379BBA882134b3A15d9dF
126126
```
127127
The derived address of the account that would sign the deployment transaction, and that you'd need to fund in order to pay the gas fee, is:
128128
```
129-
0x5f9bc74b96054F8DC18832B6ef39943466430931
129+
0x6610a846957021103477DB54c18172cd80d953b7
130130
```
131131

132132
#### SKYBITLite

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SKYBIT-Keyless-Deployment",
3-
"version": "3.9.0",
3+
"version": "4.0.0",
44
"packageManager": "yarn@3.6.1",
55
"devDependencies": {
66
"@SKYBITDev3/ZeframLou-create3-factory": "https://github.com/SKYBITDev3/ZeframLou-create3-factory#3a8db987b8a6e1b63845a0ee1d0206cb4b5748f9",

scripts/CREATE3-deploy-functions.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const getArtifactOfFactory = (factoryToUse) => {
4545
case `axelarnetwork`:
4646
savedArtifactFilePath = `artifacts-saved/@axelar-network/axelar-gmp-sdk-solidity/contracts/deploy/Create3Deployer.sol/Create3Deployer.json`
4747
break
48-
case `SKYBIT`:
48+
case `SKYBITSolady`:
4949
savedArtifactFilePath = `artifacts-saved/contracts/SKYBITCREATE3Factory.sol/SKYBITCREATE3Factory.json`
5050
break
5151
case `SKYBITLite`:
@@ -61,7 +61,7 @@ const getDeployedAddress = async (factoryToUse, instanceOfFactory, bytecode, wal
6161
case `axelarnetwork`:
6262
return await instanceOfFactory.deployedAddress(bytecode, wallet.address, salt)
6363
break
64-
case `SKYBIT`:
64+
case `SKYBITSolady`:
6565
case `ZeframLou`:
6666
return await instanceOfFactory.getDeployed(wallet.address, salt)
6767
break
@@ -83,7 +83,7 @@ const getGasEstimate = async (factoryToUse, instanceOfFactory, bytecode, wallet,
8383
case `axelarnetwork`:
8484
return await instanceOfFactory.deploy.estimateGas(bytecode, salt)
8585
break
86-
case `SKYBIT`:
86+
case `SKYBITSolady`:
8787
case `ZeframLou`:
8888
return await instanceOfFactory.deploy.estimateGas(salt, bytecode)
8989
break
@@ -104,7 +104,7 @@ const deploy = async (factoryToUse, instanceOfFactory, bytecode, wallet, salt, f
104104
case `axelarnetwork`:
105105
return await instanceOfFactory.deploy(bytecode, salt, { ...feeData })
106106
break
107-
case `SKYBIT`:
107+
case `SKYBITSolady`:
108108
case `ZeframLou`:
109109
return await instanceOfFactory.deploy(salt, bytecode, { ...feeData })
110110
break

scripts/deployKeylessly-Create3Factory.js

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

77
const isDeployEnabled = true // toggle in case you do deployment and verification separately.
@@ -44,7 +44,7 @@ const getCreate3FactoryArtifact = factory => {
4444
case `axelarnetwork`:
4545
compiledArtifactFilePath = `artifacts/@axelar-network/axelar-gmp-sdk-solidity/contracts/deploy/Create3Deployer.sol/Create3Deployer.json`
4646
break
47-
case `SKYBIT`:
47+
case `SKYBITSolady`:
4848
compiledArtifactFilePath = `artifacts/contracts/SKYBITCREATE3Factory.sol/SKYBITCREATE3Factory.json`
4949
break
5050
case `SKYBITLite`:
@@ -65,7 +65,7 @@ const getGasLimit = (factory) => {
6565
case `axelarnetwork`:
6666
return 900000n // Gas cost: 712665
6767
break
68-
case `SKYBIT`:
68+
case `SKYBITSolady`:
6969
return 350000n // Gas cost: 247752
7070
break
7171
case `SKYBITLite`:

scripts/deployViaCREATE3-TESTERC20.js

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

33
// CHOOSE WHICH FACTORY YOU WANT TO USE:
4-
// const factoryToUse = `axelarnetwork`
5-
// const addressOfFactory = `0xf0d5258610A5eF4ac7b894DDaAD1c314De8d56a5` // gas cost: 2222365
6-
7-
// const factoryToUse = `ZeframLou`
8-
// const addressOfFactory = `0x92B9db5453E03E516Fd461a1852E67EAF8Bc6dad` // gas cost: 2145541
9-
10-
// const factoryToUse = `SKYBIT`
11-
// const addressOfFactory = `0xdD4Be472a59a5272C6970D759565cf38d26d4010` // gas cost: 2116813
12-
13-
const factoryToUse = `SKYBITLite`
14-
const addressOfFactory = `0xb8462884791B873F68Bc5e2FD90E5BfEc8034D69` // gas cost: 2117420
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
158

169

1710
// PASS YOUR OWN STRING HERE TO GENERATE A UNIQUE SALT. After doing your first production deployment, don't change it in order to have same address on other blockchains.
@@ -40,7 +33,7 @@ async function main() {
4033
const cfToken = await ethers.getContractFactory(tokenContractName) // No need to use artifacts-saved for your contract because with CREATE3 deployment address isn't dependent on bytecode
4134

4235
const { CREATE3Deploy } = rootRequire(`scripts/CREATE3-deploy-functions.js`)
43-
const deployedContract = await CREATE3Deploy(factoryToUse, addressOfFactory, cfToken, tokenContractName, constructorArgs, salt, wallet)
36+
const deployedContract = await CREATE3Deploy(factoryToUse.name, factoryToUse.address, cfToken, tokenContractName, constructorArgs, salt, wallet)
4437
if(deployedContract === undefined) return
4538

4639
// Testing the deployed ERC20 contract. If your contract isn't ERC20 then you can call a function other than balanceOf.

scripts/deployViaCREATE3-TESTERC20UG.js

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

44
// CHOOSE WHICH FACTORY YOU WANT TO USE:
5-
// const factoryToUse = `axelarnetwork`
6-
// const addressOfFactory = `0xf0d5258610A5eF4ac7b894DDaAD1c314De8d56a5`
7-
8-
// const factoryToUse = `ZeframLou`
9-
// const addressOfFactory = `0x92B9db5453E03E516Fd461a1852E67EAF8Bc6dad`
10-
11-
// const factoryToUse = `SKYBIT`
12-
// const addressOfFactory = `0xdD4Be472a59a5272C6970D759565cf38d26d4010`
13-
14-
const factoryToUse = `SKYBITLite`
15-
const addressOfFactory = `0xb8462884791B873F68Bc5e2FD90E5BfEc8034D69`
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
169

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

@@ -71,15 +64,15 @@ async function main() {
7164
const { getArtifactOfFactory, getDeployedAddress, CREATE3Deploy } = rootRequire(`scripts/CREATE3-deploy-functions.js`)
7265

7366
if (isDeployEnabled) {
74-
proxy = await CREATE3Deploy(factoryToUse, addressOfFactory, cfProxy, proxyContractName, proxyConstructorArgs, salt, wallet) // Gas cost: 425068
67+
proxy = await CREATE3Deploy(factoryToUse.name, factoryToUse.address, cfProxy, proxyContractName, proxyConstructorArgs, salt, wallet) // Gas cost: 425068
7568
if (proxy === undefined) return
7669

7770
proxyAddress = proxy.target
7871
} else {
79-
const artifactOfFactory = getArtifactOfFactory(factoryToUse)
80-
const instanceOfFactory = await ethers.getContractAt(artifactOfFactory.abi, addressOfFactory)
72+
const artifactOfFactory = getArtifactOfFactory(factoryToUse.name)
73+
const instanceOfFactory = await ethers.getContractAt(artifactOfFactory.abi, factoryToUse.address)
8174
const proxyBytecodeWithArgs = (await cfProxy.getDeployTransaction(...proxyConstructorArgs)).data
82-
proxyAddress = await getDeployedAddress(factoryToUse, instanceOfFactory, proxyBytecodeWithArgs, wallet, salt)
75+
proxyAddress = await getDeployedAddress(factoryToUse.name, instanceOfFactory, proxyBytecodeWithArgs, wallet, salt)
8376
}
8477
} else { // not using CREATE3
8578
const feeData = await ethers.provider.getFeeData()

0 commit comments

Comments
 (0)