FLOPS
  • 📍FLOPS
  • 📌Abstract
  • 📖INTRODUCTION
    • Pain Points in the AI Industry
    • FLOPS's Solution
    • Ecosystem Value
  • ⛓️FLOPS Chain
    • Hybrid Consensus
    • Zero-Knowledge Proofs (ZK) in FLOPS
    • Modular AI Support
    • Dynamic GPU Resource Allocation
  • 💻Unlimited Computing Power
  • 🔘Roadmap
  • 💲Tokenomics
  • Services & Products
    • For Developers
    • For Community
    • For Businesses
  • ⚒️BUILD
    • Introduction
      • Accounts and Wallets
      • Setup Metamask with FLOPS
      • Bridge to/ from FLOPS
    • Build Environment
      • RPC
      • Add FLOPS Network to MetaMask
      • Testnet Tokens
    • SmartContracts
      • Deployment
      • Verify
        • Hardhat
        • Page
Powered by GitBook
On this page
  • Obtain FLOPS token from the Faucet​
  • Deploy Contract on FLOPS TestNet
  • Token Contract
  • Verify
  • Hardhat
  1. BUILD
  2. SmartContracts

Deployment

PreviousSmartContractsNextVerify

Last updated 6 months ago

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

⚒️
​