Contract 0x4911b761993b9c8c0d14Ba2d86902AF6B0074F5B

Contract Overview

Balance:
0 Ether
Txn Hash
Index
From
To
Value
0xf4c54e12fc68ce1c56c6c4738fbd1e21565252bda2a7ba64118f565ec4147c5416047132021-09-25 18:36:322 days 9 hrs ago 0x829bbc1f94ee2fa7856e17bb7ab2b8fda6f3bd53 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0x3d1ee1107108875a70efd522cf10bf76a96d6db651275f1a2f7948ee297de97916047022021-09-25 18:30:042 days 9 hrs ago 0x829bbc1f94ee2fa7856e17bb7ab2b8fda6f3bd53 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.000019710.015
0x27f358c87a22049632b06165e3b594e886c46cd6428230deaf6929ed94df7f4c16029482021-09-25 9:40:402 days 18 hrs ago 0x211e273292d0c241c81e23cb0e33d7537c93c661 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.000011947830.015
0x8319115e4689947fca3d2ce795f8879a3e8b7848a91947bd0a4476bf83ea532315994042021-09-24 15:44:443 days 12 hrs ago 0xa5d55fa60cf555927560edd2a88bebbc9dd3acd0 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000117899850.015
0x01be3819b044a9d0213268ea2905df7fa915168304a7f1cbd26a688c1df117fe15993792021-09-24 15:38:163 days 12 hrs ago 0xa5d55fa60cf555927560edd2a88bebbc9dd3acd0 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0x7b92773dfa600c8e8314752bbac86c10de4d5f69ecd5e8cbf8f2ed2c2f0402e715970862021-09-24 6:55:563 days 21 hrs ago 0xfdd88a45ce43e403ba0c0d6774a13b01b6f75d40 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0xd1f59294ee009bfceeb61928b4fd3d0be540e0094ff9d5cebfebfe23406a4b5e15966022021-09-24 2:28:524 days 1 hr ago0x09951cbd95a4f286698e8356f2a4d8ef00f81b9e IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0x5e2cc464f00221a6b8d2ed944a4e8d6d5cc5f8599feea2b0c39af36656993a1215950512021-09-23 15:03:324 days 13 hrs ago 0xce7177d8af9b307ce0ee2387bc1108e22b4c4e3b IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119465850.015
0x0cb5fe954f299edd61b684869d907a9388ff4d4bf602fbc3a0f79363d7c9cf5315949922021-09-23 14:39:164 days 13 hrs ago 0x5f367bf126fda56d88ba88a8978d5496c66b3569 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0xdbe2682b569967f3d2f80383fb1f01659677ced17df7b45b04cc81804408148015939882021-09-23 8:35:404 days 19 hrs ago 0xf8039cb88246bfaf9855cf7db2f1a45555a44db9 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0x2df0f9a183d530f56dc08978c88577712e3445e836d85677e84f891d622c43fd15937782021-09-23 6:48:044 days 21 hrs ago 0xfdd88a45ce43e403ba0c0d6774a13b01b6f75d40 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119465850.015
0x067a04d5a926f0a9c472bc3dd40f27b907bf47fc360c9f28a5fa42733a1b35a715912832021-09-22 14:23:075 days 13 hrs ago 0x7bb49530e1d604d20eb4fa4081a69f0b6d31c60f IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0x3af7ad2348f439428a4adb4ea85142d64bcd04725c34c4b5a348abc30a73e37315906602021-09-22 11:24:085 days 16 hrs ago 0xd627f02dfd6ba7a3f7dfce3fe0b9b8db6d7f60c9 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0xa5b0d2744d44027c0525c6e64108e0c71029c31f178699c9d0a333eb9beccaff15890512021-09-22 2:10:206 days 2 hrs ago 0x3bf8283f9fbf39f0de356eb45ca7f8b6e22cf21c IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0xbb6440c1ac07b5ce9b104fb287a709a1056db1eca46b85c722d0ad4de2ca0f7d15858102021-09-21 13:15:566 days 14 hrs ago 0xf7b931c2b066b89f60c7f8383cde9960fce87f1b IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0xbe648c90d8f9129d7ca52364a6f04a3aa5b70fc30d65554be7ec90610710299315855302021-09-21 11:48:206 days 16 hrs ago0x7ebd436f250c9812855bfd8345c703f7642a5fc2 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119465850.015
0x62da1f0260f33eba5cbf9e842344d34a07d97d6a5c399cc0938a151765fffb2915855192021-09-21 11:45:086 days 16 hrs ago 0xf3c083bb6fab2f22949e69e5470c34d6117eb044 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0x356126b38274e5ed8fa5e0f37e69297b49b576e15cff9a34afaa8dae7246e9d515847102021-09-21 6:35:526 days 21 hrs ago 0x5be657ea8afd72a2769b4621421ac52e946fcdf3 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0x0750448673816fce55e9dde59d3c1a825427f1e39bd9157d323107817d77ec9b15846712021-09-21 6:27:286 days 21 hrs ago 0xcc9813d90f4bbc75e70f8fc28558defecb8c1a47 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0x774b97f9d7425bef046600c27a8a9f2860867bb651899be1aca38afc6ab1478315846502021-09-21 6:24:286 days 21 hrs ago 0x6b93c8e668481c3ca0eff17ea85db48b88b4f3f8 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0x55bf059e1ca0c46d0cd1078e82d20b1dcf764c7d37d7db1c78696f063ce6f0c615842392021-09-21 4:21:406 days 23 hrs ago 0x65054ed0b1dc4e92f7b414a369e2eec7d9206c82 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
0x44fe384db347d411be9e112b342fda73f1972de8e0169c42ad00ca568370c53515842282021-09-21 4:21:406 days 23 hrs ago 0xd627f02dfd6ba7a3f7dfce3fe0b9b8db6d7f60c9 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000125773350.015
0x4c6b10d07fae1e1a54fefa6515a1727997dd0482c862d4ce9819c25f811080c615842052021-09-21 4:17:046 days 23 hrs ago 0xd627f02dfd6ba7a3f7dfce3fe0b9b8db6d7f60c9 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.000019710.015
0x5e5f85a14dc2de28b96a27085cd3987aa8ade0dc2c291dd572f90e9b407eb6a315821432021-09-20 19:24:447 days 8 hrs ago 0x54364c6dee5df371848fb18666577fe58d0b11e8 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000117899850.015
0xdc3602bd6cf4027e4d91738b34011658d55be86740aace1c26baeb67358a973015821402021-09-20 19:21:327 days 8 hrs ago 0x54364c6dee5df371848fb18666577fe58d0b11e8 IN  0x4911b761993b9c8c0d14ba2d86902af6b0074f5b0 Ether0.0000119467650.015
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x8caf10b0a225b79c4aa96367a79838229a77d9968b99bb278f1c4b07aa46dd725978772021-06-28 12:18:1291 days 15 hrs ago 0xdeaddeaddeaddeaddeaddeaddeaddeaddead0006  Contract Creation0 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LinkTokenOptimism

Compiler Version
v0.7.6-no_errors

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 19 : IERC20Child.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0 <0.8.0;

/* Interface Imports */
import { IERC20 } from "../../../../vendor/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";

/// @dev Interface of the child ERC20 token, for use on sidechains and L2 networks.
interface IERC20Child is IERC20 {
  /**
   * @notice called by bridge gateway when tokens are deposited on root chain
   * Should handle deposits by minting the required amount for the recipient
   *
   * @param recipient an address for whom minting is being done
   * @param amount total amount to mint
   */
  function mint(
    address recipient,
    uint256 amount
  )
    external;

  /**
   * @notice called by bridge gateway when tokens are withdrawn back to root chain
   * @dev Should burn recipient's tokens.
   *
   * @param amount total amount to burn
   */
  function burn(
    uint256 amount
  )
    external;

  /**
   * @notice called by bridge gateway when tokens are withdrawn back to root chain
   * @dev Should burn recipient's tokens. Sender must have allowance for `accounts`'s tokens of at least `amount`.
   *
   * @param account an address for whom burning is being done
   * @param amount total amount to burn
   */
  function burnFrom(
    address account,
    uint256 amount
  )
    external;
}

File 2 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @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);
}

File 3 of 19 : LinkTokenChild.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0 <0.8.0;

/* Interface Imports */
import { ITypeAndVersion } from "../../../v0.6/ITypeAndVersion.sol";
import { IERC20Child } from "./IERC20Child.sol";

/* Contract Imports */
import { ERC20 } from "../../../../vendor/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";
import { ERC20Burnable } from "../../../../vendor/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/ERC20Burnable.sol";
import { SimpleWriteAccessController } from "../../../../vendor/smartcontractkit/chainlink/evm-contracts/src/v0.6/SimpleWriteAccessController.sol";
import { LinkToken } from "../../../v0.6/LinkToken.sol";

/// @dev  A generalized mintable & burnable child LinkToken contract to be used on child networks.
contract LinkTokenChild is ITypeAndVersion, IERC20Child, SimpleWriteAccessController, ERC20Burnable, LinkToken {
  /**
   * @notice versions:
   *
   * - LinkTokenChild 0.0.1: initial release
   *
   * @inheritdoc ITypeAndVersion
   */
  function typeAndVersion()
    external
    pure
    override(ITypeAndVersion, LinkToken)
    virtual
    returns (string memory)
  {
    return "LinkTokenChild 0.0.1";
  }

  /**
   * @dev Only callable by account with access (gateway role)
   * @inheritdoc IERC20Child
   */
  function mint(
    address recipient,
    uint256 amount
  )
    public
    override
    virtual
    checkAccess()
  {
    _mint(recipient, amount);
  }

  /**
   * @dev Only callable by account with access (gateway role)
   * @inheritdoc ERC20Burnable
   */
  function burn(
    uint256 amount
  )
    public
    override(IERC20Child, ERC20Burnable)
    virtual
    checkAccess()
  {
    super.burn(amount);
  }

  /**
   * @dev Only callable by account with access (gateway role)
   * @inheritdoc ERC20Burnable
   */
  function burnFrom(
    address account,
    uint256 amount
  )
    public
    override(IERC20Child, ERC20Burnable)
    virtual
    checkAccess()
  {
    super.burnFrom(account, amount);
  }

  /**
   * @dev Overrides parent contract so no tokens are minted on deployment.
   * @inheritdoc LinkToken
   */
  function _onCreate()
    internal
    override
  {}

  /// @inheritdoc LinkToken
  function _transfer(
    address sender,
    address recipient,
    uint256 amount
  )
    internal
    override(ERC20, LinkToken)
    virtual
  {
    super._transfer(sender, recipient, amount);
  }

  /// @inheritdoc LinkToken
  function _approve(
    address owner,
    address spender,
    uint256 amount
  )
    internal
    override(ERC20, LinkToken)
    virtual
  {
    super._approve(owner, spender, amount);
  }
}

File 4 of 19 : ITypeAndVersion.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0;

/// @dev Interface contracts should use to report its type and version.
interface ITypeAndVersion {
  /**
   * @dev Returns type and version for the contract.
   *
   * The returned string has the following format: <contract name><SPACE><semver>
   * Try to keep its length less than 32 to take up less contract space.
   */
  function typeAndVersion()
    external
    pure
    returns (string memory);
}

File 5 of 19 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.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 guidelines: functions revert instead
 * of 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 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

    /**
     * @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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, 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:
     *
     * - `to` 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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(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);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @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 to 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 { }
}

File 6 of 19 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    using SafeMath for uint256;

    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}

File 7 of 19 : SimpleWriteAccessController.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0 <0.8.0;

import "./Owned.sol";
import "./interfaces/AccessControllerInterface.sol";

/**
 * @title SimpleWriteAccessController
 * @notice Gives access to accounts explicitly added to an access list by the
 * controller's owner.
 * @dev does not make any special permissions for externally, see
 * SimpleReadAccessController for that.
 */
contract SimpleWriteAccessController is AccessControllerInterface, Owned {

  bool public checkEnabled;
  mapping(address => bool) internal accessList;

  event AddedAccess(address user);
  event RemovedAccess(address user);
  event CheckAccessEnabled();
  event CheckAccessDisabled();

  constructor()
    public
  {
    checkEnabled = true;
  }

  /**
   * @notice Returns the access of an address
   * @param _user The address to query
   */
  function hasAccess(
    address _user,
    bytes memory
  )
    public
    view
    virtual
    override
    returns (bool)
  {
    return accessList[_user] || !checkEnabled;
  }

  /**
   * @notice Adds an address to the access list
   * @param _user The address to add
   */
  function addAccess(address _user)
    external
    onlyOwner()
  {
    if (!accessList[_user]) {
      accessList[_user] = true;

      emit AddedAccess(_user);
    }
  }

  /**
   * @notice Removes an address from the access list
   * @param _user The address to remove
   */
  function removeAccess(address _user)
    external
    onlyOwner()
  {
    if (accessList[_user]) {
      accessList[_user] = false;

      emit RemovedAccess(_user);
    }
  }

  /**
   * @notice makes the access check enforced
   */
  function enableAccessCheck()
    external
    onlyOwner()
  {
    if (!checkEnabled) {
      checkEnabled = true;

      emit CheckAccessEnabled();
    }
  }

  /**
   * @notice makes the access check unenforced
   */
  function disableAccessCheck()
    external
    onlyOwner()
  {
    if (checkEnabled) {
      checkEnabled = false;

      emit CheckAccessDisabled();
    }
  }

  /**
   * @dev reverts if the caller does not have access
   */
  modifier checkAccess() {
    require(hasAccess(msg.sender, msg.data), "No access");
    _;
  }
}

File 8 of 19 : LinkToken.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0 <0.8.0;

import "./token/LinkERC20.sol";
import "./ERC677.sol";
import "./ITypeAndVersion.sol";

/// @dev LinkToken, an ERC20/ERC677 Chainlink token with 1 billion supply
contract LinkToken is ITypeAndVersion, LinkERC20, ERC677 {
  uint private constant TOTAL_SUPPLY = 10**27;
  string private constant NAME = 'ChainLink Token';
  string private constant SYMBOL = 'LINK';

  constructor()
    ERC20(NAME, SYMBOL)
    public
  {
    _onCreate();
  }

  /**
   * @notice versions:
   *
   * - LinkToken 0.0.3: added versioning, update name
   * - LinkToken 0.0.2: upgraded to solc 0.6
   * - LinkToken 0.0.1: initial release solc 0.4
   *
   * @inheritdoc ITypeAndVersion
   */
  function typeAndVersion()
    external
    pure
    override
    virtual
    returns (string memory)
  {
    return "LinkToken 0.0.3";
  }

  /**
   * @dev Hook that is called when this contract is created.
   * Useful to override constructor behaviour in child contracts (e.g., LINK bridge tokens).
   * @notice Default implementation mints 10**27 tokens to msg.sender
   */
  function _onCreate()
    internal
    virtual
  {
    _mint(msg.sender, TOTAL_SUPPLY);
  }

  /**
   * @dev Check if recepient is a valid address before transfer
   * @inheritdoc ERC20
   */
  function _transfer(
    address sender,
    address recipient,
    uint256 amount
  )
    internal
    override
    virtual
    validAddress(recipient)
  {
    super._transfer(sender, recipient, amount);
  }

  /**
   * @dev Check if spender is a valid address before approval
   * @inheritdoc ERC20
   */
  function _approve(
    address owner,
    address spender,
    uint256 amount
  )
    internal
    override
    virtual
    validAddress(spender)
  {
    super._approve(owner, spender, amount);
  }

  /**
   * @dev Check if recipient is valid (not this contract address)
   * @param recipient the account we transfer/approve to
   */
  modifier validAddress(
    address recipient
  )
    virtual
  {
    require(recipient != address(this), "LinkToken: transfer/approve to this contract address");
    _;
  }
}

File 9 of 19 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 10 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 11 of 19 : Owned.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0 <0.8.0;

/**
 * @title The Owned contract
 * @notice A contract with helpers for basic contract ownership.
 */
contract Owned {

  address public owner;
  address private pendingOwner;

  event OwnershipTransferRequested(
    address indexed from,
    address indexed to
  );
  event OwnershipTransferred(
    address indexed from,
    address indexed to
  );

  constructor() public {
    owner = msg.sender;
  }

  /**
   * @dev Allows an owner to begin transferring ownership to a new address,
   * pending.
   */
  function transferOwnership(address _to)
    external
    onlyOwner()
  {
    pendingOwner = _to;

    emit OwnershipTransferRequested(owner, _to);
  }

  /**
   * @dev Allows an ownership transfer to be completed by the recipient.
   */
  function acceptOwnership()
    external
  {
    require(msg.sender == pendingOwner, "Must be proposed owner");

    address oldOwner = owner;
    owner = msg.sender;
    pendingOwner = address(0);

    emit OwnershipTransferred(oldOwner, msg.sender);
  }

  /**
   * @dev Reverts if called by anyone other than the contract owner.
   */
  modifier onlyOwner() {
    require(msg.sender == owner, "Only callable by owner");
    _;
  }

}

File 12 of 19 : AccessControllerInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0 <0.8.0;

interface AccessControllerInterface {
  function hasAccess(address user, bytes calldata data) external view returns (bool);
}

File 13 of 19 : LinkERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0 <0.8.0;

import "../../../vendor/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";

abstract contract LinkERC20 is ERC20 {
  /**
   * @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 increaseApproval(
    address spender,
    uint256 addedValue
  )
    public
    virtual
    returns (bool)
  {
    return super.increaseAllowance(spender, addedValue);
  }

  /**
   * @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 decreaseApproval(
    address spender,
    uint256 subtractedValue
  )
    public
    virtual
    returns (bool)
  {
    return super.decreaseAllowance(spender, subtractedValue);
  }
}

File 14 of 19 : ERC677.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0 <0.8.0;

import "../../vendor/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";
import "./token/IERC677.sol";
import "./token/IERC677Receiver.sol";

abstract contract ERC677 is IERC677, ERC20 {
  /**
   * @dev transfer token to a contract address with additional data if the recipient is a contact.
   * @param to The address to transfer to.
   * @param value The amount to be transferred.
   * @param data The extra data to be passed to the receiving contract.
   */
  function transferAndCall(
    address to,
    uint value,
    bytes memory data
  )
    public
    override
    virtual
    returns (bool success)
  {
    super.transfer(to, value);
    emit Transfer(msg.sender, to, value, data);
    if (isContract(to)) {
      contractFallback(to, value, data);
    }
    return true;
  }


  // PRIVATE

  function contractFallback(
    address to,
    uint value,
    bytes memory data
  )
    private
  {
    IERC677Receiver receiver = IERC677Receiver(to);
    receiver.onTokenTransfer(msg.sender, value, data);
  }

  function isContract(
    address addr
  )
    private
    view
    returns (bool hasCode)
  {
    uint length;
    assembly { length := extcodesize(addr) }
    return length > 0;
  }
}

File 15 of 19 : IERC677.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0 <0.8.0;

import "../../../vendor/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";

interface IERC677 is IERC20 {
  function transferAndCall(
    address to,
    uint value,
    bytes memory data
  )
    external
    returns (bool success);

  event Transfer(
    address indexed from,
    address indexed to,
    uint value,
    bytes data
  );
}

File 16 of 19 : IERC677Receiver.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0 <0.8.0;

interface IERC677Receiver {
  function onTokenTransfer(
    address sender,
    uint value,
    bytes memory data
  )
    external;
}

File 17 of 19 : LinkTokenOptimism.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0 <0.8.0;

/* Interface Imports */
import { IERC165 } from "../../../../../vendor/OpenZeppelin/openzeppelin-contracts/contracts/introspection/IERC165.sol";
import { ITypeAndVersion } from "../../../../v0.6/ITypeAndVersion.sol";
import { IERC20Optimism } from "./IERC20Optimism.sol";

/* Contract Imports */
import { ERC20 } from "../../../../../vendor/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";
import { LinkToken } from "../../../../v0.6/LinkToken.sol";

/// @dev Access controlled mintable & burnable LinkToken, for use on Optimism L2 network.
contract LinkTokenOptimism is ITypeAndVersion, IERC20Optimism, LinkToken {
  /// @dev Returns the address of an L2 bridge contract that has access to mint & burn
  address public immutable l2Bridge;
  /// @inheritdoc IERC20Optimism
  address public immutable override l1Token;

  /**
   * @dev Creates an L2 token connected to a specific L2 bridge gateway & L1 token
   * @param l2BridgeAddr Address of the corresponding L2 bridge gateway.
   * @param l1TokenAddr Address of the corresponding L1 token.
   */
  constructor(
    address l2BridgeAddr,
    address l1TokenAddr
  ) {
    l2Bridge = l2BridgeAddr;
    l1Token = l1TokenAddr;
  }

  /**
   * @notice versions:
   *
   * - LinkTokenOptimism 0.0.1: initial release
   *
   * @inheritdoc ITypeAndVersion
   */
  function typeAndVersion()
    external
    pure
    override(ITypeAndVersion, LinkToken)
    virtual
    returns (string memory)
  {
    return "LinkTokenOptimism 0.0.1";
  }

  /// @dev Checks that message sender is the L2 bridge contract (locked access to mint & burn)
  modifier onlyL2Bridge {
    require(msg.sender == l2Bridge, "Only L2 Bridge can mint and burn");
    _;
  }

  /**
   * @dev Optimism standard bridge L2 gateway uses ERC165 to confirm the required interface
   * @inheritdoc IERC165
   */
  function supportsInterface(
    bytes4 interfaceId
  )
    public
    override
    pure
    returns (bool)
  {
    bytes4 firstSupportedInterface = bytes4(keccak256("supportsInterface(bytes4)")); // ERC165
    bytes4 secondSupportedInterface = IERC20Optimism.l1Token.selector
      ^ IERC20Optimism.mint.selector
      ^ IERC20Optimism.burn.selector;
    return interfaceId == firstSupportedInterface || interfaceId == secondSupportedInterface;
  }

  /// @inheritdoc IERC20Optimism
  function mint(
    address _to,
    uint256 _amount
  )
    public
    override
    onlyL2Bridge()
  {
    _mint(_to, _amount);
    emit Mint(_to, _amount);
  }

  /// @inheritdoc IERC20Optimism
  function burn(
    address _from,
    uint256 _amount
  )
    public
    override
    onlyL2Bridge()
  {
    _burn(_from, _amount);
    emit Burn(_from, _amount);
  }

  /**
   * @dev Overrides parent contract so no tokens are minted on deployment.
   * @inheritdoc LinkToken
   */
  function _onCreate()
    internal
    override
  {}
}

File 18 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 19 of 19 : IERC20Optimism.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.6.0 <0.8.0;

/* Interface Imports */
import { IERC20 } from "../../../../../vendor/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import { IERC165 } from "../../../../../vendor/OpenZeppelin/openzeppelin-contracts/contracts/introspection/IERC165.sol";

/// @dev Interface for the bridged ERC20 token expected by the Optimism standard bridge L2 gateway.
interface IERC20Optimism is IERC20, IERC165 {
  /// @dev Returns the address of an L1 token contract linked to this L2 token contract
  function l1Token()
    external
    returns (address);

  /**
   * @dev Creates `_amount` tokens `_to` account.
   * @notice Called by L2 gateway to deposit tokens.
   * @param _to Address of the recipient.
   * @param _amount Number of tokens to mint.
   */
  function mint(
    address _to,
    uint256 _amount
  )
    external;

  /**
   * @dev Destroys `_amount` tokens `_from` account.
   * @notice Called by L2 gateway to withdraw tokens.
   * @param _from Address of the account holding the tokens to be burnt.
   * @param _amount Number of tokens to burn.
   */
  function burn(
    address _from,
    uint256 _amount
  )
    external;

  /// @dev Emitted when `_amount` tokens are deposited from L1 to L2.
  event Mint(
    address indexed _account,
    uint256 _amount
  );

  /// @dev Emitted when `_amount` tokens are withdrawn from L2 to L1.
  event Burn(
    address indexed _account,
    uint256 _amount
  );
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "metadata": {
    "bytecodeHash": "none"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"l2BridgeAddr","type":"address"},{"internalType":"address","name":"l1TokenAddr","type":"address"}],"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":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Mint","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"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Transfer","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":"_from","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":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseApproval","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":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"l1Token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l2Bridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferAndCall","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"typeAndVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]

60c06040523480156200001c57600080620000196200012a565b50505b506040516200228338038062002283833981810160405260408110156200004d576000806200004a6200012a565b50505b8101908080519291906020018051925060409150505160408082018152600f82526e21b430b4b72634b735902a37b5b2b760891b6020830152516040808201905260048152634c494e4b60e01b60208201526003828051620000b492916020019062000197565b506004818051620000ca92916020019062000197565b5060126005600181620000dc62000259565b8160ff021916908360ff16021790620000f4620002bb565b5050505050620001096200012860201b60201c565b6001600160601b0319606092831b8116608052911b1660a0526200032d565b565b632a2a7adb598160e01b8152600481016020815285602082015260005b868110156200016457808601518282016040015260200162000147565b506020828760640184336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b505050565b8280620001a362000259565b600181600116156101000203166002900490600052602060002090601f016020900481019282620001e357600085620001db620002bb565b505062000247565b82601f106200020157805160ff19168380011785620001db620002bb565b8280016001018562000212620002bb565b5050821562000247579182015b82811115620002475782518262000235620002bb565b5050916020019190600101906200021f565b50620002559291506200030a565b5090565b6303daa959598160e01b8152836004820152602081602483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b8051935060005b6040811015620002b6576000828201526020016200029d565b505050565b6322bd64c0598160e01b8152836004820152846024820152600081604483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b6000815260206200029d565b8082111562000255576000808262000321620002bb565b5050506001016200030a565b60805160601c60a05160601c611f226200036160003980610eef525080610af05280610cf85280610ecb5250611f226000f3fe608060405234801561001957600080610016611b18565b50505b50600436106101755760003560e01c806366188463116100d6578063a9059cbb1161008a578063c01e1bd61161006f578063c01e1bd61461061a578063d73dd62314610622578063dd62ed3e1461066457610175565b8063a9059cbb146105a7578063ae1f6aaf146105e957610175565b806395d89b41116100bb57806395d89b411461051b5780639dc29fac14610523578063a457c2d71461056557610175565b8063661884631461049d57806370a08231146104df57610175565b806323b872dd1161012d5780633950935111610112578063395093511461032c5780634000aea01461036e57806340c10f191461045957610175565b806323b872dd146102c2578063313ce5671461030e57610175565b8063095ea7b31161015e578063095ea7b31461025e57806318160ddd146102a0578063181f5a77146102ba57610175565b806301ffc9a71461018357806306fdde03146101df575b600080610180611b18565b50505b6101cb600480360360208110156101a25760008061019f611b18565b50505b50357fffffffff00000000000000000000000000000000000000000000000000000000166106a8565b604051901515815260200160405180910390f35b6101e7610768565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561022357808201518382015260200161020b565b50505050905090810190601f1680156102505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101cb6004803603604081101561027d5760008061027a611b18565b50505b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610825565b6102a8610843565b60405190815260200160405180910390f35b6101e7610854565b6101cb600480360360608110156102e1576000806102de611b18565b50505b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135909116906040013561088f565b61031661094a565b60405160ff909116815260200160405180910390f35b6101cb6004803603604081101561034b57600080610348611b18565b50505b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610966565b6101cb6004803603606081101561038d5760008061038a611b18565b50505b73ffffffffffffffffffffffffffffffffffffffff823516916020810135918101906060810160408201356401000000008111156103d3576000806103d0611b18565b50505b8201836020820111156103ee576000806103eb611b18565b50505b8035906020019184600183028401116401000000008311171561041957600080610416611b18565b50505b91908080601f01602080910402602001604051908101604052818152929190602084018383808284376000920191909152509295506109f2945050505050565b61049b6004803603604081101561047857600080610475611b18565b50505b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610aee565b005b6101cb600480360360408110156104bc576000806104b9611b18565b50505b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610c10565b6102a8600480360360208110156104fe576000806104fb611b18565b50505b503573ffffffffffffffffffffffffffffffffffffffff16610c23565b6101e7610c50565b61049b600480360360408110156105425760008061053f611b18565b50505b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610cf6565b6101cb6004803603604081101561058457600080610581611b18565b50505b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610e18565b6101cb600480360360408110156105c6576000806105c3611b18565b50505b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610eb5565b6105f1610ec9565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6105f1610eed565b6101cb600480360360408110156106415760008061063e611b18565b50505b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610f11565b6102a86004803603604081101561068357600080610680611b18565b50505b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610f1d565b60007f01ffc9a7a5cef8baa21ed3c5c0d7e23accb804b619e9333b597f47a0d84076e27f1d1d8b63000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000084167f01ffc9a700000000000000000000000000000000000000000000000000000000148061076057507fffffffff00000000000000000000000000000000000000000000000000000000848116908216145b949350505050565b6060600380610775611b83565b600181600116156101000203166002900480601f0160208091040260200160405190810160405281815291906020830182806107af611b83565b6001816001161561010002031660029004801561081b5780601f106107e95761010080836107db611b83565b04028352916020019161081b565b820191906000526020600020905b81610800611b83565b815290600101906020018083116107f757829003601f168201915b5050505050905090565b6000610839610832610f70565b8484610f7b565b5060015b92915050565b6000600261084f611b83565b905090565b606060405160408082019052601781527f4c696e6b546f6b656e4f7074696d69736d20302e302e310000000000000000006020820152905090565b600061089c848484611073565b610940846108a8610f70565b61093b85604051606081016040526028808252611e6b602083013973ffffffffffffffffffffffffffffffffffffffff8a16600090815260016020526040902060006108f2610f70565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020610934611b83565b9190611165565b610f7b565b5060019392505050565b6000806005610957611b83565b906101000a900460ff16905090565b6000610839610973610f70565b8461093b8560016000610984610f70565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002073ffffffffffffffffffffffffffffffffffffffff89166000908152602091909152604090206109ec611b83565b9061121f565b60006109fe8484610eb5565b508373ffffffffffffffffffffffffffffffffffffffff165a610a1f611bde565b73ffffffffffffffffffffffffffffffffffffffff167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c16858560405182815260406020820181815290820183818151815260200191508051906020019080838360005b83811015610a9a578082015183820152602001610a82565b50505050905090810190601f168015610ac75780820380516001836020036101000a031916815260200191505b50935050505060405180910390a3610ade846112a1565b15610940576109408484846112b6565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165a610b2e611bde565b73ffffffffffffffffffffffffffffffffffffffff1614610bb8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f6e6c79204c32204272696467652063616e206d696e7420616e64206275726e604482015260640160405180910390610bb5611b18565b50505b610bc282826113de565b8173ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405190815260200160405180910390a25050565b6000610c1c8383610e18565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260208190526040812061083d611b83565b6060600480610c5d611b83565b600181600116156101000203166002900480601f016020809104026020016040519081016040528181529190602083018280610c97611b83565b6001816001161561010002031660029004801561081b5780601f10610cc35761010080836107db611b83565b820191906000526020600020905b81610cda611b83565b81529060010190602001808311610cd157509395945050505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165a610d36611bde565b73ffffffffffffffffffffffffffffffffffffffff1614610dc0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f6e6c79204c32204272696467652063616e206d696e7420616e64206275726e604482015260640160405180910390610dbd611b18565b50505b610dca8282611545565b8173ffffffffffffffffffffffffffffffffffffffff167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405190815260200160405180910390a25050565b6000610839610e25610f70565b8461093b85604051606081016040526025808252611efd602083013960016000610e4d610f70565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002073ffffffffffffffffffffffffffffffffffffffff8a16600090815260209190915260409020610934611b83565b6000610839610ec2610f70565b8484611073565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610c1c8383610966565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040812073ffffffffffffffffffffffffffffffffffffffff8316600090815260209190915260409020610c1c611b83565b60005a61084f611bde565b815a63996d79a5598160e01b8152602081600483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b8051925060005b6040811015610fd257600082820152602001610fbb565b50505073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611062576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526034815260200180611e11603491396040019150506040518091039061105f611b18565b50505b61106d8484846116b3565b50505050565b815a63996d79a5598160e01b8152602081600483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b8051925060005b60408110156110ca576000828201526020016110b3565b50505073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561115a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526034815260200180611e116034913960400191505060405180910390611157611b18565b50505b61106d84848461185d565b60008184841115611217576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111d35780820151838201526020016111bb565b50505050905090810190601f1680156112005780820380516001836020036101000a031916815260200191505b509250505060405180910390611214611b18565b50505b505050900390565b600082820183811015610c1c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640160405180910390611298611b18565b50509392505050565b600080826112ad611c24565b15159392505050565b8273ffffffffffffffffffffffffffffffffffffffff811663a4c0ed365a6112dc611bde565b85856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561134c578082015183820152602001611334565b50505050905090810190601f1680156113795780820380516001836020036101000a031916815260200191505b5094505050505060006040518083038160008780611395611c24565b1580156113aa576000806113a7611b18565b50505b505a6113b4611c70565b5050505050501580156113d4573d6000803e3d60006113d1611b18565b50505b5050505050505050565b73ffffffffffffffffffffffffffffffffffffffff8216611468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390611465611b18565b50505b61147460008383611a97565b6114828160026109ec611b83565b80600261148d611d5b565b50505073ffffffffffffffffffffffffffffffffffffffff8216600090815260208190526114c3908290604090206109ec611b83565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902081906114f2611d5b565b50505073ffffffffffffffffffffffffffffffffffffffff821660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff82166115ba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611e9360219139604001915050604051809103906115b7611b18565b50505b6115c682600083611a97565b61160e81604051606081016040526022808252611dcd602083013973ffffffffffffffffffffffffffffffffffffffff85166000908152602081905260409020610934611b83565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020819061163d611d5b565b50505061165481600261164e611b83565b90611a9c565b80600261165f611d5b565b50600091505073ffffffffffffffffffffffffffffffffffffffff83167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8316611728576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180611ed96024913960400191505060405180910390611725611b18565b50505b73ffffffffffffffffffffffffffffffffffffffff821661179d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180611def602291396040019150506040518091039061179a611b18565b50505b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205281906040902073ffffffffffffffffffffffffffffffffffffffff841660009081526020919091526040902081906117f4611d5b565b5050508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405190815260200160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff83166118d2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180611eb460259139604001915050604051809103906118cf611b18565b50505b73ffffffffffffffffffffffffffffffffffffffff8216611947576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180611daa6023913960400191505060405180910390611944611b18565b50505b611952838383611a97565b61199a81604051606081016040526026808252611e45602083013973ffffffffffffffffffffffffffffffffffffffff86166000908152602081905260409020610934611b83565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260208190526040902081906119c9611d5b565b50505073ffffffffffffffffffffffffffffffffffffffff8216600090815260208190526119ff908290604090206109ec611b83565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090208190611a2e611d5b565b5050508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a3505050565b505050565b600082821115611b12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015260640160405180910390611217611b18565b50900390565b632a2a7adb598160e01b8152600481016020815285602082015260005b86811015611b50578086015182820160400152602001611b35565b506020828760640184336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b505050565b6303daa959598160e01b8152836004820152602081602483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b8051935060005b6040811015611a9757600082820152602001611bc7565b6373509064598160e01b8152602081600483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b80516000825293506020611bc7565b638435035b598160e01b8152836004820152602081602483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b80516000825293506020611bc7565b6385979f76598160e01b8152611ca1565b808083111561083d575090919050565b808083101561083d575090919050565b836004820152846024820152606060448201528760648201526084810160005b89811015611cd9578089015182820152602001611cc1565b506060828a60a40184336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b815160408301513d6000853e8c8c82606087013350600060045af15059611d2e8e3d611c91565b8d01611d3a8187611c81565b5b82811015611d4f5760008152602001611d3b565b50929d50505050505050565b6322bd64c0598160e01b8152836004820152846024820152600081604483336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b600081526020611bc756fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f20616464726573734c696e6b546f6b656e3a207472616e736665722f617070726f766520746f207468697320636f6e7472616374206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f0000000000000000000000004200000000000000000000000000000000000010000000000000000000000000a36085f69e2889c224210f603d836748e7dc0088

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

0000000000000000000000004200000000000000000000000000000000000010000000000000000000000000a36085f69e2889c224210f603d836748e7dc0088

-----Decoded View---------------
Arg [0] : l2BridgeAddr (address): 0x4200000000000000000000000000000000000010
Arg [1] : l1TokenAddr (address): 0xa36085f69e2889c224210f603d836748e7dc0088

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004200000000000000000000000000000000000010
Arg [1] : 000000000000000000000000a36085f69e2889c224210f603d836748e7dc0088


Deployed ByteCode Sourcemap

626:2301:9:-:0;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;1908:448;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;1908:448:9;;;;:::i;:::-;;;;;;;;;;;;;;;;;2168:89:12;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4244:166;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;4244:166:12;;;;;;;;;:::i;3235:106::-;;;:::i;:::-;;;;;;;;;;;;;;;1395:174:9;;;:::i;4877:317:12:-;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;4877:317:12;;;;;;;;;;;;;;;;;;:::i;3086:89::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;5589:215;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;5589:215:12;;;;;;;;;:::i;545:323:0:-;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;545:323:0;;-1:-1:-1;545:323:0;;-1:-1:-1;;;;;545:323:0:i;2393:160:9:-;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;2393:160:9;;;;;;;;;:::i;:::-;;1203:191:5;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;1203:191:5;;;;;;;;;:::i;3399:125:12:-;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;3399:125:12;;;;:::i;2370:93::-;;;:::i;2590:166:9:-;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;2590:166:9;;;;;;;;;:::i;6291:266:12:-;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;6291:266:12;;;;;;;;;:::i;3727:172::-;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;3727:172:12;;;;;;;;;:::i;790:33:9:-;;;:::i;:::-;;;;;;;;;;;;;;;;;;860:41;;;:::i;565:181:5:-;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;565:181:5;;;;;;;;;:::i;3957:149:12:-;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;3957:149:12;;;;;;;;;;;:::i;1908:448:9:-;2009:4;2063:38;2152:105;2270:38;;;;;;:81;;-1:-1:-1;2312:39:9;;;;;;;;2270:81;2263:88;1908:448;-1:-1:-1;;;;1908:448:9:o;2168:89:12:-;2213:13;2245:5;2238:12;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2168:89;:::o;4244:166::-;4327:4;4343:39;4352:12;:10;:12::i;:::-;4366:7;4375:6;4343:8;:39::i;:::-;-1:-1:-1;4399:4:12;4244:166;;;;;:::o;3235:106::-;3296:7;3322:12;;;:::i;:::-;3315:19;;3235:106;:::o;1395:174:9:-;1509:13;1532:32;;;;;;;;;;;;;;;;;-1:-1:-1;1395:174:9;:::o;4877:317:12:-;4983:4;4999:36;5009:6;5017:9;5028:6;4999:9;:36::i;:::-;5045:121;5054:6;5062:12;:10;:12::i;:::-;5076:89;5114:6;5076:89;;;;;;;;;;;;;;;;:19;;;;;;;:11;:19;;;;;:33;5096:12;:10;:12::i;:::-;5076:33;;;;;;;;;;;;;;;;;:::i;:::-;:37;:89;:37;:89::i;:::-;5045:8;:121::i;:::-;-1:-1:-1;5183:4:12;4877:317;;;;;:::o;3086:89::-;3135:5;;3159:9;;;:::i;:::-;;;;;;;;3152:16;;3086:89;:::o;5589:215::-;5677:4;5693:83;5702:12;:10;:12::i;:::-;5716:7;5725:50;5764:10;5725:11;:25;5737:12;:10;:12::i;:::-;5725:25;;;;;;;;;;;;;;;:34;;;;;;;;;;;;;;;;;:::i;:::-;:38;;:50::i;545:323:0:-;678:12;700:25;715:2;719:5;700:14;:25::i;:::-;;757:2;736:37;;745:10;;;:::i;:::-;736:37;;;761:5;768:4;736:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;783:14;794:2;783:10;:14::i;:::-;779:68;;;807:33;824:2;828:5;835:4;807:16;:33::i;2393:160:9:-;1718:8;1704:22;;:10;;;:::i;:::-;:22;;;1696:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;2500:19:::1;2506:3;2511:7;2500:5;:19::i;:::-;2535:3;2530:18;;;2540:7;2530:18;;::::0;;;::::1;;;;;;;;;2393:160:::0;;:::o;1203:191:5:-;1319:4;1340:49;1364:7;1373:15;1340:23;:49::i;:::-;1333:56;1203:191;-1:-1:-1;;;1203:191:5:o;3399:125:12:-;3499:18;;;3473:7;3499:18;;;;;;;;3473:7;3499:18;;;:::i;2370:93::-;2417:13;2449:7;2442:14;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;2442:14:12;;2370:93;-1:-1:-1;;;;;2370:93:12:o;2590:166:9:-;1718:8;1704:22;;:10;;;:::i;:::-;:22;;;1696:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;2699:21:::1;2705:5;2712:7;2699:5;:21::i;:::-;2736:5;2731:20;;;2743:7;2731:20;;::::0;;;::::1;;;;;;;;;2590:166:::0;;:::o;6291:266:12:-;6384:4;6400:129;6409:12;:10;:12::i;:::-;6423:7;6432:96;6471:15;6432:96;;;;;;;;;;;;;;;;:11;:25;6444:12;:10;:12::i;:::-;6432:25;;;;;;;;;;;;;;;:34;;;;;;;;;;;;;;;;;:::i;3727:172::-;3813:4;3829:42;3839:12;:10;:12::i;:::-;3853:9;3864:6;3829:9;:42::i;790:33:9:-;;;:::o;860:41::-;;;:::o;565:181:5:-;676:4;697:44;721:7;730:10;697:23;:44::i;3957:149:12:-;4072:18;;;4046:7;4072:18;;;:11;:18;;;4046:7;4072:18;:27;;;;;;;;;;;;;;;;;:::i;598:104:15:-;651:15;685:10;;;:::i;1612:197:2:-;1749:7;2046:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2025:26;;:9;:26;;;;2017:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;1766:38:::1;1781:5;1788:7;1797:6;1766:14;:38::i;:::-;1612:197:::0;;;;:::o;1304:207::-;1445:9;2046:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2025:26;;:9;:26;;;;2017:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;1464:42:::1;1480:6;1488:9;1499:6;1464:15;:42::i;5432:163:11:-:0;5518:7;5553:12;5545:6;;;;5537:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;5583:5:11;;;5432:163::o;2690:175::-;2748:7;2779:5;;;2802:6;;;;2794:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;2857:1;2690:175;-1:-1:-1;;;2690:175:11:o;1102:182:0:-;1178:12;1200:11;1250:4;1238:17;;:::i;:::-;1269:10;;;1102:182;-1:-1:-1;;;1102:182:0:o;887:211::-;1035:2;1044:24;;;;1069:10;;;:::i;:::-;1081:5;1088:4;1044:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;887:211;;;;:::o;7832:370:12:-;7915:21;;;7907:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;7983:49;8012:1;8016:7;8025:6;7983:20;:49::i;:::-;8058:24;8075:6;8058:12;;;:::i;:24::-;8043:39;:12;:39;;:::i;:::-;-1:-1:-1;;;8113:18:12;;;:9;:18;;;;;;;:30;;8136:6;;8113:18;;;;;:::i;:30::-;8092:18;;;:9;:18;;;;;;;;;;:51;;;;:::i;:::-;-1:-1:-1;;;8158:37:12;;;8175:1;8158:37;8188:6;8158:37;;;;;;;;;;;;;;7832:370;;:::o;8522:410::-;8605:21;;;8597:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;8675:49;8696:7;8713:1;8717:6;8675:20;:49::i;:::-;8756:68;8779:6;8756:68;;;;;;;;;;;;;;;;:18;;;:9;:18;;;;;;;;;;;;:::i;:68::-;8735:18;;;:9;:18;;;;;;;;;;:89;;;;:::i;:::-;;;;8849:24;8866:6;8849:12;;;:::i;:::-;:16;;:24::i;:::-;8834:39;:12;:39;;:::i;:::-;-1:-1:-1;8914:1:12;;-1:-1:-1;;8888:37:12;;;;8918:6;8888:37;;;;;;;;;;;;;;8522:410;;:::o;9355:340::-;9456:19;;;9448:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;9534:21;;;9526:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;9605:18;;;;;;;:11;:18;;9635:6;;9605:18;;;:27;;;;;;;;;;;;;;;:36;;;;:::i;:::-;;;;9672:7;9656:32;;9665:5;9656:32;;;9681:6;9656:32;;;;;;;;;;;;;;9355:340;;;:::o;7031:530::-;7136:20;;;7128:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;7216:23;;;7208:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;7290:47;7311:6;7319:9;7330:6;7290:20;:47::i;:::-;7368:71;7390:6;7368:71;;;;;;;;;;;;;;;;:17;;;:9;:17;;;;;;;;;;;;:::i;:71::-;7348:17;;;:9;:17;;;;;;;;;;:91;;;;:::i;:::-;-1:-1:-1;;;7472:20:12;;;:9;:20;;;;;;;:32;;7497:6;;7472:20;;;;;:::i;:32::-;7449:20;;;:9;:20;;;;;;;;;;:55;;;;:::i;:::-;;;;7536:9;7519:35;;7528:6;7519:35;;;7547:6;7519:35;;;;;;;;;;;;;;7031:530;;;:::o;10701:92::-;;;;:::o;3136:155:11:-;3194:7;3226:1;3221;:6;;3213:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;3279:5:11;;;3136:155::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading