Quai NoCode Deployer
Let's be honest:
Writing and deploying your own smart contract is hard.
You shouldn't need to write code to start bringing your Web3 project to life.
deployERC20.js
1async function deployERC20() {2// Config provider, wallet, and contract factory3const provider = new quais.JsonRpcProvider(hre.network.config.url)4const wallet = new quais.Wallet(hre.network.config.accounts[0], provider)5const MyToken = new quais.ContractFactory(ERC20Json.abi, ERC20Json.bytecode, wallet)67// Broadcast deploy transaction8const myToken = await MyToken.deploy(...tokenArgs)9console.log('Transaction broadcasted: ', myToken.deploymentTransaction().hash)1011// Wait for contract to be deployed12await myToken.waitForDeployment()13console.log('Contract deployed to: ', await myToken.getAddress())14}