Contract 0xedb95d8037f769b72aaab41deec92903a98c9e16 5

Contract Overview

Balance:
0 MATIC

Token:
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0xba3aac72f2c6e303c0d80a8d339c220aa5df14625e26387f799fc36b60d6fbedApprove363899642023-06-03 11:02:252 hrs 51 mins ago0x49b68e394f715871b48130abaa64278532e54ef2 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.00008494872 2.91
0x4724a54afe55e6ce42353a8b526c4d557ed77c0529aede20d554dedd38af2837Approve363884322023-06-03 10:08:113 hrs 46 mins ago0x49b68e394f715871b48130abaa64278532e54ef2 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000126748376 2.738019016
0x6962085b2bce65c6c625291b295511b0bb1931fdb883f4e04df0132d002a283dApprove363880942023-06-03 9:56:113 hrs 58 mins ago0x49b68e394f715871b48130abaa64278532e54ef2 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000143109055 3.091442493
0xa7508bbaff1481e50e9d86695371350eae3a5ced1ec7cad0e64c3f46ba14175fApprove363873542023-06-03 9:29:594 hrs 24 mins ago0x49b68e394f715871b48130abaa64278532e54ef2 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.00013470972 2.91
0x4f38c7b9aeb0f03508aa2aecb3b7a42bdef4574c15f0a31f9ee1594d56159703Approve363716992023-06-03 0:15:3313 hrs 38 mins ago0x3f9d2188bb0f066ab5b4f73565caaa9cf837f2b8 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.00013470972 2.910000015
0x40125fb6b4801ef6f7b7a8557d989e02bbcf83674f635b0af214e15530da6630Mint363716652023-06-03 0:14:2113 hrs 39 mins ago0x3f9d2188bb0f066ab5b4f73565caaa9cf837f2b8 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.00014936157 2.91
0xde238b48a743d2a6893bdd045f9d0c58871fb4855a3ca22809acc81d0e2410d9Approve363562752023-06-02 15:09:1722 hrs 45 mins ago0x49b68e394f715871b48130abaa64278532e54ef2 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000058241364 1.993474952
0xc4220ad3838acc5760fd5e98363bf6b4b0d6b8e6fc473c2cad08dfaf76591c9fApprove363561932023-06-02 15:06:2322 hrs 47 mins ago0xdead7184e891b6d8bd532795e5807fc1727a7966 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.0037273680
0xe6f97a288c4b2ccdb728e910e38c3b0494b29a18d0526fb3449b222cc8ee2c24Mint363561852023-06-02 15:06:0522 hrs 48 mins ago0xdead7184e891b6d8bd532795e5807fc1727a7966 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.0027381680
0x5a770cce629ec6033d70fddf0cc276b6fdddf4ff263619dbe5c043feaa9aeafdApprove363559662023-06-02 14:58:1922 hrs 55 mins ago0x49b68e394f715871b48130abaa64278532e54ef2 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000094520832 2.040781428
0xc5537519cc524ce984b682a398df136cbdde17f9b03bb19bdb96468d67ba4971Mint363547352023-06-02 14:14:4323 hrs 39 mins ago0xdead7184e891b6d8bd532795e5807fc1727a7966 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.0027381680
0x1cc4ad039447beda4191ba65538b6ede1b1b66b527d69bc3ebe9a58319181603Mint363547272023-06-02 14:14:2723 hrs 39 mins ago0xdead7184e891b6d8bd532795e5807fc1727a7966 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.0034227100
0x3305addd0703cc1d6a4727c513ce61350d175fccf958f074804a39b384d81ff0Mint363547212023-06-02 14:14:1523 hrs 40 mins ago0xdead7184e891b6d8bd532795e5807fc1727a7966 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.0023958970
0x23b6a6425f053fcd9f26731773bf8843ab4e4348fd5a16772f1d0170fd7d1b27Mint363547122023-06-02 14:13:5523 hrs 40 mins ago0xdead7184e891b6d8bd532795e5807fc1727a7966 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.0171135500
0x910af49fc831fdc4110e0936c4f575be370df266aa098434ddfc91cc30feffcdMint363547012023-06-02 14:13:3123 hrs 40 mins ago0xdead7184e891b6d8bd532795e5807fc1727a7966 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.0017113550
0x8eca4f452b0ea5334cf24ecf9e1bd29f5474e0a1b7812766afc05556ff7e0c26Mint363545992023-06-02 14:09:5523 hrs 44 mins ago0xdead7184e891b6d8bd532795e5807fc1727a7966 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.0025663550
0x502626c517451b8e858b752298be75a15a58451bc6e2a77c7a0e1d054fce4f6aApprove362734002023-05-31 14:14:072 days 23 hrs ago0x356055f87294a74b791ba4a67868b3a8146e88c0 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000069474 1.500000019
0xba6ab5dd865dd873d386b116c23a2d1137fd3ac3d28dbc667eed3f9b1bb28dafMint362733452023-05-31 14:12:112 days 23 hrs ago0x356055f87294a74b791ba4a67868b3a8146e88c0 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000051411 1.000000016
0xa481aafda30ff7d27f2013bd2b7ed328fe24ef1e58f6099249e615312f8eaf0eApprove362731952023-05-31 14:06:512 days 23 hrs ago0x3d8983f2f3d01aa183a7bd54ba8aec627eeafd53 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000069456 1.500000018
0xe22469a38f6fe60831c419a6ab6d825c5b37880cf232afb731e2ad57f75dad36Mint362731812023-05-31 14:06:212 days 23 hrs ago0x3d8983f2f3d01aa183a7bd54ba8aec627eeafd53 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000051363 1.000000018
0xa64516d10b16d4bb7400b75b3fb159499317236e6147773a14a3af8a73b33113Approve362730412023-05-31 14:01:252 days 23 hrs ago0x262b777c8e09097d911d95cfcc6bbe8d596e12f7 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000039606 1.500000017
0xdde6775335008a69a6900dddc7f0354b7a20bf222f1136a571a00e39039a367bApprove362730392023-05-31 14:01:192 days 23 hrs ago0x262b777c8e09097d911d95cfcc6bbe8d596e12f7 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000069456 1.500000016
0x9c3b418dd2ee15648216ed7c3d54b29c34e7236483ab1f0fb7352f186d81148dMint362729932023-05-31 13:59:432 days 23 hrs ago0x262b777c8e09097d911d95cfcc6bbe8d596e12f7 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000051363 1.000000016
0x323ffd40f2480e5270c840741a2b371e5864cfd842ce6285055ccc4d60d51946Approve362648612023-05-31 9:11:403 days 4 hrs ago0x80948ebc9724826769de07611fe7f6b11f021770 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000082883188 1.790443028
0x63ce8f81931eea1cdfbd38698b01cf1be37edc1748f3fda026d14062b98edbbeApprove362601522023-05-31 6:24:543 days 7 hrs ago0x81e6c6f1c4a73e5f2e889de85483651e9997ba31 IN  0xedb95d8037f769b72aaab41deec92903a98c9e160 MATIC0.000069438 1.500000016
[ Download CSV Export 
Parent Txn Hash Block From To Value
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
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 2 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 3 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 4 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 5 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;
}

File 6 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();
  }
}

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

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 Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading