Goerli Testnet

Contract

0x66408824A99FF61ae2e032E3c7a461DED1a6718E
Source Code

Overview

ETH Balance

0 ETH

Token Holdings

Multi Chain

Multichain Addresses

0 address found via
Transaction Hash
Method
Block
From
To
Value
Transfer72490592022-07-18 16:20:11508 days 3 hrs ago1658161211IN
0x664088...D1a6718E
0 ETH0.000030471
Mint72490562022-07-18 16:19:26508 days 3 hrs ago1658161166IN
0x664088...D1a6718E
0 ETH0.000073691
Transfer72489562022-07-18 15:54:21508 days 3 hrs ago1658159661IN
0x664088...D1a6718E
0 ETH0.000030471
Mint72489532022-07-18 15:53:33508 days 3 hrs ago1658159613IN
0x664088...D1a6718E
0 ETH0.000073691
Increase Allowan...72487212022-07-18 14:55:07508 days 4 hrs ago1658156107IN
0x664088...D1a6718E
0 ETH0.000047321.00000001
Mint72485742022-07-18 14:18:19508 days 5 hrs ago1658153899IN
0x664088...D1a6718E
0 ETH0.000073691.00000001
Approve72485672022-07-18 14:16:34508 days 5 hrs ago1658153794IN
0x664088...D1a6718E
0 ETH0.000046871.00000001
Mint72485422022-07-18 14:10:08508 days 5 hrs ago1658153408IN
0x664088...D1a6718E
0 ETH0.000073691.00000001
Approve72483042022-07-18 13:10:29508 days 6 hrs ago1658149829IN
0x664088...D1a6718E
0 ETH0.000046931
Approve72482892022-07-18 13:06:43508 days 6 hrs ago1658149603IN
0x664088...D1a6718E
0 ETH0.000046931
Approve72481832022-07-18 12:39:56508 days 6 hrs ago1658147996IN
0x664088...D1a6718E
0 ETH0.000046951
Mint72481782022-07-18 12:38:41508 days 6 hrs ago1658147921IN
0x664088...D1a6718E
0 ETH0.000073691
Transfer72481152022-07-18 12:22:52508 days 7 hrs ago1658146972IN
0x664088...D1a6718E
0 ETH0.000071351.5
Mint72481082022-07-18 12:21:07508 days 7 hrs ago1658146867IN
0x664088...D1a6718E
0 ETH0.000073691
Approve72480902022-07-18 12:16:37508 days 7 hrs ago1658146597IN
0x664088...D1a6718E
0 ETH0.000046931
Mint72480892022-07-18 12:16:22508 days 7 hrs ago1658146582IN
0x664088...D1a6718E
0 ETH0.000073691
Increase Allowan...72480782022-07-18 12:13:36508 days 7 hrs ago1658146416IN
0x664088...D1a6718E
0 ETH0.000118452.50000001
Mint72480432022-07-18 12:04:37508 days 7 hrs ago1658145877IN
0x664088...D1a6718E
0 ETH0.000073691.00000001
Mint72480152022-07-18 11:57:33508 days 7 hrs ago1658145453IN
0x664088...D1a6718E
0 ETH0.000184242.50000001
Priviledged Mint72477402022-07-18 10:48:28508 days 8 hrs ago1658141308IN
0x664088...D1a6718E
0 ETH0.000079181
Priviledged Mint72477392022-07-18 10:48:13508 days 8 hrs ago1658141293IN
0x664088...D1a6718E
0 ETH0.000096281
0x6080604072477032022-07-18 10:39:00508 days 8 hrs ago1658140740IN
 Contract Creation
0 ETH0.002555851.5

Latest 25 internal transactions (View All)

Advanced mode:
Parent Txn Hash Block From To Value
72490812022-07-18 16:25:42508 days 3 hrs ago1658161542
0x664088...D1a6718E
0 ETH
72490682022-07-18 16:22:26508 days 3 hrs ago1658161346
0x664088...D1a6718E
0 ETH
72490622022-07-18 16:20:56508 days 3 hrs ago1658161256
0x664088...D1a6718E
0 ETH
72490622022-07-18 16:20:56508 days 3 hrs ago1658161256
0x664088...D1a6718E
0 ETH
72490522022-07-18 16:18:26508 days 3 hrs ago1658161106
0x664088...D1a6718E
0 ETH
72490522022-07-18 16:18:26508 days 3 hrs ago1658161106
0x664088...D1a6718E
0 ETH
72489602022-07-18 15:55:21508 days 3 hrs ago1658159721
0x664088...D1a6718E
0 ETH
72489602022-07-18 15:55:21508 days 3 hrs ago1658159721
0x664088...D1a6718E
0 ETH
72489452022-07-18 15:51:33508 days 3 hrs ago1658159493
0x664088...D1a6718E
0 ETH
72489452022-07-18 15:51:33508 days 3 hrs ago1658159493
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72488642022-07-18 15:31:16508 days 4 hrs ago1658158276
0x664088...D1a6718E
0 ETH
72486922022-07-18 14:47:52508 days 4 hrs ago1658155672
0x664088...D1a6718E
0 ETH
72486922022-07-18 14:47:52508 days 4 hrs ago1658155672
0x664088...D1a6718E
0 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x5e7432...5F420d3d
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
CarToken

Compiler Version
v0.8.1+commit.df193b15

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 6 : CarToken.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.7.0 <0.9.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

/**
 * @title CarToken contract
 * @dev This is the implementation of the CarToken contract
 * @notice There is a capped supply of 210,000 tokens.
 *         10,000 tokens is reserved for the public
 *         A user can only mint once
 */
contract CarToken is ERC20, Ownable {

    // ---- States ----
    mapping(address => bool) hasMinted;
    uint256 constant private MAX_SUPPLY = 210000 * 1e18;
    uint256 public count;

     /**
     * @dev Car Company Contract Constructor.
     */
    constructor() ERC20("Car Company", "CCY") {
    }

    /**
    * @dev Checks to see if the user has minted previously.
    */
    modifier hasNotMinted {
        require(!hasMinted[msg.sender], "Can only mint once");
        _;
    }

    /**
     * @dev Mint new tokens
    */
    function mint() external hasNotMinted {
        require(totalSupply() < MAX_SUPPLY, "Max Supply Reached");
        hasMinted[msg.sender] = true;
        _mint(msg.sender, 1 ether);
    }
  
    /**
     * @dev Allows only the owner to mint new tokens
     * @param _to Address to mint tokens to
     * @param _amount The amount of tokens to mint to address
    */
    function priviledgedMint(address _to, uint256 _amount) external onlyOwner hasNotMinted {
        require(_amount + totalSupply() <= MAX_SUPPLY, "Max Supply Reached");
        hasMinted[_to] = true;
        _mint(_to, _amount);
    }

}

File 2 of 6 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 3 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 5 of 6 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 6 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"count","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"priviledgedMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c806370a08231116100a257806395d89b411161007157806395d89b4114610296578063a457c2d7146102b4578063a9059cbb146102e4578063dd62ed3e14610314578063f2fde38b146103445761010b565b806370a0823114610222578063715018a6146102525780637ed9782a1461025c5780638da5cb5b146102785761010b565b806318160ddd116100de57806318160ddd1461018657806323b872dd146101a4578063313ce567146101d457806339509351146101f25761010b565b806306661abd1461011057806306fdde031461012e578063095ea7b31461014c5780631249c58b1461017c575b600080fd5b610118610360565b604051610125919061176e565b60405180910390f35b610136610366565b60405161014391906115cc565b60405180910390f35b61016660048036038101906101619190611341565b6103f8565b60405161017391906115b1565b60405180910390f35b61018461041b565b005b61018e610567565b60405161019b919061176e565b60405180910390f35b6101be60048036038101906101b991906112f2565b610571565b6040516101cb91906115b1565b60405180910390f35b6101dc6105a0565b6040516101e99190611789565b60405180910390f35b61020c60048036038101906102079190611341565b6105a9565b60405161021991906115b1565b60405180910390f35b61023c6004803603810190610237919061128d565b6105e0565b604051610249919061176e565b60405180910390f35b61025a610628565b005b61027660048036038101906102719190611341565b6106b0565b005b61028061087e565b60405161028d9190611596565b60405180910390f35b61029e6108a8565b6040516102ab91906115cc565b60405180910390f35b6102ce60048036038101906102c99190611341565b61093a565b6040516102db91906115b1565b60405180910390f35b6102fe60048036038101906102f99190611341565b6109b1565b60405161030b91906115b1565b60405180910390f35b61032e600480360381019061032991906112b6565b6109d4565b60405161033b919061176e565b60405180910390f35b61035e6004803603810190610359919061128d565b610a5b565b005b60075481565b6060600380546103759061189e565b80601f01602080910402602001604051908101604052809291908181526020018280546103a19061189e565b80156103ee5780601f106103c3576101008083540402835291602001916103ee565b820191906000526020600020905b8154815290600101906020018083116103d157829003601f168201915b5050505050905090565b600080610403610b53565b9050610410818585610b5b565b600191505092915050565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156104a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161049f906116ae565b60405180910390fd5b692c781f708c509f4000006104bb610567565b106104fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f29061170e565b60405180910390fd5b6001600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061056533670de0b6b3a7640000610d26565b565b6000600254905090565b60008061057c610b53565b9050610589858285610e86565b610594858585610f12565b60019150509392505050565b60006012905090565b6000806105b4610b53565b90506105d58185856105c685896109d4565b6105d091906117c0565b610b5b565b600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610630610b53565b73ffffffffffffffffffffffffffffffffffffffff1661064e61087e565b73ffffffffffffffffffffffffffffffffffffffff16146106a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069b9061168e565b60405180910390fd5b6106ae6000611193565b565b6106b8610b53565b73ffffffffffffffffffffffffffffffffffffffff166106d661087e565b73ffffffffffffffffffffffffffffffffffffffff161461072c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107239061168e565b60405180910390fd5b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156107b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b0906116ae565b60405180910390fd5b692c781f708c509f4000006107cc610567565b826107d791906117c0565b1115610818576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080f9061170e565b60405180910390fd5b6001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061087a8282610d26565b5050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546108b79061189e565b80601f01602080910402602001604051908101604052809291908181526020018280546108e39061189e565b80156109305780601f1061090557610100808354040283529160200191610930565b820191906000526020600020905b81548152906001019060200180831161091357829003601f168201915b5050505050905090565b600080610945610b53565b9050600061095382866109d4565b905083811015610998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098f9061172e565b60405180910390fd5b6109a58286868403610b5b565b60019250505092915050565b6000806109bc610b53565b90506109c9818585610f12565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610a63610b53565b73ffffffffffffffffffffffffffffffffffffffff16610a8161087e565b73ffffffffffffffffffffffffffffffffffffffff1614610ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ace9061168e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610b47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3e9061160e565b60405180910390fd5b610b5081611193565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc2906116ee565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c329061162e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610d19919061176e565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8d9061174e565b60405180910390fd5b610da260008383611259565b8060026000828254610db491906117c0565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e0991906117c0565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610e6e919061176e565b60405180910390a3610e826000838361125e565b5050565b6000610e9284846109d4565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610f0c5781811015610efe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef59061164e565b60405180910390fd5b610f0b8484848403610b5b565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f79906116ce565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ff2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe9906115ee565b60405180910390fd5b610ffd838383611259565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107a9061166e565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461111691906117c0565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161117a919061176e565b60405180910390a361118d84848461125e565b50505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b505050565b505050565b60008135905061127281611c35565b92915050565b60008135905061128781611c4c565b92915050565b60006020828403121561129f57600080fd5b60006112ad84828501611263565b91505092915050565b600080604083850312156112c957600080fd5b60006112d785828601611263565b92505060206112e885828601611263565b9150509250929050565b60008060006060848603121561130757600080fd5b600061131586828701611263565b935050602061132686828701611263565b925050604061133786828701611278565b9150509250925092565b6000806040838503121561135457600080fd5b600061136285828601611263565b925050602061137385828601611278565b9150509250929050565b61138681611816565b82525050565b61139581611828565b82525050565b60006113a6826117a4565b6113b081856117af565b93506113c081856020860161186b565b6113c98161192e565b840191505092915050565b60006113e16023836117af565b91506113ec8261193f565b604082019050919050565b60006114046026836117af565b915061140f8261198e565b604082019050919050565b60006114276022836117af565b9150611432826119dd565b604082019050919050565b600061144a601d836117af565b915061145582611a2c565b602082019050919050565b600061146d6026836117af565b915061147882611a55565b604082019050919050565b60006114906020836117af565b915061149b82611aa4565b602082019050919050565b60006114b36012836117af565b91506114be82611acd565b602082019050919050565b60006114d66025836117af565b91506114e182611af6565b604082019050919050565b60006114f96024836117af565b915061150482611b45565b604082019050919050565b600061151c6012836117af565b915061152782611b94565b602082019050919050565b600061153f6025836117af565b915061154a82611bbd565b604082019050919050565b6000611562601f836117af565b915061156d82611c0c565b602082019050919050565b61158181611854565b82525050565b6115908161185e565b82525050565b60006020820190506115ab600083018461137d565b92915050565b60006020820190506115c6600083018461138c565b92915050565b600060208201905081810360008301526115e6818461139b565b905092915050565b60006020820190508181036000830152611607816113d4565b9050919050565b60006020820190508181036000830152611627816113f7565b9050919050565b600060208201905081810360008301526116478161141a565b9050919050565b600060208201905081810360008301526116678161143d565b9050919050565b6000602082019050818103600083015261168781611460565b9050919050565b600060208201905081810360008301526116a781611483565b9050919050565b600060208201905081810360008301526116c7816114a6565b9050919050565b600060208201905081810360008301526116e7816114c9565b9050919050565b60006020820190508181036000830152611707816114ec565b9050919050565b600060208201905081810360008301526117278161150f565b9050919050565b6000602082019050818103600083015261174781611532565b9050919050565b6000602082019050818103600083015261176781611555565b9050919050565b60006020820190506117836000830184611578565b92915050565b600060208201905061179e6000830184611587565b92915050565b600081519050919050565b600082825260208201905092915050565b60006117cb82611854565b91506117d683611854565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561180b5761180a6118d0565b5b828201905092915050565b600061182182611834565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b8381101561188957808201518184015260208101905061186e565b83811115611898576000848401525b50505050565b600060028204905060018216806118b657607f821691505b602082108114156118ca576118c96118ff565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f43616e206f6e6c79206d696e74206f6e63650000000000000000000000000000600082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4d617820537570706c7920526561636865640000000000000000000000000000600082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b611c3e81611816565b8114611c4957600080fd5b50565b611c5581611854565b8114611c6057600080fd5b5056fea2646970667358221220cc65775791bdbb96daa53914dbdb6d01bdda58d3366aea3f178b79873665107964736f6c63430008010033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.