ETH Price: $3,362.09 (-0.64%)
Gas: 1 Gwei

Token

DebtCity (BANKERS)
 

Overview

Max Total Supply

1,063 BANKERS

Holders

104

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
chumwithnodick.eth
Balance
1 BANKERS
0xB2Aadf6BFc0a5213acb9c279394B46F50aEa65a3
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
DebtCity

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : DebtCity.sol
// contracts/DebtCity.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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";
import "./IPaper.sol";
import "./DebtCityLibrary.sol";



contract DebtCity is ERC721Enumerable, Ownable, RoyaltiesV2Impl {


/*



██████╗░███████╗██████╗░████████╗░█████╗░██╗████████╗██╗░░░██╗
██╔══██╗██╔════╝██╔══██╗╚══██╔══╝██╔══██╗██║╚══██╔══╝╚██╗░██╔╝
██║░░██║█████╗░░██████╦╝░░░██║░░░██║░░╚═╝██║░░░██║░░░░╚████╔╝░
██║░░██║██╔══╝░░██╔══██╗░░░██║░░░██║░░██╗██║░░░██║░░░░░╚██╔╝░░
██████╔╝███████╗██████╦╝░░░██║░░░╚█████╔╝██║░░░██║░░░░░░██║░░░
╚═════╝░╚══════╝╚═════╝░░░░╚═╝░░░░╚════╝░╚═╝░░░╚═╝░░░░░░╚═╝░░░    



*/


    using DebtCityLibrary for uint8;

    mapping(string => bool) hashToMinted;
    mapping(uint256 => string) internal bankerIdToHash;

    uint256 MAX_SUPPLY = 4999;
    uint256 SEED_NONCE = 0;

    uint256 REMAINING_BOARD_MEMBERS = 25;
    uint256 REMAINING_DIRECTORS = 200;
    uint256 REMAINING_VPS = 800;
    uint256 REMAINING_ASSOCIATES = 1500;
    uint256 REMAINING_ANALYSTS = 2474;

    mapping(address => uint8) private _allowList;
    bool isAllowListActive = true;
    bool isMintActive = false;
    address payable public payableWallet;
    bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;

    uint256 public ethPrice = 0.079 ether;
    uint8 maxPerWallet = 2;

    struct PngTrait {
        string ttype;
        string name;
        string png;
        bool on;
    }

    mapping(uint8 => mapping(uint8 => PngTrait)) public traitData;
    uint16[][15] TIERS;

    string[] LETTERS = [
        "a",
        "b",
        "c",
        "d",
        "e",
        "f",
        "g",
        "h",
        "i",
        "j",
        "k",
        "l",
        "m",
        "n",
        "o",
        "p",
        "q",
        "r",
        "s",
        "t",
        "u",
        "v",
        "w",
        "x",
        "y",
        "z"
    ];

    address paperAddress;
    address _owner;

    constructor() ERC721("DebtCity", "BANKERS") {
        _owner = msg.sender;
        payableWallet = payable(address(0xBC590a5370cc163023cdC17e041967796174081B));

        // 9 skin vals
        TIERS[0] = [20, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1100];
        // 9 eye vals
        TIERS[1] = [1120, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1110];
        // 4 mouth vals
        TIERS[2] = [2500, 2500, 2500, 2500];
        // 4 shoes vals
        TIERS[3] = [2500, 2500, 2500, 2500];
        // 4 pants vals
        TIERS[4] = [2500, 2500, 2500, 2500];
        // 8 dress shirt vals
        TIERS[5] = [1250, 1250, 1250, 1250, 1250, 1250, 1250, 1250];
        // 4 glasses vals
        TIERS[6] = [2500, 2500, 2500, 2500];
        // 10 t-shirt vals
        TIERS[7] = [1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000];
        // 10 polo vals
        TIERS[8] = [1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000];
        // 6 tie vals
        TIERS[9] = [1675, 1665, 1665, 1665, 1665, 1665];
        // 7 vest vals
        TIERS[10] = [1432, 1428, 1428, 1428, 1428, 1428, 1428];
        // 5 jacket vals
        TIERS[11] = [2000, 2000, 2000, 2000, 2000];
        // 6 pock square vals
        TIERS[12] = [1675, 1665, 1665, 1665, 1665, 1665];
        // 9 hair vals
        TIERS[13] = [1120, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1110];
        // 5 watch vals
        TIERS[14] = [2500, 2500, 2500, 1250, 1250];
    }



    /** *********************************** **/
    /** ********* Minting Functions ******* **/
    /** *********************************** **/


    function rarityGen(uint256 _randinput, uint8 _rarityTier)
        internal
        view
        returns (uint8)
    {
        uint16 currentLowerBound = 0;
        for (uint8 i = 0; i < TIERS[_rarityTier].length; i++) {
            uint16 thisPercentage = TIERS[_rarityTier][i];
            if (
                _randinput >= currentLowerBound &&
                _randinput < currentLowerBound + thisPercentage
            ) return i;
            currentLowerBound = currentLowerBound + thisPercentage;
        }

        revert();
    }

    
    function hash(
        uint256 _t,
        address _a,
        uint256 _c
    ) internal returns (string memory) {
        require(_c < 10);

        // This will generate a 16 character string
        // The last 15 digits are random, the first is 1-5 depending on the random
        // banker style assigned to the token

        string memory currentHash = "";
        SEED_NONCE++; 

        uint16 randValue = uint16(
            uint256(
                keccak256(
                    abi.encodePacked(
                        block.timestamp,
                        block.difficulty,
                        _t,
                        _a,
                        _c,
                        SEED_NONCE
                    )
                )
            ) 
        );

        uint8 bstyle = getBankerStyle(randValue); // get a random banker style
        currentHash = string(abi.encodePacked(currentHash, bstyle.toString()));

        uint8 pindex = 0;
        bool willForceNoPolo = false;

        for (uint8 i = 0; i < 15; i++) {
            SEED_NONCE++;
            uint16 _randinput = uint16(
                uint256(
                    keccak256(
                        abi.encodePacked(
                            block.timestamp,
                            block.difficulty,
                            _t,
                            _a,
                            _c,
                            SEED_NONCE
                        )
                    )
                ) % 10000
            );

            uint8 randDigit = rarityGen(_randinput, i);
            uint8 traitVal = applyBankerRules(i, bstyle, randDigit, _randinput);


            if (bstyle == 1 && i == 4) pindex = traitVal; // keep track of pants colors for members
            else if (bstyle == 1 && i == 12) traitVal = pindex + 1;

            if (i == 7 && traitVal != 0) willForceNoPolo = true;
            if (i == 8 && willForceNoPolo) traitVal = 0;

            currentHash = string(
                abi.encodePacked(currentHash, traitVal.toString())
            );
        } 

        if (hashToMinted[currentHash]) return hash(_t, _a, _c + 1);

        return currentHash;
    }


    function mintInternal(uint8 quantity) internal {

        uint256 _totalSupply = totalSupply();
        require(_totalSupply + quantity < MAX_SUPPLY);
        require(!DebtCityLibrary.isContract(msg.sender));
        require(msg.value == (ethPrice * quantity));
        require(
            balanceOf(msg.sender) + quantity <= maxPerWallet,
            "exceeds max per wallet"
        );

        uint8 i = 0;
        uint256 newBankerId = _totalSupply;
        while (i < quantity) {
            uint256 bankerId = newBankerId + i;
            bankerIdToHash[bankerId] = hash(bankerId, msg.sender, 0);
            hashToMinted[bankerIdToHash[bankerId]] = true;
            _safeMint(msg.sender, bankerId);
            i ++;
        }
    }

    function mintBanker(uint8 quantity) external payable {
        require(isAllowListActive == false, "Only the allow list can mint right now");
        return mintInternal(quantity);
    }


    function mintAllowList(uint8 quantity) external payable {

        require(isAllowListActive, "Allow list is not active");
        require(quantity <= _allowList[msg.sender], "Exceeded max available to purchase");

        _allowList[msg.sender] -= quantity;
        mintInternal(quantity);
     }


    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        // hardcode approval so that users don't have to waste gas approving
        if (_msgSender() != address(paperAddress)){
            require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        }
        _transfer(from, to, tokenId);
    }


    


    /** *********************************** **/
    /** ******* Internal Functions ******** **/
    /** *********************************** **/


    function applyBankerRules(uint8 i, uint8 bstyle, uint8 randDigit, uint16 bigRandom) pure internal returns (uint8) {

        if (i == 6 && bigRandom % 2 == 0) randDigit = 0;
        else if (i == 7 || i == 8) {
            if ((bstyle == 5 && bigRandom % 2 == 0) || bstyle < 5) randDigit = 0;
        } 
        else if (i == 9) {
            if (bstyle  == 5 || bstyle == 4 || (bstyle == 2 && bigRandom % 2 == 0)) randDigit = 0;
            if (bstyle == 3 && randDigit == 0) randDigit = 1;
        }
        else if (i == 10) {
            if (bstyle < 4 || bigRandom % 2 == 0) randDigit = 0;
        }
        else if (i == 11) {
            if (bstyle > 2) randDigit = 0;
        }
        else if (i == 12 && bstyle > 1) randDigit = 0;
        else if (i == 13 && bigRandom % 3 == 0) randDigit = 0;
        else if(i == 14 && (bigRandom % 2 == 0 || bstyle == 5)) randDigit = 0; 


        return randDigit;

    }
    



    function getBankerStyle(uint16 rando) internal returns (uint8) {     

        uint16 randVal = (rando & 0xFFFF);

        if (REMAINING_BOARD_MEMBERS > 0 && randVal % 200 == 0) { // ~0.5 % chance
            REMAINING_BOARD_MEMBERS--;
            return 1;
        }

        if (REMAINING_DIRECTORS > 0 && randVal % 25 == 0) { // ~4 % chance
            REMAINING_DIRECTORS--;
            return 2;
        }

        if (REMAINING_VPS > 0 && randVal % 6 == 0) { // ~16 % chance
            REMAINING_VPS--;
            return 3;
        }

        if (REMAINING_ASSOCIATES > 0 && randVal % 3 == 0) { // ~30 % chance
            REMAINING_ASSOCIATES--;
            return 4;
        } 

        if (REMAINING_ANALYSTS > 0) { // assign analyst if available
            REMAINING_ANALYSTS--;
            return 5;
        } 


        // else find the lowest ranking available banker type 
        uint8 res = getLowestType();
        return res;

    }


    function getLowestType() internal returns (uint8) {
        if (REMAINING_ANALYSTS > 0) {
            REMAINING_ANALYSTS--;
            return 5;
        }

        if (REMAINING_ASSOCIATES > 0) {
            REMAINING_ASSOCIATES--;
            return 4;
        }

        if (REMAINING_VPS > 0) {
            REMAINING_VPS--;
            return 3;
        }

        if (REMAINING_DIRECTORS > 0) {
            REMAINING_DIRECTORS--;
            return 2;
        }

        if (REMAINING_BOARD_MEMBERS > 0) {
            REMAINING_BOARD_MEMBERS--;
            return 1;
        }

        return 0;
    }  

    function getJobString(uint8 job) internal pure returns (string memory) {
        if (job == 5) return "analyst";
        else if (job == 4) return "associate";
        else if (job == 3) return "vice_president";
        else if (job == 2) return "director";
        else if (job == 1) return "board_member";
        return "none";
    }   




    /** *********************************** **/
    /** ********* Public Getters ********** **/
    /** *********************************** **/
    
    function getBankersRemaining() public view returns (uint256) {
        return (REMAINING_BOARD_MEMBERS + REMAINING_DIRECTORS + REMAINING_VPS + REMAINING_ASSOCIATES + REMAINING_ANALYSTS); 
    }


    function hashToMetadata(string memory _hash)
        public
        view
        returns (string memory)
    {
        uint8 job = DebtCityLibrary.parseInt(
            DebtCityLibrary.substring(_hash, 0, 1)
        );

        string memory metadataString = string(
            abi.encodePacked(
                '{"trait_type":"job_title","value":"',
                getJobString(job), '"},'
            )
        );

        for (uint8 i = 0; i < 15; i++) {
            uint8 hashIndex = i + 1;
            uint8 thisTraitIndex = DebtCityLibrary.parseInt(
                DebtCityLibrary.substring(_hash, hashIndex, hashIndex + 1)
            );

            PngTrait memory t = traitData[i][thisTraitIndex];

            if (t.on) {

                if (i != 0) metadataString = string(abi.encodePacked(metadataString, ","));

                metadataString = string(
                    abi.encodePacked(
                        metadataString,
                        '{"trait_type":"',
                        t.ttype,
                        '","value":"',
                        t.name,
                        '"}'
                    )
                );
            }
        }

        return string(abi.encodePacked("[", metadataString, "]"));
    }


    function tokenURI(uint256 _bankerId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(_bankerId));

        string memory bankerHash = _bankerIdToHash(_bankerId);

        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    DebtCityLibrary.encode(
                        bytes(
                            string(
                                abi.encodePacked(
                                    '{"name": "DebtCity #',
                                    DebtCityLibrary.toString(_bankerId),
                                    '", "description": "DebtCity is the first on-chain economic simulator. No IPFS, no API. Just an Ethereum blockchain simulation of finance, investment, and degeneracy", "image": "data:image/svg+xml;base64,',
                                    DebtCityLibrary.encode(
                                        bytes(outputFullSVG(bankerHash))
                                    ),
                                    '","attributes":',
                                    hashToMetadata(bankerHash),
                                    "}"
                                )
                            )
                        )
                    )
                )
            );
    }


    function _bankerIdToHash(uint256 _bankerId)
        public
        view
        returns (string memory)
    {
        return bankerIdToHash[_bankerId];
    }


    function getPayForBanker(uint256 _bankerId)
        public
        view
        returns (uint8)
    {
        string memory bankerHash = bankerIdToHash[_bankerId];

        uint8 jobVal = DebtCityLibrary.parseInt(
            DebtCityLibrary.substring(bankerHash, 0, 1)
        );

        if (jobVal == 1) return 15;
        if (jobVal == 2) return 8;
        if (jobVal == 3) return 3;
        if (jobVal == 4) return 2;

        return 1;
    }


    function walletOfOwner(address _wallet)
        public
        view
        returns (uint256[] memory)
    {
        uint256 bankerCount = balanceOf(_wallet);

        uint256[] memory bankersId = new uint256[](bankerCount);
        for (uint256 i; i < bankerCount; i++) {
            bankersId[i] = tokenOfOwnerByIndex(_wallet, i);
        }
        return bankersId;
    }




    /** *********************************** **/
    /** ********* Owner Functions ********* **/
    /** *********************************** **/

    function clearTraits() public onlyOwner {
        for (uint8 i = 0; i < 15; i++) {
            for (uint8 j = 0; j < 15; j++) { 
                delete traitData[i][i];
            }
        }
    }
    

    function outputFullSVG(string memory _hash) public view returns (string memory) {
       
        string memory svgString = "";

        for (uint8 i = 0; i < 15; i++) {

            uint8 hashIndex = i + 1;
            uint8 thisTraitIndex = DebtCityLibrary.parseInt(
                DebtCityLibrary.substring(_hash, hashIndex, hashIndex + 1)
            );

            PngTrait memory t = traitData[i][thisTraitIndex];
            if (t.on) svgString = string(abi.encodePacked(svgString, drawTrait(t)));
        }

        return string(abi.encodePacked(
          '<svg id="banker" width="100%" height="100%" version="1.1" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">',
          svgString,
          "</svg>"
        ));
    }


    function drawTrait(PngTrait memory trait) internal pure returns (string memory) {
        return string(abi.encodePacked(
          '<image x="4" y="4" width="32" height="32" image-rendering="pixelated" preserveAspectRatio="xMidYMid" xlink:href="data:image/png;base64,',
          trait.png,
          '"/>'
        ));
    }


    function uploadTraits(uint8 traitType, PngTrait[] memory traits) public onlyOwner {
        for (uint8 i = 0; i < traits.length; i++) {
            traitData[traitType][i] = PngTrait(
                traits[i].ttype,
                traits[i].name,
                traits[i].png,
                traits[i].on
            );
        }
    }
   

    function setPaperAddress(address _paperAddress) public onlyOwner {
        paperAddress = _paperAddress;
    }

    function flipMintMode() public onlyOwner {
        isMintActive = !isMintActive;
    }

    function flipAllowMode() public onlyOwner {
        isAllowListActive = !isAllowListActive;
    }


    function setAllowList(address[] calldata addresses) external onlyOwner {
        for (uint256 i = 0; i < addresses.length; i++) {
            _allowList[addresses[i]] = 2;
        }
    }


    function setPayableWallet(address _payableWallet) external onlyOwner {
        payableWallet = payable(_payableWallet);
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        payable(payableWallet).transfer(balance);
    }



    /** *********************************** **/
    /** ******* Royalties Functions ******* **/
    /** *********************************** **/


    function setRoyalties(uint _tokenId, address payable _royaltiesRecipientAddress, uint96 _percentageBasisPoints) public onlyOwner {
        LibPart.Part[] memory _royalties = new LibPart.Part[](1);
        _royalties[0].value = _percentageBasisPoints;
        _royalties[0].account = _royaltiesRecipientAddress;
        _saveRoyalties(_tokenId, _royalties);
    }

    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver,uint256 royaltyAmount) {

        LibPart.Part[] memory _royalties = royalties[_tokenId];
        if (_royalties.length > 0) {
            return (_royalties[0].account, (_salePrice * _royalties[0].value) / 10000);
        }
        return (address(0), 0);

    }

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        if (interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) {
            return true;
        }

        if (interfaceId == _INTERFACE_ID_ERC2981) {
            return true;
        }
        return super.supportsInterface(interfaceId);
    }
    

}

File 2 of 21 : IPaper.sol
// contracts/IDebt.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";


interface IPaper is IERC20 {
    function burnFrom(address account, uint256 amount) external;
}

File 3 of 21 : DebtCityLibrary.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library DebtCityLibrary {
    string internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return "";
        string memory table = TABLE;
        uint256 encodedLen = 4 * ((data.length + 2) / 3);
        string memory result = new string(encodedLen + 32);

        assembly {
            mstore(result, encodedLen)
            let tablePtr := add(table, 1)
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))
            let resultPtr := add(result, 32)

            // loop over input 3 bytes at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                dataPtr := add(dataPtr, 3)

                let input := mload(dataPtr)

                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(input, 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }
        }

        return result;
    }

    function isContract(address account) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    function parseInt(string memory _a)
        internal
        pure
        returns (uint8 _parsedInt)
    {
        bytes memory bresult = bytes(_a);
        uint8 mint = 0;
        for (uint8 i = 0; i < bresult.length; i++) {
            if (
                (uint8(uint8(bresult[i])) >= 48) &&
                (uint8(uint8(bresult[i])) <= 57)
            ) {
                mint *= 10;
                mint += uint8(bresult[i]) - 48;
            }
        }
        return mint;
    }

   
    function toString(uint256 value) internal pure returns (string memory) {
        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);
    }

    

    function substring(
        string memory str,
        uint256 startIndex,
        uint256 endIndex
    ) internal pure returns (string memory) {
        bytes memory strBytes = bytes(str);
        bytes memory result = new bytes(endIndex - startIndex);
        for (uint256 i = startIndex; i < endIndex; i++) {
            result[i - startIndex] = strBytes[i];
        }
        return string(result);
    }
}

File 4 of 21 : 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 21 : AbstractRoyalties.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../LibPart.sol";

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

    function _saveRoyalties(uint256 id, LibPart.Part[] memory _royalties) internal {
        uint256 totalValue;
        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");
            totalValue += _royalties[i].value;
            royalties[id].push(_royalties[i]);
        }
        require(totalValue < 10000, "Royalty total value should be < 10000");
        _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 6 of 21 : RoyaltiesV2.sol
pragma solidity ^0.8.0;
pragma abicoder v2;

import "./LibPart.sol";

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

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

File 7 of 21 : LibRoyaltiesV2.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library LibRoyaltiesV2 {
    /*
     * bytes4(keccak256('getRaribleV2Royalties(uint256)')) == 0xcad96cca
     */
    bytes4 constant _INTERFACE_ID_ROYALTIES = 0xcad96cca;
}

File 8 of 21 : 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 9 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 10 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 11 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 15 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

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

    /**
     * @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 16 of 21 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

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 17 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 18 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 19 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 20 of 21 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":[{"internalType":"uint256","name":"_bankerId","type":"uint256"}],"name":"_bankerIdToHash","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":[],"name":"clearTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipAllowMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMintMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBankersRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bankerId","type":"uint256"}],"name":"getPayForBanker","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"string","name":"_hash","type":"string"}],"name":"hashToMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"mintAllowList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"mintBanker","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"outputFullSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payableWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_paperAddress","type":"address"}],"name":"setPaperAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_payableWallet","type":"address"}],"name":"setPayableWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_royaltiesRecipientAddress","type":"address"},{"internalType":"uint96","name":"_percentageBasisPoints","type":"uint96"}],"name":"setRoyalties","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":"_bankerId","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":"uint8","name":"","type":"uint8"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"traitData","outputs":[{"internalType":"string","name":"ttype","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"png","type":"string"},{"internalType":"bool","name":"on","type":"bool"}],"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":"uint8","name":"traitType","type":"uint8"},{"components":[{"internalType":"string","name":"ttype","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"png","type":"string"},{"internalType":"bool","name":"on","type":"bool"}],"internalType":"struct DebtCity.PngTrait[]","name":"traits","type":"tuple[]"}],"name":"uploadTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

611387600e556000600f55601960105560c860115561032060128190556105dc6013556109aa6014556016805461ffff19166001908117909155670118aa14d94180006017556018805460ff191660021790556103c0818152606160f81b6103e0526080908152610400828152603160f91b6104205260a052610440828152606360f81b6104605260c052610480828152601960fa1b6104a05260e0526104c0828152606560f81b6104e05261010052610500828152603360f91b6105205261012052610540828152606760f81b6105605261014052610580828152600d60fb1b6105a052610160526105c0828152606960f81b6105e05261018052610600828152603560f91b610620526101a052610640828152606b60f81b610660526101c052610680828152601b60fa1b6106a0526101e0526106c0828152606d60f81b6106e05261020052610700828152603760f91b6107205261022052610740828152606f60f81b6107605261024052610780828152600760fc1b6107a052610260526107c0828152607160f81b6107e05261028052610800828152603960f91b610820526102a052610840828152607360f81b610860526102c052610880828152601d60fa1b6108a0526102e0526108c0828152607560f81b6108e05261030052610900828152603b60f91b61092052909252610940818152607760f81b6109605261034052610980818152600f60fb1b6109a052610360526109c0818152607960f81b6109e05261038052610a40604052610a00908152603d60f91b610a20526103a0526200025390602990601a620007de565b503480156200026157600080fd5b506040805180820182526008815267446562744369747960c01b60208083019182528351808501909452600784526642414e4b45525360c81b908401528151919291620002b19160009162000842565b508051620002c790600190602084019062000842565b505050620002e4620002de6200078860201b60201c565b6200078c565b602b8054336001600160a01b03199091161790556016805462010000600160b01b03191675bc590a5370cc163023cdc17e041967796174081b000017905560408051610140810182526014815261045660208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081019190915261044c6101208201526200038690601a90600a620008cd565b506040805161012081018252610460815261045660208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810191909152620003e390601b906009620008cd565b50604080516080810182526109c48082526020820181905291810182905260608101919091526200041990601c906004620008cd565b50604080516080810182526109c48082526020820181905291810182905260608101919091526200044f90601d906004620008cd565b50604080516080810182526109c48082526020820181905291810182905260608101919091526200048590601e906004620008cd565b5060408051610100810182526104e280825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810191909152620004d890601f906008620008cd565b50604080516080810182526109c4808252602080830182905292820181905260608201526200050a91906004620008cd565b5060408051610140810182526103e880825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081018290526101208101919091526200056d90602190600a620008cd565b5060408051610140810182526103e880825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810191909152620005d090602290600a620008cd565b506040805160c08101825261068b815261068160208201819052918101829052606081018290526080810182905260a081019190915262000616906023906006620008cd565b506040805160e081018252610598815261059460208201819052918101829052606081018290526080810182905260a0810182905260c081019190915262000663906024906007620008cd565b506040805160a0810182526107d080825260208201819052918101829052606081018290526080810191909152620006a0906025906005620008cd565b506040805160c08101825261068b815261068160208201819052918101829052606081018290526080810182905260a0810191909152620006e6906026906006620008cd565b506040805161012081018252610460815261045660208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081019190915262000743906027906009620008cd565b506040805160a0810182526109c480825260208201819052918101919091526104e260608201819052608082015262000781906028906005620008cd565b5062000a32565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000830579160200282015b828111156200083057825180516200081f91849160209091019062000842565b5091602001919060010190620007ff565b506200083e92915062000978565b5090565b8280546200085090620009f5565b90600052602060002090601f016020900481019282620008745760008555620008bf565b82601f106200088f57805160ff1916838001178555620008bf565b82800160010185558215620008bf579182015b82811115620008bf578251825591602001919060010190620008a2565b506200083e92915062000999565b82805482825590600052602060002090600f01601090048101928215620008bf5791602002820160005b838211156200093957835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302620008f7565b8015620009695782816101000a81549061ffff021916905560020160208160010104928301926001030262000939565b50506200083e92915062000999565b808211156200083e5760006200098f8282620009b0565b5060010162000978565b5b808211156200083e57600081556001016200099a565b508054620009be90620009f5565b6000825580601f10620009d25750620009f2565b601f016020900490600052602060002090810190620009f2919062000999565b50565b600181811c9082168062000a0a57607f821691505b6020821081141562000a2c57634e487b7160e01b600052602260045260246000fd5b50919050565b614da98062000a426000396000f3fe6080604052600436106102465760003560e01c806363c3f55e116101395780639d0dea6d116100b6578063c87b56dd1161007a578063c87b56dd146106d3578063cad96cca146106f3578063ddff5b1c14610720578063e985e9c514610733578063f2fde38b1461077c578063ff186b2e1461079c57610246565b80639d0dea6d14610640578063a22cb46514610660578063ab1da36b14610680578063adf06a7214610693578063b88d4fde146106b357610246565b806370a08231116100fd57806370a08231146105a8578063715018a6146105c85780638da5cb5b146105dd57806395d89b41146105fb5780639bf2ee351461061057610246565b806363c3f55e1461051e5780636447c35d1461053e57806366e338701461055e57806367791e851461057e5780636e7f86381461059357610246565b80632a55205a116101c7578063438b63001161018b578063438b6300146104715780634f6ccce71461049e578063552a1c92146104be5780635c847e4f146104de5780636352211e146104fe57610246565b80632a55205a146103ab5780632f745c59146103ea5780633ccfd60b1461040a578063419908fe1461041f57806342842e0e1461045157610246565b8063143094db1161020e578063143094db1461031157806318160ddd146103315780631fa45cce1461035057806323b872dd1461036557806327c09c061461038557610246565b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063095ea7b3146102da578063098afd4b146102fc575b600080fd5b34801561025757600080fd5b5061026b610266366004613fd6565b6107b2565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b50610295610807565b6040516102779190614966565b3480156102ae57600080fd5b506102c26102bd366004614041565b61089a565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f5366004613f3b565b610934565b005b34801561030857600080fd5b506102fa610a4a565b34801561031d57600080fd5b506102fa61032c366004614059565b610b07565b34801561033d57600080fd5b506008545b604051908152602001610277565b34801561035c57600080fd5b506102fa610c01565b34801561037157600080fd5b506102fa610380366004613e4a565b610c48565b34801561039157600080fd5b506016546102c2906201000090046001600160a01b031681565b3480156103b757600080fd5b506103cb6103c63660046140a5565b610c94565b604080516001600160a01b039093168352602083019190915201610277565b3480156103f657600080fd5b50610342610405366004613f3b565b610db6565b34801561041657600080fd5b506102fa610e4f565b34801561042b57600080fd5b5061043f61043a366004614041565b610ebd565b60405160ff9091168152602001610277565b34801561045d57600080fd5b506102fa61046c366004613e4a565b610fd8565b34801561047d57600080fd5b5061049161048c366004613df6565b610ff3565b6040516102779190614922565b3480156104aa57600080fd5b506103426104b9366004614041565b6110b1565b3480156104ca57600080fd5b506102956104d9366004614041565b611152565b3480156104ea57600080fd5b506102fa6104f9366004613df6565b6111f4565b34801561050a57600080fd5b506102c2610519366004614041565b611248565b34801561052a57600080fd5b506102fa6105393660046140e0565b6112bf565b34801561054a57600080fd5b506102fa610559366004613f66565b61146b565b34801561056a57600080fd5b5061029561057936600461400e565b611518565b34801561058a57600080fd5b50610342611832565b34801561059f57600080fd5b506102fa611870565b3480156105b457600080fd5b506103426105c3366004613df6565b6118ae565b3480156105d457600080fd5b506102fa611935565b3480156105e957600080fd5b50600a546001600160a01b03166102c2565b34801561060757600080fd5b5061029561196b565b34801561061c57600080fd5b5061063061062b36600461421f565b61197a565b6040516102779493929190614979565b34801561064c57600080fd5b5061029561065b36600461400e565b611b48565b34801561066c57600080fd5b506102fa61067b366004613f07565b611dfe565b6102fa61068e3660046140c6565b611e09565b34801561069f57600080fd5b506102fa6106ae366004613df6565b611e74565b3480156106bf57600080fd5b506102fa6106ce366004613e8a565b611ec0565b3480156106df57600080fd5b506102956106ee366004614041565b611ef2565b3480156106ff57600080fd5b5061071361070e366004614041565b611f7f565b604051610277919061490f565b6102fa61072e3660046140c6565b61200e565b34801561073f57600080fd5b5061026b61074e366004613e12565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561078857600080fd5b506102fa610797366004613df6565b612114565b3480156107a857600080fd5b5061034260175481565b60006001600160e01b0319821663656cb66560e11b14156107d557506001610802565b6001600160e01b0319821663152a902d60e11b14156107f657506001610802565b6107ff826121ac565b90505b919050565b60606000805461081690614c1b565b80601f016020809104026020016040519081016040528092919081815260200182805461084290614c1b565b801561088f5780601f106108645761010080835404028352916020019161088f565b820191906000526020600020905b81548152906001019060200180831161087257829003601f168201915b505050505090505b90565b6000818152600260205260408120546001600160a01b03166109185760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061093f82611248565b9050806001600160a01b0316836001600160a01b031614156109ad5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161090f565b336001600160a01b03821614806109c957506109c9813361074e565b610a3b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161090f565b610a4583836121d1565b505050565b600a546001600160a01b03163314610a745760405162461bcd60e51b815260040161090f90614a18565b60005b600f8160ff161015610b045760005b600f8160ff161015610af15760ff82166000908152601960209081526040808320909152812090610ab78282613c89565b610ac5600183016000613c89565b610ad3600283016000613c89565b50600301805460ff1916905580610ae981614c71565b915050610a86565b5080610afc81614c71565b915050610a77565b50565b600a546001600160a01b03163314610b315760405162461bcd60e51b815260040161090f90614a18565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081610b485790505090508181600081518110610b9357634e487b7160e01b600052603260045260246000fd5b6020026020010151602001906001600160601b031690816001600160601b0316815250508281600081518110610bd957634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160a01b039091169052610bfb848261223f565b50505050565b600a546001600160a01b03163314610c2b5760405162461bcd60e51b815260040161090f90614a18565b6016805461ff001981166101009182900460ff1615909102179055565b602a546001600160a01b0316336001600160a01b031614610c8957610c6d3382612492565b610c895760405162461bcd60e51b815260040161090f90614a4d565b610a45838383612589565b6000828152600b60209081526040808320805482518185028101850190935280835284938493929190849084015b82821015610d1157600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101610cc2565b505050509050600081511115610da65780600081518110610d4257634e487b7160e01b600052603260045260246000fd5b60200260200101516000015161271082600081518110610d7257634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b031686610d929190614b56565b610d9c9190614b42565b9250925050610daf565b60008092509250505b9250929050565b6000610dc1836118ae565b8210610e235760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161090f565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b600a546001600160a01b03163314610e795760405162461bcd60e51b815260040161090f90614a18565b60165460405147916201000090046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015610eb9573d6000803e3d6000fd5b5050565b6000818152600d602052604081208054829190610ed990614c1b565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0590614c1b565b8015610f525780601f10610f2757610100808354040283529160200191610f52565b820191906000526020600020905b815481529060010190602001808311610f3557829003601f168201915b505050505090506000610f70610f6b8360006001612730565b612829565b90508060ff1660011415610f8957600f92505050610802565b8060ff1660021415610fa057600892505050610802565b8060ff1660031415610fb757600392505050610802565b8060ff1660041415610fce57600292505050610802565b5060019392505050565b610a4583838360405180602001604052806000815250611ec0565b60606000611000836118ae565b905060008167ffffffffffffffff81111561102b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611054578160200160208202803683370190505b50905060005b828110156110a95761106c8582610db6565b82828151811061108c57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806110a181614c56565b91505061105a565b509392505050565b60006110bc60085490565b821061111f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161090f565b6008828154811061114057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600d6020526040902080546060919061116f90614c1b565b80601f016020809104026020016040519081016040528092919081815260200182805461119b90614c1b565b80156111e85780601f106111bd576101008083540402835291602001916111e8565b820191906000526020600020905b8154815290600101906020018083116111cb57829003601f168201915b50505050509050919050565b600a546001600160a01b0316331461121e5760405162461bcd60e51b815260040161090f90614a18565b601680546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000818152600260205260408120546001600160a01b0316806107ff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161090f565b600a546001600160a01b031633146112e95760405162461bcd60e51b815260040161090f90614a18565b60005b81518160ff161015610a45576040518060800160405280838360ff168151811061132657634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518152602001838360ff168151811061135a57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001518152602001838360ff168151811061138e57634e487b7160e01b600052603260045260246000fd5b6020026020010151604001518152602001838360ff16815181106113c257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160600151151590915260ff808616600090815260198352604080822092861682529183522082518051919261140892849290910190613cc5565b5060208281015180516114219260018501920190613cc5565b506040820151805161143d916002840191602090910190613cc5565b50606091909101516003909101805460ff19169115159190911790558061146381614c71565b9150506112ec565b600a546001600160a01b031633146114955760405162461bcd60e51b815260040161090f90614a18565b60005b81811015610a45576002601560008585858181106114c657634e487b7160e01b600052603260045260246000fd5b90506020020160208101906114db9190613df6565b6001600160a01b031681526020810191909152604001600020805460ff191660ff929092169190911790558061151081614c56565b915050611498565b6060600061152c610f6b8460006001612730565b9050600061153982612909565b6040516020016115499190614839565b604051602081830303815290604052905060005b600f8160ff161015611808576000611576826001614b1d565b90506000611598610f6b8860ff8516611590866001614b1d565b60ff16612730565b60ff8085166000908152601960209081526040808320938516835292905281812082516080810190935280549394509092829082906115d690614c1b565b80601f016020809104026020016040519081016040528092919081815260200182805461160290614c1b565b801561164f5780601f106116245761010080835404028352916020019161164f565b820191906000526020600020905b81548152906001019060200180831161163257829003601f168201915b5050505050815260200160018201805461166890614c1b565b80601f016020809104026020016040519081016040528092919081815260200182805461169490614c1b565b80156116e15780601f106116b6576101008083540402835291602001916116e1565b820191906000526020600020905b8154815290600101906020018083116116c457829003601f168201915b505050505081526020016002820180546116fa90614c1b565b80601f016020809104026020016040519081016040528092919081815260200182805461172690614c1b565b80156117735780601f1061174857610100808354040283529160200191611773565b820191906000526020600020905b81548152906001019060200180831161175657829003601f168201915b50505091835250506003919091015460ff1615156020909101526060810151909150156117f25760ff8416156117c657846040516020016117b49190614332565b60405160208183030381529060405294505b80516020808301516040516117e093899390929101614357565b60405160208183030381529060405294505b505050808061180090614c71565b91505061155d565b508060405160200161181a9190614639565b60405160208183030381529060405292505050919050565b600060145460135460125460115460105461184d9190614b05565b6118579190614b05565b6118619190614b05565b61186b9190614b05565b905090565b600a546001600160a01b0316331461189a5760405162461bcd60e51b815260040161090f90614a18565b6016805460ff19811660ff90911615179055565b60006001600160a01b0382166119195760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161090f565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461195f5760405162461bcd60e51b815260040161090f90614a18565b6119696000612a2a565b565b60606001805461081690614c1b565b60196020908152600092835260408084209091529082529020805481906119a090614c1b565b80601f01602080910402602001604051908101604052809291908181526020018280546119cc90614c1b565b8015611a195780601f106119ee57610100808354040283529160200191611a19565b820191906000526020600020905b8154815290600101906020018083116119fc57829003601f168201915b505050505090806001018054611a2e90614c1b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5a90614c1b565b8015611aa75780601f10611a7c57610100808354040283529160200191611aa7565b820191906000526020600020905b815481529060010190602001808311611a8a57829003601f168201915b505050505090806002018054611abc90614c1b565b80601f0160208091040260200160405190810160405280929190818152602001828054611ae890614c1b565b8015611b355780601f10611b0a57610100808354040283529160200191611b35565b820191906000526020600020905b815481529060010190602001808311611b1857829003601f168201915b5050506003909301549192505060ff1684565b60408051602081019091526000808252606091905b600f8160ff161015611dd5576000611b76826001614b1d565b90506000611b90610f6b8760ff8516611590866001614b1d565b60ff808516600090815260196020908152604080832093851683529290528181208251608081019093528054939450909282908290611bce90614c1b565b80601f0160208091040260200160405190810160405280929190818152602001828054611bfa90614c1b565b8015611c475780601f10611c1c57610100808354040283529160200191611c47565b820191906000526020600020905b815481529060010190602001808311611c2a57829003601f168201915b50505050508152602001600182018054611c6090614c1b565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8c90614c1b565b8015611cd95780601f10611cae57610100808354040283529160200191611cd9565b820191906000526020600020905b815481529060010190602001808311611cbc57829003601f168201915b50505050508152602001600282018054611cf290614c1b565b80601f0160208091040260200160405190810160405280929190818152602001828054611d1e90614c1b565b8015611d6b5780601f10611d4057610100808354040283529160200191611d6b565b820191906000526020600020905b815481529060010190602001808311611d4e57829003601f168201915b50505091835250506003919091015460ff161515602090910152606081015190915015611dbf5784611d9c82612a7c565b604051602001611dad929190614303565b60405160208183030381529060405294505b5050508080611dcd90614c71565b915050611b5d565b5080604051602001611de7919061454c565b604051602081830303815290604052915050919050565b610eb9338383612aa9565b60165460ff1615611e6b5760405162461bcd60e51b815260206004820152602660248201527f4f6e6c792074686520616c6c6f77206c6973742063616e206d696e74207269676044820152656874206e6f7760d01b606482015260840161090f565b610b0481612b78565b600a546001600160a01b03163314611e9e5760405162461bcd60e51b815260040161090f90614a18565b602a80546001600160a01b0319166001600160a01b0392909216919091179055565b611eca3383612492565b611ee65760405162461bcd60e51b815260040161090f90614a4d565b610bfb84848484612ce1565b6000818152600260205260409020546060906001600160a01b0316611f1657600080fd5b6000611f2183611152565b9050611f6f611f2f84612d14565b611f40611f3b84611b48565b612e2f565b611f4984611518565b604051602001611f5b939291906146b2565b604051602081830303815290604052612e2f565b604051602001611de7919061466d565b6060600b6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561200357600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101611fb4565b505050509050919050565b60165460ff166120605760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77206c697374206973206e6f74206163746976650000000000000000604482015260640161090f565b3360009081526015602052604090205460ff90811690821611156120d15760405162461bcd60e51b815260206004820152602260248201527f4578636565646564206d617820617661696c61626c6520746f20707572636861604482015261736560f01b606482015260840161090f565b33600090815260156020526040812080548392906120f390849060ff16614bb5565b92506101000a81548160ff021916908360ff160217905550610b0481612b78565b600a546001600160a01b0316331461213e5760405162461bcd60e51b815260040161090f90614a18565b6001600160a01b0381166121a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161090f565b610b0481612a2a565b60006001600160e01b0319821663780e9d6360e01b14806107ff57506107ff82612fa6565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061220682611248565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000805b82518110156124285760006001600160a01b031683828151811061227757634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031614156122da5760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e740000000000604482015260640161090f565b8281815181106122fa57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b03166000141561235f5760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f736974697665604482015260640161090f565b82818151811061237f57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b03168261239f9190614b05565b9150600b60008581526020019081526020016000208382815181106123d457634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181018455600093845292829020815191909201516001600160601b0316600160a01b026001600160a01b03909116179101558061242081614c56565b915050612243565b5061271081106124885760405162461bcd60e51b815260206004820152602560248201527f526f79616c747920746f74616c2076616c75652073686f756c64206265203c20604482015264031303030360dc1b606482015260840161090f565b610a458383612ff6565b6000818152600260205260408120546001600160a01b031661250b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161090f565b600061251683611248565b9050806001600160a01b0316846001600160a01b031614806125515750836001600160a01b03166125468461089a565b6001600160a01b0316145b8061258157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661259c82611248565b6001600160a01b0316146126005760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161090f565b6001600160a01b0382166126625760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161090f565b61266d838383613033565b6126786000826121d1565b6001600160a01b03831660009081526003602052604081208054600192906126a1908490614b9e565b90915550506001600160a01b03821660009081526003602052604081208054600192906126cf908490614b05565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610a45565b606083600061273f8585614b9e565b67ffffffffffffffff81111561276557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561278f576020820181803683370190505b509050845b8481101561281d578281815181106127bc57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916826127d68884614b9e565b815181106127f457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508061281581614c56565b915050612794565b509150505b9392505050565b60008181805b82518160ff1610156110a9576030838260ff168151811061286057634e487b7160e01b600052603260045260246000fd5b016020015160f81c108015906128a157506039838260ff168151811061289657634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b156128f7576128b1600a83614b75565b91506030838260ff16815181106128d857634e487b7160e01b600052603260045260246000fd5b01602001516128ea919060f81c614bb5565b6128f49083614b1d565b91505b8061290181614c71565b91505061282f565b60608160ff166005141561293b5750604080518082019091526007815266185b985b1e5cdd60ca1b6020820152610802565b8160ff166004141561296d57506040805180820190915260098152686173736f636961746560b81b6020820152610802565b8160ff16600314156129a4575060408051808201909152600e81526d1d9a58d957dc1c995cda59195b9d60921b6020820152610802565b8160ff16600214156129d557506040805180820190915260088152673234b932b1ba37b960c11b6020820152610802565b8160ff1660011415612a0a575060408051808201909152600c81526b3137b0b9322fb6b2b6b132b960a11b6020820152610802565b50506040805180820190915260048152636e6f6e6560e01b602082015290565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60608160400151604051602001612a939190614478565b6040516020818303038152906040529050919050565b816001600160a01b0316836001600160a01b03161415612b0b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161090f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000612b8360085490565b600e54909150612b9660ff841683614b05565b10612ba057600080fd5b333b15612bac57600080fd5b8160ff16601754612bbd9190614b56565b3414612bc857600080fd5b60185460ff908116908316612bdc336118ae565b612be69190614b05565b1115612c2d5760405162461bcd60e51b8152602060048201526016602482015275195e18d959591cc81b585e081c195c881dd85b1b195d60521b604482015260640161090f565b6000815b8360ff168260ff161015610bfb576000612c4e60ff841683614b05565b9050612c5c813360006130f0565b6000828152600d602090815260409091208251612c7f9391929190910190613cc5565b506001600c600d6000848152602001908152602001600020604051612ca491906143dd565b908152604051908190036020019020805491151560ff19909216919091179055612cce3382613348565b82612cd881614c71565b93505050612c31565b612cec848484612589565b612cf884848484613362565b610bfb5760405162461bcd60e51b815260040161090f906149c6565b606081612d3957506040805180820190915260018152600360fc1b6020820152610802565b8160005b8115612d635780612d4d81614c56565b9150612d5c9050600a83614b42565b9150612d3d565b60008167ffffffffffffffff811115612d8c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612db6576020820181803683370190505b5090505b841561258157612dcb600183614b9e565b9150612dd8600a86614cb2565b612de3906030614b05565b60f81b818381518110612e0657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612e28600a86614b42565b9450612dba565b6060815160001415612e505750604080516020810190915260008152610802565b6000604051806060016040528060408152602001614d346040913990506000600384516002612e7f9190614b05565b612e899190614b42565b612e94906004614b56565b90506000612ea3826020614b05565b67ffffffffffffffff811115612ec957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ef3576020820181803683370190505b509050818152600183018586518101602084015b81831015612f615760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401612f07565b600389510660018114612f7b5760028114612f8c57612f98565b613d3d60f01b600119830152612f98565b603d60f81b6000198301525b509398975050505050505050565b60006001600160e01b031982166380ac58cd60e01b1480612fd757506001600160e01b03198216635b5e139f60e01b145b806107ff57506301ffc9a760e01b6001600160e01b03198316146107ff565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df8282604051613027929190614a9e565b60405180910390a15050565b6001600160a01b03831661308e5761308981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6130b1565b816001600160a01b0316836001600160a01b0316146130b1576130b1838261346f565b6001600160a01b0382166130cd576130c88161350c565b610a45565b826001600160a01b0316826001600160a01b031614610a4557610a4582826135e5565b6060600a82106130ff57600080fd5b60408051602081019091526000808252600f80549161311d83614c56565b919050555060004244878787600f5460405160200161314196959493929190614897565b6040516020818303038152906040528051906020012060001c9050600061316782613629565b9050826131768260ff16612d14565b604051602001613187929190614303565b604051602081830303815290604052925060008060005b600f8160ff1610156132f157600f80549060006131ba83614c56565b9190505550600061271042448d8d8d600f546040516020016131e196959493929190614897565b6040516020818303038152906040528051906020012060001c6132049190614cb2565b905060006132168261ffff168461376a565b9050600061322684888486613863565b90508660ff16600114801561323e57508360ff166004145b1561324b57809550613274565b8660ff16600114801561326157508360ff16600c145b1561327457613271866001614b1d565b90505b8360ff166007148015613289575060ff811615155b1561329357600194505b8360ff1660081480156132a35750845b156132ac575060005b886132b98260ff16612d14565b6040516020016132ca929190614303565b604051602081830303815290604052985050505080806132e990614c71565b91505061319e565b50600c8560405161330291906142e7565b9081526040519081900360200190205460ff161561333b5761332f898961332a8a6001614b05565b6130f0565b95505050505050612822565b5092979650505050505050565b610eb9828260405180602001604052806000815250613a40565b60006001600160a01b0384163b1561346457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906133a69033908990889088906004016148d2565b602060405180830381600087803b1580156133c057600080fd5b505af19250505080156133f0575060408051601f3d908101601f191682019092526133ed91810190613ff2565b60015b61344a573d80801561341e576040519150601f19603f3d011682016040523d82523d6000602084013e613423565b606091505b5080516134425760405162461bcd60e51b815260040161090f906149c6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612581565b506001949350505050565b6000600161347c846118ae565b6134869190614b9e565b6000838152600760205260409020549091508082146134d9576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061351e90600190614b9e565b6000838152600960205260408120546008805493945090928490811061355457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061358357634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806135c957634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006135f0836118ae565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60105460009061ffff8316901580159061364f575061364960c882614c91565b61ffff16155b15613673576010805490600061366483614c04565b91905055506001915050610802565b6000601154118015613691575061368b601982614c91565b61ffff16155b156136b557601180549060006136a683614c04565b91905055506002915050610802565b60006012541180156136d357506136cd600682614c91565b61ffff16155b156136f757601280549060006136e883614c04565b91905055506003915050610802565b6000601354118015613715575061370f600382614c91565b61ffff16155b15613739576013805490600061372a83614c04565b91905055506004915050610802565b60145415613760576014805490600061375183614c04565b91905055506005915050610802565b6000612581613a73565b600080805b601a8460ff16600f811061379357634e487b7160e01b600052603260045260246000fd5b015460ff8216101561385d576000601a8560ff16600f81106137c557634e487b7160e01b600052603260045260246000fd5b018260ff16815481106137e857634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff16861015801561382e57506138278184614ae8565b61ffff1686105b1561383d57509150610e499050565b6138478184614ae8565b925050808061385590614c71565b91505061376f565b50600080fd5b60008460ff166006148015613884575061387e600283614c91565b61ffff16155b156138925760009250613a37565b8460ff16600714806138a757508460ff166008145b156138e8578360ff1660051480156138cb57506138c5600283614c91565b61ffff16155b806138d9575060058460ff16105b156138e357600092505b613a37565b8460ff166009141561395a578360ff166005148061390957508360ff166004145b8061392e57508360ff16600214801561392e5750613928600283614c91565b61ffff16155b1561393857600092505b8360ff16600314801561394c575060ff8316155b156138e35760019250613a37565b8460ff16600a141561398f5760048460ff1610806138d9575061397e600283614c91565b61ffff166138e35760009250613a37565b8460ff16600b14156139b05760028460ff1611156138e35760009250613a37565b8460ff16600c1480156139c6575060018460ff16115b156139d45760009250613a37565b8460ff16600d1480156139f357506139ed600383614c91565b61ffff16155b15613a015760009250613a37565b8460ff16600e148015613a2d5750613a1a600283614c91565b61ffff161580613a2d57508360ff166005145b15613a3757600092505b50909392505050565b613a4a8383613b3a565b613a576000848484613362565b610a455760405162461bcd60e51b815260040161090f906149c6565b60145460009015613a9c5760148054906000613a8e83614c04565b919050555060059050610897565b60135415613ac25760138054906000613ab483614c04565b919050555060049050610897565b60125415613ae85760128054906000613ada83614c04565b919050555060039050610897565b60115415613b0e5760118054906000613b0083614c04565b919050555060029050610897565b60105415613b345760108054906000613b2683614c04565b919050555060019050610897565b50600090565b6001600160a01b038216613b905760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161090f565b6000818152600260205260409020546001600160a01b031615613bf55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161090f565b613c0160008383613033565b6001600160a01b0382166000908152600360205260408120805460019290613c2a908490614b05565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4610eb9565b508054613c9590614c1b565b6000825580601f10613ca75750610b04565b601f016020900490600052602060002090810190610b049190613d49565b828054613cd190614c1b565b90600052602060002090601f016020900481019282613cf35760008555613d39565b82601f10613d0c57805160ff1916838001178555613d39565b82800160010185558215613d39579182015b82811115613d39578251825591602001919060010190613d1e565b50613d45929150613d49565b5090565b5b80821115613d455760008155600101613d4a565b600067ffffffffffffffff831115613d7857613d78614cf2565b613d8b601f8401601f1916602001614ab7565b9050828152838383011115613d9f57600080fd5b828260208301376000602084830101529392505050565b8035801515811461080257600080fd5b600082601f830112613dd6578081fd5b61282283833560208501613d5e565b803560ff8116811461080257600080fd5b600060208284031215613e07578081fd5b813561282281614d08565b60008060408385031215613e24578081fd5b8235613e2f81614d08565b91506020830135613e3f81614d08565b809150509250929050565b600080600060608486031215613e5e578081fd5b8335613e6981614d08565b92506020840135613e7981614d08565b929592945050506040919091013590565b60008060008060808587031215613e9f578081fd5b8435613eaa81614d08565b93506020850135613eba81614d08565b925060408501359150606085013567ffffffffffffffff811115613edc578182fd5b8501601f81018713613eec578182fd5b613efb87823560208401613d5e565b91505092959194509250565b60008060408385031215613f19578182fd5b8235613f2481614d08565b9150613f3260208401613db6565b90509250929050565b60008060408385031215613f4d578182fd5b8235613f5881614d08565b946020939093013593505050565b60008060208385031215613f78578182fd5b823567ffffffffffffffff80821115613f8f578384fd5b818501915085601f830112613fa2578384fd5b813581811115613fb0578485fd5b8660208260051b8501011115613fc4578485fd5b60209290920196919550909350505050565b600060208284031215613fe7578081fd5b813561282281614d1d565b600060208284031215614003578081fd5b815161282281614d1d565b60006020828403121561401f578081fd5b813567ffffffffffffffff811115614035578182fd5b61258184828501613dc6565b600060208284031215614052578081fd5b5035919050565b60008060006060848603121561406d578081fd5b83359250602084013561407f81614d08565b915060408401356001600160601b038116811461409a578182fd5b809150509250925092565b600080604083850312156140b7578182fd5b50508035926020909101359150565b6000602082840312156140d7578081fd5b61282282613de5565b600080604083850312156140f2578182fd5b6140fb83613de5565b915060208084013567ffffffffffffffff80821115614118578384fd5b818601915086601f83011261412b578384fd5b81358181111561413d5761413d614cf2565b61414b848260051b01614ab7565b81815284810190848601875b8481101561420e57813587016080818e03601f1901121561417657898afd5b6141806080614ab7565b8982013588811115614190578b8cfd5b61419e8f8c83860101613dc6565b8252506040820135888111156141b2578b8cfd5b6141c08f8c83860101613dc6565b8b830152506060820135888111156141d6578b8cfd5b6141e48f8c83860101613dc6565b6040830152506141f660808301613db6565b60608201528552509287019290870190600101614157565b50979a909950975050505050505050565b60008060408385031215614231578182fd5b61423a83613de5565b9150613f3260208401613de5565b6000815180845260208085019450808401835b8381101561429457815180516001600160a01b031688528301516001600160601b0316838801526040909601959082019060010161425b565b509495945050505050565b600081518084526142b7816020860160208601614bd8565b601f01601f19169290920160200192915050565b600081516142dd818560208601614bd8565b9290920192915050565b600082516142f9818460208701614bd8565b9190910192915050565b60008351614315818460208801614bd8565b835190830190614329818360208801614bd8565b01949350505050565b60008251614344818460208701614bd8565b600b60fa1b920191825250600101919050565b60008451614369818460208901614bd8565b6e3d913a3930b4ba2fba3cb832911d1160891b908301908152845161439581600f840160208901614bd8565b6a1116113b30b63ab2911d1160a91b600f929091019182015283516143c181601a840160208801614bd8565b61227d60f01b601a9290910191820152601c0195945050505050565b600080835482600182811c9150808316806143f957607f831692505b602080841082141561441957634e487b7160e01b87526022600452602487fd5b81801561442d576001811461443e5761446a565b60ff1986168952848901965061446a565b60008a815260209020885b868110156144625781548b820152908501908301614449565b505084890196505b509498975050505050505050565b60007f3c696d61676520783d22342220793d2234222077696474683d2233322220686582527f696768743d2233322220696d6167652d72656e646572696e673d22706978656c60208301527f6174656422207072657365727665417370656374526174696f3d22784d69645960408301527f4d69642220786c696e6b3a687265663d22646174613a696d6167652f706e673b60608301526618985cd94d8d0b60ca1b60808301528251614532816087850160208701614bd8565b6211179f60e91b6087939091019283015250608a01919050565b60007f3c7376672069643d2262616e6b6572222077696474683d22313030252220686582527f696768743d2231303025222076657273696f6e3d22312e31222076696577426f60208301527f783d223020302034302034302220786d6c6e733d22687474703a2f2f7777772e60408301527f77332e6f72672f323030302f7376672220786d6c6e733a786c696e6b3d22687460608301527f74703a2f2f7777772e77332e6f72672f313939392f786c696e6b223e000000006080830152825161461c81609c850160208701614bd8565b651e17b9bb339f60d11b609c93909101928301525060a201919050565b6000605b60f81b82528251614655816001850160208701614bd8565b605d60f81b6001939091019283015250600201919050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000825282516146a581601d850160208701614bd8565b91909101601d0192915050565b737b226e616d65223a20224465627443697479202360601b815283516000906146e2816014850160208901614bd8565b7f222c20226465736372697074696f6e223a2022446562744369747920697320746014918401918201527f6865206669727374206f6e2d636861696e2065636f6e6f6d69632073696d756c60348201527f61746f722e204e6f20495046532c206e6f204150492e204a75737420616e204560548201527f7468657265756d20626c6f636b636861696e2073696d756c6174696f6e206f6660748201527f2066696e616e63652c20696e766573746d656e742c20616e6420646567656e6560948201527f72616379222c2022696d616765223a2022646174613a696d6167652f7376672b60b48201526a1e1b5b0ed8985cd94d8d0b60aa1b60d482015284516147f18160df840160208901614bd8565b61482e61482161481b60df848601016e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b876142cb565b607d60f81b815260010190565b979650505050505050565b60007f7b2274726169745f74797065223a226a6f625f7469746c65222c2276616c7565825262111d1160e91b6020830152825161487d816023850160208701614bd8565b62089f4b60ea1b6023939091019283015250602601919050565b95865260208601949094526040850192909252606090811b6bffffffffffffffffffffffff1916908401526074830152609482015260b40190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906149059083018461429f565b9695505050505050565b6000602082526128226020830184614248565b6020808252825182820181905260009190848201906040850190845b8181101561495a5783518352928401929184019160010161493e565b50909695505050505050565b600060208252612822602083018461429f565b60006080825261498c608083018761429f565b828103602084015261499e818761429f565b905082810360408401526149b2818661429f565b915050821515606083015295945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000838252604060208301526125816040830184614248565b604051601f8201601f1916810167ffffffffffffffff81118282101715614ae057614ae0614cf2565b604052919050565b600061ffff80831681851680830382111561432957614329614cc6565b60008219821115614b1857614b18614cc6565b500190565b600060ff821660ff84168060ff03821115614b3a57614b3a614cc6565b019392505050565b600082614b5157614b51614cdc565b500490565b6000816000190483118215151615614b7057614b70614cc6565b500290565b600060ff821660ff84168160ff0481118215151615614b9657614b96614cc6565b029392505050565b600082821015614bb057614bb0614cc6565b500390565b600060ff821660ff841680821015614bcf57614bcf614cc6565b90039392505050565b60005b83811015614bf3578181015183820152602001614bdb565b83811115610bfb5750506000910152565b600081614c1357614c13614cc6565b506000190190565b600181811c90821680614c2f57607f821691505b60208210811415614c5057634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614c6a57614c6a614cc6565b5060010190565b600060ff821660ff811415614c8857614c88614cc6565b60010192915050565b600061ffff80841680614ca657614ca6614cdc565b92169190910692915050565b600082614cc157614cc1614cdc565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b0457600080fd5b6001600160e01b031981168114610b0457600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220ad4fd09b3fc4643dd7facdc8231dc2015104bc5f5e82999384decbea32a6b9ad64736f6c63430008030033

Deployed Bytecode

0x6080604052600436106102465760003560e01c806363c3f55e116101395780639d0dea6d116100b6578063c87b56dd1161007a578063c87b56dd146106d3578063cad96cca146106f3578063ddff5b1c14610720578063e985e9c514610733578063f2fde38b1461077c578063ff186b2e1461079c57610246565b80639d0dea6d14610640578063a22cb46514610660578063ab1da36b14610680578063adf06a7214610693578063b88d4fde146106b357610246565b806370a08231116100fd57806370a08231146105a8578063715018a6146105c85780638da5cb5b146105dd57806395d89b41146105fb5780639bf2ee351461061057610246565b806363c3f55e1461051e5780636447c35d1461053e57806366e338701461055e57806367791e851461057e5780636e7f86381461059357610246565b80632a55205a116101c7578063438b63001161018b578063438b6300146104715780634f6ccce71461049e578063552a1c92146104be5780635c847e4f146104de5780636352211e146104fe57610246565b80632a55205a146103ab5780632f745c59146103ea5780633ccfd60b1461040a578063419908fe1461041f57806342842e0e1461045157610246565b8063143094db1161020e578063143094db1461031157806318160ddd146103315780631fa45cce1461035057806323b872dd1461036557806327c09c061461038557610246565b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063095ea7b3146102da578063098afd4b146102fc575b600080fd5b34801561025757600080fd5b5061026b610266366004613fd6565b6107b2565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b50610295610807565b6040516102779190614966565b3480156102ae57600080fd5b506102c26102bd366004614041565b61089a565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f5366004613f3b565b610934565b005b34801561030857600080fd5b506102fa610a4a565b34801561031d57600080fd5b506102fa61032c366004614059565b610b07565b34801561033d57600080fd5b506008545b604051908152602001610277565b34801561035c57600080fd5b506102fa610c01565b34801561037157600080fd5b506102fa610380366004613e4a565b610c48565b34801561039157600080fd5b506016546102c2906201000090046001600160a01b031681565b3480156103b757600080fd5b506103cb6103c63660046140a5565b610c94565b604080516001600160a01b039093168352602083019190915201610277565b3480156103f657600080fd5b50610342610405366004613f3b565b610db6565b34801561041657600080fd5b506102fa610e4f565b34801561042b57600080fd5b5061043f61043a366004614041565b610ebd565b60405160ff9091168152602001610277565b34801561045d57600080fd5b506102fa61046c366004613e4a565b610fd8565b34801561047d57600080fd5b5061049161048c366004613df6565b610ff3565b6040516102779190614922565b3480156104aa57600080fd5b506103426104b9366004614041565b6110b1565b3480156104ca57600080fd5b506102956104d9366004614041565b611152565b3480156104ea57600080fd5b506102fa6104f9366004613df6565b6111f4565b34801561050a57600080fd5b506102c2610519366004614041565b611248565b34801561052a57600080fd5b506102fa6105393660046140e0565b6112bf565b34801561054a57600080fd5b506102fa610559366004613f66565b61146b565b34801561056a57600080fd5b5061029561057936600461400e565b611518565b34801561058a57600080fd5b50610342611832565b34801561059f57600080fd5b506102fa611870565b3480156105b457600080fd5b506103426105c3366004613df6565b6118ae565b3480156105d457600080fd5b506102fa611935565b3480156105e957600080fd5b50600a546001600160a01b03166102c2565b34801561060757600080fd5b5061029561196b565b34801561061c57600080fd5b5061063061062b36600461421f565b61197a565b6040516102779493929190614979565b34801561064c57600080fd5b5061029561065b36600461400e565b611b48565b34801561066c57600080fd5b506102fa61067b366004613f07565b611dfe565b6102fa61068e3660046140c6565b611e09565b34801561069f57600080fd5b506102fa6106ae366004613df6565b611e74565b3480156106bf57600080fd5b506102fa6106ce366004613e8a565b611ec0565b3480156106df57600080fd5b506102956106ee366004614041565b611ef2565b3480156106ff57600080fd5b5061071361070e366004614041565b611f7f565b604051610277919061490f565b6102fa61072e3660046140c6565b61200e565b34801561073f57600080fd5b5061026b61074e366004613e12565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561078857600080fd5b506102fa610797366004613df6565b612114565b3480156107a857600080fd5b5061034260175481565b60006001600160e01b0319821663656cb66560e11b14156107d557506001610802565b6001600160e01b0319821663152a902d60e11b14156107f657506001610802565b6107ff826121ac565b90505b919050565b60606000805461081690614c1b565b80601f016020809104026020016040519081016040528092919081815260200182805461084290614c1b565b801561088f5780601f106108645761010080835404028352916020019161088f565b820191906000526020600020905b81548152906001019060200180831161087257829003601f168201915b505050505090505b90565b6000818152600260205260408120546001600160a01b03166109185760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061093f82611248565b9050806001600160a01b0316836001600160a01b031614156109ad5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161090f565b336001600160a01b03821614806109c957506109c9813361074e565b610a3b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161090f565b610a4583836121d1565b505050565b600a546001600160a01b03163314610a745760405162461bcd60e51b815260040161090f90614a18565b60005b600f8160ff161015610b045760005b600f8160ff161015610af15760ff82166000908152601960209081526040808320909152812090610ab78282613c89565b610ac5600183016000613c89565b610ad3600283016000613c89565b50600301805460ff1916905580610ae981614c71565b915050610a86565b5080610afc81614c71565b915050610a77565b50565b600a546001600160a01b03163314610b315760405162461bcd60e51b815260040161090f90614a18565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081610b485790505090508181600081518110610b9357634e487b7160e01b600052603260045260246000fd5b6020026020010151602001906001600160601b031690816001600160601b0316815250508281600081518110610bd957634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160a01b039091169052610bfb848261223f565b50505050565b600a546001600160a01b03163314610c2b5760405162461bcd60e51b815260040161090f90614a18565b6016805461ff001981166101009182900460ff1615909102179055565b602a546001600160a01b0316336001600160a01b031614610c8957610c6d3382612492565b610c895760405162461bcd60e51b815260040161090f90614a4d565b610a45838383612589565b6000828152600b60209081526040808320805482518185028101850190935280835284938493929190849084015b82821015610d1157600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101610cc2565b505050509050600081511115610da65780600081518110610d4257634e487b7160e01b600052603260045260246000fd5b60200260200101516000015161271082600081518110610d7257634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b031686610d929190614b56565b610d9c9190614b42565b9250925050610daf565b60008092509250505b9250929050565b6000610dc1836118ae565b8210610e235760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161090f565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b600a546001600160a01b03163314610e795760405162461bcd60e51b815260040161090f90614a18565b60165460405147916201000090046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015610eb9573d6000803e3d6000fd5b5050565b6000818152600d602052604081208054829190610ed990614c1b565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0590614c1b565b8015610f525780601f10610f2757610100808354040283529160200191610f52565b820191906000526020600020905b815481529060010190602001808311610f3557829003601f168201915b505050505090506000610f70610f6b8360006001612730565b612829565b90508060ff1660011415610f8957600f92505050610802565b8060ff1660021415610fa057600892505050610802565b8060ff1660031415610fb757600392505050610802565b8060ff1660041415610fce57600292505050610802565b5060019392505050565b610a4583838360405180602001604052806000815250611ec0565b60606000611000836118ae565b905060008167ffffffffffffffff81111561102b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611054578160200160208202803683370190505b50905060005b828110156110a95761106c8582610db6565b82828151811061108c57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806110a181614c56565b91505061105a565b509392505050565b60006110bc60085490565b821061111f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161090f565b6008828154811061114057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600d6020526040902080546060919061116f90614c1b565b80601f016020809104026020016040519081016040528092919081815260200182805461119b90614c1b565b80156111e85780601f106111bd576101008083540402835291602001916111e8565b820191906000526020600020905b8154815290600101906020018083116111cb57829003601f168201915b50505050509050919050565b600a546001600160a01b0316331461121e5760405162461bcd60e51b815260040161090f90614a18565b601680546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000818152600260205260408120546001600160a01b0316806107ff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161090f565b600a546001600160a01b031633146112e95760405162461bcd60e51b815260040161090f90614a18565b60005b81518160ff161015610a45576040518060800160405280838360ff168151811061132657634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518152602001838360ff168151811061135a57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001518152602001838360ff168151811061138e57634e487b7160e01b600052603260045260246000fd5b6020026020010151604001518152602001838360ff16815181106113c257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160600151151590915260ff808616600090815260198352604080822092861682529183522082518051919261140892849290910190613cc5565b5060208281015180516114219260018501920190613cc5565b506040820151805161143d916002840191602090910190613cc5565b50606091909101516003909101805460ff19169115159190911790558061146381614c71565b9150506112ec565b600a546001600160a01b031633146114955760405162461bcd60e51b815260040161090f90614a18565b60005b81811015610a45576002601560008585858181106114c657634e487b7160e01b600052603260045260246000fd5b90506020020160208101906114db9190613df6565b6001600160a01b031681526020810191909152604001600020805460ff191660ff929092169190911790558061151081614c56565b915050611498565b6060600061152c610f6b8460006001612730565b9050600061153982612909565b6040516020016115499190614839565b604051602081830303815290604052905060005b600f8160ff161015611808576000611576826001614b1d565b90506000611598610f6b8860ff8516611590866001614b1d565b60ff16612730565b60ff8085166000908152601960209081526040808320938516835292905281812082516080810190935280549394509092829082906115d690614c1b565b80601f016020809104026020016040519081016040528092919081815260200182805461160290614c1b565b801561164f5780601f106116245761010080835404028352916020019161164f565b820191906000526020600020905b81548152906001019060200180831161163257829003601f168201915b5050505050815260200160018201805461166890614c1b565b80601f016020809104026020016040519081016040528092919081815260200182805461169490614c1b565b80156116e15780601f106116b6576101008083540402835291602001916116e1565b820191906000526020600020905b8154815290600101906020018083116116c457829003601f168201915b505050505081526020016002820180546116fa90614c1b565b80601f016020809104026020016040519081016040528092919081815260200182805461172690614c1b565b80156117735780601f1061174857610100808354040283529160200191611773565b820191906000526020600020905b81548152906001019060200180831161175657829003601f168201915b50505091835250506003919091015460ff1615156020909101526060810151909150156117f25760ff8416156117c657846040516020016117b49190614332565b60405160208183030381529060405294505b80516020808301516040516117e093899390929101614357565b60405160208183030381529060405294505b505050808061180090614c71565b91505061155d565b508060405160200161181a9190614639565b60405160208183030381529060405292505050919050565b600060145460135460125460115460105461184d9190614b05565b6118579190614b05565b6118619190614b05565b61186b9190614b05565b905090565b600a546001600160a01b0316331461189a5760405162461bcd60e51b815260040161090f90614a18565b6016805460ff19811660ff90911615179055565b60006001600160a01b0382166119195760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161090f565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461195f5760405162461bcd60e51b815260040161090f90614a18565b6119696000612a2a565b565b60606001805461081690614c1b565b60196020908152600092835260408084209091529082529020805481906119a090614c1b565b80601f01602080910402602001604051908101604052809291908181526020018280546119cc90614c1b565b8015611a195780601f106119ee57610100808354040283529160200191611a19565b820191906000526020600020905b8154815290600101906020018083116119fc57829003601f168201915b505050505090806001018054611a2e90614c1b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5a90614c1b565b8015611aa75780601f10611a7c57610100808354040283529160200191611aa7565b820191906000526020600020905b815481529060010190602001808311611a8a57829003601f168201915b505050505090806002018054611abc90614c1b565b80601f0160208091040260200160405190810160405280929190818152602001828054611ae890614c1b565b8015611b355780601f10611b0a57610100808354040283529160200191611b35565b820191906000526020600020905b815481529060010190602001808311611b1857829003601f168201915b5050506003909301549192505060ff1684565b60408051602081019091526000808252606091905b600f8160ff161015611dd5576000611b76826001614b1d565b90506000611b90610f6b8760ff8516611590866001614b1d565b60ff808516600090815260196020908152604080832093851683529290528181208251608081019093528054939450909282908290611bce90614c1b565b80601f0160208091040260200160405190810160405280929190818152602001828054611bfa90614c1b565b8015611c475780601f10611c1c57610100808354040283529160200191611c47565b820191906000526020600020905b815481529060010190602001808311611c2a57829003601f168201915b50505050508152602001600182018054611c6090614c1b565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8c90614c1b565b8015611cd95780601f10611cae57610100808354040283529160200191611cd9565b820191906000526020600020905b815481529060010190602001808311611cbc57829003601f168201915b50505050508152602001600282018054611cf290614c1b565b80601f0160208091040260200160405190810160405280929190818152602001828054611d1e90614c1b565b8015611d6b5780601f10611d4057610100808354040283529160200191611d6b565b820191906000526020600020905b815481529060010190602001808311611d4e57829003601f168201915b50505091835250506003919091015460ff161515602090910152606081015190915015611dbf5784611d9c82612a7c565b604051602001611dad929190614303565b60405160208183030381529060405294505b5050508080611dcd90614c71565b915050611b5d565b5080604051602001611de7919061454c565b604051602081830303815290604052915050919050565b610eb9338383612aa9565b60165460ff1615611e6b5760405162461bcd60e51b815260206004820152602660248201527f4f6e6c792074686520616c6c6f77206c6973742063616e206d696e74207269676044820152656874206e6f7760d01b606482015260840161090f565b610b0481612b78565b600a546001600160a01b03163314611e9e5760405162461bcd60e51b815260040161090f90614a18565b602a80546001600160a01b0319166001600160a01b0392909216919091179055565b611eca3383612492565b611ee65760405162461bcd60e51b815260040161090f90614a4d565b610bfb84848484612ce1565b6000818152600260205260409020546060906001600160a01b0316611f1657600080fd5b6000611f2183611152565b9050611f6f611f2f84612d14565b611f40611f3b84611b48565b612e2f565b611f4984611518565b604051602001611f5b939291906146b2565b604051602081830303815290604052612e2f565b604051602001611de7919061466d565b6060600b6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561200357600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101611fb4565b505050509050919050565b60165460ff166120605760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77206c697374206973206e6f74206163746976650000000000000000604482015260640161090f565b3360009081526015602052604090205460ff90811690821611156120d15760405162461bcd60e51b815260206004820152602260248201527f4578636565646564206d617820617661696c61626c6520746f20707572636861604482015261736560f01b606482015260840161090f565b33600090815260156020526040812080548392906120f390849060ff16614bb5565b92506101000a81548160ff021916908360ff160217905550610b0481612b78565b600a546001600160a01b0316331461213e5760405162461bcd60e51b815260040161090f90614a18565b6001600160a01b0381166121a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161090f565b610b0481612a2a565b60006001600160e01b0319821663780e9d6360e01b14806107ff57506107ff82612fa6565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061220682611248565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000805b82518110156124285760006001600160a01b031683828151811061227757634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031614156122da5760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e740000000000604482015260640161090f565b8281815181106122fa57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b03166000141561235f5760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f736974697665604482015260640161090f565b82818151811061237f57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b03168261239f9190614b05565b9150600b60008581526020019081526020016000208382815181106123d457634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181018455600093845292829020815191909201516001600160601b0316600160a01b026001600160a01b03909116179101558061242081614c56565b915050612243565b5061271081106124885760405162461bcd60e51b815260206004820152602560248201527f526f79616c747920746f74616c2076616c75652073686f756c64206265203c20604482015264031303030360dc1b606482015260840161090f565b610a458383612ff6565b6000818152600260205260408120546001600160a01b031661250b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161090f565b600061251683611248565b9050806001600160a01b0316846001600160a01b031614806125515750836001600160a01b03166125468461089a565b6001600160a01b0316145b8061258157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661259c82611248565b6001600160a01b0316146126005760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161090f565b6001600160a01b0382166126625760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161090f565b61266d838383613033565b6126786000826121d1565b6001600160a01b03831660009081526003602052604081208054600192906126a1908490614b9e565b90915550506001600160a01b03821660009081526003602052604081208054600192906126cf908490614b05565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610a45565b606083600061273f8585614b9e565b67ffffffffffffffff81111561276557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561278f576020820181803683370190505b509050845b8481101561281d578281815181106127bc57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916826127d68884614b9e565b815181106127f457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508061281581614c56565b915050612794565b509150505b9392505050565b60008181805b82518160ff1610156110a9576030838260ff168151811061286057634e487b7160e01b600052603260045260246000fd5b016020015160f81c108015906128a157506039838260ff168151811061289657634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b156128f7576128b1600a83614b75565b91506030838260ff16815181106128d857634e487b7160e01b600052603260045260246000fd5b01602001516128ea919060f81c614bb5565b6128f49083614b1d565b91505b8061290181614c71565b91505061282f565b60608160ff166005141561293b5750604080518082019091526007815266185b985b1e5cdd60ca1b6020820152610802565b8160ff166004141561296d57506040805180820190915260098152686173736f636961746560b81b6020820152610802565b8160ff16600314156129a4575060408051808201909152600e81526d1d9a58d957dc1c995cda59195b9d60921b6020820152610802565b8160ff16600214156129d557506040805180820190915260088152673234b932b1ba37b960c11b6020820152610802565b8160ff1660011415612a0a575060408051808201909152600c81526b3137b0b9322fb6b2b6b132b960a11b6020820152610802565b50506040805180820190915260048152636e6f6e6560e01b602082015290565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60608160400151604051602001612a939190614478565b6040516020818303038152906040529050919050565b816001600160a01b0316836001600160a01b03161415612b0b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161090f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000612b8360085490565b600e54909150612b9660ff841683614b05565b10612ba057600080fd5b333b15612bac57600080fd5b8160ff16601754612bbd9190614b56565b3414612bc857600080fd5b60185460ff908116908316612bdc336118ae565b612be69190614b05565b1115612c2d5760405162461bcd60e51b8152602060048201526016602482015275195e18d959591cc81b585e081c195c881dd85b1b195d60521b604482015260640161090f565b6000815b8360ff168260ff161015610bfb576000612c4e60ff841683614b05565b9050612c5c813360006130f0565b6000828152600d602090815260409091208251612c7f9391929190910190613cc5565b506001600c600d6000848152602001908152602001600020604051612ca491906143dd565b908152604051908190036020019020805491151560ff19909216919091179055612cce3382613348565b82612cd881614c71565b93505050612c31565b612cec848484612589565b612cf884848484613362565b610bfb5760405162461bcd60e51b815260040161090f906149c6565b606081612d3957506040805180820190915260018152600360fc1b6020820152610802565b8160005b8115612d635780612d4d81614c56565b9150612d5c9050600a83614b42565b9150612d3d565b60008167ffffffffffffffff811115612d8c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612db6576020820181803683370190505b5090505b841561258157612dcb600183614b9e565b9150612dd8600a86614cb2565b612de3906030614b05565b60f81b818381518110612e0657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612e28600a86614b42565b9450612dba565b6060815160001415612e505750604080516020810190915260008152610802565b6000604051806060016040528060408152602001614d346040913990506000600384516002612e7f9190614b05565b612e899190614b42565b612e94906004614b56565b90506000612ea3826020614b05565b67ffffffffffffffff811115612ec957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ef3576020820181803683370190505b509050818152600183018586518101602084015b81831015612f615760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401612f07565b600389510660018114612f7b5760028114612f8c57612f98565b613d3d60f01b600119830152612f98565b603d60f81b6000198301525b509398975050505050505050565b60006001600160e01b031982166380ac58cd60e01b1480612fd757506001600160e01b03198216635b5e139f60e01b145b806107ff57506301ffc9a760e01b6001600160e01b03198316146107ff565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df8282604051613027929190614a9e565b60405180910390a15050565b6001600160a01b03831661308e5761308981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6130b1565b816001600160a01b0316836001600160a01b0316146130b1576130b1838261346f565b6001600160a01b0382166130cd576130c88161350c565b610a45565b826001600160a01b0316826001600160a01b031614610a4557610a4582826135e5565b6060600a82106130ff57600080fd5b60408051602081019091526000808252600f80549161311d83614c56565b919050555060004244878787600f5460405160200161314196959493929190614897565b6040516020818303038152906040528051906020012060001c9050600061316782613629565b9050826131768260ff16612d14565b604051602001613187929190614303565b604051602081830303815290604052925060008060005b600f8160ff1610156132f157600f80549060006131ba83614c56565b9190505550600061271042448d8d8d600f546040516020016131e196959493929190614897565b6040516020818303038152906040528051906020012060001c6132049190614cb2565b905060006132168261ffff168461376a565b9050600061322684888486613863565b90508660ff16600114801561323e57508360ff166004145b1561324b57809550613274565b8660ff16600114801561326157508360ff16600c145b1561327457613271866001614b1d565b90505b8360ff166007148015613289575060ff811615155b1561329357600194505b8360ff1660081480156132a35750845b156132ac575060005b886132b98260ff16612d14565b6040516020016132ca929190614303565b604051602081830303815290604052985050505080806132e990614c71565b91505061319e565b50600c8560405161330291906142e7565b9081526040519081900360200190205460ff161561333b5761332f898961332a8a6001614b05565b6130f0565b95505050505050612822565b5092979650505050505050565b610eb9828260405180602001604052806000815250613a40565b60006001600160a01b0384163b1561346457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906133a69033908990889088906004016148d2565b602060405180830381600087803b1580156133c057600080fd5b505af19250505080156133f0575060408051601f3d908101601f191682019092526133ed91810190613ff2565b60015b61344a573d80801561341e576040519150601f19603f3d011682016040523d82523d6000602084013e613423565b606091505b5080516134425760405162461bcd60e51b815260040161090f906149c6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612581565b506001949350505050565b6000600161347c846118ae565b6134869190614b9e565b6000838152600760205260409020549091508082146134d9576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061351e90600190614b9e565b6000838152600960205260408120546008805493945090928490811061355457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061358357634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806135c957634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006135f0836118ae565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60105460009061ffff8316901580159061364f575061364960c882614c91565b61ffff16155b15613673576010805490600061366483614c04565b91905055506001915050610802565b6000601154118015613691575061368b601982614c91565b61ffff16155b156136b557601180549060006136a683614c04565b91905055506002915050610802565b60006012541180156136d357506136cd600682614c91565b61ffff16155b156136f757601280549060006136e883614c04565b91905055506003915050610802565b6000601354118015613715575061370f600382614c91565b61ffff16155b15613739576013805490600061372a83614c04565b91905055506004915050610802565b60145415613760576014805490600061375183614c04565b91905055506005915050610802565b6000612581613a73565b600080805b601a8460ff16600f811061379357634e487b7160e01b600052603260045260246000fd5b015460ff8216101561385d576000601a8560ff16600f81106137c557634e487b7160e01b600052603260045260246000fd5b018260ff16815481106137e857634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff16861015801561382e57506138278184614ae8565b61ffff1686105b1561383d57509150610e499050565b6138478184614ae8565b925050808061385590614c71565b91505061376f565b50600080fd5b60008460ff166006148015613884575061387e600283614c91565b61ffff16155b156138925760009250613a37565b8460ff16600714806138a757508460ff166008145b156138e8578360ff1660051480156138cb57506138c5600283614c91565b61ffff16155b806138d9575060058460ff16105b156138e357600092505b613a37565b8460ff166009141561395a578360ff166005148061390957508360ff166004145b8061392e57508360ff16600214801561392e5750613928600283614c91565b61ffff16155b1561393857600092505b8360ff16600314801561394c575060ff8316155b156138e35760019250613a37565b8460ff16600a141561398f5760048460ff1610806138d9575061397e600283614c91565b61ffff166138e35760009250613a37565b8460ff16600b14156139b05760028460ff1611156138e35760009250613a37565b8460ff16600c1480156139c6575060018460ff16115b156139d45760009250613a37565b8460ff16600d1480156139f357506139ed600383614c91565b61ffff16155b15613a015760009250613a37565b8460ff16600e148015613a2d5750613a1a600283614c91565b61ffff161580613a2d57508360ff166005145b15613a3757600092505b50909392505050565b613a4a8383613b3a565b613a576000848484613362565b610a455760405162461bcd60e51b815260040161090f906149c6565b60145460009015613a9c5760148054906000613a8e83614c04565b919050555060059050610897565b60135415613ac25760138054906000613ab483614c04565b919050555060049050610897565b60125415613ae85760128054906000613ada83614c04565b919050555060039050610897565b60115415613b0e5760118054906000613b0083614c04565b919050555060029050610897565b60105415613b345760108054906000613b2683614c04565b919050555060019050610897565b50600090565b6001600160a01b038216613b905760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161090f565b6000818152600260205260409020546001600160a01b031615613bf55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161090f565b613c0160008383613033565b6001600160a01b0382166000908152600360205260408120805460019290613c2a908490614b05565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4610eb9565b508054613c9590614c1b565b6000825580601f10613ca75750610b04565b601f016020900490600052602060002090810190610b049190613d49565b828054613cd190614c1b565b90600052602060002090601f016020900481019282613cf35760008555613d39565b82601f10613d0c57805160ff1916838001178555613d39565b82800160010185558215613d39579182015b82811115613d39578251825591602001919060010190613d1e565b50613d45929150613d49565b5090565b5b80821115613d455760008155600101613d4a565b600067ffffffffffffffff831115613d7857613d78614cf2565b613d8b601f8401601f1916602001614ab7565b9050828152838383011115613d9f57600080fd5b828260208301376000602084830101529392505050565b8035801515811461080257600080fd5b600082601f830112613dd6578081fd5b61282283833560208501613d5e565b803560ff8116811461080257600080fd5b600060208284031215613e07578081fd5b813561282281614d08565b60008060408385031215613e24578081fd5b8235613e2f81614d08565b91506020830135613e3f81614d08565b809150509250929050565b600080600060608486031215613e5e578081fd5b8335613e6981614d08565b92506020840135613e7981614d08565b929592945050506040919091013590565b60008060008060808587031215613e9f578081fd5b8435613eaa81614d08565b93506020850135613eba81614d08565b925060408501359150606085013567ffffffffffffffff811115613edc578182fd5b8501601f81018713613eec578182fd5b613efb87823560208401613d5e565b91505092959194509250565b60008060408385031215613f19578182fd5b8235613f2481614d08565b9150613f3260208401613db6565b90509250929050565b60008060408385031215613f4d578182fd5b8235613f5881614d08565b946020939093013593505050565b60008060208385031215613f78578182fd5b823567ffffffffffffffff80821115613f8f578384fd5b818501915085601f830112613fa2578384fd5b813581811115613fb0578485fd5b8660208260051b8501011115613fc4578485fd5b60209290920196919550909350505050565b600060208284031215613fe7578081fd5b813561282281614d1d565b600060208284031215614003578081fd5b815161282281614d1d565b60006020828403121561401f578081fd5b813567ffffffffffffffff811115614035578182fd5b61258184828501613dc6565b600060208284031215614052578081fd5b5035919050565b60008060006060848603121561406d578081fd5b83359250602084013561407f81614d08565b915060408401356001600160601b038116811461409a578182fd5b809150509250925092565b600080604083850312156140b7578182fd5b50508035926020909101359150565b6000602082840312156140d7578081fd5b61282282613de5565b600080604083850312156140f2578182fd5b6140fb83613de5565b915060208084013567ffffffffffffffff80821115614118578384fd5b818601915086601f83011261412b578384fd5b81358181111561413d5761413d614cf2565b61414b848260051b01614ab7565b81815284810190848601875b8481101561420e57813587016080818e03601f1901121561417657898afd5b6141806080614ab7565b8982013588811115614190578b8cfd5b61419e8f8c83860101613dc6565b8252506040820135888111156141b2578b8cfd5b6141c08f8c83860101613dc6565b8b830152506060820135888111156141d6578b8cfd5b6141e48f8c83860101613dc6565b6040830152506141f660808301613db6565b60608201528552509287019290870190600101614157565b50979a909950975050505050505050565b60008060408385031215614231578182fd5b61423a83613de5565b9150613f3260208401613de5565b6000815180845260208085019450808401835b8381101561429457815180516001600160a01b031688528301516001600160601b0316838801526040909601959082019060010161425b565b509495945050505050565b600081518084526142b7816020860160208601614bd8565b601f01601f19169290920160200192915050565b600081516142dd818560208601614bd8565b9290920192915050565b600082516142f9818460208701614bd8565b9190910192915050565b60008351614315818460208801614bd8565b835190830190614329818360208801614bd8565b01949350505050565b60008251614344818460208701614bd8565b600b60fa1b920191825250600101919050565b60008451614369818460208901614bd8565b6e3d913a3930b4ba2fba3cb832911d1160891b908301908152845161439581600f840160208901614bd8565b6a1116113b30b63ab2911d1160a91b600f929091019182015283516143c181601a840160208801614bd8565b61227d60f01b601a9290910191820152601c0195945050505050565b600080835482600182811c9150808316806143f957607f831692505b602080841082141561441957634e487b7160e01b87526022600452602487fd5b81801561442d576001811461443e5761446a565b60ff1986168952848901965061446a565b60008a815260209020885b868110156144625781548b820152908501908301614449565b505084890196505b509498975050505050505050565b60007f3c696d61676520783d22342220793d2234222077696474683d2233322220686582527f696768743d2233322220696d6167652d72656e646572696e673d22706978656c60208301527f6174656422207072657365727665417370656374526174696f3d22784d69645960408301527f4d69642220786c696e6b3a687265663d22646174613a696d6167652f706e673b60608301526618985cd94d8d0b60ca1b60808301528251614532816087850160208701614bd8565b6211179f60e91b6087939091019283015250608a01919050565b60007f3c7376672069643d2262616e6b6572222077696474683d22313030252220686582527f696768743d2231303025222076657273696f6e3d22312e31222076696577426f60208301527f783d223020302034302034302220786d6c6e733d22687474703a2f2f7777772e60408301527f77332e6f72672f323030302f7376672220786d6c6e733a786c696e6b3d22687460608301527f74703a2f2f7777772e77332e6f72672f313939392f786c696e6b223e000000006080830152825161461c81609c850160208701614bd8565b651e17b9bb339f60d11b609c93909101928301525060a201919050565b6000605b60f81b82528251614655816001850160208701614bd8565b605d60f81b6001939091019283015250600201919050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000825282516146a581601d850160208701614bd8565b91909101601d0192915050565b737b226e616d65223a20224465627443697479202360601b815283516000906146e2816014850160208901614bd8565b7f222c20226465736372697074696f6e223a2022446562744369747920697320746014918401918201527f6865206669727374206f6e2d636861696e2065636f6e6f6d69632073696d756c60348201527f61746f722e204e6f20495046532c206e6f204150492e204a75737420616e204560548201527f7468657265756d20626c6f636b636861696e2073696d756c6174696f6e206f6660748201527f2066696e616e63652c20696e766573746d656e742c20616e6420646567656e6560948201527f72616379222c2022696d616765223a2022646174613a696d6167652f7376672b60b48201526a1e1b5b0ed8985cd94d8d0b60aa1b60d482015284516147f18160df840160208901614bd8565b61482e61482161481b60df848601016e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b876142cb565b607d60f81b815260010190565b979650505050505050565b60007f7b2274726169745f74797065223a226a6f625f7469746c65222c2276616c7565825262111d1160e91b6020830152825161487d816023850160208701614bd8565b62089f4b60ea1b6023939091019283015250602601919050565b95865260208601949094526040850192909252606090811b6bffffffffffffffffffffffff1916908401526074830152609482015260b40190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906149059083018461429f565b9695505050505050565b6000602082526128226020830184614248565b6020808252825182820181905260009190848201906040850190845b8181101561495a5783518352928401929184019160010161493e565b50909695505050505050565b600060208252612822602083018461429f565b60006080825261498c608083018761429f565b828103602084015261499e818761429f565b905082810360408401526149b2818661429f565b915050821515606083015295945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000838252604060208301526125816040830184614248565b604051601f8201601f1916810167ffffffffffffffff81118282101715614ae057614ae0614cf2565b604052919050565b600061ffff80831681851680830382111561432957614329614cc6565b60008219821115614b1857614b18614cc6565b500190565b600060ff821660ff84168060ff03821115614b3a57614b3a614cc6565b019392505050565b600082614b5157614b51614cdc565b500490565b6000816000190483118215151615614b7057614b70614cc6565b500290565b600060ff821660ff84168160ff0481118215151615614b9657614b96614cc6565b029392505050565b600082821015614bb057614bb0614cc6565b500390565b600060ff821660ff841680821015614bcf57614bcf614cc6565b90039392505050565b60005b83811015614bf3578181015183820152602001614bdb565b83811115610bfb5750506000910152565b600081614c1357614c13614cc6565b506000190190565b600181811c90821680614c2f57607f821691505b60208210811415614c5057634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614c6a57614c6a614cc6565b5060010190565b600060ff821660ff811415614c8857614c88614cc6565b60010192915050565b600061ffff80841680614ca657614ca6614cdc565b92169190910692915050565b600082614cc157614cc1614cdc565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b0457600080fd5b6001600160e01b031981168114610b0457600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220ad4fd09b3fc4643dd7facdc8231dc2015104bc5f5e82999384decbea32a6b9ad64736f6c63430008030033

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.