Deployment
Obtain FLOPS token from the Faucet
To deploy a contract on FLOPSL2, you will need to obtain some FLOPStokens from the Faucet.
Once successful, you will see some FLOPStokens available within MetaMask, if not, double-check to ensure FLOPSTestnet is selected as your current network.
Deploy Contract on FLOPS TestNet
The last step will be to deploy a smart contract on FLOPSTestNet.
Token Contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.6;
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
contract ERC20Token is ERC20 {
constructor() public ERC20('Hello Flops', 'HelloFlops') {
_mint(msg.sender, 100000000 * 10 ** 18);
}
}
This contract will issue an token called , with ticker , and a total supply of 100m using 18 decimals of precision with implemented. You will be able to compile this contract using one of the deployment methods described in later sections
Verify
Once your SmartContract is deployed it is reccommended to verify your source code for full transparency. This next section will provide guide on verifying your SmartContract using this tools.
Hardhat
Verify your SmartContract using Hardhat
Last updated