ETH Price: $3,226.30 (-3.56%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve215250642024-12-31 21:13:599 days ago1735679639IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.00027295.89589214
Approve206894522024-09-06 5:25:47125 days ago1725600347IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.000065371.40334892
Approve205656352024-08-19 22:23:59143 days ago1724106239IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.000043250.92848764
Transfer205654752024-08-19 21:51:59143 days ago1724104319IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.000059691.27475792
Transfer168167852023-03-13 4:47:35668 days ago1678682855IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0008991517.41675476
Approve163957332023-01-13 5:17:47727 days ago1673587067IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0007907616.95209034
Transfer163557372023-01-07 15:15:35733 days ago1673104535IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0012158516.57490522
Transfer162676182022-12-26 8:04:59745 days ago1672041899IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0005207611.12118692
Approve161545562022-12-10 13:18:47761 days ago1670678327IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0007168915.36843593
Transfer159512432022-11-12 3:26:47789 days ago1668223607IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0008376517.88859187
Transfer159030372022-11-05 9:51:47796 days ago1667641907IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0008525213.18644155
Transfer158948622022-11-04 6:29:11797 days ago1667543351IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0011274315.36951845
Transfer158939572022-11-04 3:26:47797 days ago1667532407IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0008532113.97447131
Transfer158939472022-11-04 3:24:47797 days ago1667532287IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0007568313.45079062
Transfer158939452022-11-04 3:24:23797 days ago1667532263IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0008212313.45079062
Transfer158939362022-11-04 3:22:35797 days ago1667532155IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.001220315.61386032
Approve157936282022-10-21 2:54:59811 days ago1666320899IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0011934525.58490505
Transfer157674872022-10-17 11:20:47815 days ago1666005647IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0011091318.53121519
Transfer156917382022-10-06 21:26:59826 days ago1665091619IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0005960910.57959913
Approve156662032022-10-03 7:42:23829 days ago1664782943IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.00045229.69420894
Transfer156619562022-10-02 17:27:47830 days ago1664731667IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.00035736.34154511
Transfer156295902022-09-28 4:56:59834 days ago1664341019IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.0006372411.31227609
Transfer156137122022-09-25 23:36:59837 days ago1664149019IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.000228114.04857267
Transfer156069132022-09-25 0:51:11838 days ago1664067071IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.000242154.29955854
Transfer156037292022-09-24 14:10:47838 days ago1664028647IN
0xFEDE4e64...1Ee4D8A75
0 ETH0.000284585.05087201
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SpellsCoin

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 300 runs

Other Settings:
default evmVersion
File 1 of 11 : SpellsCoin.sol
// SPDX-License-Identifier: MIT

/*********************************************************
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░  .░░░░░░░░░░░░░░░░░░░░░░░░.  ҹ░░░░░░░░░░░░*
*░░░░░░░░░░░░░  ∴░░░░░░░░░░░░░░░░░░`   ░░․  ░░∴   (░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░º   ҹ  ░   (░░░░░░░░*
*░░░░░⁕  .░░░░░░░░░░░░░░░░░░░░░░░     ⁕..    .∴,    ⁕░░░░*
*░░░░░░  ∴░░░░░░░░░░░░░░░░░░░░░░░ҹ ,(º⁕ҹ     ․∴ҹ⁕(. ⁕░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░º`  ․░  ⁕,   ░░░░░░░░*
*░░░░░,  .░░░░░░░░░░░░░░░░░░░░░░░░░`  ,░░⁕  ∴░░   `░░░░░░*
*░░░░░░⁕º░░░░░░░░░░░░░░⁕   ҹ░░░░░░░░░░░░░,  %░░░░░░░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░ҹ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░ҹ   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░º(░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*********************************************************/

pragma solidity ^0.8.6;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./ERC20X/ERC20X.sol";

/// ERC-20 that can be held by a token
contract SpellsCoin is ERC20X, Ownable {
    address minter;
    uint256 private claimable;

    constructor(address _minter, uint256 _claimable) ERC20X("Spells Magic", "CAST") {
        minter = _minter;
        claimable = _claimable;
    }
    
    function claim() external onlyOwner nonReentrant {
        require(claimable > 0, "SpellsCoin: no claimabled remaining");
        _mint(owner(), claimable);
        claimable = 0;
    }
    
    function setMinter(address _minter) external onlyOwner {
        minter = _minter;
    }
    
    function setName(string memory name_, string memory symbol_) external onlyOwner {
        _name = name_;
        symbol_ = symbol_;
    }

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

    /// @dev Spells contract can mint spellsCoin to given `tokenId`.
    function mint(
        address _contract,
        uint256 tokenId,
        uint256 amount
    ) external {
        require(msg.sender == minter, "SpellsCoin: sender not minter");
        _mint(_contract, tokenId, amount);
    }
    
    /// @dev Spells contract can mint spellsCoin to given address.
    function mint(address account, uint256 amount) external {
        require(msg.sender == minter, "SpellsCoin: sender not minter");
        _mint(account, amount);
    }
}

File 2 of 11 : ECDSA.sol
pragma solidity ^0.8.6;

library ECDSA {
    /*
     * @dev Verifies if message was signed by owner to give access to _add for this contract.
     *      Assumes Geth signature prefix.
     * @param _add Address of agent with access
     * @param _v ECDSA signature parameter v.
     * @param _r ECDSA signature parameters r.
     * @param _s ECDSA signature parameters s.
     * @return Validity of access message for a given address.
     */
    function isValidAccessMessage(
        address expectedSigner,
        bytes32 _hash,
        uint8 _v,
        bytes32 _r,
        bytes32 _s
    ) internal pure returns (bool) {
        return
            expectedSigner ==
            ecrecover(
                keccak256(
                    abi.encodePacked("\x19Ethereum Signed Message:\n32", _hash)
                ),
                _v,
                _r,
                _s
            );
    }
}

File 3 of 11 : IERC20X.sol
// SPDX-License-Identifier: MIT

/*********************************************************
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░  .░░░░░░░░░░░░░░░░░░░░░░░░.  ҹ░░░░░░░░░░░░*
*░░░░░░░░░░░░░  ∴░░░░░░░░░░░░░░░░░░`   ░░․  ░░∴   (░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░º   ҹ  ░   (░░░░░░░░*
*░░░░░⁕  .░░░░░░░░░░░░░░░░░░░░░░░     ⁕..    .∴,    ⁕░░░░*
*░░░░░░  ∴░░░░░░░░░░░░░░░░░░░░░░░ҹ ,(º⁕ҹ     ․∴ҹ⁕(. ⁕░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░º`  ․░  ⁕,   ░░░░░░░░*
*░░░░░,  .░░░░░░░░░░░░░░░░░░░░░░░░░`  ,░░⁕  ∴░░   `░░░░░░*
*░░░░░░⁕º░░░░░░░░░░░░░░⁕   ҹ░░░░░░░░░░░░░,  %░░░░░░░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░ҹ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░ҹ   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░º(░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*********************************************************/

pragma solidity ^0.8.6;

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

interface IERC20X is IERC20 {
    function totalTokenHeldSupply() external view returns (uint256);

    function balanceOf(address _contract, uint256 tokenId)
        external
        view
        returns (uint256);

    function nonce(address _contract, uint256 tokenId)
        external
        view
        returns (uint256);

    function transfer(
        address _contract,
        uint256 tokenId,
        uint256 amount
    ) external returns (bool);

    function transfer(
        address _contract,
        uint256 tokenId,
        address to,
        uint256 amount
    ) external returns (bool);

    function transfer(
        address _contract,
        uint256 tokenId,
        address toContract,
        uint256 toTokenId,
        uint256 amount
    ) external returns (bool);

    function transferFrom(
        address from,
        address toContract,
        uint256 toTokenId,
        uint256 amount
    ) external returns (bool);

    function transferFrom(
        address _contract,
        uint256 tokenId,
        address to,
        uint256 amount
    ) external returns (bool);

    function transferFrom(
        address _contract,
        uint256 tokenId,
        address toContract,
        uint256 toTokenId,
        uint256 amount
    ) external returns (bool);

    function approve(
        address _contract,
        uint256 tokenId,
        address spender,
        uint256 amount
    ) external returns (bool);

    function allowance(
        address _contract,
        uint256 tokenId,
        address spender
    ) external view returns (uint256);

    function allowance(
        address tokenOwner,
        address _contract,
        uint256 tokenId,
        address spender
    ) external view returns (uint256);

    function increaseAllowance(
        address _contract,
        uint256 tokenId,
        address spender,
        uint256 addedValue
    ) external returns (bool);

    function decreaseAllowance(
        address _contract,
        uint256 tokenId,
        address spender,
        uint256 subtractedValue
    ) external returns (bool);

    function signedTransferFrom(
        DynamicAddress memory from,
        DynamicAddress memory to,
        uint256 amount,
        uint256 nonce,
        uint8 _v,
        bytes32 _r,
        bytes32 _s
    ) external;

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event XTransfer(
        address indexed from,
        uint256 fromTokenId,
        address indexed to,
        uint256 toTokenId,
        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 XApproval(
        address indexed _contract,
        uint256 tokenId,
        address indexed spender,
        uint256 value
    );
}

/// @param _address The address of the entity
/// @param _tokenId The token of the object (optional)
/// @param _useZeroToken Treat tokenId 0 as a token (default: ignore tokenId 0)
struct DynamicAddress {
    address _address;
    uint256 _tokenId;
    bool _useZeroToken;
}

library DynamicAddressLib {
    using Address for address;
    
    function isToken(DynamicAddress memory _address) internal view returns (bool) {
        return (_address._address.isContract() && (_address._tokenId > 0 || _address._useZeroToken));
    }
}

File 4 of 11 : ERC20X.sol
// SPDX-License-Identifier: MIT

/*********************************************************
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░  .░░░░░░░░░░░░░░░░░░░░░░░░.  ҹ░░░░░░░░░░░░*
*░░░░░░░░░░░░░  ∴░░░░░░░░░░░░░░░░░░`   ░░․  ░░∴   (░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░º   ҹ  ░   (░░░░░░░░*
*░░░░░⁕  .░░░░░░░░░░░░░░░░░░░░░░░     ⁕..    .∴,    ⁕░░░░*
*░░░░░░  ∴░░░░░░░░░░░░░░░░░░░░░░░ҹ ,(º⁕ҹ     ․∴ҹ⁕(. ⁕░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░º`  ․░  ⁕,   ░░░░░░░░*
*░░░░░,  .░░░░░░░░░░░░░░░░░░░░░░░░░`  ,░░⁕  ∴░░   `░░░░░░*
*░░░░░░⁕º░░░░░░░░░░░░░░⁕   ҹ░░░░░░░░░░░░░,  %░░░░░░░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░ҹ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░ҹ   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░º(░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*
*********************************************************/

pragma solidity ^0.8.6;

import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC20.sol";
import "./IERC20X.sol";
import "../../helpers/ECDSA.sol";

interface _IERC721 {
    function ownerOf(uint256 tokenId) external view returns (address);
}

/// @title ERC-20 that can be held by NFTs
contract ERC20X is IERC20X, ERC20, ReentrancyGuard {
    using Address for address;
    using DynamicAddressLib for DynamicAddress;
    // when spell is cast, set amount of spellsCoin claimable by recipient contract

    mapping(address => mapping(uint256 => uint256)) internal _tokenBalances;
    mapping(address => mapping(uint256 => uint256)) public _nonces;
    mapping(address => uint256) public _addressNonces;

    // tokenOwner : tokenContract : tokenId : spender : amount
    mapping(address => mapping(address => mapping(uint256 => mapping(address => uint256))))
        private _tokenAllowances;
    uint256 _totalTokenHeldSupply;

    constructor(string memory name_, string memory symbol_)
        ERC20(name_, symbol_)
    {}

    function balanceOf(address _contract, uint256 tokenId)
        external
        view
        override(IERC20X)
        returns (uint256)
    {
        return _tokenBalances[_contract][tokenId];
    }

    function totalTokenHeldSupply() public view virtual override(IERC20X) returns (uint256) {
        return _totalTokenHeldSupply;
    }

    function nonce(address _contract, uint256 tokenId)
        external
        view
        override(IERC20X)
        returns (uint256)
    {
        return _nonces[_contract][tokenId];
    }
    
    function nonce(address _address)
        external
        view
        returns (uint256)
    {
        return _addressNonces[_address];
    }

    function incrementNonce(address _contract, uint256 tokenId) external {
        address owner = _ownerOf(_contract, tokenId);
        require(msg.sender == owner, "SpellsCoin: Invalid withdrawal");
        _nonces[_contract][tokenId]++;
    }

    function transfer(
        address _contract,
        uint256 tokenId,
        uint256 amount
    ) public virtual override(IERC20X) returns (bool) {
        address owner = _msgSender();
        _transfer(owner, _contract, tokenId, amount);
        return true;
    }

    function transfer(
        address _contract,
        uint256 tokenId,
        address to,
        uint256 amount
    ) public virtual override(IERC20X) returns (bool) {
        address owner = _ownerOf(_contract, tokenId);
        require(
            msg.sender == owner,
            "SpellsCoin: transfer not initiated by token owner"
        );
        _transfer(_contract, tokenId, to, amount);
        return true;
    }

    function transfer(
        address _contract,
        uint256 tokenId,
        address toContract,
        uint256 toTokenId,
        uint256 amount
    ) public virtual override(IERC20X) returns (bool) {
        address owner = _ownerOf(_contract, tokenId);
        require(
            msg.sender == owner,
            "SpellsCoin: transfer not initiated by token owner"
        );
        _transfer(_contract, tokenId, toContract, toTokenId, amount);
        return true;
    }

    function transferFrom(
        address from,
        address toContract,
        uint256 toTokenId,
        uint256 amount
    ) public virtual override(IERC20X) returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, toContract, toTokenId, amount);
        return true;
    }

    function transferFrom(
        address _contract,
        uint256 tokenId,
        address to,
        uint256 amount
    ) public virtual override(IERC20X) returns (bool) {
        address spender = _msgSender();
        _spendAllowance(_contract, tokenId, spender, amount);
        _transfer(_contract, tokenId, to, amount);
        return true;
    }

    function transferFrom(
        address _contract,
        uint256 tokenId,
        address toContract,
        uint256 toTokenId,
        uint256 amount
    ) public virtual override(IERC20X) returns (bool) {
        address spender = _msgSender();
        _spendAllowance(_contract, tokenId, spender, amount);
        _transfer(_contract, tokenId, toContract, toTokenId, amount);
        return true;
    }

    function _transfer(
        address from,
        address toContract,
        uint256 toTokenId,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "SpellsCoin: transfer from the zero address");
        require(toContract != address(0), "SpellsCoin: transfer to the zero token");

        _beforeTokenTransfer(from, toContract, toTokenId, amount);

        _transfer(from, address(this), amount);
        _totalTokenHeldSupply += amount;
        _tokenBalances[toContract][toTokenId] += amount;

        emit XTransfer(from, type(uint256).max, toContract, toTokenId, amount);

        _afterTokenTransfer(from, toContract, toTokenId, amount);
    }

    function _transfer(
        address fromContract,
        uint256 fromTokenId,
        address to,
        uint256 amount
    ) internal virtual {
        require(
            fromContract != address(0),
            "SpellsCoin: transfer from the zero address"
        );
        require(to != address(0), "SpellsCoin: transfer to the zero address");

        _beforeTokenTransfer(fromContract, fromTokenId, to, amount);

        uint256 fromBalance = _tokenBalances[fromContract][fromTokenId];
        require(fromBalance >= amount, "SpellsCoin: transfer amount exceeds balance");
        unchecked {
            _tokenBalances[fromContract][fromTokenId] = fromBalance - amount;
            _totalTokenHeldSupply -= amount;
        }
        // do underlying token transfer
        _transfer(address(this), to, amount);

        emit XTransfer(
            fromContract,
            fromTokenId,
            to,
            type(uint256).max,
            amount
        );

        _afterTokenTransfer(fromContract, fromTokenId, to, amount);
    }

    function _transfer(
        address fromContract,
        uint256 fromTokenId,
        address toContract,
        uint256 toTokenId,
        uint256 amount
    ) internal virtual {
        require(
            fromContract != address(0),
            "SpellsCoin: transfer from the zero address"
        );
        require(toContract != address(0), "SpellsCoin: transfer to the zero address");
        _beforeTokenTransfer(
            fromContract,
            fromTokenId,
            toContract,
            toTokenId,
            amount
        );
        uint256 fromBalance = _tokenBalances[fromContract][fromTokenId];
        require(fromBalance >= amount, "SpellsCoin: transfer amount exceeds balance");
        unchecked {
            _tokenBalances[fromContract][fromTokenId] = fromBalance - amount;
        }
        _tokenBalances[toContract][toTokenId] += amount;

        emit XTransfer(
            fromContract,
            fromTokenId,
            toContract,
            toTokenId,
            amount
        );
        _afterTokenTransfer(
            fromContract,
            fromTokenId,
            toContract,
            toTokenId,
            amount
        );
    }
    
    function _transfer(
        DynamicAddress memory from,
        DynamicAddress memory to,
        uint256 amount
    ) internal virtual {
        require(from._address != address(0), "ERC20X: transfer from the zero address");
        require(to._address != address(0), "ERC20X: transfer to the zero address");
         if(from.isToken()){
            if(to.isToken()){
                _transfer(from._address, from._tokenId, to._address, to._tokenId, amount);
            } else {
                _transfer(from._address, from._tokenId, to._address, amount);
            }
        } else if(to.isToken()){
            _transfer(from._address, to._address, to._tokenId, amount);
        } else {
            _transfer(from._address, to._address, amount);
        }
    }

    function _mint(
        address _contract,
        uint256 tokenId,
        uint256 amount
    ) internal virtual {
        require(_contract != address(0), "SpellsCoin: mint to the zero address");
        _beforeTokenTransfer(address(0), _contract, tokenId, amount);

        _tokenBalances[_contract][tokenId] += amount;
        _totalTokenHeldSupply += amount;
    
        // mint token to self in ERC20 standard contract
        _mint(address(this), amount);
        emit XTransfer(
            address(0),
            type(uint256).max,
            _contract,
            tokenId,
            amount
        );

        _afterTokenTransfer(address(0), _contract, tokenId, amount);
    }

    function increaseAllowance(
        address _contract,
        uint256 tokenId,
        address spender,
        uint256 addedValue
    ) public virtual override(IERC20X) returns (bool) {
        address owner = _ownerOf(_contract, tokenId);
        require(
            msg.sender == owner,
            "SpellsCoin: allowance change not initiated by token owner"
        );
        _approve(
            _contract,
            tokenId,
            spender,
            allowance(owner, _contract, tokenId, spender) + addedValue
        );
        return true;
    }

    function decreaseAllowance(
        address _contract,
        uint256 tokenId,
        address spender,
        uint256 subtractedValue
    ) public virtual override(IERC20X) returns (bool) {
        address owner = _ownerOf(_contract, tokenId);
        require(
            msg.sender == owner,
            "SpellsCoin: allowance change not initiated by token owner"
        );
        uint256 currentAllowance = allowance(
            owner,
            _contract,
            tokenId,
            spender
        );
        require(
            currentAllowance >= subtractedValue,
            "SpellsCoin: decreased allowance below zero"
        );
        unchecked {
            _approve(
                _contract,
                tokenId,
                spender,
                currentAllowance - subtractedValue
            );
        }
        return true;
    }

    function allowance(
        address _contract,
        uint256 tokenId,
        address spender
    ) public view virtual override(IERC20X) returns (uint256) {
        return
            _tokenAllowances[_ownerOf(_contract, tokenId)][_contract][tokenId][
                spender
            ];
    }

    function allowance(
        address tokenOwner,
        address _contract,
        uint256 tokenId,
        address spender
    ) public view virtual override(IERC20X) returns (uint256) {
        return _tokenAllowances[tokenOwner][_contract][tokenId][spender];
    }

    function approve(
        address _contract,
        uint256 tokenId,
        address spender,
        uint256 amount
    ) public virtual override(IERC20X) returns (bool) {
        address owner = _ownerOf(_contract, tokenId);
        require(
            msg.sender == owner,
            "SpellsCoin: approve not initiated by token owner"
        );
        _approve(_contract, tokenId, spender, amount);
        return true;
    }

    function _approve(
        address _contract,
        uint256 tokenId,
        address spender,
        uint256 amount
    ) internal virtual {
        require(_contract != address(0), "SpellsCoin: approve from the zero address");
        require(spender != address(0), "SpellsCoin: approve to the zero address");
        _tokenAllowances[msg.sender][_contract][tokenId][spender] = amount;
        emit XApproval(_contract, tokenId, spender, amount);
    }

    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(
                currentAllowance >= amount,
                "ERC20: insufficient allowance"
            );
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    function _spendAllowance(
        address _contract,
        uint256 tokenId,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(_contract, tokenId, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "SpellsCoin: insufficient allowance");
            unchecked {
                _approve(
                    _contract,
                    tokenId,
                    spender,
                    currentAllowance - amount
                );
            }
        }
    }

    function _beforeTokenTransfer(
        address fromContract,
        uint256 fromTokenId,
        address to,
        uint256 amount
    ) internal virtual {}

    function _afterTokenTransfer(
        address fromContract,
        uint256 fromTokenId,
        address to,
        uint256 amount
    ) internal virtual {}

    function _beforeTokenTransfer(
        address from,
        address toContract,
        uint256 toTokenId,
        uint256 amount
    ) internal virtual {}

    function _afterTokenTransfer(
        address from,
        address toContract,
        uint256 toTokenId,
        uint256 amount
    ) internal virtual {}

    function _beforeTokenTransfer(
        address fromContract,
        uint256 fromTokenId,
        address toContract,
        uint256 toTokenId,
        uint256 amount
    ) internal virtual {}

    function _afterTokenTransfer(
        address fromContract,
        uint256 fromTokenId,
        address toContract,
        uint256 toTokenId,
        uint256 amount
    ) internal virtual {}
    
    function signedTransferFrom(
        DynamicAddress calldata from,
        DynamicAddress calldata to,
        uint256 amount,
        uint256 _nonce,
        uint8 _v,
        bytes32 _r,
        bytes32 _s
    ) external override(IERC20X) {
        require(
            from._address != address(0),
            "SpellsCoin: transfer from the zero address"
        );
        require(
            to._address != address(0),
            "SpellsCoin: transfer to the zero address"
        );
        address signer = from._address;
        if (from._address.isContract()){
            if(from._tokenId > 0 || from._useZeroToken){
                signer = _ownerOf(from._address, from._tokenId);
                require(_nonce == _nonces[from._address][from._tokenId], "SpellsCoin: invalid nonce");
                ++_nonces[from._address][from._tokenId];
            } else {
                signer = _ownerOf(from._address);
                require(_nonce == _addressNonces[signer], "SpellsCoin: invalid nonce");
                ++_addressNonces[signer];
            }
            require(signer != address(0), "SpellsCoin: transfer from the zero address");
        } else {
            require(_nonce == _addressNonces[signer], "SpellsCoin: invalid nonce");
            ++_addressNonces[signer];
        }
        require(
            ECDSA.isValidAccessMessage(
                signer,
                keccak256(
                    abi.encodePacked(
                        msg.sender, // single-caller permission
                        from._address,
                        from._tokenId,
                        from._useZeroToken,
                        to._address,
                        to._tokenId,
                        to._useZeroToken,
                        amount,
                        _nonce
                    )
                ),
                _v,
                _r,
                _s
            ),
            "ERC20X: invalid signature"
        );
        
        _transfer(from, to, amount);
    }

    function _ownerOf(address _contract, uint256 tokenId)
        internal
        view
        returns (address)
    {
        return _IERC721(_contract).ownerOf(tokenId);
    }

    function _ownerOf(address _contract) internal view returns (address) {
        require(_contract != address(0), "SpellsCoin: zero address");
        (bool success, bytes memory returnData) = _contract.staticcall(
            abi.encodeWithSignature("owner()")
        );
        require(success, "SpellsCoin: could not assess owner");
        address owner = abi.decode(returnData, (address));
        return owner;
    }

    // Convenience method to allow withdrawal from contracts that do not support ERC-20.
    function withdrawFromContract(address _contract, uint256 amount)
        public
        nonReentrant
    {
        require(
            _contract != address(0),
            "SpellsCoin: transfer from the zero address"
        );
        require(msg.sender == _ownerOf(_contract), "SpellsCoin: invalid withdrawal");
        _transfer(_contract, msg.sender, amount);
    }
}

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/utils/Context.sol";

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

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

    uint256 private _totalSupply;

    string internal _name;
    string internal _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `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);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `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);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(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:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 11 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 7 of 11 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 9 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 10 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 11 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"uint256","name":"_claimable","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_contract","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"XApproval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"XTransfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_addressNonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"_nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"tokenOwner","type":"address"},{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"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":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"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":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"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":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"incrementNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_useZeroToken","type":"bool"}],"internalType":"struct DynamicAddress","name":"from","type":"tuple"},{"components":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_useZeroToken","type":"bool"}],"internalType":"struct DynamicAddress","name":"to","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"signedTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokenHeldSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"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":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"toContract","type":"address"},{"internalType":"uint256","name":"toTokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"toContract","type":"address"},{"internalType":"uint256","name":"toTokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","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":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"toContract","type":"address"},{"internalType":"uint256","name":"toTokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawFromContract","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002fc838038062002fc883398101604081905262000034916200012b565b6040518060400160405280600c81526020016b5370656c6c73204d6167696360a01b8152506040518060400160405280600481526020016310d054d560e21b815250818181600390816200008991906200020c565b5060046200009882826200020c565b5050600160055550620000af9150339050620000d9565b600c80546001600160a01b0319166001600160a01b039390931692909217909155600d55620002d8565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080604083850312156200013f57600080fd5b82516001600160a01b03811681146200015757600080fd5b6020939093015192949293505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200019257607f821691505b602082108103620001b357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200020757600081815260208120601f850160051c81016020861015620001e25750805b601f850160051c820191505b818110156200020357828155600101620001ee565b5050505b505050565b81516001600160401b0381111562000228576200022862000167565b62000240816200023984546200017d565b84620001b9565b602080601f8311600181146200027857600084156200025f5750858301515b600019600386901b1c1916600185901b17855562000203565b600085815260208120601f198616915b82811015620002a95788860151825594840194600190910190840162000288565b5085821015620002c85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612ce080620002e86000396000f3fe608060405234801561001057600080fd5b506004361061023c5760003560e01c806370a082311161013b578063dd62ed3e116100b8578063f2fde38b1161007c578063f2fde38b14610578578063f53eceac1461058b578063f767d2ff1461059e578063fca3b5aa146105b1578063fe99049a146105c457600080fd5b8063dd62ed3e146104c3578063e1afa03b146104fc578063e543b90c1461051c578063e8b1a9b21461052f578063f2881e211461056557600080fd5b80638da5cb5b116100ff5780638da5cb5b1461046757806395d89b4114610482578063a457c2d71461048a578063a9059cbb1461049d578063ac689bcd146104b057600080fd5b806370a08231146103e757806370ae92d214610410578063715018a6146104395780637eb2e83514610441578063837381fa1461045457600080fd5b8063217d0a52116101c957806340c10f191161018d57806340c10f191461037b57806343e3f0c51461038e5780634e71d92d146103a15780635c707f07146103a95780636c45d385146103bc57600080fd5b8063217d0a521461032057806323b872dd14610333578063313ce56714610346578063335a940614610355578063395093511461036857600080fd5b806309a36a991161021057806309a36a99146102d55780630fefc757146102e8578063156e29f6146102f057806318160ddd146103055780631d856ea71461030d57600080fd5b8062fdd58e1461024157806306fdde031461028a578063095bcdb61461029f578063095ea7b3146102c2575b600080fd5b61027761024f36600461244a565b6001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6040519081526020015b60405180910390f35b6102926105d7565b60405161028191906124a2565b6102b26102ad3660046124d5565b610669565b6040519015158152602001610281565b6102b26102d036600461244a565b610683565b6102776102e336600461250a565b610699565b600a54610277565b6103036102fe3660046124d5565b6106ee565b005b600254610277565b6102b261031b36600461254c565b61075d565b61030361032e36600461244a565b610786565b6102b261034136600461259e565b610825565b60405160128152602001610281565b6102b26103633660046125df565b6108c4565b6102b261037636600461244a565b610913565b61030361038936600461244a565b61094f565b6102b261039c3660046125df565b6109b7565b610303610a10565b6103036103b73660046126ca565b610b33565b6102776103ca36600461244a565b600760209081526000928352604080842090915290825290205481565b6102776103f536600461272e565b6001600160a01b031660009081526020819052604090205490565b61027761041e36600461272e565b6001600160a01b031660009081526008602052604090205490565b610303610b87565b6102b261044f3660046125df565b610bdb565b61030361046236600461244a565b610c67565b600b546040516001600160a01b039091168152602001610281565b610292610d61565b6102b261049836600461244a565b610d70565b6102b26104ab36600461244a565b610e09565b6102b26104be3660046125df565b610e16565b6102776104d136600461274b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61027761050a36600461272e565b60086020526000908152604090205481565b61027761052a366004612784565b610e25565b61027761053d36600461244a565b6001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6102b261057336600461254c565b610e63565b61030361058636600461272e565b610e9a565b6103036105993660046127ef565b610f53565b6102b26105ac3660046125df565b6113cf565b6103036105bf36600461272e565b611487565b6102b26105d2366004612868565b6114f1565b6060600380546105e6906128ae565b80601f0160208091040260200160405190810160405280929190818152602001828054610612906128ae565b801561065f5780601f106106345761010080835404028352916020019161065f565b820191906000526020600020905b81548152906001019060200180831161064257829003601f168201915b5050505050905090565b60003361067881868686611507565b506001949350505050565b6000610690338484611647565b50600192915050565b6000600960006106a9868661176b565b6001600160a01b039081168252602080830193909352604091820160009081208883168252845282812087825284528281209186168152925290205490509392505050565b600c546001600160a01b0316331461074d5760405162461bcd60e51b815260206004820152601d60248201527f5370656c6c73436f696e3a2073656e646572206e6f74206d696e74657200000060448201526064015b60405180910390fd5b6107588383836117de565b505050565b60003361076c878783866118f2565b610779878787878761197a565b5060019695505050505050565b6000610792838361176b565b9050336001600160a01b038216146107ec5760405162461bcd60e51b815260206004820152601e60248201527f5370656c6c73436f696e3a20496e76616c6964207769746864726177616c00006044820152606401610744565b6001600160a01b0383166000908152600760209081526040808320858452909152812080549161081b836128f8565b9190505550505050565b6000610832848484611ab5565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108b75760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610744565b6106788533858403611647565b6000806108d1868661176b565b9050336001600160a01b038216146108fb5760405162461bcd60e51b815260040161074490612911565b61090786868686611c83565b50600195945050505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161069091859061094a908690612962565b611647565b600c546001600160a01b031633146109a95760405162461bcd60e51b815260206004820152601d60248201527f5370656c6c73436f696e3a2073656e646572206e6f74206d696e7465720000006044820152606401610744565b6109b38282611da6565b5050565b6000806109c4868661176b565b9050336001600160a01b038216146109ee5760405162461bcd60e51b81526004016107449061297a565b61090786868686610a01868c8c8c610e25565b610a0b9190612962565b611e85565b600b546001600160a01b03163314610a585760405162461bcd60e51b81526020600482018190526024820152600080516020612c8b8339815191526044820152606401610744565b600260055403610aaa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610744565b6002600555600d54610b0a5760405162461bcd60e51b815260206004820152602360248201527f5370656c6c73436f696e3a206e6f20636c61696d61626c65642072656d61696e604482015262696e6760e81b6064820152608401610744565b610b27610b1f600b546001600160a01b031690565b600d54611da6565b6000600d556001600555565b600b546001600160a01b03163314610b7b5760405162461bcd60e51b81526020600482018190526024820152600080516020612c8b8339815191526044820152606401610744565b60036107588382612a1d565b600b546001600160a01b03163314610bcf5760405162461bcd60e51b81526020600482018190526024820152600080516020612c8b8339815191526044820152606401610744565b610bd96000611fc5565b565b600080610be8868661176b565b9050336001600160a01b03821614610c5b5760405162461bcd60e51b815260206004820152603060248201527f5370656c6c73436f696e3a20617070726f7665206e6f7420696e69746961746560448201526f3210313c903a37b5b2b71037bbb732b960811b6064820152608401610744565b61090786868686611e85565b600260055403610cb95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610744565b60026005556001600160a01b038216610ce45760405162461bcd60e51b815260040161074490612add565b610ced82612017565b6001600160a01b0316336001600160a01b031614610d4d5760405162461bcd60e51b815260206004820152601e60248201527f5370656c6c73436f696e3a20696e76616c6964207769746864726177616c00006044820152606401610744565b610d58823383611ab5565b50506001600555565b6060600480546105e6906128ae565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610df25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610744565b610dff3385858403611647565b5060019392505050565b6000610690338484611ab5565b6000336108fb868683866118f2565b6001600160a01b0393841660009081526009602090815260408083209587168352948152848220938252928352838120919094168452905290205490565b600080610e70878761176b565b9050336001600160a01b0382161461076c5760405162461bcd60e51b815260040161074490612911565b600b546001600160a01b03163314610ee25760405162461bcd60e51b81526020600482018190526024820152600080516020612c8b8339815191526044820152606401610744565b6001600160a01b038116610f475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610744565b610f5081611fc5565b50565b6000610f62602089018961272e565b6001600160a01b031603610f885760405162461bcd60e51b815260040161074490612add565b6000610f97602088018861272e565b6001600160a01b031603610fbd5760405162461bcd60e51b815260040161074490612b27565b6000610fcc602089018961272e565b9050610fed610fde60208a018a61272e565b6001600160a01b03163b151590565b156111ef5760008860200135118061101057506110106060890160408a01612b84565b1561111e5761102f61102560208a018a61272e565b896020013561176b565b90506007600061104260208b018b61272e565b6001600160a01b03166001600160a01b031681526020019081526020016000206000896020013581526020019081526020016000205485146110c25760405162461bcd60e51b81526020600482015260196024820152785370656c6c73436f696e3a20696e76616c6964206e6f6e636560381b6044820152606401610744565b600760006110d360208b018b61272e565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008960200135815260200190815260200160002060008154611115906128f8565b909155506111c4565b61113361112e60208a018a61272e565b612017565b6001600160a01b03811660009081526008602052604090205490915085146111995760405162461bcd60e51b81526020600482015260196024820152785370656c6c73436f696e3a20696e76616c6964206e6f6e636560381b6044820152606401610744565b6001600160a01b038116600090815260086020526040812080549091906111bf906128f8565b909155505b6001600160a01b0381166111ea5760405162461bcd60e51b815260040161074490612add565b61127d565b6001600160a01b03811660009081526008602052604090205485146112525760405162461bcd60e51b81526020600482015260196024820152785370656c6c73436f696e3a20696e76616c6964206e6f6e636560381b6044820152606401610744565b6001600160a01b03811660009081526008602052604081208054909190611278906128f8565b909155505b611352813361128f60208c018c61272e565b60208c01356112a460608e0160408f01612b84565b6112b160208e018e61272e565b8d602001358e60400160208101906112c99190612b84565b6040516bffffffffffffffffffffffff19606098891b8116602083015296881b87166034820152604881019590955292151560f890811b60688601529190951b9093166069830152607d820193909352911515901b609d820152609e810189905260be810188905260de016040516020818303038152906040528051906020012086868661216e565b61139e5760405162461bcd60e51b815260206004820152601960248201527f4552433230583a20696e76616c6964207369676e6174757265000000000000006044820152606401610744565b6113c56113b0368a90038a018a612b9f565b6113bf368a90038a018a612b9f565b8861222e565b5050505050505050565b6000806113dc868661176b565b9050336001600160a01b038216146114065760405162461bcd60e51b81526004016107449061297a565b600061141482888888610e25565b9050838110156114795760405162461bcd60e51b815260206004820152602a60248201527f5370656c6c73436f696e3a2064656372656173656420616c6c6f77616e63652060448201526962656c6f77207a65726f60b01b6064820152608401610744565b610779878787878503611e85565b600b546001600160a01b031633146114cf5760405162461bcd60e51b81526020600482018190526024820152600080516020612c8b8339815191526044820152606401610744565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000336114ff868285612377565b610907868686865b6001600160a01b03841661152d5760405162461bcd60e51b815260040161074490612add565b6001600160a01b0383166115925760405162461bcd60e51b815260206004820152602660248201527f5370656c6c73436f696e3a207472616e7366657220746f20746865207a65726f604482015265103a37b5b2b760d11b6064820152608401610744565b61159d843083611ab5565b80600a60008282546115af9190612962565b90915550506001600160a01b0383166000908152600660209081526040808320858452909152812080548392906115e7908490612962565b9091555050604080516000198152602081018490529081018290526001600160a01b0380851691908616907f289d2e2407d181952052f3fbc3665f5cc5ff7149b71cde3c4f71997640e11eb6906060015b60405180910390a35b50505050565b6001600160a01b0383166116a95760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610744565b6001600160a01b03821661170a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610744565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6040516331a9108f60e11b8152600481018290526000906001600160a01b03841690636352211e90602401602060405180830381865afa1580156117b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d79190612c06565b9392505050565b6001600160a01b0383166118405760405162461bcd60e51b8152602060048201526024808201527f5370656c6c73436f696e3a206d696e7420746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610744565b6001600160a01b038316600090815260066020908152604080832085845290915281208054839290611873908490612962565b9250508190555080600a600082825461188c9190612962565b9091555061189c90503082611da6565b604080516000198152602081018490529081018290526001600160a01b038416906000907f289d2e2407d181952052f3fbc3665f5cc5ff7149b71cde3c4f71997640e11eb69060600160405180910390a3505050565b60006118ff858585610699565b9050600019811461197357818110156119655760405162461bcd60e51b815260206004820152602260248201527f5370656c6c73436f696e3a20696e73756666696369656e7420616c6c6f77616e604482015261636560f01b6064820152608401610744565b611973858585858503611e85565b5050505050565b6001600160a01b0385166119a05760405162461bcd60e51b815260040161074490612add565b6001600160a01b0383166119c65760405162461bcd60e51b815260040161074490612b27565b6001600160a01b038516600090815260066020908152604080832087845290915290205481811015611a0a5760405162461bcd60e51b815260040161074490612c23565b6001600160a01b0380871660009081526006602081815260408084208a855282528084208787039055938816835290815282822086835290529081208054849290611a56908490612962565b909155505060408051868152602081018590529081018390526001600160a01b0380861691908816907f289d2e2407d181952052f3fbc3665f5cc5ff7149b71cde3c4f71997640e11eb69060600160405180910390a35b505050505050565b6001600160a01b038316611b195760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610744565b6001600160a01b038216611b7b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610744565b6001600160a01b03831660009081526020819052604090205481811015611bf35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610744565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611c2a908490612962565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611c7691815260200190565b60405180910390a3611641565b6001600160a01b038416611ca95760405162461bcd60e51b815260040161074490612add565b6001600160a01b038216611ccf5760405162461bcd60e51b815260040161074490612b27565b6001600160a01b038416600090815260066020908152604080832086845290915290205481811015611d135760405162461bcd60e51b815260040161074490612c23565b6001600160a01b038516600090815260066020908152604080832087845290915290208282039055600a80548390039055611d4f308484611ab5565b6040805185815260001960208201529081018390526001600160a01b0380851691908716907f289d2e2407d181952052f3fbc3665f5cc5ff7149b71cde3c4f71997640e11eb69060600160405180910390a3611973565b6001600160a01b038216611dfc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610744565b8060026000828254611e0e9190612962565b90915550506001600160a01b03821660009081526020819052604081208054839290611e3b908490612962565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038416611eed5760405162461bcd60e51b815260206004820152602960248201527f5370656c6c73436f696e3a20617070726f76652066726f6d20746865207a65726044820152686f206164647265737360b81b6064820152608401610744565b6001600160a01b038216611f535760405162461bcd60e51b815260206004820152602760248201527f5370656c6c73436f696e3a20617070726f766520746f20746865207a65726f206044820152666164647265737360c81b6064820152608401610744565b3360009081526009602090815260408083206001600160a01b038881168086529184528285208886528452828520908716808652908452938290208590558151878152928301859052917f339bd50bfe0327109c6a2f9a522ebe6fee6fd68f7d7e662d7d7d7680aa6361ee9101611638565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b03821661206f5760405162461bcd60e51b815260206004820152601860248201527f5370656c6c73436f696e3a207a65726f206164647265737300000000000000006044820152606401610744565b60408051600481526024810182526020810180516001600160e01b0316638da5cb5b60e01b179052905160009182916001600160a01b038616916120b291612c6e565b600060405180830381855afa9150503d80600081146120ed576040519150601f19603f3d011682016040523d82523d6000602084013e6120f2565b606091505b50915091508161214f5760405162461bcd60e51b815260206004820152602260248201527f5370656c6c73436f696e3a20636f756c64206e6f7420617373657373206f776e60448201526132b960f11b6064820152608401610744565b6000818060200190518101906121659190612c06565b95945050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101859052600090600190605c0160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015612205573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b82516001600160a01b03166122945760405162461bcd60e51b815260206004820152602660248201527f4552433230583a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b6064820152608401610744565b81516001600160a01b03166122f75760405162461bcd60e51b8152602060048201526024808201527f4552433230583a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610744565b61230083612403565b156123455761230e82612403565b156123305761075883600001518460200151846000015185602001518561197a565b82516020840151835161075892919084611c83565b61234e82612403565b156123685782518251602084015161075892919084611507565b82518251610758919083611ab5565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461164157818110156123f65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610744565b6116418484848403611647565b80516000906001600160a01b03163b1515801561242f575060008260200151118061242f575081604001515b92915050565b6001600160a01b0381168114610f5057600080fd5b6000806040838503121561245d57600080fd5b823561246881612435565b946020939093013593505050565b60005b83811015612491578181015183820152602001612479565b838111156116415750506000910152565b60208152600082518060208401526124c1816040850160208701612476565b601f01601f19169190910160400192915050565b6000806000606084860312156124ea57600080fd5b83356124f581612435565b95602085013595506040909401359392505050565b60008060006060848603121561251f57600080fd5b833561252a81612435565b925060208401359150604084013561254181612435565b809150509250925092565b600080600080600060a0868803121561256457600080fd5b853561256f81612435565b945060208601359350604086013561258681612435565b94979396509394606081013594506080013592915050565b6000806000606084860312156125b357600080fd5b83356125be81612435565b925060208401356125ce81612435565b929592945050506040919091013590565b600080600080608085870312156125f557600080fd5b843561260081612435565b935060208501359250604085013561261781612435565b9396929550929360600135925050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261264e57600080fd5b813567ffffffffffffffff8082111561266957612669612627565b604051601f8301601f19908116603f0116810190828211818310171561269157612691612627565b816040528381528660208588010111156126aa57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080604083850312156126dd57600080fd5b823567ffffffffffffffff808211156126f557600080fd5b6127018683870161263d565b9350602085013591508082111561271757600080fd5b506127248582860161263d565b9150509250929050565b60006020828403121561274057600080fd5b81356117d781612435565b6000806040838503121561275e57600080fd5b823561276981612435565b9150602083013561277981612435565b809150509250929050565b6000806000806080858703121561279a57600080fd5b84356127a581612435565b935060208501356127b581612435565b92506040850135915060608501356127cc81612435565b939692955090935050565b6000606082840312156127e957600080fd5b50919050565b6000806000806000806000610160888a03121561280b57600080fd5b61281589896127d7565b96506128248960608a016127d7565b955060c0880135945060e0880135935061010088013560ff8116811461284957600080fd5b9699959850939692959461012084013594506101409093013592915050565b6000806000806080858703121561287e57600080fd5b843561288981612435565b9350602085013561289981612435565b93969395505050506040820135916060013590565b600181811c908216806128c257607f821691505b6020821081036127e957634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161290a5761290a6128e2565b5060010190565b60208082526031908201527f5370656c6c73436f696e3a207472616e73666572206e6f7420696e697469617460408201527032b210313c903a37b5b2b71037bbb732b960791b606082015260800190565b60008219821115612975576129756128e2565b500190565b60208082526039908201527f5370656c6c73436f696e3a20616c6c6f77616e6365206368616e6765206e6f7460408201527f20696e6974696174656420627920746f6b656e206f776e657200000000000000606082015260800190565b601f82111561075857600081815260208120601f850160051c810160208610156129fe5750805b601f850160051c820191505b81811015611aad57828155600101612a0a565b815167ffffffffffffffff811115612a3757612a37612627565b612a4b81612a4584546128ae565b846129d7565b602080601f831160018114612a805760008415612a685750858301515b600019600386901b1c1916600185901b178555611aad565b600085815260208120601f198616915b82811015612aaf57888601518255948401946001909101908401612a90565b5085821015612acd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602a908201527f5370656c6c73436f696e3a207472616e736665722066726f6d20746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526028908201527f5370656c6c73436f696e3a207472616e7366657220746f20746865207a65726f604082015267206164647265737360c01b606082015260800190565b80358015158114612b7f57600080fd5b919050565b600060208284031215612b9657600080fd5b6117d782612b6f565b600060608284031215612bb157600080fd5b6040516060810181811067ffffffffffffffff82111715612bd457612bd4612627565b6040528235612be281612435565b815260208381013590820152612bfa60408401612b6f565b60408201529392505050565b600060208284031215612c1857600080fd5b81516117d781612435565b6020808252602b908201527f5370656c6c73436f696e3a207472616e7366657220616d6f756e74206578636560408201526a6564732062616c616e636560a81b606082015260800190565b60008251612c80818460208701612476565b919091019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122072937bf541e178c63170f155e5c409ec544fec8b97f84aa7780845087905beca64736f6c634300080f00330000000000000000000000007fef3f3364c7d8b9bfabb1b24d5ce92a402c6bd300000000000000000000000000000000000000000000469604a4b21353340000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061023c5760003560e01c806370a082311161013b578063dd62ed3e116100b8578063f2fde38b1161007c578063f2fde38b14610578578063f53eceac1461058b578063f767d2ff1461059e578063fca3b5aa146105b1578063fe99049a146105c457600080fd5b8063dd62ed3e146104c3578063e1afa03b146104fc578063e543b90c1461051c578063e8b1a9b21461052f578063f2881e211461056557600080fd5b80638da5cb5b116100ff5780638da5cb5b1461046757806395d89b4114610482578063a457c2d71461048a578063a9059cbb1461049d578063ac689bcd146104b057600080fd5b806370a08231146103e757806370ae92d214610410578063715018a6146104395780637eb2e83514610441578063837381fa1461045457600080fd5b8063217d0a52116101c957806340c10f191161018d57806340c10f191461037b57806343e3f0c51461038e5780634e71d92d146103a15780635c707f07146103a95780636c45d385146103bc57600080fd5b8063217d0a521461032057806323b872dd14610333578063313ce56714610346578063335a940614610355578063395093511461036857600080fd5b806309a36a991161021057806309a36a99146102d55780630fefc757146102e8578063156e29f6146102f057806318160ddd146103055780631d856ea71461030d57600080fd5b8062fdd58e1461024157806306fdde031461028a578063095bcdb61461029f578063095ea7b3146102c2575b600080fd5b61027761024f36600461244a565b6001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6040519081526020015b60405180910390f35b6102926105d7565b60405161028191906124a2565b6102b26102ad3660046124d5565b610669565b6040519015158152602001610281565b6102b26102d036600461244a565b610683565b6102776102e336600461250a565b610699565b600a54610277565b6103036102fe3660046124d5565b6106ee565b005b600254610277565b6102b261031b36600461254c565b61075d565b61030361032e36600461244a565b610786565b6102b261034136600461259e565b610825565b60405160128152602001610281565b6102b26103633660046125df565b6108c4565b6102b261037636600461244a565b610913565b61030361038936600461244a565b61094f565b6102b261039c3660046125df565b6109b7565b610303610a10565b6103036103b73660046126ca565b610b33565b6102776103ca36600461244a565b600760209081526000928352604080842090915290825290205481565b6102776103f536600461272e565b6001600160a01b031660009081526020819052604090205490565b61027761041e36600461272e565b6001600160a01b031660009081526008602052604090205490565b610303610b87565b6102b261044f3660046125df565b610bdb565b61030361046236600461244a565b610c67565b600b546040516001600160a01b039091168152602001610281565b610292610d61565b6102b261049836600461244a565b610d70565b6102b26104ab36600461244a565b610e09565b6102b26104be3660046125df565b610e16565b6102776104d136600461274b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61027761050a36600461272e565b60086020526000908152604090205481565b61027761052a366004612784565b610e25565b61027761053d36600461244a565b6001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6102b261057336600461254c565b610e63565b61030361058636600461272e565b610e9a565b6103036105993660046127ef565b610f53565b6102b26105ac3660046125df565b6113cf565b6103036105bf36600461272e565b611487565b6102b26105d2366004612868565b6114f1565b6060600380546105e6906128ae565b80601f0160208091040260200160405190810160405280929190818152602001828054610612906128ae565b801561065f5780601f106106345761010080835404028352916020019161065f565b820191906000526020600020905b81548152906001019060200180831161064257829003601f168201915b5050505050905090565b60003361067881868686611507565b506001949350505050565b6000610690338484611647565b50600192915050565b6000600960006106a9868661176b565b6001600160a01b039081168252602080830193909352604091820160009081208883168252845282812087825284528281209186168152925290205490509392505050565b600c546001600160a01b0316331461074d5760405162461bcd60e51b815260206004820152601d60248201527f5370656c6c73436f696e3a2073656e646572206e6f74206d696e74657200000060448201526064015b60405180910390fd5b6107588383836117de565b505050565b60003361076c878783866118f2565b610779878787878761197a565b5060019695505050505050565b6000610792838361176b565b9050336001600160a01b038216146107ec5760405162461bcd60e51b815260206004820152601e60248201527f5370656c6c73436f696e3a20496e76616c6964207769746864726177616c00006044820152606401610744565b6001600160a01b0383166000908152600760209081526040808320858452909152812080549161081b836128f8565b9190505550505050565b6000610832848484611ab5565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108b75760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610744565b6106788533858403611647565b6000806108d1868661176b565b9050336001600160a01b038216146108fb5760405162461bcd60e51b815260040161074490612911565b61090786868686611c83565b50600195945050505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161069091859061094a908690612962565b611647565b600c546001600160a01b031633146109a95760405162461bcd60e51b815260206004820152601d60248201527f5370656c6c73436f696e3a2073656e646572206e6f74206d696e7465720000006044820152606401610744565b6109b38282611da6565b5050565b6000806109c4868661176b565b9050336001600160a01b038216146109ee5760405162461bcd60e51b81526004016107449061297a565b61090786868686610a01868c8c8c610e25565b610a0b9190612962565b611e85565b600b546001600160a01b03163314610a585760405162461bcd60e51b81526020600482018190526024820152600080516020612c8b8339815191526044820152606401610744565b600260055403610aaa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610744565b6002600555600d54610b0a5760405162461bcd60e51b815260206004820152602360248201527f5370656c6c73436f696e3a206e6f20636c61696d61626c65642072656d61696e604482015262696e6760e81b6064820152608401610744565b610b27610b1f600b546001600160a01b031690565b600d54611da6565b6000600d556001600555565b600b546001600160a01b03163314610b7b5760405162461bcd60e51b81526020600482018190526024820152600080516020612c8b8339815191526044820152606401610744565b60036107588382612a1d565b600b546001600160a01b03163314610bcf5760405162461bcd60e51b81526020600482018190526024820152600080516020612c8b8339815191526044820152606401610744565b610bd96000611fc5565b565b600080610be8868661176b565b9050336001600160a01b03821614610c5b5760405162461bcd60e51b815260206004820152603060248201527f5370656c6c73436f696e3a20617070726f7665206e6f7420696e69746961746560448201526f3210313c903a37b5b2b71037bbb732b960811b6064820152608401610744565b61090786868686611e85565b600260055403610cb95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610744565b60026005556001600160a01b038216610ce45760405162461bcd60e51b815260040161074490612add565b610ced82612017565b6001600160a01b0316336001600160a01b031614610d4d5760405162461bcd60e51b815260206004820152601e60248201527f5370656c6c73436f696e3a20696e76616c6964207769746864726177616c00006044820152606401610744565b610d58823383611ab5565b50506001600555565b6060600480546105e6906128ae565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610df25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610744565b610dff3385858403611647565b5060019392505050565b6000610690338484611ab5565b6000336108fb868683866118f2565b6001600160a01b0393841660009081526009602090815260408083209587168352948152848220938252928352838120919094168452905290205490565b600080610e70878761176b565b9050336001600160a01b0382161461076c5760405162461bcd60e51b815260040161074490612911565b600b546001600160a01b03163314610ee25760405162461bcd60e51b81526020600482018190526024820152600080516020612c8b8339815191526044820152606401610744565b6001600160a01b038116610f475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610744565b610f5081611fc5565b50565b6000610f62602089018961272e565b6001600160a01b031603610f885760405162461bcd60e51b815260040161074490612add565b6000610f97602088018861272e565b6001600160a01b031603610fbd5760405162461bcd60e51b815260040161074490612b27565b6000610fcc602089018961272e565b9050610fed610fde60208a018a61272e565b6001600160a01b03163b151590565b156111ef5760008860200135118061101057506110106060890160408a01612b84565b1561111e5761102f61102560208a018a61272e565b896020013561176b565b90506007600061104260208b018b61272e565b6001600160a01b03166001600160a01b031681526020019081526020016000206000896020013581526020019081526020016000205485146110c25760405162461bcd60e51b81526020600482015260196024820152785370656c6c73436f696e3a20696e76616c6964206e6f6e636560381b6044820152606401610744565b600760006110d360208b018b61272e565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008960200135815260200190815260200160002060008154611115906128f8565b909155506111c4565b61113361112e60208a018a61272e565b612017565b6001600160a01b03811660009081526008602052604090205490915085146111995760405162461bcd60e51b81526020600482015260196024820152785370656c6c73436f696e3a20696e76616c6964206e6f6e636560381b6044820152606401610744565b6001600160a01b038116600090815260086020526040812080549091906111bf906128f8565b909155505b6001600160a01b0381166111ea5760405162461bcd60e51b815260040161074490612add565b61127d565b6001600160a01b03811660009081526008602052604090205485146112525760405162461bcd60e51b81526020600482015260196024820152785370656c6c73436f696e3a20696e76616c6964206e6f6e636560381b6044820152606401610744565b6001600160a01b03811660009081526008602052604081208054909190611278906128f8565b909155505b611352813361128f60208c018c61272e565b60208c01356112a460608e0160408f01612b84565b6112b160208e018e61272e565b8d602001358e60400160208101906112c99190612b84565b6040516bffffffffffffffffffffffff19606098891b8116602083015296881b87166034820152604881019590955292151560f890811b60688601529190951b9093166069830152607d820193909352911515901b609d820152609e810189905260be810188905260de016040516020818303038152906040528051906020012086868661216e565b61139e5760405162461bcd60e51b815260206004820152601960248201527f4552433230583a20696e76616c6964207369676e6174757265000000000000006044820152606401610744565b6113c56113b0368a90038a018a612b9f565b6113bf368a90038a018a612b9f565b8861222e565b5050505050505050565b6000806113dc868661176b565b9050336001600160a01b038216146114065760405162461bcd60e51b81526004016107449061297a565b600061141482888888610e25565b9050838110156114795760405162461bcd60e51b815260206004820152602a60248201527f5370656c6c73436f696e3a2064656372656173656420616c6c6f77616e63652060448201526962656c6f77207a65726f60b01b6064820152608401610744565b610779878787878503611e85565b600b546001600160a01b031633146114cf5760405162461bcd60e51b81526020600482018190526024820152600080516020612c8b8339815191526044820152606401610744565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000336114ff868285612377565b610907868686865b6001600160a01b03841661152d5760405162461bcd60e51b815260040161074490612add565b6001600160a01b0383166115925760405162461bcd60e51b815260206004820152602660248201527f5370656c6c73436f696e3a207472616e7366657220746f20746865207a65726f604482015265103a37b5b2b760d11b6064820152608401610744565b61159d843083611ab5565b80600a60008282546115af9190612962565b90915550506001600160a01b0383166000908152600660209081526040808320858452909152812080548392906115e7908490612962565b9091555050604080516000198152602081018490529081018290526001600160a01b0380851691908616907f289d2e2407d181952052f3fbc3665f5cc5ff7149b71cde3c4f71997640e11eb6906060015b60405180910390a35b50505050565b6001600160a01b0383166116a95760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610744565b6001600160a01b03821661170a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610744565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6040516331a9108f60e11b8152600481018290526000906001600160a01b03841690636352211e90602401602060405180830381865afa1580156117b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d79190612c06565b9392505050565b6001600160a01b0383166118405760405162461bcd60e51b8152602060048201526024808201527f5370656c6c73436f696e3a206d696e7420746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610744565b6001600160a01b038316600090815260066020908152604080832085845290915281208054839290611873908490612962565b9250508190555080600a600082825461188c9190612962565b9091555061189c90503082611da6565b604080516000198152602081018490529081018290526001600160a01b038416906000907f289d2e2407d181952052f3fbc3665f5cc5ff7149b71cde3c4f71997640e11eb69060600160405180910390a3505050565b60006118ff858585610699565b9050600019811461197357818110156119655760405162461bcd60e51b815260206004820152602260248201527f5370656c6c73436f696e3a20696e73756666696369656e7420616c6c6f77616e604482015261636560f01b6064820152608401610744565b611973858585858503611e85565b5050505050565b6001600160a01b0385166119a05760405162461bcd60e51b815260040161074490612add565b6001600160a01b0383166119c65760405162461bcd60e51b815260040161074490612b27565b6001600160a01b038516600090815260066020908152604080832087845290915290205481811015611a0a5760405162461bcd60e51b815260040161074490612c23565b6001600160a01b0380871660009081526006602081815260408084208a855282528084208787039055938816835290815282822086835290529081208054849290611a56908490612962565b909155505060408051868152602081018590529081018390526001600160a01b0380861691908816907f289d2e2407d181952052f3fbc3665f5cc5ff7149b71cde3c4f71997640e11eb69060600160405180910390a35b505050505050565b6001600160a01b038316611b195760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610744565b6001600160a01b038216611b7b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610744565b6001600160a01b03831660009081526020819052604090205481811015611bf35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610744565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611c2a908490612962565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611c7691815260200190565b60405180910390a3611641565b6001600160a01b038416611ca95760405162461bcd60e51b815260040161074490612add565b6001600160a01b038216611ccf5760405162461bcd60e51b815260040161074490612b27565b6001600160a01b038416600090815260066020908152604080832086845290915290205481811015611d135760405162461bcd60e51b815260040161074490612c23565b6001600160a01b038516600090815260066020908152604080832087845290915290208282039055600a80548390039055611d4f308484611ab5565b6040805185815260001960208201529081018390526001600160a01b0380851691908716907f289d2e2407d181952052f3fbc3665f5cc5ff7149b71cde3c4f71997640e11eb69060600160405180910390a3611973565b6001600160a01b038216611dfc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610744565b8060026000828254611e0e9190612962565b90915550506001600160a01b03821660009081526020819052604081208054839290611e3b908490612962565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038416611eed5760405162461bcd60e51b815260206004820152602960248201527f5370656c6c73436f696e3a20617070726f76652066726f6d20746865207a65726044820152686f206164647265737360b81b6064820152608401610744565b6001600160a01b038216611f535760405162461bcd60e51b815260206004820152602760248201527f5370656c6c73436f696e3a20617070726f766520746f20746865207a65726f206044820152666164647265737360c81b6064820152608401610744565b3360009081526009602090815260408083206001600160a01b038881168086529184528285208886528452828520908716808652908452938290208590558151878152928301859052917f339bd50bfe0327109c6a2f9a522ebe6fee6fd68f7d7e662d7d7d7680aa6361ee9101611638565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b03821661206f5760405162461bcd60e51b815260206004820152601860248201527f5370656c6c73436f696e3a207a65726f206164647265737300000000000000006044820152606401610744565b60408051600481526024810182526020810180516001600160e01b0316638da5cb5b60e01b179052905160009182916001600160a01b038616916120b291612c6e565b600060405180830381855afa9150503d80600081146120ed576040519150601f19603f3d011682016040523d82523d6000602084013e6120f2565b606091505b50915091508161214f5760405162461bcd60e51b815260206004820152602260248201527f5370656c6c73436f696e3a20636f756c64206e6f7420617373657373206f776e60448201526132b960f11b6064820152608401610744565b6000818060200190518101906121659190612c06565b95945050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101859052600090600190605c0160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015612205573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b82516001600160a01b03166122945760405162461bcd60e51b815260206004820152602660248201527f4552433230583a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b6064820152608401610744565b81516001600160a01b03166122f75760405162461bcd60e51b8152602060048201526024808201527f4552433230583a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610744565b61230083612403565b156123455761230e82612403565b156123305761075883600001518460200151846000015185602001518561197a565b82516020840151835161075892919084611c83565b61234e82612403565b156123685782518251602084015161075892919084611507565b82518251610758919083611ab5565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461164157818110156123f65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610744565b6116418484848403611647565b80516000906001600160a01b03163b1515801561242f575060008260200151118061242f575081604001515b92915050565b6001600160a01b0381168114610f5057600080fd5b6000806040838503121561245d57600080fd5b823561246881612435565b946020939093013593505050565b60005b83811015612491578181015183820152602001612479565b838111156116415750506000910152565b60208152600082518060208401526124c1816040850160208701612476565b601f01601f19169190910160400192915050565b6000806000606084860312156124ea57600080fd5b83356124f581612435565b95602085013595506040909401359392505050565b60008060006060848603121561251f57600080fd5b833561252a81612435565b925060208401359150604084013561254181612435565b809150509250925092565b600080600080600060a0868803121561256457600080fd5b853561256f81612435565b945060208601359350604086013561258681612435565b94979396509394606081013594506080013592915050565b6000806000606084860312156125b357600080fd5b83356125be81612435565b925060208401356125ce81612435565b929592945050506040919091013590565b600080600080608085870312156125f557600080fd5b843561260081612435565b935060208501359250604085013561261781612435565b9396929550929360600135925050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261264e57600080fd5b813567ffffffffffffffff8082111561266957612669612627565b604051601f8301601f19908116603f0116810190828211818310171561269157612691612627565b816040528381528660208588010111156126aa57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080604083850312156126dd57600080fd5b823567ffffffffffffffff808211156126f557600080fd5b6127018683870161263d565b9350602085013591508082111561271757600080fd5b506127248582860161263d565b9150509250929050565b60006020828403121561274057600080fd5b81356117d781612435565b6000806040838503121561275e57600080fd5b823561276981612435565b9150602083013561277981612435565b809150509250929050565b6000806000806080858703121561279a57600080fd5b84356127a581612435565b935060208501356127b581612435565b92506040850135915060608501356127cc81612435565b939692955090935050565b6000606082840312156127e957600080fd5b50919050565b6000806000806000806000610160888a03121561280b57600080fd5b61281589896127d7565b96506128248960608a016127d7565b955060c0880135945060e0880135935061010088013560ff8116811461284957600080fd5b9699959850939692959461012084013594506101409093013592915050565b6000806000806080858703121561287e57600080fd5b843561288981612435565b9350602085013561289981612435565b93969395505050506040820135916060013590565b600181811c908216806128c257607f821691505b6020821081036127e957634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161290a5761290a6128e2565b5060010190565b60208082526031908201527f5370656c6c73436f696e3a207472616e73666572206e6f7420696e697469617460408201527032b210313c903a37b5b2b71037bbb732b960791b606082015260800190565b60008219821115612975576129756128e2565b500190565b60208082526039908201527f5370656c6c73436f696e3a20616c6c6f77616e6365206368616e6765206e6f7460408201527f20696e6974696174656420627920746f6b656e206f776e657200000000000000606082015260800190565b601f82111561075857600081815260208120601f850160051c810160208610156129fe5750805b601f850160051c820191505b81811015611aad57828155600101612a0a565b815167ffffffffffffffff811115612a3757612a37612627565b612a4b81612a4584546128ae565b846129d7565b602080601f831160018114612a805760008415612a685750858301515b600019600386901b1c1916600185901b178555611aad565b600085815260208120601f198616915b82811015612aaf57888601518255948401946001909101908401612a90565b5085821015612acd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602a908201527f5370656c6c73436f696e3a207472616e736665722066726f6d20746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526028908201527f5370656c6c73436f696e3a207472616e7366657220746f20746865207a65726f604082015267206164647265737360c01b606082015260800190565b80358015158114612b7f57600080fd5b919050565b600060208284031215612b9657600080fd5b6117d782612b6f565b600060608284031215612bb157600080fd5b6040516060810181811067ffffffffffffffff82111715612bd457612bd4612627565b6040528235612be281612435565b815260208381013590820152612bfa60408401612b6f565b60408201529392505050565b600060208284031215612c1857600080fd5b81516117d781612435565b6020808252602b908201527f5370656c6c73436f696e3a207472616e7366657220616d6f756e74206578636560408201526a6564732062616c616e636560a81b606082015260800190565b60008251612c80818460208701612476565b919091019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122072937bf541e178c63170f155e5c409ec544fec8b97f84aa7780845087905beca64736f6c634300080f0033

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

0000000000000000000000007fef3f3364c7d8b9bfabb1b24d5ce92a402c6bd300000000000000000000000000000000000000000000469604a4b21353340000

-----Decoded View---------------
Arg [0] : _minter (address): 0x7fef3f3364C7d8B9BFabB1b24D5CE92A402c6Bd3
Arg [1] : _claimable (uint256): 333333000000000000000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007fef3f3364c7d8b9bfabb1b24d5ce92a402c6bd3
Arg [1] : 00000000000000000000000000000000000000000000469604a4b21353340000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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