Crypto Toffe
  • 💡Crypto Toffe
  • Introduction
    • Overview
    • Our Features
  • Crypto Toffe Coin (CTP)
    • Overview
    • Tokenomics
    • Roadmap
    • Token Distribution
      • Waitlist Round 1
      • Waitlist Round 2
      • Holder
  • Smart Contract
    • Deploy
    • Deploy (CTP)
    • API Reference
  • Legal Disclaimer
    • Legal
    • Risk Disclosure
Powered by GitBook
On this page
  • ERC20 Base
  • contract
  • Signature Mint
  • Mint
  1. Smart Contract

Deploy (CTP)

ERC20 Base

import "@thirdweb-dev/contracts/base/ERC20Base.sol";

contract

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@thirdweb-dev/contracts/base/ERC20Base.sol";

contract MyToken is ERC20Base {
      constructor(
        address _defaultAdmin,
        string memory _name,
        string memory _symbol
    )
        ERC20Base(
            _defaultAdmin,
            _name,
            _symbol
        )
    {}
}

Signature Mint

import "@thirdweb-dev/contracts/base/ERC20SignatureMint.sol";

Mint

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@thirdweb-dev/contracts/base/ERC20SignatureMint.sol";

contract MyToken is ERC20SignatureMint {
      constructor(
        address _defaultAdmin,
        string memory _name,
        string memory _symbol,
        address _primarySaleRecipient
    )
        ERC20SignatureMint(
            _defaultAdmin,
            _name,
            _symbol,
            _primarySaleRecipient
        )
    {}
}
PreviousDeployNextAPI Reference

Last updated 1 year ago