ETH Price: $2,791.62 (+6.35%)
Gas: 1.75 Gwei

Token

Fishbowl Heads (FBH)
 

Overview

Max Total Supply

1,500 FBH

Holders

702

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 FBH
0x00522c9bbfbea41c9b045f27c207f91f026863da
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
FishbowlHeads

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC777/IERC777Recipient.sol";
import "@openzeppelin/contracts/token/ERC777/IERC777.sol";
import "@openzeppelin/contracts/utils/introspection/IERC1820Registry.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interfaces/IRNG.sol";

contract FishbowlHeads is ERC721Enumerable, Ownable, ReentrancyGuard, IERC777Recipient {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;

    using Strings for uint256;

    uint256   public constant _maxSupply        = 9999;
    uint256   public constant _maxMintCount     = 12;
    uint256   public constant _maxPresaleCount  = 3;
    uint256   public constant _maxECCount       = 2;
    uint256   public _mintPrice                 = 0.0369 ether;           //36900000000000000 wei
    uint256   public _discMintPrice             = 0.0300 ether;           //30000000000000000 wei
    uint256   public _dustPrice                 = 420 ether;
    uint256   public _ecMaxSupply               = 2000;
    uint256   public _ecSupplyCount             = 0;
    bool      public _publicSaleIsActive        = false;
    bool      public _presaleIsActive           = false;
    bool      public _dustMintActive            = false;
    bytes32   public _reqID                     = bytes32(0);
    IERC721   public _etherCards                = IERC721(0x97CA7FE0b0288f5EB85F386FeD876618FB9b8Ab8); //EC contract address
    IRNG      public _iRnd                      = IRNG(0x72170F577F3B221b3478E09ccD5323445a8460d7); //EC Randomiser contract address
    address   public _dustToken;

    bool    private _randomReceived       = false;
    uint256 private _teamTokenCount       = 24;
    uint256 private _randomCL             = 0;
    address private _signer               = address(0);
    address private _multiSig             = address(0);
    string  private _tokenPreRevealURI    = '';
    string  private _tokenRevealedBaseURI = '';

    mapping(address => uint) public _presaleMintCount;

    bytes32 constant private TOKENS_RECIPIENT_INTERFACE_HASH = keccak256("ERC777TokensRecipient");
    IERC1820Registry internal constant _ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);

    event Receive(uint256);
    event Fallback(bytes,uint256);
    event PresaleEvent(uint256 quantity, uint256 value, bool ambassador);
    event ECEvent(uint256 quantity, uint256 value);
    event PublicEvent(uint256 quantity, uint256 value);
    event WithdrawEvent(uint256 value);
    event DustEvent(uint256 quantity, uint256 value);

    constructor(address signer, address multiSig, address dust) ERC721("Fishbowl Heads", "FBH") {
      _signer = signer;
      _multiSig = multiSig;
      _dustToken = dust;
      _ERC1820_REGISTRY.setInterfaceImplementer(address(this), TOKENS_RECIPIENT_INTERFACE_HASH, address(this));
    }

    function setRng(IRNG rnd) external onlyOwner {
      _iRnd = rnd;
    }

    function setEC(IERC721 ec) external onlyOwner {
      _etherCards = ec;
    }

    function startPresale(bool state) external onlyOwner {
      _presaleIsActive = state;
    }


    function MintFBH (uint256 mintCount) internal {
        require(mintCount > 0, "No. of tokens <= zero");
        require(_tokenIds.current() + mintCount <= _maxSupply, "Only 9999 can be minted");

        for (uint256 i = 0; i < mintCount; i++) {
          _tokenIds.increment();
          uint256 newItemId = _tokenIds.current();
          _safeMint(msg.sender, newItemId);
      }
    }

    function presaleMint(uint256 tokenCount, bytes memory signature, bool ambassador) public payable {
      require(!(_publicSaleIsActive), "Public Sale is active");
      require(_presaleIsActive, "Pre-Sale not active yet");
      require(verify(msg.sender, signature, ambassador), "You are not on the Presale List");
      if(!(ambassador)) {
        require(_mintPrice * tokenCount <= msg.value, "Incorrect Ether value sent");
      }
      else{
        require(_discMintPrice * tokenCount <= msg.value, "Incorrect discount Ether value sent");
      }

      _presaleMintCount[msg.sender] += tokenCount;
      require(_presaleMintCount[msg.sender] <= _maxPresaleCount, "Exceeds max allowed limit");

      MintFBH(tokenCount);
      (bool sent, bytes memory data) = payable(_multiSig).call{value: msg.value}("");
      require(sent, "Failed to send Ether");
      emit PresaleEvent(tokenCount, msg.value, ambassador);
    }

    function ecMint(uint tokenCount) public payable {
      require(!(_publicSaleIsActive), "Public Sale is active");
      require(_presaleIsActive, "Pre-Sale not active yett");
      require(_etherCards.balanceOf(msg.sender) > 0, "You are not an Ether Card holder.");
      require(_mintPrice * tokenCount <= msg.value, "Incorrect Ether value sent.");

      _presaleMintCount[msg.sender] += tokenCount;
      _ecSupplyCount += tokenCount;
      require(_presaleMintCount[msg.sender] <= _maxECCount, "Exceeds max allowed limit");
      require(_ecSupplyCount < _ecMaxSupply, "EC max supply reached");

      MintFBH(tokenCount);
      (bool sent, bytes memory data) = payable(_multiSig).call{value: msg.value}("");
      require(sent, "Failed to send Ether");
      emit ECEvent(tokenCount, msg.value);
    }

    function startPublicSale(bool state) external onlyOwner {
      _publicSaleIsActive = state;
    }

    function publicMint(uint256 tokenCount) public payable {
      require(_publicSaleIsActive, "Public minting not active yet");
      require(!(_presaleIsActive), "Pre-Sale is active");
      require(tokenCount <= _maxMintCount, "Only 12 tokens can be minted per transaction");
      require(_mintPrice * tokenCount == msg.value, "Incorrect Ether value sent");

      MintFBH(tokenCount);
      (bool sent, bytes memory data) = payable(_multiSig).call{value: msg.value}("");
      require(sent, "Failed to send Ether");
      emit PublicEvent(tokenCount, msg.value);
    }

    function reserveMint(uint256 tokenCount) external onlyOwner {
        MintFBH(tokenCount);
    }

    function verify(address signedAddr, bytes memory signature, bool role) internal  view returns (bool) {
        require(signedAddr != address(0), "INVALID_SIGNER");
        bytes32 hash = keccak256(abi.encode(signedAddr, role));
        require (signature.length == 65,"Invalid signature length");
        bytes32 sigR;
        bytes32 sigS;
        uint8   sigV;
        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        assembly {
            sigR := mload(add(signature, 0x20))
            sigS := mload(add(signature, 0x40))
            sigV := byte(0, mload(add(signature, 0x60)))
        }

        bytes32 data =  keccak256(
            abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)
        );
        address recovered = ecrecover(
                data,
                sigV,
                sigR,
                sigS
            );

        return
            _signer == recovered;
    }

    function startDustMint(bool state) external onlyOwner {
        _dustMintActive = state;
    }

    function mintFBH_DUST(address dustMinter) internal {
        _tokenIds.increment();
        uint256 newItemId = _tokenIds.current();
        _safeMint(dustMinter, newItemId);
    }

    function tokensReceived(
        address ,
        address from,
        address ,
        uint256 amount,
        bytes calldata userData,
        bytes calldata
      ) external override nonReentrant {

        require(_dustMintActive, "Dust minting not active yet");
        require(msg.sender == _dustToken, "Unauthorised");
        require(_etherCards.balanceOf(from) > 0, "You are not an Ether Card holder.");

        uint256 tokenCount = amount/_dustPrice;
        _presaleMintCount[from] += tokenCount;
        _ecSupplyCount += tokenCount;
        require(_presaleMintCount[from] <= _maxECCount, "Exceeds max allowed limit");
        require(_ecSupplyCount < _ecMaxSupply, "EC max supply reached");
        require(tokenCount > 0, "No. of tokens <= zero");
        require(_tokenIds.current() + tokenCount <= _maxSupply, "Only 9999 can be minted");

        mintFBH_DUST(from);
        if(tokenCount == _maxECCount) {
            mintFBH_DUST(from);
        }
        IERC777(_dustToken).send(owner(), amount, bytes("Dust Minting"));
        emit DustEvent(tokenCount, amount);
    }

    function setPrice(uint256 newPrice) external onlyOwner {
        _mintPrice = newPrice;
    }

    function setDiscPrice(uint256 newPrice) external onlyOwner {
        _discMintPrice = newPrice;
    }

    function setDustPrice(uint256 newDustPrice) external onlyOwner {
        _dustPrice = newDustPrice;
    }

    function withdraw() external onlyOwner {
        uint256 amt = address(this).balance;
        (bool sent, bytes memory data) = payable(_multiSig).call{value: amt}("");
        require(sent, "Failed to send Ether");
        emit WithdrawEvent(amt);
    }

    function setPreRevealURI(string calldata URI) external onlyOwner {
        _tokenPreRevealURI = URI;
     }

    function setRevealBaseURI(string calldata revealedBaseURI) external onlyOwner {
        _tokenRevealedBaseURI = revealedBaseURI;
    }

    function offsetTokenURI(uint256 tokenId) internal view returns(uint256) {
      if (tokenId <= _teamTokenCount) {
          return tokenId;
      }
      uint normal_tokenId = tokenId - (_teamTokenCount+1);
      uint normal_supply = totalSupply() - _teamTokenCount;
      uint new_normal = (normal_tokenId + _randomCL) % normal_supply;

      return new_normal + (_teamTokenCount+1);
    }

    function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) {
        require(_exists(tokenId), 'Token does not exist');
        string memory revealedBaseURI = _tokenRevealedBaseURI;
        return bytes(revealedBaseURI).length > 0 ?
        string(abi.encodePacked(revealedBaseURI, offsetTokenURI(tokenId).toString())) :
        _tokenPreRevealURI;
    }

    function setMultisig(address safe) external onlyOwner {
        _multiSig = safe;
    }

    function setSigner(address signer) external onlyOwner {
        _signer = signer;
    }

    function setRandomiser() external onlyOwner {
       _reqID = _iRnd.requestRandomNumberWithCallback();
    }

    function process(uint256 random, bytes32 reqID) external {
        require(msg.sender == address(_iRnd),"Unauthorised RNG");
        require(_reqID == reqID, "Incorrect request ID sent");
        require(!(_randomReceived), "Random No. already received");
        _randomCL = random/2;
        _randomReceived = true;
    }

    // Function to receive Ether. msg.data must be empty
    receive() external payable {
        emit Receive(msg.value);
    }

    // Fallback function is called when msg.data is not empty
    fallback() external payable {
        emit Fallback(msg.data, msg.value);
    }

    // --- recovery of tokens sent to this address

    function retrieveERC20(address _tracker, uint256 amount) external onlyOwner {
        IERC20(_tracker).transfer(msg.sender, amount);
    }

    function retrieve721(address _tracker, uint256 id) external onlyOwner {
        IERC721(_tracker).transferFrom(address(this), msg.sender, id);
    }
}

File 2 of 20 : IRNG.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

abstract contract IRNG {

    function requestRandomNumber() external virtual returns (bytes32 requestId) ;

    function requestRandomNumberWithCallback( ) external virtual returns (bytes32) ;

    function isRequestComplete(bytes32 requestId) external virtual view returns (bool isCompleted) ;

    function randomNumber(bytes32 requestId) external view virtual returns (uint256 randomNum) ;

}

File 3 of 20 : IERC1820Registry.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the global ERC1820 Registry, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
 * implementers for interfaces in this registry, as well as query support.
 *
 * Implementers may be shared by multiple accounts, and can also implement more
 * than a single interface for each account. Contracts can implement interfaces
 * for themselves, but externally-owned accounts (EOA) must delegate this to a
 * contract.
 *
 * {IERC165} interfaces can also be queried via the registry.
 *
 * For an in-depth explanation and source code analysis, see the EIP text.
 */
interface IERC1820Registry {
    /**
     * @dev Sets `newManager` as the manager for `account`. A manager of an
     * account is able to set interface implementers for it.
     *
     * By default, each account is its own manager. Passing a value of `0x0` in
     * `newManager` will reset the manager to this initial state.
     *
     * Emits a {ManagerChanged} event.
     *
     * Requirements:
     *
     * - the caller must be the current manager for `account`.
     */
    function setManager(address account, address newManager) external;

    /**
     * @dev Returns the manager for `account`.
     *
     * See {setManager}.
     */
    function getManager(address account) external view returns (address);

    /**
     * @dev Sets the `implementer` contract as ``account``'s implementer for
     * `interfaceHash`.
     *
     * `account` being the zero address is an alias for the caller's address.
     * The zero address can also be used in `implementer` to remove an old one.
     *
     * See {interfaceHash} to learn how these are created.
     *
     * Emits an {InterfaceImplementerSet} event.
     *
     * Requirements:
     *
     * - the caller must be the current manager for `account`.
     * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not
     * end in 28 zeroes).
     * - `implementer` must implement {IERC1820Implementer} and return true when
     * queried for support, unless `implementer` is the caller. See
     * {IERC1820Implementer-canImplementInterfaceForAddress}.
     */
    function setInterfaceImplementer(
        address account,
        bytes32 _interfaceHash,
        address implementer
    ) external;

    /**
     * @dev Returns the implementer of `interfaceHash` for `account`. If no such
     * implementer is registered, returns the zero address.
     *
     * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28
     * zeroes), `account` will be queried for support of it.
     *
     * `account` being the zero address is an alias for the caller's address.
     */
    function getInterfaceImplementer(address account, bytes32 _interfaceHash) external view returns (address);

    /**
     * @dev Returns the interface hash for an `interfaceName`, as defined in the
     * corresponding
     * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].
     */
    function interfaceHash(string calldata interfaceName) external pure returns (bytes32);

    /**
     * @notice Updates the cache with whether the contract implements an ERC165 interface or not.
     * @param account Address of the contract for which to update the cache.
     * @param interfaceId ERC165 interface for which to update the cache.
     */
    function updateERC165Cache(address account, bytes4 interfaceId) external;

    /**
     * @notice Checks whether a contract implements an ERC165 interface or not.
     * If the result is not cached a direct lookup on the contract address is performed.
     * If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling
     * {updateERC165Cache} with the contract address.
     * @param account Address of the contract to check.
     * @param interfaceId ERC165 interface to check.
     * @return True if `account` implements `interfaceId`, false otherwise.
     */
    function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);

    /**
     * @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache.
     * @param account Address of the contract to check.
     * @param interfaceId ERC165 interface to check.
     * @return True if `account` implements `interfaceId`, false otherwise.
     */
    function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool);

    event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);

    event ManagerChanged(address indexed account, address indexed newManager);
}

File 4 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT

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);
}

File 5 of 20 : ERC165.sol
// SPDX-License-Identifier: MIT

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 6 of 20 : Strings.sol
// SPDX-License-Identifier: MIT

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 7 of 20 : Counters.sol
// SPDX-License-Identifier: MIT

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 8 of 20 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 9 of 20 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 20 : IERC777Recipient.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC777TokensRecipient standard as defined in the EIP.
 *
 * Accounts can be notified of {IERC777} tokens being sent to them by having a
 * contract implement this interface (contract holders can be their own
 * implementer) and registering it on the
 * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].
 *
 * See {IERC1820Registry} and {ERC1820Implementer}.
 */
interface IERC777Recipient {
    /**
     * @dev Called by an {IERC777} token contract whenever tokens are being
     * moved or created into a registered account (`to`). The type of operation
     * is conveyed by `from` being the zero address or not.
     *
     * This call occurs _after_ the token contract's state is updated, so
     * {IERC777-balanceOf}, etc., can be used to query the post-operation state.
     *
     * This function may revert to prevent the operation from being executed.
     */
    function tokensReceived(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes calldata userData,
        bytes calldata operatorData
    ) external;
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC777Token standard as defined in the EIP.
 *
 * This contract uses the
 * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let
 * token holders and recipients react to token movements by using setting implementers
 * for the associated interfaces in said registry. See {IERC1820Registry} and
 * {ERC1820Implementer}.
 */
interface IERC777 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the smallest part of the token that is not divisible. This
     * means all token operations (creation, movement and destruction) must have
     * amounts that are a multiple of this number.
     *
     * For most token contracts, this value will equal 1.
     */
    function granularity() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * If send or receive hooks are registered for the caller and `recipient`,
     * the corresponding functions will be called with `data` and empty
     * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.
     *
     * Emits a {Sent} event.
     *
     * Requirements
     *
     * - the caller must have at least `amount` tokens.
     * - `recipient` cannot be the zero address.
     * - if `recipient` is a contract, it must implement the {IERC777Recipient}
     * interface.
     */
    function send(
        address recipient,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev Destroys `amount` tokens from the caller's account, reducing the
     * total supply.
     *
     * If a send hook is registered for the caller, the corresponding function
     * will be called with `data` and empty `operatorData`. See {IERC777Sender}.
     *
     * Emits a {Burned} event.
     *
     * Requirements
     *
     * - the caller must have at least `amount` tokens.
     */
    function burn(uint256 amount, bytes calldata data) external;

    /**
     * @dev Returns true if an account is an operator of `tokenHolder`.
     * Operators can send and burn tokens on behalf of their owners. All
     * accounts are their own operator.
     *
     * See {operatorSend} and {operatorBurn}.
     */
    function isOperatorFor(address operator, address tokenHolder) external view returns (bool);

    /**
     * @dev Make an account an operator of the caller.
     *
     * See {isOperatorFor}.
     *
     * Emits an {AuthorizedOperator} event.
     *
     * Requirements
     *
     * - `operator` cannot be calling address.
     */
    function authorizeOperator(address operator) external;

    /**
     * @dev Revoke an account's operator status for the caller.
     *
     * See {isOperatorFor} and {defaultOperators}.
     *
     * Emits a {RevokedOperator} event.
     *
     * Requirements
     *
     * - `operator` cannot be calling address.
     */
    function revokeOperator(address operator) external;

    /**
     * @dev Returns the list of default operators. These accounts are operators
     * for all token holders, even if {authorizeOperator} was never called on
     * them.
     *
     * This list is immutable, but individual holders may revoke these via
     * {revokeOperator}, in which case {isOperatorFor} will return false.
     */
    function defaultOperators() external view returns (address[] memory);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient`. The caller must
     * be an operator of `sender`.
     *
     * If send or receive hooks are registered for `sender` and `recipient`,
     * the corresponding functions will be called with `data` and
     * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.
     *
     * Emits a {Sent} event.
     *
     * Requirements
     *
     * - `sender` cannot be the zero address.
     * - `sender` must have at least `amount` tokens.
     * - the caller must be an operator for `sender`.
     * - `recipient` cannot be the zero address.
     * - if `recipient` is a contract, it must implement the {IERC777Recipient}
     * interface.
     */
    function operatorSend(
        address sender,
        address recipient,
        uint256 amount,
        bytes calldata data,
        bytes calldata operatorData
    ) external;

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the total supply.
     * The caller must be an operator of `account`.
     *
     * If a send hook is registered for `account`, the corresponding function
     * will be called with `data` and `operatorData`. See {IERC777Sender}.
     *
     * Emits a {Burned} event.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     * - the caller must be an operator for `account`.
     */
    function operatorBurn(
        address account,
        uint256 amount,
        bytes calldata data,
        bytes calldata operatorData
    ) external;

    event Sent(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256 amount,
        bytes data,
        bytes operatorData
    );

    event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData);

    event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData);

    event AuthorizedOperator(address indexed operator, address indexed tokenHolder);

    event RevokedOperator(address indexed operator, address indexed tokenHolder);
}

File 12 of 20 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 13 of 20 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 14 of 20 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 15 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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 16 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT

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 17 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT

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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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);
    }

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

    /**
     * @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 of token that is not own");
        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);
    }

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

File 18 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 19 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"multiSig","type":"address"},{"internalType":"address","name":"dust","type":"address"}],"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":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"DustEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ECEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Fallback","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":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bool","name":"ambassador","type":"bool"}],"name":"PresaleEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"PublicEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Receive","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"WithdrawEvent","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"_discMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_dustMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_dustPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_dustToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ecMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ecSupplyCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_etherCards","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_iRnd","outputs":[{"internalType":"contract IRNG","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxECCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxPresaleCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_presaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_presaleMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_publicSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_reqID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":"tokenCount","type":"uint256"}],"name":"ecMint","outputs":[],"stateMutability":"payable","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":[],"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":[{"internalType":"uint256","name":"tokenCount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bool","name":"ambassador","type":"bool"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"random","type":"uint256"},{"internalType":"bytes32","name":"reqID","type":"bytes32"}],"name":"process","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenCount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenCount","type":"uint256"}],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tracker","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"retrieve721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tracker","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"retrieveERC20","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":"uint256","name":"newPrice","type":"uint256"}],"name":"setDiscPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newDustPrice","type":"uint256"}],"name":"setDustPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"ec","type":"address"}],"name":"setEC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"safe","type":"address"}],"name":"setMultisig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setPreRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setRandomiser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"revealedBaseURI","type":"string"}],"name":"setRevealBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IRNG","name":"rnd","type":"address"}],"name":"setRng","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"startDustMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"startPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"startPublicSale","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"tokensReceived","outputs":[],"stateMutability":"nonpayable","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"},{"stateMutability":"payable","type":"receive"}]

6683185ac0364000600d55666a94d74f430000600e556816c4abbebea0100000600f556107d0601055600060118190556012805462ffffff191690556013819055601480546001600160a01b03199081167397ca7fe0b0288f5eb85f386fed876618fb9b8ab8179091556015805482167372170f577f3b221b3478e09ccd5323445a8460d71790556016805460ff60a01b19169055601860178190558290556019805482169055601a8054909116905560a060408190526080829052620000ca91601b9190620002d4565b50604080516020810191829052600090819052620000eb91601c91620002d4565b50348015620000f957600080fd5b5060405162004114380380620041148339810160408190526200011c9162000397565b604080518082018252600e81526d46697368626f776c20486561647360901b60208083019182528351808501909452600384526208c84960eb1b9084015281519192916200016d91600091620002d4565b50805162000183906001906020840190620002d4565b505050620001a06200019a6200027e60201b60201c565b62000282565b6001600b55601980546001600160a01b038581166001600160a01b031992831617909255601a805485841690831617905560168054928416929091169190911790556040516329965a1d60e01b815230600482018190527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad24906329965a1d90606401600060405180830381600087803b1580156200025c57600080fd5b505af115801562000271573d6000803e3d6000fd5b505050505050506200041d565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002e290620003e0565b90600052602060002090601f01602090048101928262000306576000855562000351565b82601f106200032157805160ff191683800117855562000351565b8280016001018555821562000351579182015b828111156200035157825182559160200191906001019062000334565b506200035f92915062000363565b5090565b5b808211156200035f576000815560010162000364565b80516001600160a01b03811681146200039257600080fd5b919050565b600080600060608486031215620003ac578283fd5b620003b7846200037a565b9250620003c7602085016200037a565b9150620003d7604085016200037a565b90509250925092565b600181811c90821680620003f557607f821691505b602082108114156200041757634e487b7160e01b600052602260045260246000fd5b50919050565b613ce7806200042d6000396000f3fe6080604052600436106103845760003560e01c80636352211e116101d1578063a5b3abfb11610102578063c87b56dd116100a0578063f2fde38b1161006f578063f2fde38b14610a6e578063f301feaf14610a8e578063f3283fba14610aa4578063fd8da31314610ac4576103bf565b8063c87b56dd146109d0578063e985e9c5146109f0578063eb1a190e14610a39578063ece8ea4e14610a58576103bf565b8063b88d4fde116100dc578063b88d4fde14610950578063bb2e804714610970578063bc85db7514610990578063c1d7b6a8146109b0576103bf565b8063a5b3abfb14610908578063b57d14be14610928578063b888fa841461093b576103bf565b806387512b941161016f5780638e74955b116101495780638e74955b1461089357806391b7f5ed146108b357806395d89b41146108d3578063a22cb465146108e8576103bf565b806387512b94146108405780638d8bc8f0146108555780638da5cb5b14610875576103bf565b80636c19e783116101ab5780636c19e783146107d657806370a08231146107f657806370b5ca6014610816578063715018a61461082b576103bf565b80636352211e1461077c57806365feeafa1461079c5780636885c77b146107b6576103bf565b8063298eeaf4116102b65780633d64ac9b11610254578063497c00ae11610223578063497c00ae146107075780634cf97194146107275780634f6ccce71461074757806351cba34214610767576103bf565b80633d64ac9b1461068757806342842e0e146106a757806343037ef6146106c7578063448b1e60146106e7576103bf565b80632db11544116102905780632db11544146106295780632f745c591461063c5780633bd53d9d1461065c5780633ccfd60b14610672576103bf565b8063298eeaf4146105c95780632a85db55146105e95780632d81897b14610609576103bf565b80630ef5f1341161032357806318160ddd116102fd57806318160ddd1461056857806322bbcddf1461057d57806322f4596f1461059357806323b872dd146105a9576103bf565b80630ef5f134146104fb5780631342ff4c1461052857806317fd1e2f14610548576103bf565b8063041d25aa1161035f578063041d25aa1461046e57806306fdde0314610481578063081812fc146104a3578063095ea7b3146104db576103bf565b806223de29146103f357806301ffc9a7146104155780630387da421461044a576103bf565b366103bf576040513481527f49b4c3f4344f33413322c03885f90f29e906bd8eb0cb2c3d815ee1ad2b3c989c906020015b60405180910390a1005b7fce296c83131de720c3eb3df3b690fddd29d1f1045a652b3bac9743b6749808fa600036346040516103b593929190613975565b3480156103ff57600080fd5b5061041361040e3660046135ac565b610ada565b005b34801561042157600080fd5b506104356104303660046137ac565b610ef7565b60405190151581526020015b60405180910390f35b34801561045657600080fd5b50610460600d5481565b604051908152602001610441565b61041361047c366004613824565b610f22565b34801561048d57600080fd5b50610496611231565b60405161044191906139ad565b3480156104af57600080fd5b506104c36104be366004613824565b6112c3565b6040516001600160a01b039091168152602001610441565b3480156104e757600080fd5b506104136104f6366004613731565b611358565b34801561050757600080fd5b50610460610516366004613558565b601d6020526000908152604090205481565b34801561053457600080fd5b50610413610543366004613824565b61146e565b34801561055457600080fd5b50610413610563366004613731565b6114a4565b34801561057457600080fd5b50600854610460565b34801561058957600080fd5b5061046060115481565b34801561059f57600080fd5b5061046061270f81565b3480156105b557600080fd5b506104136105c436600461365a565b61154e565b3480156105d557600080fd5b506104136105e436600461375c565b61157f565b3480156105f557600080fd5b506104136106043660046137e4565b6115c5565b34801561061557600080fd5b506014546104c3906001600160a01b031681565b610413610637366004613824565b6115fb565b34801561064857600080fd5b50610460610657366004613731565b611812565b34801561066857600080fd5b50610460600f5481565b34801561067e57600080fd5b506104136118a8565b34801561069357600080fd5b506104136106a236600461383c565b61197a565b3480156106b357600080fd5b506104136106c236600461365a565b611a97565b3480156106d357600080fd5b506104136106e236600461375c565b611ab2565b3480156106f357600080fd5b50610413610702366004613824565b611af6565b34801561071357600080fd5b5061041361072236600461375c565b611b25565b34801561073357600080fd5b506012546104359062010000900460ff1681565b34801561075357600080fd5b50610460610762366004613824565b611b62565b34801561077357600080fd5b50610460600381565b34801561078857600080fd5b506104c3610797366004613824565b611c03565b3480156107a857600080fd5b506012546104359060ff1681565b3480156107c257600080fd5b506104136107d13660046137e4565b611c7a565b3480156107e257600080fd5b506104136107f1366004613558565b611cb0565b34801561080257600080fd5b50610460610811366004613558565b611cfc565b34801561082257600080fd5b50610413611d83565b34801561083757600080fd5b50610413611e3a565b34801561084c57600080fd5b50610460600c81565b34801561086157600080fd5b506016546104c3906001600160a01b031681565b34801561088157600080fd5b50600a546001600160a01b03166104c3565b34801561089f57600080fd5b506015546104c3906001600160a01b031681565b3480156108bf57600080fd5b506104136108ce366004613824565b611e70565b3480156108df57600080fd5b50610496611e9f565b3480156108f457600080fd5b50610413610903366004613704565b611eae565b34801561091457600080fd5b50610413610923366004613731565b611f73565b61041361093636600461385d565b612007565b34801561094757600080fd5b50610460600281565b34801561095c57600080fd5b5061041361096b36600461369a565b6122ec565b34801561097c57600080fd5b5061041361098b366004613558565b612324565b34801561099c57600080fd5b506104136109ab366004613824565b612370565b3480156109bc57600080fd5b506104136109cb366004613558565b61239f565b3480156109dc57600080fd5b506104966109eb366004613824565b6123eb565b3480156109fc57600080fd5b50610435610a0b366004613574565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a4557600080fd5b5060125461043590610100900460ff1681565b348015610a6457600080fd5b5061046060135481565b348015610a7a57600080fd5b50610413610a89366004613558565b6125ab565b348015610a9a57600080fd5b50610460600e5481565b348015610ab057600080fd5b50610413610abf366004613558565b612643565b348015610ad057600080fd5b5061046060105481565b6002600b541415610b325760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600b5560125462010000900460ff16610b8f5760405162461bcd60e51b815260206004820152601b60248201527f44757374206d696e74696e67206e6f74206163746976652079657400000000006044820152606401610b29565b6016546001600160a01b03163314610bd85760405162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5cd95960a21b6044820152606401610b29565b6014546040516370a0823160e01b81526001600160a01b03898116600483015260009216906370a082319060240160206040518083038186803b158015610c1e57600080fd5b505afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190613794565b11610c735760405162461bcd60e51b8152600401610b2990613a40565b6000600f5486610c839190613b56565b6001600160a01b0389166000908152601d6020526040812080549293508392909190610cb0908490613b3e565b925050819055508060116000828254610cc99190613b3e565b90915550506001600160a01b0388166000908152601d602052604090205460021015610d075760405162461bcd60e51b8152600401610b2990613ab6565b60105460115410610d525760405162461bcd60e51b81526020600482015260156024820152741150c81b585e081cdd5c1c1b1e481c995858da1959605a1b6044820152606401610b29565b60008111610d9a5760405162461bcd60e51b81526020600482015260156024820152744e6f2e206f6620746f6b656e73203c3d207a65726f60581b6044820152606401610b29565b61270f81610da7600c5490565b610db19190613b3e565b1115610df95760405162461bcd60e51b815260206004820152601760248201527613db9b1e480e4e4e4e4818d85b881899481b5a5b9d1959604a1b6044820152606401610b29565b610e028861268f565b6002811415610e1457610e148861268f565b6016546001600160a01b0316639bd9bbc6610e37600a546001600160a01b031690565b604080518082018252600c81526b44757374204d696e74696e6760a01b602082015290516001600160e01b031960e085901b168152610e7b92918b9160040161394e565b600060405180830381600087803b158015610e9557600080fd5b505af1158015610ea9573d6000803e3d6000fd5b505060408051848152602081018a90527fd4963d3398ca974bd2b8b869b07de5becc14dc271b50e201d0e67db655c0cdc2935001905060405180910390a150506001600b5550505050505050565b60006001600160e01b0319821663780e9d6360e01b1480610f1c5750610f1c826126b8565b92915050565b60125460ff1615610f6d5760405162461bcd60e51b81526020600482015260156024820152745075626c69632053616c652069732061637469766560581b6044820152606401610b29565b601254610100900460ff16610fc45760405162461bcd60e51b815260206004820152601860248201527f5072652d53616c65206e6f7420616374697665207965747400000000000000006044820152606401610b29565b6014546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561100857600080fd5b505afa15801561101c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110409190613794565b1161105d5760405162461bcd60e51b8152600401610b2990613a40565b3481600d5461106c9190613b6a565b11156110ba5760405162461bcd60e51b815260206004820152601b60248201527f496e636f72726563742045746865722076616c75652073656e742e00000000006044820152606401610b29565b336000908152601d6020526040812080548392906110d9908490613b3e565b9250508190555080601160008282546110f29190613b3e565b9091555050336000908152601d6020526040902054600210156111275760405162461bcd60e51b8152600401610b2990613ab6565b601054601154106111725760405162461bcd60e51b81526020600482015260156024820152741150c81b585e081cdd5c1c1b1e481c995858da1959605a1b6044820152606401610b29565b61117b81612708565b601a5460405160009182916001600160a01b039091169034908381818185875af1925050503d80600081146111cc576040519150601f19603f3d011682016040523d82523d6000602084013e6111d1565b606091505b5091509150816111f35760405162461bcd60e51b8152600401610b2990613a12565b604080518481523460208201527fc0f955f6ed7217940f5e77ecfc1bb7529e0067ccfd0d94187f5a8d6c20e8e1b091015b60405180910390a1505050565b60606000805461124090613bcc565b80601f016020809104026020016040519081016040528092919081815260200182805461126c90613bcc565b80156112b95780601f1061128e576101008083540402835291602001916112b9565b820191906000526020600020905b81548152906001019060200180831161129c57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661133c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b29565b506000908152600460205260409020546001600160a01b031690565b600061136382611c03565b9050806001600160a01b0316836001600160a01b031614156113d15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b29565b336001600160a01b03821614806113ed57506113ed8133610a0b565b61145f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b29565b61146983836127f2565b505050565b600a546001600160a01b031633146114985760405162461bcd60e51b8152600401610b2990613a81565b6114a181612708565b50565b600a546001600160a01b031633146114ce5760405162461bcd60e51b8152600401610b2990613a81565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb90604401602060405180830381600087803b15801561151657600080fd5b505af115801561152a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114699190613778565b6115583382612860565b6115745760405162461bcd60e51b8152600401610b2990613aed565b611469838383612957565b600a546001600160a01b031633146115a95760405162461bcd60e51b8152600401610b2990613a81565b60128054911515620100000262ff000019909216919091179055565b600a546001600160a01b031633146115ef5760405162461bcd60e51b8152600401610b2990613a81565b611469601b83836133f1565b60125460ff1661164d5760405162461bcd60e51b815260206004820152601d60248201527f5075626c6963206d696e74696e67206e6f7420616374697665207965740000006044820152606401610b29565b601254610100900460ff161561169a5760405162461bcd60e51b81526020600482015260126024820152715072652d53616c652069732061637469766560701b6044820152606401610b29565b600c8111156117005760405162461bcd60e51b815260206004820152602c60248201527f4f6e6c7920313220746f6b656e732063616e206265206d696e7465642070657260448201526b103a3930b739b0b1ba34b7b760a11b6064820152608401610b29565b3481600d5461170f9190613b6a565b1461175c5760405162461bcd60e51b815260206004820152601a60248201527f496e636f72726563742045746865722076616c75652073656e740000000000006044820152606401610b29565b61176581612708565b601a5460405160009182916001600160a01b039091169034908381818185875af1925050503d80600081146117b6576040519150601f19603f3d011682016040523d82523d6000602084013e6117bb565b606091505b5091509150816117dd5760405162461bcd60e51b8152600401610b2990613a12565b604080518481523460208201527fb9a5b4311b6948bf859d757d2142d42da0b5fbc6c80bde4113bba08a57bfe6309101611224565b600061181d83611cfc565b821061187f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b29565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146118d25760405162461bcd60e51b8152600401610b2990613a81565b601a54604051479160009182916001600160a01b03169084908381818185875af1925050503d8060008114611923576040519150601f19603f3d011682016040523d82523d6000602084013e611928565b606091505b50915091508161194a5760405162461bcd60e51b8152600401610b2990613a12565b6040518381527f38484d7730fbb8a826820ee40f69f3c8442de83becd32e7c26f0ebe059bee59c90602001611224565b6015546001600160a01b031633146119c75760405162461bcd60e51b815260206004820152601060248201526f556e617574686f726973656420524e4760801b6044820152606401610b29565b8060135414611a185760405162461bcd60e51b815260206004820152601960248201527f496e636f727265637420726571756573742049442073656e74000000000000006044820152606401610b29565b601654600160a01b900460ff1615611a725760405162461bcd60e51b815260206004820152601b60248201527f52616e646f6d204e6f2e20616c726561647920726563656976656400000000006044820152606401610b29565b611a7d600283613b56565b60185550506016805460ff60a01b1916600160a01b179055565b611469838383604051806020016040528060008152506122ec565b600a546001600160a01b03163314611adc5760405162461bcd60e51b8152600401610b2990613a81565b601280549115156101000261ff0019909216919091179055565b600a546001600160a01b03163314611b205760405162461bcd60e51b8152600401610b2990613a81565b600f55565b600a546001600160a01b03163314611b4f5760405162461bcd60e51b8152600401610b2990613a81565b6012805460ff1916911515919091179055565b6000611b6d60085490565b8210611bd05760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b29565b60088281548110611bf157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610f1c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b29565b600a546001600160a01b03163314611ca45760405162461bcd60e51b8152600401610b2990613a81565b611469601c83836133f1565b600a546001600160a01b03163314611cda5760405162461bcd60e51b8152600401610b2990613a81565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611d675760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b29565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314611dad5760405162461bcd60e51b8152600401610b2990613a81565b601560009054906101000a90046001600160a01b03166001600160a01b031663c532bbac6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611dfd57600080fd5b505af1158015611e11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e359190613794565b601355565b600a546001600160a01b03163314611e645760405162461bcd60e51b8152600401610b2990613a81565b611e6e6000612b02565b565b600a546001600160a01b03163314611e9a5760405162461bcd60e51b8152600401610b2990613a81565b600d55565b60606001805461124090613bcc565b6001600160a01b038216331415611f075760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b29565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314611f9d5760405162461bcd60e51b8152600401610b2990613a81565b6040516323b872dd60e01b8152306004820152336024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b158015611feb57600080fd5b505af1158015611fff573d6000803e3d6000fd5b505050505050565b60125460ff16156120525760405162461bcd60e51b81526020600482015260156024820152745075626c69632053616c652069732061637469766560581b6044820152606401610b29565b601254610100900460ff166120a95760405162461bcd60e51b815260206004820152601760248201527f5072652d53616c65206e6f7420616374697665207965740000000000000000006044820152606401610b29565b6120b4338383612b54565b6121005760405162461bcd60e51b815260206004820152601f60248201527f596f7520617265206e6f74206f6e207468652050726573616c65204c697374006044820152606401610b29565b80612167573483600d546121149190613b6a565b11156121625760405162461bcd60e51b815260206004820152601a60248201527f496e636f72726563742045746865722076616c75652073656e740000000000006044820152606401610b29565b6121d0565b3483600e546121769190613b6a565b11156121d05760405162461bcd60e51b815260206004820152602360248201527f496e636f727265637420646973636f756e742045746865722076616c75652073604482015262195b9d60ea1b6064820152608401610b29565b336000908152601d6020526040812080548592906121ef908490613b3e565b9091555050336000908152601d6020526040902054600310156122245760405162461bcd60e51b8152600401610b2990613ab6565b61222d83612708565b601a5460405160009182916001600160a01b039091169034908381818185875af1925050503d806000811461227e576040519150601f19603f3d011682016040523d82523d6000602084013e612283565b606091505b5091509150816122a55760405162461bcd60e51b8152600401610b2990613a12565b604080518681523460208201528415158183015290517fc794f34fd049614128262bc63152880ab504e967348c7cad3c671109e9faef2b9181900360600190a15050505050565b6122f63383612860565b6123125760405162461bcd60e51b8152600401610b2990613aed565b61231e84848484612d05565b50505050565b600a546001600160a01b0316331461234e5760405162461bcd60e51b8152600401610b2990613a81565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b0316331461239a5760405162461bcd60e51b8152600401610b2990613a81565b600e55565b600a546001600160a01b031633146123c95760405162461bcd60e51b8152600401610b2990613a81565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260409020546060906001600160a01b03166124495760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610b29565b6000601c805461245890613bcc565b80601f016020809104026020016040519081016040528092919081815260200182805461248490613bcc565b80156124d15780601f106124a6576101008083540402835291602001916124d1565b820191906000526020600020905b8154815290600101906020018083116124b457829003601f168201915b50505050509050600081511161257157601b80546124ee90613bcc565b80601f016020809104026020016040519081016040528092919081815260200182805461251a90613bcc565b80156125675780601f1061253c57610100808354040283529160200191612567565b820191906000526020600020905b81548152906001019060200180831161254a57829003601f168201915b50505050506125a4565b8061258361257e85612d38565b612dbd565b6040516020016125949291906138e2565b6040516020818303038152906040525b9392505050565b600a546001600160a01b031633146125d55760405162461bcd60e51b8152600401610b2990613a81565b6001600160a01b03811661263a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b29565b6114a181612b02565b600a546001600160a01b0316331461266d5760405162461bcd60e51b8152600401610b2990613a81565b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b61269d600c80546001019055565b60006126a8600c5490565b90506126b48282612ed7565b5050565b60006001600160e01b031982166380ac58cd60e01b14806126e957506001600160e01b03198216635b5e139f60e01b145b80610f1c57506301ffc9a760e01b6001600160e01b0319831614610f1c565b600081116127505760405162461bcd60e51b81526020600482015260156024820152744e6f2e206f6620746f6b656e73203c3d207a65726f60581b6044820152606401610b29565b61270f8161275d600c5490565b6127679190613b3e565b11156127af5760405162461bcd60e51b815260206004820152601760248201527613db9b1e480e4e4e4e4818d85b881899481b5a5b9d1959604a1b6044820152606401610b29565b60005b818110156126b4576127c8600c80546001019055565b60006127d3600c5490565b90506127df3382612ed7565b50806127ea81613c07565b9150506127b2565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061282782611c03565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166128d95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b29565b60006128e483611c03565b9050806001600160a01b0316846001600160a01b0316148061291f5750836001600160a01b0316612914846112c3565b6001600160a01b0316145b8061294f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661296a82611c03565b6001600160a01b0316146129d25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b29565b6001600160a01b038216612a345760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b29565b612a3f838383612ef1565b612a4a6000826127f2565b6001600160a01b0383166000908152600360205260408120805460019290612a73908490613b89565b90915550506001600160a01b0382166000908152600360205260408120805460019290612aa1908490613b3e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b038416612b9d5760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b6044820152606401610b29565b604080516001600160a01b03861660208083019190915284151582840152825180830384018152606090920190925280519101208351604114612c225760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610b29565b602084810151604080870151606088015191517f19457468657265756d205369676e6564204d6573736167653a0a33320000000094810194909452603c84018590529192600091821a9190605c0160408051601f198184030181528282528051602091820120600080855291840180845281905260ff86169284019290925260608301879052608083018690529092509060019060a0016020604051602081039080840390855afa158015612cdb573d6000803e3d6000fd5b5050604051601f1901516019546001600160a01b039182169116149b9a5050505050505050505050565b612d10848484612957565b612d1c84848484612fa9565b61231e5760405162461bcd60e51b8152600401610b29906139c0565b60006017548211612d47575090565b60006017546001612d589190613b3e565b612d629084613b89565b90506000601754612d7260085490565b612d7c9190613b89565b905060008160185484612d8f9190613b3e565b612d999190613c22565b90506017546001612daa9190613b3e565b612db49082613b3e565b95945050505050565b606081612de15750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e0b5780612df581613c07565b9150612e049050600a83613b56565b9150612de5565b60008167ffffffffffffffff811115612e3457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e5e576020820181803683370190505b5090505b841561294f57612e73600183613b89565b9150612e80600a86613c22565b612e8b906030613b3e565b60f81b818381518110612eae57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612ed0600a86613b56565b9450612e62565b6126b48282604051806020016040528060008152506130b6565b6001600160a01b038316612f4c57612f4781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612f6f565b816001600160a01b0316836001600160a01b031614612f6f57612f6f83826130e9565b6001600160a01b038216612f865761146981613186565b826001600160a01b0316826001600160a01b03161461146957611469828261325f565b60006001600160a01b0384163b156130ab57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612fed903390899088908890600401613911565b602060405180830381600087803b15801561300757600080fd5b505af1925050508015613037575060408051601f3d908101601f19168201909252613034918101906137c8565b60015b613091573d808015613065576040519150601f19603f3d011682016040523d82523d6000602084013e61306a565b606091505b5080516130895760405162461bcd60e51b8152600401610b29906139c0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061294f565b506001949350505050565b6130c083836132a3565b6130cd6000848484612fa9565b6114695760405162461bcd60e51b8152600401610b29906139c0565b600060016130f684611cfc565b6131009190613b89565b600083815260076020526040902054909150808214613153576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061319890600190613b89565b600083815260096020526040812054600880549394509092849081106131ce57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106131fd57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061324357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061326a83611cfc565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166132f95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b29565b6000818152600260205260409020546001600160a01b03161561335e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b29565b61336a60008383612ef1565b6001600160a01b0382166000908152600360205260408120805460019290613393908490613b3e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546133fd90613bcc565b90600052602060002090601f01602090048101928261341f5760008555613465565b82601f106134385782800160ff19823516178555613465565b82800160010185558215613465579182015b8281111561346557823582559160200191906001019061344a565b50613471929150613475565b5090565b5b808211156134715760008155600101613476565b60008083601f84011261349b578182fd5b50813567ffffffffffffffff8111156134b2578182fd5b6020830191508360208285010111156134ca57600080fd5b9250929050565b600082601f8301126134e1578081fd5b813567ffffffffffffffff808211156134fc576134fc613c62565b604051601f8301601f19908116603f0116810190828211818310171561352457613524613c62565b8160405283815286602085880101111561353c578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215613569578081fd5b81356125a481613c78565b60008060408385031215613586578081fd5b823561359181613c78565b915060208301356135a181613c78565b809150509250929050565b60008060008060008060008060c0898b0312156135c7578384fd5b88356135d281613c78565b975060208901356135e281613c78565b965060408901356135f281613c78565b955060608901359450608089013567ffffffffffffffff80821115613615578586fd5b6136218c838d0161348a565b909650945060a08b0135915080821115613639578384fd5b506136468b828c0161348a565b999c989b5096995094979396929594505050565b60008060006060848603121561366e578283fd5b833561367981613c78565b9250602084013561368981613c78565b929592945050506040919091013590565b600080600080608085870312156136af578384fd5b84356136ba81613c78565b935060208501356136ca81613c78565b925060408501359150606085013567ffffffffffffffff8111156136ec578182fd5b6136f8878288016134d1565b91505092959194509250565b60008060408385031215613716578182fd5b823561372181613c78565b915060208301356135a181613c8d565b60008060408385031215613743578182fd5b823561374e81613c78565b946020939093013593505050565b60006020828403121561376d578081fd5b81356125a481613c8d565b600060208284031215613789578081fd5b81516125a481613c8d565b6000602082840312156137a5578081fd5b5051919050565b6000602082840312156137bd578081fd5b81356125a481613c9b565b6000602082840312156137d9578081fd5b81516125a481613c9b565b600080602083850312156137f6578182fd5b823567ffffffffffffffff81111561380c578283fd5b6138188582860161348a565b90969095509350505050565b600060208284031215613835578081fd5b5035919050565b6000806040838503121561384e578182fd5b50508035926020909101359150565b600080600060608486031215613871578081fd5b83359250602084013567ffffffffffffffff81111561388e578182fd5b61389a868287016134d1565b92505060408401356138ab81613c8d565b809150509250925092565b600081518084526138ce816020860160208601613ba0565b601f01601f19169290920160200192915050565b600083516138f4818460208801613ba0565b835190830190613908818360208801613ba0565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613944908301846138b6565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000612db460608301846138b6565b6040815282604082015282846060830137600080606085840101526060601f19601f8601168301019050826020830152949350505050565b6020815260006125a460208301846138b6565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601490820152732330b4b632b2103a379039b2b7321022ba3432b960611b604082015260600190565b60208082526021908201527f596f7520617265206e6f7420616e204574686572204361726420686f6c6465726040820152601760f91b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526019908201527f45786365656473206d617820616c6c6f776564206c696d697400000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115613b5157613b51613c36565b500190565b600082613b6557613b65613c4c565b500490565b6000816000190483118215151615613b8457613b84613c36565b500290565b600082821015613b9b57613b9b613c36565b500390565b60005b83811015613bbb578181015183820152602001613ba3565b8381111561231e5750506000910152565b600181811c90821680613be057607f821691505b60208210811415613c0157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613c1b57613c1b613c36565b5060010190565b600082613c3157613c31613c4c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146114a157600080fd5b80151581146114a157600080fd5b6001600160e01b0319811681146114a157600080fdfea2646970667358221220c17101e503fe59acb95b3234bdc47b84c736f71663ea32d3107ae112bfb9c65c64736f6c634300080400330000000000000000000000000855e6f37bfaf196c7cac88ce19b83854f510e6c00000000000000000000000056ca1326f39ac621e2cd2f2cbeedf1559f4f19ea000000000000000000000000e2e109f1b4eaa8915655fe8fdefc112a34acc5f0

Deployed Bytecode

0x6080604052600436106103845760003560e01c80636352211e116101d1578063a5b3abfb11610102578063c87b56dd116100a0578063f2fde38b1161006f578063f2fde38b14610a6e578063f301feaf14610a8e578063f3283fba14610aa4578063fd8da31314610ac4576103bf565b8063c87b56dd146109d0578063e985e9c5146109f0578063eb1a190e14610a39578063ece8ea4e14610a58576103bf565b8063b88d4fde116100dc578063b88d4fde14610950578063bb2e804714610970578063bc85db7514610990578063c1d7b6a8146109b0576103bf565b8063a5b3abfb14610908578063b57d14be14610928578063b888fa841461093b576103bf565b806387512b941161016f5780638e74955b116101495780638e74955b1461089357806391b7f5ed146108b357806395d89b41146108d3578063a22cb465146108e8576103bf565b806387512b94146108405780638d8bc8f0146108555780638da5cb5b14610875576103bf565b80636c19e783116101ab5780636c19e783146107d657806370a08231146107f657806370b5ca6014610816578063715018a61461082b576103bf565b80636352211e1461077c57806365feeafa1461079c5780636885c77b146107b6576103bf565b8063298eeaf4116102b65780633d64ac9b11610254578063497c00ae11610223578063497c00ae146107075780634cf97194146107275780634f6ccce71461074757806351cba34214610767576103bf565b80633d64ac9b1461068757806342842e0e146106a757806343037ef6146106c7578063448b1e60146106e7576103bf565b80632db11544116102905780632db11544146106295780632f745c591461063c5780633bd53d9d1461065c5780633ccfd60b14610672576103bf565b8063298eeaf4146105c95780632a85db55146105e95780632d81897b14610609576103bf565b80630ef5f1341161032357806318160ddd116102fd57806318160ddd1461056857806322bbcddf1461057d57806322f4596f1461059357806323b872dd146105a9576103bf565b80630ef5f134146104fb5780631342ff4c1461052857806317fd1e2f14610548576103bf565b8063041d25aa1161035f578063041d25aa1461046e57806306fdde0314610481578063081812fc146104a3578063095ea7b3146104db576103bf565b806223de29146103f357806301ffc9a7146104155780630387da421461044a576103bf565b366103bf576040513481527f49b4c3f4344f33413322c03885f90f29e906bd8eb0cb2c3d815ee1ad2b3c989c906020015b60405180910390a1005b7fce296c83131de720c3eb3df3b690fddd29d1f1045a652b3bac9743b6749808fa600036346040516103b593929190613975565b3480156103ff57600080fd5b5061041361040e3660046135ac565b610ada565b005b34801561042157600080fd5b506104356104303660046137ac565b610ef7565b60405190151581526020015b60405180910390f35b34801561045657600080fd5b50610460600d5481565b604051908152602001610441565b61041361047c366004613824565b610f22565b34801561048d57600080fd5b50610496611231565b60405161044191906139ad565b3480156104af57600080fd5b506104c36104be366004613824565b6112c3565b6040516001600160a01b039091168152602001610441565b3480156104e757600080fd5b506104136104f6366004613731565b611358565b34801561050757600080fd5b50610460610516366004613558565b601d6020526000908152604090205481565b34801561053457600080fd5b50610413610543366004613824565b61146e565b34801561055457600080fd5b50610413610563366004613731565b6114a4565b34801561057457600080fd5b50600854610460565b34801561058957600080fd5b5061046060115481565b34801561059f57600080fd5b5061046061270f81565b3480156105b557600080fd5b506104136105c436600461365a565b61154e565b3480156105d557600080fd5b506104136105e436600461375c565b61157f565b3480156105f557600080fd5b506104136106043660046137e4565b6115c5565b34801561061557600080fd5b506014546104c3906001600160a01b031681565b610413610637366004613824565b6115fb565b34801561064857600080fd5b50610460610657366004613731565b611812565b34801561066857600080fd5b50610460600f5481565b34801561067e57600080fd5b506104136118a8565b34801561069357600080fd5b506104136106a236600461383c565b61197a565b3480156106b357600080fd5b506104136106c236600461365a565b611a97565b3480156106d357600080fd5b506104136106e236600461375c565b611ab2565b3480156106f357600080fd5b50610413610702366004613824565b611af6565b34801561071357600080fd5b5061041361072236600461375c565b611b25565b34801561073357600080fd5b506012546104359062010000900460ff1681565b34801561075357600080fd5b50610460610762366004613824565b611b62565b34801561077357600080fd5b50610460600381565b34801561078857600080fd5b506104c3610797366004613824565b611c03565b3480156107a857600080fd5b506012546104359060ff1681565b3480156107c257600080fd5b506104136107d13660046137e4565b611c7a565b3480156107e257600080fd5b506104136107f1366004613558565b611cb0565b34801561080257600080fd5b50610460610811366004613558565b611cfc565b34801561082257600080fd5b50610413611d83565b34801561083757600080fd5b50610413611e3a565b34801561084c57600080fd5b50610460600c81565b34801561086157600080fd5b506016546104c3906001600160a01b031681565b34801561088157600080fd5b50600a546001600160a01b03166104c3565b34801561089f57600080fd5b506015546104c3906001600160a01b031681565b3480156108bf57600080fd5b506104136108ce366004613824565b611e70565b3480156108df57600080fd5b50610496611e9f565b3480156108f457600080fd5b50610413610903366004613704565b611eae565b34801561091457600080fd5b50610413610923366004613731565b611f73565b61041361093636600461385d565b612007565b34801561094757600080fd5b50610460600281565b34801561095c57600080fd5b5061041361096b36600461369a565b6122ec565b34801561097c57600080fd5b5061041361098b366004613558565b612324565b34801561099c57600080fd5b506104136109ab366004613824565b612370565b3480156109bc57600080fd5b506104136109cb366004613558565b61239f565b3480156109dc57600080fd5b506104966109eb366004613824565b6123eb565b3480156109fc57600080fd5b50610435610a0b366004613574565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a4557600080fd5b5060125461043590610100900460ff1681565b348015610a6457600080fd5b5061046060135481565b348015610a7a57600080fd5b50610413610a89366004613558565b6125ab565b348015610a9a57600080fd5b50610460600e5481565b348015610ab057600080fd5b50610413610abf366004613558565b612643565b348015610ad057600080fd5b5061046060105481565b6002600b541415610b325760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600b5560125462010000900460ff16610b8f5760405162461bcd60e51b815260206004820152601b60248201527f44757374206d696e74696e67206e6f74206163746976652079657400000000006044820152606401610b29565b6016546001600160a01b03163314610bd85760405162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5cd95960a21b6044820152606401610b29565b6014546040516370a0823160e01b81526001600160a01b03898116600483015260009216906370a082319060240160206040518083038186803b158015610c1e57600080fd5b505afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190613794565b11610c735760405162461bcd60e51b8152600401610b2990613a40565b6000600f5486610c839190613b56565b6001600160a01b0389166000908152601d6020526040812080549293508392909190610cb0908490613b3e565b925050819055508060116000828254610cc99190613b3e565b90915550506001600160a01b0388166000908152601d602052604090205460021015610d075760405162461bcd60e51b8152600401610b2990613ab6565b60105460115410610d525760405162461bcd60e51b81526020600482015260156024820152741150c81b585e081cdd5c1c1b1e481c995858da1959605a1b6044820152606401610b29565b60008111610d9a5760405162461bcd60e51b81526020600482015260156024820152744e6f2e206f6620746f6b656e73203c3d207a65726f60581b6044820152606401610b29565b61270f81610da7600c5490565b610db19190613b3e565b1115610df95760405162461bcd60e51b815260206004820152601760248201527613db9b1e480e4e4e4e4818d85b881899481b5a5b9d1959604a1b6044820152606401610b29565b610e028861268f565b6002811415610e1457610e148861268f565b6016546001600160a01b0316639bd9bbc6610e37600a546001600160a01b031690565b604080518082018252600c81526b44757374204d696e74696e6760a01b602082015290516001600160e01b031960e085901b168152610e7b92918b9160040161394e565b600060405180830381600087803b158015610e9557600080fd5b505af1158015610ea9573d6000803e3d6000fd5b505060408051848152602081018a90527fd4963d3398ca974bd2b8b869b07de5becc14dc271b50e201d0e67db655c0cdc2935001905060405180910390a150506001600b5550505050505050565b60006001600160e01b0319821663780e9d6360e01b1480610f1c5750610f1c826126b8565b92915050565b60125460ff1615610f6d5760405162461bcd60e51b81526020600482015260156024820152745075626c69632053616c652069732061637469766560581b6044820152606401610b29565b601254610100900460ff16610fc45760405162461bcd60e51b815260206004820152601860248201527f5072652d53616c65206e6f7420616374697665207965747400000000000000006044820152606401610b29565b6014546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561100857600080fd5b505afa15801561101c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110409190613794565b1161105d5760405162461bcd60e51b8152600401610b2990613a40565b3481600d5461106c9190613b6a565b11156110ba5760405162461bcd60e51b815260206004820152601b60248201527f496e636f72726563742045746865722076616c75652073656e742e00000000006044820152606401610b29565b336000908152601d6020526040812080548392906110d9908490613b3e565b9250508190555080601160008282546110f29190613b3e565b9091555050336000908152601d6020526040902054600210156111275760405162461bcd60e51b8152600401610b2990613ab6565b601054601154106111725760405162461bcd60e51b81526020600482015260156024820152741150c81b585e081cdd5c1c1b1e481c995858da1959605a1b6044820152606401610b29565b61117b81612708565b601a5460405160009182916001600160a01b039091169034908381818185875af1925050503d80600081146111cc576040519150601f19603f3d011682016040523d82523d6000602084013e6111d1565b606091505b5091509150816111f35760405162461bcd60e51b8152600401610b2990613a12565b604080518481523460208201527fc0f955f6ed7217940f5e77ecfc1bb7529e0067ccfd0d94187f5a8d6c20e8e1b091015b60405180910390a1505050565b60606000805461124090613bcc565b80601f016020809104026020016040519081016040528092919081815260200182805461126c90613bcc565b80156112b95780601f1061128e576101008083540402835291602001916112b9565b820191906000526020600020905b81548152906001019060200180831161129c57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661133c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b29565b506000908152600460205260409020546001600160a01b031690565b600061136382611c03565b9050806001600160a01b0316836001600160a01b031614156113d15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b29565b336001600160a01b03821614806113ed57506113ed8133610a0b565b61145f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b29565b61146983836127f2565b505050565b600a546001600160a01b031633146114985760405162461bcd60e51b8152600401610b2990613a81565b6114a181612708565b50565b600a546001600160a01b031633146114ce5760405162461bcd60e51b8152600401610b2990613a81565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb90604401602060405180830381600087803b15801561151657600080fd5b505af115801561152a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114699190613778565b6115583382612860565b6115745760405162461bcd60e51b8152600401610b2990613aed565b611469838383612957565b600a546001600160a01b031633146115a95760405162461bcd60e51b8152600401610b2990613a81565b60128054911515620100000262ff000019909216919091179055565b600a546001600160a01b031633146115ef5760405162461bcd60e51b8152600401610b2990613a81565b611469601b83836133f1565b60125460ff1661164d5760405162461bcd60e51b815260206004820152601d60248201527f5075626c6963206d696e74696e67206e6f7420616374697665207965740000006044820152606401610b29565b601254610100900460ff161561169a5760405162461bcd60e51b81526020600482015260126024820152715072652d53616c652069732061637469766560701b6044820152606401610b29565b600c8111156117005760405162461bcd60e51b815260206004820152602c60248201527f4f6e6c7920313220746f6b656e732063616e206265206d696e7465642070657260448201526b103a3930b739b0b1ba34b7b760a11b6064820152608401610b29565b3481600d5461170f9190613b6a565b1461175c5760405162461bcd60e51b815260206004820152601a60248201527f496e636f72726563742045746865722076616c75652073656e740000000000006044820152606401610b29565b61176581612708565b601a5460405160009182916001600160a01b039091169034908381818185875af1925050503d80600081146117b6576040519150601f19603f3d011682016040523d82523d6000602084013e6117bb565b606091505b5091509150816117dd5760405162461bcd60e51b8152600401610b2990613a12565b604080518481523460208201527fb9a5b4311b6948bf859d757d2142d42da0b5fbc6c80bde4113bba08a57bfe6309101611224565b600061181d83611cfc565b821061187f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b29565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146118d25760405162461bcd60e51b8152600401610b2990613a81565b601a54604051479160009182916001600160a01b03169084908381818185875af1925050503d8060008114611923576040519150601f19603f3d011682016040523d82523d6000602084013e611928565b606091505b50915091508161194a5760405162461bcd60e51b8152600401610b2990613a12565b6040518381527f38484d7730fbb8a826820ee40f69f3c8442de83becd32e7c26f0ebe059bee59c90602001611224565b6015546001600160a01b031633146119c75760405162461bcd60e51b815260206004820152601060248201526f556e617574686f726973656420524e4760801b6044820152606401610b29565b8060135414611a185760405162461bcd60e51b815260206004820152601960248201527f496e636f727265637420726571756573742049442073656e74000000000000006044820152606401610b29565b601654600160a01b900460ff1615611a725760405162461bcd60e51b815260206004820152601b60248201527f52616e646f6d204e6f2e20616c726561647920726563656976656400000000006044820152606401610b29565b611a7d600283613b56565b60185550506016805460ff60a01b1916600160a01b179055565b611469838383604051806020016040528060008152506122ec565b600a546001600160a01b03163314611adc5760405162461bcd60e51b8152600401610b2990613a81565b601280549115156101000261ff0019909216919091179055565b600a546001600160a01b03163314611b205760405162461bcd60e51b8152600401610b2990613a81565b600f55565b600a546001600160a01b03163314611b4f5760405162461bcd60e51b8152600401610b2990613a81565b6012805460ff1916911515919091179055565b6000611b6d60085490565b8210611bd05760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b29565b60088281548110611bf157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610f1c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b29565b600a546001600160a01b03163314611ca45760405162461bcd60e51b8152600401610b2990613a81565b611469601c83836133f1565b600a546001600160a01b03163314611cda5760405162461bcd60e51b8152600401610b2990613a81565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611d675760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b29565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314611dad5760405162461bcd60e51b8152600401610b2990613a81565b601560009054906101000a90046001600160a01b03166001600160a01b031663c532bbac6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611dfd57600080fd5b505af1158015611e11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e359190613794565b601355565b600a546001600160a01b03163314611e645760405162461bcd60e51b8152600401610b2990613a81565b611e6e6000612b02565b565b600a546001600160a01b03163314611e9a5760405162461bcd60e51b8152600401610b2990613a81565b600d55565b60606001805461124090613bcc565b6001600160a01b038216331415611f075760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b29565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314611f9d5760405162461bcd60e51b8152600401610b2990613a81565b6040516323b872dd60e01b8152306004820152336024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b158015611feb57600080fd5b505af1158015611fff573d6000803e3d6000fd5b505050505050565b60125460ff16156120525760405162461bcd60e51b81526020600482015260156024820152745075626c69632053616c652069732061637469766560581b6044820152606401610b29565b601254610100900460ff166120a95760405162461bcd60e51b815260206004820152601760248201527f5072652d53616c65206e6f7420616374697665207965740000000000000000006044820152606401610b29565b6120b4338383612b54565b6121005760405162461bcd60e51b815260206004820152601f60248201527f596f7520617265206e6f74206f6e207468652050726573616c65204c697374006044820152606401610b29565b80612167573483600d546121149190613b6a565b11156121625760405162461bcd60e51b815260206004820152601a60248201527f496e636f72726563742045746865722076616c75652073656e740000000000006044820152606401610b29565b6121d0565b3483600e546121769190613b6a565b11156121d05760405162461bcd60e51b815260206004820152602360248201527f496e636f727265637420646973636f756e742045746865722076616c75652073604482015262195b9d60ea1b6064820152608401610b29565b336000908152601d6020526040812080548592906121ef908490613b3e565b9091555050336000908152601d6020526040902054600310156122245760405162461bcd60e51b8152600401610b2990613ab6565b61222d83612708565b601a5460405160009182916001600160a01b039091169034908381818185875af1925050503d806000811461227e576040519150601f19603f3d011682016040523d82523d6000602084013e612283565b606091505b5091509150816122a55760405162461bcd60e51b8152600401610b2990613a12565b604080518681523460208201528415158183015290517fc794f34fd049614128262bc63152880ab504e967348c7cad3c671109e9faef2b9181900360600190a15050505050565b6122f63383612860565b6123125760405162461bcd60e51b8152600401610b2990613aed565b61231e84848484612d05565b50505050565b600a546001600160a01b0316331461234e5760405162461bcd60e51b8152600401610b2990613a81565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b0316331461239a5760405162461bcd60e51b8152600401610b2990613a81565b600e55565b600a546001600160a01b031633146123c95760405162461bcd60e51b8152600401610b2990613a81565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260409020546060906001600160a01b03166124495760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610b29565b6000601c805461245890613bcc565b80601f016020809104026020016040519081016040528092919081815260200182805461248490613bcc565b80156124d15780601f106124a6576101008083540402835291602001916124d1565b820191906000526020600020905b8154815290600101906020018083116124b457829003601f168201915b50505050509050600081511161257157601b80546124ee90613bcc565b80601f016020809104026020016040519081016040528092919081815260200182805461251a90613bcc565b80156125675780601f1061253c57610100808354040283529160200191612567565b820191906000526020600020905b81548152906001019060200180831161254a57829003601f168201915b50505050506125a4565b8061258361257e85612d38565b612dbd565b6040516020016125949291906138e2565b6040516020818303038152906040525b9392505050565b600a546001600160a01b031633146125d55760405162461bcd60e51b8152600401610b2990613a81565b6001600160a01b03811661263a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b29565b6114a181612b02565b600a546001600160a01b0316331461266d5760405162461bcd60e51b8152600401610b2990613a81565b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b61269d600c80546001019055565b60006126a8600c5490565b90506126b48282612ed7565b5050565b60006001600160e01b031982166380ac58cd60e01b14806126e957506001600160e01b03198216635b5e139f60e01b145b80610f1c57506301ffc9a760e01b6001600160e01b0319831614610f1c565b600081116127505760405162461bcd60e51b81526020600482015260156024820152744e6f2e206f6620746f6b656e73203c3d207a65726f60581b6044820152606401610b29565b61270f8161275d600c5490565b6127679190613b3e565b11156127af5760405162461bcd60e51b815260206004820152601760248201527613db9b1e480e4e4e4e4818d85b881899481b5a5b9d1959604a1b6044820152606401610b29565b60005b818110156126b4576127c8600c80546001019055565b60006127d3600c5490565b90506127df3382612ed7565b50806127ea81613c07565b9150506127b2565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061282782611c03565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166128d95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b29565b60006128e483611c03565b9050806001600160a01b0316846001600160a01b0316148061291f5750836001600160a01b0316612914846112c3565b6001600160a01b0316145b8061294f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661296a82611c03565b6001600160a01b0316146129d25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b29565b6001600160a01b038216612a345760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b29565b612a3f838383612ef1565b612a4a6000826127f2565b6001600160a01b0383166000908152600360205260408120805460019290612a73908490613b89565b90915550506001600160a01b0382166000908152600360205260408120805460019290612aa1908490613b3e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b038416612b9d5760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b6044820152606401610b29565b604080516001600160a01b03861660208083019190915284151582840152825180830384018152606090920190925280519101208351604114612c225760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610b29565b602084810151604080870151606088015191517f19457468657265756d205369676e6564204d6573736167653a0a33320000000094810194909452603c84018590529192600091821a9190605c0160408051601f198184030181528282528051602091820120600080855291840180845281905260ff86169284019290925260608301879052608083018690529092509060019060a0016020604051602081039080840390855afa158015612cdb573d6000803e3d6000fd5b5050604051601f1901516019546001600160a01b039182169116149b9a5050505050505050505050565b612d10848484612957565b612d1c84848484612fa9565b61231e5760405162461bcd60e51b8152600401610b29906139c0565b60006017548211612d47575090565b60006017546001612d589190613b3e565b612d629084613b89565b90506000601754612d7260085490565b612d7c9190613b89565b905060008160185484612d8f9190613b3e565b612d999190613c22565b90506017546001612daa9190613b3e565b612db49082613b3e565b95945050505050565b606081612de15750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e0b5780612df581613c07565b9150612e049050600a83613b56565b9150612de5565b60008167ffffffffffffffff811115612e3457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e5e576020820181803683370190505b5090505b841561294f57612e73600183613b89565b9150612e80600a86613c22565b612e8b906030613b3e565b60f81b818381518110612eae57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612ed0600a86613b56565b9450612e62565b6126b48282604051806020016040528060008152506130b6565b6001600160a01b038316612f4c57612f4781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612f6f565b816001600160a01b0316836001600160a01b031614612f6f57612f6f83826130e9565b6001600160a01b038216612f865761146981613186565b826001600160a01b0316826001600160a01b03161461146957611469828261325f565b60006001600160a01b0384163b156130ab57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612fed903390899088908890600401613911565b602060405180830381600087803b15801561300757600080fd5b505af1925050508015613037575060408051601f3d908101601f19168201909252613034918101906137c8565b60015b613091573d808015613065576040519150601f19603f3d011682016040523d82523d6000602084013e61306a565b606091505b5080516130895760405162461bcd60e51b8152600401610b29906139c0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061294f565b506001949350505050565b6130c083836132a3565b6130cd6000848484612fa9565b6114695760405162461bcd60e51b8152600401610b29906139c0565b600060016130f684611cfc565b6131009190613b89565b600083815260076020526040902054909150808214613153576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061319890600190613b89565b600083815260096020526040812054600880549394509092849081106131ce57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106131fd57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061324357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061326a83611cfc565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166132f95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b29565b6000818152600260205260409020546001600160a01b03161561335e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b29565b61336a60008383612ef1565b6001600160a01b0382166000908152600360205260408120805460019290613393908490613b3e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546133fd90613bcc565b90600052602060002090601f01602090048101928261341f5760008555613465565b82601f106134385782800160ff19823516178555613465565b82800160010185558215613465579182015b8281111561346557823582559160200191906001019061344a565b50613471929150613475565b5090565b5b808211156134715760008155600101613476565b60008083601f84011261349b578182fd5b50813567ffffffffffffffff8111156134b2578182fd5b6020830191508360208285010111156134ca57600080fd5b9250929050565b600082601f8301126134e1578081fd5b813567ffffffffffffffff808211156134fc576134fc613c62565b604051601f8301601f19908116603f0116810190828211818310171561352457613524613c62565b8160405283815286602085880101111561353c578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215613569578081fd5b81356125a481613c78565b60008060408385031215613586578081fd5b823561359181613c78565b915060208301356135a181613c78565b809150509250929050565b60008060008060008060008060c0898b0312156135c7578384fd5b88356135d281613c78565b975060208901356135e281613c78565b965060408901356135f281613c78565b955060608901359450608089013567ffffffffffffffff80821115613615578586fd5b6136218c838d0161348a565b909650945060a08b0135915080821115613639578384fd5b506136468b828c0161348a565b999c989b5096995094979396929594505050565b60008060006060848603121561366e578283fd5b833561367981613c78565b9250602084013561368981613c78565b929592945050506040919091013590565b600080600080608085870312156136af578384fd5b84356136ba81613c78565b935060208501356136ca81613c78565b925060408501359150606085013567ffffffffffffffff8111156136ec578182fd5b6136f8878288016134d1565b91505092959194509250565b60008060408385031215613716578182fd5b823561372181613c78565b915060208301356135a181613c8d565b60008060408385031215613743578182fd5b823561374e81613c78565b946020939093013593505050565b60006020828403121561376d578081fd5b81356125a481613c8d565b600060208284031215613789578081fd5b81516125a481613c8d565b6000602082840312156137a5578081fd5b5051919050565b6000602082840312156137bd578081fd5b81356125a481613c9b565b6000602082840312156137d9578081fd5b81516125a481613c9b565b600080602083850312156137f6578182fd5b823567ffffffffffffffff81111561380c578283fd5b6138188582860161348a565b90969095509350505050565b600060208284031215613835578081fd5b5035919050565b6000806040838503121561384e578182fd5b50508035926020909101359150565b600080600060608486031215613871578081fd5b83359250602084013567ffffffffffffffff81111561388e578182fd5b61389a868287016134d1565b92505060408401356138ab81613c8d565b809150509250925092565b600081518084526138ce816020860160208601613ba0565b601f01601f19169290920160200192915050565b600083516138f4818460208801613ba0565b835190830190613908818360208801613ba0565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613944908301846138b6565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000612db460608301846138b6565b6040815282604082015282846060830137600080606085840101526060601f19601f8601168301019050826020830152949350505050565b6020815260006125a460208301846138b6565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601490820152732330b4b632b2103a379039b2b7321022ba3432b960611b604082015260600190565b60208082526021908201527f596f7520617265206e6f7420616e204574686572204361726420686f6c6465726040820152601760f91b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526019908201527f45786365656473206d617820616c6c6f776564206c696d697400000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115613b5157613b51613c36565b500190565b600082613b6557613b65613c4c565b500490565b6000816000190483118215151615613b8457613b84613c36565b500290565b600082821015613b9b57613b9b613c36565b500390565b60005b83811015613bbb578181015183820152602001613ba3565b8381111561231e5750506000910152565b600181811c90821680613be057607f821691505b60208210811415613c0157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613c1b57613c1b613c36565b5060010190565b600082613c3157613c31613c4c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146114a157600080fd5b80151581146114a157600080fd5b6001600160e01b0319811681146114a157600080fdfea2646970667358221220c17101e503fe59acb95b3234bdc47b84c736f71663ea32d3107ae112bfb9c65c64736f6c63430008040033

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

0000000000000000000000000855e6f37bfaf196c7cac88ce19b83854f510e6c00000000000000000000000056ca1326f39ac621e2cd2f2cbeedf1559f4f19ea000000000000000000000000e2e109f1b4eaa8915655fe8fdefc112a34acc5f0

-----Decoded View---------------
Arg [0] : signer (address): 0x0855e6F37bFaf196C7CaC88CE19B83854F510E6c
Arg [1] : multiSig (address): 0x56Ca1326F39AC621E2Cd2F2CBEEdF1559f4f19ea
Arg [2] : dust (address): 0xe2E109f1b4eaA8915655fE8fDEfC112a34ACc5F0

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000855e6f37bfaf196c7cac88ce19b83854f510e6c
Arg [1] : 00000000000000000000000056ca1326f39ac621e2cd2f2cbeedf1559f4f19ea
Arg [2] : 000000000000000000000000e2e109f1b4eaa8915655fe8fdefc112a34acc5f0


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.