Mumbai Testnet

Contract

0xeDb95D8037f769B72AAab41deeC92903A98C9E16
Transaction Hash
Method
Block
From
To
Value
Approve476954112024-03-31 10:27:4916 days ago1711880869IN
0xeDb95D80...3A98C9E16
0 MATIC0.000039581.50000001
Approve476954092024-03-31 10:27:4516 days ago1711880865IN
0xeDb95D80...3A98C9E16
0 MATIC0.0013470929.10000001
Mint476953602024-03-31 10:26:0116 days ago1711880761IN
0xeDb95D80...3A98C9E16
0 MATIC0.0014936129.10000001
Transfer475988292024-03-28 23:01:3619 days ago1711666896IN
0xeDb95D80...3A98C9E16
0 MATIC0.001403130.00000001
Mint473204132024-03-21 19:07:0226 days ago1711048022IN
0xeDb95D80...3A98C9E16
0 MATIC0.000953218.57127769
Approve472651022024-03-20 9:13:5227 days ago1710926032IN
0xeDb95D80...3A98C9E16
0 MATIC0.00013472.91000001
Mint472650402024-03-20 9:11:4227 days ago1710925902IN
0xeDb95D80...3A98C9E16
0 MATIC0.000101181.9713737
Approve472623772024-03-20 7:37:2228 days ago1710920242IN
0xeDb95D80...3A98C9E16
0 MATIC0.000109482.36564844
Approve472572052024-03-20 4:30:2128 days ago1710909021IN
0xeDb95D80...3A98C9E16
0 MATIC0.0013470929.10000001
Approve472328332024-03-19 12:16:3728 days ago1710850597IN
0xeDb95D80...3A98C9E16
0 MATIC0.000364417.87
Mint472328142024-03-19 12:15:5528 days ago1710850555IN
0xeDb95D80...3A98C9E16
0 MATIC0.000513910.01
Approve472260012024-03-19 8:13:2729 days ago1710836007IN
0xeDb95D80...3A98C9E16
0 MATIC0.000313466.77154262
Approve472255722024-03-19 7:57:1129 days ago1710835031IN
0xeDb95D80...3A98C9E16
0 MATIC0.000112252.42499999
Mint472039292024-03-18 18:24:0929 days ago1710786249IN
0xeDb95D80...3A98C9E16
0 MATIC0.0015401730.00000001
Mint471870882024-03-18 7:57:0530 days ago1710748625IN
0xeDb95D80...3A98C9E16
0 MATIC0.001448828.22700001
Approve470532842024-03-14 22:02:2833 days ago1710453748IN
0xeDb95D80...3A98C9E16
0 MATIC0.0013558229.10000001
Approve470126712024-03-13 21:56:4634 days ago1710367006IN
0xeDb95D80...3A98C9E16
0 MATIC0.000129685.335
Approve469042162024-03-11 0:32:4637 days ago1710117166IN
0xeDb95D80...3A98C9E16
0 MATIC0.0007073629.10000001
Approve468441022024-03-09 11:15:1438 days ago1709982914IN
0xeDb95D80...3A98C9E16
0 MATIC0.0013502429.16790001
Mint468440912024-03-09 11:14:4238 days ago1709982882IN
0xeDb95D80...3A98C9E16
0 MATIC0.0014936129.10000001
Approve467703842024-03-07 14:20:5540 days ago1709821255IN
0xeDb95D80...3A98C9E16
0 MATIC0.000057172.35225001
Approve467703842024-03-07 14:20:5540 days ago1709821255IN
0xeDb95D80...3A98C9E16
0 MATIC0.000057172.35225001
Approve466462022024-03-04 11:24:1443 days ago1709551454IN
0xeDb95D80...3A98C9E16
0 MATIC0.0005553612.00000001
Mint466461542024-03-04 11:22:3243 days ago1709551352IN
0xeDb95D80...3A98C9E16
0 MATIC0.000497879.7
Approve466254072024-03-03 22:32:5844 days ago1709505178IN
0xeDb95D80...3A98C9E16
0 MATIC0.00013472.91
View all transactions

Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TestERC20

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 6 : TestERC20.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.15;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";

import {IBridgeToken} from "./IBridgeToken.sol";

/**
 * @notice This token is ONLY useful for testing
 * @dev Anybody can mint as many tokens as they like
 * @dev Anybody can burn anyone else's tokens
 */
contract TestERC20 is ERC20, IBridgeToken {
  constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {
    _mint(msg.sender, 1000000 ether);
  }

  // ============ Bridge functions ===============
  function initialize() external override {}

  function detailsHash() external view override returns (bytes32) {
    return
      keccak256(
        abi.encodePacked(
          bytes(this.name()).length,
          this.name(),
          bytes(this.symbol()).length,
          this.symbol(),
          this.decimals()
        )
      );
  }

  function setDetailsHash(bytes32 _detailsHash) external override {
    // Does nothing, in practice will update the details to match the hash in message
  }

  function setDetails(
    string calldata _newName,
    string calldata _newSymbol,
    uint8 _newDecimals
  ) external override {
    // Does nothing, in practice will update the details to match the hash in message
    // not the autodeployed results
  }

  function transferOwnership(address _newOwner) external override {}

  // ============ Token functions ===============
  function balanceOf(address account) public view override(ERC20, IBridgeToken) returns (uint256) {
    return ERC20.balanceOf(account);
  }

  function mint(address account, uint256 amount) external {
    _mint(account, amount);
  }

  function burn(address account, uint256 amount) external {
    _burn(account, amount);
  }

  function symbol() public view override(ERC20, IBridgeToken) returns (string memory) {
    return ERC20.symbol();
  }

  function name() public view override(ERC20, IBridgeToken) returns (string memory) {
    return ERC20.name();
  }

  function decimals() public view override(ERC20, IBridgeToken) returns (uint8) {
    return ERC20.decimals();
  }
}

File 1 of 6 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 `from` to `to`.
     *
     * 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 1 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 1 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 1 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;
    }
}

File 1 of 6 : IBridgeToken.sol
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.15;

interface IBridgeToken {
  function initialize() external;

  function name() external returns (string memory);

  function balanceOf(address _account) external view returns (uint256);

  function symbol() external view returns (string memory);

  function decimals() external view returns (uint8);

  function detailsHash() external view returns (bytes32);

  function burn(address _from, uint256 _amnt) external;

  function mint(address _to, uint256 _amnt) external;

  function setDetailsHash(bytes32 _detailsHash) external;

  function setDetails(
    string calldata _name,
    string calldata _symbol,
    uint8 _decimals
  ) external;

  // inherited from ownable
  function transferOwnership(address _newOwner) external;
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"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":"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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":[],"name":"detailsHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_newName","type":"string"},{"internalType":"string","name":"_newSymbol","type":"string"},{"internalType":"uint8","name":"_newDecimals","type":"uint8"}],"name":"setDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_detailsHash","type":"bytes32"}],"name":"setDetailsHash","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"}]

60806040523480156200001157600080fd5b506040516200146838038062001468833981016040819052620000349162000234565b818160036200004483826200032c565b5060046200005382826200032c565b505050620000723369d3c21bcecceda10000006200007a60201b60201c565b50506200041f565b6001600160a01b038216620000d55760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620000e99190620003f8565b90915550506001600160a01b0382166000908152602081905260408120805483929062000118908490620003f8565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200018f57600080fd5b81516001600160401b0380821115620001ac57620001ac62000167565b604051601f8301601f19908116603f01168101908282118183101715620001d757620001d762000167565b81604052838152602092508683858801011115620001f457600080fd5b600091505b83821015620002185785820183015181830184015290820190620001f9565b838211156200022a5760008385830101525b9695505050505050565b600080604083850312156200024857600080fd5b82516001600160401b03808211156200026057600080fd5b6200026e868387016200017d565b935060208501519150808211156200028557600080fd5b5062000294858286016200017d565b9150509250929050565b600181811c90821680620002b357607f821691505b602082108103620002d457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200016257600081815260208120601f850160051c81016020861015620003035750805b601f850160051c820191505b8181101562000324578281556001016200030f565b505050505050565b81516001600160401b0381111562000348576200034862000167565b62000360816200035984546200029e565b84620002da565b602080601f8311600181146200039857600084156200037f5750858301515b600019600386901b1c1916600185901b17855562000324565b600085815260208120601f198616915b82811015620003c957888601518255948401946001909101908401620003a8565b5085821015620003e85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082198211156200041a57634e487b7160e01b600052601160045260246000fd5b500190565b611039806200042f6000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806370a08231116100a2578063a457c2d711610071578063a457c2d714610219578063a9059cbb1461022c578063cc2ab7c71461023f578063dd62ed3e14610250578063f2fde38b1461026357600080fd5b806370a08231146101d55780638129fc1c146101b657806395d89b41146101fe5780639dc29fac1461020657600080fd5b8063313ce567116100e9578063313ce56714610181578063395093511461019057806340c10f19146101a35780634815fcb1146101b8578063654935f4146101c057600080fd5b806306fdde031461011b578063095ea7b31461013957806318160ddd1461015c57806323b872dd1461016e575b600080fd5b610123610271565b6040516101309190610c45565b60405180910390f35b61014c610147366004610c94565b610280565b6040519015158152602001610130565b6002545b604051908152602001610130565b61014c61017c366004610cbe565b610298565b60405160128152602001610130565b61014c61019e366004610c94565b6102bc565b6101b66101b1366004610c94565b6102de565b005b6101606102ec565b6101b66101ce366004610d52565b5050505050565b6101606101e3366004610dd6565b6001600160a01b031660009081526020819052604090205490565b610123610519565b6101b6610214366004610c94565b610523565b61014c610227366004610c94565b61052d565b61014c61023a366004610c94565b6105ad565b6101b661024d366004610df8565b50565b61016061025e366004610e11565b6105bb565b6101b661024d366004610dd6565b606061027b6105e6565b905090565b60003361028e818585610678565b5060019392505050565b6000336102a685828561079d565b6102b1858585610817565b506001949350505050565b60003361028e8185856102cf83836105bb565b6102d99190610e5a565b610678565b6102e882826109e5565b5050565b6000306001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa15801561032c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103549190810190610e88565b51306001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015610393573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103bb9190810190610e88565b306001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156103f9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104219190810190610e88565b51306001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610460573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104889190810190610e88565b306001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ea9190610f35565b6040516020016104fe959493929190610f52565b60405160208183030381529060405280519060200120905090565b606061027b610ac4565b6102e88282610ad3565b6000338161053b82866105bb565b9050838110156105a05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102b18286868403610678565b60003361028e818585610817565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6060600380546105f590610fb2565b80601f016020809104026020016040519081016040528092919081815260200182805461062190610fb2565b801561066e5780601f106106435761010080835404028352916020019161066e565b820191906000526020600020905b81548152906001019060200180831161065157829003601f168201915b5050505050905090565b6001600160a01b0383166106da5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610597565b6001600160a01b03821661073b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610597565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006107a984846105bb565b9050600019811461081157818110156108045760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610597565b6108118484848403610678565b50505050565b6001600160a01b03831661087b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610597565b6001600160a01b0382166108dd5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610597565b6001600160a01b038316600090815260208190526040902054818110156109555760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610597565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061098c908490610e5a565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516109d891815260200190565b60405180910390a3610811565b6001600160a01b038216610a3b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610597565b8060026000828254610a4d9190610e5a565b90915550506001600160a01b03821660009081526020819052604081208054839290610a7a908490610e5a565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6060600480546105f590610fb2565b6001600160a01b038216610b335760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610597565b6001600160a01b03821660009081526020819052604090205481811015610ba75760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610597565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610bd6908490610fec565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610790565b60005b83811015610c34578181015183820152602001610c1c565b838111156108115750506000910152565b6020815260008251806020840152610c64816040850160208701610c19565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610c8f57600080fd5b919050565b60008060408385031215610ca757600080fd5b610cb083610c78565b946020939093013593505050565b600080600060608486031215610cd357600080fd5b610cdc84610c78565b9250610cea60208501610c78565b9150604084013590509250925092565b60008083601f840112610d0c57600080fd5b50813567ffffffffffffffff811115610d2457600080fd5b602083019150836020828501011115610d3c57600080fd5b9250929050565b60ff8116811461024d57600080fd5b600080600080600060608688031215610d6a57600080fd5b853567ffffffffffffffff80821115610d8257600080fd5b610d8e89838a01610cfa565b90975095506020880135915080821115610da757600080fd5b50610db488828901610cfa565b9094509250506040860135610dc881610d43565b809150509295509295909350565b600060208284031215610de857600080fd5b610df182610c78565b9392505050565b600060208284031215610e0a57600080fd5b5035919050565b60008060408385031215610e2457600080fd5b610e2d83610c78565b9150610e3b60208401610c78565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610e6d57610e6d610e44565b500190565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610e9a57600080fd5b815167ffffffffffffffff80821115610eb257600080fd5b818401915084601f830112610ec657600080fd5b815181811115610ed857610ed8610e72565b604051601f8201601f19908116603f01168101908382118183101715610f0057610f00610e72565b81604052828152876020848701011115610f1957600080fd5b610f2a836020830160208801610c19565b979650505050505050565b600060208284031215610f4757600080fd5b8151610df181610d43565b85815260008551610f6a816020850160208a01610c19565b80830190508560208201528451610f88816040840160208901610c19565b60f89490941b6001600160f81b031916604091909401908101939093525050604101949350505050565b600181811c90821680610fc657607f821691505b602082108103610fe657634e487b7160e01b600052602260045260246000fd5b50919050565b600082821015610ffe57610ffe610e44565b50039056fea2646970667358221220b6939833d1dbe1c4b0c61dc8c5a1b8ac2dd71aadbddcbb431ac752540618238264736f6c634300080f003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000a5465737420546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045445535400000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c806370a08231116100a2578063a457c2d711610071578063a457c2d714610219578063a9059cbb1461022c578063cc2ab7c71461023f578063dd62ed3e14610250578063f2fde38b1461026357600080fd5b806370a08231146101d55780638129fc1c146101b657806395d89b41146101fe5780639dc29fac1461020657600080fd5b8063313ce567116100e9578063313ce56714610181578063395093511461019057806340c10f19146101a35780634815fcb1146101b8578063654935f4146101c057600080fd5b806306fdde031461011b578063095ea7b31461013957806318160ddd1461015c57806323b872dd1461016e575b600080fd5b610123610271565b6040516101309190610c45565b60405180910390f35b61014c610147366004610c94565b610280565b6040519015158152602001610130565b6002545b604051908152602001610130565b61014c61017c366004610cbe565b610298565b60405160128152602001610130565b61014c61019e366004610c94565b6102bc565b6101b66101b1366004610c94565b6102de565b005b6101606102ec565b6101b66101ce366004610d52565b5050505050565b6101606101e3366004610dd6565b6001600160a01b031660009081526020819052604090205490565b610123610519565b6101b6610214366004610c94565b610523565b61014c610227366004610c94565b61052d565b61014c61023a366004610c94565b6105ad565b6101b661024d366004610df8565b50565b61016061025e366004610e11565b6105bb565b6101b661024d366004610dd6565b606061027b6105e6565b905090565b60003361028e818585610678565b5060019392505050565b6000336102a685828561079d565b6102b1858585610817565b506001949350505050565b60003361028e8185856102cf83836105bb565b6102d99190610e5a565b610678565b6102e882826109e5565b5050565b6000306001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa15801561032c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103549190810190610e88565b51306001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015610393573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103bb9190810190610e88565b306001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156103f9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104219190810190610e88565b51306001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610460573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104889190810190610e88565b306001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ea9190610f35565b6040516020016104fe959493929190610f52565b60405160208183030381529060405280519060200120905090565b606061027b610ac4565b6102e88282610ad3565b6000338161053b82866105bb565b9050838110156105a05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102b18286868403610678565b60003361028e818585610817565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6060600380546105f590610fb2565b80601f016020809104026020016040519081016040528092919081815260200182805461062190610fb2565b801561066e5780601f106106435761010080835404028352916020019161066e565b820191906000526020600020905b81548152906001019060200180831161065157829003601f168201915b5050505050905090565b6001600160a01b0383166106da5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610597565b6001600160a01b03821661073b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610597565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006107a984846105bb565b9050600019811461081157818110156108045760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610597565b6108118484848403610678565b50505050565b6001600160a01b03831661087b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610597565b6001600160a01b0382166108dd5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610597565b6001600160a01b038316600090815260208190526040902054818110156109555760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610597565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061098c908490610e5a565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516109d891815260200190565b60405180910390a3610811565b6001600160a01b038216610a3b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610597565b8060026000828254610a4d9190610e5a565b90915550506001600160a01b03821660009081526020819052604081208054839290610a7a908490610e5a565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6060600480546105f590610fb2565b6001600160a01b038216610b335760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610597565b6001600160a01b03821660009081526020819052604090205481811015610ba75760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610597565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610bd6908490610fec565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610790565b60005b83811015610c34578181015183820152602001610c1c565b838111156108115750506000910152565b6020815260008251806020840152610c64816040850160208701610c19565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610c8f57600080fd5b919050565b60008060408385031215610ca757600080fd5b610cb083610c78565b946020939093013593505050565b600080600060608486031215610cd357600080fd5b610cdc84610c78565b9250610cea60208501610c78565b9150604084013590509250925092565b60008083601f840112610d0c57600080fd5b50813567ffffffffffffffff811115610d2457600080fd5b602083019150836020828501011115610d3c57600080fd5b9250929050565b60ff8116811461024d57600080fd5b600080600080600060608688031215610d6a57600080fd5b853567ffffffffffffffff80821115610d8257600080fd5b610d8e89838a01610cfa565b90975095506020880135915080821115610da757600080fd5b50610db488828901610cfa565b9094509250506040860135610dc881610d43565b809150509295509295909350565b600060208284031215610de857600080fd5b610df182610c78565b9392505050565b600060208284031215610e0a57600080fd5b5035919050565b60008060408385031215610e2457600080fd5b610e2d83610c78565b9150610e3b60208401610c78565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610e6d57610e6d610e44565b500190565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610e9a57600080fd5b815167ffffffffffffffff80821115610eb257600080fd5b818401915084601f830112610ec657600080fd5b815181811115610ed857610ed8610e72565b604051601f8201601f19908116603f01168101908382118183101715610f0057610f00610e72565b81604052828152876020848701011115610f1957600080fd5b610f2a836020830160208801610c19565b979650505050505050565b600060208284031215610f4757600080fd5b8151610df181610d43565b85815260008551610f6a816020850160208a01610c19565b80830190508560208201528451610f88816040840160208901610c19565b60f89490941b6001600160f81b031916604091909401908101939093525050604101949350505050565b600181811c90821680610fc657607f821691505b602082108103610fe657634e487b7160e01b600052602260045260246000fd5b50919050565b600082821015610ffe57610ffe610e44565b50039056fea2646970667358221220b6939833d1dbe1c4b0c61dc8c5a1b8ac2dd71aadbddcbb431ac752540618238264736f6c634300080f0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000a5465737420546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045445535400000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Test Token
Arg [1] : _symbol (string): TEST

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 5465737420546f6b656e00000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 5445535400000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.