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.providers.JsonRpcProvider(hre.network.config.url)4const wallet = new quais.Wallet(hre.network.config.accounts[0], provider)5const ERC20 = new quais.ContractFactory(ERC20Json.abi, ERC20Json.bytecode, wallet)67// Broadcast deploy transaction8const erc20 = await ERC20.deploy(...tokenArgs, { gasLimit: 5000000 })9console.log('Deploy tx hash: ' + erc20.deployTransaction.hash)1011// Wait for contract to be deployed (using quais-polling)12const deployReceipt = await pollFor(provider, 'getTransactionReceipt', [erc20.deployTransaction.hash], 1.5, 1)13console.log('ERC20 deployed to:', deployReceipt.contractAddress)14}