ETH Price: $2,909.37 (+3.04%)
 

Overview

Max Total Supply

3,970 MULTI

Holders

1,383

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
firewood23.eth
Balance
1 MULTI
0xe7cdf9238020bcf252f2454e074d260b857a0143
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A collection of 4,000 NFTs marking the genesis of Entities, a no code launchpad for generative NFT collections built for artists, by artists. Get exclusive pre-mint access to MetaGeckos, upcoming generative drops, and members only perks and participate in the Entities DAO. Fin...

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MultiPass

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : MultiPass.sol
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##############################################################@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##############################################################@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##############################################################@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##############################################################@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@##########(*************************************************************###########@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@##########(*************************************************************###########@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@##########(*************************************************************###########@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@###########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@###########@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@##########***********@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@***********##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########***********@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@***********##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########***********@@@@@@@@@@#########################################@@@@@@@@@@***********##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@#########################################@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@#########################################@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@#########################################@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@*****************************************@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@*****************************************@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@*****************************************@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@#########################################@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@#########################################@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@#########################################@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@#########################################@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@*****************************************@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@*****************************************@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@#########################################@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@#########################################@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@#########################################@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@#########################################@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@*****************************************@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@##########@@@@@@@@@@@@@@@@@@@@@*****************************************@@@@@@@@@@@@@@@@@@@@@##########@@@@@@@@@@@@
// @@@@@@@@@@@@@**********###########@@@@@@@@@@*****************************************@@@@@@@@@@###########**********@@@@@@@@@@@@
// @@@@@@@@@@@@@**********###########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@###########**********@@@@@@@@@@@@
// @@@@@@@@@@@@@**********###########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@###########**********@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@###########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@###########@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@**********/#############################################################***********@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@**********/#############################################################***********@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@**********/#############################################################***********@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##############################################################@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@**************************************************************@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@**************************************************************@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@**************************************************************@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//
// MultiPass
//
// Entities special edition collection
// https://entities.wtf
//
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
pragma abicoder v2;

import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import "./@rarible/royalties/contracts/impl/RoyaltiesV2Impl.sol";
import "./@rarible/royalties/contracts/LibPart.sol";
import "./@rarible/royalties/contracts/LibRoyaltiesV2.sol";

contract MultiPass is ERC721Enumerable, RoyaltiesV2Impl, Ownable{
    
    using Strings for uint256;
    event Burned (uint tokenId, address);
    string public MULTIPASS_PROVENANCE = "";
    string private _baseContractURI = "https://gateway.pinata.cloud/ipfs/QmfR7WdrZcfihrZSFUqXWz6LW2NZXDzu9Vjt1WzZDzk4y5"; 
    string private _baseTokenURI = "https://entitieswtf.herokuapp.com/api/token/"; 
    uint256 public constant MAX_MULTIPASSES = 10000;
    uint256 private multiPassesReserved; 
    uint256 public constant maxMultiPassesPurchase = 20;
    uint256 private multiPassPrice = 100000000000000000; // 0.1 ETH
    bool public mintingAllowed = true;
    bool public burningAllowed = false;
    bool public salePaused = true;
    mapping (address => uint) private _MultiPassBurners;
    uint96 public constant royaltyFeeBps = 1000; // 10%
    address payable public payoutAddress;

    // Team - 10%
    address t1;
    address t2;
    address t3;
    address t4;
    // Entities Treasury - 90%
    address t5;

    constructor(
        address _t1,
        address _t2,
        address _t3,
        address _t4,
        address _t5
        
        ) ERC721("MultiPass", "MULTI")  {
        payoutAddress = payable(msg.sender);
        t1 = _t1;
        t2 = _t2;
        t3 = _t3;
        t4 = _t4;
        t5 = _t5;
    }
  
    function burn(uint256 tokenId) public virtual {
        require(burningAllowed == true, "Burning is not yet allowed");
        require(_isApprovedOrOwner(_msgSender(), tokenId), "One cannot burn what one does not own");
            _burn(tokenId);
            _MultiPassBurners[msg.sender] = tokenId;
            emit Burned(tokenId, msg.sender);
    }

    function mintMultiPass(uint256 num) public payable {
        require(mintingAllowed == true, "Minting has ended");
        require(totalSupply() < MAX_MULTIPASSES, "Sale has already ended" );
        require( !salePaused, "Sale paused" );
        require(num > 0 && num <= maxMultiPassesPurchase, "You can mint minimum 1, maximum 20 MultiPasses");
        require( totalSupply() + num <= MAX_MULTIPASSES, "Exceeds maximum MultiPass supply" );
        require( msg.value >= multiPassPrice * num, "Ether sent is not correct" );

        for(uint256 i = 0; i < num; i++){
            uint mintIndex = totalSupply();
            _safeMint( msg.sender, mintIndex );
            setRoyalties(mintIndex, payoutAddress, royaltyFeeBps);
        }
    }

    function walletOfOwner(address _owner) public view returns(uint256[] memory) {
        uint256 tokenCount = balanceOf(_owner);
        uint256[] memory tokensId = new uint256[](tokenCount);

        for(uint256 i; i < tokenCount; i++){
            tokensId[i] = tokenOfOwnerByIndex(_owner, i);
        }
        return tokensId;
    }
    
    function contractURI() public view returns (string memory) {
        return _baseContractURI;
    }
    
    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    function getPrice() public view returns (uint256){
        return multiPassPrice;
    }
    
   function setRoyalties(uint _tokenId, address payable _royaltiesReceipientAddress, uint96 _percentageBasisPoints) internal {
        LibPart.Part[] memory _royalties = new LibPart.Part[](1);
        _royalties[0].value = _percentageBasisPoints;
        _royalties[0].account = _royaltiesReceipientAddress;
        _saveRoyalties(_tokenId, _royalties);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable) returns (bool) {
        if(interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) {
            return true;
        }
        return super.supportsInterface(interfaceId);
    } 
    
    // Owner only functions
    
    function setBaseContractURI(string memory baseContractURI) public onlyOwner {
        _baseContractURI = baseContractURI;
    }


    function setProvenanceHash(string memory provenanceHash) public onlyOwner {
        MULTIPASS_PROVENANCE = provenanceHash;
    }

    function setPrice(uint256 _newPrice) public onlyOwner() {
        multiPassPrice = _newPrice;
    }

    function setBaseURI(string memory baseURI) public onlyOwner {
        _baseTokenURI = baseURI;
    }
    
    function setRaribleRoyaltyWallet(address payable royaltyWallet) public onlyOwner {
        payoutAddress = royaltyWallet;
    }
    
    function setBaseReservedMultiPasses(uint baseReservedMultiPasses) public onlyOwner {
        multiPassesReserved = baseReservedMultiPasses;
    }

    function reserveAirdropMultiPasses(uint256 _amount) external onlyOwner() {
        uint256 currentSupply = totalSupply();
        require( totalSupply() + _amount <= multiPassesReserved, "Exceeds reserved MultiPass supply" );
        require(salePaused == true, "MultiPass minting has already started");

        for(uint256 i = 0; i < _amount; i++){
            uint mintIndex = currentSupply;
            _safeMint( owner(), mintIndex + i );
            setRoyalties(mintIndex + i, payoutAddress, royaltyFeeBps);
        }
    }
    
    function pause(bool val) public onlyOwner {
        salePaused = val;
    }
    function setBurnAllowed(bool val) public onlyOwner {
        burningAllowed = val;
    }
    function setMintAllowed(bool val) public onlyOwner {
        mintingAllowed = val;
    }
    
    function setT1Address(address t1Address) public onlyOwner {
        t1 = t1Address;
    }
    function setT2Address(address t2Address) public onlyOwner {
        t2 = t2Address;
    }
    function setT3Address(address t3Address) public onlyOwner {
        t3 = t3Address;
    }
    function setT4Address(address t4Address) public onlyOwner {
        t4 = t4Address;
    }
    function setT5Address(address t5Address) public onlyOwner {
        t5 = t5Address;
    }
  
    
    function withdrawAll() public payable onlyOwner {
        uint sale1 = address(this).balance * 1/100;
        uint sale2 = address(this).balance * 3/100;
        uint sale3 = address(this).balance * 3/100;
        uint sale4 = address(this).balance * 3/100;
        uint sale5 = address(this).balance * 90/100;

        require(payable(t1).send(sale1));
        require(payable(t2).send(sale2));
        require(payable(t3).send(sale3));
        require(payable(t4).send(sale4));
        require(payable(t5).send(sale5));
    }
}

File 2 of 18 : LibRoyaltiesV2.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library LibRoyaltiesV2 {
    /*
    * bytes4(keccak256('getRoyalties(LibAsset.AssetType)')) == 0x44c74bcc
    */
    bytes4 constant _INTERFACE_ID_ROYALTIES = 0x44c74bcc;
}

File 3 of 18 : LibPart.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library LibPart {
    bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)");

    struct Part {
        address payable account;
        uint96 value;
    }

    function hash(Part memory part) internal pure returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, part.account, part.value));
    }
}

File 4 of 18 : RoyaltiesV2Impl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./AbstractRoyalties.sol";
import "../RoyaltiesV2.sol";

contract RoyaltiesV2Impl is AbstractRoyalties, RoyaltiesV2 {
    function getRaribleV2Royalties(uint256 id) override external view returns (LibPart.Part[] memory) {
        return royalties[id];
    }

    function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) override internal {
        emit RoyaltiesSet(_id, _royalties);
    }
}

File 5 of 18 : 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);
    }
}

File 6 of 18 : 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 7 of 18 : RoyaltiesV2.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./LibPart.sol";

interface RoyaltiesV2 {
    event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);

    function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory);
}

File 8 of 18 : AbstractRoyalties.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../LibPart.sol";

abstract contract AbstractRoyalties {
    mapping (uint256 => LibPart.Part[]) public royalties;

    function _saveRoyalties(uint256 _id, LibPart.Part[] memory _royalties) internal {
        for (uint i = 0; i < _royalties.length; i++) {
            require(_royalties[i].account != address(0x0), "Recipient should be present");
            require(_royalties[i].value != 0, "Royalty value should be positive");
            royalties[_id].push(_royalties[i]);
        }
        _onRoyaltiesSet(_id, _royalties);
    }

    function _updateAccount(uint256 _id, address _from, address _to) internal {
        uint length = royalties[_id].length;
        for(uint i = 0; i < length; i++) {
            if (royalties[_id][i].account == _from) {
                royalties[_id][i].account = payable(address(uint160(_to)));
            }
        }
    }

    function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) virtual internal;
}

File 9 of 18 : 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 10 of 18 : 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 11 of 18 : 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 12 of 18 : 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 13 of 18 : 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 14 of 18 : 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 15 of 18 : 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 16 of 18 : 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 17 of 18 : 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 18 of 18 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_t1","type":"address"},{"internalType":"address","name":"_t2","type":"address"},{"internalType":"address","name":"_t3","type":"address"},{"internalType":"address","name":"_t4","type":"address"},{"internalType":"address","name":"_t5","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":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"","type":"address"}],"name":"Burned","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":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MULTIPASSES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTIPASS_PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burningAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"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":"maxMultiPassesPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"mintMultiPass","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintingAllowed","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":"bool","name":"val","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"payoutAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"reserveAirdropMultiPasses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"royalties","outputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyFeeBps","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","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":[],"name":"salePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseContractURI","type":"string"}],"name":"setBaseContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"baseReservedMultiPasses","type":"uint256"}],"name":"setBaseReservedMultiPasses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setBurnAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setMintAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"royaltyWallet","type":"address"}],"name":"setRaribleRoyaltyWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"t1Address","type":"address"}],"name":"setT1Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"t2Address","type":"address"}],"name":"setT2Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"t3Address","type":"address"}],"name":"setT3Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"t4Address","type":"address"}],"name":"setT4Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"t5Address","type":"address"}],"name":"setT5Address","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":[],"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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]

60a06040819052600060808190526200001b91600c9162000218565b50604051806080016040528060508152602001620039376050913980516200004c91600d9160209091019062000218565b506040518060600160405280602c81526020016200390b602c913980516200007d91600e9160209091019062000218565b5067016345785d8a00006010556011805462ffff001960ff199091166001171662010000179055348015620000b157600080fd5b506040516200398738038062003987833981016040819052620000d491620002db565b60408051808201825260098152684d756c74695061737360b81b6020808301918252835180850190945260058452644d554c544960d81b908401528151919291620001229160009162000218565b5080516200013890600190602084019062000218565b505050620001556200014f620001c260201b60201c565b620001c6565b60138054336001600160a01b0319918216179091556014805482166001600160a01b03978816179055601580548216958716959095179094556016805485169386169390931790925560178054841691851691909117905560188054909216921691909117905562000387565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000226906200034a565b90600052602060002090601f0160209004810192826200024a576000855562000295565b82601f106200026557805160ff191683800117855562000295565b8280016001018555821562000295579182015b828111156200029557825182559160200191906001019062000278565b50620002a3929150620002a7565b5090565b5b80821115620002a35760008155600101620002a8565b80516001600160a01b0381168114620002d657600080fd5b919050565b600080600080600060a08688031215620002f3578081fd5b620002fe86620002be565b94506200030e60208701620002be565b93506200031e60408701620002be565b92506200032e60608701620002be565b91506200033e60808701620002be565b90509295509295909350565b6002810460018216806200035f57607f821691505b602082108114156200038157634e487b7160e01b600052602260045260246000fd5b50919050565b61357480620003976000396000f3fe6080604052600436106102c95760003560e01c80638924af7411610175578063b88d4fde116100dc578063d0b8512111610095578063e985e9c51161006f578063e985e9c514610843578063f1dcfce114610863578063f2fde38b14610883578063fef82b44146108a3576102c9565b8063d0b85121146107f9578063dea2a95f14610819578063e8a3d4851461082e576102c9565b8063b88d4fde14610739578063bc548db914610759578063c4cc3cba14610779578063c7e7f6cb1461078c578063c87b56dd146107ac578063cad96cca146107cc576102c9565b806398d5fdca1161012e57806398d5fdca1461068f5780639c882a3e146106a45780639e646053146106c4578063a017ee27146106e4578063a16b12a414610704578063a22cb46514610719576102c9565b80638924af74146105e05780638da5cb5b1461060e578063911927651461062357806391b7f5ed1461064557806395d89b411461066557806396532d1c1461067a576102c9565b8063395d1016116102345780635b8d02d7116101ed57806364c09d46116101c757806364c09d461461058e57806370a08231146105a3578063715018a6146105c3578063853828b6146105d8576102c9565b80635b8d02d7146105445780635d08c1ae146105595780636352211e1461056e576102c9565b8063395d10161461047757806342842e0e1461049757806342966c68146104b7578063438b6300146104d75780634f6ccce71461050457806355f804b314610524576102c9565b80630cd3a538116102865780630cd3a538146103b55780630f133660146103d557806310969523146103f557806318160ddd1461041557806323b872dd146104375780632f745c5914610457576102c9565b806301ffc9a7146102ce57806302329a291461030457806306fdde0314610326578063081812fc14610348578063095ea7b31461037557806309b0898714610395575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612996565b6108b8565b6040516102fb9190612bc9565b60405180910390f35b34801561031057600080fd5b5061032461031f36600461297c565b6108ec565b005b34801561033257600080fd5b5061033b610950565b6040516102fb9190612bd4565b34801561035457600080fd5b50610368610363366004612a14565b6109e2565b6040516102fb9190612aff565b34801561038157600080fd5b50610324610390366004612951565b610a25565b3480156103a157600080fd5b506103246103b036600461280c565b610abd565b3480156103c157600080fd5b506103246103d03660046129ce565b610b1e565b3480156103e157600080fd5b506103246103f036600461297c565b610b74565b34801561040157600080fd5b506103246104103660046129ce565b610bcd565b34801561042157600080fd5b5061042a610c1f565b6040516102fb919061338c565b34801561044357600080fd5b50610324610452366004612860565b610c25565b34801561046357600080fd5b5061042a610472366004612951565b610c5d565b34801561048357600080fd5b50610324610492366004612a14565b610caf565b3480156104a357600080fd5b506103246104b2366004612860565b610db5565b3480156104c357600080fd5b506103246104d2366004612a14565b610dd0565b3480156104e357600080fd5b506104f76104f236600461280c565b610e7b565b6040516102fb9190612b85565b34801561051057600080fd5b5061042a61051f366004612a14565b610f39565b34801561053057600080fd5b5061032461053f3660046129ce565b610f94565b34801561055057600080fd5b50610368610fe6565b34801561056557600080fd5b506102ee610ff5565b34801561057a57600080fd5b50610368610589366004612a14565b611004565b34801561059a57600080fd5b506102ee611039565b3480156105af57600080fd5b5061042a6105be36600461280c565b611047565b3480156105cf57600080fd5b5061032461108b565b6103246110d6565b3480156105ec57600080fd5b506106006105fb366004612a2c565b61129c565b6040516102fb929190612b13565b34801561061a57600080fd5b506103686112e5565b34801561062f57600080fd5b506106386112f4565b6040516102fb91906133c5565b34801561065157600080fd5b50610324610660366004612a14565b6112fa565b34801561067157600080fd5b5061033b61133e565b34801561068657600080fd5b506102ee61134d565b34801561069b57600080fd5b5061042a611356565b3480156106b057600080fd5b506103246106bf36600461280c565b61135c565b3480156106d057600080fd5b506103246106df36600461297c565b6113bd565b3480156106f057600080fd5b506103246106ff36600461280c565b61140f565b34801561071057600080fd5b5061033b611470565b34801561072557600080fd5b5061032461073436600461291d565b6114fe565b34801561074557600080fd5b506103246107543660046128a0565b6115cc565b34801561076557600080fd5b5061032461077436600461280c565b61160b565b610324610787366004612a14565b61166c565b34801561079857600080fd5b506103246107a736600461280c565b6117c0565b3480156107b857600080fd5b5061033b6107c7366004612a14565b611821565b3480156107d857600080fd5b506107ec6107e7366004612a14565b6118a4565b6040516102fb9190612b72565b34801561080557600080fd5b5061032461081436600461280c565b611933565b34801561082557600080fd5b5061042a611994565b34801561083a57600080fd5b5061033b611999565b34801561084f57600080fd5b506102ee61085e366004612828565b6119a8565b34801561086f57600080fd5b5061032461087e366004612a14565b6119d6565b34801561088f57600080fd5b5061032461089e36600461280c565b611a1a565b3480156108af57600080fd5b5061042a611a8b565b60006001600160e01b03198216631131d2f360e21b14156108db575060016108e7565b6108e482611a91565b90505b919050565b6108f4611ab6565b6001600160a01b03166109056112e5565b6001600160a01b0316146109345760405162461bcd60e51b815260040161092b9061305b565b60405180910390fd5b60118054911515620100000262ff000019909216919091179055565b60606000805461095f90613467565b80601f016020809104026020016040519081016040528092919081815260200182805461098b90613467565b80156109d85780601f106109ad576101008083540402835291602001916109d8565b820191906000526020600020905b8154815290600101906020018083116109bb57829003601f168201915b5050505050905090565b60006109ed82611aba565b610a095760405162461bcd60e51b815260040161092b9061300f565b506000908152600460205260409020546001600160a01b031690565b6000610a3082611004565b9050806001600160a01b0316836001600160a01b03161415610a645760405162461bcd60e51b815260040161092b90613128565b806001600160a01b0316610a76611ab6565b6001600160a01b03161480610a925750610a928161085e611ab6565b610aae5760405162461bcd60e51b815260040161092b90612eea565b610ab88383611ad7565b505050565b610ac5611ab6565b6001600160a01b0316610ad66112e5565b6001600160a01b031614610afc5760405162461bcd60e51b815260040161092b9061305b565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b610b26611ab6565b6001600160a01b0316610b376112e5565b6001600160a01b031614610b5d5760405162461bcd60e51b815260040161092b9061305b565b8051610b7090600d9060208401906126dc565b5050565b610b7c611ab6565b6001600160a01b0316610b8d6112e5565b6001600160a01b031614610bb35760405162461bcd60e51b815260040161092b9061305b565b601180549115156101000261ff0019909216919091179055565b610bd5611ab6565b6001600160a01b0316610be66112e5565b6001600160a01b031614610c0c5760405162461bcd60e51b815260040161092b9061305b565b8051610b7090600c9060208401906126dc565b60085490565b610c36610c30611ab6565b82611b45565b610c525760405162461bcd60e51b815260040161092b90613215565b610ab8838383611bca565b6000610c6883611047565b8210610c865760405162461bcd60e51b815260040161092b90612c0c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610cb7611ab6565b6001600160a01b0316610cc86112e5565b6001600160a01b031614610cee5760405162461bcd60e51b815260040161092b9061305b565b6000610cf8610c1f565b9050600f5482610d06610c1f565b610d1091906133d9565b1115610d2e5760405162461bcd60e51b815260040161092b906132b2565b60115462010000900460ff161515600114610d5b5760405162461bcd60e51b815260040161092b90612ea5565b60005b82811015610ab85781610d81610d726112e5565b610d7c84846133d9565b611cf7565b610da2610d8e83836133d9565b6013546001600160a01b03166103e8611d11565b5080610dad816134a2565b915050610d5e565b610ab8838383604051806020016040528060008152506115cc565b60115460ff610100909104161515600114610dfd5760405162461bcd60e51b815260040161092b90613355565b610e08610c30611ab6565b610e245760405162461bcd60e51b815260040161092b906131d0565b610e2d81611dcf565b3360008181526012602052604090819020839055517fe861e0b12c283de7ca3f4d68d33f3bfc6fc01e4896cddf05e52b8f2a1e548e2491610e7091849190613395565b60405180910390a150565b60606000610e8883611047565b905060008167ffffffffffffffff811115610eb357634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610edc578160200160208202803683370190505b50905060005b82811015610f3157610ef48582610c5d565b828281518110610f1457634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610f29816134a2565b915050610ee2565b509392505050565b6000610f43610c1f565b8210610f615760405162461bcd60e51b815260040161092b90613266565b60088281548110610f8257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b610f9c611ab6565b6001600160a01b0316610fad6112e5565b6001600160a01b031614610fd35760405162461bcd60e51b815260040161092b9061305b565b8051610b7090600e9060208401906126dc565b6013546001600160a01b031681565b60115462010000900460ff1681565b6000818152600260205260408120546001600160a01b0316806108e45760405162461bcd60e51b815260040161092b90612f91565b601154610100900460ff1681565b60006001600160a01b03821661106f5760405162461bcd60e51b815260040161092b90612f47565b506001600160a01b031660009081526003602052604090205490565b611093611ab6565b6001600160a01b03166110a46112e5565b6001600160a01b0316146110ca5760405162461bcd60e51b815260040161092b9061305b565b6110d46000611e76565b565b6110de611ab6565b6001600160a01b03166110ef6112e5565b6001600160a01b0316146111155760405162461bcd60e51b815260040161092b9061305b565b60006064611124476001613405565b61112e91906133f1565b90506000606461113f476003613405565b61114991906133f1565b90506000606461115a476003613405565b61116491906133f1565b905060006064611175476003613405565b61117f91906133f1565b90506000606461119047605a613405565b61119a91906133f1565b6014546040519192506001600160a01b03169086156108fc029087906000818181858888f193505050506111cd57600080fd5b6015546040516001600160a01b039091169085156108fc029086906000818181858888f193505050506111ff57600080fd5b6016546040516001600160a01b039091169084156108fc029085906000818181858888f1935050505061123157600080fd5b6017546040516001600160a01b039091169083156108fc029084906000818181858888f1935050505061126357600080fd5b6018546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505061129557600080fd5b5050505050565b600a60205281600052604060002081815481106112b857600080fd5b6000918252602090912001546001600160a01b0381169250600160a01b90046001600160601b0316905082565b600b546001600160a01b031690565b6103e881565b611302611ab6565b6001600160a01b03166113136112e5565b6001600160a01b0316146113395760405162461bcd60e51b815260040161092b9061305b565b601055565b60606001805461095f90613467565b60115460ff1681565b60105490565b611364611ab6565b6001600160a01b03166113756112e5565b6001600160a01b03161461139b5760405162461bcd60e51b815260040161092b9061305b565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6113c5611ab6565b6001600160a01b03166113d66112e5565b6001600160a01b0316146113fc5760405162461bcd60e51b815260040161092b9061305b565b6011805460ff1916911515919091179055565b611417611ab6565b6001600160a01b03166114286112e5565b6001600160a01b03161461144e5760405162461bcd60e51b815260040161092b9061305b565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b600c805461147d90613467565b80601f01602080910402602001604051908101604052809291908181526020018280546114a990613467565b80156114f65780601f106114cb576101008083540402835291602001916114f6565b820191906000526020600020905b8154815290600101906020018083116114d957829003601f168201915b505050505081565b611506611ab6565b6001600160a01b0316826001600160a01b031614156115375760405162461bcd60e51b815260040161092b90612d9f565b8060056000611544611ab6565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611588611ab6565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115c09190612bc9565b60405180910390a35050565b6115dd6115d7611ab6565b83611b45565b6115f95760405162461bcd60e51b815260040161092b90613215565b61160584848484611ec8565b50505050565b611613611ab6565b6001600160a01b03166116246112e5565b6001600160a01b03161461164a5760405162461bcd60e51b815260040161092b9061305b565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b60115460ff1615156001146116935760405162461bcd60e51b815260040161092b906132f3565b61271061169e610c1f565b106116bb5760405162461bcd60e51b815260040161092b90613169565b60115462010000900460ff16156116e45760405162461bcd60e51b815260040161092b90612be7565b6000811180156116f5575060148111155b6117115760405162461bcd60e51b815260040161092b90612dd6565b6127108161171d610c1f565b61172791906133d9565b11156117455760405162461bcd60e51b815260040161092b90612d26565b806010546117539190613405565b3410156117725760405162461bcd60e51b815260040161092b90613199565b60005b81811015610b70576000611787610c1f565b90506117933382611cf7565b6013546117ad9082906001600160a01b03166103e8611d11565b50806117b8816134a2565b915050611775565b6117c8611ab6565b6001600160a01b03166117d96112e5565b6001600160a01b0316146117ff5760405162461bcd60e51b815260040161092b9061305b565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b606061182c82611aba565b6118485760405162461bcd60e51b815260040161092b906130d9565b6000611852611efb565b90506000815111611872576040518060200160405280600081525061189d565b8061187c84611f0a565b60405160200161188d929190612ad0565b6040516020818303038152906040525b9392505050565b6060600a6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561192857600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b0316818301528252600190920191016118d9565b505050509050919050565b61193b611ab6565b6001600160a01b031661194c6112e5565b6001600160a01b0316146119725760405162461bcd60e51b815260040161092b9061305b565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b601481565b6060600d805461095f90613467565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6119de611ab6565b6001600160a01b03166119ef6112e5565b6001600160a01b031614611a155760405162461bcd60e51b815260040161092b9061305b565b600f55565b611a22611ab6565b6001600160a01b0316611a336112e5565b6001600160a01b031614611a595760405162461bcd60e51b815260040161092b9061305b565b6001600160a01b038116611a7f5760405162461bcd60e51b815260040161092b90612ca9565b611a8881611e76565b50565b61271081565b60006001600160e01b0319821663780e9d6360e01b14806108e457506108e482612025565b3390565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b0c82611004565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b5082611aba565b611b6c5760405162461bcd60e51b815260040161092b90612e24565b6000611b7783611004565b9050806001600160a01b0316846001600160a01b03161480611bb25750836001600160a01b0316611ba7846109e2565b6001600160a01b0316145b80611bc25750611bc281856119a8565b949350505050565b826001600160a01b0316611bdd82611004565b6001600160a01b031614611c035760405162461bcd60e51b815260040161092b90613090565b6001600160a01b038216611c295760405162461bcd60e51b815260040161092b90612d5b565b611c34838383612065565b611c3f600082611ad7565b6001600160a01b0383166000908152600360205260408120805460019290611c68908490613424565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c969084906133d9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610b708282604051806020016040528060008152506120ee565b604080516001808252818301909252600091816020015b611d30612760565b815260200190600190039081611d285790505090508181600081518110611d6757634e487b7160e01b600052603260045260246000fd5b6020026020010151602001906001600160601b031690816001600160601b0316815250508281600081518110611dad57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160a01b0390911690526116058482612121565b6000611dda82611004565b9050611de881600084612065565b611df3600083611ad7565b6001600160a01b0381166000908152600360205260408120805460019290611e1c908490613424565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ed3848484611bca565b611edf84848484612288565b6116055760405162461bcd60e51b815260040161092b90612c57565b6060600e805461095f90613467565b606081611f2f57506040805180820190915260018152600360fc1b60208201526108e7565b8160005b8115611f595780611f43816134a2565b9150611f529050600a836133f1565b9150611f33565b60008167ffffffffffffffff811115611f8257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611fac576020820181803683370190505b5090505b8415611bc257611fc1600183613424565b9150611fce600a866134bd565b611fd99060306133d9565b60f81b818381518110611ffc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061201e600a866133f1565b9450611fb0565b60006001600160e01b031982166380ac58cd60e01b148061205657506001600160e01b03198216635b5e139f60e01b145b806108e457506108e4826123a3565b612070838383610ab8565b6001600160a01b03831661208c57612087816123bc565b6120af565b816001600160a01b0316836001600160a01b0316146120af576120af8382612400565b6001600160a01b0382166120cb576120c68161249d565b610ab8565b826001600160a01b0316826001600160a01b031614610ab857610ab88282612576565b6120f883836125ba565b6121056000848484612288565b610ab85760405162461bcd60e51b815260040161092b90612c57565b60005b815181101561227d5760006001600160a01b031682828151811061215857634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b0316141561218b5760405162461bcd60e51b815260040161092b9061331e565b8181815181106121ab57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b0316600014156121e05760405162461bcd60e51b815260040161092b90612e70565b6000838152600a60205260409020825183908390811061221057634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018101845560009384529282902081519301805491909201516001600160601b0316600160a01b026001600160a01b039384166001600160a01b03199092169190911790921691909117905580612275816134a2565b915050612124565b50610b708282612699565b600061229c846001600160a01b03166126d6565b1561239857836001600160a01b031663150b7a026122b8611ab6565b8786866040518563ffffffff1660e01b81526004016122da9493929190612b35565b602060405180830381600087803b1580156122f457600080fd5b505af1925050508015612324575060408051601f3d908101601f19168201909252612321918101906129b2565b60015b61237e573d808015612352576040519150601f19603f3d011682016040523d82523d6000602084013e612357565b606091505b5080516123765760405162461bcd60e51b815260040161092b90612c57565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bc2565b506001949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161240d84611047565b6124179190613424565b60008381526007602052604090205490915080821461246a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906124af90600190613424565b600083815260096020526040812054600880549394509092849081106124e557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061251457634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061255a57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061258183611047565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166125e05760405162461bcd60e51b815260040161092b90612fda565b6125e981611aba565b156126065760405162461bcd60e51b815260040161092b90612cef565b61261260008383612065565b6001600160a01b038216600090815260036020526040812080546001929061263b9084906133d9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df82826040516126ca9291906133ac565b60405180910390a15050565b3b151590565b8280546126e890613467565b90600052602060002090601f01602090048101928261270a5760008555612750565b82601f1061272357805160ff1916838001178555612750565b82800160010185558215612750579182015b82811115612750578251825591602001919060010190612735565b5061275c929150612777565b5090565b604080518082019091526000808252602082015290565b5b8082111561275c5760008155600101612778565b600067ffffffffffffffff808411156127a7576127a76134fd565b604051601f8501601f1916810160200182811182821017156127cb576127cb6134fd565b6040528481529150818385018610156127e357600080fd5b8484602083013760006020868301015250509392505050565b803580151581146108e757600080fd5b60006020828403121561281d578081fd5b813561189d81613513565b6000806040838503121561283a578081fd5b823561284581613513565b9150602083013561285581613513565b809150509250929050565b600080600060608486031215612874578081fd5b833561287f81613513565b9250602084013561288f81613513565b929592945050506040919091013590565b600080600080608085870312156128b5578081fd5b84356128c081613513565b935060208501356128d081613513565b925060408501359150606085013567ffffffffffffffff8111156128f2578182fd5b8501601f81018713612902578182fd5b6129118782356020840161278c565b91505092959194509250565b6000806040838503121561292f578182fd5b823561293a81613513565b9150612948602084016127fc565b90509250929050565b60008060408385031215612963578182fd5b823561296e81613513565b946020939093013593505050565b60006020828403121561298d578081fd5b61189d826127fc565b6000602082840312156129a7578081fd5b813561189d81613528565b6000602082840312156129c3578081fd5b815161189d81613528565b6000602082840312156129df578081fd5b813567ffffffffffffffff8111156129f5578182fd5b8201601f81018413612a05578182fd5b611bc28482356020840161278c565b600060208284031215612a25578081fd5b5035919050565b60008060408385031215612a3e578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b83811015612a9957815180516001600160a01b031688528301516001600160601b03168388015260409096019590820190600101612a60565b509495945050505050565b60008151808452612abc81602086016020860161343b565b601f01601f19169290920160200192915050565b60008351612ae281846020880161343b565b835190830190612af681836020880161343b565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b039290921682526001600160601b0316602082015260400190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b6890830184612aa4565b9695505050505050565b60006020825261189d6020830184612a4d565b6020808252825182820181905260009190848201906040850190845b81811015612bbd57835183529284019291840191600101612ba1565b50909695505050505050565b901515815260200190565b60006020825261189d6020830184612aa4565b6020808252600b908201526a14d85b19481c185d5cd95960aa1b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252818101527f45786365656473206d6178696d756d204d756c74695061737320737570706c79604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602e908201527f596f752063616e206d696e74206d696e696d756d20312c206d6178696d756d2060408201526d3230204d756c746950617373657360901b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f526f79616c74792076616c75652073686f756c6420626520706f736974697665604082015260600190565b60208082526025908201527f4d756c746950617373206d696e74696e672068617320616c7265616479207374604082015264185c9d195960da1b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526016908201527514d85b19481a185cc8185b1c9958591e48195b99195960521b604082015260600190565b60208082526019908201527f45746865722073656e74206973206e6f7420636f727265637400000000000000604082015260600190565b60208082526025908201527f4f6e652063616e6e6f74206275726e2077686174206f6e6520646f6573206e6f6040820152643a1037bbb760d91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b60208082526021908201527f45786365656473207265736572766564204d756c74695061737320737570706c6040820152607960f81b606082015260800190565b602080825260119082015270135a5b9d1a5b99c81a185cc8195b991959607a1b604082015260600190565b6020808252601b908201527f526563697069656e742073686f756c642062652070726573656e740000000000604082015260600190565b6020808252601a908201527f4275726e696e67206973206e6f742079657420616c6c6f776564000000000000604082015260600190565b90815260200190565b9182526001600160a01b0316602082015260400190565b600083825260406020830152611bc26040830184612a4d565b6001600160601b0391909116815260200190565b600082198211156133ec576133ec6134d1565b500190565b600082613400576134006134e7565b500490565b600081600019048311821515161561341f5761341f6134d1565b500290565b600082821015613436576134366134d1565b500390565b60005b8381101561345657818101518382015260200161343e565b838111156116055750506000910152565b60028104600182168061347b57607f821691505b6020821081141561349c57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156134b6576134b66134d1565b5060010190565b6000826134cc576134cc6134e7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611a8857600080fd5b6001600160e01b031981168114611a8857600080fdfea2646970667358221220a9c690a5def6eb2a469d2453180f7af0e55da04737e5c7d115a566f9c5f225b264736f6c6343000800003368747470733a2f2f656e7469746965737774662e6865726f6b756170702e636f6d2f6170692f746f6b656e2f68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d6652375764725a63666968725a5346557158577a364c57324e5a58447a7539566a7431577a5a447a6b34793500000000000000000000000094dc920901b6221562ddf07271aadef439a84ead000000000000000000000000f7cf12a1c795ebe2533c533df5308a4bbd08634e0000000000000000000000004b5e97c105fa665cc3a8ce1c2fb6b15e8a9935e00000000000000000000000009f8a5bcef1916ee9c155284be040b4c0072ee2b500000000000000000000000092458488e7edd18cf5b7a9ad75b5a623314d2c07

Deployed Bytecode

0x6080604052600436106102c95760003560e01c80638924af7411610175578063b88d4fde116100dc578063d0b8512111610095578063e985e9c51161006f578063e985e9c514610843578063f1dcfce114610863578063f2fde38b14610883578063fef82b44146108a3576102c9565b8063d0b85121146107f9578063dea2a95f14610819578063e8a3d4851461082e576102c9565b8063b88d4fde14610739578063bc548db914610759578063c4cc3cba14610779578063c7e7f6cb1461078c578063c87b56dd146107ac578063cad96cca146107cc576102c9565b806398d5fdca1161012e57806398d5fdca1461068f5780639c882a3e146106a45780639e646053146106c4578063a017ee27146106e4578063a16b12a414610704578063a22cb46514610719576102c9565b80638924af74146105e05780638da5cb5b1461060e578063911927651461062357806391b7f5ed1461064557806395d89b411461066557806396532d1c1461067a576102c9565b8063395d1016116102345780635b8d02d7116101ed57806364c09d46116101c757806364c09d461461058e57806370a08231146105a3578063715018a6146105c3578063853828b6146105d8576102c9565b80635b8d02d7146105445780635d08c1ae146105595780636352211e1461056e576102c9565b8063395d10161461047757806342842e0e1461049757806342966c68146104b7578063438b6300146104d75780634f6ccce71461050457806355f804b314610524576102c9565b80630cd3a538116102865780630cd3a538146103b55780630f133660146103d557806310969523146103f557806318160ddd1461041557806323b872dd146104375780632f745c5914610457576102c9565b806301ffc9a7146102ce57806302329a291461030457806306fdde0314610326578063081812fc14610348578063095ea7b31461037557806309b0898714610395575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612996565b6108b8565b6040516102fb9190612bc9565b60405180910390f35b34801561031057600080fd5b5061032461031f36600461297c565b6108ec565b005b34801561033257600080fd5b5061033b610950565b6040516102fb9190612bd4565b34801561035457600080fd5b50610368610363366004612a14565b6109e2565b6040516102fb9190612aff565b34801561038157600080fd5b50610324610390366004612951565b610a25565b3480156103a157600080fd5b506103246103b036600461280c565b610abd565b3480156103c157600080fd5b506103246103d03660046129ce565b610b1e565b3480156103e157600080fd5b506103246103f036600461297c565b610b74565b34801561040157600080fd5b506103246104103660046129ce565b610bcd565b34801561042157600080fd5b5061042a610c1f565b6040516102fb919061338c565b34801561044357600080fd5b50610324610452366004612860565b610c25565b34801561046357600080fd5b5061042a610472366004612951565b610c5d565b34801561048357600080fd5b50610324610492366004612a14565b610caf565b3480156104a357600080fd5b506103246104b2366004612860565b610db5565b3480156104c357600080fd5b506103246104d2366004612a14565b610dd0565b3480156104e357600080fd5b506104f76104f236600461280c565b610e7b565b6040516102fb9190612b85565b34801561051057600080fd5b5061042a61051f366004612a14565b610f39565b34801561053057600080fd5b5061032461053f3660046129ce565b610f94565b34801561055057600080fd5b50610368610fe6565b34801561056557600080fd5b506102ee610ff5565b34801561057a57600080fd5b50610368610589366004612a14565b611004565b34801561059a57600080fd5b506102ee611039565b3480156105af57600080fd5b5061042a6105be36600461280c565b611047565b3480156105cf57600080fd5b5061032461108b565b6103246110d6565b3480156105ec57600080fd5b506106006105fb366004612a2c565b61129c565b6040516102fb929190612b13565b34801561061a57600080fd5b506103686112e5565b34801561062f57600080fd5b506106386112f4565b6040516102fb91906133c5565b34801561065157600080fd5b50610324610660366004612a14565b6112fa565b34801561067157600080fd5b5061033b61133e565b34801561068657600080fd5b506102ee61134d565b34801561069b57600080fd5b5061042a611356565b3480156106b057600080fd5b506103246106bf36600461280c565b61135c565b3480156106d057600080fd5b506103246106df36600461297c565b6113bd565b3480156106f057600080fd5b506103246106ff36600461280c565b61140f565b34801561071057600080fd5b5061033b611470565b34801561072557600080fd5b5061032461073436600461291d565b6114fe565b34801561074557600080fd5b506103246107543660046128a0565b6115cc565b34801561076557600080fd5b5061032461077436600461280c565b61160b565b610324610787366004612a14565b61166c565b34801561079857600080fd5b506103246107a736600461280c565b6117c0565b3480156107b857600080fd5b5061033b6107c7366004612a14565b611821565b3480156107d857600080fd5b506107ec6107e7366004612a14565b6118a4565b6040516102fb9190612b72565b34801561080557600080fd5b5061032461081436600461280c565b611933565b34801561082557600080fd5b5061042a611994565b34801561083a57600080fd5b5061033b611999565b34801561084f57600080fd5b506102ee61085e366004612828565b6119a8565b34801561086f57600080fd5b5061032461087e366004612a14565b6119d6565b34801561088f57600080fd5b5061032461089e36600461280c565b611a1a565b3480156108af57600080fd5b5061042a611a8b565b60006001600160e01b03198216631131d2f360e21b14156108db575060016108e7565b6108e482611a91565b90505b919050565b6108f4611ab6565b6001600160a01b03166109056112e5565b6001600160a01b0316146109345760405162461bcd60e51b815260040161092b9061305b565b60405180910390fd5b60118054911515620100000262ff000019909216919091179055565b60606000805461095f90613467565b80601f016020809104026020016040519081016040528092919081815260200182805461098b90613467565b80156109d85780601f106109ad576101008083540402835291602001916109d8565b820191906000526020600020905b8154815290600101906020018083116109bb57829003601f168201915b5050505050905090565b60006109ed82611aba565b610a095760405162461bcd60e51b815260040161092b9061300f565b506000908152600460205260409020546001600160a01b031690565b6000610a3082611004565b9050806001600160a01b0316836001600160a01b03161415610a645760405162461bcd60e51b815260040161092b90613128565b806001600160a01b0316610a76611ab6565b6001600160a01b03161480610a925750610a928161085e611ab6565b610aae5760405162461bcd60e51b815260040161092b90612eea565b610ab88383611ad7565b505050565b610ac5611ab6565b6001600160a01b0316610ad66112e5565b6001600160a01b031614610afc5760405162461bcd60e51b815260040161092b9061305b565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b610b26611ab6565b6001600160a01b0316610b376112e5565b6001600160a01b031614610b5d5760405162461bcd60e51b815260040161092b9061305b565b8051610b7090600d9060208401906126dc565b5050565b610b7c611ab6565b6001600160a01b0316610b8d6112e5565b6001600160a01b031614610bb35760405162461bcd60e51b815260040161092b9061305b565b601180549115156101000261ff0019909216919091179055565b610bd5611ab6565b6001600160a01b0316610be66112e5565b6001600160a01b031614610c0c5760405162461bcd60e51b815260040161092b9061305b565b8051610b7090600c9060208401906126dc565b60085490565b610c36610c30611ab6565b82611b45565b610c525760405162461bcd60e51b815260040161092b90613215565b610ab8838383611bca565b6000610c6883611047565b8210610c865760405162461bcd60e51b815260040161092b90612c0c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610cb7611ab6565b6001600160a01b0316610cc86112e5565b6001600160a01b031614610cee5760405162461bcd60e51b815260040161092b9061305b565b6000610cf8610c1f565b9050600f5482610d06610c1f565b610d1091906133d9565b1115610d2e5760405162461bcd60e51b815260040161092b906132b2565b60115462010000900460ff161515600114610d5b5760405162461bcd60e51b815260040161092b90612ea5565b60005b82811015610ab85781610d81610d726112e5565b610d7c84846133d9565b611cf7565b610da2610d8e83836133d9565b6013546001600160a01b03166103e8611d11565b5080610dad816134a2565b915050610d5e565b610ab8838383604051806020016040528060008152506115cc565b60115460ff610100909104161515600114610dfd5760405162461bcd60e51b815260040161092b90613355565b610e08610c30611ab6565b610e245760405162461bcd60e51b815260040161092b906131d0565b610e2d81611dcf565b3360008181526012602052604090819020839055517fe861e0b12c283de7ca3f4d68d33f3bfc6fc01e4896cddf05e52b8f2a1e548e2491610e7091849190613395565b60405180910390a150565b60606000610e8883611047565b905060008167ffffffffffffffff811115610eb357634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610edc578160200160208202803683370190505b50905060005b82811015610f3157610ef48582610c5d565b828281518110610f1457634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610f29816134a2565b915050610ee2565b509392505050565b6000610f43610c1f565b8210610f615760405162461bcd60e51b815260040161092b90613266565b60088281548110610f8257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b610f9c611ab6565b6001600160a01b0316610fad6112e5565b6001600160a01b031614610fd35760405162461bcd60e51b815260040161092b9061305b565b8051610b7090600e9060208401906126dc565b6013546001600160a01b031681565b60115462010000900460ff1681565b6000818152600260205260408120546001600160a01b0316806108e45760405162461bcd60e51b815260040161092b90612f91565b601154610100900460ff1681565b60006001600160a01b03821661106f5760405162461bcd60e51b815260040161092b90612f47565b506001600160a01b031660009081526003602052604090205490565b611093611ab6565b6001600160a01b03166110a46112e5565b6001600160a01b0316146110ca5760405162461bcd60e51b815260040161092b9061305b565b6110d46000611e76565b565b6110de611ab6565b6001600160a01b03166110ef6112e5565b6001600160a01b0316146111155760405162461bcd60e51b815260040161092b9061305b565b60006064611124476001613405565b61112e91906133f1565b90506000606461113f476003613405565b61114991906133f1565b90506000606461115a476003613405565b61116491906133f1565b905060006064611175476003613405565b61117f91906133f1565b90506000606461119047605a613405565b61119a91906133f1565b6014546040519192506001600160a01b03169086156108fc029087906000818181858888f193505050506111cd57600080fd5b6015546040516001600160a01b039091169085156108fc029086906000818181858888f193505050506111ff57600080fd5b6016546040516001600160a01b039091169084156108fc029085906000818181858888f1935050505061123157600080fd5b6017546040516001600160a01b039091169083156108fc029084906000818181858888f1935050505061126357600080fd5b6018546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505061129557600080fd5b5050505050565b600a60205281600052604060002081815481106112b857600080fd5b6000918252602090912001546001600160a01b0381169250600160a01b90046001600160601b0316905082565b600b546001600160a01b031690565b6103e881565b611302611ab6565b6001600160a01b03166113136112e5565b6001600160a01b0316146113395760405162461bcd60e51b815260040161092b9061305b565b601055565b60606001805461095f90613467565b60115460ff1681565b60105490565b611364611ab6565b6001600160a01b03166113756112e5565b6001600160a01b03161461139b5760405162461bcd60e51b815260040161092b9061305b565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6113c5611ab6565b6001600160a01b03166113d66112e5565b6001600160a01b0316146113fc5760405162461bcd60e51b815260040161092b9061305b565b6011805460ff1916911515919091179055565b611417611ab6565b6001600160a01b03166114286112e5565b6001600160a01b03161461144e5760405162461bcd60e51b815260040161092b9061305b565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b600c805461147d90613467565b80601f01602080910402602001604051908101604052809291908181526020018280546114a990613467565b80156114f65780601f106114cb576101008083540402835291602001916114f6565b820191906000526020600020905b8154815290600101906020018083116114d957829003601f168201915b505050505081565b611506611ab6565b6001600160a01b0316826001600160a01b031614156115375760405162461bcd60e51b815260040161092b90612d9f565b8060056000611544611ab6565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611588611ab6565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115c09190612bc9565b60405180910390a35050565b6115dd6115d7611ab6565b83611b45565b6115f95760405162461bcd60e51b815260040161092b90613215565b61160584848484611ec8565b50505050565b611613611ab6565b6001600160a01b03166116246112e5565b6001600160a01b03161461164a5760405162461bcd60e51b815260040161092b9061305b565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b60115460ff1615156001146116935760405162461bcd60e51b815260040161092b906132f3565b61271061169e610c1f565b106116bb5760405162461bcd60e51b815260040161092b90613169565b60115462010000900460ff16156116e45760405162461bcd60e51b815260040161092b90612be7565b6000811180156116f5575060148111155b6117115760405162461bcd60e51b815260040161092b90612dd6565b6127108161171d610c1f565b61172791906133d9565b11156117455760405162461bcd60e51b815260040161092b90612d26565b806010546117539190613405565b3410156117725760405162461bcd60e51b815260040161092b90613199565b60005b81811015610b70576000611787610c1f565b90506117933382611cf7565b6013546117ad9082906001600160a01b03166103e8611d11565b50806117b8816134a2565b915050611775565b6117c8611ab6565b6001600160a01b03166117d96112e5565b6001600160a01b0316146117ff5760405162461bcd60e51b815260040161092b9061305b565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b606061182c82611aba565b6118485760405162461bcd60e51b815260040161092b906130d9565b6000611852611efb565b90506000815111611872576040518060200160405280600081525061189d565b8061187c84611f0a565b60405160200161188d929190612ad0565b6040516020818303038152906040525b9392505050565b6060600a6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561192857600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b0316818301528252600190920191016118d9565b505050509050919050565b61193b611ab6565b6001600160a01b031661194c6112e5565b6001600160a01b0316146119725760405162461bcd60e51b815260040161092b9061305b565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b601481565b6060600d805461095f90613467565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6119de611ab6565b6001600160a01b03166119ef6112e5565b6001600160a01b031614611a155760405162461bcd60e51b815260040161092b9061305b565b600f55565b611a22611ab6565b6001600160a01b0316611a336112e5565b6001600160a01b031614611a595760405162461bcd60e51b815260040161092b9061305b565b6001600160a01b038116611a7f5760405162461bcd60e51b815260040161092b90612ca9565b611a8881611e76565b50565b61271081565b60006001600160e01b0319821663780e9d6360e01b14806108e457506108e482612025565b3390565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b0c82611004565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b5082611aba565b611b6c5760405162461bcd60e51b815260040161092b90612e24565b6000611b7783611004565b9050806001600160a01b0316846001600160a01b03161480611bb25750836001600160a01b0316611ba7846109e2565b6001600160a01b0316145b80611bc25750611bc281856119a8565b949350505050565b826001600160a01b0316611bdd82611004565b6001600160a01b031614611c035760405162461bcd60e51b815260040161092b90613090565b6001600160a01b038216611c295760405162461bcd60e51b815260040161092b90612d5b565b611c34838383612065565b611c3f600082611ad7565b6001600160a01b0383166000908152600360205260408120805460019290611c68908490613424565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c969084906133d9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610b708282604051806020016040528060008152506120ee565b604080516001808252818301909252600091816020015b611d30612760565b815260200190600190039081611d285790505090508181600081518110611d6757634e487b7160e01b600052603260045260246000fd5b6020026020010151602001906001600160601b031690816001600160601b0316815250508281600081518110611dad57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160a01b0390911690526116058482612121565b6000611dda82611004565b9050611de881600084612065565b611df3600083611ad7565b6001600160a01b0381166000908152600360205260408120805460019290611e1c908490613424565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ed3848484611bca565b611edf84848484612288565b6116055760405162461bcd60e51b815260040161092b90612c57565b6060600e805461095f90613467565b606081611f2f57506040805180820190915260018152600360fc1b60208201526108e7565b8160005b8115611f595780611f43816134a2565b9150611f529050600a836133f1565b9150611f33565b60008167ffffffffffffffff811115611f8257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611fac576020820181803683370190505b5090505b8415611bc257611fc1600183613424565b9150611fce600a866134bd565b611fd99060306133d9565b60f81b818381518110611ffc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061201e600a866133f1565b9450611fb0565b60006001600160e01b031982166380ac58cd60e01b148061205657506001600160e01b03198216635b5e139f60e01b145b806108e457506108e4826123a3565b612070838383610ab8565b6001600160a01b03831661208c57612087816123bc565b6120af565b816001600160a01b0316836001600160a01b0316146120af576120af8382612400565b6001600160a01b0382166120cb576120c68161249d565b610ab8565b826001600160a01b0316826001600160a01b031614610ab857610ab88282612576565b6120f883836125ba565b6121056000848484612288565b610ab85760405162461bcd60e51b815260040161092b90612c57565b60005b815181101561227d5760006001600160a01b031682828151811061215857634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b0316141561218b5760405162461bcd60e51b815260040161092b9061331e565b8181815181106121ab57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b0316600014156121e05760405162461bcd60e51b815260040161092b90612e70565b6000838152600a60205260409020825183908390811061221057634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018101845560009384529282902081519301805491909201516001600160601b0316600160a01b026001600160a01b039384166001600160a01b03199092169190911790921691909117905580612275816134a2565b915050612124565b50610b708282612699565b600061229c846001600160a01b03166126d6565b1561239857836001600160a01b031663150b7a026122b8611ab6565b8786866040518563ffffffff1660e01b81526004016122da9493929190612b35565b602060405180830381600087803b1580156122f457600080fd5b505af1925050508015612324575060408051601f3d908101601f19168201909252612321918101906129b2565b60015b61237e573d808015612352576040519150601f19603f3d011682016040523d82523d6000602084013e612357565b606091505b5080516123765760405162461bcd60e51b815260040161092b90612c57565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bc2565b506001949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161240d84611047565b6124179190613424565b60008381526007602052604090205490915080821461246a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906124af90600190613424565b600083815260096020526040812054600880549394509092849081106124e557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061251457634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061255a57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061258183611047565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166125e05760405162461bcd60e51b815260040161092b90612fda565b6125e981611aba565b156126065760405162461bcd60e51b815260040161092b90612cef565b61261260008383612065565b6001600160a01b038216600090815260036020526040812080546001929061263b9084906133d9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df82826040516126ca9291906133ac565b60405180910390a15050565b3b151590565b8280546126e890613467565b90600052602060002090601f01602090048101928261270a5760008555612750565b82601f1061272357805160ff1916838001178555612750565b82800160010185558215612750579182015b82811115612750578251825591602001919060010190612735565b5061275c929150612777565b5090565b604080518082019091526000808252602082015290565b5b8082111561275c5760008155600101612778565b600067ffffffffffffffff808411156127a7576127a76134fd565b604051601f8501601f1916810160200182811182821017156127cb576127cb6134fd565b6040528481529150818385018610156127e357600080fd5b8484602083013760006020868301015250509392505050565b803580151581146108e757600080fd5b60006020828403121561281d578081fd5b813561189d81613513565b6000806040838503121561283a578081fd5b823561284581613513565b9150602083013561285581613513565b809150509250929050565b600080600060608486031215612874578081fd5b833561287f81613513565b9250602084013561288f81613513565b929592945050506040919091013590565b600080600080608085870312156128b5578081fd5b84356128c081613513565b935060208501356128d081613513565b925060408501359150606085013567ffffffffffffffff8111156128f2578182fd5b8501601f81018713612902578182fd5b6129118782356020840161278c565b91505092959194509250565b6000806040838503121561292f578182fd5b823561293a81613513565b9150612948602084016127fc565b90509250929050565b60008060408385031215612963578182fd5b823561296e81613513565b946020939093013593505050565b60006020828403121561298d578081fd5b61189d826127fc565b6000602082840312156129a7578081fd5b813561189d81613528565b6000602082840312156129c3578081fd5b815161189d81613528565b6000602082840312156129df578081fd5b813567ffffffffffffffff8111156129f5578182fd5b8201601f81018413612a05578182fd5b611bc28482356020840161278c565b600060208284031215612a25578081fd5b5035919050565b60008060408385031215612a3e578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b83811015612a9957815180516001600160a01b031688528301516001600160601b03168388015260409096019590820190600101612a60565b509495945050505050565b60008151808452612abc81602086016020860161343b565b601f01601f19169290920160200192915050565b60008351612ae281846020880161343b565b835190830190612af681836020880161343b565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b039290921682526001600160601b0316602082015260400190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b6890830184612aa4565b9695505050505050565b60006020825261189d6020830184612a4d565b6020808252825182820181905260009190848201906040850190845b81811015612bbd57835183529284019291840191600101612ba1565b50909695505050505050565b901515815260200190565b60006020825261189d6020830184612aa4565b6020808252600b908201526a14d85b19481c185d5cd95960aa1b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252818101527f45786365656473206d6178696d756d204d756c74695061737320737570706c79604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602e908201527f596f752063616e206d696e74206d696e696d756d20312c206d6178696d756d2060408201526d3230204d756c746950617373657360901b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f526f79616c74792076616c75652073686f756c6420626520706f736974697665604082015260600190565b60208082526025908201527f4d756c746950617373206d696e74696e672068617320616c7265616479207374604082015264185c9d195960da1b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526016908201527514d85b19481a185cc8185b1c9958591e48195b99195960521b604082015260600190565b60208082526019908201527f45746865722073656e74206973206e6f7420636f727265637400000000000000604082015260600190565b60208082526025908201527f4f6e652063616e6e6f74206275726e2077686174206f6e6520646f6573206e6f6040820152643a1037bbb760d91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b60208082526021908201527f45786365656473207265736572766564204d756c74695061737320737570706c6040820152607960f81b606082015260800190565b602080825260119082015270135a5b9d1a5b99c81a185cc8195b991959607a1b604082015260600190565b6020808252601b908201527f526563697069656e742073686f756c642062652070726573656e740000000000604082015260600190565b6020808252601a908201527f4275726e696e67206973206e6f742079657420616c6c6f776564000000000000604082015260600190565b90815260200190565b9182526001600160a01b0316602082015260400190565b600083825260406020830152611bc26040830184612a4d565b6001600160601b0391909116815260200190565b600082198211156133ec576133ec6134d1565b500190565b600082613400576134006134e7565b500490565b600081600019048311821515161561341f5761341f6134d1565b500290565b600082821015613436576134366134d1565b500390565b60005b8381101561345657818101518382015260200161343e565b838111156116055750506000910152565b60028104600182168061347b57607f821691505b6020821081141561349c57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156134b6576134b66134d1565b5060010190565b6000826134cc576134cc6134e7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611a8857600080fd5b6001600160e01b031981168114611a8857600080fdfea2646970667358221220a9c690a5def6eb2a469d2453180f7af0e55da04737e5c7d115a566f9c5f225b264736f6c63430008000033

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

00000000000000000000000094dc920901b6221562ddf07271aadef439a84ead000000000000000000000000f7cf12a1c795ebe2533c533df5308a4bbd08634e0000000000000000000000004b5e97c105fa665cc3a8ce1c2fb6b15e8a9935e00000000000000000000000009f8a5bcef1916ee9c155284be040b4c0072ee2b500000000000000000000000092458488e7edd18cf5b7a9ad75b5a623314d2c07

-----Decoded View---------------
Arg [0] : _t1 (address): 0x94DC920901b6221562DDF07271AaDeF439A84Ead
Arg [1] : _t2 (address): 0xF7Cf12a1c795EBE2533c533dF5308a4bBd08634e
Arg [2] : _t3 (address): 0x4B5E97C105FA665cc3A8ce1C2fB6B15e8A9935E0
Arg [3] : _t4 (address): 0x9F8A5BCEf1916eE9c155284bE040b4c0072EE2b5
Arg [4] : _t5 (address): 0x92458488e7Edd18cf5b7a9Ad75b5a623314d2c07

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000094dc920901b6221562ddf07271aadef439a84ead
Arg [1] : 000000000000000000000000f7cf12a1c795ebe2533c533df5308a4bbd08634e
Arg [2] : 0000000000000000000000004b5e97c105fa665cc3a8ce1c2fb6b15e8a9935e0
Arg [3] : 0000000000000000000000009f8a5bcef1916ee9c155284be040b4c0072ee2b5
Arg [4] : 00000000000000000000000092458488e7edd18cf5b7a9ad75b5a623314d2c07


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.