CRO Price: $0.11 (+7.91%)

Contract

0x8Dd9975c78423480a6188F55B0767fbF4478b001

Overview

CRO Balance

Cronos Chain LogoCronos Chain LogoCronos Chain Logo17,535 CRO

CRO Value

$1,896.03 (@ $0.11/CRO)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...187467392025-03-26 12:34:1842 hrs ago1742992458IN
0x8Dd9975c...F4478b001
0 CRO0.19470144,189.01875
Set Approval For...187302812025-03-25 10:45:292 days ago1742899529IN
0x8Dd9975c...F4478b001
0 CRO0.11453133,900
Set Approval For...186659352025-03-21 5:43:187 days ago1742535798IN
0x8Dd9975c...F4478b001
0 CRO0.12627814,300
Set Approval For...186659332025-03-21 5:43:087 days ago1742535788IN
0x8Dd9975c...F4478b001
0 CRO0.12627814,300
Set Approval For...186659322025-03-21 5:43:027 days ago1742535782IN
0x8Dd9975c...F4478b001
0 CRO0.12627814,300
Set Approval For...186131762025-03-17 19:00:4310 days ago1742238043IN
0x8Dd9975c...F4478b001
0 CRO0.174412443,752.5
Set Approval For...185953012025-03-16 14:55:5411 days ago1742136954IN
0x8Dd9975c...F4478b001
0 CRO0.175986923,786.375
Set Approval For...185870022025-03-16 1:51:5012 days ago1742089910IN
0x8Dd9975c...F4478b001
0 CRO0.174412443,752.5
Set Approval For...185781312025-03-15 11:54:0512 days ago1742039645IN
0x8Dd9975c...F4478b001
0 CRO0.11453133,900
Set Approval For...185106982025-03-11 2:02:3917 days ago1741658559IN
0x8Dd9975c...F4478b001
0 CRO0.111194473,786.375
Set Approval For...185103762025-03-11 1:32:1217 days ago1741656732IN
0x8Dd9975c...F4478b001
0 CRO0.174412443,752.5
Set Approval For...185101862025-03-11 1:14:1417 days ago1741655654IN
0x8Dd9975c...F4478b001
0 CRO0.184524823,970.06875
Set Approval For...185096932025-03-11 0:27:3517 days ago1741652855IN
0x8Dd9975c...F4478b001
0 CRO0.174412443,752.5
Pin Components T...182887452025-02-24 13:12:4831 days ago1740402768IN
0x8Dd9975c...F4478b001
0 CRO1.588837313,787.5
Pin Components T...182887352025-02-24 13:11:5031 days ago1740402710IN
0x8Dd9975c...F4478b001
0 CRO1.588837313,787.5
Pin Components T...182887232025-02-24 13:10:4131 days ago1740402641IN
0x8Dd9975c...F4478b001
0 CRO4.091484753,787.5
Pin Components T...182886842025-02-24 13:07:0231 days ago1740402422IN
0x8Dd9975c...F4478b001
0 CRO1.692592083,787.5
WL Mint Componen...182886682025-02-24 13:05:3031 days ago1740402330IN
0x8Dd9975c...F4478b001
0 CRO0.974618433,787.5
Pin Components T...182886412025-02-24 13:02:5931 days ago1740402179IN
0x8Dd9975c...F4478b001
0 CRO1.681987083,787.5
Set Approval For...182884402025-02-24 12:44:0131 days ago1740401041IN
0x8Dd9975c...F4478b001
0 CRO0.176039213,787.5
Set Approval For...182861462025-02-24 9:08:0731 days ago1740388087IN
0x8Dd9975c...F4478b001
0 CRO0.19985974,300
Pin Components T...182788102025-02-23 21:37:2532 days ago1740346645IN
0x8Dd9975c...F4478b001
0 CRO2.699097483,787.5
Set Approval For...182732842025-02-23 12:56:5132 days ago1740315411IN
0x8Dd9975c...F4478b001
0 CRO0.176039213,787.5
Pin Components T...182668612025-02-23 2:50:5933 days ago1740279059IN
0x8Dd9975c...F4478b001
0 CRO2.545751913,788
Pin Components T...182668472025-02-23 2:49:3933 days ago1740278979IN
0x8Dd9975c...F4478b001
0 CRO3.474330563,787.5
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
131265562024-03-22 13:03:29370 days ago1711112609
0x8Dd9975c...F4478b001
5,775 CRO
126491372024-02-20 15:54:06401 days ago1708444446
0x8Dd9975c...F4478b001
12,530 CRO
119209132024-01-04 6:47:25449 days ago1704350845
0x8Dd9975c...F4478b001
4,235 CRO
116842042023-12-19 22:02:06464 days ago1703023326
0x8Dd9975c...F4478b001
10,430 CRO
113531612023-11-28 8:26:02485 days ago1701159962
0x8Dd9975c...F4478b001
8,120 CRO
110270152023-11-07 3:42:09507 days ago1699328529
0x8Dd9975c...F4478b001
26,565 CRO
105713752023-10-08 10:05:53536 days ago1696759553
0x8Dd9975c...F4478b001
18,690 CRO
103195352023-09-21 23:47:09553 days ago1695340029
0x8Dd9975c...F4478b001
26,810 CRO
99779072023-08-30 17:04:06575 days ago1693415046
0x8Dd9975c...F4478b001
8,750 CRO
97551872023-08-16 4:13:57590 days ago1692159237
0x8Dd9975c...F4478b001
11,200 CRO
95316912023-08-01 14:29:27604 days ago1690900167
0x8Dd9975c...F4478b001
15,681 CRO
93566222023-07-21 4:23:51616 days ago1689913431
0x8Dd9975c...F4478b001
33,530 CRO
89775082023-06-26 11:43:21640 days ago1687779801
0x8Dd9975c...F4478b001
9,975 CRO
85850452023-05-31 19:38:12666 days ago1685561892
0x8Dd9975c...F4478b001
7,210 CRO
84542952023-05-23 5:48:24675 days ago1684820904
0x8Dd9975c...F4478b001
18,725 CRO
82782522023-05-11 16:44:20686 days ago1683823460
0x8Dd9975c...F4478b001
6,545 CRO
82070782023-05-07 0:55:08691 days ago1683420908
0x8Dd9975c...F4478b001
7,770 CRO
81708682023-05-04 16:02:25693 days ago1683216145
0x8Dd9975c...F4478b001
1,050 CRO
81550352023-05-03 15:11:13694 days ago1683126673
0x8Dd9975c...F4478b001
9,485 CRO
80500892023-04-26 18:21:47701 days ago1682533307
0x8Dd9975c...F4478b001
17,815 CRO
79736512023-04-21 18:15:41706 days ago1682100941
0x8Dd9975c...F4478b001
13,965 CRO
78572022023-04-14 3:26:42714 days ago1681442802
0x8Dd9975c...F4478b001
2,940 CRO
78414302023-04-13 2:41:12715 days ago1681353672
0x8Dd9975c...F4478b001
10,850 CRO
77690162023-04-08 9:04:27719 days ago1680944667
0x8Dd9975c...F4478b001
4,305 CRO
77502492023-04-07 3:37:33721 days ago1680838653
0x8Dd9975c...F4478b001
9,345 CRO
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BoomRoom

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

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

import "@openzeppelin/contracts/access//Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "./IComponent.sol";
import "../util.sol";
import "./components.sol";
import "./IBoomRoom.sol";
import "./ICosmeticComponents.sol";
import "../withdrawable.sol";


contract BoomRoom is IBoomRoom, Ownable, ERC721Enumerable, Withdrawable {
    using Counters for Counters.Counter;
    Counters.Counter public tokenIndex;

    // room types
    uint256 public constant SINGLE = 1;
    uint256 public constant STUDIO = 2;
    uint256 public constant DOUBLE = 3;
    uint256 public constant LOFT = 4;
    uint256 public constant PENTHOUSE = 5;


    // component types
    // note that when components are passed around as a uint256[9],
    // the ordering is consistent with this list (i.e. index 0 is window, index 1 is door, etc.)
    // if you change these values you will also break logic to map component arrays to their types... so change those too if you need to change these values
    // see getContractForComponentIndex()

    mapping(uint256 => uint) componentSupplies;
    // MUST MATCH ORDER IN components.sol
    uint256[10] allComponents = [components.WINDOW, components.DOOR, components.BED, components.BUILDING,
        components.TABLE, components.DESK, components.ENTERTAINMENT, components.COUCH,
        components.PET, components.ACTIVITY];
    uint256 public remainingSupplyOfComponents = 198000;

    mapping(address => whiteListInfo) WLinfo;
    struct whiteListInfo {
        uint256 numRooms;
        uint256 numComponents;
    }
    function setWLInfo(address[] calldata addresses, uint256[] calldata numRooms, uint256[] calldata numComponents) external onlyOwner {
        require(addresses.length == numRooms.length && numRooms.length == numComponents.length, "diff length");
        for (uint256 i = 0; i < addresses.length; i++) {
            WLinfo[addresses[i]] = whiteListInfo({
                numRooms: numRooms[i],
                numComponents: numComponents[i]
            });
        }
    }

    string public baseURI;
    function setBaseURI(string calldata uri) external onlyOwner {
        baseURI = uri;
    }

    // tokenID => metadata
    mapping(uint256 => roomMetadata) roomMeta;

    struct roomMetadata {
        uint256 roomType;
        uint256 score;
        uint256[10] components;
        uint256[] cosmetics;
    }

    event newRoom(
            uint256 id,
            uint256 oldId,
            uint256 roomType,
            uint256 score,
            uint256[10] components,
            uint256[] cosmetics
        );

    uint256 roomSupply = 7000;

    uint256 seed = 100;
    function setSeed(uint256 newSeed) external onlyOwner {
        seed = newSeed;
    }

    uint256 public roomMintPrice = 1000000000000000000 * 10;
    function setMintPrice(uint256 newPrice) external onlyOwner {
        roomMintPrice = newPrice;
    }

    uint256 public componentMintPrice = 1000000000000000000 * 10;
    function setComponentMintPrice(uint256 newPrice) external onlyOwner {
        componentMintPrice = newPrice;
    }

    uint256 public cosmeticsMintPrice = 1000000000000000000 * 10;
    function setCosmeticMintPrice(uint256 newPrice) external onlyOwner {
        cosmeticsMintPrice = newPrice;
    }

    bool roomMintingEnabled = false;
    function setRoomMintingEnabled(bool enabled) external onlyOwner {
        roomMintingEnabled = enabled;
    }

    bool componentMintingEnabled = false;
    function setComponentMintingEnabled(bool enabled) external onlyOwner {
        componentMintingEnabled = enabled;
    }

    bool WLRoomMintingEnabled = false;
    function setWLRoomMintingEnabled(bool enabled) external onlyOwner {
        WLRoomMintingEnabled = enabled;
    }

    bool WLComponentMintingEnabled = false;
    function setWLComponentMintingEnabled(bool enabled) external onlyOwner {
        WLComponentMintingEnabled = enabled;
    }

    bool cosmeticMintingEnabled = false;
    function setCosmeticMintingEnabled(bool enabled) external onlyOwner {
        cosmeticMintingEnabled = enabled;
    }


    mapping(uint256 => IBoomRoomComponent) componentContracts;
    function setComponentContract(uint256 contractType, address addr) external onlyOwner {
        if (contractType < components.WINDOW || contractType > components.ACTIVITY) {
            revert("invalid contract type");
        }
        if (addr == address(0)) {
            revert("cannot use null address");
        }
        componentContracts[contractType] = IBoomRoomComponent(addr);
    }

    ICosmetic cosmeticsContract;
    function setCosmeticsContract(address addr) external onlyOwner {
        if (addr == address(0)) {
            revert("cannot use null address");
        }
        cosmeticsContract = ICosmetic(addr);
    }

    constructor(string memory uri, address windowContract, address door, address bed,
        address building, address table, address desk, address entertainment, address couch, address pet, address activity) ERC721("Boom Room", "BMRM") {
        baseURI = uri;
        componentContracts[components.WINDOW] = IBoomRoomComponent(windowContract);
        componentContracts[components.DOOR] = IBoomRoomComponent(door);
        componentContracts[components.BED] = IBoomRoomComponent(bed);
        componentContracts[components.BUILDING] = IBoomRoomComponent(building);
        componentContracts[components.TABLE] = IBoomRoomComponent(table);
        componentContracts[components.DESK] = IBoomRoomComponent(desk);
        componentContracts[components.ENTERTAINMENT] = IBoomRoomComponent(entertainment);
        componentContracts[components.COUCH] = IBoomRoomComponent(couch);
        componentContracts[components.PET] = IBoomRoomComponent(pet);
        componentContracts[components.ACTIVITY] = IBoomRoomComponent(activity);

        componentSupplies[components.WINDOW] = 29400;
        componentSupplies[components.DOOR] = 29400;
        componentSupplies[components.BED] = 29400;
        componentSupplies[components.BUILDING] = 29400;

        componentSupplies[components.TABLE] = 13400;
        componentSupplies[components.DESK] = 13400;
        componentSupplies[components.ENTERTAINMENT] = 13400;
        componentSupplies[components.COUCH] = 13400;
        componentSupplies[components.PET] = 13400;
        componentSupplies[components.ACTIVITY] = 13400;

        // start index at 1 so that "0" can mean no component where applicable
        tokenIndex.increment();
    }

    function getTokenMeta(uint256 token) external view returns (uint256 roomType, uint256 score, uint256[10] memory comps, uint256[] memory cosmetics) {
        return (roomMeta[token].roomType, roomMeta[token].score, roomMeta[token].components, roomMeta[token].cosmetics);
    }

    function getRoomType(uint256 token) external view returns (uint256) {
        return roomMeta[token].roomType;
    }

    function getRoomScore(uint256 token) external view returns (uint256) {
        return roomMeta[token].score;
    }

    function getWLInfo(address addr) external view returns (uint256, uint256) {
        return (
            WLinfo[addr].numRooms,
            WLinfo[addr].numComponents
        );
    }

    function mint(uint256 amount) external payable {
        require(roomMintingEnabled, "minting not yet enabled");
        require(
            msg.value == (uint256(roomMintPrice * amount)),
            "invalid amount"
        );
        executeRandomMint(amount);
    }
    
    function WLMint(uint256 amount) external payable {
        require(WLRoomMintingEnabled, "whitelist minting not yet enabled");
        require(uint256( WLinfo[msg.sender].numRooms) >= amount, "not enough WL allowance");
        require(
            msg.value == (roomMintPrice * amount),
            "invalid amount"
        );
        executeRandomMint(amount);
        WLinfo[msg.sender].numRooms -= amount ;
    }

    function adminMint(address[] calldata addresses, uint256 roomType) external onlyOwner {
        for (uint256 i = 0; i < addresses.length; i++) {
            executeMint(addresses[i], roomType);
        }
    }

    function executeRandomMint(uint256 amount) internal {
        require(amount < 26, "must mint 25 at a time");
        for (uint256 i = 0; i < amount; i++) {
            require(roomSupply > 0, "no more room supply");
            executeMint(msg.sender, pickRandomRoomType(seed + i));
        }
    }

    function executeMint(address to, uint256 roomType) internal {
            _safeMint(to, tokenIndex.current());
            uint256[10] memory comps = [uint256(0), 0, 0, 0, 0, 0, 0, 0, 0, 0];
            uint256[] memory cosmetics;
            setRoomMeta(tokenIndex.current(), roomType, 0, comps, cosmetics);
            roomSupply--;
            emit newRoom({
                id: tokenIndex.current(),
                oldId: 0,
                roomType: roomType,
                score: 0,
                components: comps,
                cosmetics: cosmetics
            });
            tokenIndex.increment();
    }

    function WLMintComponent(uint256 amount) external {
        require(WLComponentMintingEnabled, "whitelist minting not yet enabled for components");
        require(uint256( WLinfo[msg.sender].numComponents) >= amount, "not enough WL allowance");
        executeRandomComponentMint(amount);
        WLinfo[msg.sender].numComponents -= amount;
    }

    function mintComponent(uint256 amount) external payable {
        require(componentMintingEnabled, "component minting not yet enabled");
        require(
            msg.value == (uint256(componentMintPrice * amount)),
            "invalid amount"
        );
        executeRandomComponentMint(amount);
    }

    function adminMintComponent(address to, uint256 amount) external onlyOwner {
        for (uint256 i = 0; i < amount; i++) {
            executeRandomComponentMint(amount);
        }
    }

    function adminMintSpecificComponent(address to, uint256 componenType) external onlyOwner {
        executeComponentMint(to, componenType);
    }

    function executeRandomComponentMint(uint256 amount) internal {
        require(amount < 26, "must mint <26 at a time");
        for (uint256 i = 0; i < amount; i++) {
            executeComponentMint(msg.sender, pickRandomComponent(seed + i));
        }
    }

    function executeComponentMint(address to, uint256 componentType) internal {
        require(remainingSupplyOfComponents > 0, "components minted out");
        IBoomRoomComponent compContract = componentContracts[componentType];
        compContract.mint(to, 1);
        componentSupplies[componentType]--;
        remainingSupplyOfComponents--;
    }

    function pinCosmeticsToRoom(uint256 room, uint256[] memory cosmetics) external {
        require(ownerOf(room) == msg.sender, "caller does not own room");
        require(cosmetics.length > 0, "empty cosmetics");
        roomMetadata storage md = roomMeta[room];
        uint256[] storage currentCosmetics = md.cosmetics;
        uint256 newTotal = currentCosmetics.length + cosmetics.length;
        require(newTotal <= 9, "cannot have more than 6 cosmetic slots");
        bool validCount = (md.roomType == SINGLE && newTotal <= 3) ||
            (md.roomType == STUDIO && newTotal <= 4) ||
            (md.roomType == DOUBLE && newTotal <= 5) ||
            (md.roomType == LOFT && newTotal <= 6) ||
            (md.roomType == PENTHOUSE && newTotal <= 9);
        require(validCount, "invalid cosmetic count for room type");
        uint256[] memory allCosmetics = new uint256[](newTotal);
        uint i=0;
        for (; i < currentCosmetics.length; i++) {
            for (uint256 j = 0; j < cosmetics.length; j++) {
                require(currentCosmetics[i] != cosmetics[j], "duplicate cosmetic");
            }
            allCosmetics[i] = currentCosmetics[i];
        }
        uint j=0;
        while (j < cosmetics.length) {
            allCosmetics[i++] = cosmetics[j++];
        }
        cosmeticsContract.lockCosmetics(msg.sender, cosmetics);
        uint256 curr = tokenIndex.current();
        _mint(msg.sender, curr);
        setRoomMeta(curr, md.roomType, md.score, md.components, allCosmetics);
        emit newRoom({
            id: curr,
            oldId: room,
            roomType: md.roomType,
            score: md.score,
            components: md.components,
            cosmetics: allCosmetics
        });
        _burn(room);
        tokenIndex.increment();
    }

    function unpinCosmeticsToRoom(uint256 room, uint256[] memory cosmetics) external {
        require(ownerOf(room) == msg.sender, "caller does not own room");
        require(cosmetics.length > 0, "empty cosmetics");
        roomMetadata storage md = roomMeta[room];
        for (uint256 i = 0; i < cosmetics.length; i++) {
            bool found = false;
            for (uint256 j = 0; j < md.cosmetics.length; j++) {
                found = found || cosmetics[i] == md.cosmetics[j];
            }
            require(found, "can't unpin cosmetic that isn't in room");
        }
        uint256[] storage currentCosmetics = md.cosmetics;
        uint256[] memory allCosmetics = new uint256[](currentCosmetics.length - cosmetics.length);
        uint newIndex=0;
        for (uint i = 0; i < currentCosmetics.length; i++) {
            bool found = false;
            for (uint256 j = 0; j < cosmetics.length; j++) {
                if (currentCosmetics[i] == cosmetics[j]) {
                    found = true;
                    break;
                }
            }
            // add if not found, since cosmetics are the ones to be removed
            if (!found) {
                allCosmetics[newIndex++] = currentCosmetics[i];
            }
        }
        cosmeticsContract.unlockCosmetics(msg.sender, cosmetics);
        uint256 curr = tokenIndex.current();
        _mint(msg.sender, curr);
        setRoomMeta(curr, md.roomType, md.score, md.components, allCosmetics);
        emit newRoom({
            id: curr,
            oldId: room,
            roomType: md.roomType,
            score: md.score,
            components: md.components,
            cosmetics: allCosmetics
        });
        _burn(room);
        tokenIndex.increment();
    }


    // TODO add mintCosmetic (make sure cosmetic address is replaceable);
    // COMPONENTS ORDER MUST MATCH WHAT IS IN COMPONENTS.SOL
    function pinComponentsToRoom(uint256 room, uint256[10] memory comps) external {
        require(ownerOf(room) == msg.sender, "caller does not own room");
        roomMetadata memory md = roomMeta[room];
        require(areValidRoomComponents(md.roomType, comps), "invalid components for room type provided");
        uint256[10] memory currentComponents = md.components;
        uint256 newScore = 0;
        for (uint256 i = 0; i < allComponents.length; i++) {
            uint256 newComponent = comps[i];
            uint256 existingComponent = currentComponents[i];
            IBoomRoomComponent contr = getContractForComponentIndex(i);
            if (existingComponent != 0 && newComponent != existingComponent) {
                contr.unlockComponent(msg.sender, existingComponent);
            }
            if (newComponent == 0) {
                continue;
            }
            // component contract validate ownership and that component isn't already in use
            if (newComponent != existingComponent) {
                newScore += contr.lockComponent(msg.sender, newComponent);
            } else {
                newScore += contr.getScore(existingComponent);
            }
        }
        uint256 multiplier;
        if (md.roomType == SINGLE) {
            multiplier = 1;
        } else if (md.roomType == STUDIO) {
            multiplier = 2;
        } else if (md.roomType == DOUBLE) {
            multiplier = 3;
        } else if (md.roomType == LOFT) {
            multiplier = 4;
        } else if (md.roomType == PENTHOUSE) {
            multiplier = 5;
        }
        uint256 totalScore = newScore * multiplier;
        uint256 curr = tokenIndex.current();
        _mint(msg.sender, curr);
        setRoomMeta(curr, md.roomType, totalScore, comps, md.cosmetics);
        emit newRoom({
            id: curr,
            oldId: room,
            roomType: md.roomType,
            score: totalScore,
            components: comps,
            cosmetics: md.cosmetics
        });
        _burn(room);
        tokenIndex.increment();
    }




    function getContractForComponentIndex(uint256 i) internal view returns (IBoomRoomComponent) {
        uint256 componentType = i + 100;
        require(componentType >= components.WINDOW && componentType <= components.ACTIVITY, "invalid index, cannot get component contract");
        return componentContracts[componentType];
    }

    function areValidRoomComponents(uint256 roomType, uint256[10] memory comps) internal view returns (bool) {
        uint256 nonFixedComponents = 0;
        // first 4 are fixed components which any room type can have
        for (uint256 i = 4; i < allComponents.length; i++) {
            if (comps[i] > 0) {
                nonFixedComponents++;
            }
        }
        return (roomType == SINGLE && nonFixedComponents <= 2) ||
            (roomType == STUDIO && nonFixedComponents <= 2) ||
            (roomType == DOUBLE && nonFixedComponents <= 3) ||
            (roomType == LOFT && nonFixedComponents <= 4) ||
            (roomType == PENTHOUSE && nonFixedComponents <= 5);
    }

    function getValueOfRoom(uint256 room) internal returns (uint256) {
    }

    function setRoomMeta(uint256 token, uint256 roomType, uint score, uint256[10] memory comps, uint256[] memory cosmetics) internal {
        roomMeta[token] = roomMetadata({roomType: roomType, score: score, components: comps, cosmetics: cosmetics});
    }

    function pickRandomRoomType(uint256 input) internal view returns (uint256) {
        uint256 rando = util.random(msg.sender, input) % 10000;
        if (rando < 3707) {
            return SINGLE;
        }
        if (rando < 6417) {
            return STUDIO;
        }
        if (rando < 8355) {
            return DOUBLE;
        }
        if (rando < 9888) {
            return LOFT;
        }
         if (rando < 10000) {
            return PENTHOUSE;
        }

        // not be possible, but better than giving everone PENTHOUSEs if we really mess something up :p
        revert("something went wrong picking random room type");
    }

    function pickRandomComponent(uint256 randomInput) internal view returns (uint256) {
        uint256 componentSelection = util.random(msg.sender, randomInput) % remainingSupplyOfComponents;
        uint256 last = 0;
        for (uint256 i = 0; i < allComponents.length; i++) {
            uint256 component = allComponents[i];
            uint256 remainingSupply = componentSupplies[component];
            if (componentSelection >= last && componentSelection < last + remainingSupply) {
                return component;
            }
            last = last + remainingSupply;
        }
        revert("no components left to mint");
    }

    // ERC721 overrides
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override {
        super._beforeTokenTransfer(from, to, tokenId);
        if (to == address(0)) {
            // burned
            delete roomMeta[tokenId];
        }
    }

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

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

import "@openzeppelin/contracts/access//Ownable.sol";

contract Withdrawable is Ownable {
    function withdraw() public payable onlyOwner {
        (bool success, ) = payable(msg.sender).call{
            value: address(this).balance
        }("");
        require(success);
    }
}

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

library util {
    function random(address addr, uint256 input) internal view returns (uint256) {
        return
            uint256(
                keccak256(
                    abi.encodePacked(
                        block.timestamp +
                            block.difficulty +
                            block.gaslimit +
                            block.number +
                            input +
                            ((
                                uint256(
                                    keccak256(abi.encodePacked(block.coinbase))
                                )
                            ) / block.timestamp) +
                            ((
                                uint256(
                                    keccak256(abi.encodePacked(addr))
                                )
                            ) / block.timestamp)
                    )
                )
            );
    }
}

File 4 of 20 : components.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library components {
    // fixed
    uint256 public constant WINDOW = 100;
    uint256 public constant DOOR = 101;
    uint256 public constant BED = 102;
    uint256 public constant BUILDING = 103;

    // not fixed
    uint256 public constant TABLE = 104;
    uint256 public constant DESK = 105;
    uint256 public constant ENTERTAINMENT = 106;
    uint256 public constant COUCH = 107;
    uint256 public constant PET = 108;
    uint256 public constant ACTIVITY = 109;

    uint256 public constant COSMETIC = 110;
}

File 5 of 20 : ICosmeticComponents.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface ICosmetic {
    function mint(uint256 amount) external payable;

    function lockCosmetics(address owner, uint256[] calldata ids) external;

    function unlockCosmetics(address owner, uint256[] calldata ids) external;
}

File 6 of 20 : IComponent.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IBoomRoomComponent {
    // mint random component with a single random trait on it
    // can only be called by BoomRoom contract
    // origin is the address that called BoomRoom contract
    // emits an event with the new component's metadata (ID, traits, score)
    // returns component type (e.g. windows, doors, bed etc)
    function mint(address origin, uint256 amount) external returns (uint256);

    // get the current traits of the component, and its total score, and whether the component is locked to a boom room
    function getComponentMetadata(uint256 component) external returns (uint256[4] memory, uint256, bool);

    function getScore(uint256 component) external view returns (uint256);

    // function getComponentTraits(uint256 component) external view returns (uint256[4] memory);
    // locks a component (i.e. to a boom room) - cannot swap traits when locked
    // returns total score of the component
    function lockComponent(address owner, uint256 id) external returns (uint256);

    // unlock component, transferring ownership back to owner
    function unlockComponent(address owner, uint256 id) external;

    // swaps traits between leftComponent and rightComponent.
    // validates that each trait in leftTraits and rightTraits already exists on EITHER leftComponent or rightComponent
    // emits an event with the new component's metadata (ID, traits, score)
    // function swapTraits(uint256 leftComponent, uint256[4] calldata leftTraits, uint256 rightComponent, uint256[4] calldata rightTraits) external;

    // removes trait (with type traitType) from fromComponent and puts it onto toComponent
    // ultimately burns original components and mints new ones
    function swapTrait(uint256 toComponent, uint256 fromComponent, uint256 traitType, uint256 trait) external;

    function componentType() external returns (uint256);
}

File 7 of 20 : IBoomRoom.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IBoomRoom {
    // mint new empty (no components) boom room
    function mint(uint256 amount) external payable;
    // returns the room type (index 0) and total score (index 1) of the provided boom room token
    function getTokenMeta(uint256 token) external view returns (uint256 roomType, uint256 score, uint256[10] memory comps, uint256[] memory cosmetics);

    /*
        Pins components to boom room.
        Verifies that caller owns room.
        Verifies that caller owns components.
        Verifies that components are not locked.
        Unpins all components that already existed on this room that aren't in the new components.
        Emits newBoomRoom event with token ID, room type, components, and score
    */
    function pinComponentsToRoom(uint256 room, uint256[10] memory comps) external;
}

File 8 of 20 : 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 9 of 20 : 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 10 of 20 : 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 11 of 20 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 12 of 20 : 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 20 : 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 20 : 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 20 : 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 20 : 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 20 : 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 20 : 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 20 : 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 20 : 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": {
    "details": {
      "constantOptimizer": true,
      "cse": true,
      "deduplicate": true,
      "inliner": true,
      "jumpdestRemover": true,
      "orderLiterals": true,
      "peephole": true,
      "yul": false
    },
    "runs": 200
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"address","name":"windowContract","type":"address"},{"internalType":"address","name":"door","type":"address"},{"internalType":"address","name":"bed","type":"address"},{"internalType":"address","name":"building","type":"address"},{"internalType":"address","name":"table","type":"address"},{"internalType":"address","name":"desk","type":"address"},{"internalType":"address","name":"entertainment","type":"address"},{"internalType":"address","name":"couch","type":"address"},{"internalType":"address","name":"pet","type":"address"},{"internalType":"address","name":"activity","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"roomType","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"score","type":"uint256"},{"indexed":false,"internalType":"uint256[10]","name":"components","type":"uint256[10]"},{"indexed":false,"internalType":"uint256[]","name":"cosmetics","type":"uint256[]"}],"name":"newRoom","type":"event"},{"inputs":[],"name":"DOUBLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PENTHOUSE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SINGLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STUDIO","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WLMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WLMintComponent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256","name":"roomType","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminMintComponent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"componenType","type":"uint256"}],"name":"adminMintSpecificComponent","outputs":[],"stateMutability":"nonpayable","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"componentMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cosmeticsMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token","type":"uint256"}],"name":"getRoomScore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token","type":"uint256"}],"name":"getRoomType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token","type":"uint256"}],"name":"getTokenMeta","outputs":[{"internalType":"uint256","name":"roomType","type":"uint256"},{"internalType":"uint256","name":"score","type":"uint256"},{"internalType":"uint256[10]","name":"comps","type":"uint256[10]"},{"internalType":"uint256[]","name":"cosmetics","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getWLInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintComponent","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"room","type":"uint256"},{"internalType":"uint256[10]","name":"comps","type":"uint256[10]"}],"name":"pinComponentsToRoom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"room","type":"uint256"},{"internalType":"uint256[]","name":"cosmetics","type":"uint256[]"}],"name":"pinCosmeticsToRoom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"remainingSupplyOfComponents","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"roomMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"contractType","type":"uint256"},{"internalType":"address","name":"addr","type":"address"}],"name":"setComponentContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setComponentMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setComponentMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setCosmeticMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setCosmeticMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setCosmeticsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setRoomMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSeed","type":"uint256"}],"name":"setSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setWLComponentMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"numRooms","type":"uint256[]"},{"internalType":"uint256[]","name":"numComponents","type":"uint256[]"}],"name":"setWLInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setWLRoomMintingEnabled","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":[],"name":"tokenIndex","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"room","type":"uint256"},{"internalType":"uint256[]","name":"cosmetics","type":"uint256[]"}],"name":"unpinCosmeticsToRoom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6101c060405260646080908152606560a052606660c052606760e052606861010052606961012052606a61014052606b61016052606c61018052606d6101a0526200004f90600d90600a62000511565b5062030570601755611b58601b556064601c55678ac7230489e80000601d819055601e819055601f556020805464ffffffffff191690553480156200009357600080fd5b506040516200573638038062005736833981016040819052620000b6916200075e565b6040805180820182526009815268426f6f6d20526f6f6d60b81b602080830191825283518085019094526004845263424d524d60e01b908401528151919291620001039160009162000554565b5080516200011990600190602084019062000554565b5050506200013662000130620004b260201b60201c565b620004b6565b8a516200014b9060199060208e019062000554565b507fe2099ca53d35dddb46347a6d69dc0f854489ed1d33089c9bf9e5744abfa8529580546001600160a01b03199081166001600160a01b038d8116919091179092557f0c804a3dd67986132d5a4b0192c3666e80ce9db21b5bbcc088750d60ef51c896805482168c84161790557f8e11a8d332a4e455e9a40337f13f7bee264e44bab8c615c72c6c03b11285a30b805482168b84161790557f729d517564c8a068988f955082ef7a6a0fa616f9b30397fe46eaf27035576ae6805482168a84161790557f8bd664cd46ab138fea56fd6a7d14d30bbd641ce07f59050deaec323f188be3b3805482168984161790557fb1cde20ce69dc9fe702e17a816fc24496d203337b6233783c4d3d8ed1c21c5fb805482168884161790557f8856f49463675612c77c3769ea5189ae74c4ca9194edcad0e8bf159a56c8fd24805482168784161790557f9b5279e0278de37729e6976e98393be95fb8f049d7b333936f74115273170236805482168684161790557f701986e13884d42d1dd5cfcf43ebfde7f0de5a0ad48a4bf6e9ad41113323d599805482168584161790557fd3f4f4370f99ae4611f61aacd7328f115eb85a89251fb7166a8cd3c1b38747f18054909116918316919091179055600c60209081526172d87f4c00f71f01a52daddc45b8daaad7c3c1fccb6bc3cde62eb98a2332cd183874b08190557f40bf9d9f34e44c316634927ac0b32bbadacc4320b4afbc5a2c3cc0df5c0089df8190557f67c07fe1a25659bb983220e5decd0dc907eb51380bc96ba59a7af9d977b514aa8190557f516850eb393bf5ee7d85d9f49af7fa24c1b98b0d04a9cef38a73ce4bb69209d7556134587f576aa78c30e0275d7a34f9aebd1308f987c637f0f4f7745abdfdd11f51239deb8190557ff0ee9ac195f39722b2587bc975d0b26302224865848a66b79f3f345fca38b1c68190557fb586b0d68b8613ec95bf54d82936c62f3e6813569c88ba1f9bc279489e5650408190557ff930d965aa0b020b245c0631e5046c9e163ffaaf0d282e5b9152ce78f1966b538190557f21703bd81db9bce33a5c9abf44593ab95b67c069bc03aad7ce34f40081d60745819055606d6000527f67fb093dc0b3c4011073998a5698a037e50aac80a98282822ec0d00c3b86412655620004a190600b9062000508811b6200235317901c565b5050505050505050505050620008c9565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b82600a810192821562000542579160200282015b828111156200054257825182559160200191906001019062000525565b5062000550929150620005d0565b5090565b828054620005629062000898565b90600052602060002090601f01602090048101928262000586576000855562000542565b82601f10620005a157805160ff191683800117855562000542565b828001600101855582156200054257918201828111156200054257825182559160200191906001019062000525565b5b80821115620005505760008155600101620005d1565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b0382111715620006255762000625620005e7565b6040525050565b60006200063860405190565b9050620006468282620005fd565b919050565b60006001600160401b03821115620006675762000667620005e7565b601f19601f83011660200192915050565b60005b83811015620006955781810151838201526020016200067b565b83811115620006a5576000848401525b50505050565b6000620006c2620006bc846200064b565b6200062c565b905082815260208101848484011115620006df57620006df600080fd5b620006ec84828562000678565b509392505050565b600082601f8301126200070a576200070a600080fd5b81516200071c848260208601620006ab565b949350505050565b60006001600160a01b0382165b92915050565b620007428162000724565b81146200074e57600080fd5b50565b8051620007318162000737565b60008060008060008060008060008060006101608c8e031215620007855762000785600080fd5b8b516001600160401b03811115620007a057620007a0600080fd5b620007ae8e828f01620006f4565b9b50506020620007c18e828f0162000751565b9a50506040620007d48e828f0162000751565b9950506060620007e78e828f0162000751565b9850506080620007fa8e828f0162000751565b97505060a06200080d8e828f0162000751565b96505060c0620008208e828f0162000751565b95505060e0620008338e828f0162000751565b945050610100620008478e828f0162000751565b9350506101206200085b8e828f0162000751565b9250506101406200086f8e828f0162000751565b9150509295989b509295989b9093969950565b634e487b7160e01b600052602260045260246000fd5b600281046001821680620008ad57607f821691505b60208210811415620008c357620008c362000882565b50919050565b614e5d80620008d96000396000f3fe6080604052600436106103815760003560e01c8063802d941a116101d1578063b8c9156411610102578063d8ffda80116100a0578063ec63a1ed1161006f578063ec63a1ed14610a3e578063eeccfffd14610a51578063f2fde38b14610a67578063f4a0a52814610a8757600080fd5b8063d8ffda80146109a0578063da8444c8146109c0578063e985e9c5146109e0578063ea2fdac114610a2957600080fd5b8063c541a72b116100dc578063c541a72b14610936578063c87b56dd14610949578063cb9b803614610969578063d55f92731461098957600080fd5b8063b8c91564146108e1578063c072061614610901578063c32a50f91461091657600080fd5b8063a22cb4651161016f578063a706bba511610149578063a706bba51461085b578063ab4b586f14610871578063b40e557014610891578063b88d4fde146108c157600080fd5b8063a22cb4651461080f578063a31d66471461082f578063a3fb2f0a1461084557600080fd5b806395d89b41116101ab57806395d89b41146107a7578063a0359331146107bc578063a0712d68146107dc578063a10ad1d8146107ef57600080fd5b8063802d941a146107395780638da5cb5b146107695780638f2f85471461078757600080fd5b806335794bb4116102b6578063608364701161025457806370a082311161022357806370a08231146106b7578063715018a6146106d757806377ccb3e0146106ec5780637a5e32801461070c57600080fd5b806360836470146106425780636352211e14610662578063643c4519146106825780636c0360eb146106a257600080fd5b80634f6ccce7116102905780634f6ccce71461059657806355f804b3146105b657806359ac3b02146105d65780635ac4c3da1461062257600080fd5b806335794bb41461054e5780633ccfd60b1461056e57806342842e0e1461057657600080fd5b806314d3d188116103235780631e793aeb116102fd5780631e793aeb146104d957806323b872dd146104f95780632caca2e4146105195780632f745c591461052e57600080fd5b806314d3d1881461048f578063176c2256146104a457806318160ddd146104c457600080fd5b806306fdde031161035f57806306fdde03146103fe578063081812fc14610420578063095ea7b31461044d57806314c1af351461046d57600080fd5b80630198c3521461038657806301ffc9a7146103a857806304b3fd88146103de575b600080fd5b34801561039257600080fd5b506103a66103a136600461364d565b610aa7565b005b3480156103b457600080fd5b506103c86103c33660046136bf565b610dfd565b6040516103d591906136ea565b60405180910390f35b3480156103ea57600080fd5b506103a66103f936600461370b565b610e28565b34801561040a57600080fd5b50610413610e72565b6040516103d5919061378a565b34801561042c57600080fd5b5061044061043b36600461379b565b610f04565b6040516103d591906137d6565b34801561045957600080fd5b506103a66104683660046137f8565b610f54565b34801561047957600080fd5b50610482600181565b6040516103d59190613831565b34801561049b57600080fd5b50610482600581565b3480156104b057600080fd5b506103a66104bf3660046137f8565b610fda565b3480156104d057600080fd5b50600954610482565b3480156104e557600080fd5b506103a66104f436600461379b565b611012565b34801561050557600080fd5b506103a661051436600461383f565b611041565b34801561052557600080fd5b50610482600381565b34801561053a57600080fd5b506104826105493660046137f8565b611072565b34801561055a57600080fd5b506103a661056936600461370b565b6110c4565b6103a661110a565b34801561058257600080fd5b506103a661059136600461383f565b6111a0565b3480156105a257600080fd5b506104826105b136600461379b565b6111bb565b3480156105c257600080fd5b506103a66105d13660046138e0565b611209565b3480156105e257600080fd5b506106146105f1366004613927565b6001600160a01b0316600090815260186020526040902080546001909101549091565b6040516103d5929190613948565b34801561062e57600080fd5b506103a661063d36600461370b565b61123f565b34801561064e57600080fd5b506103a661065d36600461370b565b611287565b34801561066e57600080fd5b5061044061067d36600461379b565b6112c4565b34801561068e57600080fd5b506103a661069d36600461364d565b6112f9565b3480156106ae57600080fd5b506104136116b7565b3480156106c357600080fd5b506104826106d2366004613927565b611745565b3480156106e357600080fd5b506103a6611789565b3480156106f857600080fd5b506103a66107073660046137f8565b6117bf565b34801561071857600080fd5b5061048261072736600461379b565b6000908152601a602052604090205490565b34801561074557600080fd5b5061048261075436600461379b565b6000908152601a602052604090206001015490565b34801561077557600080fd5b506006546001600160a01b0316610440565b34801561079357600080fd5b506103a66107a2366004613963565b61180f565b3480156107b357600080fd5b506104136118b9565b3480156107c857600080fd5b506103a66107d736600461379b565b6118c8565b6103a66107ea36600461379b565b6118f7565b3480156107fb57600080fd5b506103a661080a3660046139e0565b61194e565b34801561081b57600080fd5b506103a661082a366004613a8a565b611a56565b34801561083b57600080fd5b50610482601e5481565b34801561085157600080fd5b50610482601d5481565b34801561086757600080fd5b5061048260175481565b34801561087d57600080fd5b506103a661088c36600461379b565b611a61565b34801561089d57600080fd5b506108b16108ac36600461379b565b611aef565b6040516103d59493929190613b4e565b3480156108cd57600080fd5b506103a66108dc366004613c2a565b611bb0565b3480156108ed57600080fd5b506103a66108fc36600461370b565b611be8565b34801561090d57600080fd5b50610482600281565b34801561092257600080fd5b506103a661093136600461379b565b611c2c565b6103a661094436600461379b565b611c5b565b34801561095557600080fd5b5061041361096436600461379b565b611cb7565b34801561097557600080fd5b506103a6610984366004613927565b611d4a565b34801561099557600080fd5b50600b546104829081565b3480156109ac57600080fd5b506103a66109bb366004613d34565b611dbc565b3480156109cc57600080fd5b506103a66109db366004613d68565b6121a9565b3480156109ec57600080fd5b506103c86109fb366004613db8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a3557600080fd5b50610482600481565b6103a6610a4c36600461379b565b612220565b348015610a5d57600080fd5b50610482601f5481565b348015610a7357600080fd5b506103a6610a82366004613927565b6122cb565b348015610a9357600080fd5b506103a6610aa236600461379b565b612324565b33610ab1836112c4565b6001600160a01b031614610ae05760405162461bcd60e51b8152600401610ad790613e11565b60405180910390fd5b6000815111610b015760405162461bcd60e51b8152600401610ad790613e47565b6000828152601a60205260408120905b8251811015610bb2576000805b600c840154811015610b81578180610b6d575083600c018181548110610b4657610b46613e57565b9060005260206000200154858481518110610b6357610b63613e57565b6020026020010151145b915080610b7981613e83565b915050610b1e565b5080610b9f5760405162461bcd60e51b8152600401610ad790613ee5565b5080610baa81613e83565b915050610b11565b508151600c820180549091600091610bca9190613ef5565b6001600160401b03811115610be157610be1613548565b604051908082528060200260200182016040528015610c0a578160200160208202803683370190505b5090506000805b8354811015610ce0576000805b8751811015610c7f57878181518110610c3957610c39613e57565b6020026020010151868481548110610c5357610c53613e57565b90600052602060002001541415610c6d5760019150610c7f565b80610c7781613e83565b915050610c1e565b5080610ccd57848281548110610c9757610c97613e57565b9060005260206000200154848480610cae90613e83565b955081518110610cc057610cc0613e57565b6020026020010181815250505b5080610cd881613e83565b915050610c11565b506022546040516309d0c59f60e21b81526001600160a01b0390911690632743167c90610d139033908990600401613f0c565b600060405180830381600087803b158015610d2d57600080fd5b505af1158015610d41573d6000803e3d6000fd5b505050506000610d50600b5490565b9050610d5c338261235c565b84546001860154604080516101408101909152610da5928492909160028a01600a8282826020028201915b815481526020019060010190808311610d875750505050508761244a565b84546001860154604051600080516020614e0883398151915292610dd59285928c92919060028c01908a90613f74565b60405180910390a1610de6876124b6565b610df4600b80546001019055565b50505050505050565b60006001600160e01b0319821663780e9d6360e01b1480610e225750610e228261255d565b92915050565b6006546001600160a01b03163314610e525760405162461bcd60e51b8152600401610ad790614008565b602080549115156401000000000264ff0000000019909216919091179055565b606060008054610e819061402e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ead9061402e565b8015610efa5780601f10610ecf57610100808354040283529160200191610efa565b820191906000526020600020905b815481529060010190602001808311610edd57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610f385760405162461bcd60e51b8152600401610ad7906140a4565b506000908152600460205260409020546001600160a01b031690565b6000610f5f826112c4565b9050806001600160a01b0316836001600160a01b03161415610f935760405162461bcd60e51b8152600401610ad7906140f2565b336001600160a01b0382161480610faf5750610faf81336109fb565b610fcb5760405162461bcd60e51b8152600401610ad79061415c565b610fd583836125ad565b505050565b6006546001600160a01b031633146110045760405162461bcd60e51b8152600401610ad790614008565b61100e828261261b565b5050565b6006546001600160a01b0316331461103c5760405162461bcd60e51b8152600401610ad790614008565b601f55565b61104b33826126fc565b6110675760405162461bcd60e51b8152600401610ad7906141ba565b610fd58383836127ae565b600061107d83611745565b821061109b5760405162461bcd60e51b8152600401610ad790614212565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6006546001600160a01b031633146110ee5760405162461bcd60e51b8152600401610ad790614008565b60208054911515620100000262ff000019909216919091179055565b6006546001600160a01b031633146111345760405162461bcd60e51b8152600401610ad790614008565b6000336001600160a01b03164760405161114d90614222565b60006040518083038185875af1925050503d806000811461118a576040519150601f19603f3d011682016040523d82523d6000602084013e61118f565b606091505b505090508061119d57600080fd5b50565b610fd583838360405180602001604052806000815250611bb0565b60006111c660095490565b82106111e45760405162461bcd60e51b8152600401610ad790614276565b600982815481106111f7576111f7613e57565b90600052602060002001549050919050565b6006546001600160a01b031633146112335760405162461bcd60e51b8152600401610ad790614008565b610fd5601983836133e7565b6006546001600160a01b031633146112695760405162461bcd60e51b8152600401610ad790614008565b6020805491151563010000000263ff00000019909216919091179055565b6006546001600160a01b031633146112b15760405162461bcd60e51b8152600401610ad790614008565b6020805460ff1916911515919091179055565b6000818152600260205260408120546001600160a01b031680610e225760405162461bcd60e51b8152600401610ad7906142cc565b33611303836112c4565b6001600160a01b0316146113295760405162461bcd60e51b8152600401610ad790613e11565b600081511161134a5760405162461bcd60e51b8152600401610ad790613e47565b6000828152601a602052604081208251600c8201805492939092909161136f916142dc565b905060098111156113925760405162461bcd60e51b8152600401610ad790614337565b825460009060011480156113a7575060038211155b806113bf5750835460021480156113bf575060048211155b806113d75750835460031480156113d7575060058211155b806113ef5750835460041480156113ef575060068211155b80611407575083546005148015611407575060098211155b9050806114265760405162461bcd60e51b8152600401610ad790614388565b6000826001600160401b0381111561144057611440613548565b604051908082528060200260200182016040528015611469578160200160208202803683370190505b50905060005b84548110156115385760005b87518110156114eb5787818151811061149657611496613e57565b60200260200101518683815481106114b0576114b0613e57565b906000526020600020015414156114d95760405162461bcd60e51b8152600401610ad7906143c1565b806114e381613e83565b91505061147b565b508481815481106114fe576114fe613e57565b906000526020600020015482828151811061151b5761151b613e57565b60209081029190910101528061153081613e83565b91505061146f565b60005b875181101561159857878161154f81613e83565b92508151811061156157611561613e57565b602002602001015183838061157590613e83565b94508151811061158757611587613e57565b60200260200101818152505061153b565b602254604051637e092e7760e01b81526001600160a01b0390911690637e092e77906115ca9033908c90600401613f0c565b600060405180830381600087803b1580156115e457600080fd5b505af11580156115f8573d6000803e3d6000fd5b505050506000611607600b5490565b9050611613338261235c565b8754600189015460408051610140810190915261165c928492909160028d01600a8282826020028201915b81548152602001906001019080831161163e5750505050508861244a565b87546001890154604051600080516020614e088339815191529261168c9285928f92919060028f01908b90613f74565b60405180910390a161169d8a6124b6565b6116ab600b80546001019055565b50505050505050505050565b601980546116c49061402e565b80601f01602080910402602001604051908101604052809291908181526020018280546116f09061402e565b801561173d5780601f106117125761010080835404028352916020019161173d565b820191906000526020600020905b81548152906001019060200180831161172057829003601f168201915b505050505081565b60006001600160a01b03821661176d5760405162461bcd60e51b8152600401610ad790614418565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146117b35760405162461bcd60e51b8152600401610ad790614008565b6117bd60006128db565b565b6006546001600160a01b031633146117e95760405162461bcd60e51b8152600401610ad790614008565b60005b81811015610fd5576117fd8261292d565b8061180781613e83565b9150506117ec565b6006546001600160a01b031633146118395760405162461bcd60e51b8152600401610ad790614008565b60648210806118485750606d82115b156118655760405162461bcd60e51b8152600401610ad790614454565b6001600160a01b03811661188b5760405162461bcd60e51b8152600401610ad790614498565b60009182526021602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b606060018054610e819061402e565b6006546001600160a01b031633146118f25760405162461bcd60e51b8152600401610ad790614008565b601e55565b60205460ff166119195760405162461bcd60e51b8152600401610ad7906144dc565b80601d5461192791906144ec565b34146119455760405162461bcd60e51b8152600401610ad790614530565b61119d81612989565b6006546001600160a01b031633146119785760405162461bcd60e51b8152600401610ad790614008565b848314801561198657508281145b6119a25760405162461bcd60e51b8152600401610ad790614562565b60005b85811015610df45760405180604001604052808686848181106119ca576119ca613e57565b9050602002013581526020018484848181106119e8576119e8613e57565b9050602002013581525060186000898985818110611a0857611a08613e57565b9050602002016020810190611a1d9190613927565b6001600160a01b031681526020808201929092526040016000208251815591015160019091015580611a4e81613e83565b9150506119a5565b61100e338383612a07565b6020546301000000900460ff16611a8a5760405162461bcd60e51b8152600401610ad7906145bf565b33600090815260186020526040902060010154811115611abc5760405162461bcd60e51b8152600401610ad790614603565b611ac58161292d565b3360009081526018602052604081206001018054839290611ae7908490613ef5565b909155505050565b600080611afa61346b565b6000848152601a602052604090819020805460018201548351610140810194859052606094929391926002830192600c0191908390600a9082845b815481526020019060010190808311611b35575050505050915080805480602002602001604051908101604052809291908181526020018280548015611b9a57602002820191906000526020600020905b815481526020019060010190808311611b86575b5050505050905093509350935093509193509193565b611bba33836126fc565b611bd65760405162461bcd60e51b8152600401610ad7906141ba565b611be284848484612aaa565b50505050565b6006546001600160a01b03163314611c125760405162461bcd60e51b8152600401610ad790614008565b602080549115156101000261ff0019909216919091179055565b6006546001600160a01b03163314611c565760405162461bcd60e51b8152600401610ad790614008565b601c55565b602054610100900460ff16611c825760405162461bcd60e51b8152600401610ad790614651565b80601e54611c9091906144ec565b3414611cae5760405162461bcd60e51b8152600401610ad790614530565b61119d8161292d565b6000818152600260205260409020546060906001600160a01b0316611cee5760405162461bcd60e51b8152600401610ad7906146ad565b6000611cf8612add565b90506000815111611d185760405180602001604052806000815250611d43565b80611d2284612aec565b604051602001611d339291906146df565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314611d745760405162461bcd60e51b8152600401610ad790614008565b6001600160a01b038116611d9a5760405162461bcd60e51b8152600401610ad790614498565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b33611dc6836112c4565b6001600160a01b031614611dec5760405162461bcd60e51b8152600401610ad790613e11565b6000828152601a602090815260408083208151608081018352815481526001820154938101939093528151610140810180845291928401916002840190600a9082845b815481526020019060010190808311611e2f5750505050508152602001600c8201805480602002602001604051908101604052809291908181526020018280548015611e9a57602002820191906000526020600020905b815481526020019060010190808311611e86575b5050505050815250509050611eb3816000015183612be9565b611ecf5760405162461bcd60e51b8152600401610ad79061473d565b60408101516000805b600a8110156120bf5760008582600a8110611ef557611ef5613e57565b6020020151905060008483600a8110611f1057611f10613e57565b602002015190506000611f2284612caa565b90508115801590611f335750818314155b15611f99576040516393f3e3e560e01b81526001600160a01b038216906393f3e3e590611f66903390869060040161474d565b600060405180830381600087803b158015611f8057600080fd5b505af1158015611f94573d6000803e3d6000fd5b505050505b82611fa6575050506120ad565b81831461202f57604051630e4f534d60e41b81526001600160a01b0382169063e4f534d090611fdb903390879060040161474d565b6020604051808303816000875af1158015611ffa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061201e9190614766565b61202890866142dc565b94506120a9565b604051630e1af57b60e01b81526001600160a01b03821690630e1af57b9061205b908590600401613831565b602060405180830381865afa158015612078573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061209c9190614766565b6120a690866142dc565b94505b5050505b806120b781613e83565b915050611ed8565b508251600090600114156120d557506001612119565b8351600214156120e757506002612119565b8351600314156120f957506003612119565b83516004141561210b57506004612119565b835160051415612119575060055b600061212582846144ec565b90506000612132600b5490565b905061213e338261235c565b612153818760000151848a8a6060015161244a565b85516060870151604051600080516020614e08833981519152926121809285928d929188918e9190614787565b60405180910390a1612191886124b6565b61219f600b80546001019055565b5050505050505050565b6006546001600160a01b031633146121d35760405162461bcd60e51b8152600401610ad790614008565b60005b82811015611be25761220e8484838181106121f3576121f3613e57565b90506020020160208101906122089190613927565b83612d06565b8061221881613e83565b9150506121d6565b60205462010000900460ff166122485760405162461bcd60e51b8152600401610ad790614808565b336000908152601860205260409020548111156122775760405162461bcd60e51b8152600401610ad790614603565b80601d5461228591906144ec565b34146122a35760405162461bcd60e51b8152600401610ad790614530565b6122ac81612989565b3360009081526018602052604081208054839290611ae7908490613ef5565b6006546001600160a01b031633146122f55760405162461bcd60e51b8152600401610ad790614008565b6001600160a01b03811661231b5760405162461bcd60e51b8152600401610ad79061485b565b61119d816128db565b6006546001600160a01b0316331461234e5760405162461bcd60e51b8152600401610ad790614008565b601d55565b80546001019055565b6001600160a01b0382166123825760405162461bcd60e51b8152600401610ad79061489d565b6000818152600260205260409020546001600160a01b0316156123b75760405162461bcd60e51b8152600401610ad7906148e1565b6123c360008383612de0565b6001600160a01b03821660009081526003602052604081208054600192906123ec9084906142dc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040805160808101825285815260208082018681528284018681526060840186905260008a8152601a909352939091208251815590516001820155915190919061249a906002830190600a61348a565b506060820151805161219f91600c8401916020909101906134b8565b60006124c1826112c4565b90506124cf81600084612de0565b6124da6000836125ad565b6001600160a01b0381166000908152600360205260408120805460019290612503908490613ef5565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160e01b031982166380ac58cd60e01b148061258e57506001600160e01b03198216635b5e139f60e01b145b80610e2257506301ffc9a760e01b6001600160e01b0319831614610e22565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125e2826112c4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006017541161263d5760405162461bcd60e51b8152600401610ad79061491d565b600081815260216020526040908190205490516340c10f1960e01b81526001600160a01b039091169081906340c10f199061267f908690600190600401614942565b6020604051808303816000875af115801561269e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126c29190614766565b506000828152600c602052604081208054916126dd8361495d565b9091555050601780549060006126f28361495d565b9190505550505050565b6000818152600260205260408120546001600160a01b03166127305760405162461bcd60e51b8152600401610ad7906149bd565b600061273b836112c4565b9050806001600160a01b0316846001600160a01b031614806127765750836001600160a01b031661276b84610f04565b6001600160a01b0316145b806127a657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166127c1826112c4565b6001600160a01b0316146127e75760405162461bcd60e51b8152600401610ad790614a0f565b6001600160a01b03821661280d5760405162461bcd60e51b8152600401610ad790614a60565b612818838383612de0565b6128236000826125ad565b6001600160a01b038316600090815260036020526040812080546001929061284c908490613ef5565b90915550506001600160a01b038216600090815260036020526040812080546001929061287a9084906142dc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601a811061294d5760405162461bcd60e51b8152600401610ad790614aa4565b60005b8181101561100e576129773361297283601c5461296d91906142dc565b612e34565b61261b565b8061298181613e83565b915050612950565b601a81106129a95760405162461bcd60e51b8152600401610ad790614ae1565b60005b8181101561100e576000601b54116129d65760405162461bcd60e51b8152600401610ad790614b1b565b6129f5336129f083601c546129eb91906142dc565b612ee7565b612d06565b806129ff81613e83565b9150506129ac565b816001600160a01b0316836001600160a01b03161415612a395760405162461bcd60e51b8152600401610ad790614b5f565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612a9d9085906136ea565b60405180910390a3505050565b612ab58484846127ae565b612ac184848484612f7a565b611be25760405162461bcd60e51b8152600401610ad790614bbe565b606060198054610e819061402e565b606081612b105750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b3a5780612b2481613e83565b9150612b339050600a83614be4565b9150612b14565b6000816001600160401b03811115612b5457612b54613548565b6040519080825280601f01601f191660200182016040528015612b7e576020820181803683370190505b5090505b84156127a657612b93600183613ef5565b9150612ba0600a86614bf8565b612bab9060306142dc565b60f81b818381518110612bc057612bc0613e57565b60200101906001600160f81b031916908160001a905350612be2600a86614be4565b9450612b82565b60008060045b600a811015612c375760008482600a8110612c0c57612c0c613e57565b60200201511115612c255781612c2181613e83565b9250505b80612c2f81613e83565b915050612bef565b50600184148015612c49575060028111155b80612c605750600284148015612c60575060028111155b80612c775750600384148015612c77575060038111155b80612c8e5750600484148015612c8e575060048111155b806127a657506005841480156127a65750600510159392505050565b600080612cb88360646142dc565b905060648110158015612ccc5750606d8111155b612ce85760405162461bcd60e51b8152600401610ad790614c55565b6000908152602160205260409020546001600160a01b031692915050565b612d1882612d13600b5490565b613078565b6000604051806101400160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090506060612d84612d7a600b5490565b846000858561244a565b601b8054906000612d948361495d565b9190505550600080516020614e08833981519152612db1600b5490565b60008560008686604051612dca96959493929190614c65565b60405180910390a1611be2600b80546001019055565b612deb838383613092565b6001600160a01b038216610fd5576000818152601a602052604081208181556001810182905590612e1f60028301826134f2565b612e2d600c83016000613501565b5050505050565b600080601754612e44338561314a565b612e4e9190614bf8565b90506000805b600a811015612ece576000600d82600a8110612e7257612e72613e57565b01546000818152600c6020526040902054909150838510801590612e9e5750612e9b81856142dc565b85105b15612ead575095945050505050565b612eb781856142dc565b935050508080612ec690613e83565b915050612e54565b5060405162461bcd60e51b8152600401610ad790614ccf565b600080612710612ef7338561314a565b612f019190614bf8565b9050610e7b811015612f165750600192915050565b611911811015612f295750600292915050565b6120a3811015612f3c5750600392915050565b6126a0811015612f4f5750600492915050565b612710811015612f625750600592915050565b60405162461bcd60e51b8152600401610ad790614d29565b60006001600160a01b0384163b1561306d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612fbe903390899088908890600401614d39565b6020604051808303816000875af1925050508015612ff9575060408051601f3d908101601f19168201909252612ff691810190614d7e565b60015b613053573d808015613027576040519150601f19603f3d011682016040523d82523d6000602084013e61302c565b606091505b50805161304b5760405162461bcd60e51b8152600401610ad790614bbe565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127a6565b506001949350505050565b61100e828260405180602001604052806000815250613224565b6001600160a01b0383166130ed576130e881600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613110565b816001600160a01b0316836001600160a01b031614613110576131108382613257565b6001600160a01b03821661312757610fd5816132f4565b826001600160a01b0316826001600160a01b031614610fd557610fd582826133a3565b6000428360405160200161315e9190614dc7565b6040516020818303038152906040528051906020012060001c6131819190614be4565b42416040516020016131939190614dc7565b6040516020818303038152906040528051906020012060001c6131b69190614be4565b8343456131c344426142dc565b6131cd91906142dc565b6131d791906142dc565b6131e191906142dc565b6131eb91906142dc565b6131f591906142dc565b6040516020016132059190614ddc565b60408051601f1981840301815291905280516020909101209392505050565b61322e838361235c565b61323b6000848484612f7a565b610fd55760405162461bcd60e51b8152600401610ad790614bbe565b6000600161326484611745565b61326e9190613ef5565b6000838152600860205260409020549091508082146132c1576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061330690600190613ef5565b6000838152600a60205260408120546009805493945090928490811061332e5761332e613e57565b90600052602060002001549050806009838154811061334f5761334f613e57565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061338757613387614df1565b6001900381819060005260206000200160009055905550505050565b60006133ae83611745565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b8280546133f39061402e565b90600052602060002090601f016020900481019282613415576000855561345b565b82601f1061342e5782800160ff1982351617855561345b565b8280016001018555821561345b579182015b8281111561345b578235825591602001919060010190613440565b5061346792915061351b565b5090565b604051806101400160405280600a906020820280368337509192915050565b82600a810192821561345b579160200282015b8281111561345b57825182559160200191906001019061349d565b82805482825590600052602060002090810192821561345b579160200282018281111561345b57825182559160200191906001019061349d565b5061119d90600a81019061351b565b508054600082559060005260206000209081019061119d91905b5b80821115613467576000815560010161351c565b805b811461119d57600080fd5b8035610e2281613530565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b038211171561358357613583613548565b6040525050565b600061359560405190565b90506135a1828261355e565b919050565b60006001600160401b038211156135bf576135bf613548565b5060209081020190565b60006135dc6135d7846135a6565b61358a565b838152905060208082019084028301858111156135fb576135fb600080fd5b835b8181101561361f5780613610888261353d565b845250602092830192016135fd565b5050509392505050565b600082601f83011261363d5761363d600080fd5b81356127a68482602086016135c9565b6000806040838503121561366357613663600080fd5b600061366f858561353d565b92505060208301356001600160401b0381111561368e5761368e600080fd5b61369a85828601613629565b9150509250929050565b6001600160e01b03198116613532565b8035610e22816136a4565b6000602082840312156136d4576136d4600080fd5b60006127a684846136b4565b8015155b82525050565b60208101610e2282846136e0565b801515613532565b8035610e22816136f8565b60006020828403121561372057613720600080fd5b60006127a68484613700565b60005b8381101561374757818101518382015260200161372f565b83811115611be25750506000910152565b6000613762825190565b80845260208401935061377981856020860161372c565b601f01601f19169290920192915050565b60208082528101611d438184613758565b6000602082840312156137b0576137b0600080fd5b60006127a6848461353d565b60006001600160a01b038216610e22565b6136e4816137bc565b60208101610e2282846137cd565b613532816137bc565b8035610e22816137e4565b6000806040838503121561380e5761380e600080fd5b600061381a85856137ed565b925050602061369a8582860161353d565b806136e4565b60208101610e22828461382b565b60008060006060848603121561385757613857600080fd5b600061386386866137ed565b9350506020613874868287016137ed565b92505060406138858682870161353d565b9150509250925092565b60008083601f8401126138a4576138a4600080fd5b5081356001600160401b038111156138be576138be600080fd5b6020830191508360018202830111156138d9576138d9600080fd5b9250929050565b600080602083850312156138f6576138f6600080fd5b82356001600160401b0381111561390f5761390f600080fd5b61391b8582860161388f565b92509250509250929050565b60006020828403121561393c5761393c600080fd5b60006127a684846137ed565b60408101613956828561382b565b611d43602083018461382b565b6000806040838503121561397957613979600080fd5b6000613985858561353d565b925050602061369a858286016137ed565b60008083601f8401126139ab576139ab600080fd5b5081356001600160401b038111156139c5576139c5600080fd5b6020830191508360208202830111156138d9576138d9600080fd5b600080600080600080606087890312156139fc576139fc600080fd5b86356001600160401b03811115613a1557613a15600080fd5b613a2189828a01613996565b965096505060208701356001600160401b03811115613a4257613a42600080fd5b613a4e89828a01613996565b945094505060408701356001600160401b03811115613a6f57613a6f600080fd5b613a7b89828a01613996565b92509250509295509295509295565b60008060408385031215613aa057613aa0600080fd5b6000613aac85856137ed565b925050602061369a85828601613700565b6000613ac9838361382b565b505060200190565b600a818060005b83811015613afd578151613aec8782613abd565b965060208301925050600101613ad8565b505050505050565b6000613b0f825190565b80845260209384019383018060005b83811015613b43578151613b328882613abd565b975060208301925050600101613b1e565b509495945050505050565b6101a08101613b5d828761382b565b613b6a602083018661382b565b613b776040830185613ad1565b818103610180830152613b8a8184613b05565b9695505050505050565b60006001600160401b03821115613bad57613bad613548565b601f19601f83011660200192915050565b82818337506000910152565b6000613bd86135d784613b94565b905082815260208101848484011115613bf357613bf3600080fd5b613bfe848285613bbe565b509392505050565b600082601f830112613c1a57613c1a600080fd5b81356127a6848260208601613bca565b60008060008060808587031215613c4357613c43600080fd5b6000613c4f87876137ed565b9450506020613c60878288016137ed565b9350506040613c718782880161353d565b92505060608501356001600160401b03811115613c9057613c90600080fd5b613c9c87828801613c06565b91505092959194509250565b60006001600160401b03821115613cc157613cc1613548565b5060200290565b6000613cd66135d784613ca8565b90508060208402830185811115613cef57613cef600080fd5b835b8181101561361f5780613d04888261353d565b84525060209283019201613cf1565b600082601f830112613d2757613d27600080fd5b600a6127a6848285613cc8565b6000806101608385031215613d4b57613d4b600080fd5b6000613d57858561353d565b925050602061369a85828601613d13565b600080600060408486031215613d8057613d80600080fd5b83356001600160401b03811115613d9957613d99600080fd5b613da586828701613996565b935093505060206138858682870161353d565b60008060408385031215613dce57613dce600080fd5b600061398585856137ed565b601881526000602082017f63616c6c657220646f6573206e6f74206f776e20726f6f6d0000000000000000815291505b5060200190565b60208082528101610e2281613dda565b600f81526000602082016e656d70747920636f736d657469637360881b81529150613e0a565b60208082528101610e2281613e21565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613e9757613e97613e6d565b5060010190565b602781526000602082017f63616e277420756e70696e20636f736d6574696320746861742069736e277420815266696e20726f6f6d60c81b602082015291505b5060400190565b60208082528101610e2281613e9e565b600082821015613f0757613f07613e6d565b500390565b60408101613f1a82856137cd565b81810360208301526127a68184613b05565b600081610e22565b90565b6000610e228254613f2c565b600a818060005b83811015613afd57613f5b82613f37565b613f658782613abd565b96505060019182019101613f4a565b6101e08101613f83828961382b565b613f90602083018861382b565b613f9d604083018761382b565b613faa606083018661382b565b613fb76080830185613f43565b8181036101c0830152613fca8184613b05565b98975050505050505050565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613e0a565b60208082528101610e2281613fd6565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061404257607f821691505b6020821081141561405557614055614018565b50919050565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150613ede565b60208082528101610e228161405b565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b60208201529150613ede565b60208082528101610e22816140b4565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150613ede565b60208082528101610e2281614102565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60208201529150613ede565b60208082528101610e228161416c565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b60208201529150613ede565b60208082528101610e22816141ca565b6000610e2282613f34565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b60208201529150613ede565b60208082528101610e228161422d565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b60208201529150613ede565b60208082528101610e2281614286565b600082198211156142ef576142ef613e6d565b500190565b602681526000602082017f63616e6e6f742068617665206d6f7265207468616e203620636f736d6574696381526520736c6f747360d01b60208201529150613ede565b60208082528101610e22816142f4565b602481526000602082017f696e76616c696420636f736d6574696320636f756e7420666f7220726f6f6d208152637479706560e01b60208201529150613ede565b60208082528101610e2281614347565b60128152600060208201716475706c696361746520636f736d6574696360701b81529150613e0a565b60208082528101610e2281614398565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b60208201529150613ede565b60208082528101610e22816143d1565b6015815260006020820174696e76616c696420636f6e7472616374207479706560581b81529150613e0a565b60208082528101610e2281614428565b601781526000602082017f63616e6e6f7420757365206e756c6c206164647265737300000000000000000081529150613e0a565b60208082528101610e2281614464565b601781526000602082017f6d696e74696e67206e6f742079657420656e61626c656400000000000000000081529150613e0a565b60208082528101610e22816144a8565b600081600019048311821515161561450657614506613e6d565b500290565b600e81526000602082016d1a5b9d985b1a5908185b5bdd5b9d60921b81529150613e0a565b60208082528101610e228161450b565b600b81526000602082016a0c8d2cccc40d8cadccee8d60ab1b81529150613e0a565b60208082528101610e2281614540565b603081526000602082017f77686974656c697374206d696e74696e67206e6f742079657420656e61626c6581526f6420666f7220636f6d706f6e656e747360801b60208201529150613ede565b60208082528101610e2281614572565b601781526000602082017f6e6f7420656e6f75676820574c20616c6c6f77616e636500000000000000000081529150613e0a565b60208082528101610e22816145cf565b602181526000602082017f636f6d706f6e656e74206d696e74696e67206e6f742079657420656e61626c658152601960fa1b60208201529150613ede565b60208082528101610e2281614613565b602f81526000602082017f4552433732314d657461646174613a2055524920717565727920666f72206e6f81526e3732bc34b9ba32b73a103a37b5b2b760891b60208201529150613ede565b60208082528101610e2281614661565b60006146c7825190565b6146d581856020860161372c565b9290920192915050565b60006146eb82856146bd565b91506127a682846146bd565b602981526000602082017f696e76616c696420636f6d706f6e656e747320666f7220726f6f6d2074797065815268081c1c9bdd9a59195960ba1b60208201529150613ede565b60208082528101610e22816146f7565b6040810161395682856137cd565b8051610e2281613530565b60006020828403121561477b5761477b600080fd5b60006127a6848461475b565b6101e08101614796828961382b565b6147a3602083018861382b565b6147b0604083018761382b565b6147bd606083018661382b565b613fb76080830185613ad1565b602181526000602082017f77686974656c697374206d696e74696e67206e6f742079657420656e61626c658152601960fa1b60208201529150613ede565b60208082528101610e22816147ca565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150613ede565b60208082528101610e2281614818565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613e0a565b60208082528101610e228161486b565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150613e0a565b60208082528101610e22816148ad565b601581526000602082017418dbdb5c1bdb995b9d1cc81b5a5b9d1959081bdd5d605a1b81529150613e0a565b60208082528101610e22816148f1565b6000610e22613f348381565b6136e48161492d565b6040810161495082856137cd565b611d436020830184614939565b60008161496c5761496c613e6d565b506000190190565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150613ede565b60208082528101610e2281614974565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b60208201529150613ede565b60208082528101610e22816149cd565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150613ede565b60208082528101610e2281614a1f565b601781526000602082017f6d757374206d696e74203c323620617420612074696d6500000000000000000081529150613e0a565b60208082528101610e2281614a70565b60168152600060208201756d757374206d696e7420323520617420612074696d6560501b81529150613e0a565b60208082528101610e2281614ab4565b60138152600060208201726e6f206d6f726520726f6f6d20737570706c7960681b81529150613e0a565b60208082528101610e2281614af1565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613e0a565b60208082528101610e2281614b2b565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150613ede565b60208082528101610e2281614b6f565b634e487b7160e01b600052601260045260246000fd5b600082614bf357614bf3614bce565b500490565b600082614c0757614c07614bce565b500690565b602c81526000602082017f696e76616c696420696e6465782c2063616e6e6f742067657420636f6d706f6e81526b195b9d0818dbdb9d1c9858dd60a21b60208201529150613ede565b60208082528101610e2281614c0c565b6101e08101614c74828961382b565b614c816020830188614939565b614c8e604083018761382b565b6147bd6060830186614939565b601a81526000602082017f6e6f20636f6d706f6e656e7473206c65667420746f206d696e7400000000000081529150613e0a565b60208082528101610e2281614c9b565b602d81526000602082017f736f6d657468696e672077656e742077726f6e67207069636b696e672072616e81526c646f6d20726f6f6d207479706560981b60208201529150613ede565b60208082528101610e2281614cdf565b60808101614d4782876137cd565b614d5460208301866137cd565b614d61604083018561382b565b8181036060830152613b8a8184613758565b8051610e22816136a4565b600060208284031215614d9357614d93600080fd5b60006127a68484614d73565b6000610e228260601b90565b6000610e2282614d9f565b6136e4614dc2826137bc565b614dab565b6000614dd38284614db6565b50601401919050565b6000614de8828461382b565b50602001919050565b634e487b7160e01b600052603160045260246000fdfe822e382a5cb8e3ab549fe5040341ac120a8eeaf45c6681f297b4995bb6ee91c1a2646970667358221220c6080f063b85c75686ae2108e828472aa59e7e5413ef4b111e83b87ce631cae064736f6c634300080a00330000000000000000000000000000000000000000000000000000000000000160000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c0260000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103815760003560e01c8063802d941a116101d1578063b8c9156411610102578063d8ffda80116100a0578063ec63a1ed1161006f578063ec63a1ed14610a3e578063eeccfffd14610a51578063f2fde38b14610a67578063f4a0a52814610a8757600080fd5b8063d8ffda80146109a0578063da8444c8146109c0578063e985e9c5146109e0578063ea2fdac114610a2957600080fd5b8063c541a72b116100dc578063c541a72b14610936578063c87b56dd14610949578063cb9b803614610969578063d55f92731461098957600080fd5b8063b8c91564146108e1578063c072061614610901578063c32a50f91461091657600080fd5b8063a22cb4651161016f578063a706bba511610149578063a706bba51461085b578063ab4b586f14610871578063b40e557014610891578063b88d4fde146108c157600080fd5b8063a22cb4651461080f578063a31d66471461082f578063a3fb2f0a1461084557600080fd5b806395d89b41116101ab57806395d89b41146107a7578063a0359331146107bc578063a0712d68146107dc578063a10ad1d8146107ef57600080fd5b8063802d941a146107395780638da5cb5b146107695780638f2f85471461078757600080fd5b806335794bb4116102b6578063608364701161025457806370a082311161022357806370a08231146106b7578063715018a6146106d757806377ccb3e0146106ec5780637a5e32801461070c57600080fd5b806360836470146106425780636352211e14610662578063643c4519146106825780636c0360eb146106a257600080fd5b80634f6ccce7116102905780634f6ccce71461059657806355f804b3146105b657806359ac3b02146105d65780635ac4c3da1461062257600080fd5b806335794bb41461054e5780633ccfd60b1461056e57806342842e0e1461057657600080fd5b806314d3d188116103235780631e793aeb116102fd5780631e793aeb146104d957806323b872dd146104f95780632caca2e4146105195780632f745c591461052e57600080fd5b806314d3d1881461048f578063176c2256146104a457806318160ddd146104c457600080fd5b806306fdde031161035f57806306fdde03146103fe578063081812fc14610420578063095ea7b31461044d57806314c1af351461046d57600080fd5b80630198c3521461038657806301ffc9a7146103a857806304b3fd88146103de575b600080fd5b34801561039257600080fd5b506103a66103a136600461364d565b610aa7565b005b3480156103b457600080fd5b506103c86103c33660046136bf565b610dfd565b6040516103d591906136ea565b60405180910390f35b3480156103ea57600080fd5b506103a66103f936600461370b565b610e28565b34801561040a57600080fd5b50610413610e72565b6040516103d5919061378a565b34801561042c57600080fd5b5061044061043b36600461379b565b610f04565b6040516103d591906137d6565b34801561045957600080fd5b506103a66104683660046137f8565b610f54565b34801561047957600080fd5b50610482600181565b6040516103d59190613831565b34801561049b57600080fd5b50610482600581565b3480156104b057600080fd5b506103a66104bf3660046137f8565b610fda565b3480156104d057600080fd5b50600954610482565b3480156104e557600080fd5b506103a66104f436600461379b565b611012565b34801561050557600080fd5b506103a661051436600461383f565b611041565b34801561052557600080fd5b50610482600381565b34801561053a57600080fd5b506104826105493660046137f8565b611072565b34801561055a57600080fd5b506103a661056936600461370b565b6110c4565b6103a661110a565b34801561058257600080fd5b506103a661059136600461383f565b6111a0565b3480156105a257600080fd5b506104826105b136600461379b565b6111bb565b3480156105c257600080fd5b506103a66105d13660046138e0565b611209565b3480156105e257600080fd5b506106146105f1366004613927565b6001600160a01b0316600090815260186020526040902080546001909101549091565b6040516103d5929190613948565b34801561062e57600080fd5b506103a661063d36600461370b565b61123f565b34801561064e57600080fd5b506103a661065d36600461370b565b611287565b34801561066e57600080fd5b5061044061067d36600461379b565b6112c4565b34801561068e57600080fd5b506103a661069d36600461364d565b6112f9565b3480156106ae57600080fd5b506104136116b7565b3480156106c357600080fd5b506104826106d2366004613927565b611745565b3480156106e357600080fd5b506103a6611789565b3480156106f857600080fd5b506103a66107073660046137f8565b6117bf565b34801561071857600080fd5b5061048261072736600461379b565b6000908152601a602052604090205490565b34801561074557600080fd5b5061048261075436600461379b565b6000908152601a602052604090206001015490565b34801561077557600080fd5b506006546001600160a01b0316610440565b34801561079357600080fd5b506103a66107a2366004613963565b61180f565b3480156107b357600080fd5b506104136118b9565b3480156107c857600080fd5b506103a66107d736600461379b565b6118c8565b6103a66107ea36600461379b565b6118f7565b3480156107fb57600080fd5b506103a661080a3660046139e0565b61194e565b34801561081b57600080fd5b506103a661082a366004613a8a565b611a56565b34801561083b57600080fd5b50610482601e5481565b34801561085157600080fd5b50610482601d5481565b34801561086757600080fd5b5061048260175481565b34801561087d57600080fd5b506103a661088c36600461379b565b611a61565b34801561089d57600080fd5b506108b16108ac36600461379b565b611aef565b6040516103d59493929190613b4e565b3480156108cd57600080fd5b506103a66108dc366004613c2a565b611bb0565b3480156108ed57600080fd5b506103a66108fc36600461370b565b611be8565b34801561090d57600080fd5b50610482600281565b34801561092257600080fd5b506103a661093136600461379b565b611c2c565b6103a661094436600461379b565b611c5b565b34801561095557600080fd5b5061041361096436600461379b565b611cb7565b34801561097557600080fd5b506103a6610984366004613927565b611d4a565b34801561099557600080fd5b50600b546104829081565b3480156109ac57600080fd5b506103a66109bb366004613d34565b611dbc565b3480156109cc57600080fd5b506103a66109db366004613d68565b6121a9565b3480156109ec57600080fd5b506103c86109fb366004613db8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a3557600080fd5b50610482600481565b6103a6610a4c36600461379b565b612220565b348015610a5d57600080fd5b50610482601f5481565b348015610a7357600080fd5b506103a6610a82366004613927565b6122cb565b348015610a9357600080fd5b506103a6610aa236600461379b565b612324565b33610ab1836112c4565b6001600160a01b031614610ae05760405162461bcd60e51b8152600401610ad790613e11565b60405180910390fd5b6000815111610b015760405162461bcd60e51b8152600401610ad790613e47565b6000828152601a60205260408120905b8251811015610bb2576000805b600c840154811015610b81578180610b6d575083600c018181548110610b4657610b46613e57565b9060005260206000200154858481518110610b6357610b63613e57565b6020026020010151145b915080610b7981613e83565b915050610b1e565b5080610b9f5760405162461bcd60e51b8152600401610ad790613ee5565b5080610baa81613e83565b915050610b11565b508151600c820180549091600091610bca9190613ef5565b6001600160401b03811115610be157610be1613548565b604051908082528060200260200182016040528015610c0a578160200160208202803683370190505b5090506000805b8354811015610ce0576000805b8751811015610c7f57878181518110610c3957610c39613e57565b6020026020010151868481548110610c5357610c53613e57565b90600052602060002001541415610c6d5760019150610c7f565b80610c7781613e83565b915050610c1e565b5080610ccd57848281548110610c9757610c97613e57565b9060005260206000200154848480610cae90613e83565b955081518110610cc057610cc0613e57565b6020026020010181815250505b5080610cd881613e83565b915050610c11565b506022546040516309d0c59f60e21b81526001600160a01b0390911690632743167c90610d139033908990600401613f0c565b600060405180830381600087803b158015610d2d57600080fd5b505af1158015610d41573d6000803e3d6000fd5b505050506000610d50600b5490565b9050610d5c338261235c565b84546001860154604080516101408101909152610da5928492909160028a01600a8282826020028201915b815481526020019060010190808311610d875750505050508761244a565b84546001860154604051600080516020614e0883398151915292610dd59285928c92919060028c01908a90613f74565b60405180910390a1610de6876124b6565b610df4600b80546001019055565b50505050505050565b60006001600160e01b0319821663780e9d6360e01b1480610e225750610e228261255d565b92915050565b6006546001600160a01b03163314610e525760405162461bcd60e51b8152600401610ad790614008565b602080549115156401000000000264ff0000000019909216919091179055565b606060008054610e819061402e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ead9061402e565b8015610efa5780601f10610ecf57610100808354040283529160200191610efa565b820191906000526020600020905b815481529060010190602001808311610edd57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610f385760405162461bcd60e51b8152600401610ad7906140a4565b506000908152600460205260409020546001600160a01b031690565b6000610f5f826112c4565b9050806001600160a01b0316836001600160a01b03161415610f935760405162461bcd60e51b8152600401610ad7906140f2565b336001600160a01b0382161480610faf5750610faf81336109fb565b610fcb5760405162461bcd60e51b8152600401610ad79061415c565b610fd583836125ad565b505050565b6006546001600160a01b031633146110045760405162461bcd60e51b8152600401610ad790614008565b61100e828261261b565b5050565b6006546001600160a01b0316331461103c5760405162461bcd60e51b8152600401610ad790614008565b601f55565b61104b33826126fc565b6110675760405162461bcd60e51b8152600401610ad7906141ba565b610fd58383836127ae565b600061107d83611745565b821061109b5760405162461bcd60e51b8152600401610ad790614212565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6006546001600160a01b031633146110ee5760405162461bcd60e51b8152600401610ad790614008565b60208054911515620100000262ff000019909216919091179055565b6006546001600160a01b031633146111345760405162461bcd60e51b8152600401610ad790614008565b6000336001600160a01b03164760405161114d90614222565b60006040518083038185875af1925050503d806000811461118a576040519150601f19603f3d011682016040523d82523d6000602084013e61118f565b606091505b505090508061119d57600080fd5b50565b610fd583838360405180602001604052806000815250611bb0565b60006111c660095490565b82106111e45760405162461bcd60e51b8152600401610ad790614276565b600982815481106111f7576111f7613e57565b90600052602060002001549050919050565b6006546001600160a01b031633146112335760405162461bcd60e51b8152600401610ad790614008565b610fd5601983836133e7565b6006546001600160a01b031633146112695760405162461bcd60e51b8152600401610ad790614008565b6020805491151563010000000263ff00000019909216919091179055565b6006546001600160a01b031633146112b15760405162461bcd60e51b8152600401610ad790614008565b6020805460ff1916911515919091179055565b6000818152600260205260408120546001600160a01b031680610e225760405162461bcd60e51b8152600401610ad7906142cc565b33611303836112c4565b6001600160a01b0316146113295760405162461bcd60e51b8152600401610ad790613e11565b600081511161134a5760405162461bcd60e51b8152600401610ad790613e47565b6000828152601a602052604081208251600c8201805492939092909161136f916142dc565b905060098111156113925760405162461bcd60e51b8152600401610ad790614337565b825460009060011480156113a7575060038211155b806113bf5750835460021480156113bf575060048211155b806113d75750835460031480156113d7575060058211155b806113ef5750835460041480156113ef575060068211155b80611407575083546005148015611407575060098211155b9050806114265760405162461bcd60e51b8152600401610ad790614388565b6000826001600160401b0381111561144057611440613548565b604051908082528060200260200182016040528015611469578160200160208202803683370190505b50905060005b84548110156115385760005b87518110156114eb5787818151811061149657611496613e57565b60200260200101518683815481106114b0576114b0613e57565b906000526020600020015414156114d95760405162461bcd60e51b8152600401610ad7906143c1565b806114e381613e83565b91505061147b565b508481815481106114fe576114fe613e57565b906000526020600020015482828151811061151b5761151b613e57565b60209081029190910101528061153081613e83565b91505061146f565b60005b875181101561159857878161154f81613e83565b92508151811061156157611561613e57565b602002602001015183838061157590613e83565b94508151811061158757611587613e57565b60200260200101818152505061153b565b602254604051637e092e7760e01b81526001600160a01b0390911690637e092e77906115ca9033908c90600401613f0c565b600060405180830381600087803b1580156115e457600080fd5b505af11580156115f8573d6000803e3d6000fd5b505050506000611607600b5490565b9050611613338261235c565b8754600189015460408051610140810190915261165c928492909160028d01600a8282826020028201915b81548152602001906001019080831161163e5750505050508861244a565b87546001890154604051600080516020614e088339815191529261168c9285928f92919060028f01908b90613f74565b60405180910390a161169d8a6124b6565b6116ab600b80546001019055565b50505050505050505050565b601980546116c49061402e565b80601f01602080910402602001604051908101604052809291908181526020018280546116f09061402e565b801561173d5780601f106117125761010080835404028352916020019161173d565b820191906000526020600020905b81548152906001019060200180831161172057829003601f168201915b505050505081565b60006001600160a01b03821661176d5760405162461bcd60e51b8152600401610ad790614418565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146117b35760405162461bcd60e51b8152600401610ad790614008565b6117bd60006128db565b565b6006546001600160a01b031633146117e95760405162461bcd60e51b8152600401610ad790614008565b60005b81811015610fd5576117fd8261292d565b8061180781613e83565b9150506117ec565b6006546001600160a01b031633146118395760405162461bcd60e51b8152600401610ad790614008565b60648210806118485750606d82115b156118655760405162461bcd60e51b8152600401610ad790614454565b6001600160a01b03811661188b5760405162461bcd60e51b8152600401610ad790614498565b60009182526021602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b606060018054610e819061402e565b6006546001600160a01b031633146118f25760405162461bcd60e51b8152600401610ad790614008565b601e55565b60205460ff166119195760405162461bcd60e51b8152600401610ad7906144dc565b80601d5461192791906144ec565b34146119455760405162461bcd60e51b8152600401610ad790614530565b61119d81612989565b6006546001600160a01b031633146119785760405162461bcd60e51b8152600401610ad790614008565b848314801561198657508281145b6119a25760405162461bcd60e51b8152600401610ad790614562565b60005b85811015610df45760405180604001604052808686848181106119ca576119ca613e57565b9050602002013581526020018484848181106119e8576119e8613e57565b9050602002013581525060186000898985818110611a0857611a08613e57565b9050602002016020810190611a1d9190613927565b6001600160a01b031681526020808201929092526040016000208251815591015160019091015580611a4e81613e83565b9150506119a5565b61100e338383612a07565b6020546301000000900460ff16611a8a5760405162461bcd60e51b8152600401610ad7906145bf565b33600090815260186020526040902060010154811115611abc5760405162461bcd60e51b8152600401610ad790614603565b611ac58161292d565b3360009081526018602052604081206001018054839290611ae7908490613ef5565b909155505050565b600080611afa61346b565b6000848152601a602052604090819020805460018201548351610140810194859052606094929391926002830192600c0191908390600a9082845b815481526020019060010190808311611b35575050505050915080805480602002602001604051908101604052809291908181526020018280548015611b9a57602002820191906000526020600020905b815481526020019060010190808311611b86575b5050505050905093509350935093509193509193565b611bba33836126fc565b611bd65760405162461bcd60e51b8152600401610ad7906141ba565b611be284848484612aaa565b50505050565b6006546001600160a01b03163314611c125760405162461bcd60e51b8152600401610ad790614008565b602080549115156101000261ff0019909216919091179055565b6006546001600160a01b03163314611c565760405162461bcd60e51b8152600401610ad790614008565b601c55565b602054610100900460ff16611c825760405162461bcd60e51b8152600401610ad790614651565b80601e54611c9091906144ec565b3414611cae5760405162461bcd60e51b8152600401610ad790614530565b61119d8161292d565b6000818152600260205260409020546060906001600160a01b0316611cee5760405162461bcd60e51b8152600401610ad7906146ad565b6000611cf8612add565b90506000815111611d185760405180602001604052806000815250611d43565b80611d2284612aec565b604051602001611d339291906146df565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314611d745760405162461bcd60e51b8152600401610ad790614008565b6001600160a01b038116611d9a5760405162461bcd60e51b8152600401610ad790614498565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b33611dc6836112c4565b6001600160a01b031614611dec5760405162461bcd60e51b8152600401610ad790613e11565b6000828152601a602090815260408083208151608081018352815481526001820154938101939093528151610140810180845291928401916002840190600a9082845b815481526020019060010190808311611e2f5750505050508152602001600c8201805480602002602001604051908101604052809291908181526020018280548015611e9a57602002820191906000526020600020905b815481526020019060010190808311611e86575b5050505050815250509050611eb3816000015183612be9565b611ecf5760405162461bcd60e51b8152600401610ad79061473d565b60408101516000805b600a8110156120bf5760008582600a8110611ef557611ef5613e57565b6020020151905060008483600a8110611f1057611f10613e57565b602002015190506000611f2284612caa565b90508115801590611f335750818314155b15611f99576040516393f3e3e560e01b81526001600160a01b038216906393f3e3e590611f66903390869060040161474d565b600060405180830381600087803b158015611f8057600080fd5b505af1158015611f94573d6000803e3d6000fd5b505050505b82611fa6575050506120ad565b81831461202f57604051630e4f534d60e41b81526001600160a01b0382169063e4f534d090611fdb903390879060040161474d565b6020604051808303816000875af1158015611ffa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061201e9190614766565b61202890866142dc565b94506120a9565b604051630e1af57b60e01b81526001600160a01b03821690630e1af57b9061205b908590600401613831565b602060405180830381865afa158015612078573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061209c9190614766565b6120a690866142dc565b94505b5050505b806120b781613e83565b915050611ed8565b508251600090600114156120d557506001612119565b8351600214156120e757506002612119565b8351600314156120f957506003612119565b83516004141561210b57506004612119565b835160051415612119575060055b600061212582846144ec565b90506000612132600b5490565b905061213e338261235c565b612153818760000151848a8a6060015161244a565b85516060870151604051600080516020614e08833981519152926121809285928d929188918e9190614787565b60405180910390a1612191886124b6565b61219f600b80546001019055565b5050505050505050565b6006546001600160a01b031633146121d35760405162461bcd60e51b8152600401610ad790614008565b60005b82811015611be25761220e8484838181106121f3576121f3613e57565b90506020020160208101906122089190613927565b83612d06565b8061221881613e83565b9150506121d6565b60205462010000900460ff166122485760405162461bcd60e51b8152600401610ad790614808565b336000908152601860205260409020548111156122775760405162461bcd60e51b8152600401610ad790614603565b80601d5461228591906144ec565b34146122a35760405162461bcd60e51b8152600401610ad790614530565b6122ac81612989565b3360009081526018602052604081208054839290611ae7908490613ef5565b6006546001600160a01b031633146122f55760405162461bcd60e51b8152600401610ad790614008565b6001600160a01b03811661231b5760405162461bcd60e51b8152600401610ad79061485b565b61119d816128db565b6006546001600160a01b0316331461234e5760405162461bcd60e51b8152600401610ad790614008565b601d55565b80546001019055565b6001600160a01b0382166123825760405162461bcd60e51b8152600401610ad79061489d565b6000818152600260205260409020546001600160a01b0316156123b75760405162461bcd60e51b8152600401610ad7906148e1565b6123c360008383612de0565b6001600160a01b03821660009081526003602052604081208054600192906123ec9084906142dc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040805160808101825285815260208082018681528284018681526060840186905260008a8152601a909352939091208251815590516001820155915190919061249a906002830190600a61348a565b506060820151805161219f91600c8401916020909101906134b8565b60006124c1826112c4565b90506124cf81600084612de0565b6124da6000836125ad565b6001600160a01b0381166000908152600360205260408120805460019290612503908490613ef5565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160e01b031982166380ac58cd60e01b148061258e57506001600160e01b03198216635b5e139f60e01b145b80610e2257506301ffc9a760e01b6001600160e01b0319831614610e22565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125e2826112c4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006017541161263d5760405162461bcd60e51b8152600401610ad79061491d565b600081815260216020526040908190205490516340c10f1960e01b81526001600160a01b039091169081906340c10f199061267f908690600190600401614942565b6020604051808303816000875af115801561269e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126c29190614766565b506000828152600c602052604081208054916126dd8361495d565b9091555050601780549060006126f28361495d565b9190505550505050565b6000818152600260205260408120546001600160a01b03166127305760405162461bcd60e51b8152600401610ad7906149bd565b600061273b836112c4565b9050806001600160a01b0316846001600160a01b031614806127765750836001600160a01b031661276b84610f04565b6001600160a01b0316145b806127a657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166127c1826112c4565b6001600160a01b0316146127e75760405162461bcd60e51b8152600401610ad790614a0f565b6001600160a01b03821661280d5760405162461bcd60e51b8152600401610ad790614a60565b612818838383612de0565b6128236000826125ad565b6001600160a01b038316600090815260036020526040812080546001929061284c908490613ef5565b90915550506001600160a01b038216600090815260036020526040812080546001929061287a9084906142dc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601a811061294d5760405162461bcd60e51b8152600401610ad790614aa4565b60005b8181101561100e576129773361297283601c5461296d91906142dc565b612e34565b61261b565b8061298181613e83565b915050612950565b601a81106129a95760405162461bcd60e51b8152600401610ad790614ae1565b60005b8181101561100e576000601b54116129d65760405162461bcd60e51b8152600401610ad790614b1b565b6129f5336129f083601c546129eb91906142dc565b612ee7565b612d06565b806129ff81613e83565b9150506129ac565b816001600160a01b0316836001600160a01b03161415612a395760405162461bcd60e51b8152600401610ad790614b5f565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612a9d9085906136ea565b60405180910390a3505050565b612ab58484846127ae565b612ac184848484612f7a565b611be25760405162461bcd60e51b8152600401610ad790614bbe565b606060198054610e819061402e565b606081612b105750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b3a5780612b2481613e83565b9150612b339050600a83614be4565b9150612b14565b6000816001600160401b03811115612b5457612b54613548565b6040519080825280601f01601f191660200182016040528015612b7e576020820181803683370190505b5090505b84156127a657612b93600183613ef5565b9150612ba0600a86614bf8565b612bab9060306142dc565b60f81b818381518110612bc057612bc0613e57565b60200101906001600160f81b031916908160001a905350612be2600a86614be4565b9450612b82565b60008060045b600a811015612c375760008482600a8110612c0c57612c0c613e57565b60200201511115612c255781612c2181613e83565b9250505b80612c2f81613e83565b915050612bef565b50600184148015612c49575060028111155b80612c605750600284148015612c60575060028111155b80612c775750600384148015612c77575060038111155b80612c8e5750600484148015612c8e575060048111155b806127a657506005841480156127a65750600510159392505050565b600080612cb88360646142dc565b905060648110158015612ccc5750606d8111155b612ce85760405162461bcd60e51b8152600401610ad790614c55565b6000908152602160205260409020546001600160a01b031692915050565b612d1882612d13600b5490565b613078565b6000604051806101400160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090506060612d84612d7a600b5490565b846000858561244a565b601b8054906000612d948361495d565b9190505550600080516020614e08833981519152612db1600b5490565b60008560008686604051612dca96959493929190614c65565b60405180910390a1611be2600b80546001019055565b612deb838383613092565b6001600160a01b038216610fd5576000818152601a602052604081208181556001810182905590612e1f60028301826134f2565b612e2d600c83016000613501565b5050505050565b600080601754612e44338561314a565b612e4e9190614bf8565b90506000805b600a811015612ece576000600d82600a8110612e7257612e72613e57565b01546000818152600c6020526040902054909150838510801590612e9e5750612e9b81856142dc565b85105b15612ead575095945050505050565b612eb781856142dc565b935050508080612ec690613e83565b915050612e54565b5060405162461bcd60e51b8152600401610ad790614ccf565b600080612710612ef7338561314a565b612f019190614bf8565b9050610e7b811015612f165750600192915050565b611911811015612f295750600292915050565b6120a3811015612f3c5750600392915050565b6126a0811015612f4f5750600492915050565b612710811015612f625750600592915050565b60405162461bcd60e51b8152600401610ad790614d29565b60006001600160a01b0384163b1561306d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612fbe903390899088908890600401614d39565b6020604051808303816000875af1925050508015612ff9575060408051601f3d908101601f19168201909252612ff691810190614d7e565b60015b613053573d808015613027576040519150601f19603f3d011682016040523d82523d6000602084013e61302c565b606091505b50805161304b5760405162461bcd60e51b8152600401610ad790614bbe565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127a6565b506001949350505050565b61100e828260405180602001604052806000815250613224565b6001600160a01b0383166130ed576130e881600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613110565b816001600160a01b0316836001600160a01b031614613110576131108382613257565b6001600160a01b03821661312757610fd5816132f4565b826001600160a01b0316826001600160a01b031614610fd557610fd582826133a3565b6000428360405160200161315e9190614dc7565b6040516020818303038152906040528051906020012060001c6131819190614be4565b42416040516020016131939190614dc7565b6040516020818303038152906040528051906020012060001c6131b69190614be4565b8343456131c344426142dc565b6131cd91906142dc565b6131d791906142dc565b6131e191906142dc565b6131eb91906142dc565b6131f591906142dc565b6040516020016132059190614ddc565b60408051601f1981840301815291905280516020909101209392505050565b61322e838361235c565b61323b6000848484612f7a565b610fd55760405162461bcd60e51b8152600401610ad790614bbe565b6000600161326484611745565b61326e9190613ef5565b6000838152600860205260409020549091508082146132c1576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061330690600190613ef5565b6000838152600a60205260408120546009805493945090928490811061332e5761332e613e57565b90600052602060002001549050806009838154811061334f5761334f613e57565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061338757613387614df1565b6001900381819060005260206000200160009055905550505050565b60006133ae83611745565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b8280546133f39061402e565b90600052602060002090601f016020900481019282613415576000855561345b565b82601f1061342e5782800160ff1982351617855561345b565b8280016001018555821561345b579182015b8281111561345b578235825591602001919060010190613440565b5061346792915061351b565b5090565b604051806101400160405280600a906020820280368337509192915050565b82600a810192821561345b579160200282015b8281111561345b57825182559160200191906001019061349d565b82805482825590600052602060002090810192821561345b579160200282018281111561345b57825182559160200191906001019061349d565b5061119d90600a81019061351b565b508054600082559060005260206000209081019061119d91905b5b80821115613467576000815560010161351c565b805b811461119d57600080fd5b8035610e2281613530565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b038211171561358357613583613548565b6040525050565b600061359560405190565b90506135a1828261355e565b919050565b60006001600160401b038211156135bf576135bf613548565b5060209081020190565b60006135dc6135d7846135a6565b61358a565b838152905060208082019084028301858111156135fb576135fb600080fd5b835b8181101561361f5780613610888261353d565b845250602092830192016135fd565b5050509392505050565b600082601f83011261363d5761363d600080fd5b81356127a68482602086016135c9565b6000806040838503121561366357613663600080fd5b600061366f858561353d565b92505060208301356001600160401b0381111561368e5761368e600080fd5b61369a85828601613629565b9150509250929050565b6001600160e01b03198116613532565b8035610e22816136a4565b6000602082840312156136d4576136d4600080fd5b60006127a684846136b4565b8015155b82525050565b60208101610e2282846136e0565b801515613532565b8035610e22816136f8565b60006020828403121561372057613720600080fd5b60006127a68484613700565b60005b8381101561374757818101518382015260200161372f565b83811115611be25750506000910152565b6000613762825190565b80845260208401935061377981856020860161372c565b601f01601f19169290920192915050565b60208082528101611d438184613758565b6000602082840312156137b0576137b0600080fd5b60006127a6848461353d565b60006001600160a01b038216610e22565b6136e4816137bc565b60208101610e2282846137cd565b613532816137bc565b8035610e22816137e4565b6000806040838503121561380e5761380e600080fd5b600061381a85856137ed565b925050602061369a8582860161353d565b806136e4565b60208101610e22828461382b565b60008060006060848603121561385757613857600080fd5b600061386386866137ed565b9350506020613874868287016137ed565b92505060406138858682870161353d565b9150509250925092565b60008083601f8401126138a4576138a4600080fd5b5081356001600160401b038111156138be576138be600080fd5b6020830191508360018202830111156138d9576138d9600080fd5b9250929050565b600080602083850312156138f6576138f6600080fd5b82356001600160401b0381111561390f5761390f600080fd5b61391b8582860161388f565b92509250509250929050565b60006020828403121561393c5761393c600080fd5b60006127a684846137ed565b60408101613956828561382b565b611d43602083018461382b565b6000806040838503121561397957613979600080fd5b6000613985858561353d565b925050602061369a858286016137ed565b60008083601f8401126139ab576139ab600080fd5b5081356001600160401b038111156139c5576139c5600080fd5b6020830191508360208202830111156138d9576138d9600080fd5b600080600080600080606087890312156139fc576139fc600080fd5b86356001600160401b03811115613a1557613a15600080fd5b613a2189828a01613996565b965096505060208701356001600160401b03811115613a4257613a42600080fd5b613a4e89828a01613996565b945094505060408701356001600160401b03811115613a6f57613a6f600080fd5b613a7b89828a01613996565b92509250509295509295509295565b60008060408385031215613aa057613aa0600080fd5b6000613aac85856137ed565b925050602061369a85828601613700565b6000613ac9838361382b565b505060200190565b600a818060005b83811015613afd578151613aec8782613abd565b965060208301925050600101613ad8565b505050505050565b6000613b0f825190565b80845260209384019383018060005b83811015613b43578151613b328882613abd565b975060208301925050600101613b1e565b509495945050505050565b6101a08101613b5d828761382b565b613b6a602083018661382b565b613b776040830185613ad1565b818103610180830152613b8a8184613b05565b9695505050505050565b60006001600160401b03821115613bad57613bad613548565b601f19601f83011660200192915050565b82818337506000910152565b6000613bd86135d784613b94565b905082815260208101848484011115613bf357613bf3600080fd5b613bfe848285613bbe565b509392505050565b600082601f830112613c1a57613c1a600080fd5b81356127a6848260208601613bca565b60008060008060808587031215613c4357613c43600080fd5b6000613c4f87876137ed565b9450506020613c60878288016137ed565b9350506040613c718782880161353d565b92505060608501356001600160401b03811115613c9057613c90600080fd5b613c9c87828801613c06565b91505092959194509250565b60006001600160401b03821115613cc157613cc1613548565b5060200290565b6000613cd66135d784613ca8565b90508060208402830185811115613cef57613cef600080fd5b835b8181101561361f5780613d04888261353d565b84525060209283019201613cf1565b600082601f830112613d2757613d27600080fd5b600a6127a6848285613cc8565b6000806101608385031215613d4b57613d4b600080fd5b6000613d57858561353d565b925050602061369a85828601613d13565b600080600060408486031215613d8057613d80600080fd5b83356001600160401b03811115613d9957613d99600080fd5b613da586828701613996565b935093505060206138858682870161353d565b60008060408385031215613dce57613dce600080fd5b600061398585856137ed565b601881526000602082017f63616c6c657220646f6573206e6f74206f776e20726f6f6d0000000000000000815291505b5060200190565b60208082528101610e2281613dda565b600f81526000602082016e656d70747920636f736d657469637360881b81529150613e0a565b60208082528101610e2281613e21565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613e9757613e97613e6d565b5060010190565b602781526000602082017f63616e277420756e70696e20636f736d6574696320746861742069736e277420815266696e20726f6f6d60c81b602082015291505b5060400190565b60208082528101610e2281613e9e565b600082821015613f0757613f07613e6d565b500390565b60408101613f1a82856137cd565b81810360208301526127a68184613b05565b600081610e22565b90565b6000610e228254613f2c565b600a818060005b83811015613afd57613f5b82613f37565b613f658782613abd565b96505060019182019101613f4a565b6101e08101613f83828961382b565b613f90602083018861382b565b613f9d604083018761382b565b613faa606083018661382b565b613fb76080830185613f43565b8181036101c0830152613fca8184613b05565b98975050505050505050565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613e0a565b60208082528101610e2281613fd6565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061404257607f821691505b6020821081141561405557614055614018565b50919050565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150613ede565b60208082528101610e228161405b565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b60208201529150613ede565b60208082528101610e22816140b4565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150613ede565b60208082528101610e2281614102565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60208201529150613ede565b60208082528101610e228161416c565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b60208201529150613ede565b60208082528101610e22816141ca565b6000610e2282613f34565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b60208201529150613ede565b60208082528101610e228161422d565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b60208201529150613ede565b60208082528101610e2281614286565b600082198211156142ef576142ef613e6d565b500190565b602681526000602082017f63616e6e6f742068617665206d6f7265207468616e203620636f736d6574696381526520736c6f747360d01b60208201529150613ede565b60208082528101610e22816142f4565b602481526000602082017f696e76616c696420636f736d6574696320636f756e7420666f7220726f6f6d208152637479706560e01b60208201529150613ede565b60208082528101610e2281614347565b60128152600060208201716475706c696361746520636f736d6574696360701b81529150613e0a565b60208082528101610e2281614398565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b60208201529150613ede565b60208082528101610e22816143d1565b6015815260006020820174696e76616c696420636f6e7472616374207479706560581b81529150613e0a565b60208082528101610e2281614428565b601781526000602082017f63616e6e6f7420757365206e756c6c206164647265737300000000000000000081529150613e0a565b60208082528101610e2281614464565b601781526000602082017f6d696e74696e67206e6f742079657420656e61626c656400000000000000000081529150613e0a565b60208082528101610e22816144a8565b600081600019048311821515161561450657614506613e6d565b500290565b600e81526000602082016d1a5b9d985b1a5908185b5bdd5b9d60921b81529150613e0a565b60208082528101610e228161450b565b600b81526000602082016a0c8d2cccc40d8cadccee8d60ab1b81529150613e0a565b60208082528101610e2281614540565b603081526000602082017f77686974656c697374206d696e74696e67206e6f742079657420656e61626c6581526f6420666f7220636f6d706f6e656e747360801b60208201529150613ede565b60208082528101610e2281614572565b601781526000602082017f6e6f7420656e6f75676820574c20616c6c6f77616e636500000000000000000081529150613e0a565b60208082528101610e22816145cf565b602181526000602082017f636f6d706f6e656e74206d696e74696e67206e6f742079657420656e61626c658152601960fa1b60208201529150613ede565b60208082528101610e2281614613565b602f81526000602082017f4552433732314d657461646174613a2055524920717565727920666f72206e6f81526e3732bc34b9ba32b73a103a37b5b2b760891b60208201529150613ede565b60208082528101610e2281614661565b60006146c7825190565b6146d581856020860161372c565b9290920192915050565b60006146eb82856146bd565b91506127a682846146bd565b602981526000602082017f696e76616c696420636f6d706f6e656e747320666f7220726f6f6d2074797065815268081c1c9bdd9a59195960ba1b60208201529150613ede565b60208082528101610e22816146f7565b6040810161395682856137cd565b8051610e2281613530565b60006020828403121561477b5761477b600080fd5b60006127a6848461475b565b6101e08101614796828961382b565b6147a3602083018861382b565b6147b0604083018761382b565b6147bd606083018661382b565b613fb76080830185613ad1565b602181526000602082017f77686974656c697374206d696e74696e67206e6f742079657420656e61626c658152601960fa1b60208201529150613ede565b60208082528101610e22816147ca565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150613ede565b60208082528101610e2281614818565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613e0a565b60208082528101610e228161486b565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150613e0a565b60208082528101610e22816148ad565b601581526000602082017418dbdb5c1bdb995b9d1cc81b5a5b9d1959081bdd5d605a1b81529150613e0a565b60208082528101610e22816148f1565b6000610e22613f348381565b6136e48161492d565b6040810161495082856137cd565b611d436020830184614939565b60008161496c5761496c613e6d565b506000190190565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150613ede565b60208082528101610e2281614974565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b60208201529150613ede565b60208082528101610e22816149cd565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150613ede565b60208082528101610e2281614a1f565b601781526000602082017f6d757374206d696e74203c323620617420612074696d6500000000000000000081529150613e0a565b60208082528101610e2281614a70565b60168152600060208201756d757374206d696e7420323520617420612074696d6560501b81529150613e0a565b60208082528101610e2281614ab4565b60138152600060208201726e6f206d6f726520726f6f6d20737570706c7960681b81529150613e0a565b60208082528101610e2281614af1565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613e0a565b60208082528101610e2281614b2b565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150613ede565b60208082528101610e2281614b6f565b634e487b7160e01b600052601260045260246000fd5b600082614bf357614bf3614bce565b500490565b600082614c0757614c07614bce565b500690565b602c81526000602082017f696e76616c696420696e6465782c2063616e6e6f742067657420636f6d706f6e81526b195b9d0818dbdb9d1c9858dd60a21b60208201529150613ede565b60208082528101610e2281614c0c565b6101e08101614c74828961382b565b614c816020830188614939565b614c8e604083018761382b565b6147bd6060830186614939565b601a81526000602082017f6e6f20636f6d706f6e656e7473206c65667420746f206d696e7400000000000081529150613e0a565b60208082528101610e2281614c9b565b602d81526000602082017f736f6d657468696e672077656e742077726f6e67207069636b696e672072616e81526c646f6d20726f6f6d207479706560981b60208201529150613ede565b60208082528101610e2281614cdf565b60808101614d4782876137cd565b614d5460208301866137cd565b614d61604083018561382b565b8181036060830152613b8a8184613758565b8051610e22816136a4565b600060208284031215614d9357614d93600080fd5b60006127a68484614d73565b6000610e228260601b90565b6000610e2282614d9f565b6136e4614dc2826137bc565b614dab565b6000614dd38284614db6565b50601401919050565b6000614de8828461382b565b50602001919050565b634e487b7160e01b600052603160045260246000fdfe822e382a5cb8e3ab549fe5040341ac120a8eeaf45c6681f297b4995bb6ee91c1a2646970667358221220c6080f063b85c75686ae2108e828472aa59e7e5413ef4b111e83b87ce631cae064736f6c634300080a0033

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

0000000000000000000000000000000000000000000000000000000000000160000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c0260000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : uri (string):
Arg [1] : windowContract (address): 0xbCc2498F20080e29b35fEa6596D0449d5372C026
Arg [2] : door (address): 0xbCc2498F20080e29b35fEa6596D0449d5372C026
Arg [3] : bed (address): 0xbCc2498F20080e29b35fEa6596D0449d5372C026
Arg [4] : building (address): 0xbCc2498F20080e29b35fEa6596D0449d5372C026
Arg [5] : table (address): 0xbCc2498F20080e29b35fEa6596D0449d5372C026
Arg [6] : desk (address): 0xbCc2498F20080e29b35fEa6596D0449d5372C026
Arg [7] : entertainment (address): 0xbCc2498F20080e29b35fEa6596D0449d5372C026
Arg [8] : couch (address): 0xbCc2498F20080e29b35fEa6596D0449d5372C026
Arg [9] : pet (address): 0xbCc2498F20080e29b35fEa6596D0449d5372C026
Arg [10] : activity (address): 0xbCc2498F20080e29b35fEa6596D0449d5372C026

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [1] : 000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026
Arg [2] : 000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026
Arg [3] : 000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026
Arg [4] : 000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026
Arg [5] : 000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026
Arg [6] : 000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026
Arg [7] : 000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026
Arg [8] : 000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026
Arg [9] : 000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026
Arg [10] : 000000000000000000000000bcc2498f20080e29b35fea6596d0449d5372c026
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
view all blocks validated

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.