ETH Price: $3,529.84 (+3.17%)
Gas: 13 Gwei

Contract

0xb817590eD93A79d596312608057f98B94F7036Ec
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...200136742024-06-03 20:27:3515 days ago1717446455IN
ChippysWorld: CHIP Token
0 ETH0.0003018412.23126912
Set Approval For...199786212024-05-29 22:54:2320 days ago1717023263IN
ChippysWorld: CHIP Token
0 ETH0.000327927.03853319
Set Approval For...197176122024-04-23 10:51:2357 days ago1713869483IN
ChippysWorld: CHIP Token
0 ETH0.0003610414.63039862
Set Approval For...195677222024-04-02 11:08:2378 days ago1712056103IN
ChippysWorld: CHIP Token
0 ETH0.0006601326.75002098
Set Approval For...194597942024-03-18 6:06:5993 days ago1710742019IN
ChippysWorld: CHIP Token
0 ETH0.0010280222.0653637
Set Approval For...194312342024-03-14 5:39:5997 days ago1710394799IN
ChippysWorld: CHIP Token
0 ETH0.0023924451.35102537
Set Approval For...194293292024-03-13 23:14:1197 days ago1710371651IN
ChippysWorld: CHIP Token
0 ETH0.0012437450.39888454
Set Approval For...191801812024-02-08 1:29:11132 days ago1707355751IN
ChippysWorld: CHIP Token
0 ETH0.0007889231.96863237
Set Approval For...191800692024-02-08 1:06:23132 days ago1707354383IN
ChippysWorld: CHIP Token
0 ETH0.0015332632.90965407
Set Approval For...191096432024-01-29 3:57:11142 days ago1706500631IN
ChippysWorld: CHIP Token
0 ETH0.00044359.51937116
Set Approval For...190996932024-01-27 18:26:23143 days ago1706379983IN
ChippysWorld: CHIP Token
0 ETH0.0009101219.53480543
Set Approval For...190220742024-01-16 21:15:47154 days ago1705439747IN
ChippysWorld: CHIP Token
0 ETH0.0008270733.51471599
Set Approval For...189916312024-01-12 15:11:59159 days ago1705072319IN
ChippysWorld: CHIP Token
0 ETH0.0009724539.27195891
Set Approval For...189916312024-01-12 15:11:59159 days ago1705072319IN
ChippysWorld: CHIP Token
0 ETH0.0009691539.27195891
Set Approval For...189916302024-01-12 15:11:47159 days ago1705072307IN
ChippysWorld: CHIP Token
0 ETH0.0009666839.13397025
Set Approval For...189832222024-01-11 10:54:59160 days ago1704970499IN
ChippysWorld: CHIP Token
0 ETH0.0012637827.12576854
Set Approval For...189610172024-01-08 8:08:23163 days ago1704701303IN
ChippysWorld: CHIP Token
0 ETH0.0013405428.7733232
Set Approval For...188967862023-12-30 7:14:11172 days ago1703920451IN
ChippysWorld: CHIP Token
0 ETH0.0005436711.66924631
Set Approval For...188962782023-12-30 5:31:35172 days ago1703914295IN
ChippysWorld: CHIP Token
0 ETH0.0006665414.30668527
Set Approval For...188937842023-12-29 21:04:47172 days ago1703883887IN
ChippysWorld: CHIP Token
0 ETH0.0008502718.22190904
Set Approval For...188798312023-12-27 22:02:47174 days ago1703714567IN
ChippysWorld: CHIP Token
0 ETH0.0017076136.59533206
Set Approval For...188606722023-12-25 5:27:35177 days ago1703482055IN
ChippysWorld: CHIP Token
0 ETH0.000617513.2541081
Set Approval For...188027622023-12-17 2:24:47185 days ago1702779887IN
ChippysWorld: CHIP Token
0 ETH0.0009088836.70493201
Set Approval For...188026752023-12-17 2:07:11185 days ago1702778831IN
ChippysWorld: CHIP Token
0 ETH0.0009410438.00360396
Set Approval For...188026292023-12-17 1:57:47185 days ago1702778267IN
ChippysWorld: CHIP Token
0 ETH0.0008389333.99509784
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
146240362022-04-20 20:24:51790 days ago1650486291
ChippysWorld: CHIP Token
185.25 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ChippysWorld

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : ChippysWorld.sol
// SPDX-License-Identifier: MIT
// Some gas saving tips and tricks for our allow-list approach were taken
// from a very well written and thought-out article by nftchance, go check it out!
// https://nftchance.medium.com/the-gas-efficient-way-of-building-and-launching-an-erc721-nft-project-for-2022-b3b1dac5f2e1
//
// GM
// Collection and good vibes by https://twitter.com/zaingaziani/
// Contract by austink.eth
// Website by https://twitter.com/k_optional and austink.eth
//
//
//                   (       )                        (       (  (               (   (
//                   )\   ( /( (                 (    )\      )\))(   '     (    )\  )\ )
//                 (((_)  )\()))\  `  )   `  )   )\ )((_)(   ((_)()\ )  (   )(  ((_)(()/(
//                 )\___ ((_)\((_) /(/(   /(/(  (()/(    )\  _(())\_)() )\ (()\  _   ((_))
//                ((/ __|| |(_)(_)((_)_\ ((_)_\  )(_))  ((_) \ \((_)/ /((_) ((_)| |  _| |
//                 | (__ | ' \ | || '_ \)| '_ \)| || |  (_-<  \ \/\/ // _ \| '_|| |/ _` |
//                  \___||_||_||_|| .__/ | .__/  \_, |  /__/   \_/\_/ \___/|_|  |_|\__,_|
//                                |_|    |_|     |__/
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0OXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWd..cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0;..,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWl....lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO,....,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWo......oWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK;.''''.,0MMMMMMMMMMMMMMNO0WMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMNXWMMMMMMMMMMMMMMx........lNMMMMMMMMMMMMMk.,0MMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMXc:KMMMMMMMMMMMMMXc.''''''.'kMMMMMMMMMMMMK:..dMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMx..dWMMMMMMMMMMMMk..........cXMMMMMMMMMMXc...oMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMd...xWMMMMMMMMMMX:.''''''''..l0WMMMMMMW0:....dMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMO'..'lKMMMMMMMNx:...'''''.....':xNMMMXd'....'kMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMNc.'..,okXWMW0:.''.........',,,'':dko,..''..;KMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMk'..''..,:c:'.',,,,,'',,,,,,,,,''...'...'.'kMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMNl.''...''...,'''',,,,,,,,,''...''..','..,kWMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc....','..''...',,,,,,,,,''''..''..''.;OWMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNd'..,,..''...,,,,,,,,,,,,,,,,'','..'oXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXdc;'..','.'',,',,,,,,,,'''',,,,.,OWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWN0:.',,,,',;,',',,,,'.:o,',,,.cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWd.',,,,.:Oc.,,,,,,'.:d;.,,'.dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO,.,,,,',;,',,,,,',''.'',,.;0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNl.',,,,,,,,,''''...'',,,''dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO,.,,,,,,,'.'......',,,'.lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNWMMWk'.,,,,,,'..,,;;..,,,'.lXMMXkloKMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXl;cd0NWO;.',,,,'...;c,.','.,xNWKd,...xMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc....:oxxc'.',,'','''.',''cOKkl,....,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO,...''.,:,...'',,,,,''..;lc,.'',''.oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWO;.',,,,,'''.............'',,,,,'.lXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMKc'',,,,,',,,'''''''',,,,,,,,,'.lXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNk;.',,,,,,,,,,,,,,,,,,,,,,,''oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXd;.',,,,,,,,,,,,,,,,,,,'.,kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXxc'.',,,,,,,,,,,,,,'..:0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNl.',,,,,,,,,,,,,,..lXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWl.',,,,,,,,,,,,,,''xMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWOkNMMMMMNc.,,,,,,,,,,,,,,,'.lWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX:.dNMMMMK:.,,,,,,,,,,,,,,,,.,0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNc.'lKMMMK;.,',,,,,,,,,,,,,,'.dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMk'..,oON0,.,',,,,,,,,,,,,,,,.cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNd'''.';;..,,,,,,,,,,,,,,,,,.;KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWk,...'..'',,,,'''''',,,,,,.,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKl'.....',,'..':lc,.',,,,.,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXkd:..,'''cdONMWKo'.',,.,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK:.'.;OWMMMMMMW0c'',.,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNl.'oXMMMMMMMMMMWk;..,0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMOlOWMMMMMMMMMMMMMXo:kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract ChippysWorld is ERC721, Ownable {
    using ECDSA for bytes32;
    using Counters for Counters.Counter;
    using Strings for uint256;

    Counters.Counter private _totalSupply;

    uint public constant MAX_CHIPS = 2500;
    uint256 public PRICE = .075 ether;
    uint public constant MAX_MINT = 3;

    bool public phase1 = false;
    bool public phase2 = false;

    bool private devTeamMinted = false;

    mapping(address => uint) claims;
    mapping(address => uint) mints;
    mapping(address => uint) publicMints;

    IERC721 private sharedStorefront;

    uint _supply;
    bytes32 immutable public claimRoot;
    bytes32 immutable public mintRoot;

    string _baseURL = "";

    constructor(bytes32 _claimRoot, bytes32 _mintRoot) ERC721("ChippysWorld", "CHIP") {
        claimRoot = _claimRoot;
        mintRoot = _mintRoot;
    }

    function mint(address _to) internal {
        _totalSupply.increment();
        _safeMint(_to, _totalSupply.current());
    }

    function claim(uint256 count, uint256 allowance, bytes32[] calldata proof) public {
        require(phase1, "phase 1 not enabled");
        string memory payload = string(abi.encodePacked(_msgSender()));
        require(_verify(_leaf(Strings.toString(allowance), payload), proof, claimRoot), "invalid proof");
        require(claims[msg.sender] + count <= allowance, "exceeds claim supply");
        require(_totalSupply.current() + count <= MAX_CHIPS, "exceeds max supply");
        claims[msg.sender] += count;

        for(uint i; i < count; i++) {
            mint(msg.sender);
        }
    }

    function allowListMint(uint256 amount, uint256 allowance, bytes32[] calldata proof) public payable {
        require(phase1, "phase 1 not enabled");
        require(amount * PRICE == msg.value, "Insufficient funds.");

        string memory payload = string(abi.encodePacked(_msgSender()));
        require(_verify(_leaf(Strings.toString(allowance), payload), proof, mintRoot), "invalid proof");
        require(mints[msg.sender] + amount <= allowance, "exceeds allowed mints");
        require(_totalSupply.current() + amount <= MAX_CHIPS, "exceeds max supply");
        mints[msg.sender] += amount;

        for(uint i; i < amount; i++) {
            mint(msg.sender);
        }
    }

    function publicMint(uint256 quantity, uint256 nonce, bytes memory signature) public payable {
        require(_totalSupply.current() + quantity <= MAX_CHIPS, "exceeds max supply");
        require(quantity * PRICE == msg.value, "Insufficient funds.");
        require(phase2, "public mint not enabled");
        require(publicMints[msg.sender] + quantity <= MAX_MINT, "max minted for wallet");

        // check that the signature is valid
        isValid(quantity, nonce, signature);

        for(uint i; i < quantity; i++) {
            mint(msg.sender);
        }

        publicMints[msg.sender] += quantity;
    }

    function teamMint(uint amount) public onlyOwner {
        require(_totalSupply.current() + amount <= MAX_CHIPS, "exceeds max supply");
        require(!devTeamMinted, "already minted");

        for(uint i; i < amount; i++) {
            mint(msg.sender);
        }

        devTeamMinted = true;
    }

    function isValidSignature(bytes32 hash, bytes memory signature) internal view returns (bool valid) {
        bytes32 signedHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
        return signedHash.recover(signature) == owner();
    }

    function isValid(uint256 quantity, uint256 nonce, bytes memory signature) public view {
        bytes32 msgHash = keccak256(abi.encodePacked(msg.sender, nonce, quantity));
        require(
            isValidSignature(msgHash, signature),
            "Invalid signature"
        );
    }

    function flipPhase1() public onlyOwner {
        phase1 = !phase1;
    }

    function flipPhase2() public onlyOwner {
        phase2 = !phase2;
    }

    function _leaf(string memory allowance, string memory payload) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(payload, allowance));
    }

    function _verify(bytes32 leaf, bytes32[] memory proof, bytes32 root) internal pure returns (bool) {
        return MerkleProof.verify(proof, root, leaf);
    }

    function totalSupply() public view returns (uint256) {
        return _totalSupply.current();
    }

    function withdraw() public {
        (bool success, ) = owner().call{value: address(this).balance}("");
        require(success, "Failed to send to owner.");
    }

    function _baseURI() internal view override returns (string memory) {
        return _baseURL;
    }

    function setBaseUri(string memory _uri) external onlyOwner {
        _baseURL = _uri;
    }

    function remainingClaims(address addr, uint allowance, bytes32[] calldata proof) external view returns (uint){
        string memory payload = string(abi.encodePacked(addr));
        require(_verify(_leaf(Strings.toString(allowance), payload), proof, claimRoot), "invalid proof");
        return allowance - claims[addr];
    }

    function remainingMints(address addr, uint allowance, bytes32[] calldata proof) external view returns (uint){
        string memory payload = string(abi.encodePacked(addr));
        require(_verify(_leaf(Strings.toString(allowance), payload), proof, mintRoot), "invalid proof");
        return allowance - mints[addr];
    }

    function totalMinted(address addr) external view returns (uint) {
        return publicMints[addr];
    }
}

File 2 of 14 : 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 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @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, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

File 4 of 14 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 5 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 6 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 7 of 14 : 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 8 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 9 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 11 of 14 : 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 12 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 13 of 14 : 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 14 of 14 : 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": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"_claimRoot","type":"bytes32"},{"internalType":"bytes32","name":"_mintRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_CHIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"allowListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPhase1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPhase2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"isValid","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"remainingClaims","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"remainingMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"string","name":"_uri","type":"string"}],"name":"setBaseUri","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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405267010a741a462780006008556000600960006101000a81548160ff0219169083151502179055506000600960016101000a81548160ff0219169083151502179055506000600960026101000a81548160ff02191690831515021790555060405180602001604052806000815250600f90805190602001906200008892919062000262565b503480156200009657600080fd5b506040516200576c3803806200576c8339818101604052810190620000bc919062000329565b6040518060400160405280600c81526020017f43686970707973576f726c6400000000000000000000000000000000000000008152506040518060400160405280600481526020017f434849500000000000000000000000000000000000000000000000000000000081525081600090805190602001906200014092919062000262565b5080600190805190602001906200015992919062000262565b5050506200017c620001706200019460201b60201c565b6200019c60201b60201c565b81608081815250508060a081815250505050620003f3565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002709062000374565b90600052602060002090601f016020900481019282620002945760008555620002e0565b82601f10620002af57805160ff1916838001178555620002e0565b82800160010185558215620002e0579182015b82811115620002df578251825591602001919060010190620002c2565b5b509050620002ef9190620002f3565b5090565b5b808211156200030e576000816000905550600101620002f4565b5090565b6000815190506200032381620003d9565b92915050565b600080604083850312156200033d57600080fd5b60006200034d8582860162000312565b9250506020620003608582860162000312565b9150509250929050565b6000819050919050565b600060028204905060018216806200038d57607f821691505b60208210811415620003a457620003a3620003aa565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b620003e4816200036a565b8114620003f057600080fd5b50565b60805160a051615337620004356000396000818161120201528181611c520152611cf2015260008181610dae015281816118cb0152611e3c01526153376000f3fe60806040526004361061020e5760003560e01c80638da5cb5b11610118578063cf54ef9b116100a0578063e562a0101161006f578063e562a01014610746578063e7c5622914610783578063e985e9c5146107ae578063f0292a03146107eb578063f2fde38b146108165761020e565b8063cf54ef9b14610688578063d028c20f146106b3578063d398c4c9146106de578063d4deb3b61461071b5761020e565b8063a22cb465116100e7578063a22cb465146105b9578063ae0b51df146105e2578063b88d4fde1461060b578063c87b56dd14610634578063c8b1bbe4146106715761020e565b80638da5cb5b1461052357806395d89b411461054e5780639ff0b9b914610579578063a0bcfc7f146105905761020e565b80632fbba1151161019b57806342842e0e1161016a57806342842e0e1461043e5780636352211e1461046757806370a08231146104a4578063715018a6146104e15780638d859f3e146104f85761020e565b80632fbba115146103b95780633391336a146103e25780633ccfd60b1461040b5780633da1fe29146104225761020e565b8063095ea7b3116101e2578063095ea7b3146102f55780630a8bd9e81461031e57806314ea35e71461033a57806318160ddd1461036557806323b872dd146103905761020e565b80623d47901461021357806301ffc9a71461025057806306fdde031461028d578063081812fc146102b8575b600080fd5b34801561021f57600080fd5b5061023a600480360381019061023591906137ba565b61083f565b60405161024791906146ad565b60405180910390f35b34801561025c57600080fd5b50610277600480360381019061027291906139cd565b610888565b6040516102849190614230565b60405180910390f35b34801561029957600080fd5b506102a261096a565b6040516102af91906142ab565b60405180910390f35b3480156102c457600080fd5b506102df60048036038101906102da9190613a60565b6109fc565b6040516102ec91906141c9565b60405180910390f35b34801561030157600080fd5b5061031c60048036038101906103179190613925565b610a81565b005b61033860048036038101906103339190613af5565b610b99565b005b34801561034657600080fd5b5061034f610dac565b60405161035c919061424b565b60405180910390f35b34801561037157600080fd5b5061037a610dd0565b60405161038791906146ad565b60405180910390f35b34801561039c57600080fd5b506103b760048036038101906103b2919061381f565b610de1565b005b3480156103c557600080fd5b506103e060048036038101906103db9190613a60565b610e41565b005b3480156103ee57600080fd5b5061040960048036038101906104049190613af5565b610fac565b005b34801561041757600080fd5b5061042061102a565b005b61043c60048036038101906104379190613a89565b6110e0565b005b34801561044a57600080fd5b506104656004803603810190610460919061381f565b6113d0565b005b34801561047357600080fd5b5061048e60048036038101906104899190613a60565b6113f0565b60405161049b91906141c9565b60405180910390f35b3480156104b057600080fd5b506104cb60048036038101906104c691906137ba565b6114a2565b6040516104d891906146ad565b60405180910390f35b3480156104ed57600080fd5b506104f661155a565b005b34801561050457600080fd5b5061050d6115e2565b60405161051a91906146ad565b60405180910390f35b34801561052f57600080fd5b506105386115e8565b60405161054591906141c9565b60405180910390f35b34801561055a57600080fd5b50610563611612565b60405161057091906142ab565b60405180910390f35b34801561058557600080fd5b5061058e6116a4565b005b34801561059c57600080fd5b506105b760048036038101906105b29190613a1f565b61174c565b005b3480156105c557600080fd5b506105e060048036038101906105db91906138e9565b6117e2565b005b3480156105ee57600080fd5b5061060960048036038101906106049190613a89565b6117f8565b005b34801561061757600080fd5b50610632600480360381019061062d919061386e565b611a99565b005b34801561064057600080fd5b5061065b60048036038101906106569190613a60565b611afb565b60405161066891906142ab565b60405180910390f35b34801561067d57600080fd5b50610686611ba2565b005b34801561069457600080fd5b5061069d611c4a565b6040516106aa91906146ad565b60405180910390f35b3480156106bf57600080fd5b506106c8611c50565b6040516106d5919061424b565b60405180910390f35b3480156106ea57600080fd5b5061070560048036038101906107009190613961565b611c74565b60405161071291906146ad565b60405180910390f35b34801561072757600080fd5b50610730611dab565b60405161073d9190614230565b60405180910390f35b34801561075257600080fd5b5061076d60048036038101906107689190613961565b611dbe565b60405161077a91906146ad565b60405180910390f35b34801561078f57600080fd5b50610798611ef5565b6040516107a59190614230565b60405180910390f35b3480156107ba57600080fd5b506107d560048036038101906107d091906137e3565b611f08565b6040516107e29190614230565b60405180910390f35b3480156107f757600080fd5b50610800611f9c565b60405161080d91906146ad565b60405180910390f35b34801561082257600080fd5b5061083d600480360381019061083891906137ba565b611fa1565b005b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061095357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610963575061096282612099565b5b9050919050565b6060600080546109799061497f565b80601f01602080910402602001604051908101604052809291908181526020018280546109a59061497f565b80156109f25780601f106109c7576101008083540402835291602001916109f2565b820191906000526020600020905b8154815290600101906020018083116109d557829003601f168201915b5050505050905090565b6000610a0782612103565b610a46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3d9061454d565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a8c826113f0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610afd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af4906145ad565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b1c61216f565b73ffffffffffffffffffffffffffffffffffffffff161480610b4b5750610b4a81610b4561216f565b611f08565b5b610b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b819061448d565b60405180910390fd5b610b948383612177565b505050565b6109c483610ba76007612230565b610bb1919061479d565b1115610bf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be99061446d565b60405180910390fd5b3460085484610c019190614824565b14610c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c389061468d565b60405180910390fd5b600960019054906101000a900460ff16610c90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c87906145ed565b60405180910390fd5b600383600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610cdd919061479d565b1115610d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d159061436d565b60405180910390fd5b610d29838383610fac565b60005b83811015610d5057610d3d3361223e565b8080610d48906149e2565b915050610d2c565b5082600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610da0919061479d565b92505081905550505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610ddc6007612230565b905090565b610df2610dec61216f565b8261225e565b610e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e28906145cd565b60405180910390fd5b610e3c83838361233c565b505050565b610e4961216f565b73ffffffffffffffffffffffffffffffffffffffff16610e676115e8565b73ffffffffffffffffffffffffffffffffffffffff1614610ebd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb49061456d565b60405180910390fd5b6109c481610ecb6007612230565b610ed5919061479d565b1115610f16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0d9061446d565b60405180910390fd5b600960029054906101000a900460ff1615610f66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5d9061466d565b60405180910390fd5b60005b81811015610f8d57610f7a3361223e565b8080610f85906149e2565b915050610f69565b506001600960026101000a81548160ff02191690831515021790555050565b6000338385604051602001610fc39392919061412d565b604051602081830303815290604052805190602001209050610fe581836125a3565b611024576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101b9061440d565b60405180910390fd5b50505050565b60006110346115e8565b73ffffffffffffffffffffffffffffffffffffffff1647604051611057906141b4565b60006040518083038185875af1925050503d8060008114611094576040519150601f19603f3d011682016040523d82523d6000602084013e611099565b606091505b50509050806110dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d49061464d565b60405180910390fd5b50565b600960009054906101000a900460ff1661112f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611126906142ed565b60405180910390fd5b346008548561113e9190614824565b1461117e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111759061468d565b60405180910390fd5b600061118861216f565b6040516020016111989190614112565b60405160208183030381529060405290506112266111be6111b886612620565b836127cd565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f0000000000000000000000000000000000000000000000000000000000000000612800565b611265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125c9061460d565b60405180910390fd5b8385600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112b1919061479d565b11156112f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e99061450d565b60405180910390fd5b6109c4856113006007612230565b61130a919061479d565b111561134b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113429061446d565b60405180910390fd5b84600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461139a919061479d565b9250508190555060005b858110156113c8576113b53361223e565b80806113c0906149e2565b9150506113a4565b505050505050565b6113eb83838360405180602001604052806000815250611a99565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611499576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611490906144cd565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150a906144ad565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61156261216f565b73ffffffffffffffffffffffffffffffffffffffff166115806115e8565b73ffffffffffffffffffffffffffffffffffffffff16146115d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cd9061456d565b60405180910390fd5b6115e06000612816565b565b60085481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546116219061497f565b80601f016020809104026020016040519081016040528092919081815260200182805461164d9061497f565b801561169a5780601f1061166f5761010080835404028352916020019161169a565b820191906000526020600020905b81548152906001019060200180831161167d57829003601f168201915b5050505050905090565b6116ac61216f565b73ffffffffffffffffffffffffffffffffffffffff166116ca6115e8565b73ffffffffffffffffffffffffffffffffffffffff1614611720576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117179061456d565b60405180910390fd5b600960019054906101000a900460ff1615600960016101000a81548160ff021916908315150217905550565b61175461216f565b73ffffffffffffffffffffffffffffffffffffffff166117726115e8565b73ffffffffffffffffffffffffffffffffffffffff16146117c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bf9061456d565b60405180910390fd5b80600f90805190602001906117de929190613594565b5050565b6117f46117ed61216f565b83836128dc565b5050565b600960009054906101000a900460ff16611847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183e906142ed565b60405180910390fd5b600061185161216f565b6040516020016118619190614112565b60405160208183030381529060405290506118ef61188761188186612620565b836127cd565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f0000000000000000000000000000000000000000000000000000000000000000612800565b61192e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119259061460d565b60405180910390fd5b8385600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461197a919061479d565b11156119bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b29061462d565b60405180910390fd5b6109c4856119c96007612230565b6119d3919061479d565b1115611a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0b9061446d565b60405180910390fd5b84600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a63919061479d565b9250508190555060005b85811015611a9157611a7e3361223e565b8080611a89906149e2565b915050611a6d565b505050505050565b611aaa611aa461216f565b8361225e565b611ae9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae0906145cd565b60405180910390fd5b611af584848484612a49565b50505050565b6060611b0682612103565b611b45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3c9061458d565b60405180910390fd5b6000611b4f612aa5565b90506000815111611b6f5760405180602001604052806000815250611b9a565b80611b7984612620565b604051602001611b8a92919061416a565b6040516020818303038152906040525b915050919050565b611baa61216f565b73ffffffffffffffffffffffffffffffffffffffff16611bc86115e8565b73ffffffffffffffffffffffffffffffffffffffff1614611c1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c159061456d565b60405180910390fd5b600960009054906101000a900460ff1615600960006101000a81548160ff021916908315150217905550565b6109c481565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008085604051602001611c889190614112565b6040516020818303038152906040529050611d16611cae611ca887612620565b836127cd565b858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f0000000000000000000000000000000000000000000000000000000000000000612800565b611d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4c9061460d565b60405180910390fd5b600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485611da0919061487e565b915050949350505050565b600960019054906101000a900460ff1681565b60008085604051602001611dd29190614112565b6040516020818303038152906040529050611e60611df8611df287612620565b836127cd565b858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f0000000000000000000000000000000000000000000000000000000000000000612800565b611e9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e969061460d565b60405180910390fd5b600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485611eea919061487e565b915050949350505050565b600960009054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600381565b611fa961216f565b73ffffffffffffffffffffffffffffffffffffffff16611fc76115e8565b73ffffffffffffffffffffffffffffffffffffffff161461201d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120149061456d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561208d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120849061434d565b60405180910390fd5b61209681612816565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166121ea836113f0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b6122486007612b37565b61225b816122566007612230565b612b4d565b50565b600061226982612103565b6122a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229f9061444d565b60405180910390fd5b60006122b3836113f0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061232257508373ffffffffffffffffffffffffffffffffffffffff1661230a846109fc565b73ffffffffffffffffffffffffffffffffffffffff16145b8061233357506123328185611f08565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661235c826113f0565b73ffffffffffffffffffffffffffffffffffffffff16146123b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a99061438d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612422576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612419906143cd565b60405180910390fd5b61242d838383612b6b565b612438600082612177565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612488919061487e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124df919061479d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461259e838383612b70565b505050565b600080836040516020016125b7919061418e565b6040516020818303038152906040528051906020012090506125d76115e8565b73ffffffffffffffffffffffffffffffffffffffff166126008483612b7590919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff161491505092915050565b60606000821415612668576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506127c8565b600082905060005b6000821461269a578080612683906149e2565b915050600a8261269391906147f3565b9150612670565b60008167ffffffffffffffff8111156126dc577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561270e5781602001600182028036833780820191505090505b5090505b600085146127c157600182612727919061487e565b9150600a856127369190614a63565b6030612742919061479d565b60f81b81838151811061277e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127ba91906147f3565b9450612712565b8093505050505b919050565b600081836040516020016127e292919061416a565b60405160208183030381529060405280519060200120905092915050565b600061280d838386612b9c565b90509392505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561294b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612942906143ed565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a3c9190614230565b60405180910390a3505050565b612a5484848461233c565b612a6084848484612bb3565b612a9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a969061432d565b60405180910390fd5b50505050565b6060600f8054612ab49061497f565b80601f0160208091040260200160405190810160405280929190818152602001828054612ae09061497f565b8015612b2d5780601f10612b0257610100808354040283529160200191612b2d565b820191906000526020600020905b815481529060010190602001808311612b1057829003601f168201915b5050505050905090565b6001816000016000828254019250508190555050565b612b67828260405180602001604052806000815250612d4a565b5050565b505050565b505050565b6000806000612b848585612da5565b91509150612b9181612e28565b819250505092915050565b600082612ba98584613179565b1490509392505050565b6000612bd48473ffffffffffffffffffffffffffffffffffffffff16613214565b15612d3d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bfd61216f565b8786866040518563ffffffff1660e01b8152600401612c1f94939291906141e4565b602060405180830381600087803b158015612c3957600080fd5b505af1925050508015612c6a57506040513d601f19601f82011682018060405250810190612c6791906139f6565b60015b612ced573d8060008114612c9a576040519150601f19603f3d011682016040523d82523d6000602084013e612c9f565b606091505b50600081511415612ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cdc9061432d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d42565b600190505b949350505050565b612d548383613237565b612d616000848484612bb3565b612da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d979061432d565b60405180910390fd5b505050565b600080604183511415612de75760008060006020860151925060408601519150606086015160001a9050612ddb87828585613411565b94509450505050612e21565b604083511415612e18576000806020850151915060408501519050612e0d86838361351e565b935093505050612e21565b60006002915091505b9250929050565b60006004811115612e62577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612e9b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612ea657613176565b60016004811115612ee0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612f19577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f51906142cd565b60405180910390fd5b60026004811115612f94577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612fcd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561300e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130059061430d565b60405180910390fd5b60036004811115613048577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613081577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156130c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b99061442d565b60405180910390fd5b6004808111156130fb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613134577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316c906144ed565b60405180910390fd5b5b50565b60008082905060005b84518110156132095760008582815181106131c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116131e8576131e1838261357d565b92506131f5565b6131f2818461357d565b92505b508080613201906149e2565b915050613182565b508091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156132a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329e9061452d565b60405180910390fd5b6132b081612103565b156132f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132e7906143ad565b60405180910390fd5b6132fc60008383612b6b565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461334c919061479d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461340d60008383612b70565b5050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561344c576000600391509150613515565b601b8560ff16141580156134645750601c8560ff1614155b15613476576000600491509150613515565b60006001878787876040516000815260200160405260405161349b9493929190614266565b6020604051602081039080840390855afa1580156134bd573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561350c57600060019250925050613515565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c613561919061479d565b905061356f87828885613411565b935093505050935093915050565b600082600052816020526040600020905092915050565b8280546135a09061497f565b90600052602060002090601f0160209004810192826135c25760008555613609565b82601f106135db57805160ff1916838001178555613609565b82800160010185558215613609579182015b828111156136085782518255916020019190600101906135ed565b5b509050613616919061361a565b5090565b5b8082111561363357600081600090555060010161361b565b5090565b600061364a613645846146ed565b6146c8565b90508281526020810184848401111561366257600080fd5b61366d84828561493d565b509392505050565b60006136886136838461471e565b6146c8565b9050828152602081018484840111156136a057600080fd5b6136ab84828561493d565b509392505050565b6000813590506136c2816152a5565b92915050565b60008083601f8401126136da57600080fd5b8235905067ffffffffffffffff8111156136f357600080fd5b60208301915083602082028301111561370b57600080fd5b9250929050565b600081359050613721816152bc565b92915050565b600081359050613736816152d3565b92915050565b60008151905061374b816152d3565b92915050565b600082601f83011261376257600080fd5b8135613772848260208601613637565b91505092915050565b600082601f83011261378c57600080fd5b813561379c848260208601613675565b91505092915050565b6000813590506137b4816152ea565b92915050565b6000602082840312156137cc57600080fd5b60006137da848285016136b3565b91505092915050565b600080604083850312156137f657600080fd5b6000613804858286016136b3565b9250506020613815858286016136b3565b9150509250929050565b60008060006060848603121561383457600080fd5b6000613842868287016136b3565b9350506020613853868287016136b3565b9250506040613864868287016137a5565b9150509250925092565b6000806000806080858703121561388457600080fd5b6000613892878288016136b3565b94505060206138a3878288016136b3565b93505060406138b4878288016137a5565b925050606085013567ffffffffffffffff8111156138d157600080fd5b6138dd87828801613751565b91505092959194509250565b600080604083850312156138fc57600080fd5b600061390a858286016136b3565b925050602061391b85828601613712565b9150509250929050565b6000806040838503121561393857600080fd5b6000613946858286016136b3565b9250506020613957858286016137a5565b9150509250929050565b6000806000806060858703121561397757600080fd5b6000613985878288016136b3565b9450506020613996878288016137a5565b935050604085013567ffffffffffffffff8111156139b357600080fd5b6139bf878288016136c8565b925092505092959194509250565b6000602082840312156139df57600080fd5b60006139ed84828501613727565b91505092915050565b600060208284031215613a0857600080fd5b6000613a168482850161373c565b91505092915050565b600060208284031215613a3157600080fd5b600082013567ffffffffffffffff811115613a4b57600080fd5b613a578482850161377b565b91505092915050565b600060208284031215613a7257600080fd5b6000613a80848285016137a5565b91505092915050565b60008060008060608587031215613a9f57600080fd5b6000613aad878288016137a5565b9450506020613abe878288016137a5565b935050604085013567ffffffffffffffff811115613adb57600080fd5b613ae7878288016136c8565b925092505092959194509250565b600080600060608486031215613b0a57600080fd5b6000613b18868287016137a5565b9350506020613b29868287016137a5565b925050604084013567ffffffffffffffff811115613b4657600080fd5b613b5286828701613751565b9150509250925092565b613b65816148b2565b82525050565b613b7c613b77826148b2565b614a2b565b82525050565b613b8b816148c4565b82525050565b613b9a816148d0565b82525050565b613bb1613bac826148d0565b614a3d565b82525050565b6000613bc28261474f565b613bcc8185614765565b9350613bdc81856020860161494c565b613be581614b50565b840191505092915050565b6000613bfb8261475a565b613c058185614781565b9350613c1581856020860161494c565b613c1e81614b50565b840191505092915050565b6000613c348261475a565b613c3e8185614792565b9350613c4e81856020860161494c565b80840191505092915050565b6000613c67601883614781565b9150613c7282614b6e565b602082019050919050565b6000613c8a601383614781565b9150613c9582614b97565b602082019050919050565b6000613cad601f83614781565b9150613cb882614bc0565b602082019050919050565b6000613cd0601c83614792565b9150613cdb82614be9565b601c82019050919050565b6000613cf3603283614781565b9150613cfe82614c12565b604082019050919050565b6000613d16602683614781565b9150613d2182614c61565b604082019050919050565b6000613d39601583614781565b9150613d4482614cb0565b602082019050919050565b6000613d5c602583614781565b9150613d6782614cd9565b604082019050919050565b6000613d7f601c83614781565b9150613d8a82614d28565b602082019050919050565b6000613da2602483614781565b9150613dad82614d51565b604082019050919050565b6000613dc5601983614781565b9150613dd082614da0565b602082019050919050565b6000613de8601183614781565b9150613df382614dc9565b602082019050919050565b6000613e0b602283614781565b9150613e1682614df2565b604082019050919050565b6000613e2e602c83614781565b9150613e3982614e41565b604082019050919050565b6000613e51601283614781565b9150613e5c82614e90565b602082019050919050565b6000613e74603883614781565b9150613e7f82614eb9565b604082019050919050565b6000613e97602a83614781565b9150613ea282614f08565b604082019050919050565b6000613eba602983614781565b9150613ec582614f57565b604082019050919050565b6000613edd602283614781565b9150613ee882614fa6565b604082019050919050565b6000613f00601583614781565b9150613f0b82614ff5565b602082019050919050565b6000613f23602083614781565b9150613f2e8261501e565b602082019050919050565b6000613f46602c83614781565b9150613f5182615047565b604082019050919050565b6000613f69602083614781565b9150613f7482615096565b602082019050919050565b6000613f8c602f83614781565b9150613f97826150bf565b604082019050919050565b6000613faf602183614781565b9150613fba8261510e565b604082019050919050565b6000613fd2600083614776565b9150613fdd8261515d565b600082019050919050565b6000613ff5603183614781565b915061400082615160565b604082019050919050565b6000614018601783614781565b9150614023826151af565b602082019050919050565b600061403b600d83614781565b9150614046826151d8565b602082019050919050565b600061405e601483614781565b915061406982615201565b602082019050919050565b6000614081601883614781565b915061408c8261522a565b602082019050919050565b60006140a4600e83614781565b91506140af82615253565b602082019050919050565b60006140c7601383614781565b91506140d28261527c565b602082019050919050565b6140e681614926565b82525050565b6140fd6140f882614926565b614a59565b82525050565b61410c81614930565b82525050565b600061411e8284613b6b565b60148201915081905092915050565b60006141398286613b6b565b60148201915061414982856140ec565b60208201915061415982846140ec565b602082019150819050949350505050565b60006141768285613c29565b91506141828284613c29565b91508190509392505050565b600061419982613cc3565b91506141a58284613ba0565b60208201915081905092915050565b60006141bf82613fc5565b9150819050919050565b60006020820190506141de6000830184613b5c565b92915050565b60006080820190506141f96000830187613b5c565b6142066020830186613b5c565b61421360408301856140dd565b81810360608301526142258184613bb7565b905095945050505050565b60006020820190506142456000830184613b82565b92915050565b60006020820190506142606000830184613b91565b92915050565b600060808201905061427b6000830187613b91565b6142886020830186614103565b6142956040830185613b91565b6142a26060830184613b91565b95945050505050565b600060208201905081810360008301526142c58184613bf0565b905092915050565b600060208201905081810360008301526142e681613c5a565b9050919050565b6000602082019050818103600083015261430681613c7d565b9050919050565b6000602082019050818103600083015261432681613ca0565b9050919050565b6000602082019050818103600083015261434681613ce6565b9050919050565b6000602082019050818103600083015261436681613d09565b9050919050565b6000602082019050818103600083015261438681613d2c565b9050919050565b600060208201905081810360008301526143a681613d4f565b9050919050565b600060208201905081810360008301526143c681613d72565b9050919050565b600060208201905081810360008301526143e681613d95565b9050919050565b6000602082019050818103600083015261440681613db8565b9050919050565b6000602082019050818103600083015261442681613ddb565b9050919050565b6000602082019050818103600083015261444681613dfe565b9050919050565b6000602082019050818103600083015261446681613e21565b9050919050565b6000602082019050818103600083015261448681613e44565b9050919050565b600060208201905081810360008301526144a681613e67565b9050919050565b600060208201905081810360008301526144c681613e8a565b9050919050565b600060208201905081810360008301526144e681613ead565b9050919050565b6000602082019050818103600083015261450681613ed0565b9050919050565b6000602082019050818103600083015261452681613ef3565b9050919050565b6000602082019050818103600083015261454681613f16565b9050919050565b6000602082019050818103600083015261456681613f39565b9050919050565b6000602082019050818103600083015261458681613f5c565b9050919050565b600060208201905081810360008301526145a681613f7f565b9050919050565b600060208201905081810360008301526145c681613fa2565b9050919050565b600060208201905081810360008301526145e681613fe8565b9050919050565b600060208201905081810360008301526146068161400b565b9050919050565b600060208201905081810360008301526146268161402e565b9050919050565b6000602082019050818103600083015261464681614051565b9050919050565b6000602082019050818103600083015261466681614074565b9050919050565b6000602082019050818103600083015261468681614097565b9050919050565b600060208201905081810360008301526146a6816140ba565b9050919050565b60006020820190506146c260008301846140dd565b92915050565b60006146d26146e3565b90506146de82826149b1565b919050565b6000604051905090565b600067ffffffffffffffff82111561470857614707614b21565b5b61471182614b50565b9050602081019050919050565b600067ffffffffffffffff82111561473957614738614b21565b5b61474282614b50565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006147a882614926565b91506147b383614926565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147e8576147e7614a94565b5b828201905092915050565b60006147fe82614926565b915061480983614926565b92508261481957614818614ac3565b5b828204905092915050565b600061482f82614926565b915061483a83614926565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561487357614872614a94565b5b828202905092915050565b600061488982614926565b915061489483614926565b9250828210156148a7576148a6614a94565b5b828203905092915050565b60006148bd82614906565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561496a57808201518184015260208101905061494f565b83811115614979576000848401525b50505050565b6000600282049050600182168061499757607f821691505b602082108114156149ab576149aa614af2565b5b50919050565b6149ba82614b50565b810181811067ffffffffffffffff821117156149d9576149d8614b21565b5b80604052505050565b60006149ed82614926565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a2057614a1f614a94565b5b600182019050919050565b6000614a3682614a47565b9050919050565b6000819050919050565b6000614a5282614b61565b9050919050565b6000819050919050565b6000614a6e82614926565b9150614a7983614926565b925082614a8957614a88614ac3565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f70686173652031206e6f7420656e61626c656400000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6d6178206d696e74656420666f722077616c6c65740000000000000000000000600082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f65786365656473206d617820737570706c790000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f6578636565647320616c6c6f776564206d696e74730000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f7075626c6963206d696e74206e6f7420656e61626c6564000000000000000000600082015250565b7f696e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b7f6578636565647320636c61696d20737570706c79000000000000000000000000600082015250565b7f4661696c656420746f2073656e6420746f206f776e65722e0000000000000000600082015250565b7f616c7265616479206d696e746564000000000000000000000000000000000000600082015250565b7f496e73756666696369656e742066756e64732e00000000000000000000000000600082015250565b6152ae816148b2565b81146152b957600080fd5b50565b6152c5816148c4565b81146152d057600080fd5b50565b6152dc816148da565b81146152e757600080fd5b50565b6152f381614926565b81146152fe57600080fd5b5056fea2646970667358221220e5c7d0d80ccfe2900fd38516d1957e61fe4d0b93554a8832b2539d6564320d2764736f6c6343000804003390fb7cca7c29763af779f6a16a7a16a39c09e6bd49888eaf02796224a3833749a9d22ddfbd7712eabad106fc30a8a3136d093898331da30acb04c95ae3c05c84

Deployed Bytecode

0x60806040526004361061020e5760003560e01c80638da5cb5b11610118578063cf54ef9b116100a0578063e562a0101161006f578063e562a01014610746578063e7c5622914610783578063e985e9c5146107ae578063f0292a03146107eb578063f2fde38b146108165761020e565b8063cf54ef9b14610688578063d028c20f146106b3578063d398c4c9146106de578063d4deb3b61461071b5761020e565b8063a22cb465116100e7578063a22cb465146105b9578063ae0b51df146105e2578063b88d4fde1461060b578063c87b56dd14610634578063c8b1bbe4146106715761020e565b80638da5cb5b1461052357806395d89b411461054e5780639ff0b9b914610579578063a0bcfc7f146105905761020e565b80632fbba1151161019b57806342842e0e1161016a57806342842e0e1461043e5780636352211e1461046757806370a08231146104a4578063715018a6146104e15780638d859f3e146104f85761020e565b80632fbba115146103b95780633391336a146103e25780633ccfd60b1461040b5780633da1fe29146104225761020e565b8063095ea7b3116101e2578063095ea7b3146102f55780630a8bd9e81461031e57806314ea35e71461033a57806318160ddd1461036557806323b872dd146103905761020e565b80623d47901461021357806301ffc9a71461025057806306fdde031461028d578063081812fc146102b8575b600080fd5b34801561021f57600080fd5b5061023a600480360381019061023591906137ba565b61083f565b60405161024791906146ad565b60405180910390f35b34801561025c57600080fd5b50610277600480360381019061027291906139cd565b610888565b6040516102849190614230565b60405180910390f35b34801561029957600080fd5b506102a261096a565b6040516102af91906142ab565b60405180910390f35b3480156102c457600080fd5b506102df60048036038101906102da9190613a60565b6109fc565b6040516102ec91906141c9565b60405180910390f35b34801561030157600080fd5b5061031c60048036038101906103179190613925565b610a81565b005b61033860048036038101906103339190613af5565b610b99565b005b34801561034657600080fd5b5061034f610dac565b60405161035c919061424b565b60405180910390f35b34801561037157600080fd5b5061037a610dd0565b60405161038791906146ad565b60405180910390f35b34801561039c57600080fd5b506103b760048036038101906103b2919061381f565b610de1565b005b3480156103c557600080fd5b506103e060048036038101906103db9190613a60565b610e41565b005b3480156103ee57600080fd5b5061040960048036038101906104049190613af5565b610fac565b005b34801561041757600080fd5b5061042061102a565b005b61043c60048036038101906104379190613a89565b6110e0565b005b34801561044a57600080fd5b506104656004803603810190610460919061381f565b6113d0565b005b34801561047357600080fd5b5061048e60048036038101906104899190613a60565b6113f0565b60405161049b91906141c9565b60405180910390f35b3480156104b057600080fd5b506104cb60048036038101906104c691906137ba565b6114a2565b6040516104d891906146ad565b60405180910390f35b3480156104ed57600080fd5b506104f661155a565b005b34801561050457600080fd5b5061050d6115e2565b60405161051a91906146ad565b60405180910390f35b34801561052f57600080fd5b506105386115e8565b60405161054591906141c9565b60405180910390f35b34801561055a57600080fd5b50610563611612565b60405161057091906142ab565b60405180910390f35b34801561058557600080fd5b5061058e6116a4565b005b34801561059c57600080fd5b506105b760048036038101906105b29190613a1f565b61174c565b005b3480156105c557600080fd5b506105e060048036038101906105db91906138e9565b6117e2565b005b3480156105ee57600080fd5b5061060960048036038101906106049190613a89565b6117f8565b005b34801561061757600080fd5b50610632600480360381019061062d919061386e565b611a99565b005b34801561064057600080fd5b5061065b60048036038101906106569190613a60565b611afb565b60405161066891906142ab565b60405180910390f35b34801561067d57600080fd5b50610686611ba2565b005b34801561069457600080fd5b5061069d611c4a565b6040516106aa91906146ad565b60405180910390f35b3480156106bf57600080fd5b506106c8611c50565b6040516106d5919061424b565b60405180910390f35b3480156106ea57600080fd5b5061070560048036038101906107009190613961565b611c74565b60405161071291906146ad565b60405180910390f35b34801561072757600080fd5b50610730611dab565b60405161073d9190614230565b60405180910390f35b34801561075257600080fd5b5061076d60048036038101906107689190613961565b611dbe565b60405161077a91906146ad565b60405180910390f35b34801561078f57600080fd5b50610798611ef5565b6040516107a59190614230565b60405180910390f35b3480156107ba57600080fd5b506107d560048036038101906107d091906137e3565b611f08565b6040516107e29190614230565b60405180910390f35b3480156107f757600080fd5b50610800611f9c565b60405161080d91906146ad565b60405180910390f35b34801561082257600080fd5b5061083d600480360381019061083891906137ba565b611fa1565b005b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061095357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610963575061096282612099565b5b9050919050565b6060600080546109799061497f565b80601f01602080910402602001604051908101604052809291908181526020018280546109a59061497f565b80156109f25780601f106109c7576101008083540402835291602001916109f2565b820191906000526020600020905b8154815290600101906020018083116109d557829003601f168201915b5050505050905090565b6000610a0782612103565b610a46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3d9061454d565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a8c826113f0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610afd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af4906145ad565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b1c61216f565b73ffffffffffffffffffffffffffffffffffffffff161480610b4b5750610b4a81610b4561216f565b611f08565b5b610b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b819061448d565b60405180910390fd5b610b948383612177565b505050565b6109c483610ba76007612230565b610bb1919061479d565b1115610bf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be99061446d565b60405180910390fd5b3460085484610c019190614824565b14610c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c389061468d565b60405180910390fd5b600960019054906101000a900460ff16610c90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c87906145ed565b60405180910390fd5b600383600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610cdd919061479d565b1115610d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d159061436d565b60405180910390fd5b610d29838383610fac565b60005b83811015610d5057610d3d3361223e565b8080610d48906149e2565b915050610d2c565b5082600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610da0919061479d565b92505081905550505050565b7f90fb7cca7c29763af779f6a16a7a16a39c09e6bd49888eaf02796224a383374981565b6000610ddc6007612230565b905090565b610df2610dec61216f565b8261225e565b610e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e28906145cd565b60405180910390fd5b610e3c83838361233c565b505050565b610e4961216f565b73ffffffffffffffffffffffffffffffffffffffff16610e676115e8565b73ffffffffffffffffffffffffffffffffffffffff1614610ebd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb49061456d565b60405180910390fd5b6109c481610ecb6007612230565b610ed5919061479d565b1115610f16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0d9061446d565b60405180910390fd5b600960029054906101000a900460ff1615610f66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5d9061466d565b60405180910390fd5b60005b81811015610f8d57610f7a3361223e565b8080610f85906149e2565b915050610f69565b506001600960026101000a81548160ff02191690831515021790555050565b6000338385604051602001610fc39392919061412d565b604051602081830303815290604052805190602001209050610fe581836125a3565b611024576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101b9061440d565b60405180910390fd5b50505050565b60006110346115e8565b73ffffffffffffffffffffffffffffffffffffffff1647604051611057906141b4565b60006040518083038185875af1925050503d8060008114611094576040519150601f19603f3d011682016040523d82523d6000602084013e611099565b606091505b50509050806110dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d49061464d565b60405180910390fd5b50565b600960009054906101000a900460ff1661112f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611126906142ed565b60405180910390fd5b346008548561113e9190614824565b1461117e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111759061468d565b60405180910390fd5b600061118861216f565b6040516020016111989190614112565b60405160208183030381529060405290506112266111be6111b886612620565b836127cd565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507fa9d22ddfbd7712eabad106fc30a8a3136d093898331da30acb04c95ae3c05c84612800565b611265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125c9061460d565b60405180910390fd5b8385600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112b1919061479d565b11156112f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e99061450d565b60405180910390fd5b6109c4856113006007612230565b61130a919061479d565b111561134b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113429061446d565b60405180910390fd5b84600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461139a919061479d565b9250508190555060005b858110156113c8576113b53361223e565b80806113c0906149e2565b9150506113a4565b505050505050565b6113eb83838360405180602001604052806000815250611a99565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611499576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611490906144cd565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150a906144ad565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61156261216f565b73ffffffffffffffffffffffffffffffffffffffff166115806115e8565b73ffffffffffffffffffffffffffffffffffffffff16146115d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cd9061456d565b60405180910390fd5b6115e06000612816565b565b60085481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546116219061497f565b80601f016020809104026020016040519081016040528092919081815260200182805461164d9061497f565b801561169a5780601f1061166f5761010080835404028352916020019161169a565b820191906000526020600020905b81548152906001019060200180831161167d57829003601f168201915b5050505050905090565b6116ac61216f565b73ffffffffffffffffffffffffffffffffffffffff166116ca6115e8565b73ffffffffffffffffffffffffffffffffffffffff1614611720576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117179061456d565b60405180910390fd5b600960019054906101000a900460ff1615600960016101000a81548160ff021916908315150217905550565b61175461216f565b73ffffffffffffffffffffffffffffffffffffffff166117726115e8565b73ffffffffffffffffffffffffffffffffffffffff16146117c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bf9061456d565b60405180910390fd5b80600f90805190602001906117de929190613594565b5050565b6117f46117ed61216f565b83836128dc565b5050565b600960009054906101000a900460ff16611847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183e906142ed565b60405180910390fd5b600061185161216f565b6040516020016118619190614112565b60405160208183030381529060405290506118ef61188761188186612620565b836127cd565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f90fb7cca7c29763af779f6a16a7a16a39c09e6bd49888eaf02796224a3833749612800565b61192e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119259061460d565b60405180910390fd5b8385600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461197a919061479d565b11156119bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b29061462d565b60405180910390fd5b6109c4856119c96007612230565b6119d3919061479d565b1115611a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0b9061446d565b60405180910390fd5b84600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a63919061479d565b9250508190555060005b85811015611a9157611a7e3361223e565b8080611a89906149e2565b915050611a6d565b505050505050565b611aaa611aa461216f565b8361225e565b611ae9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae0906145cd565b60405180910390fd5b611af584848484612a49565b50505050565b6060611b0682612103565b611b45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3c9061458d565b60405180910390fd5b6000611b4f612aa5565b90506000815111611b6f5760405180602001604052806000815250611b9a565b80611b7984612620565b604051602001611b8a92919061416a565b6040516020818303038152906040525b915050919050565b611baa61216f565b73ffffffffffffffffffffffffffffffffffffffff16611bc86115e8565b73ffffffffffffffffffffffffffffffffffffffff1614611c1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c159061456d565b60405180910390fd5b600960009054906101000a900460ff1615600960006101000a81548160ff021916908315150217905550565b6109c481565b7fa9d22ddfbd7712eabad106fc30a8a3136d093898331da30acb04c95ae3c05c8481565b60008085604051602001611c889190614112565b6040516020818303038152906040529050611d16611cae611ca887612620565b836127cd565b858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507fa9d22ddfbd7712eabad106fc30a8a3136d093898331da30acb04c95ae3c05c84612800565b611d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4c9061460d565b60405180910390fd5b600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485611da0919061487e565b915050949350505050565b600960019054906101000a900460ff1681565b60008085604051602001611dd29190614112565b6040516020818303038152906040529050611e60611df8611df287612620565b836127cd565b858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f90fb7cca7c29763af779f6a16a7a16a39c09e6bd49888eaf02796224a3833749612800565b611e9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e969061460d565b60405180910390fd5b600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485611eea919061487e565b915050949350505050565b600960009054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600381565b611fa961216f565b73ffffffffffffffffffffffffffffffffffffffff16611fc76115e8565b73ffffffffffffffffffffffffffffffffffffffff161461201d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120149061456d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561208d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120849061434d565b60405180910390fd5b61209681612816565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166121ea836113f0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b6122486007612b37565b61225b816122566007612230565b612b4d565b50565b600061226982612103565b6122a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229f9061444d565b60405180910390fd5b60006122b3836113f0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061232257508373ffffffffffffffffffffffffffffffffffffffff1661230a846109fc565b73ffffffffffffffffffffffffffffffffffffffff16145b8061233357506123328185611f08565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661235c826113f0565b73ffffffffffffffffffffffffffffffffffffffff16146123b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a99061438d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612422576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612419906143cd565b60405180910390fd5b61242d838383612b6b565b612438600082612177565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612488919061487e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124df919061479d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461259e838383612b70565b505050565b600080836040516020016125b7919061418e565b6040516020818303038152906040528051906020012090506125d76115e8565b73ffffffffffffffffffffffffffffffffffffffff166126008483612b7590919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff161491505092915050565b60606000821415612668576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506127c8565b600082905060005b6000821461269a578080612683906149e2565b915050600a8261269391906147f3565b9150612670565b60008167ffffffffffffffff8111156126dc577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561270e5781602001600182028036833780820191505090505b5090505b600085146127c157600182612727919061487e565b9150600a856127369190614a63565b6030612742919061479d565b60f81b81838151811061277e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127ba91906147f3565b9450612712565b8093505050505b919050565b600081836040516020016127e292919061416a565b60405160208183030381529060405280519060200120905092915050565b600061280d838386612b9c565b90509392505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561294b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612942906143ed565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a3c9190614230565b60405180910390a3505050565b612a5484848461233c565b612a6084848484612bb3565b612a9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a969061432d565b60405180910390fd5b50505050565b6060600f8054612ab49061497f565b80601f0160208091040260200160405190810160405280929190818152602001828054612ae09061497f565b8015612b2d5780601f10612b0257610100808354040283529160200191612b2d565b820191906000526020600020905b815481529060010190602001808311612b1057829003601f168201915b5050505050905090565b6001816000016000828254019250508190555050565b612b67828260405180602001604052806000815250612d4a565b5050565b505050565b505050565b6000806000612b848585612da5565b91509150612b9181612e28565b819250505092915050565b600082612ba98584613179565b1490509392505050565b6000612bd48473ffffffffffffffffffffffffffffffffffffffff16613214565b15612d3d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bfd61216f565b8786866040518563ffffffff1660e01b8152600401612c1f94939291906141e4565b602060405180830381600087803b158015612c3957600080fd5b505af1925050508015612c6a57506040513d601f19601f82011682018060405250810190612c6791906139f6565b60015b612ced573d8060008114612c9a576040519150601f19603f3d011682016040523d82523d6000602084013e612c9f565b606091505b50600081511415612ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cdc9061432d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d42565b600190505b949350505050565b612d548383613237565b612d616000848484612bb3565b612da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d979061432d565b60405180910390fd5b505050565b600080604183511415612de75760008060006020860151925060408601519150606086015160001a9050612ddb87828585613411565b94509450505050612e21565b604083511415612e18576000806020850151915060408501519050612e0d86838361351e565b935093505050612e21565b60006002915091505b9250929050565b60006004811115612e62577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612e9b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612ea657613176565b60016004811115612ee0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612f19577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f51906142cd565b60405180910390fd5b60026004811115612f94577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612fcd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561300e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130059061430d565b60405180910390fd5b60036004811115613048577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613081577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156130c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b99061442d565b60405180910390fd5b6004808111156130fb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613134577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316c906144ed565b60405180910390fd5b5b50565b60008082905060005b84518110156132095760008582815181106131c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116131e8576131e1838261357d565b92506131f5565b6131f2818461357d565b92505b508080613201906149e2565b915050613182565b508091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156132a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329e9061452d565b60405180910390fd5b6132b081612103565b156132f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132e7906143ad565b60405180910390fd5b6132fc60008383612b6b565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461334c919061479d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461340d60008383612b70565b5050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561344c576000600391509150613515565b601b8560ff16141580156134645750601c8560ff1614155b15613476576000600491509150613515565b60006001878787876040516000815260200160405260405161349b9493929190614266565b6020604051602081039080840390855afa1580156134bd573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561350c57600060019250925050613515565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c613561919061479d565b905061356f87828885613411565b935093505050935093915050565b600082600052816020526040600020905092915050565b8280546135a09061497f565b90600052602060002090601f0160209004810192826135c25760008555613609565b82601f106135db57805160ff1916838001178555613609565b82800160010185558215613609579182015b828111156136085782518255916020019190600101906135ed565b5b509050613616919061361a565b5090565b5b8082111561363357600081600090555060010161361b565b5090565b600061364a613645846146ed565b6146c8565b90508281526020810184848401111561366257600080fd5b61366d84828561493d565b509392505050565b60006136886136838461471e565b6146c8565b9050828152602081018484840111156136a057600080fd5b6136ab84828561493d565b509392505050565b6000813590506136c2816152a5565b92915050565b60008083601f8401126136da57600080fd5b8235905067ffffffffffffffff8111156136f357600080fd5b60208301915083602082028301111561370b57600080fd5b9250929050565b600081359050613721816152bc565b92915050565b600081359050613736816152d3565b92915050565b60008151905061374b816152d3565b92915050565b600082601f83011261376257600080fd5b8135613772848260208601613637565b91505092915050565b600082601f83011261378c57600080fd5b813561379c848260208601613675565b91505092915050565b6000813590506137b4816152ea565b92915050565b6000602082840312156137cc57600080fd5b60006137da848285016136b3565b91505092915050565b600080604083850312156137f657600080fd5b6000613804858286016136b3565b9250506020613815858286016136b3565b9150509250929050565b60008060006060848603121561383457600080fd5b6000613842868287016136b3565b9350506020613853868287016136b3565b9250506040613864868287016137a5565b9150509250925092565b6000806000806080858703121561388457600080fd5b6000613892878288016136b3565b94505060206138a3878288016136b3565b93505060406138b4878288016137a5565b925050606085013567ffffffffffffffff8111156138d157600080fd5b6138dd87828801613751565b91505092959194509250565b600080604083850312156138fc57600080fd5b600061390a858286016136b3565b925050602061391b85828601613712565b9150509250929050565b6000806040838503121561393857600080fd5b6000613946858286016136b3565b9250506020613957858286016137a5565b9150509250929050565b6000806000806060858703121561397757600080fd5b6000613985878288016136b3565b9450506020613996878288016137a5565b935050604085013567ffffffffffffffff8111156139b357600080fd5b6139bf878288016136c8565b925092505092959194509250565b6000602082840312156139df57600080fd5b60006139ed84828501613727565b91505092915050565b600060208284031215613a0857600080fd5b6000613a168482850161373c565b91505092915050565b600060208284031215613a3157600080fd5b600082013567ffffffffffffffff811115613a4b57600080fd5b613a578482850161377b565b91505092915050565b600060208284031215613a7257600080fd5b6000613a80848285016137a5565b91505092915050565b60008060008060608587031215613a9f57600080fd5b6000613aad878288016137a5565b9450506020613abe878288016137a5565b935050604085013567ffffffffffffffff811115613adb57600080fd5b613ae7878288016136c8565b925092505092959194509250565b600080600060608486031215613b0a57600080fd5b6000613b18868287016137a5565b9350506020613b29868287016137a5565b925050604084013567ffffffffffffffff811115613b4657600080fd5b613b5286828701613751565b9150509250925092565b613b65816148b2565b82525050565b613b7c613b77826148b2565b614a2b565b82525050565b613b8b816148c4565b82525050565b613b9a816148d0565b82525050565b613bb1613bac826148d0565b614a3d565b82525050565b6000613bc28261474f565b613bcc8185614765565b9350613bdc81856020860161494c565b613be581614b50565b840191505092915050565b6000613bfb8261475a565b613c058185614781565b9350613c1581856020860161494c565b613c1e81614b50565b840191505092915050565b6000613c348261475a565b613c3e8185614792565b9350613c4e81856020860161494c565b80840191505092915050565b6000613c67601883614781565b9150613c7282614b6e565b602082019050919050565b6000613c8a601383614781565b9150613c9582614b97565b602082019050919050565b6000613cad601f83614781565b9150613cb882614bc0565b602082019050919050565b6000613cd0601c83614792565b9150613cdb82614be9565b601c82019050919050565b6000613cf3603283614781565b9150613cfe82614c12565b604082019050919050565b6000613d16602683614781565b9150613d2182614c61565b604082019050919050565b6000613d39601583614781565b9150613d4482614cb0565b602082019050919050565b6000613d5c602583614781565b9150613d6782614cd9565b604082019050919050565b6000613d7f601c83614781565b9150613d8a82614d28565b602082019050919050565b6000613da2602483614781565b9150613dad82614d51565b604082019050919050565b6000613dc5601983614781565b9150613dd082614da0565b602082019050919050565b6000613de8601183614781565b9150613df382614dc9565b602082019050919050565b6000613e0b602283614781565b9150613e1682614df2565b604082019050919050565b6000613e2e602c83614781565b9150613e3982614e41565b604082019050919050565b6000613e51601283614781565b9150613e5c82614e90565b602082019050919050565b6000613e74603883614781565b9150613e7f82614eb9565b604082019050919050565b6000613e97602a83614781565b9150613ea282614f08565b604082019050919050565b6000613eba602983614781565b9150613ec582614f57565b604082019050919050565b6000613edd602283614781565b9150613ee882614fa6565b604082019050919050565b6000613f00601583614781565b9150613f0b82614ff5565b602082019050919050565b6000613f23602083614781565b9150613f2e8261501e565b602082019050919050565b6000613f46602c83614781565b9150613f5182615047565b604082019050919050565b6000613f69602083614781565b9150613f7482615096565b602082019050919050565b6000613f8c602f83614781565b9150613f97826150bf565b604082019050919050565b6000613faf602183614781565b9150613fba8261510e565b604082019050919050565b6000613fd2600083614776565b9150613fdd8261515d565b600082019050919050565b6000613ff5603183614781565b915061400082615160565b604082019050919050565b6000614018601783614781565b9150614023826151af565b602082019050919050565b600061403b600d83614781565b9150614046826151d8565b602082019050919050565b600061405e601483614781565b915061406982615201565b602082019050919050565b6000614081601883614781565b915061408c8261522a565b602082019050919050565b60006140a4600e83614781565b91506140af82615253565b602082019050919050565b60006140c7601383614781565b91506140d28261527c565b602082019050919050565b6140e681614926565b82525050565b6140fd6140f882614926565b614a59565b82525050565b61410c81614930565b82525050565b600061411e8284613b6b565b60148201915081905092915050565b60006141398286613b6b565b60148201915061414982856140ec565b60208201915061415982846140ec565b602082019150819050949350505050565b60006141768285613c29565b91506141828284613c29565b91508190509392505050565b600061419982613cc3565b91506141a58284613ba0565b60208201915081905092915050565b60006141bf82613fc5565b9150819050919050565b60006020820190506141de6000830184613b5c565b92915050565b60006080820190506141f96000830187613b5c565b6142066020830186613b5c565b61421360408301856140dd565b81810360608301526142258184613bb7565b905095945050505050565b60006020820190506142456000830184613b82565b92915050565b60006020820190506142606000830184613b91565b92915050565b600060808201905061427b6000830187613b91565b6142886020830186614103565b6142956040830185613b91565b6142a26060830184613b91565b95945050505050565b600060208201905081810360008301526142c58184613bf0565b905092915050565b600060208201905081810360008301526142e681613c5a565b9050919050565b6000602082019050818103600083015261430681613c7d565b9050919050565b6000602082019050818103600083015261432681613ca0565b9050919050565b6000602082019050818103600083015261434681613ce6565b9050919050565b6000602082019050818103600083015261436681613d09565b9050919050565b6000602082019050818103600083015261438681613d2c565b9050919050565b600060208201905081810360008301526143a681613d4f565b9050919050565b600060208201905081810360008301526143c681613d72565b9050919050565b600060208201905081810360008301526143e681613d95565b9050919050565b6000602082019050818103600083015261440681613db8565b9050919050565b6000602082019050818103600083015261442681613ddb565b9050919050565b6000602082019050818103600083015261444681613dfe565b9050919050565b6000602082019050818103600083015261446681613e21565b9050919050565b6000602082019050818103600083015261448681613e44565b9050919050565b600060208201905081810360008301526144a681613e67565b9050919050565b600060208201905081810360008301526144c681613e8a565b9050919050565b600060208201905081810360008301526144e681613ead565b9050919050565b6000602082019050818103600083015261450681613ed0565b9050919050565b6000602082019050818103600083015261452681613ef3565b9050919050565b6000602082019050818103600083015261454681613f16565b9050919050565b6000602082019050818103600083015261456681613f39565b9050919050565b6000602082019050818103600083015261458681613f5c565b9050919050565b600060208201905081810360008301526145a681613f7f565b9050919050565b600060208201905081810360008301526145c681613fa2565b9050919050565b600060208201905081810360008301526145e681613fe8565b9050919050565b600060208201905081810360008301526146068161400b565b9050919050565b600060208201905081810360008301526146268161402e565b9050919050565b6000602082019050818103600083015261464681614051565b9050919050565b6000602082019050818103600083015261466681614074565b9050919050565b6000602082019050818103600083015261468681614097565b9050919050565b600060208201905081810360008301526146a6816140ba565b9050919050565b60006020820190506146c260008301846140dd565b92915050565b60006146d26146e3565b90506146de82826149b1565b919050565b6000604051905090565b600067ffffffffffffffff82111561470857614707614b21565b5b61471182614b50565b9050602081019050919050565b600067ffffffffffffffff82111561473957614738614b21565b5b61474282614b50565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006147a882614926565b91506147b383614926565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147e8576147e7614a94565b5b828201905092915050565b60006147fe82614926565b915061480983614926565b92508261481957614818614ac3565b5b828204905092915050565b600061482f82614926565b915061483a83614926565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561487357614872614a94565b5b828202905092915050565b600061488982614926565b915061489483614926565b9250828210156148a7576148a6614a94565b5b828203905092915050565b60006148bd82614906565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561496a57808201518184015260208101905061494f565b83811115614979576000848401525b50505050565b6000600282049050600182168061499757607f821691505b602082108114156149ab576149aa614af2565b5b50919050565b6149ba82614b50565b810181811067ffffffffffffffff821117156149d9576149d8614b21565b5b80604052505050565b60006149ed82614926565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a2057614a1f614a94565b5b600182019050919050565b6000614a3682614a47565b9050919050565b6000819050919050565b6000614a5282614b61565b9050919050565b6000819050919050565b6000614a6e82614926565b9150614a7983614926565b925082614a8957614a88614ac3565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f70686173652031206e6f7420656e61626c656400000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6d6178206d696e74656420666f722077616c6c65740000000000000000000000600082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f65786365656473206d617820737570706c790000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f6578636565647320616c6c6f776564206d696e74730000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f7075626c6963206d696e74206e6f7420656e61626c6564000000000000000000600082015250565b7f696e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b7f6578636565647320636c61696d20737570706c79000000000000000000000000600082015250565b7f4661696c656420746f2073656e6420746f206f776e65722e0000000000000000600082015250565b7f616c7265616479206d696e746564000000000000000000000000000000000000600082015250565b7f496e73756666696369656e742066756e64732e00000000000000000000000000600082015250565b6152ae816148b2565b81146152b957600080fd5b50565b6152c5816148c4565b81146152d057600080fd5b50565b6152dc816148da565b81146152e757600080fd5b50565b6152f381614926565b81146152fe57600080fd5b5056fea2646970667358221220e5c7d0d80ccfe2900fd38516d1957e61fe4d0b93554a8832b2539d6564320d2764736f6c63430008040033

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

90fb7cca7c29763af779f6a16a7a16a39c09e6bd49888eaf02796224a3833749a9d22ddfbd7712eabad106fc30a8a3136d093898331da30acb04c95ae3c05c84

-----Decoded View---------------
Arg [0] : _claimRoot (bytes32): 0x90fb7cca7c29763af779f6a16a7a16a39c09e6bd49888eaf02796224a3833749
Arg [1] : _mintRoot (bytes32): 0xa9d22ddfbd7712eabad106fc30a8a3136d093898331da30acb04c95ae3c05c84

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 90fb7cca7c29763af779f6a16a7a16a39c09e6bd49888eaf02796224a3833749
Arg [1] : a9d22ddfbd7712eabad106fc30a8a3136d093898331da30acb04c95ae3c05c84


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Chippy's World is a collection of 2,500 Chippys focused around storytelling, community, and positive vibes by Zain GazianiTo learn all about Chippy's World: https://medium.com/@chippysworldnft/chippys-world-everything-you-need-to-know-3f2b8365ee49

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.