ETH Price: $2,922.62 (-9.82%)
Gas: 23 Gwei

Contract

0x4aBc2Be290F8bb4326Ec71fED3Ed322B79D9f88a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...191515972024-02-04 1:09:11152 days ago1707008951IN
0x4aBc2Be2...B79D9f88a
0 ETH0.000555912.04667325
Set Approval For...186458822023-11-25 2:58:23223 days ago1700881103IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0005074120.86592846
Set Approval For...183775172023-10-18 13:24:47260 days ago1697635487IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0007683916.65138296
Set Approval For...180072182023-08-27 16:34:11312 days ago1693154051IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0007772716.84374089
Set Approval For...179144722023-08-14 17:06:47325 days ago1692032807IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0020964745.43143212
Safe Transfer Fr...175736962023-06-27 22:36:47373 days ago1687905407IN
0x4aBc2Be2...B79D9f88a
0 ETH0.000734713.43153305
Set Approval For...175667482023-06-26 23:06:59374 days ago1687820819IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0003174713.10034659
Set Approval For...174221352023-06-06 14:56:35394 days ago1686063395IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0007846132.3764892
Set Approval For...174077922023-06-04 14:20:35396 days ago1685888435IN
0x4aBc2Be2...B79D9f88a
0 ETH0.001107624.00211092
Safe Transfer Fr...173682732023-05-30 0:43:11402 days ago1685407391IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0012741323.32812143
Safe Transfer Fr...173682692023-05-30 0:42:23402 days ago1685407343IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0012717223.28395037
Set Approval For...173566012023-05-28 9:22:23403 days ago1685265743IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0011151124.16496503
Set Approval For...173275482023-05-24 7:24:35407 days ago1684913075IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0022531948.82748951
Safe Transfer Fr...171376382023-04-27 12:53:35434 days ago1682600015IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0018520233.91621352
Set Approval For...169431482023-03-30 22:52:35462 days ago1680216755IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0013718129.72776063
Set Approval For...169287122023-03-28 22:11:35464 days ago1680041495IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0014085730.52426884
Set Approval For...169226452023-03-28 1:42:59465 days ago1679967779IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0010832723.47494449
Set Approval For...168463832023-03-17 8:35:23475 days ago1679042123IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0007512516.27995505
Set Approval For...167421652023-03-02 16:50:23490 days ago1677775823IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0014699460.65631009
Set Approval For...166828602023-02-22 8:39:35498 days ago1677055175IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0017145737.15535032
Set Approval For...164264882023-01-17 12:21:59534 days ago1673958119IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0007832816.97413689
Set Approval For...164132412023-01-15 15:57:47536 days ago1673798267IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0005629523.22978452
Set Approval For...164038222023-01-14 8:22:47537 days ago1673684567IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0008050317.44533119
Set Approval For...164037792023-01-14 8:14:11537 days ago1673684051IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0004554118.79233498
Safe Transfer Fr...164011042023-01-13 23:17:23538 days ago1673651843IN
0x4aBc2Be2...B79D9f88a
0 ETH0.0015814928.88779339
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
151456902022-07-15 6:42:03720 days ago1657867323
0x4aBc2Be2...B79D9f88a
15.8 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ShintaroToken

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : shintaro2.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { ERC1155Supply, ERC1155 } from "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import { ERC1155Burnable } from "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";

// ///#///(#**(,**/.,,,/,,/...../.../..%(%,#.,((,,,#,//.(....    .,,/%%///(,,/(/,*,
// /*%/**///**/*,,,*,/,,*.,/(,,,./,.(./*(.(.(,,,#.(..#((..  ..    ,,(/%/*****,*/*/,
// *///*(/*(/**/.*/,,*(****../..        .,.,/.(.*/. *              ,**(#/**,*,(((*,
// ****(#*//(..,,/,(#/*##((*                            ,(.        /**/////*,/,*(*(
// *#,*/(//,,#(..     ....                                             ,,,/%/(/,,/*
// ,*,/(**#...     .                                                      .,/((#/,/
// (*,*%,...     .                                              .            .*,/#(
// .,,*,.    ..%,,%&%%%%&,.                                ,(#&%(/(&&(./         ,*
// ,,*(,.    #*(/.   /((  &&(.                          .(%%*..       %/% #%       
// *,(/..  **&%   *///****/ && .                       ./#/,           ,%#(,.      
// ,,*/...*(#%    %/****,*.  %..                      ..*#,     (%/    .(,(#./     
// ,,*(....     ((#((#%&&* / ..                      .../#    (*****,, .(/./(.     
// *,/(.......       ..  ..                          *. /%(   (*,***#  (.  .#..    
// (,(/,....                                           .(*,.&    #..(/(  (//(      
// (,,/,...                                              (**/ .  . ..  ,   .(      
// ,,,/,....                     ....                    .(..  %//(***( *%%/       
// ,,,(,...                       ..                      ,(,   . ,,***. .%/       
// ,(,(/,...                     ./                        .,  ,.         #.       
// ,,.,%,......                   ..... ........            ,.,(/.      .,,        
// ,,(,/.,....                            ....               ,,      (&%&#.        
// ,,,,,(,...                                                 ,,      ,.(.         
// %,,,.(/,...                                                 ,#//(///(*.        (
// *#,,(.,*,...                                                 .*%(&#%,.        */
// (,#,,,, ,.......                                               ,,/,**        ,. 
// ,/,(,,,.,*......                #*,,**/*,,,,(&&/                .,, ,       #/(,
// /**,(,,,.*(,.....             %/*,,,,.**,,,,,,**(&(             , #(       *(*..
// *,,,.(..*./(.,....             /#*,......,,,,,,,%               /,   ,   %,,/(#.
// //,*,.,,.(./%*(,....             %*.......,,,,*.                 (,./..#(*,/*..*
// (/#*,,..,.,,(((,(.,...             %(****,,(%.                    *..   ,,,/##.#
// ,/*((,,.,,.,.*(/.,#%.....                                          *..   (,((. *
// **(*#/*,,,..,.*#(,,(*/(.....                                    ,,.*... ./#((.,,
// .%//*%*/,.*..*.*#(,,,,,..%.....                            ....,  .%/,...   ....
// . ,%#*(/*/,*../ ./(,/*((**/ (#.....                      &*.,      &.,#..    ...
//  ../#**/#,,,...(.*,#,*,,,.%( *../*....              #,    *./,.     */(,..    ..
//  ..(((,(,#(,*#../..,/**,/,.% */.....*(/%(**/%##*        /  /..(...   ,,*,..   ,,
//   .,(%/(/(**,*..././,,,%#,.(% */......                 *.,,././*,..   ,#*...   .
//   . **(*,,#(,(...(..,(/%((/.%  .........               .*..   *  ,..   .#       
//
//  DRP + Pellar 2022
//  The Eve of Revolution - Shintaro Kago

contract ShintaroToken is ERC1155Burnable, ERC1155Supply, Ownable {
  struct TokenInfo {
    bool tradingPaused;
    bool isPublic;
    uint64 maxPerTxn;
    uint64[] counterIds;
    uint64 editions;
    uint64 minted;
    uint256 price;
    uint256 start;
    uint256 end;
    string uri;
  }

  address public verifier = 0x046c2c915d899D550471d0a7b4d0FaCF79Cde290;
  string public hashKey = "shintaro-2-drp";

  mapping(uint64 => TokenInfo) public tokens;
  mapping(address => mapping(uint64 => uint32)) public claimed;

  constructor() ERC1155("") {
    init(0, 1, new uint64[](0), 100, 0.1 ether, 1656064800, 1656151200, "ipfs://QmZh7eTRton4tXDz1QKYwR6Q7CTKjreVXivnP82upJ3bFz");
    init(1, 1, new uint64[](0), 100, 0.1 ether, 1656064800, 1656151200, "ipfs://QmNYgc62U4rEZb8KtwK5ZJyGecEpviCq9q882gRdugaxQL");
    init(2, 1, new uint64[](0), 50, 0.2 ether, 1656064800, 1656151200, "ipfs://QmRibdnhwZzrei2AMgJ2gh7BENkiekAA2wTupcEhFRjBcY");
    init(3, 1, new uint64[](0), 50, 0.2 ether, 1656064800, 1656151200, "ipfs://Qmc14sEo7PvtT5EZH5Kp4yp3wY7J9w3txeYpm4KDZsqupx");
    init(4, 1, new uint64[](0), 25, 0.7 ether, 1656064800, 1656151200, "ipfs://QmeDiAPYzxNqZQsFxdMTy7dEMFp4L5h3KX1NGzc7Y6dFk6");
    init(5, 1, new uint64[](0), 10, 1.25 ether, 1656064800, 1656151200, "ipfs://QmeZLNr2g69iKqWRGp4T9Em7ZqnWXWQgVqNniBb9VB6z1w");

    uint64[] memory counters = new uint64[](1);
    counters[0] = 7;
    init(6, 1, counters, 594, 0 ether, 1655676000, 1655762400, "ipfs://Qmd3PcKPTUxTBMkUc5ZxwnmS2XGjL3399uEuJqwtYfsEgy");

    counters[0] = 6;
    init(7, 1, counters, 594, 0 ether, 1655676000, 1655762400, "ipfs://Qmf2rERDrsFqxq76WVCZncBCbCZLn2Jwo32ksXBmKHibmL");
  }

  function init(
    uint64 _tokenId,
    uint64 _maxPerTxn,
    uint64[] memory _counterIds,
    uint64 _editions,
    uint256 _price,
    uint256 _start,
    uint256 _end,
    string memory _uri
  ) internal {
    tokens[_tokenId].maxPerTxn = _maxPerTxn;
    tokens[_tokenId].counterIds = _counterIds;
    tokens[_tokenId].editions = _editions;
    tokens[_tokenId].price = _price;
    tokens[_tokenId].start = _start;
    tokens[_tokenId].end = _end;
    tokens[_tokenId].uri = _uri;
  }

  function mint(
    uint64 _tokenId,
    uint32 _maxAmount,
    bytes calldata _signature,
    uint32 _amount
  ) external payable {
    TokenInfo storage token = tokens[_tokenId];

    require(tx.origin == msg.sender, "Not allowed");
    require(token.start <= block.timestamp && block.timestamp <= token.end, "Sale not active");
    require(_amount <= token.maxPerTxn, "Exceed txn");
    require(token.isPublic || eligibleClaim(_tokenId, _maxAmount, msg.sender, _signature, _amount), "Not eligible");
    require(token.minted + _amount <= token.editions, "Exceed max");
    require(msg.value >= token.price * _amount, "Ether value incorrect");

    _mint(msg.sender, _tokenId, _amount, "");
    token.minted += _amount;
    claimed[msg.sender][_tokenId] += _amount;
  }

  function uri(uint256 _id) public view virtual override returns (string memory) {
    require(exists(_id), "Non exist token");
    return tokens[uint64(_id)].uri;
  }

  function eligibleClaim(
    uint64 _tokenId,
    uint32 _maxAmount,
    address _account,
    bytes memory _signature,
    uint32 _amount
  ) public view returns (bool) {
    TokenInfo memory token = tokens[_tokenId];

    uint16 size = uint16(token.counterIds.length);
    for (uint16 i = 0; i < size; i++) {
      if (claimed[_account][token.counterIds[i]] > 0) {
        return false;
      }
    }

    return eligibleByWhitelist(_tokenId, _maxAmount, _account, _signature, _amount);
  }

  function eligibleByWhitelist(
    uint64 _tokenId,
    uint32 _maxAmount,
    address _account,
    bytes memory _signature,
    uint32 _amount
  ) internal view returns (bool) {
    bytes32 message = keccak256(abi.encodePacked(hashKey, _tokenId, _maxAmount, msg.sender));
    return validSignature(message, _signature) && claimed[_account][_tokenId] + _amount <= _maxAmount;
  }

  function getTokenInfo(uint64 _tokenId) public view returns (TokenInfo memory) {
    return tokens[_tokenId];
  }

  function setSignerInfo(address _signer, string calldata _hashKey) external onlyOwner {
    verifier = _signer;
    hashKey = _hashKey;
  }

  function setupToken(uint64 _tokenId, TokenInfo calldata _info) external onlyOwner {
    tokens[_tokenId].maxPerTxn = _info.maxPerTxn;
    tokens[_tokenId].counterIds = _info.counterIds;
    tokens[_tokenId].editions = _info.editions;
    tokens[_tokenId].price = _info.price;
    tokens[_tokenId].start = _info.start;
    tokens[_tokenId].end = _info.end;
    tokens[_tokenId].uri = _info.uri;
  }

  function setupMaxPerTxn(uint64[] calldata _tokenIds, uint64[] calldata _maxPerTxn) external onlyOwner {
    require(_tokenIds.length == _maxPerTxn.length, "Input mismatch");

    for (uint256 i = 0; i < _tokenIds.length; i++) {
      tokens[_tokenIds[i]].maxPerTxn = _maxPerTxn[i];
    }
  }

  function toggleRestriction(uint64[] calldata _tokenIds, bool[] calldata _status) external onlyOwner {
    require(_tokenIds.length == _status.length, "Input mismatch");

    for (uint256 i = 0; i < _tokenIds.length; i++) {
      tokens[_tokenIds[i]].isPublic = _status[i];
    }
  }

  function setupCounterTokens(uint64 _tokenId, uint64[] memory _counterIds) external onlyOwner {
    tokens[_tokenId].counterIds = _counterIds;
  }

  function setupEditions(uint64[] calldata _tokenIds, uint64[] memory _editions) external onlyOwner {
    require(_tokenIds.length == _editions.length, "Input mismatch");

    uint16 size = uint16(_tokenIds.length);
    for (uint16 i = 0; i < size; i++) {
      tokens[_tokenIds[i]].editions = _editions[i];
    }
  }

  function setupActiveTime(
    uint64[] calldata _tokenIds,
    uint256[] calldata _start,
    uint256[] calldata _end
  ) external onlyOwner {
    require(_tokenIds.length == _start.length, "Input mismatch");
    require(_tokenIds.length == _end.length, "Input mismatch");

    uint16 size = uint16(_tokenIds.length);
    for (uint16 i = 0; i < size; i++) {
      tokens[_tokenIds[i]].start = _start[i];
      tokens[_tokenIds[i]].end = _end[i];
    }
  }

  function setupPrice(uint64[] calldata _tokenIds, uint256[] calldata _price) external onlyOwner {
    require(_tokenIds.length == _price.length, "Input mismatch");
    uint16 size = uint16(_tokenIds.length);
    for (uint16 i = 0; i < size; i++) {
      tokens[_tokenIds[i]].price = _price[i];
    }
  }

  function setTokensUri(uint64[] calldata _tokenIds, string[] calldata _uri) external onlyOwner {
    require(_tokenIds.length == _uri.length, "Input mismatch");
    for (uint256 i = 0; i < _tokenIds.length; i++) {
      tokens[_tokenIds[i]].uri = _uri[i];
    }
  }

  function toggleTrading(uint64[] calldata _tokenIds, bool[] calldata _status) external onlyOwner {
    require(_tokenIds.length == _status.length, "Input mismatch");

    for (uint256 i = 0; i < _tokenIds.length; i++) {
      tokens[_tokenIds[i]].tradingPaused = _status[i];
    }
  }

  function teamClaim(
    address[] calldata _to,
    uint64[] calldata _tokenIds,
    uint32[] calldata _amount
  ) external onlyOwner {
    require(_to.length == _tokenIds.length, "Input mismatch");
    require(_to.length == _amount.length, "Input mismatch");

    uint16 size = uint16(_to.length);
    for (uint16 i = 0; i < size; i++) {
      _mint(_to[i], _tokenIds[i], _amount[i], "");
    }
  }

  function withdraw() public onlyOwner {
    uint256 balance = address(this).balance;
    payable(msg.sender).transfer(balance);
  }

  function _beforeTokenTransfer(
    address operator,
    address from,
    address to,
    uint256[] memory ids,
    uint256[] memory amounts,
    bytes memory data
  ) internal virtual override(ERC1155Supply, ERC1155) {
    super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

    for (uint256 i = 0; i < ids.length; i++) {
      require(from == address(0) || !tokens[uint64(ids[i])].tradingPaused, "Token paused");
    }
  }

  function splitSignature(bytes memory _sig)
    internal
    pure
    returns (
      uint8,
      bytes32,
      bytes32
    )
  {
    require(_sig.length == 65, "Invalid signature length");

    uint8 v;
    bytes32 r;
    bytes32 s;
    assembly {
      r := mload(add(_sig, 32))
      s := mload(add(_sig, 64))
      v := byte(0, mload(add(_sig, 96)))
    }
    return (v, r, s);
  }

  function validSignature(bytes32 _message, bytes memory _signature) public view returns (bool) {
    bytes32 ethSignedMessageHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", _message));
    (uint8 v, bytes32 r, bytes32 s) = splitSignature(_signature);
    return ecrecover(ethSignedMessageHash, v, r, s) == verifier;
  }
}

File 2 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(address(0));
    }

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

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

File 3 of 12 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}

File 4 of 12 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 5 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 6 of 12 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC1155).interfaceId ||
            interfaceId == type(IERC1155MetadataURI).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 7 of 12 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 8 of 12 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 12 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 10 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 11 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 12 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"claimed","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenId","type":"uint64"},{"internalType":"uint32","name":"_maxAmount","type":"uint32"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint32","name":"_amount","type":"uint32"}],"name":"eligibleClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenId","type":"uint64"}],"name":"getTokenInfo","outputs":[{"components":[{"internalType":"bool","name":"tradingPaused","type":"bool"},{"internalType":"bool","name":"isPublic","type":"bool"},{"internalType":"uint64","name":"maxPerTxn","type":"uint64"},{"internalType":"uint64[]","name":"counterIds","type":"uint64[]"},{"internalType":"uint64","name":"editions","type":"uint64"},{"internalType":"uint64","name":"minted","type":"uint64"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"internalType":"struct ShintaroToken.TokenInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hashKey","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenId","type":"uint64"},{"internalType":"uint32","name":"_maxAmount","type":"uint32"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint32","name":"_amount","type":"uint32"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"string","name":"_hashKey","type":"string"}],"name":"setSignerInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"_tokenIds","type":"uint64[]"},{"internalType":"string[]","name":"_uri","type":"string[]"}],"name":"setTokensUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"_tokenIds","type":"uint64[]"},{"internalType":"uint256[]","name":"_start","type":"uint256[]"},{"internalType":"uint256[]","name":"_end","type":"uint256[]"}],"name":"setupActiveTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenId","type":"uint64"},{"internalType":"uint64[]","name":"_counterIds","type":"uint64[]"}],"name":"setupCounterTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"_tokenIds","type":"uint64[]"},{"internalType":"uint64[]","name":"_editions","type":"uint64[]"}],"name":"setupEditions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"_tokenIds","type":"uint64[]"},{"internalType":"uint64[]","name":"_maxPerTxn","type":"uint64[]"}],"name":"setupMaxPerTxn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"_tokenIds","type":"uint64[]"},{"internalType":"uint256[]","name":"_price","type":"uint256[]"}],"name":"setupPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenId","type":"uint64"},{"components":[{"internalType":"bool","name":"tradingPaused","type":"bool"},{"internalType":"bool","name":"isPublic","type":"bool"},{"internalType":"uint64","name":"maxPerTxn","type":"uint64"},{"internalType":"uint64[]","name":"counterIds","type":"uint64[]"},{"internalType":"uint64","name":"editions","type":"uint64"},{"internalType":"uint64","name":"minted","type":"uint64"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"internalType":"struct ShintaroToken.TokenInfo","name":"_info","type":"tuple"}],"name":"setupToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint64[]","name":"_tokenIds","type":"uint64[]"},{"internalType":"uint32[]","name":"_amount","type":"uint32[]"}],"name":"teamClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"_tokenIds","type":"uint64[]"},{"internalType":"bool[]","name":"_status","type":"bool[]"}],"name":"toggleRestriction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"_tokenIds","type":"uint64[]"},{"internalType":"bool[]","name":"_status","type":"bool[]"}],"name":"toggleTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"}],"name":"tokens","outputs":[{"internalType":"bool","name":"tradingPaused","type":"bool"},{"internalType":"bool","name":"isPublic","type":"bool"},{"internalType":"uint64","name":"maxPerTxn","type":"uint64"},{"internalType":"uint64","name":"editions","type":"uint64"},{"internalType":"uint64","name":"minted","type":"uint64"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_message","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"validSignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"verifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600580546001600160a01b03191673046c2c915d899d550471d0a7b4d0facf79cde29017905560c0604052600e60808190526d07368696e7461726f2d322d6472760941b60a09081526200005791600691906200049b565b503480156200006557600080fd5b50604080516020810190915260008152620000808162000377565b506200008c3362000390565b60408051600080825260208201909252620000da9190600190606467016345785d8a00006362b58b206362b6dca0604051806060016040528060358152602001620049ce60359139620003e2565b604080516000808252602082019092526200012a91600191829150606467016345785d8a00006362b58b206362b6dca0604051806060016040528060358152602001620048c560359139620003e2565b604080516000808252602082019092526200017b916002916001915060326702c68af0bb1400006362b58b206362b6dca06040518060600160405280603581526020016200489060359139620003e2565b60408051600080825260208201909252620001cc916003916001915060326702c68af0bb1400006362b58b206362b6dca06040518060600160405280603581526020016200496460359139620003e2565b604080516000808252602082019092526200021d916004916001915060196709b6e64a8ec600006362b58b206362b6dca06040518060600160405280603581526020016200499960359139620003e2565b604080516000808252602082019092526200026e9160059160019150600a671158e460913d00006362b58b206362b6dca0604051806060016040528060358152602001620048fa60359139620003e2565b60408051600180825281830190925260009160208083019080368337019050509050600781600081518110620002a857620002a8620005f6565b60200260200101906001600160401b031690816001600160401b03168152505062000300600660018361025260006362af9c606362b0ede06040518060600160405280603581526020016200492f60359139620003e2565b600681600081518110620003185762000318620005f6565b60200260200101906001600160401b031690816001600160401b03168152505062000370600760018361025260006362af9c606362b0ede060405180606001604052806035815260200162004a0360359139620003e2565b5062000648565b80516200038c9060029060208401906200049b565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160401b0380891660009081526007602090815260409091208054928a16620100000262010000600160501b031990931692909217825587516200043092600101918901906200052a565b506001600160401b0388811660009081526007602090815260409091206002810180546001600160401b0319169389169390931790925560038201869055600482018590556005820184905582516200049092600601918401906200049b565b505050505050505050565b828054620004a9906200060c565b90600052602060002090601f016020900481019282620004cd576000855562000518565b82601f10620004e857805160ff191683800117855562000518565b8280016001018555821562000518579182015b8281111562000518578251825591602001919060010190620004fb565b5062000526929150620005df565b5090565b82805482825590600052602060002090600301600490048101928215620005185791602002820160005b83821115620005a057835183826101000a8154816001600160401b0302191690836001600160401b03160217905550926020019260080160208160070104928301926001030262000554565b8015620005d55782816101000a8154906001600160401b030219169055600801602081600701049283019260010302620005a0565b5050620005269291505b5b80821115620005265760008155600101620005e0565b634e487b7160e01b600052603260045260246000fd5b600181811c908216806200062157607f821691505b6020821081036200064257634e487b7160e01b600052602260045260246000fd5b50919050565b61423880620006586000396000f3fe6080604052600436106102035760003560e01c8063715018a611610118578063d404ea23116100a0578063e985e9c51161006f578063e985e9c51461062d578063f2003ac514610676578063f242432a146106c9578063f2fde38b146106e9578063f5298aca1461070957600080fd5b8063d404ea23146105ab578063dd93f3d4146105c0578063e0830266146105e0578063e11f7c1d1461060057600080fd5b8063a22cb465116100e7578063a22cb465146104e9578063a818ea9c14610509578063a8f3fdb814610529578063bb6a00451461055e578063bd85b0391461057e57600080fd5b8063715018a6146104765780637c81fa831461048b5780638da5cb5b146104ab5780639d870efd146104c957600080fd5b8063359d82ec1161019b5780634e1273f41161016a5780634e1273f4146103ba5780634f558e79146103e7578063578b97da146104165780635efaf993146104365780636b20c4541461045657600080fd5b8063359d82ec1461035257806336ae9143146103725780633ccfd60b1461039257806347b292e3146103a757600080fd5b806323ed6605116101d757806323ed6605146102ba5780632b7ac3f3146102da5780632eb2c2d614610312578063308e54391461033257600080fd5b8062fdd58e1461020857806301ffc9a71461023b5780630a68d7b21461026b5780630e89341c1461028d575b600080fd5b34801561021457600080fd5b50610228610223366004612f84565b610729565b6040519081526020015b60405180910390f35b34801561024757600080fd5b5061025b610256366004612fc4565b6107c0565b6040519015158152602001610232565b34801561027757600080fd5b5061028b610286366004613033565b610812565b005b34801561029957600080fd5b506102ad6102a836600461309e565b61090a565b6040516102329190613104565b3480156102c657600080fd5b5061028b6102d536600461320b565b610a05565b3480156102e657600080fd5b506005546102fa906001600160a01b031681565b6040516001600160a01b039091168152602001610232565b34801561031e57600080fd5b5061028b61032d366004613331565b610a63565b34801561033e57600080fd5b5061028b61034d366004613033565b610af3565b34801561035e57600080fd5b5061028b61036d366004613033565b610bd1565b34801561037e57600080fd5b5061028b61038d36600461341b565b610cb1565b34801561039e57600080fd5b5061028b610d08565b61028b6103b5366004613481565b610d65565b3480156103c657600080fd5b506103da6103d53660046134f6565b61108f565b60405161023291906135f1565b3480156103f357600080fd5b5061025b61040236600461309e565b600090815260036020526040902054151590565b34801561042257600080fd5b5061025b610431366004613604565b6111b8565b34801561044257600080fd5b5061028b610451366004613677565b611425565b34801561046257600080fd5b5061028b610471366004613710565b61158f565b34801561048257600080fd5b5061028b6115d2565b34801561049757600080fd5b5061028b6104a6366004613783565b611608565b3480156104b757600080fd5b506004546001600160a01b03166102fa565b3480156104d557600080fd5b5061028b6104e4366004613033565b6116fa565b3480156104f557600080fd5b5061028b6105043660046137f1565b6117e1565b34801561051557600080fd5b5061028b610524366004613677565b6117ec565b34801561053557600080fd5b50610549610544366004613824565b611922565b6040516102329998979695949392919061383f565b34801561056a57600080fd5b5061028b610579366004613033565b611a0f565b34801561058a57600080fd5b5061022861059936600461309e565b60009081526003602052604090205490565b3480156105b757600080fd5b506102ad611aef565b3480156105cc57600080fd5b5061025b6105db3660046138a7565b611b7d565b3480156105ec57600080fd5b5061028b6105fb3660046138e3565b611c63565b34801561060c57600080fd5b5061062061061b366004613824565b611da2565b6040516102329190613971565b34801561063957600080fd5b5061025b610648366004613a47565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561068257600080fd5b506106b4610691366004613a71565b600860209081526000928352604080842090915290825290205463ffffffff1681565b60405163ffffffff9091168152602001610232565b3480156106d557600080fd5b5061028b6106e4366004613a9b565b611fc8565b3480156106f557600080fd5b5061028b610704366004613aff565b61200d565b34801561071557600080fd5b5061028b610724366004613b1a565b6120a8565b60006001600160a01b03831661079a5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806107f157506001600160e01b031982166303a24d0760e21b145b8061080c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6004546001600160a01b0316331461083c5760405162461bcd60e51b815260040161079190613b4d565b82811461085b5760405162461bcd60e51b815260040161079190613b82565b60005b838110156109035782828281811061087857610878613baa565b905060200201602081019061088d9190613824565b600760008787858181106108a3576108a3613baa565b90506020020160208101906108b89190613824565b6001600160401b0390811682526020820192909252604001600020805469ffffffffffffffff00001916620100009390921692909202179055806108fb81613bd6565b91505061085e565b5050505050565b60008181526003602052604090205460609061095a5760405162461bcd60e51b815260206004820152600f60248201526e2737b71032bc34b9ba103a37b5b2b760891b6044820152606401610791565b6001600160401b0382166000908152600760205260409020600601805461098090613bef565b80601f01602080910402602001604051908101604052809291908181526020018280546109ac90613bef565b80156109f95780601f106109ce576101008083540402835291602001916109f9565b820191906000526020600020905b8154815290600101906020018083116109dc57829003601f168201915b50505050509050919050565b6004546001600160a01b03163314610a2f5760405162461bcd60e51b815260040161079190613b4d565b6001600160401b03821660009081526007602090815260409091208251610a5e92600190920191840190612dab565b505050565b6001600160a01b038516331480610a7f5750610a7f8533610648565b610ae65760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610791565b61090385858585856120eb565b6004546001600160a01b03163314610b1d5760405162461bcd60e51b815260040161079190613b4d565b828114610b3c5760405162461bcd60e51b815260040161079190613b82565b60005b8381101561090357828282818110610b5957610b59613baa565b9050602002810190610b6b9190613c29565b60076000888886818110610b8157610b81613baa565b9050602002016020810190610b969190613824565b6001600160401b031681526020810191909152604001600020610bbe92600690910191612e63565b5080610bc981613bd6565b915050610b3f565b6004546001600160a01b03163314610bfb5760405162461bcd60e51b815260040161079190613b4d565b828114610c1a5760405162461bcd60e51b815260040161079190613b82565b60005b8381101561090357828282818110610c3757610c37613baa565b9050602002016020810190610c4c9190613c6f565b60076000878785818110610c6257610c62613baa565b9050602002016020810190610c779190613824565b6001600160401b031681526020810191909152604001600020805460ff191691151591909117905580610ca981613bd6565b915050610c1d565b6004546001600160a01b03163314610cdb5760405162461bcd60e51b815260040161079190613b4d565b600580546001600160a01b0319166001600160a01b038516179055610d0260068383612e63565b50505050565b6004546001600160a01b03163314610d325760405162461bcd60e51b815260040161079190613b4d565b6040514790339082156108fc029083906000818181858888f19350505050158015610d61573d6000803e3d6000fd5b5050565b6001600160401b0385166000908152600760205260409020323314610dba5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610791565b42816004015411158015610dd2575080600501544211155b610e105760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610791565b80546201000090046001600160401b031663ffffffff83161115610e635760405162461bcd60e51b815260206004820152600a60248201526922bc31b2b2b2103a3c3760b11b6044820152606401610791565b8054610100900460ff1680610eb75750610eb786863387878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508992506111b8915050565b610ef25760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b6044820152606401610791565b60028101546001600160401b0380821691610f1c9163ffffffff861691600160401b900416613c8a565b6001600160401b03161115610f605760405162461bcd60e51b815260206004820152600a60248201526908af0c6cacac840dac2f60b31b6044820152606401610791565b8163ffffffff168160030154610f769190613cb5565b341015610fbd5760405162461bcd60e51b8152602060048201526015602482015274115d1a195c881d985b1d59481a5b98dbdc9c9958dd605a1b6044820152606401610791565b610fe733876001600160401b03168463ffffffff166040518060200160405280600081525061228d565b8163ffffffff168160020160088282829054906101000a90046001600160401b03166110139190613c8a565b82546101009290920a6001600160401b03818102199093169183160217909155336000908152600860209081526040808320938b168352929052908120805485935090919061106990849063ffffffff16613cd4565b92506101000a81548163ffffffff021916908363ffffffff160217905550505050505050565b606081518351146110f45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610791565b600083516001600160401b0381111561110f5761110f61312e565b604051908082528060200260200182016040528015611138578160200160208202803683370190505b50905060005b84518110156111b05761118385828151811061115c5761115c613baa565b602002602001015185838151811061117657611176613baa565b6020026020010151610729565b82828151811061119557611195613baa565b60209081029190910101526111a981613bd6565b905061113e565b509392505050565b6001600160401b038086166000908152600760209081526040808320815161014081018352815460ff8082161515835261010082041615158286015262010000900490951685830152600181018054835181860281018601909452808452949586959094929360608601939092919083018282801561128857602002820191906000526020600020906000905b82829054906101000a90046001600160401b03166001600160401b0316815260200190600801906020826007010492830192600103820291508084116112455790505b505050918352505060028201546001600160401b038082166020840152600160401b9091041660408201526003820154606082015260048201546080820152600582015460a082015260068201805460c0909201916112e690613bef565b80601f016020809104026020016040519081016040528092919081815260200182805461131290613bef565b801561135f5780601f106113345761010080835404028352916020019161135f565b820191906000526020600020905b81548152906001019060200180831161134257829003601f168201915b5050509190925250505060608101515190915060005b8161ffff168161ffff161015611409576001600160a01b03871660009081526008602052604081206060850151805183919061ffff86169081106113bb576113bb613baa565b6020908102919091018101516001600160401b031682528101919091526040016000205463ffffffff1611156113f7576000935050505061141c565b8061140181613cf3565b915050611375565b50611417888888888861239d565b925050505b95945050505050565b6004546001600160a01b0316331461144f5760405162461bcd60e51b815260040161079190613b4d565b84831461146e5760405162461bcd60e51b815260040161079190613b82565b84811461148d5760405162461bcd60e51b815260040161079190613b82565b8460005b8161ffff168161ffff1610156115855785858261ffff168181106114b7576114b7613baa565b90506020020135600760008a8a8561ffff168181106114d8576114d8613baa565b90506020020160208101906114ed9190613824565b6001600160401b03168152602081019190915260400160002060040155838361ffff831681811061152057611520613baa565b90506020020135600760008a8a8561ffff1681811061154157611541613baa565b90506020020160208101906115569190613824565b6001600160401b031681526020810191909152604001600020600501558061157d81613cf3565b915050611491565b5050505050505050565b6001600160a01b0383163314806115ab57506115ab8333610648565b6115c75760405162461bcd60e51b815260040161079190613d14565b610a5e838383612437565b6004546001600160a01b031633146115fc5760405162461bcd60e51b815260040161079190613b4d565b61160660006125c5565b565b6004546001600160a01b031633146116325760405162461bcd60e51b815260040161079190613b4d565b805182146116525760405162461bcd60e51b815260040161079190613b82565b8160005b8161ffff168161ffff16101561090357828161ffff168151811061167c5761167c613baa565b60200260200101516007600087878561ffff1681811061169e5761169e613baa565b90506020020160208101906116b39190613824565b6001600160401b0390811682526020820192909252604001600020600201805467ffffffffffffffff191692909116919091179055806116f281613cf3565b915050611656565b6004546001600160a01b031633146117245760405162461bcd60e51b815260040161079190613b4d565b8281146117435760405162461bcd60e51b815260040161079190613b82565b60005b838110156109035782828281811061176057611760613baa565b90506020020160208101906117759190613c6f565b6007600087878581811061178b5761178b613baa565b90506020020160208101906117a09190613824565b6001600160401b03168152602081019190915260400160002080549115156101000261ff0019909216919091179055806117d981613bd6565b915050611746565b610d61338383612617565b6004546001600160a01b031633146118165760405162461bcd60e51b815260040161079190613b4d565b8483146118355760405162461bcd60e51b815260040161079190613b82565b8481146118545760405162461bcd60e51b815260040161079190613b82565b8460005b8161ffff168161ffff1610156115855761191088888361ffff1681811061188157611881613baa565b90506020020160208101906118969190613aff565b87878461ffff168181106118ac576118ac613baa565b90506020020160208101906118c19190613824565b6001600160401b031686868561ffff168181106118e0576118e0613baa565b90506020020160208101906118f59190613d5d565b63ffffffff166040518060200160405280600081525061228d565b8061191a81613cf3565b915050611858565b60076020526000908152604090208054600282015460038301546004840154600585015460068601805460ff808816986101008904909116976001600160401b036201000090910481169780821697600160401b9091049091169590949093909261198c90613bef565b80601f01602080910402602001604051908101604052809291908181526020018280546119b890613bef565b8015611a055780601f106119da57610100808354040283529160200191611a05565b820191906000526020600020905b8154815290600101906020018083116119e857829003601f168201915b5050505050905089565b6004546001600160a01b03163314611a395760405162461bcd60e51b815260040161079190613b4d565b828114611a585760405162461bcd60e51b815260040161079190613b82565b8260005b8161ffff168161ffff161015611ae75783838261ffff16818110611a8257611a82613baa565b905060200201356007600088888561ffff16818110611aa357611aa3613baa565b9050602002016020810190611ab89190613824565b6001600160401b0316815260208101919091526040016000206003015580611adf81613cf3565b915050611a5c565b505050505050565b60068054611afc90613bef565b80601f0160208091040260200160405190810160405280929190818152602001828054611b2890613bef565b8015611b755780601f10611b4a57610100808354040283529160200191611b75565b820191906000526020600020905b815481529060010190602001808311611b5857829003601f168201915b505050505081565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c016040516020818303038152906040528051906020012090506000806000611bdb866126f7565b6005546040805160008152602081018083528a905260ff861691810191909152606081018490526080810183905293965091945092506001600160a01b03169060019060a0016020604051602081039080840390855afa158015611c43573d6000803e3d6000fd5b505050602060405103516001600160a01b03161494505050505092915050565b6004546001600160a01b03163314611c8d5760405162461bcd60e51b815260040161079190613b4d565b611c9d6060820160408301613824565b6001600160401b038381166000908152600760205260409020805469ffffffffffffffff00001916620100009390921692909202179055611ce16060820182613d78565b6001600160401b0384166000908152600760205260409020611d0892600190910191612ed7565b50611d1960a0820160808301613824565b6001600160401b03838116600090815260076020526040902060028101805467ffffffffffffffff19169390921692909217905560c0820135600382015560e08201356004820155610100820135600590910155611d7b610120820182613c29565b6001600160401b0384166000908152600760205260409020610a5e92600690910191612e63565b611e1760405180610140016040528060001515815260200160001515815260200160006001600160401b031681526020016060815260200160006001600160401b0316815260200160006001600160401b03168152602001600081526020016000815260200160008152602001606081525090565b6001600160401b03808316600090815260076020908152604091829020825161014081018452815460ff808216151583526101008204161515828501526201000090049094168484015260018101805484518185028101850190955280855291936060860193909290830182828015611ee157602002820191906000526020600020906000905b82829054906101000a90046001600160401b03166001600160401b031681526020019060080190602082600701049283019260010382029150808411611e9e5790505b505050918352505060028201546001600160401b038082166020840152600160401b9091041660408201526003820154606082015260048201546080820152600582015460a082015260068201805460c090920191611f3f90613bef565b80601f0160208091040260200160405190810160405280929190818152602001828054611f6b90613bef565b8015611fb85780601f10611f8d57610100808354040283529160200191611fb8565b820191906000526020600020905b815481529060010190602001808311611f9b57829003601f168201915b5050505050815250509050919050565b6001600160a01b038516331480611fe45750611fe48533610648565b6120005760405162461bcd60e51b815260040161079190613d14565b6109038585858585612769565b6004546001600160a01b031633146120375760405162461bcd60e51b815260040161079190613b4d565b6001600160a01b03811661209c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610791565b6120a5816125c5565b50565b6001600160a01b0383163314806120c457506120c48333610648565b6120e05760405162461bcd60e51b815260040161079190613d14565b610a5e838383612886565b815183511461210c5760405162461bcd60e51b815260040161079190613dc1565b6001600160a01b0384166121325760405162461bcd60e51b815260040161079190613e09565b33612141818787878787612987565b60005b845181101561222757600085828151811061216157612161613baa565b60200260200101519050600085838151811061217f5761217f613baa565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156121cf5760405162461bcd60e51b815260040161079190613e4e565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061220c908490613e98565b925050819055505050508061222090613bd6565b9050612144565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612277929190613eb0565b60405180910390a4611ae7818787878787612a3e565b6001600160a01b0384166122ed5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610791565b3361230d816000876122fe88612b99565b61230788612b99565b87612987565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061233d908490613e98565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461090381600087878787612be4565b60008060068787336040516020016123b89493929190613ed5565b6040516020818303038152906040528051906020012090506123da8185611b7d565b801561242c57506001600160a01b03851660009081526008602090815260408083206001600160401b038b16845290915290205463ffffffff8088169161242391869116613cd4565b63ffffffff1611155b979650505050505050565b6001600160a01b03831661245d5760405162461bcd60e51b815260040161079190613fc2565b805182511461247e5760405162461bcd60e51b815260040161079190613dc1565b60003390506124a181856000868660405180602001604052806000815250612987565b60005b83518110156125665760008482815181106124c1576124c1613baa565b6020026020010151905060008483815181106124df576124df613baa565b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561252f5760405162461bcd60e51b815260040161079190614005565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061255e81613bd6565b9150506124a4565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516125b7929190613eb0565b60405180910390a450505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03160361268a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610791565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000806000835160411461274d5760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610791565b5050506020810151604082015160609092015160001a92909190565b6001600160a01b03841661278f5760405162461bcd60e51b815260040161079190613e09565b3361279f8187876122fe88612b99565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156127e05760405162461bcd60e51b815260040161079190613e4e565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061281d908490613e98565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461287d828888888888612be4565b50505050505050565b6001600160a01b0383166128ac5760405162461bcd60e51b815260040161079190613fc2565b336128db818560006128bd87612b99565b6128c687612b99565b60405180602001604052806000815250612987565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561291c5760405162461bcd60e51b815260040161079190614005565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b612995868686868686612c9f565b60005b835181101561287d576001600160a01b03861615806129f15750600760008583815181106129c8576129c8613baa565b6020908102919091018101516001600160401b031682528101919091526040016000205460ff16155b612a2c5760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881c185d5cd95960a21b6044820152606401610791565b80612a3681613bd6565b915050612998565b6001600160a01b0384163b15611ae75760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612a829089908990889088908890600401614049565b6020604051808303816000875af1925050508015612abd575060408051601f3d908101601f19168201909252612aba918101906140a7565b60015b612b6957612ac96140c4565b806308c379a003612b025750612add6140e0565b80612ae85750612b04565b8060405162461bcd60e51b81526004016107919190613104565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610791565b6001600160e01b0319811663bc197c8160e01b1461287d5760405162461bcd60e51b815260040161079190614169565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612bd357612bd3613baa565b602090810291909101015292915050565b6001600160a01b0384163b15611ae75760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612c2890899089908890889088906004016141b1565b6020604051808303816000875af1925050508015612c63575060408051601f3d908101601f19168201909252612c60918101906140a7565b60015b612c6f57612ac96140c4565b6001600160e01b0319811663f23a6e6160e01b1461287d5760405162461bcd60e51b815260040161079190614169565b6001600160a01b038516612d265760005b8351811015612d2457828181518110612ccb57612ccb613baa565b602002602001015160036000868481518110612ce957612ce9613baa565b602002602001015181526020019081526020016000206000828254612d0e9190613e98565b90915550612d1d905081613bd6565b9050612cb0565b505b6001600160a01b038416611ae75760005b835181101561287d57828181518110612d5257612d52613baa565b602002602001015160036000868481518110612d7057612d70613baa565b602002602001015181526020019081526020016000206000828254612d9591906141eb565b90915550612da4905081613bd6565b9050612d37565b82805482825590600052602060002090600301600490048101928215612e535791602002820160005b83821115612e1e57835183826101000a8154816001600160401b0302191690836001600160401b031602179055509260200192600801602081600701049283019260010302612dd4565b8015612e515782816101000a8154906001600160401b030219169055600801602081600701049283019260010302612e1e565b505b50612e5f929150612f53565b5090565b828054612e6f90613bef565b90600052602060002090601f016020900481019282612e915760008555612e53565b82601f10612eaa5782800160ff19823516178555612e53565b82800160010185558215612e53579182015b82811115612e53578235825591602001919060010190612ebc565b82805482825590600052602060002090600301600490048101928215612e535791602002820160005b83821115612e1e5783356001600160401b031683826101000a8154816001600160401b0302191690836001600160401b031602179055509260200192600801602081600701049283019260010302612f00565b5b80821115612e5f5760008155600101612f54565b80356001600160a01b0381168114612f7f57600080fd5b919050565b60008060408385031215612f9757600080fd5b612fa083612f68565b946020939093013593505050565b6001600160e01b0319811681146120a557600080fd5b600060208284031215612fd657600080fd5b8135612fe181612fae565b9392505050565b60008083601f840112612ffa57600080fd5b5081356001600160401b0381111561301157600080fd5b6020830191508360208260051b850101111561302c57600080fd5b9250929050565b6000806000806040858703121561304957600080fd5b84356001600160401b038082111561306057600080fd5b61306c88838901612fe8565b9096509450602087013591508082111561308557600080fd5b5061309287828801612fe8565b95989497509550505050565b6000602082840312156130b057600080fd5b5035919050565b6000815180845260005b818110156130dd576020818501810151868301820152016130c1565b818111156130ef576000602083870101525b50601f01601f19169290920160200192915050565b602081526000612fe160208301846130b7565b80356001600160401b0381168114612f7f57600080fd5b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156131695761316961312e565b6040525050565b60006001600160401b038211156131895761318961312e565b5060051b60200190565b600082601f8301126131a457600080fd5b813560206131b182613170565b6040516131be8282613144565b83815260059390931b85018201928281019150868411156131de57600080fd5b8286015b84811015613200576131f381613117565b83529183019183016131e2565b509695505050505050565b6000806040838503121561321e57600080fd5b61322783613117565b915060208301356001600160401b0381111561324257600080fd5b61324e85828601613193565b9150509250929050565b600082601f83011261326957600080fd5b8135602061327682613170565b6040516132838282613144565b83815260059390931b85018201928281019150868411156132a357600080fd5b8286015b8481101561320057803583529183019183016132a7565b600082601f8301126132cf57600080fd5b81356001600160401b038111156132e8576132e861312e565b6040516132ff601f8301601f191660200182613144565b81815284602083860101111561331457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561334957600080fd5b61335286612f68565b945061336060208701612f68565b935060408601356001600160401b038082111561337c57600080fd5b61338889838a01613258565b9450606088013591508082111561339e57600080fd5b6133aa89838a01613258565b935060808801359150808211156133c057600080fd5b506133cd888289016132be565b9150509295509295909350565b60008083601f8401126133ec57600080fd5b5081356001600160401b0381111561340357600080fd5b60208301915083602082850101111561302c57600080fd5b60008060006040848603121561343057600080fd5b61343984612f68565b925060208401356001600160401b0381111561345457600080fd5b613460868287016133da565b9497909650939450505050565b803563ffffffff81168114612f7f57600080fd5b60008060008060006080868803121561349957600080fd5b6134a286613117565b94506134b06020870161346d565b935060408601356001600160401b038111156134cb57600080fd5b6134d7888289016133da565b90945092506134ea90506060870161346d565b90509295509295909350565b6000806040838503121561350957600080fd5b82356001600160401b038082111561352057600080fd5b818501915085601f83011261353457600080fd5b8135602061354182613170565b60405161354e8282613144565b83815260059390931b850182019282810191508984111561356e57600080fd5b948201945b838610156135935761358486612f68565b82529482019490820190613573565b965050860135925050808211156135a957600080fd5b5061324e85828601613258565b600081518084526020808501945080840160005b838110156135e6578151875295820195908201906001016135ca565b509495945050505050565b602081526000612fe160208301846135b6565b600080600080600060a0868803121561361c57600080fd5b61362586613117565b94506136336020870161346d565b935061364160408701612f68565b925060608601356001600160401b0381111561365c57600080fd5b613668888289016132be565b9250506134ea6080870161346d565b6000806000806000806060878903121561369057600080fd5b86356001600160401b03808211156136a757600080fd5b6136b38a838b01612fe8565b909850965060208901359150808211156136cc57600080fd5b6136d88a838b01612fe8565b909650945060408901359150808211156136f157600080fd5b506136fe89828a01612fe8565b979a9699509497509295939492505050565b60008060006060848603121561372557600080fd5b61372e84612f68565b925060208401356001600160401b038082111561374a57600080fd5b61375687838801613258565b9350604086013591508082111561376c57600080fd5b5061377986828701613258565b9150509250925092565b60008060006040848603121561379857600080fd5b83356001600160401b03808211156137af57600080fd5b6137bb87838801612fe8565b909550935060208601359150808211156137d457600080fd5b5061377986828701613193565b80358015158114612f7f57600080fd5b6000806040838503121561380457600080fd5b61380d83612f68565b915061381b602084016137e1565b90509250929050565b60006020828403121561383657600080fd5b612fe182613117565b60006101208b151583528a151560208401526001600160401b03808b166040850152808a1660608501528089166080850152508660a08401528560c08401528460e084015280610100840152613897818401856130b7565b9c9b505050505050505050505050565b600080604083850312156138ba57600080fd5b8235915060208301356001600160401b038111156138d757600080fd5b61324e858286016132be565b600080604083850312156138f657600080fd5b6138ff83613117565b915060208301356001600160401b0381111561391a57600080fd5b8301610140818603121561392d57600080fd5b809150509250929050565b600081518084526020808501945080840160005b838110156135e65781516001600160401b03168752958201959082019060010161394c565b6020815261398460208201835115159052565b60006020830151613999604084018215159052565b5060408301516001600160401b03811660608401525060608301516101408060808501526139cb610160850183613938565b915060808501516139e760a08601826001600160401b03169052565b5060a08501516001600160401b03811660c08601525060c085015160e0858101919091528501516101008086019190915285015161012080860191909152850151848303601f190182860152613a3d83826130b7565b9695505050505050565b60008060408385031215613a5a57600080fd5b613a6383612f68565b915061381b60208401612f68565b60008060408385031215613a8457600080fd5b613a8d83612f68565b915061381b60208401613117565b600080600080600060a08688031215613ab357600080fd5b613abc86612f68565b9450613aca60208701612f68565b9350604086013592506060860135915060808601356001600160401b03811115613af357600080fd5b6133cd888289016132be565b600060208284031215613b1157600080fd5b612fe182612f68565b600080600060608486031215613b2f57600080fd5b613b3884612f68565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d092dce0eae840dad2e6dac2e8c6d60931b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201613be857613be8613bc0565b5060010190565b600181811c90821680613c0357607f821691505b602082108103613c2357634e487b7160e01b600052602260045260246000fd5b50919050565b6000808335601e19843603018112613c4057600080fd5b8301803591506001600160401b03821115613c5a57600080fd5b60200191503681900382131561302c57600080fd5b600060208284031215613c8157600080fd5b612fe1826137e1565b60006001600160401b03808316818516808303821115613cac57613cac613bc0565b01949350505050565b6000816000190483118215151615613ccf57613ccf613bc0565b500290565b600063ffffffff808316818516808303821115613cac57613cac613bc0565b600061ffff808316818103613d0a57613d0a613bc0565b6001019392505050565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b600060208284031215613d6f57600080fd5b612fe18261346d565b6000808335601e19843603018112613d8f57600080fd5b8301803591506001600160401b03821115613da957600080fd5b6020019150600581901b360382131561302c57600080fd5b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60008219821115613eab57613eab613bc0565b500190565b604081526000613ec360408301856135b6565b828103602084015261141c81856135b6565b600080865481600182811c915080831680613ef157607f831692505b60208084108203613f1057634e487b7160e01b86526022600452602486fd5b818015613f245760018114613f3557613f62565b60ff19861689528489019650613f62565b60008d81526020902060005b86811015613f5a5781548b820152908501908301613f41565b505084890196505b50613f79868c60c01b6001600160c01b0319169052565b613f92600887018b60e01b6001600160e01b0319169052565b613fb0600c87018a60601b6bffffffffffffffffffffffff19169052565b949094019a9950505050505050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090614075908301866135b6565b828103606084015261408781866135b6565b9050828103608084015261409b81856130b7565b98975050505050505050565b6000602082840312156140b957600080fd5b8151612fe181612fae565b600060033d11156140dd5760046000803e5060005160e01c5b90565b600060443d10156140ee5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561411d57505050505090565b82850191508151818111156141355750505050505090565b843d870101602082850101111561414f5750505050505090565b61415e60208286010187613144565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061242c908301846130b7565b6000828210156141fd576141fd613bc0565b50039056fea2646970667358221220aabd0ed619248235019bfa388b6b25f11811b5ffe59a5d4fc66450e81d7e061264736f6c634300080d0033697066733a2f2f516d526962646e68775a7a72656932414d674a3267683742454e6b69656b4141327754757063456846526a426359697066733a2f2f516d4e5967633632553472455a62384b74774b355a4a79476563457076694371397138383267526475676178514c697066733a2f2f516d655a4c4e7232673639694b7157524770345439456d375a716e575857516756714e6e694262395642367a3177697066733a2f2f516d643350634b5054557854424d6b5563355a78776e6d533258476a4c333339397545754a717774596673456779697066733a2f2f516d63313473456f375076745435455a48354b70347970337759374a39773374786559706d344b445a7371757078697066733a2f2f516d6544694150597a784e715a51734678644d54793764454d4670344c3568334b58314e477a6337593664466b36697066733a2f2f516d5a6837655452746f6e347458447a31514b59775236513743544b6a7265565869766e50383275704a3362467a697066733a2f2f516d66327245524472734671787137365756435a6e63424362435a4c6e324a776f33326b7358426d4b4869626d4c

Deployed Bytecode

0x6080604052600436106102035760003560e01c8063715018a611610118578063d404ea23116100a0578063e985e9c51161006f578063e985e9c51461062d578063f2003ac514610676578063f242432a146106c9578063f2fde38b146106e9578063f5298aca1461070957600080fd5b8063d404ea23146105ab578063dd93f3d4146105c0578063e0830266146105e0578063e11f7c1d1461060057600080fd5b8063a22cb465116100e7578063a22cb465146104e9578063a818ea9c14610509578063a8f3fdb814610529578063bb6a00451461055e578063bd85b0391461057e57600080fd5b8063715018a6146104765780637c81fa831461048b5780638da5cb5b146104ab5780639d870efd146104c957600080fd5b8063359d82ec1161019b5780634e1273f41161016a5780634e1273f4146103ba5780634f558e79146103e7578063578b97da146104165780635efaf993146104365780636b20c4541461045657600080fd5b8063359d82ec1461035257806336ae9143146103725780633ccfd60b1461039257806347b292e3146103a757600080fd5b806323ed6605116101d757806323ed6605146102ba5780632b7ac3f3146102da5780632eb2c2d614610312578063308e54391461033257600080fd5b8062fdd58e1461020857806301ffc9a71461023b5780630a68d7b21461026b5780630e89341c1461028d575b600080fd5b34801561021457600080fd5b50610228610223366004612f84565b610729565b6040519081526020015b60405180910390f35b34801561024757600080fd5b5061025b610256366004612fc4565b6107c0565b6040519015158152602001610232565b34801561027757600080fd5b5061028b610286366004613033565b610812565b005b34801561029957600080fd5b506102ad6102a836600461309e565b61090a565b6040516102329190613104565b3480156102c657600080fd5b5061028b6102d536600461320b565b610a05565b3480156102e657600080fd5b506005546102fa906001600160a01b031681565b6040516001600160a01b039091168152602001610232565b34801561031e57600080fd5b5061028b61032d366004613331565b610a63565b34801561033e57600080fd5b5061028b61034d366004613033565b610af3565b34801561035e57600080fd5b5061028b61036d366004613033565b610bd1565b34801561037e57600080fd5b5061028b61038d36600461341b565b610cb1565b34801561039e57600080fd5b5061028b610d08565b61028b6103b5366004613481565b610d65565b3480156103c657600080fd5b506103da6103d53660046134f6565b61108f565b60405161023291906135f1565b3480156103f357600080fd5b5061025b61040236600461309e565b600090815260036020526040902054151590565b34801561042257600080fd5b5061025b610431366004613604565b6111b8565b34801561044257600080fd5b5061028b610451366004613677565b611425565b34801561046257600080fd5b5061028b610471366004613710565b61158f565b34801561048257600080fd5b5061028b6115d2565b34801561049757600080fd5b5061028b6104a6366004613783565b611608565b3480156104b757600080fd5b506004546001600160a01b03166102fa565b3480156104d557600080fd5b5061028b6104e4366004613033565b6116fa565b3480156104f557600080fd5b5061028b6105043660046137f1565b6117e1565b34801561051557600080fd5b5061028b610524366004613677565b6117ec565b34801561053557600080fd5b50610549610544366004613824565b611922565b6040516102329998979695949392919061383f565b34801561056a57600080fd5b5061028b610579366004613033565b611a0f565b34801561058a57600080fd5b5061022861059936600461309e565b60009081526003602052604090205490565b3480156105b757600080fd5b506102ad611aef565b3480156105cc57600080fd5b5061025b6105db3660046138a7565b611b7d565b3480156105ec57600080fd5b5061028b6105fb3660046138e3565b611c63565b34801561060c57600080fd5b5061062061061b366004613824565b611da2565b6040516102329190613971565b34801561063957600080fd5b5061025b610648366004613a47565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561068257600080fd5b506106b4610691366004613a71565b600860209081526000928352604080842090915290825290205463ffffffff1681565b60405163ffffffff9091168152602001610232565b3480156106d557600080fd5b5061028b6106e4366004613a9b565b611fc8565b3480156106f557600080fd5b5061028b610704366004613aff565b61200d565b34801561071557600080fd5b5061028b610724366004613b1a565b6120a8565b60006001600160a01b03831661079a5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806107f157506001600160e01b031982166303a24d0760e21b145b8061080c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6004546001600160a01b0316331461083c5760405162461bcd60e51b815260040161079190613b4d565b82811461085b5760405162461bcd60e51b815260040161079190613b82565b60005b838110156109035782828281811061087857610878613baa565b905060200201602081019061088d9190613824565b600760008787858181106108a3576108a3613baa565b90506020020160208101906108b89190613824565b6001600160401b0390811682526020820192909252604001600020805469ffffffffffffffff00001916620100009390921692909202179055806108fb81613bd6565b91505061085e565b5050505050565b60008181526003602052604090205460609061095a5760405162461bcd60e51b815260206004820152600f60248201526e2737b71032bc34b9ba103a37b5b2b760891b6044820152606401610791565b6001600160401b0382166000908152600760205260409020600601805461098090613bef565b80601f01602080910402602001604051908101604052809291908181526020018280546109ac90613bef565b80156109f95780601f106109ce576101008083540402835291602001916109f9565b820191906000526020600020905b8154815290600101906020018083116109dc57829003601f168201915b50505050509050919050565b6004546001600160a01b03163314610a2f5760405162461bcd60e51b815260040161079190613b4d565b6001600160401b03821660009081526007602090815260409091208251610a5e92600190920191840190612dab565b505050565b6001600160a01b038516331480610a7f5750610a7f8533610648565b610ae65760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610791565b61090385858585856120eb565b6004546001600160a01b03163314610b1d5760405162461bcd60e51b815260040161079190613b4d565b828114610b3c5760405162461bcd60e51b815260040161079190613b82565b60005b8381101561090357828282818110610b5957610b59613baa565b9050602002810190610b6b9190613c29565b60076000888886818110610b8157610b81613baa565b9050602002016020810190610b969190613824565b6001600160401b031681526020810191909152604001600020610bbe92600690910191612e63565b5080610bc981613bd6565b915050610b3f565b6004546001600160a01b03163314610bfb5760405162461bcd60e51b815260040161079190613b4d565b828114610c1a5760405162461bcd60e51b815260040161079190613b82565b60005b8381101561090357828282818110610c3757610c37613baa565b9050602002016020810190610c4c9190613c6f565b60076000878785818110610c6257610c62613baa565b9050602002016020810190610c779190613824565b6001600160401b031681526020810191909152604001600020805460ff191691151591909117905580610ca981613bd6565b915050610c1d565b6004546001600160a01b03163314610cdb5760405162461bcd60e51b815260040161079190613b4d565b600580546001600160a01b0319166001600160a01b038516179055610d0260068383612e63565b50505050565b6004546001600160a01b03163314610d325760405162461bcd60e51b815260040161079190613b4d565b6040514790339082156108fc029083906000818181858888f19350505050158015610d61573d6000803e3d6000fd5b5050565b6001600160401b0385166000908152600760205260409020323314610dba5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610791565b42816004015411158015610dd2575080600501544211155b610e105760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610791565b80546201000090046001600160401b031663ffffffff83161115610e635760405162461bcd60e51b815260206004820152600a60248201526922bc31b2b2b2103a3c3760b11b6044820152606401610791565b8054610100900460ff1680610eb75750610eb786863387878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508992506111b8915050565b610ef25760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b6044820152606401610791565b60028101546001600160401b0380821691610f1c9163ffffffff861691600160401b900416613c8a565b6001600160401b03161115610f605760405162461bcd60e51b815260206004820152600a60248201526908af0c6cacac840dac2f60b31b6044820152606401610791565b8163ffffffff168160030154610f769190613cb5565b341015610fbd5760405162461bcd60e51b8152602060048201526015602482015274115d1a195c881d985b1d59481a5b98dbdc9c9958dd605a1b6044820152606401610791565b610fe733876001600160401b03168463ffffffff166040518060200160405280600081525061228d565b8163ffffffff168160020160088282829054906101000a90046001600160401b03166110139190613c8a565b82546101009290920a6001600160401b03818102199093169183160217909155336000908152600860209081526040808320938b168352929052908120805485935090919061106990849063ffffffff16613cd4565b92506101000a81548163ffffffff021916908363ffffffff160217905550505050505050565b606081518351146110f45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610791565b600083516001600160401b0381111561110f5761110f61312e565b604051908082528060200260200182016040528015611138578160200160208202803683370190505b50905060005b84518110156111b05761118385828151811061115c5761115c613baa565b602002602001015185838151811061117657611176613baa565b6020026020010151610729565b82828151811061119557611195613baa565b60209081029190910101526111a981613bd6565b905061113e565b509392505050565b6001600160401b038086166000908152600760209081526040808320815161014081018352815460ff8082161515835261010082041615158286015262010000900490951685830152600181018054835181860281018601909452808452949586959094929360608601939092919083018282801561128857602002820191906000526020600020906000905b82829054906101000a90046001600160401b03166001600160401b0316815260200190600801906020826007010492830192600103820291508084116112455790505b505050918352505060028201546001600160401b038082166020840152600160401b9091041660408201526003820154606082015260048201546080820152600582015460a082015260068201805460c0909201916112e690613bef565b80601f016020809104026020016040519081016040528092919081815260200182805461131290613bef565b801561135f5780601f106113345761010080835404028352916020019161135f565b820191906000526020600020905b81548152906001019060200180831161134257829003601f168201915b5050509190925250505060608101515190915060005b8161ffff168161ffff161015611409576001600160a01b03871660009081526008602052604081206060850151805183919061ffff86169081106113bb576113bb613baa565b6020908102919091018101516001600160401b031682528101919091526040016000205463ffffffff1611156113f7576000935050505061141c565b8061140181613cf3565b915050611375565b50611417888888888861239d565b925050505b95945050505050565b6004546001600160a01b0316331461144f5760405162461bcd60e51b815260040161079190613b4d565b84831461146e5760405162461bcd60e51b815260040161079190613b82565b84811461148d5760405162461bcd60e51b815260040161079190613b82565b8460005b8161ffff168161ffff1610156115855785858261ffff168181106114b7576114b7613baa565b90506020020135600760008a8a8561ffff168181106114d8576114d8613baa565b90506020020160208101906114ed9190613824565b6001600160401b03168152602081019190915260400160002060040155838361ffff831681811061152057611520613baa565b90506020020135600760008a8a8561ffff1681811061154157611541613baa565b90506020020160208101906115569190613824565b6001600160401b031681526020810191909152604001600020600501558061157d81613cf3565b915050611491565b5050505050505050565b6001600160a01b0383163314806115ab57506115ab8333610648565b6115c75760405162461bcd60e51b815260040161079190613d14565b610a5e838383612437565b6004546001600160a01b031633146115fc5760405162461bcd60e51b815260040161079190613b4d565b61160660006125c5565b565b6004546001600160a01b031633146116325760405162461bcd60e51b815260040161079190613b4d565b805182146116525760405162461bcd60e51b815260040161079190613b82565b8160005b8161ffff168161ffff16101561090357828161ffff168151811061167c5761167c613baa565b60200260200101516007600087878561ffff1681811061169e5761169e613baa565b90506020020160208101906116b39190613824565b6001600160401b0390811682526020820192909252604001600020600201805467ffffffffffffffff191692909116919091179055806116f281613cf3565b915050611656565b6004546001600160a01b031633146117245760405162461bcd60e51b815260040161079190613b4d565b8281146117435760405162461bcd60e51b815260040161079190613b82565b60005b838110156109035782828281811061176057611760613baa565b90506020020160208101906117759190613c6f565b6007600087878581811061178b5761178b613baa565b90506020020160208101906117a09190613824565b6001600160401b03168152602081019190915260400160002080549115156101000261ff0019909216919091179055806117d981613bd6565b915050611746565b610d61338383612617565b6004546001600160a01b031633146118165760405162461bcd60e51b815260040161079190613b4d565b8483146118355760405162461bcd60e51b815260040161079190613b82565b8481146118545760405162461bcd60e51b815260040161079190613b82565b8460005b8161ffff168161ffff1610156115855761191088888361ffff1681811061188157611881613baa565b90506020020160208101906118969190613aff565b87878461ffff168181106118ac576118ac613baa565b90506020020160208101906118c19190613824565b6001600160401b031686868561ffff168181106118e0576118e0613baa565b90506020020160208101906118f59190613d5d565b63ffffffff166040518060200160405280600081525061228d565b8061191a81613cf3565b915050611858565b60076020526000908152604090208054600282015460038301546004840154600585015460068601805460ff808816986101008904909116976001600160401b036201000090910481169780821697600160401b9091049091169590949093909261198c90613bef565b80601f01602080910402602001604051908101604052809291908181526020018280546119b890613bef565b8015611a055780601f106119da57610100808354040283529160200191611a05565b820191906000526020600020905b8154815290600101906020018083116119e857829003601f168201915b5050505050905089565b6004546001600160a01b03163314611a395760405162461bcd60e51b815260040161079190613b4d565b828114611a585760405162461bcd60e51b815260040161079190613b82565b8260005b8161ffff168161ffff161015611ae75783838261ffff16818110611a8257611a82613baa565b905060200201356007600088888561ffff16818110611aa357611aa3613baa565b9050602002016020810190611ab89190613824565b6001600160401b0316815260208101919091526040016000206003015580611adf81613cf3565b915050611a5c565b505050505050565b60068054611afc90613bef565b80601f0160208091040260200160405190810160405280929190818152602001828054611b2890613bef565b8015611b755780601f10611b4a57610100808354040283529160200191611b75565b820191906000526020600020905b815481529060010190602001808311611b5857829003601f168201915b505050505081565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c016040516020818303038152906040528051906020012090506000806000611bdb866126f7565b6005546040805160008152602081018083528a905260ff861691810191909152606081018490526080810183905293965091945092506001600160a01b03169060019060a0016020604051602081039080840390855afa158015611c43573d6000803e3d6000fd5b505050602060405103516001600160a01b03161494505050505092915050565b6004546001600160a01b03163314611c8d5760405162461bcd60e51b815260040161079190613b4d565b611c9d6060820160408301613824565b6001600160401b038381166000908152600760205260409020805469ffffffffffffffff00001916620100009390921692909202179055611ce16060820182613d78565b6001600160401b0384166000908152600760205260409020611d0892600190910191612ed7565b50611d1960a0820160808301613824565b6001600160401b03838116600090815260076020526040902060028101805467ffffffffffffffff19169390921692909217905560c0820135600382015560e08201356004820155610100820135600590910155611d7b610120820182613c29565b6001600160401b0384166000908152600760205260409020610a5e92600690910191612e63565b611e1760405180610140016040528060001515815260200160001515815260200160006001600160401b031681526020016060815260200160006001600160401b0316815260200160006001600160401b03168152602001600081526020016000815260200160008152602001606081525090565b6001600160401b03808316600090815260076020908152604091829020825161014081018452815460ff808216151583526101008204161515828501526201000090049094168484015260018101805484518185028101850190955280855291936060860193909290830182828015611ee157602002820191906000526020600020906000905b82829054906101000a90046001600160401b03166001600160401b031681526020019060080190602082600701049283019260010382029150808411611e9e5790505b505050918352505060028201546001600160401b038082166020840152600160401b9091041660408201526003820154606082015260048201546080820152600582015460a082015260068201805460c090920191611f3f90613bef565b80601f0160208091040260200160405190810160405280929190818152602001828054611f6b90613bef565b8015611fb85780601f10611f8d57610100808354040283529160200191611fb8565b820191906000526020600020905b815481529060010190602001808311611f9b57829003601f168201915b5050505050815250509050919050565b6001600160a01b038516331480611fe45750611fe48533610648565b6120005760405162461bcd60e51b815260040161079190613d14565b6109038585858585612769565b6004546001600160a01b031633146120375760405162461bcd60e51b815260040161079190613b4d565b6001600160a01b03811661209c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610791565b6120a5816125c5565b50565b6001600160a01b0383163314806120c457506120c48333610648565b6120e05760405162461bcd60e51b815260040161079190613d14565b610a5e838383612886565b815183511461210c5760405162461bcd60e51b815260040161079190613dc1565b6001600160a01b0384166121325760405162461bcd60e51b815260040161079190613e09565b33612141818787878787612987565b60005b845181101561222757600085828151811061216157612161613baa565b60200260200101519050600085838151811061217f5761217f613baa565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156121cf5760405162461bcd60e51b815260040161079190613e4e565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061220c908490613e98565b925050819055505050508061222090613bd6565b9050612144565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612277929190613eb0565b60405180910390a4611ae7818787878787612a3e565b6001600160a01b0384166122ed5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610791565b3361230d816000876122fe88612b99565b61230788612b99565b87612987565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061233d908490613e98565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461090381600087878787612be4565b60008060068787336040516020016123b89493929190613ed5565b6040516020818303038152906040528051906020012090506123da8185611b7d565b801561242c57506001600160a01b03851660009081526008602090815260408083206001600160401b038b16845290915290205463ffffffff8088169161242391869116613cd4565b63ffffffff1611155b979650505050505050565b6001600160a01b03831661245d5760405162461bcd60e51b815260040161079190613fc2565b805182511461247e5760405162461bcd60e51b815260040161079190613dc1565b60003390506124a181856000868660405180602001604052806000815250612987565b60005b83518110156125665760008482815181106124c1576124c1613baa565b6020026020010151905060008483815181106124df576124df613baa565b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561252f5760405162461bcd60e51b815260040161079190614005565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061255e81613bd6565b9150506124a4565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516125b7929190613eb0565b60405180910390a450505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03160361268a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610791565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000806000835160411461274d5760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610791565b5050506020810151604082015160609092015160001a92909190565b6001600160a01b03841661278f5760405162461bcd60e51b815260040161079190613e09565b3361279f8187876122fe88612b99565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156127e05760405162461bcd60e51b815260040161079190613e4e565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061281d908490613e98565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461287d828888888888612be4565b50505050505050565b6001600160a01b0383166128ac5760405162461bcd60e51b815260040161079190613fc2565b336128db818560006128bd87612b99565b6128c687612b99565b60405180602001604052806000815250612987565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561291c5760405162461bcd60e51b815260040161079190614005565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b612995868686868686612c9f565b60005b835181101561287d576001600160a01b03861615806129f15750600760008583815181106129c8576129c8613baa565b6020908102919091018101516001600160401b031682528101919091526040016000205460ff16155b612a2c5760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881c185d5cd95960a21b6044820152606401610791565b80612a3681613bd6565b915050612998565b6001600160a01b0384163b15611ae75760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612a829089908990889088908890600401614049565b6020604051808303816000875af1925050508015612abd575060408051601f3d908101601f19168201909252612aba918101906140a7565b60015b612b6957612ac96140c4565b806308c379a003612b025750612add6140e0565b80612ae85750612b04565b8060405162461bcd60e51b81526004016107919190613104565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610791565b6001600160e01b0319811663bc197c8160e01b1461287d5760405162461bcd60e51b815260040161079190614169565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612bd357612bd3613baa565b602090810291909101015292915050565b6001600160a01b0384163b15611ae75760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612c2890899089908890889088906004016141b1565b6020604051808303816000875af1925050508015612c63575060408051601f3d908101601f19168201909252612c60918101906140a7565b60015b612c6f57612ac96140c4565b6001600160e01b0319811663f23a6e6160e01b1461287d5760405162461bcd60e51b815260040161079190614169565b6001600160a01b038516612d265760005b8351811015612d2457828181518110612ccb57612ccb613baa565b602002602001015160036000868481518110612ce957612ce9613baa565b602002602001015181526020019081526020016000206000828254612d0e9190613e98565b90915550612d1d905081613bd6565b9050612cb0565b505b6001600160a01b038416611ae75760005b835181101561287d57828181518110612d5257612d52613baa565b602002602001015160036000868481518110612d7057612d70613baa565b602002602001015181526020019081526020016000206000828254612d9591906141eb565b90915550612da4905081613bd6565b9050612d37565b82805482825590600052602060002090600301600490048101928215612e535791602002820160005b83821115612e1e57835183826101000a8154816001600160401b0302191690836001600160401b031602179055509260200192600801602081600701049283019260010302612dd4565b8015612e515782816101000a8154906001600160401b030219169055600801602081600701049283019260010302612e1e565b505b50612e5f929150612f53565b5090565b828054612e6f90613bef565b90600052602060002090601f016020900481019282612e915760008555612e53565b82601f10612eaa5782800160ff19823516178555612e53565b82800160010185558215612e53579182015b82811115612e53578235825591602001919060010190612ebc565b82805482825590600052602060002090600301600490048101928215612e535791602002820160005b83821115612e1e5783356001600160401b031683826101000a8154816001600160401b0302191690836001600160401b031602179055509260200192600801602081600701049283019260010302612f00565b5b80821115612e5f5760008155600101612f54565b80356001600160a01b0381168114612f7f57600080fd5b919050565b60008060408385031215612f9757600080fd5b612fa083612f68565b946020939093013593505050565b6001600160e01b0319811681146120a557600080fd5b600060208284031215612fd657600080fd5b8135612fe181612fae565b9392505050565b60008083601f840112612ffa57600080fd5b5081356001600160401b0381111561301157600080fd5b6020830191508360208260051b850101111561302c57600080fd5b9250929050565b6000806000806040858703121561304957600080fd5b84356001600160401b038082111561306057600080fd5b61306c88838901612fe8565b9096509450602087013591508082111561308557600080fd5b5061309287828801612fe8565b95989497509550505050565b6000602082840312156130b057600080fd5b5035919050565b6000815180845260005b818110156130dd576020818501810151868301820152016130c1565b818111156130ef576000602083870101525b50601f01601f19169290920160200192915050565b602081526000612fe160208301846130b7565b80356001600160401b0381168114612f7f57600080fd5b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156131695761316961312e565b6040525050565b60006001600160401b038211156131895761318961312e565b5060051b60200190565b600082601f8301126131a457600080fd5b813560206131b182613170565b6040516131be8282613144565b83815260059390931b85018201928281019150868411156131de57600080fd5b8286015b84811015613200576131f381613117565b83529183019183016131e2565b509695505050505050565b6000806040838503121561321e57600080fd5b61322783613117565b915060208301356001600160401b0381111561324257600080fd5b61324e85828601613193565b9150509250929050565b600082601f83011261326957600080fd5b8135602061327682613170565b6040516132838282613144565b83815260059390931b85018201928281019150868411156132a357600080fd5b8286015b8481101561320057803583529183019183016132a7565b600082601f8301126132cf57600080fd5b81356001600160401b038111156132e8576132e861312e565b6040516132ff601f8301601f191660200182613144565b81815284602083860101111561331457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561334957600080fd5b61335286612f68565b945061336060208701612f68565b935060408601356001600160401b038082111561337c57600080fd5b61338889838a01613258565b9450606088013591508082111561339e57600080fd5b6133aa89838a01613258565b935060808801359150808211156133c057600080fd5b506133cd888289016132be565b9150509295509295909350565b60008083601f8401126133ec57600080fd5b5081356001600160401b0381111561340357600080fd5b60208301915083602082850101111561302c57600080fd5b60008060006040848603121561343057600080fd5b61343984612f68565b925060208401356001600160401b0381111561345457600080fd5b613460868287016133da565b9497909650939450505050565b803563ffffffff81168114612f7f57600080fd5b60008060008060006080868803121561349957600080fd5b6134a286613117565b94506134b06020870161346d565b935060408601356001600160401b038111156134cb57600080fd5b6134d7888289016133da565b90945092506134ea90506060870161346d565b90509295509295909350565b6000806040838503121561350957600080fd5b82356001600160401b038082111561352057600080fd5b818501915085601f83011261353457600080fd5b8135602061354182613170565b60405161354e8282613144565b83815260059390931b850182019282810191508984111561356e57600080fd5b948201945b838610156135935761358486612f68565b82529482019490820190613573565b965050860135925050808211156135a957600080fd5b5061324e85828601613258565b600081518084526020808501945080840160005b838110156135e6578151875295820195908201906001016135ca565b509495945050505050565b602081526000612fe160208301846135b6565b600080600080600060a0868803121561361c57600080fd5b61362586613117565b94506136336020870161346d565b935061364160408701612f68565b925060608601356001600160401b0381111561365c57600080fd5b613668888289016132be565b9250506134ea6080870161346d565b6000806000806000806060878903121561369057600080fd5b86356001600160401b03808211156136a757600080fd5b6136b38a838b01612fe8565b909850965060208901359150808211156136cc57600080fd5b6136d88a838b01612fe8565b909650945060408901359150808211156136f157600080fd5b506136fe89828a01612fe8565b979a9699509497509295939492505050565b60008060006060848603121561372557600080fd5b61372e84612f68565b925060208401356001600160401b038082111561374a57600080fd5b61375687838801613258565b9350604086013591508082111561376c57600080fd5b5061377986828701613258565b9150509250925092565b60008060006040848603121561379857600080fd5b83356001600160401b03808211156137af57600080fd5b6137bb87838801612fe8565b909550935060208601359150808211156137d457600080fd5b5061377986828701613193565b80358015158114612f7f57600080fd5b6000806040838503121561380457600080fd5b61380d83612f68565b915061381b602084016137e1565b90509250929050565b60006020828403121561383657600080fd5b612fe182613117565b60006101208b151583528a151560208401526001600160401b03808b166040850152808a1660608501528089166080850152508660a08401528560c08401528460e084015280610100840152613897818401856130b7565b9c9b505050505050505050505050565b600080604083850312156138ba57600080fd5b8235915060208301356001600160401b038111156138d757600080fd5b61324e858286016132be565b600080604083850312156138f657600080fd5b6138ff83613117565b915060208301356001600160401b0381111561391a57600080fd5b8301610140818603121561392d57600080fd5b809150509250929050565b600081518084526020808501945080840160005b838110156135e65781516001600160401b03168752958201959082019060010161394c565b6020815261398460208201835115159052565b60006020830151613999604084018215159052565b5060408301516001600160401b03811660608401525060608301516101408060808501526139cb610160850183613938565b915060808501516139e760a08601826001600160401b03169052565b5060a08501516001600160401b03811660c08601525060c085015160e0858101919091528501516101008086019190915285015161012080860191909152850151848303601f190182860152613a3d83826130b7565b9695505050505050565b60008060408385031215613a5a57600080fd5b613a6383612f68565b915061381b60208401612f68565b60008060408385031215613a8457600080fd5b613a8d83612f68565b915061381b60208401613117565b600080600080600060a08688031215613ab357600080fd5b613abc86612f68565b9450613aca60208701612f68565b9350604086013592506060860135915060808601356001600160401b03811115613af357600080fd5b6133cd888289016132be565b600060208284031215613b1157600080fd5b612fe182612f68565b600080600060608486031215613b2f57600080fd5b613b3884612f68565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d092dce0eae840dad2e6dac2e8c6d60931b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201613be857613be8613bc0565b5060010190565b600181811c90821680613c0357607f821691505b602082108103613c2357634e487b7160e01b600052602260045260246000fd5b50919050565b6000808335601e19843603018112613c4057600080fd5b8301803591506001600160401b03821115613c5a57600080fd5b60200191503681900382131561302c57600080fd5b600060208284031215613c8157600080fd5b612fe1826137e1565b60006001600160401b03808316818516808303821115613cac57613cac613bc0565b01949350505050565b6000816000190483118215151615613ccf57613ccf613bc0565b500290565b600063ffffffff808316818516808303821115613cac57613cac613bc0565b600061ffff808316818103613d0a57613d0a613bc0565b6001019392505050565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b600060208284031215613d6f57600080fd5b612fe18261346d565b6000808335601e19843603018112613d8f57600080fd5b8301803591506001600160401b03821115613da957600080fd5b6020019150600581901b360382131561302c57600080fd5b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60008219821115613eab57613eab613bc0565b500190565b604081526000613ec360408301856135b6565b828103602084015261141c81856135b6565b600080865481600182811c915080831680613ef157607f831692505b60208084108203613f1057634e487b7160e01b86526022600452602486fd5b818015613f245760018114613f3557613f62565b60ff19861689528489019650613f62565b60008d81526020902060005b86811015613f5a5781548b820152908501908301613f41565b505084890196505b50613f79868c60c01b6001600160c01b0319169052565b613f92600887018b60e01b6001600160e01b0319169052565b613fb0600c87018a60601b6bffffffffffffffffffffffff19169052565b949094019a9950505050505050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090614075908301866135b6565b828103606084015261408781866135b6565b9050828103608084015261409b81856130b7565b98975050505050505050565b6000602082840312156140b957600080fd5b8151612fe181612fae565b600060033d11156140dd5760046000803e5060005160e01c5b90565b600060443d10156140ee5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561411d57505050505090565b82850191508151818111156141355750505050505090565b843d870101602082850101111561414f5750505050505090565b61415e60208286010187613144565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061242c908301846130b7565b6000828210156141fd576141fd613bc0565b50039056fea2646970667358221220aabd0ed619248235019bfa388b6b25f11811b5ffe59a5d4fc66450e81d7e061264736f6c634300080d0033

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  ]
[ 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.