1.0.0 • Published 4 years ago
@emilianobonassi/gas-saver-deployer v1.0.0
A collection of smart contracts to save gas on Ethereum to deploy other contracts leveraging CHI tokens.
Took inspiration (and part of the code) from the beautiful ds-proxy by DappHub
Contract addresses
GasSaverDeployerV1 0x09186cd35eb543a7644420eb097888700f710501
How To Use
You can deploy a smart contract and optionally execute atomically a function (e.g. swap owner).
Just call deploy(bytes memory _code)
and deployAndExecute(bytes memory _code, bytes memory _data)
.
The module export abi and mainnet address. Below an example.
const gasSaverDeployer = require('@emilianobonassi/gas-saver-deployer');
...
// already declarated ethers, yourSigner and yourContractByteCode
const gasSaverDeployerInstance = new ethers.Contract(gasSaverDeployer.address, gasSaverDeployer.abi, yourSigner);
await gasSaverDeployerInstance.deploy(yourContractByteCode);
1.0.0
4 years ago