false
false
0

Contract Address Details

0xDf1765579bb0E9E3CE3A60Cc54ACB2A8F3b6784D

Token
AIHI (AIHI)
Creator
0x22b053–886256 at 0x4d2846–65fd08
Balance
0 ETH ( )
Tokens
Fetching tokens...
Transactions
193 Transactions
Transfers
0 Transfers
Gas Used
8,785,397
Last Balance Update
1471721
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
MyCustomL2Token




Optimization enabled
false
Compiler version
v0.8.20+commit.a1b79de6




EVM Version
paris




Verified at
2025-07-16T13:55:16.297134Z

Constructor Arguments

0x0000000000000000000000004200000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000022b05338364c9aa2b61e5b9baf4283b9028862560000000000000000000000000000000000000000016a4e1b93d29e91760000000000000000000000000000000000000000000000000000000000000000000004414948490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044149484900000000000000000000000000000000000000000000000000000000

 Arg [0] (&amp;amp;amp;amp;lt;b&amp;amp;amp;amp;gt;address&amp;amp;amp;amp;lt;/b&amp;amp;amp;amp;gt;) : &amp;amp;amp;amp;lt;a href=&amp;amp;amp;amp;quot;{#{address_path(@conn, :show, @address)}}&amp;amp;amp;amp;quot;&amp;amp;amp;amp;gt;0x4200000000000000000000000000000000000010&amp;amp;amp;amp;lt;/a&amp;amp;amp;amp;gt; Arg [1] (&amp;amp;amp;lt;b&amp;amp;amp;gt;address&amp;amp;amp;lt;/b&amp;amp;amp;gt;) : &amp;amp;amp;lt;a href=&amp;amp;amp;quot;{#{address_path(@conn, :show, @address)}}&amp;amp;amp;quot;&amp;amp;amp;gt;0x0000000000000000000000000000000000000001&amp;amp;amp;lt;/a&amp;amp;amp;gt; Arg [2] (&amp;amp;lt;b&amp;amp;gt;string&amp;amp;lt;/b&amp;amp;gt;) : AIHI Arg [3] (&amp;lt;b&amp;gt;string&amp;lt;/b&amp;gt;) : AIHI Arg [4] (&lt;b&gt;address&lt;/b&gt;) : &lt;a href=&quot;{#{address_path(@conn, :show, @address)}}&quot;&gt;0x22b05338364c9aa2b61e5b9baf4283b902886256&lt;/a&gt; Arg [5] (<b>uint256</b>) : 438000000000000000000000000
              

contracts/MyCustomL2Token.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

interface ILegacyMintableERC20 {
    function mint(address _to, uint256 _amount) external;
    function burn(address _from, uint256 _amount) external;

    function l1Token() external view returns (address);
    function l2Bridge() external view returns (address);
}

interface IOptimismMintableERC20 {
    function remoteToken() external view returns (address);
    function bridge() external view returns (address);
    function mint(address _to, uint256 _amount) external;
    function burn(address _from, uint256 _amount) external;
}

contract Semver {
    string public version;

    function toString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0";
        }

        uint256 temp = value;
        uint256 digits;

        while (temp != 0) {
            digits++;
            temp /= 10;
        }

        bytes memory buffer = new bytes(digits);

        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }

        return string(buffer);
    }

    constructor(uint256 major, uint256 minor, uint256 patch) {
        version = string(
            abi.encodePacked(toString(major), ".", toString(minor), ".", toString(patch))
        );
    }
}

contract MyCustomL2Token is IOptimismMintableERC20, ILegacyMintableERC20, ERC20, Semver {
    address public immutable REMOTE_TOKEN;
    address public immutable BRIDGE;

    event Mint(address indexed account, uint256 amount);
    event Burn(address indexed account, uint256 amount);

    modifier onlyBridge() {
        require(msg.sender == BRIDGE, "MyCustomL2Token: only bridge can mint and burn");
        _;
    }

    constructor(
    address _bridge,
    address _remoteToken,
    string memory _name,
    string memory _symbol,
    address _initialHolder,          // 新增:初始持币人
    uint256 _initialSupply           // 新增:初始供应量
        ) ERC20(_name, _symbol) Semver(1, 0, 0) {
            REMOTE_TOKEN = _remoteToken;
            BRIDGE = _bridge;

            if (_initialSupply > 0) {
                _mint(_initialHolder, _initialSupply);  // 直接绕开 onlyBridge,调用 ERC20._mint()
                emit Mint(_initialHolder, _initialSupply);
            }
        }


    function mint(address _to, uint256 _amount)
        external
        override(IOptimismMintableERC20, ILegacyMintableERC20)
        onlyBridge
    {
        _mint(_to, _amount);
        emit Mint(_to, _amount);
    }

    function burn(address _from, uint256 _amount)
        external
        override(IOptimismMintableERC20, ILegacyMintableERC20)
        onlyBridge
    {
        _burn(_from, _amount);
        emit Burn(_from, _amount);
    }

    function supportsInterface(bytes4 _interfaceId) external pure returns (bool) {
        bytes4 iface1 = type(IERC165).interfaceId;
        bytes4 iface2 = type(ILegacyMintableERC20).interfaceId;
        bytes4 iface3 = type(IOptimismMintableERC20).interfaceId;
        return _interfaceId == iface1 || _interfaceId == iface2 || _interfaceId == iface3;
    }

    function l1Token() public view override returns (address) {
        return REMOTE_TOKEN;
    }

    function l2Bridge() public view override returns (address) {
        return BRIDGE;
    }

    function remoteToken() public view override returns (address) {
        return REMOTE_TOKEN;
    }

    function bridge() public view override returns (address) {
        return BRIDGE;
    }
}
        

@openzeppelin/contracts/access/Ownable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

@openzeppelin/contracts/interfaces/draft-IERC6093.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC-20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC-721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC-1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
          

@openzeppelin/contracts/token/ERC20/ERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * 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 ERC-20
 * applications.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * Both 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 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 default value returned by this function, unless
     * it's 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 returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual 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 `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` 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 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Skips emitting an {Approval} event indicating an allowance update. This is not
     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
     *
     * 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 `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` 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.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     *
     * ```solidity
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance < type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}
          

@openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}
          

@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
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);
}
          

@openzeppelin/contracts/utils/Context.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
          

@openzeppelin/contracts/utils/introspection/IERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * 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[ERC 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);
}
          

contracts/BatchTransfer.sol

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

interface IERC20 {
    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);
}

contract BatchTransfer {
    uint256 public constant MAX_BATCH_SIZE = 180;

    event Transfer(address indexed from, address indexed to, uint256 amount);
    event EthTransferred(address indexed from, address indexed to, uint256 amount);

    event ERC20Transfer(
        address indexed token,
        address indexed from,
        address indexed to,
        uint256 amount
    );

    // 批量转ETH,每人相同金额
    function batchTransferETH(
        address[] calldata recipients,
        uint256 amount
    ) external payable {
        require(recipients.length <= MAX_BATCH_SIZE, "Too many recipients");
        require(amount > 0, "Amount must be greater than zero");

        uint256 totalAmount = recipients.length * amount;
        require(msg.value >= totalAmount, "Insufficient ETH");

        for (uint256 i = 0; i < recipients.length; i++) {
            payable(recipients[i]).transfer(amount);
            emit EthTransferred(msg.sender, recipients[i], amount);
        }

        // Refund extra ETH
        uint256 refund = msg.value - totalAmount;
        if (refund > 0) {
            payable(msg.sender).transfer(refund);
        }
    }

    // 批量转ERC20,每人相同数量
    function batchTransferERC20(
        address token,
        address[] calldata recipients,
        uint256 amount
    ) external {
        require(recipients.length <= MAX_BATCH_SIZE, "Too many recipients");
        require(amount > 0, "Amount must be greater than zero");

        for (uint256 i = 0; i < recipients.length; i++) {
            bool success = IERC20(token).transferFrom(
                msg.sender,
                recipients[i],
                amount
            );
            require(success, "ERC20 transfer failed");
            emit ERC20Transfer(token, msg.sender, recipients[i], amount);
        }
    }
}
          

contracts/BridgableToken.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

interface ILegacyMintableERC20 {
    function mint(address _to, uint256 _amount) external;
    function burn(address _from, uint256 _amount) external;

    function l1Token() external view returns (address);
    function l2Bridge() external view returns (address);
}

interface IOptimismMintableERC20 {
    function remoteToken() external view returns (address);
    function bridge() external view returns (address);
    function mint(address _to, uint256 _amount) external;
    function burn(address _from, uint256 _amount) external;
}

contract Semver {
    string public version;

    function toString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0";
        }

        uint256 temp = value;
        uint256 digits;

        while (temp != 0) {
            digits++;
            temp /= 10;
        }

        bytes memory buffer = new bytes(digits);

        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }

        return string(buffer);
    }

    constructor(uint256 major, uint256 minor, uint256 patch) {
        version = string(
            abi.encodePacked(toString(major), ".", toString(minor), ".", toString(patch))
        );
    }
}

contract BridgableToken is IOptimismMintableERC20, ILegacyMintableERC20, ERC20, Semver {
    address public immutable REMOTE_TOKEN;
    address public immutable BRIDGE;

    event Mint(address indexed account, uint256 amount);
    event Burn(address indexed account, uint256 amount);

    modifier onlyBridge() {
        require(msg.sender == BRIDGE, "MyCustomL2Token: only bridge can mint and burn");
        _;
    }

    constructor(
        address _bridge,
        address _remoteToken,
        string memory _name,
        string memory _symbol
    ) ERC20(_name, _symbol) Semver(1, 0, 0) {
        REMOTE_TOKEN = _remoteToken;
        BRIDGE = _bridge;
    }

    function mint(address _to, uint256 _amount)
        external
        override(IOptimismMintableERC20, ILegacyMintableERC20)
        onlyBridge
    {
        _mint(_to, _amount);
        emit Mint(_to, _amount);
    }

    function burn(address _from, uint256 _amount)
        external
        override(IOptimismMintableERC20, ILegacyMintableERC20)
        onlyBridge
    {
        _burn(_from, _amount);
        emit Burn(_from, _amount);
    }

    function supportsInterface(bytes4 _interfaceId) external pure returns (bool) {
        bytes4 iface1 = type(IERC165).interfaceId;
        bytes4 iface2 = type(ILegacyMintableERC20).interfaceId;
        bytes4 iface3 = type(IOptimismMintableERC20).interfaceId;
        return _interfaceId == iface1 || _interfaceId == iface2 || _interfaceId == iface3;
    }

    function l1Token() public view override returns (address) {
        return REMOTE_TOKEN;
    }

    function l2Bridge() public view override returns (address) {
        return BRIDGE;
    }

    function remoteToken() public view override returns (address) {
        return REMOTE_TOKEN;
    }

    function bridge() public view override returns (address) {
        return BRIDGE;
    }
}

          

contracts/BridgableToken6.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

interface ILegacyMintableERC20 {
    function mint(address _to, uint256 _amount) external;
    function burn(address _from, uint256 _amount) external;

    function l1Token() external view returns (address);
    function l2Bridge() external view returns (address);
}

interface IOptimismMintableERC20 {
    function remoteToken() external view returns (address);
    function bridge() external view returns (address);
    function mint(address _to, uint256 _amount) external;
    function burn(address _from, uint256 _amount) external;
}

contract Semver {
    string public version;

    function toString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0";
        }

        uint256 temp = value;
        uint256 digits;

        while (temp != 0) {
            digits++;
            temp /= 10;
        }

        bytes memory buffer = new bytes(digits);

        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }

        return string(buffer);
    }

    constructor(uint256 major, uint256 minor, uint256 patch) {
        version = string(
            abi.encodePacked(
                toString(major),
                ".",
                toString(minor),
                ".",
                toString(patch)
            )
        );
    }
}

contract BridgableToken6 is
    IOptimismMintableERC20,
    ILegacyMintableERC20,
    ERC20,
    Semver
{
    address public immutable REMOTE_TOKEN;
    address public immutable BRIDGE;

    event Mint(address indexed account, uint256 amount);
    event Burn(address indexed account, uint256 amount);

    modifier onlyBridge() {
        require(
            msg.sender == BRIDGE,
            "MyCustomL2Token: only bridge can mint and burn"
        );
        _;
    }

    constructor(
        address _bridge,
        address _remoteToken,
        string memory _name,
        string memory _symbol
    ) ERC20(_name, _symbol) Semver(1, 0, 0) {
        REMOTE_TOKEN = _remoteToken;
        BRIDGE = _bridge;
    }

    function mint(
        address _to,
        uint256 _amount
    )
        external
        override(IOptimismMintableERC20, ILegacyMintableERC20)
        onlyBridge
    {
        _mint(_to, _amount);
        emit Mint(_to, _amount);
    }

    function burn(
        address _from,
        uint256 _amount
    )
        external
        override(IOptimismMintableERC20, ILegacyMintableERC20)
        onlyBridge
    {
        _burn(_from, _amount);
        emit Burn(_from, _amount);
    }

    function supportsInterface(
        bytes4 _interfaceId
    ) external pure returns (bool) {
        bytes4 iface1 = type(IERC165).interfaceId;
        bytes4 iface2 = type(ILegacyMintableERC20).interfaceId;
        bytes4 iface3 = type(IOptimismMintableERC20).interfaceId;
        return
            _interfaceId == iface1 ||
            _interfaceId == iface2 ||
            _interfaceId == iface3;
    }

    function l1Token() public view override returns (address) {
        return REMOTE_TOKEN;
    }

    function l2Bridge() public view override returns (address) {
        return BRIDGE;
    }

    function remoteToken() public view override returns (address) {
        return REMOTE_TOKEN;
    }

    function bridge() public view override returns (address) {
        return BRIDGE;
    }

    function decimals() public pure override returns (uint8) {
        return 6;
    }
}
          

contracts/ComonL1Token.sol

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

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

contract ComonL1Token is ERC20 {
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 initialSupply,
        address to
    ) ERC20(name_, symbol_) {
        _mint(to, initialSupply);
    }

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

    // 任何人都可以 burn 任意地址的余额(前提是已授权或自己)
    function burn(address from, uint256 amount) external {
        _burn(from, amount);
    }
}
          

contracts/MyCustomL2Token copy.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

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

/// @title Semver - 简单版本信息管理合约
contract Semver {
    string public version;

    constructor(uint256 major, uint256 minor, uint256 patch) {
        version = string(
            abi.encodePacked(
                toString(major), ".", toString(minor), ".", toString(patch)
            )
        );
    }

    function toString(uint256 value) internal pure returns (string memory) {
        if (value == 0) return "0";
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }
}

/// @title MyCustomL2Token - 可桥接的 L2 自定义代币
contract MyCustomL2Token is ERC20, Ownable, Semver {
    address public immutable bridge;
    address public immutable remoteToken;

    event Mint(address indexed to, uint256 amount);
    event Burn(address indexed from, uint256 amount);

    constructor(
        address _bridge,
        address _remoteToken,
        string memory _name,
        string memory _symbol,
        address _initialHolder,
        uint256 _initialSupply
    )
        ERC20(_name, _symbol)
        Ownable(_initialHolder)
        Semver(1, 0, 0)
    {
        require(_bridge != address(0), "Bridge address is zero");
        require(_remoteToken != address(0), "Remote token address is zero");
        require(_initialHolder != address(0), "Invalid initial holder");

        bridge = _bridge;
        remoteToken = _remoteToken;

        if (_initialSupply > 0) {
            _mint(_initialHolder, _initialSupply);
            emit Mint(_initialHolder, _initialSupply);
        }
    }

    /// @notice 只有合约拥有者能铸币
    function mint(address to, uint256 amount) external onlyOwner {
        _mint(to, amount);
        emit Mint(to, amount);
    }

    /// @notice 只有合约拥有者能销毁指定账户代币
    function burn(address from, uint256 amount) external onlyOwner {
        _burn(from, amount);
        emit Burn(from, amount);
    }
} 
          

contracts/MyL1Token.sol

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

contract MyToken {
    string public name;
    string public symbol;
    uint8 public decimals = 18;
    uint256 public totalSupply;

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

    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
    error ERC20InvalidSender(address sender);
    error ERC20InvalidReceiver(address receiver);
    error ERC20InvalidApprover(address approver);
    error ERC20InvalidSpender(address spender);

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    constructor(
        string memory _name,
        string memory _symbol,
        address initialHolder,
        uint256 initialSupply
    ) {
        require(initialHolder != address(0), "initialHolder is zero address");
        name = _name;
        symbol = _symbol;
        _mint(initialHolder, initialSupply);
    }

    function faucet() external {
        uint256 amount = 1000 * 10 ** uint256(decimals);
        _mint(msg.sender, amount);
    }

    function balanceOf(address account) external view returns (uint256) {
        return _balances[account];
    }

    function transfer(address to, uint256 value) external returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    function approve(address spender, uint256 value) external returns (bool) {
        if (msg.sender == address(0)) revert ERC20InvalidApprover(msg.sender);
        if (spender == address(0)) revert ERC20InvalidSpender(spender);

        _allowances[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

    function transferFrom(address from, address to, uint256 value) external returns (bool) {
        uint256 currentAllowance = _allowances[from][msg.sender];
        if (currentAllowance < value)
            revert ERC20InsufficientAllowance(msg.sender, currentAllowance, value);

        _transfer(from, to, value);
        _approve(from, msg.sender, currentAllowance - value);
        return true;
    }

    function allowance(address owner, address spender) external view returns (uint256) {
        return _allowances[owner][spender];
    }

    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) revert ERC20InvalidSender(from);
        if (to == address(0)) revert ERC20InvalidReceiver(to);

        uint256 fromBalance = _balances[from];
        if (fromBalance < value)
            revert ERC20InsufficientBalance(from, fromBalance, value);

        _balances[from] = fromBalance - value;
        _balances[to] += value;
        emit Transfer(from, to, value);
    }

    function _approve(address owner, address spender, uint256 value) internal {
        _allowances[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

    function _mint(address account, uint256 value) internal {
        if (account == address(0)) revert ERC20InvalidReceiver(account);
        totalSupply += value;
        _balances[account] += value;
        emit Transfer(address(0), account, value);
    }
}
          

Compiler Settings

{"outputSelection":{"*":{"*":["*"],"":["*"]}},"optimizer":{"runs":200,"enabled":false},"libraries":{},"evmVersion":"paris"}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_bridge","internalType":"address"},{"type":"address","name":"_remoteToken","internalType":"address"},{"type":"string","name":"_name","internalType":"string"},{"type":"string","name":"_symbol","internalType":"string"},{"type":"address","name":"_initialHolder","internalType":"address"},{"type":"uint256","name":"_initialSupply","internalType":"uint256"}]},{"type":"error","name":"ERC20InsufficientAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"allowance","internalType":"uint256"},{"type":"uint256","name":"needed","internalType":"uint256"}]},{"type":"error","name":"ERC20InsufficientBalance","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"balance","internalType":"uint256"},{"type":"uint256","name":"needed","internalType":"uint256"}]},{"type":"error","name":"ERC20InvalidApprover","inputs":[{"type":"address","name":"approver","internalType":"address"}]},{"type":"error","name":"ERC20InvalidReceiver","inputs":[{"type":"address","name":"receiver","internalType":"address"}]},{"type":"error","name":"ERC20InvalidSender","inputs":[{"type":"address","name":"sender","internalType":"address"}]},{"type":"error","name":"ERC20InvalidSpender","inputs":[{"type":"address","name":"spender","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Burn","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Mint","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"BRIDGE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"REMOTE_TOKEN","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"bridge","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"address","name":"_from","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"l1Token","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"l2Bridge","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"remoteToken","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"_interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"version","inputs":[]}]
              

Contract Creation Code

Verify & Publish
0x60c06040523480156200001157600080fd5b506040516200267438038062002674833981810160405281019062000037919062000818565b6001600080868681600390816200004f919062000b33565b50806004908162000061919062000b33565b5050506200007583620001af60201b60201c565b6200008683620001af60201b60201c565b6200009783620001af60201b60201c565b604051602001620000ab9392919062000cac565b60405160208183030381529060405260059081620000ca919062000b33565b505050508473ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508573ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250506000811115620001a3576200015282826200032860201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885826040516200019a919062000d0e565b60405180910390a25b50505050505062000f56565b606060008203620001f8576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905062000323565b600082905060005b6000821462000230578080620002169062000d5a565b915050600a8262000228919062000dd6565b915062000200565b60008167ffffffffffffffff8111156200024f576200024e62000679565b5b6040519080825280601f01601f191660200182016040528015620002825781602001600182028036833780820191505090505b5090505b600085146200031c576001826200029e919062000e0e565b9150600a85620002af919062000e49565b6030620002bd919062000e81565b60f81b818381518110620002d657620002d562000ebc565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8562000314919062000dd6565b945062000286565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200039d5760006040517fec442f0500000000000000000000000000000000000000000000000000000000815260040162000394919062000efc565b60405180910390fd5b620003b160008383620003b560201b60201c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036200040b578060026000828254620003fe919062000e81565b92505081905550620004e1565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156200049a578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401620004919392919062000f19565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200052c578060026000828254039250508190555062000579565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620005d8919062000d0e565b60405180910390a3505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200062682620005f9565b9050919050565b620006388162000619565b81146200064457600080fd5b50565b60008151905062000658816200062d565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620006b38262000668565b810181811067ffffffffffffffff82111715620006d557620006d462000679565b5b80604052505050565b6000620006ea620005e5565b9050620006f88282620006a8565b919050565b600067ffffffffffffffff8211156200071b576200071a62000679565b5b620007268262000668565b9050602081019050919050565b60005b838110156200075357808201518184015260208101905062000736565b60008484015250505050565b6000620007766200077084620006fd565b620006de565b90508281526020810184848401111562000795576200079462000663565b5b620007a284828562000733565b509392505050565b600082601f830112620007c257620007c16200065e565b5b8151620007d48482602086016200075f565b91505092915050565b6000819050919050565b620007f281620007dd565b8114620007fe57600080fd5b50565b6000815190506200081281620007e7565b92915050565b60008060008060008060c08789031215620008385762000837620005ef565b5b60006200084889828a0162000647565b96505060206200085b89828a0162000647565b955050604087015167ffffffffffffffff8111156200087f576200087e620005f4565b5b6200088d89828a01620007aa565b945050606087015167ffffffffffffffff811115620008b157620008b0620005f4565b5b620008bf89828a01620007aa565b9350506080620008d289828a0162000647565b92505060a0620008e589828a0162000801565b9150509295509295509295565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200094557607f821691505b6020821081036200095b576200095a620008fd565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620009c57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000986565b620009d1868362000986565b95508019841693508086168417925050509392505050565b6000819050919050565b600062000a1462000a0e62000a0884620007dd565b620009e9565b620007dd565b9050919050565b6000819050919050565b62000a3083620009f3565b62000a4862000a3f8262000a1b565b84845462000993565b825550505050565b600090565b62000a5f62000a50565b62000a6c81848462000a25565b505050565b5b8181101562000a945762000a8860008262000a55565b60018101905062000a72565b5050565b601f82111562000ae35762000aad8162000961565b62000ab88462000976565b8101602085101562000ac8578190505b62000ae062000ad78562000976565b83018262000a71565b50505b505050565b600082821c905092915050565b600062000b086000198460080262000ae8565b1980831691505092915050565b600062000b23838362000af5565b9150826002028217905092915050565b62000b3e82620008f2565b67ffffffffffffffff81111562000b5a5762000b5962000679565b5b62000b6682546200092c565b62000b7382828562000a98565b600060209050601f83116001811462000bab576000841562000b96578287015190505b62000ba2858262000b15565b86555062000c12565b601f19841662000bbb8662000961565b60005b8281101562000be55784890151825560018201915060208501945060208101905062000bbe565b8683101562000c05578489015162000c01601f89168262000af5565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b600062000c3282620008f2565b62000c3e818562000c1a565b935062000c5081856020860162000733565b80840191505092915050565b7f2e00000000000000000000000000000000000000000000000000000000000000600082015250565b600062000c9460018362000c1a565b915062000ca18262000c5c565b600182019050919050565b600062000cba828662000c25565b915062000cc78262000c85565b915062000cd5828562000c25565b915062000ce28262000c85565b915062000cf0828462000c25565b9150819050949350505050565b62000d0881620007dd565b82525050565b600060208201905062000d25600083018462000cfd565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000d6782620007dd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362000d9c5762000d9b62000d2b565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600062000de382620007dd565b915062000df083620007dd565b92508262000e035762000e0262000da7565b5b828204905092915050565b600062000e1b82620007dd565b915062000e2883620007dd565b925082820390508181111562000e435762000e4262000d2b565b5b92915050565b600062000e5682620007dd565b915062000e6383620007dd565b92508262000e765762000e7562000da7565b5b828206905092915050565b600062000e8e82620007dd565b915062000e9b83620007dd565b925082820190508082111562000eb65762000eb562000d2b565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b62000ef68162000619565b82525050565b600060208201905062000f13600083018462000eeb565b92915050565b600060608201905062000f30600083018662000eeb565b62000f3f602083018562000cfd565b62000f4e604083018462000cfd565b949350505050565b60805160a0516116ce62000fa660003960008181610630015281816108820152818161099101528181610a900152610ab6015260008181610515015281816109b901526109e101526116ce6000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063c01e1bd611610071578063c01e1bd614610320578063d6c0b2c41461033e578063dd62ed3e1461035c578063e78cea921461038c578063ee9a31a2146103aa57610121565b806370a082311461026857806395d89b41146102985780639dc29fac146102b6578063a9059cbb146102d2578063ae1f6aaf1461030257610121565b806318160ddd116100f457806318160ddd146101c257806323b872dd146101e0578063313ce5671461021057806340c10f191461022e57806354fd4d501461024a57610121565b806301ffc9a714610126578063033964be1461015657806306fdde0314610174578063095ea7b314610192575b600080fd5b610140600480360381019061013b91906111d8565b6103c8565b60405161014d9190611220565b60405180910390f35b61015e610513565b60405161016b919061127c565b60405180910390f35b61017c610537565b6040516101899190611327565b60405180910390f35b6101ac60048036038101906101a791906113ab565b6105c9565b6040516101b99190611220565b60405180910390f35b6101ca6105ec565b6040516101d791906113fa565b60405180910390f35b6101fa60048036038101906101f59190611415565b6105f6565b6040516102079190611220565b60405180910390f35b610218610625565b6040516102259190611484565b60405180910390f35b610248600480360381019061024391906113ab565b61062e565b005b610252610718565b60405161025f9190611327565b60405180910390f35b610282600480360381019061027d919061149f565b6107a6565b60405161028f91906113fa565b60405180910390f35b6102a06107ee565b6040516102ad9190611327565b60405180910390f35b6102d060048036038101906102cb91906113ab565b610880565b005b6102ec60048036038101906102e791906113ab565b61096a565b6040516102f99190611220565b60405180910390f35b61030a61098d565b604051610317919061127c565b60405180910390f35b6103286109b5565b604051610335919061127c565b60405180910390f35b6103466109dd565b604051610353919061127c565b60405180910390f35b610376600480360381019061037191906114cc565b610a05565b60405161038391906113fa565b60405180910390f35b610394610a8c565b6040516103a1919061127c565b60405180910390f35b6103b2610ab4565b6040516103bf919061127c565b60405180910390f35b6000807f01ffc9a700000000000000000000000000000000000000000000000000000000905060007fb302e1cc00000000000000000000000000000000000000000000000000000000905060007fec4fc8e3000000000000000000000000000000000000000000000000000000009050827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104c15750817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105095750807bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9350505050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6060600380546105469061153b565b80601f01602080910402602001604051908101604052809291908181526020018280546105729061153b565b80156105bf5780601f10610594576101008083540402835291602001916105bf565b820191906000526020600020905b8154815290600101906020018083116105a257829003601f168201915b5050505050905090565b6000806105d4610ad8565b90506105e1818585610ae0565b600191505092915050565b6000600254905090565b600080610601610ad8565b905061060e858285610af2565b610619858585610b87565b60019150509392505050565b60006012905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b3906115de565b60405180910390fd5b6106c68282610c7b565b8173ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405161070c91906113fa565b60405180910390a25050565b600580546107259061153b565b80601f01602080910402602001604051908101604052809291908181526020018280546107519061153b565b801561079e5780601f106107735761010080835404028352916020019161079e565b820191906000526020600020905b81548152906001019060200180831161078157829003601f168201915b505050505081565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546107fd9061153b565b80601f01602080910402602001604051908101604052809291908181526020018280546108299061153b565b80156108765780601f1061084b57610100808354040283529160200191610876565b820191906000526020600020905b81548152906001019060200180831161085957829003601f168201915b5050505050905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461090e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610905906115de565b60405180910390fd5b6109188282610cfd565b8173ffffffffffffffffffffffffffffffffffffffff167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405161095e91906113fa565b60405180910390a25050565b600080610975610ad8565b9050610982818585610b87565b600191505092915050565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b600033905090565b610aed8383836001610d7f565b505050565b6000610afe8484610a05565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610b815781811015610b71578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610b68939291906115fe565b60405180910390fd5b610b8084848484036000610d7f565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610bf95760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610bf0919061127c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c6b5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610c62919061127c565b60405180910390fd5b610c76838383610f56565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ced5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610ce4919061127c565b60405180910390fd5b610cf960008383610f56565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d6f5760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610d66919061127c565b60405180910390fd5b610d7b82600083610f56565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610df15760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610de8919061127c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610e635760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610e5a919061127c565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015610f50578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610f4791906113fa565b60405180910390a35b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fa8578060026000828254610f9c9190611664565b9250508190555061107b565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611034578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161102b939291906115fe565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110c45780600260008282540392505081905550611111565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161116e91906113fa565b60405180910390a3505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6111b581611180565b81146111c057600080fd5b50565b6000813590506111d2816111ac565b92915050565b6000602082840312156111ee576111ed61117b565b5b60006111fc848285016111c3565b91505092915050565b60008115159050919050565b61121a81611205565b82525050565b60006020820190506112356000830184611211565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112668261123b565b9050919050565b6112768161125b565b82525050565b6000602082019050611291600083018461126d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156112d15780820151818401526020810190506112b6565b60008484015250505050565b6000601f19601f8301169050919050565b60006112f982611297565b61130381856112a2565b93506113138185602086016112b3565b61131c816112dd565b840191505092915050565b6000602082019050818103600083015261134181846112ee565b905092915050565b6113528161125b565b811461135d57600080fd5b50565b60008135905061136f81611349565b92915050565b6000819050919050565b61138881611375565b811461139357600080fd5b50565b6000813590506113a58161137f565b92915050565b600080604083850312156113c2576113c161117b565b5b60006113d085828601611360565b92505060206113e185828601611396565b9150509250929050565b6113f481611375565b82525050565b600060208201905061140f60008301846113eb565b92915050565b60008060006060848603121561142e5761142d61117b565b5b600061143c86828701611360565b935050602061144d86828701611360565b925050604061145e86828701611396565b9150509250925092565b600060ff82169050919050565b61147e81611468565b82525050565b60006020820190506114996000830184611475565b92915050565b6000602082840312156114b5576114b461117b565b5b60006114c384828501611360565b91505092915050565b600080604083850312156114e3576114e261117b565b5b60006114f185828601611360565b925050602061150285828601611360565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061155357607f821691505b6020821081036115665761156561150c565b5b50919050565b7f4d79437573746f6d4c32546f6b656e3a206f6e6c79206272696467652063616e60008201527f206d696e7420616e64206275726e000000000000000000000000000000000000602082015250565b60006115c8602e836112a2565b91506115d38261156c565b604082019050919050565b600060208201905081810360008301526115f7816115bb565b9050919050565b6000606082019050611613600083018661126d565b61162060208301856113eb565b61162d60408301846113eb565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061166f82611375565b915061167a83611375565b925082820190508082111561169257611691611635565b5b9291505056fea264697066735822122004a65fd455403fadf226cc87f7d734986386988a4b12d0ddce59a3938bafd72f64736f6c634300081400330000000000000000000000004200000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000022b05338364c9aa2b61e5b9baf4283b9028862560000000000000000000000000000000000000000016a4e1b93d29e91760000000000000000000000000000000000000000000000000000000000000000000004414948490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044149484900000000000000000000000000000000000000000000000000000000

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063c01e1bd611610071578063c01e1bd614610320578063d6c0b2c41461033e578063dd62ed3e1461035c578063e78cea921461038c578063ee9a31a2146103aa57610121565b806370a082311461026857806395d89b41146102985780639dc29fac146102b6578063a9059cbb146102d2578063ae1f6aaf1461030257610121565b806318160ddd116100f457806318160ddd146101c257806323b872dd146101e0578063313ce5671461021057806340c10f191461022e57806354fd4d501461024a57610121565b806301ffc9a714610126578063033964be1461015657806306fdde0314610174578063095ea7b314610192575b600080fd5b610140600480360381019061013b91906111d8565b6103c8565b60405161014d9190611220565b60405180910390f35b61015e610513565b60405161016b919061127c565b60405180910390f35b61017c610537565b6040516101899190611327565b60405180910390f35b6101ac60048036038101906101a791906113ab565b6105c9565b6040516101b99190611220565b60405180910390f35b6101ca6105ec565b6040516101d791906113fa565b60405180910390f35b6101fa60048036038101906101f59190611415565b6105f6565b6040516102079190611220565b60405180910390f35b610218610625565b6040516102259190611484565b60405180910390f35b610248600480360381019061024391906113ab565b61062e565b005b610252610718565b60405161025f9190611327565b60405180910390f35b610282600480360381019061027d919061149f565b6107a6565b60405161028f91906113fa565b60405180910390f35b6102a06107ee565b6040516102ad9190611327565b60405180910390f35b6102d060048036038101906102cb91906113ab565b610880565b005b6102ec60048036038101906102e791906113ab565b61096a565b6040516102f99190611220565b60405180910390f35b61030a61098d565b604051610317919061127c565b60405180910390f35b6103286109b5565b604051610335919061127c565b60405180910390f35b6103466109dd565b604051610353919061127c565b60405180910390f35b610376600480360381019061037191906114cc565b610a05565b60405161038391906113fa565b60405180910390f35b610394610a8c565b6040516103a1919061127c565b60405180910390f35b6103b2610ab4565b6040516103bf919061127c565b60405180910390f35b6000807f01ffc9a700000000000000000000000000000000000000000000000000000000905060007fb302e1cc00000000000000000000000000000000000000000000000000000000905060007fec4fc8e3000000000000000000000000000000000000000000000000000000009050827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104c15750817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105095750807bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9350505050919050565b7f000000000000000000000000000000000000000000000000000000000000000181565b6060600380546105469061153b565b80601f01602080910402602001604051908101604052809291908181526020018280546105729061153b565b80156105bf5780601f10610594576101008083540402835291602001916105bf565b820191906000526020600020905b8154815290600101906020018083116105a257829003601f168201915b5050505050905090565b6000806105d4610ad8565b90506105e1818585610ae0565b600191505092915050565b6000600254905090565b600080610601610ad8565b905061060e858285610af2565b610619858585610b87565b60019150509392505050565b60006012905090565b7f000000000000000000000000420000000000000000000000000000000000001073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b3906115de565b60405180910390fd5b6106c68282610c7b565b8173ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405161070c91906113fa565b60405180910390a25050565b600580546107259061153b565b80601f01602080910402602001604051908101604052809291908181526020018280546107519061153b565b801561079e5780601f106107735761010080835404028352916020019161079e565b820191906000526020600020905b81548152906001019060200180831161078157829003601f168201915b505050505081565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546107fd9061153b565b80601f01602080910402602001604051908101604052809291908181526020018280546108299061153b565b80156108765780601f1061084b57610100808354040283529160200191610876565b820191906000526020600020905b81548152906001019060200180831161085957829003601f168201915b5050505050905090565b7f000000000000000000000000420000000000000000000000000000000000001073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461090e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610905906115de565b60405180910390fd5b6109188282610cfd565b8173ffffffffffffffffffffffffffffffffffffffff167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405161095e91906113fa565b60405180910390a25050565b600080610975610ad8565b9050610982818585610b87565b600191505092915050565b60007f0000000000000000000000004200000000000000000000000000000000000010905090565b60007f0000000000000000000000000000000000000000000000000000000000000001905090565b60007f0000000000000000000000000000000000000000000000000000000000000001905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f0000000000000000000000004200000000000000000000000000000000000010905090565b7f000000000000000000000000420000000000000000000000000000000000001081565b600033905090565b610aed8383836001610d7f565b505050565b6000610afe8484610a05565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610b815781811015610b71578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610b68939291906115fe565b60405180910390fd5b610b8084848484036000610d7f565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610bf95760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610bf0919061127c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c6b5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610c62919061127c565b60405180910390fd5b610c76838383610f56565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ced5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610ce4919061127c565b60405180910390fd5b610cf960008383610f56565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d6f5760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610d66919061127c565b60405180910390fd5b610d7b82600083610f56565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610df15760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610de8919061127c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610e635760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610e5a919061127c565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015610f50578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610f4791906113fa565b60405180910390a35b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fa8578060026000828254610f9c9190611664565b9250508190555061107b565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611034578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161102b939291906115fe565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110c45780600260008282540392505081905550611111565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161116e91906113fa565b60405180910390a3505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6111b581611180565b81146111c057600080fd5b50565b6000813590506111d2816111ac565b92915050565b6000602082840312156111ee576111ed61117b565b5b60006111fc848285016111c3565b91505092915050565b60008115159050919050565b61121a81611205565b82525050565b60006020820190506112356000830184611211565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112668261123b565b9050919050565b6112768161125b565b82525050565b6000602082019050611291600083018461126d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156112d15780820151818401526020810190506112b6565b60008484015250505050565b6000601f19601f8301169050919050565b60006112f982611297565b61130381856112a2565b93506113138185602086016112b3565b61131c816112dd565b840191505092915050565b6000602082019050818103600083015261134181846112ee565b905092915050565b6113528161125b565b811461135d57600080fd5b50565b60008135905061136f81611349565b92915050565b6000819050919050565b61138881611375565b811461139357600080fd5b50565b6000813590506113a58161137f565b92915050565b600080604083850312156113c2576113c161117b565b5b60006113d085828601611360565b92505060206113e185828601611396565b9150509250929050565b6113f481611375565b82525050565b600060208201905061140f60008301846113eb565b92915050565b60008060006060848603121561142e5761142d61117b565b5b600061143c86828701611360565b935050602061144d86828701611360565b925050604061145e86828701611396565b9150509250925092565b600060ff82169050919050565b61147e81611468565b82525050565b60006020820190506114996000830184611475565b92915050565b6000602082840312156114b5576114b461117b565b5b60006114c384828501611360565b91505092915050565b600080604083850312156114e3576114e261117b565b5b60006114f185828601611360565b925050602061150285828601611360565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061155357607f821691505b6020821081036115665761156561150c565b5b50919050565b7f4d79437573746f6d4c32546f6b656e3a206f6e6c79206272696467652063616e60008201527f206d696e7420616e64206275726e000000000000000000000000000000000000602082015250565b60006115c8602e836112a2565b91506115d38261156c565b604082019050919050565b600060208201905081810360008301526115f7816115bb565b9050919050565b6000606082019050611613600083018661126d565b61162060208301856113eb565b61162d60408301846113eb565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061166f82611375565b915061167a83611375565b925082820190508082111561169257611691611635565b5b9291505056fea264697066735822122004a65fd455403fadf226cc87f7d734986386988a4b12d0ddce59a3938bafd72f64736f6c63430008140033
<script src="{@file}"> </script>