CRO Price: $0.08 (+3.11%)

Contract

0x8Bff49Fc633e0A3eB879449B67500812B27a97B7

Overview

CRO Balance

Cronos Chain LogoCronos Chain LogoCronos Chain Logo0 CRO

CRO Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap Trait161802652024-10-08 22:04:222 days ago1728425062IN
0x8Bff49Fc...2B27a97B7
0 CRO2.150139535,002.5
Swap Trait161802572024-10-08 22:03:362 days ago1728425016IN
0x8Bff49Fc...2B27a97B7
0 CRO2.034646815,002.5
Swap Trait161802452024-10-08 22:02:282 days ago1728424948IN
0x8Bff49Fc...2B27a97B7
0 CRO1.86974445,002.5
Swap Trait158939782024-09-20 5:18:4921 days ago1726809529IN
0x8Bff49Fc...2B27a97B7
0 CRO2.148648785,002.5
Swap Trait158939692024-09-20 5:17:5821 days ago1726809478IN
0x8Bff49Fc...2B27a97B7
0 CRO2.035747365,002.5
Swap Trait158939582024-09-20 5:16:5721 days ago1726809417IN
0x8Bff49Fc...2B27a97B7
0 CRO1.922135585,002.5
Swap Trait158798632024-09-19 7:14:5622 days ago1726730096IN
0x8Bff49Fc...2B27a97B7
0 CRO2.097748355,002.5
Swap Trait158798482024-09-19 7:13:3422 days ago1726730014IN
0x8Bff49Fc...2B27a97B7
0 CRO2.034646815,002.5
Swap Trait158798382024-09-19 7:12:3622 days ago1726729956IN
0x8Bff49Fc...2B27a97B7
0 CRO1.922135585,002.5
Swap Trait158175762024-09-15 5:53:1926 days ago1726379599IN
0x8Bff49Fc...2B27a97B7
0 CRO2.887573065,002.5
Swap Trait158175662024-09-15 5:52:2326 days ago1726379543IN
0x8Bff49Fc...2B27a97B7
0 CRO2.885637095,002.5
Swap Trait158175542024-09-15 5:51:1626 days ago1726379476IN
0x8Bff49Fc...2B27a97B7
0 CRO3.099584015,002.5
Swap Trait158175422024-09-15 5:50:0826 days ago1726379408IN
0x8Bff49Fc...2B27a97B7
0 CRO2.871580075,002.5
Swap Trait157781042024-09-12 15:55:5828 days ago1726156558IN
0x8Bff49Fc...2B27a97B7
0 CRO1.886897155,050
Swap Trait145923782024-06-26 21:34:51106 days ago1719437691IN
0x8Bff49Fc...2B27a97B7
0 CRO2.054567255,050
Swap Trait144245302024-06-15 22:35:53117 days ago1718490953IN
0x8Bff49Fc...2B27a97B7
0 CRO2.104037055,050
Swap Trait144245232024-06-15 22:35:12117 days ago1718490912IN
0x8Bff49Fc...2B27a97B7
0 CRO2.04133125,050
Swap Trait144245152024-06-15 22:34:27117 days ago1718490867IN
0x8Bff49Fc...2B27a97B7
0 CRO1.92534285,050
Set Approval For...143424232024-06-10 12:26:06123 days ago1718022366IN
0x8Bff49Fc...2B27a97B7
0 CRO0.234941155,050
Swap Trait142290592024-06-03 1:09:26130 days ago1717376966IN
0x8Bff49Fc...2B27a97B7
0 CRO1.879166585,065.65788983
Swap Trait142284442024-06-03 0:11:06130 days ago1717373466IN
0x8Bff49Fc...2B27a97B7
0 CRO2.15766865,023.5
Swap Trait142284362024-06-03 0:10:20130 days ago1717373420IN
0x8Bff49Fc...2B27a97B7
0 CRO2.044903655,025
Swap Trait142282312024-06-02 23:50:56130 days ago1717372256IN
0x8Bff49Fc...2B27a97B7
0 CRO1.9682875,125
Set Approval For...142263502024-06-02 20:52:57130 days ago1717361577IN
0x8Bff49Fc...2B27a97B7
0 CRO0.234941155,050
Set Approval For...141214052024-05-26 22:54:59137 days ago1716764099IN
0x8Bff49Fc...2B27a97B7
0 CRO0.234941155,050
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Activity

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

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

import "./NonFixedComponent.sol";
import "./components.sol";

contract Activity is NonFixedComp {
    constructor(string memory uri) NonFixedComp(uri, "Boom Room Component Activity", "BRCa", components.ACTIVITY) { }
}

File 2 of 22 : 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 22 : 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 22 : 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 22 : NonFixedComponent.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./Component.sol";
import "./components.sol";

contract NonFixedComp is Component {
    constructor(string memory uri, string memory name, string memory ticker, uint256 componentType) Component(uri, name, ticker, componentType, 670, 335, 167) { }
}

File 6 of 22 : 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 trait) external;

    function componentType() external returns (uint256);
}

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

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

abstract contract Component is Ownable, ERC721Enumerable, ERC721Holder, IBoomRoomComponent, Withdrawable {
    using Counters for Counters.Counter;
    Counters.Counter private tokenIndex;

    // trait types
    // WARNING: if any trait values are changed it can break getTraitType()
    uint256 public constant TRAIT_TYPE_1 = 1;
    uint256 public constant TRAIT_TYPE_2 = 2;
    uint256 public constant TRAIT_TYPE_3 = 3;
    uint256 public constant TRAIT_TYPE_4 = 4;

    // TRAIT_TYPE_1 traits
    uint256 public constant TRAIT_TYPE_1_TRAIT_1 = 101;
    uint256 public constant TRAIT_TYPE_1_TRAIT_2 = 102;
    uint256 public constant TRAIT_TYPE_1_TRAIT_3 = 103;
    uint256 public constant TRAIT_TYPE_1_TRAIT_4 = 104;
    uint256 public constant TRAIT_TYPE_1_TRAIT_5 = 105;
    uint256 public constant TRAIT_TYPE_1_TRAIT_6 = 106;
    uint256 public constant TRAIT_TYPE_1_TRAIT_7 = 107;
    uint256 public constant TRAIT_TYPE_1_TRAIT_8 = 108;

    // TRAIT_TYPE_2 traits
    uint256 public constant TRAIT_TYPE_2_TRAIT_1 = 201;
    uint256 public constant TRAIT_TYPE_2_TRAIT_2 = 202;
    uint256 public constant TRAIT_TYPE_2_TRAIT_3 = 203;
    uint256 public constant TRAIT_TYPE_2_TRAIT_4 = 204;
    uint256 public constant TRAIT_TYPE_2_TRAIT_5 = 205;
    uint256 public constant TRAIT_TYPE_2_TRAIT_6 = 206;
    uint256 public constant TRAIT_TYPE_2_TRAIT_7 = 207;
    uint256 public constant TRAIT_TYPE_2_TRAIT_8 = 208;

    // TRAIT_TYPE_3 traits
    uint256 public constant TRAIT_TYPE_3_TRAIT_1 = 301;
    uint256 public constant TRAIT_TYPE_3_TRAIT_2 = 302;
    uint256 public constant TRAIT_TYPE_3_TRAIT_3 = 303;
    uint256 public constant TRAIT_TYPE_3_TRAIT_4 = 304;
    uint256 public constant TRAIT_TYPE_3_TRAIT_5 = 305;
    uint256 public constant TRAIT_TYPE_3_TRAIT_6 = 306;
    uint256 public constant TRAIT_TYPE_3_TRAIT_7 = 307;
    uint256 public constant TRAIT_TYPE_3_TRAIT_8 = 308;

    // ACCESSERY traits
    uint256 public constant TRAIT_TYPE_4_TRAIT_1 = 401;
    uint256 public constant TRAIT_TYPE_4_TRAIT_2 = 402;
    uint256 public constant TRAIT_TYPE_4_TRAIT_3 = 403;
    uint256 public constant TRAIT_TYPE_4_TRAIT_4 = 404;
    uint256 public constant TRAIT_TYPE_4_TRAIT_5 = 405;
    uint256 public constant TRAIT_TYPE_4_TRAIT_6 = 406;
    uint256 public constant TRAIT_TYPE_4_TRAIT_7 = 407;
    uint256 public constant TRAIT_TYPE_4_TRAIT_8 = 408;

    uint256 public supplyOfAllTraits;

    uint256 public componentType;

    IBurnable scratchContract;
    function setScratchContract(address c) external onlyOwner {
        require(c != address(0), "null addr");
        scratchContract = IBurnable(c);
    }

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

    struct traitMetadata {
        uint256 points;
        uint supply;
        uint256 traitType;
    }
     event newComponent(
        uint256 id,
        uint256 oldId,
        uint256 score,
        uint256 TRAIT_TYPE_1,
        uint256 TRAIT_TYPE_2,
        uint256 TRAIT_TYPE_3,
        uint256 TRAIT_TYPE_4,
        uint256 componentType
    );
    mapping(uint256 => traitMetadata) traitToTraitMeta;

    struct componentMetadata {
        uint256 TRAIT_TYPE_1;
        uint256 TRAIT_TYPE_2;
        uint256 TRAIT_TYPE_3;
        uint256 TRAIT_TYPE_4;
        uint256 score;
    }

    // tokenID => metadata
    mapping(uint256 => componentMetadata) componentMeta;


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

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

    address boomRoomContract;
    function setBoomRoomContract(address br) external onlyOwner {
        boomRoomContract = br;
    }

    mapping(int => uint256) scratchUpgradeCosts;
    function setScratchUpgradeCost(int startingTraitCount, uint256 upgradeCost) external onlyOwner {
        scratchUpgradeCosts[startingTraitCount] = upgradeCost;
    }

    uint256[] traitsOrderedByInitialSupply = [TRAIT_TYPE_1_TRAIT_1, TRAIT_TYPE_1_TRAIT_2, TRAIT_TYPE_1_TRAIT_3, TRAIT_TYPE_2_TRAIT_1, TRAIT_TYPE_2_TRAIT_2, TRAIT_TYPE_2_TRAIT_3,
        TRAIT_TYPE_3_TRAIT_1, TRAIT_TYPE_3_TRAIT_2, TRAIT_TYPE_3_TRAIT_3, TRAIT_TYPE_4_TRAIT_1, TRAIT_TYPE_4_TRAIT_2, TRAIT_TYPE_4_TRAIT_3, TRAIT_TYPE_1_TRAIT_4, TRAIT_TYPE_1_TRAIT_5, TRAIT_TYPE_1_TRAIT_6,
        TRAIT_TYPE_2_TRAIT_4, TRAIT_TYPE_2_TRAIT_5, TRAIT_TYPE_2_TRAIT_6, TRAIT_TYPE_3_TRAIT_4, TRAIT_TYPE_3_TRAIT_5, TRAIT_TYPE_3_TRAIT_6, TRAIT_TYPE_4_TRAIT_4, TRAIT_TYPE_4_TRAIT_5, TRAIT_TYPE_4_TRAIT_6,
        TRAIT_TYPE_1_TRAIT_7, TRAIT_TYPE_1_TRAIT_8, TRAIT_TYPE_2_TRAIT_7, TRAIT_TYPE_2_TRAIT_8, TRAIT_TYPE_3_TRAIT_7, TRAIT_TYPE_3_TRAIT_8, TRAIT_TYPE_4_TRAIT_7, TRAIT_TYPE_4_TRAIT_8];

    constructor(string memory uri, string memory name, string memory ticker, uint256 compType, uint256 commonSupply, uint256 uncommonSupply, uint256 rareSupply) ERC721(name, ticker) {
        baseURI = uri;
        componentType = compType;
        scratchUpgradeCosts[1] = 30;
        scratchUpgradeCosts[2] = 45;
        scratchUpgradeCosts[3] = 60;
        traitToTraitMeta[TRAIT_TYPE_1_TRAIT_1] = traitMetadata({supply: commonSupply, points: 1, traitType: TRAIT_TYPE_1});
        traitToTraitMeta[TRAIT_TYPE_1_TRAIT_2] = traitMetadata({supply: commonSupply, points: 1, traitType: TRAIT_TYPE_1});
        traitToTraitMeta[TRAIT_TYPE_1_TRAIT_3] = traitMetadata({supply: commonSupply, points: 1, traitType: TRAIT_TYPE_1});
        traitToTraitMeta[TRAIT_TYPE_1_TRAIT_4] = traitMetadata({supply: uncommonSupply, points: 2, traitType: TRAIT_TYPE_1});
        traitToTraitMeta[TRAIT_TYPE_1_TRAIT_5] = traitMetadata({supply: uncommonSupply, points: 2, traitType: TRAIT_TYPE_1});
        traitToTraitMeta[TRAIT_TYPE_1_TRAIT_6] = traitMetadata({supply: uncommonSupply, points: 2, traitType: TRAIT_TYPE_1});
        traitToTraitMeta[TRAIT_TYPE_1_TRAIT_7] = traitMetadata({supply: rareSupply, points: 3, traitType: TRAIT_TYPE_1});
        traitToTraitMeta[TRAIT_TYPE_1_TRAIT_8] = traitMetadata({supply: rareSupply+1, points: 3, traitType: TRAIT_TYPE_1});

        traitToTraitMeta[TRAIT_TYPE_2_TRAIT_1] = traitMetadata({supply: commonSupply, points: 1, traitType: TRAIT_TYPE_2});
        traitToTraitMeta[TRAIT_TYPE_2_TRAIT_2] = traitMetadata({supply: commonSupply, points: 1, traitType: TRAIT_TYPE_2});
        traitToTraitMeta[TRAIT_TYPE_2_TRAIT_3] = traitMetadata({supply: commonSupply, points: 1, traitType: TRAIT_TYPE_2});
        traitToTraitMeta[TRAIT_TYPE_2_TRAIT_4] = traitMetadata({supply: uncommonSupply, points: 2, traitType: TRAIT_TYPE_2});
        traitToTraitMeta[TRAIT_TYPE_2_TRAIT_5] = traitMetadata({supply: uncommonSupply, points: 2, traitType: TRAIT_TYPE_2});
        traitToTraitMeta[TRAIT_TYPE_2_TRAIT_6] = traitMetadata({supply: uncommonSupply, points: 2, traitType: TRAIT_TYPE_2});
        traitToTraitMeta[TRAIT_TYPE_2_TRAIT_7] = traitMetadata({supply: rareSupply, points: 3, traitType: TRAIT_TYPE_2});
        traitToTraitMeta[TRAIT_TYPE_2_TRAIT_8] = traitMetadata({supply: rareSupply+1, points: 3, traitType: TRAIT_TYPE_2});

        traitToTraitMeta[TRAIT_TYPE_3_TRAIT_1] = traitMetadata({supply: commonSupply, points: 1, traitType: TRAIT_TYPE_3});
        traitToTraitMeta[TRAIT_TYPE_3_TRAIT_2] = traitMetadata({supply: commonSupply, points: 1, traitType: TRAIT_TYPE_3});
        traitToTraitMeta[TRAIT_TYPE_3_TRAIT_3] = traitMetadata({supply: commonSupply, points: 1, traitType: TRAIT_TYPE_3});
        traitToTraitMeta[TRAIT_TYPE_3_TRAIT_4] = traitMetadata({supply: uncommonSupply, points: 2, traitType: TRAIT_TYPE_3});
        traitToTraitMeta[TRAIT_TYPE_3_TRAIT_5] = traitMetadata({supply: uncommonSupply, points: 2, traitType: TRAIT_TYPE_3});
        traitToTraitMeta[TRAIT_TYPE_3_TRAIT_6] = traitMetadata({supply: uncommonSupply, points: 2, traitType: TRAIT_TYPE_3});
        traitToTraitMeta[TRAIT_TYPE_3_TRAIT_7] = traitMetadata({supply: rareSupply, points: 3, traitType: TRAIT_TYPE_3});
        traitToTraitMeta[TRAIT_TYPE_3_TRAIT_8] = traitMetadata({supply: rareSupply+1, points: 3, traitType: TRAIT_TYPE_3});

        traitToTraitMeta[TRAIT_TYPE_4_TRAIT_1] = traitMetadata({supply: commonSupply, points: 1, traitType: TRAIT_TYPE_4});
        traitToTraitMeta[TRAIT_TYPE_4_TRAIT_2] = traitMetadata({supply: commonSupply, points: 1, traitType: TRAIT_TYPE_4});
        traitToTraitMeta[TRAIT_TYPE_4_TRAIT_3] = traitMetadata({supply: commonSupply, points: 1, traitType: TRAIT_TYPE_4});
        traitToTraitMeta[TRAIT_TYPE_4_TRAIT_4] = traitMetadata({supply: uncommonSupply, points: 2, traitType: TRAIT_TYPE_4});
        traitToTraitMeta[TRAIT_TYPE_4_TRAIT_5] = traitMetadata({supply: uncommonSupply, points: 2, traitType: TRAIT_TYPE_4});
        traitToTraitMeta[TRAIT_TYPE_4_TRAIT_6] = traitMetadata({supply: uncommonSupply, points: 2, traitType: TRAIT_TYPE_4});
        traitToTraitMeta[TRAIT_TYPE_4_TRAIT_7] = traitMetadata({supply: rareSupply, points: 3, traitType: TRAIT_TYPE_4});
        traitToTraitMeta[TRAIT_TYPE_4_TRAIT_8] = traitMetadata({supply: rareSupply+1, points: 3, traitType: TRAIT_TYPE_4});
        supplyOfAllTraits = (commonSupply*12) + (uncommonSupply*12) + (rareSupply * 4) + ((rareSupply+1)*4);

        // start token IDs at 1
        tokenIndex.increment();
    }

    function mint(address origin, uint256 amount) external returns (uint256) {
        require(msg.sender == boomRoomContract, "component mints must come from boom room contract");
        require(amount < 26, "must mint 25 at a time");
        for (uint256 i = 0; i < amount; i++) {
            (uint256 traitType, uint256 trait) = pickRandomTrait(seed + i);
            executeMint(origin, traitType, trait);
        }
        return components.WINDOW;
    }

    function adminMintWithTrait(address to, uint256 trait) external onlyOwner {
        executeMint(to, getTraitType(trait), trait);
    }

    function executeMint(address to, uint256 traitType, uint256 trait) internal {
            uint256 score = traitToTraitMeta[trait].points;
            uint256 curr = tokenIndex.current();
            _mint(to, curr);
            if (traitType == TRAIT_TYPE_1) {
                componentMeta[curr].TRAIT_TYPE_1 = trait;
                emit newComponent
    ({id: curr, oldId: 0, score: score, TRAIT_TYPE_1: trait, TRAIT_TYPE_2: 0, TRAIT_TYPE_3: 0, TRAIT_TYPE_4: 0, componentType: componentType});
            } else if (traitType == TRAIT_TYPE_2) {
                componentMeta[curr].TRAIT_TYPE_2 = trait;
                emit newComponent
    ({id: curr, oldId: 0,score: score, TRAIT_TYPE_1: 0, TRAIT_TYPE_2: trait, TRAIT_TYPE_3: 0, TRAIT_TYPE_4: 0, componentType: componentType});
            } else if (traitType == TRAIT_TYPE_3) {
                componentMeta[curr].TRAIT_TYPE_3 = trait;
                emit newComponent
    ({id: curr, oldId: 0,score: score, TRAIT_TYPE_1: 0, TRAIT_TYPE_2: 0, TRAIT_TYPE_3: trait, TRAIT_TYPE_4: 0, componentType: componentType});
            } else if (traitType == TRAIT_TYPE_4) {
                componentMeta[curr].TRAIT_TYPE_4 = trait;
                emit newComponent
    ({id: curr, oldId: 0,score: score, TRAIT_TYPE_1: 0, TRAIT_TYPE_2: 0, TRAIT_TYPE_3: 0, TRAIT_TYPE_4: trait, componentType: componentType});
            } else {
                revert("unexpected trait type");
            }

            componentMeta[curr].score = score;
            traitToTraitMeta[trait].supply--;
            supplyOfAllTraits--;
            tokenIndex.increment();
    }

    function lockComponent(address owner, uint256 id) external returns (uint256) {
        require(msg.sender == boomRoomContract, "only boom room contract can lock/unlock coponents");
        // if owner actually owns it, we know it's not locked
        require(ownerOf(id) == owner, "address is not owner of component");
        safeTransferFrom(owner, address(this), id);
        return componentMeta[id].score;
    }

    function unlockComponent(address owner, uint256 id) external {
        require(msg.sender == boomRoomContract, "only boom room contract can lock/unlock coponents");
        require(ownerOf(id) == address(this), "component is not locked");
        safeTransferFrom(address(this), owner, id);
    }

    string cannotOverwriteErrMsg = "cannot overwrite trait - must move it to another component";
    string fromNoTraitErrMsg = "from component does not have specified trait";


    function swapTrait(uint256 toComponent, uint256 fromComponent, uint256 trait) external {
        // TODO handle toComponent being 0
        require(ownerOf(fromComponent) == msg.sender, "caller does not own from component");
        bool toNewComponent = toComponent == 0;
        require(toNewComponent|| ownerOf(toComponent) == msg.sender, "caller does not own to component");
        uint256 traitType = getTraitType(trait);
        uint256 traitScore = traitToTraitMeta[trait].points;
        require(traitScore > 0, "invalid trait");
        componentMetadata storage toMeta = componentMeta[toComponent];
        componentMetadata storage fromMeta = componentMeta[fromComponent];
        componentMetadata memory newToMeta = toMeta;
        componentMetadata memory newFromMeta = fromMeta;
        int startingTraits = 0; 
        if (toMeta.TRAIT_TYPE_1 > 0) {
            startingTraits++;
        }
        if (toMeta.TRAIT_TYPE_2 > 0) {
            startingTraits++;
        }
        if (toMeta.TRAIT_TYPE_3 > 0) {
            startingTraits++;
        }
        if (toMeta.TRAIT_TYPE_4 > 0) {
            startingTraits++;
        }
        if (traitType == TRAIT_TYPE_1) {
            require(fromMeta.TRAIT_TYPE_1 == trait, fromNoTraitErrMsg);
            require(toNewComponent || toMeta.TRAIT_TYPE_1 == 0, cannotOverwriteErrMsg);
            newToMeta.TRAIT_TYPE_1 = trait;
            newFromMeta.TRAIT_TYPE_1 = 0;
        } else if (traitType == TRAIT_TYPE_2) {
            require(fromMeta.TRAIT_TYPE_2 == trait, fromNoTraitErrMsg);
            require(toNewComponent || toMeta.TRAIT_TYPE_2 == 0, cannotOverwriteErrMsg);
            newToMeta.TRAIT_TYPE_2 = trait;
            newFromMeta.TRAIT_TYPE_2 = 0;
        } else if (traitType == TRAIT_TYPE_3) {
            require(fromMeta.TRAIT_TYPE_3 == trait, fromNoTraitErrMsg);
            require(toNewComponent || toMeta.TRAIT_TYPE_3 == 0, cannotOverwriteErrMsg);
            newToMeta.TRAIT_TYPE_3 = trait;
            newFromMeta.TRAIT_TYPE_3 = 0;
        } else if (traitType == TRAIT_TYPE_4) {
            require(fromMeta.TRAIT_TYPE_4 == trait, fromNoTraitErrMsg);
            require(toNewComponent || toMeta.TRAIT_TYPE_4 == 0, cannotOverwriteErrMsg);
            newToMeta.TRAIT_TYPE_4 = trait;
            newFromMeta.TRAIT_TYPE_4 = 0;
        }
        newToMeta.score += traitScore;
        if (newFromMeta.TRAIT_TYPE_1 != 0 || newFromMeta.TRAIT_TYPE_2 != 0 || newFromMeta.TRAIT_TYPE_3 != 0 || newFromMeta.TRAIT_TYPE_4 != 0) {
            newFromMeta.score -= traitScore;
            uint256 newFromComponent = tokenIndex.current();
            tokenIndex.increment();
            mintFromMeta(msg.sender, newFromComponent, fromComponent, newFromMeta);
        }
        uint256 newToComponent = tokenIndex.current();
        tokenIndex.increment();
        mintFromMeta(msg.sender, newToComponent, toComponent, newToMeta);
        if (!toNewComponent) {
            burn(toComponent);
        }
        burn(fromComponent);

        uint256 scratchCost = scratchUpgradeCosts[startingTraits];
        scratchContract.burn(msg.sender, scratchCost);
    }

    function mintFromMeta(address to, uint256 id, uint256 oldId, componentMetadata memory md) internal {
        _safeMint(to, id);
        emit newComponent({
            id: id,
            oldId: oldId,
            score: md.score,
            TRAIT_TYPE_1: md.TRAIT_TYPE_1,
            TRAIT_TYPE_2: md.TRAIT_TYPE_2,
            TRAIT_TYPE_3: md.TRAIT_TYPE_3,
            TRAIT_TYPE_4: md.TRAIT_TYPE_4,
            componentType: componentType
        });
        componentMeta[id] = md;
    }

    function burn(uint256 component) internal {
        _burn(component);
        delete componentMeta[component];
    }

    // uint256[4] order is TRAIT_TYPE_1, TRAIT_TYPE_2, wood trim, accessory
    // int is score
    // the bool is whether component is locked
    function getComponentMetadata(uint256 component) external view returns (uint256[4] memory, uint256, bool) {
        componentMetadata memory meta = componentMeta[component];
        uint256[4] memory traits = [meta.TRAIT_TYPE_1, meta.TRAIT_TYPE_2, meta.TRAIT_TYPE_3, meta.TRAIT_TYPE_4];
        return (traits, meta.score, ownerOf(component) == address(this));
    }

    // function getComponentTraits(uint256 component) external view returns (uint256[4] memory) {
    //     componentMetadata storage meta = componentMeta[component];
    //     uint256[4] memory traits = [meta.TRAIT_TYPE_1, meta.TRAIT_TYPE_2, meta.TRAIT_TYPE_3, meta.TRAIT_TYPE_4];
    //     return traits;
    // }

    function getScore(uint256 component) external view returns (uint256) {
        return componentMeta[component].score;
    }

    function getTraitType(uint256 trait) internal pure returns (uint256) {
        if (trait >= 101 && trait <= 108) {
            return TRAIT_TYPE_1;
        } else if (trait >= 201 && trait <= 208) {
            return TRAIT_TYPE_2;
        } else if (trait >= 301 && trait <= 308) {
            return TRAIT_TYPE_3;
        } else if (trait >= 401 && trait <= 408) {
            return TRAIT_TYPE_4;
        } else {
            revert("cannot get trait type on invalid trait");
        }
    }

    function pickRandomTrait(uint256 input) internal view returns (uint256, uint256) {
        uint256 traitSelection = util.random(msg.sender, input) % supplyOfAllTraits;
        uint256 last = 0;
        for (uint256 i = 0; i < traitsOrderedByInitialSupply.length; i++) {
            uint256 trait = traitsOrderedByInitialSupply[i];
            uint256 remainingSupply = traitToTraitMeta[trait].supply;
            if (traitSelection >= last && traitSelection < last + remainingSupply) {
                return (getTraitType(trait), trait);
            }
            last = last + remainingSupply;
        }
        revert("no traits left to mint");
    }


    /*
    ERC721 OVERRIDES
    */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view override 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) || spender == boomRoomContract);
    }

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

File 8 of 22 : IBurnable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IBurnable {
    function burn(address _from, uint256 _amount) external;
}

File 9 of 22 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 11 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 12 of 22 : 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 13 of 22 : 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 14 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 15 of 22 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 16 of 22 : 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 17 of 22 : 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 18 of 22 : 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 19 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 20 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 21 of 22 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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 an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    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 22 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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

[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"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":"score","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"TRAIT_TYPE_1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"TRAIT_TYPE_2","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"TRAIT_TYPE_3","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"TRAIT_TYPE_4","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"componentType","type":"uint256"}],"name":"newComponent","type":"event"},{"inputs":[],"name":"TRAIT_TYPE_1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_1_TRAIT_1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_1_TRAIT_2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_1_TRAIT_3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_1_TRAIT_4","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_1_TRAIT_5","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_1_TRAIT_6","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_1_TRAIT_7","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_1_TRAIT_8","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_2_TRAIT_1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_2_TRAIT_2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_2_TRAIT_3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_2_TRAIT_4","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_2_TRAIT_5","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_2_TRAIT_6","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_2_TRAIT_7","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_2_TRAIT_8","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_3_TRAIT_1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_3_TRAIT_2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_3_TRAIT_3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_3_TRAIT_4","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_3_TRAIT_5","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_3_TRAIT_6","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_3_TRAIT_7","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_3_TRAIT_8","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_4","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_4_TRAIT_1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_4_TRAIT_2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_4_TRAIT_3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_4_TRAIT_4","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_4_TRAIT_5","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_4_TRAIT_6","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_4_TRAIT_7","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_TYPE_4_TRAIT_8","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"trait","type":"uint256"}],"name":"adminMintWithTrait","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":"componentType","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":"component","type":"uint256"}],"name":"getComponentMetadata","outputs":[{"internalType":"uint256[4]","name":"","type":"uint256[4]"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"component","type":"uint256"}],"name":"getScore","outputs":[{"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":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"lockComponent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"origin","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"br","type":"address"}],"name":"setBoomRoomContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"c","type":"address"}],"name":"setScratchContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"startingTraitCount","type":"int256"},{"internalType":"uint256","name":"upgradeCost","type":"uint256"}],"name":"setScratchUpgradeCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSeed","type":"uint256"}],"name":"setSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyOfAllTraits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"toComponent","type":"uint256"},{"internalType":"uint256","name":"fromComponent","type":"uint256"},{"internalType":"uint256","name":"trait","type":"uint256"}],"name":"swapTrait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"unlockComponent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6064601255678ac7230489e8000060135561048060405260656080908152606660a052606760c05260c960e05260ca6101005260cb6101205261012d6101405261012e6101605261012f610180526101916101a0526101926101c0526101936101e052606861020052606961022052606a6102405260cc6102605260cd6102805260ce6102a0526101306102c0526101316102e05261013261030052610194610320526101956103405261019661036052606b61038052606c6103a05260cf6103c05260d06103e05261013361040052610134610420526101976104405261019861046052620000f49060169060206200154a565b506040518060600160405280603a81526020016200541d603a9139805162000125916017916020909101906200159a565b506040518060600160405280602c8152602001620053f1602c9139805162000156916018916020909101906200159a565b503480156200016457600080fd5b50604051620054573803806200545783398101604081905262000187916200176a565b806040518060400160405280601c81526020017f426f6f6d20526f6f6d20436f6d706f6e656e7420416374697669747900000000815250604051806040016040528060048152602001634252436160e01b815250606d8383838361029e61014f60a785858160009080519060200190620002039291906200159a565b508051620002199060019060208401906200159a565b5050506200023662000230620014eb60201b60201c565b620014ef565b86516200024b90600f9060208a01906200159a565b50600d849055601e7f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d55602d7f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b55603c7fb3a65e8276bd33b3e4f7d6081ebd9899187264822358758dca2e2bc37b2a9c275560408051606080820183526001808352602083810188815284860183815260656000908152601080855296517f1a30bfa582bf4431ebf1419d9ec10e3201700dc6bb1a0194584cd35c1484dd735591517f1a30bfa582bf4431ebf1419d9ec10e3201700dc6bb1a0194584cd35c1484dd7455517f1a30bfa582bf4431ebf1419d9ec10e3201700dc6bb1a0194584cd35c1484dd7555855180850187528381528083018a81528188018581526066845287855291517fc9452d6cbb60266b08a9aef3b299d70b96431bef3d67b1299ab99f9a4308906455517fc9452d6cbb60266b08a9aef3b299d70b96431bef3d67b1299ab99f9a4308906555517fc9452d6cbb60266b08a9aef3b299d70b96431bef3d67b1299ab99f9a4308906655855180850187528381528083018a81528188018581526067845287855291517f8f19c39cb0c871181927b789426de5cf0e94008e859798917f3712f43a779ec255517f8f19c39cb0c871181927b789426de5cf0e94008e859798917f3712f43a779ec355517f8f19c39cb0c871181927b789426de5cf0e94008e859798917f3712f43a779ec4558551808501875260028082528184018a81528289018681526068855288865292517fc8ce448063c9e5a6b43073728264d2428df8d8a93701bf64cc3f44cb98ec51c155517fc8ce448063c9e5a6b43073728264d2428df8d8a93701bf64cc3f44cb98ec51c25590517fc8ce448063c9e5a6b43073728264d2428df8d8a93701bf64cc3f44cb98ec51c355865180860188528181528084018a81528189018681526069855288865291517fb9048c25203738e40c431d6c21774300f680891df5e27e84b9a9d09b2e789b1d55517fb9048c25203738e40c431d6c21774300f680891df5e27e84b9a9d09b2e789b1e55517fb9048c25203738e40c431d6c21774300f680891df5e27e84b9a9d09b2e789b1f5586518086018852908152808301898152818801858152606a845287855291517fdf4b9723903dda41ca812aacebaa20e352f39b83b5e78e4df91d889f765ff0da55517fdf4b9723903dda41ca812aacebaa20e352f39b83b5e78e4df91d889f765ff0db55517fdf4b9723903dda41ca812aacebaa20e352f39b83b5e78e4df91d889f765ff0dc55855180850187526003808252818401898152828901868152606b90945296845290517f1a784a6e8c013524695e2dbcfb92ea4dcfae971b5a422d78bc3207bbdfd573925594517f1a784a6e8c013524695e2dbcfb92ea4dcfae971b5a422d78bc3207bbdfd5739355517f1a784a6e8c013524695e2dbcfb92ea4dcfae971b5a422d78bc3207bbdfd57394558451928301909452918152918201906200069f908490620017c0565b815260016020918201819052606c6000908152601080845284517f543188908ede30152fd6ce4b1301b63516caeacac07a76a068f870d82643439455848401517f543188908ede30152fd6ce4b1301b63516caeacac07a76a068f870d826434395556040948501517f543188908ede30152fd6ce4b1301b63516caeacac07a76a068f870d826434396558451606080820187528482528186018a8152600283890181815260c9875285895293517fb36425e8ae0ba8b162ebeabfcbf4b7c211432fbb587906897091c7803a88a9965590517fb36425e8ae0ba8b162ebeabfcbf4b7c211432fbb587906897091c7803a88a9975591517fb36425e8ae0ba8b162ebeabfcbf4b7c211432fbb587906897091c7803a88a99855865180820188528581528087018b815281890184815260ca875285895291517fa5175b98401e98471f50f13b79c3158b88cc76d6148740442f8b4a3915b680d455517fa5175b98401e98471f50f13b79c3158b88cc76d6148740442f8b4a3915b680d555517fa5175b98401e98471f50f13b79c3158b88cc76d6148740442f8b4a3915b680d655865180820188528581528087018b815281890184815260cb875285895291517f123aaad663d62427dc7ab3e1d368e9d8599eea44dfaf17b65ed119a3b87c726855517f123aaad663d62427dc7ab3e1d368e9d8599eea44dfaf17b65ed119a3b87c726955517f123aaad663d62427dc7ab3e1d368e9d8599eea44dfaf17b65ed119a3b87c726a55865180820188528281528087018a815281890184815260cc875285895291517f4a84e98941d1b79c15450d58ed22fe417fda6dea62b3ec37c17c76acbefbfbf155517f4a84e98941d1b79c15450d58ed22fe417fda6dea62b3ec37c17c76acbefbfbf255517f4a84e98941d1b79c15450d58ed22fe417fda6dea62b3ec37c17c76acbefbfbf355865180820188528281528087018a815281890184815260cd875285895291517fa1bf85a4b2c6f4b16ffd1b417e626351103623c2700395233eb8a7c62d5aa67f55517fa1bf85a4b2c6f4b16ffd1b417e626351103623c2700395233eb8a7c62d5aa68055517fa1bf85a4b2c6f4b16ffd1b417e626351103623c2700395233eb8a7c62d5aa68155865180820188528281528087018a815281890184815260ce875285895291517ffa433f4ca75efcba59d4b6b2b81ee5d195650bf58658ba51b4a322c2c96857c455517ffa433f4ca75efcba59d4b6b2b81ee5d195650bf58658ba51b4a322c2c96857c555517ffa433f4ca75efcba59d4b6b2b81ee5d195650bf58658ba51b4a322c2c96857c6558651808201885260038082528188018a8152828a0194855260cf909652938752517f30d41d5cfba3713ac021ffcb882e9314e37709d0fb8b1693941f696657d45bcc5592517f30d41d5cfba3713ac021ffcb882e9314e37709d0fb8b1693941f696657d45bcd55517f30d41d5cfba3713ac021ffcb882e9314e37709d0fb8b1693941f696657d45bce5584519182019094529283529082019062000aff908490620017c0565b81526002602091820181905260d06000908152601080845284517f97608616dfabcdf53aab88a5b9ef3d0509b1d7ba8ceab7c32464c873c0fc34f855848401517f97608616dfabcdf53aab88a5b9ef3d0509b1d7ba8ceab7c32464c873c0fc34f9556040948501517f97608616dfabcdf53aab88a5b9ef3d0509b1d7ba8ceab7c32464c873c0fc34fa5584516060808201875260018083528287018b81526003848a0181815261012d8852868a5294517fdfab78438e1179b29f047a447dce1145d9cd547652fe9ee8c7ac7009d38c8a415590517fdfab78438e1179b29f047a447dce1145d9cd547652fe9ee8c7ac7009d38c8a425592517fdfab78438e1179b29f047a447dce1145d9cd547652fe9ee8c7ac7009d38c8a4355875180830189528181528088018c8152818a0185815261012e8852868a5291517fc38de35b805339958fc3f48774b35ebb897d0cbf9c100234c12796058299856255517fc38de35b805339958fc3f48774b35ebb897d0cbf9c100234c12796058299856355517fc38de35b805339958fc3f48774b35ebb897d0cbf9c100234c12796058299856455875180830189528181528088018c8152818a0185815261012f8852868a5291517ff199e511ef2f0a846b9a61283ffbb18f5acb8293bec07100d2ea94959a34a6b755517ff199e511ef2f0a846b9a61283ffbb18f5acb8293bec07100d2ea94959a34a6b855517ff199e511ef2f0a846b9a61283ffbb18f5acb8293bec07100d2ea94959a34a6b955875180830189528681528088018b8152818a018581526101308852868a5291517ff957f281abd7edb5da3136e7ae4667e050e86458ff3155a2d100d1053462f94155517ff957f281abd7edb5da3136e7ae4667e050e86458ff3155a2d100d1053462f94255517ff957f281abd7edb5da3136e7ae4667e050e86458ff3155a2d100d1053462f94355875180830189528681528088018b8152818a018581526101318852868a5291517f0aa146b6dd8969fe8add6714ec435b59b3caaf6c8041398ed7b845b7d0ff704a55517f0aa146b6dd8969fe8add6714ec435b59b3caaf6c8041398ed7b845b7d0ff704b55517f0aa146b6dd8969fe8add6714ec435b59b3caaf6c8041398ed7b845b7d0ff704c55875180830189529586528587018a8152868901848152610132875285895296517f1967a3b32e2e0f6ba9abf549457208c47f872a0a91a4955751a9bbea419cfbdd55517f1967a3b32e2e0f6ba9abf549457208c47f872a0a91a4955751a9bbea419cfbde5594517f1967a3b32e2e0f6ba9abf549457208c47f872a0a91a4955751a9bbea419cfbdf5586518082018852828152808701898152818901848152610133909652938752517f680183ff3e67593eff71e1733c018b9266887faae2cb1a4e6229f8f3ee0f34425591517f680183ff3e67593eff71e1733c018b9266887faae2cb1a4e6229f8f3ee0f34435591517f680183ff3e67593eff71e1733c018b9266887faae2cb1a4e6229f8f3ee0f344455845190810190945283529082019062000f67908490620017c0565b8152600360209182018190526101346000908152601080845284517f06c6da12756c93478160bcd9069c5ce5d1344c1a311f51b05533bb570baeaf0055848401517f06c6da12756c93478160bcd9069c5ce5d1344c1a311f51b05533bb570baeaf01556040948501517f06c6da12756c93478160bcd9069c5ce5d1344c1a311f51b05533bb570baeaf025584516060808201875260018083528287018b81526004848a018181526101918852868a5294517f830424d92ff1d6446d99c621e5f29157500dccb4fc3bfc150c9793e34b9408785590517f830424d92ff1d6446d99c621e5f29157500dccb4fc3bfc150c9793e34b9408795592517f830424d92ff1d6446d99c621e5f29157500dccb4fc3bfc150c9793e34b94087a55875180830189528181528088018c8152818a018581526101928852868a5291517f6ba3df59f4bdd56142d18c937413de763f8c7f4cfdfb4b68202b8042e643c06255517f6ba3df59f4bdd56142d18c937413de763f8c7f4cfdfb4b68202b8042e643c06355517f6ba3df59f4bdd56142d18c937413de763f8c7f4cfdfb4b68202b8042e643c06455875180830189528181528088018c8152818a018581526101938852868a5291517f06f0c301a1f33432b022db8c7503c6bc610687661eaae05fd5d26f06ca16f1b655517f06f0c301a1f33432b022db8c7503c6bc610687661eaae05fd5d26f06ca16f1b755517f06f0c301a1f33432b022db8c7503c6bc610687661eaae05fd5d26f06ca16f1b8558751808301895260028082528189018c8152828b018681526101948952878b5292517f975cee7197e29ea4abb0be943b41dd849042696b7b009db427d580ecd49ce2c155517f975cee7197e29ea4abb0be943b41dd849042696b7b009db427d580ecd49ce2c25590517f975cee7197e29ea4abb0be943b41dd849042696b7b009db427d580ecd49ce2c35588518084018a528181528089018c8152818b018681526101958952878b5291517f9868c2c6b8eaf534948a2e2a2f3b228901a44cb34bacb0ad4ac0cec9a160dfd755517f9868c2c6b8eaf534948a2e2a2f3b228901a44cb34bacb0ad4ac0cec9a160dfd855517f9868c2c6b8eaf534948a2e2a2f3b228901a44cb34bacb0ad4ac0cec9a160dfd95588518084018a529081528088018b8152818a018581526101968852868a5291517f43e488fbf581066d824f617013c6602122c57e0302e7456b5c4687d0deede0eb55517f43e488fbf581066d824f617013c6602122c57e0302e7456b5c4687d0deede0ec55517f43e488fbf581066d824f617013c6602122c57e0302e7456b5c4687d0deede0ed55875180830189528681528088018a8152818a0194855261019790965293875292517fd0e7841f88bf8467716eb6f758232ef9cea9d1641b16b0707ed06569fb0c61335592517fd0e7841f88bf8467716eb6f758232ef9cea9d1641b16b0707ed06569fb0c613455517fd0e7841f88bf8467716eb6f758232ef9cea9d1641b16b0707ed06569fb0c61355584519182019094529081529190820190620013d4908490620017c0565b815260046020918201526101986000526010815281517f0c242016704379953bfba115afc254edb4a4f0cc63567bcf496b5327dea6afdb558101517f0c242016704379953bfba115afc254edb4a4f0cc63567bcf496b5327dea6afdc55604001517f0c242016704379953bfba115afc254edb4a4f0cc63567bcf496b5327dea6afdd5562001464816001620017c0565b62001471906004620017db565b6200147e826004620017db565b6200148b84600c620017db565b6200149886600c620017db565b620014a49190620017c0565b620014b09190620017c0565b620014bc9190620017c0565b600c81905550620014d9600b6200154160201b620018b91760201c565b50505050505050505050505062001844565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b82805482825590600052602060002090810192821562001588579160200282015b82811115620015885782518255916020019190600101906200156b565b506200159692915062001616565b5090565b828054620015a89062001813565b90600052602060002090601f016020900481019282620015cc576000855562001588565b82601f10620015e757805160ff191683800117855562001588565b82800160010185558215620015885791820182811115620015885782518255916020019190600101906200156b565b5b8082111562001596576000815560010162001617565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156200166b576200166b6200162d565b6040525050565b60006200167e60405190565b90506200168c828262001643565b919050565b60006001600160401b03821115620016ad57620016ad6200162d565b601f19601f83011660200192915050565b60005b83811015620016db578181015183820152602001620016c1565b83811115620016eb576000848401525b50505050565b600062001708620017028462001691565b62001672565b905082815260208101848484011115620017255762001725600080fd5b62001732848285620016be565b509392505050565b600082601f830112620017505762001750600080fd5b815162001762848260208601620016f1565b949350505050565b600060208284031215620017815762001781600080fd5b81516001600160401b038111156200179c576200179c600080fd5b62001762848285016200173a565b634e487b7160e01b600052601160045260246000fd5b60008219821115620017d657620017d6620017aa565b500190565b6000816000190483118215151615620017f857620017f8620017aa565b500290565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200182857607f821691505b602082108114156200183e576200183e620017fd565b50919050565b613b9d80620018546000396000f3fe6080604052600436106104315760003560e01c8063715018a611610229578063c87b56dd1161012e578063df0609c3116100b6578063f0058b591161007a578063f0058b5914610b9e578063f2aa636514610bb3578063f2fde38b14610bc9578063f327822f14610be9578063f4a0a52814610bff57600080fd5b8063df0609c314610af5578063e3b7b07914610b0b578063e4f534d014610b20578063e6f76aa514610b40578063e985e9c514610b5557600080fd5b8063d1d834bd116100fd578063d1d834bd14610a8a578063d83e6ff214610aa0578063db68826f14610ab5578063dc40e74a14610aca578063dd97583a14610adf57600080fd5b8063c87b56dd14610a2a578063caecb71e14610a4a578063ceed2ed614610a5f578063d106df4f14610a7457600080fd5b806395d89b41116101b1578063a453b24c11610180578063a453b24c146109ab578063b5574a21146109c0578063b88d4fde146109d5578063baacf101146109f5578063c32a50f914610a0a57600080fd5b806395d89b411461094b5780639b2d49eb14610960578063a22cb46514610975578063a34d13b41461099557600080fd5b8063803c1f72116101f8578063803c1f72146108c25780638096c464146108e25780638495c746146108f75780638da5cb5b1461090d57806393f3e3e51461092b57600080fd5b8063715018a61461086e5780637152c9c3146108835780637895431d1461089857806379be168e146108ad57600080fd5b80633ccfd60b1161033a57806355f804b3116102c25780636817c76c116102865780636817c76c146107f757806369a170b21461080d5780636c0360eb146108235780636e68fd821461083857806370a082311461084e57600080fd5b806355f804b3146107525780635ad5302d146107725780636248b1bf146107a15780636352211e146107b757806367e19662146107d757600080fd5b806342842e0e1161030957806342842e0e146106d057806346f1d742146106f05780634ae379c8146107065780634f6ccce71461071c578063506f8c231461073c57600080fd5b80633ccfd60b146106685780633cff5ee71461067057806340c10f191461069057806341429cd4146106b057600080fd5b806317497b70116103bd57806323b872dd1161038c57806323b872dd146105e75780632a942db7146106075780632b50ac7b1461061d5780632f745c5914610633578063373d3bf71461065357600080fd5b806317497b701461059157806318160ddd146105a657806319d5240b146105bb57806320d9b340146105d157600080fd5b8063095ea7b311610404578063095ea7b3146104dd5780630e1af57b146104ff57806310c94a651461052f578063114b552a1461054f578063150b7a021461056457600080fd5b806301ffc9a714610436578063060cf1711461046c57806306fdde031461048e578063081812fc146104b0575b600080fd5b34801561044257600080fd5b506104566104513660046128e6565b610c1f565b6040516104639190612911565b60405180910390f35b34801561047857600080fd5b5061048160cf81565b6040516104639190612925565b34801561049a57600080fd5b506104a3610c4a565b6040516104639190612991565b3480156104bc57600080fd5b506104d06104cb3660046129b3565b610cdc565b60405161046391906129ee565b3480156104e957600080fd5b506104fd6104f8366004612a10565b610d03565b005b34801561050b57600080fd5b5061048161051a3660046129b3565b60009081526011602052604090206004015490565b34801561053b57600080fd5b506104fd61054a366004612a10565b610d92565b34801561055b57600080fd5b50610481600281565b34801561057057600080fd5b5061058461057f366004612b43565b610db1565b6040516104639190612bd2565b34801561059d57600080fd5b50610481606981565b3480156105b257600080fd5b50600954610481565b3480156105c757600080fd5b5061048161019281565b3480156105dd57600080fd5b5061048161012f81565b3480156105f357600080fd5b506104fd610602366004612be0565b610dc2565b34801561061357600080fd5b50610481600d5481565b34801561062957600080fd5b5061048161019381565b34801561063f57600080fd5b5061048161064e366004612a10565b610df3565b34801561065f57600080fd5b50610481600381565b6104fd610e45565b34801561067c57600080fd5b506104fd61068b366004612c30565b610eb9565b34801561069c57600080fd5b506104816106ab366004612a10565b610f09565b3480156106bc57600080fd5b506104fd6106cb366004612c30565b610fa8565b3480156106dc57600080fd5b506104fd6106eb366004612be0565b610fd2565b3480156106fc57600080fd5b5061048161019181565b34801561071257600080fd5b5061048161012e81565b34801561072857600080fd5b506104816107373660046129b3565b610fed565b34801561074857600080fd5b50610481600c5481565b34801561075e57600080fd5b506104fd61076d366004612ca3565b61103b565b34801561077e57600080fd5b5061079261078d3660046129b3565b61104f565b60405161046393929190612d33565b3480156107ad57600080fd5b5061048161013381565b3480156107c357600080fd5b506104d06107d23660046129b3565b6110f6565b3480156107e357600080fd5b506104fd6107f2366004612d5b565b61112b565b34801561080357600080fd5b5061048160135481565b34801561081957600080fd5b5061048161019581565b34801561082f57600080fd5b506104a36115c1565b34801561084457600080fd5b5061048161019681565b34801561085a57600080fd5b50610481610869366004612c30565b61164f565b34801561087a57600080fd5b506104fd611693565b34801561088f57600080fd5b50610481600481565b3480156108a457600080fd5b50610481606781565b3480156108b957600080fd5b5061048160d081565b3480156108ce57600080fd5b506104fd6108dd366004612d90565b6116a7565b3480156108ee57600080fd5b5061048160ce81565b34801561090357600080fd5b5061048161013181565b34801561091957600080fd5b506006546001600160a01b03166104d0565b34801561093757600080fd5b506104fd610946366004612a10565b6116c1565b34801561095757600080fd5b506104a3611726565b34801561096c57600080fd5b50610481606b81565b34801561098157600080fd5b506104fd610990366004612dc5565b611735565b3480156109a157600080fd5b5061048161019481565b3480156109b757600080fd5b5061048160c981565b3480156109cc57600080fd5b5061048160cc81565b3480156109e157600080fd5b506104fd6109f0366004612b43565b611740565b348015610a0157600080fd5b5061048160cb81565b348015610a1657600080fd5b506104fd610a253660046129b3565b611778565b348015610a3657600080fd5b506104a3610a453660046129b3565b611785565b348015610a5657600080fd5b50610481606c81565b348015610a6b57600080fd5b5061048160ca81565b348015610a8057600080fd5b5061048161013281565b348015610a9657600080fd5b5061048161019881565b348015610aac57600080fd5b50610481606681565b348015610ac157600080fd5b50610481606881565b348015610ad657600080fd5b50610481600181565b348015610aeb57600080fd5b5061048161012d81565b348015610b0157600080fd5b5061048161013081565b348015610b1757600080fd5b50610481606581565b348015610b2c57600080fd5b50610481610b3b366004612a10565b6117ec565b348015610b4c57600080fd5b5061048160cd81565b348015610b6157600080fd5b50610456610b70366004612df8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610baa57600080fd5b50610481606a81565b348015610bbf57600080fd5b5061048161013481565b348015610bd557600080fd5b506104fd610be4366004612c30565b611875565b348015610bf557600080fd5b5061048161019781565b348015610c0b57600080fd5b506104fd610c1a3660046129b3565b6118ac565b60006001600160e01b0319821663780e9d6360e01b1480610c445750610c44826118c2565b92915050565b606060008054610c5990612e41565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8590612e41565b8015610cd25780601f10610ca757610100808354040283529160200191610cd2565b820191906000526020600020905b815481529060010190602001808311610cb557829003601f168201915b5050505050905090565b6000610ce782611912565b506000908152600460205260409020546001600160a01b031690565b6000610d0e826110f6565b9050806001600160a01b0316836001600160a01b03161415610d4b5760405162461bcd60e51b8152600401610d4290612eaf565b60405180910390fd5b336001600160a01b0382161480610d675750610d678133610b70565b610d835760405162461bcd60e51b8152600401610d4290612f19565b610d8d8383611946565b505050565b610d9a6119b4565b610dad82610da7836119de565b83611a7d565b5050565b630a85bd0160e11b5b949350505050565b610dcc3382611c47565b610de85760405162461bcd60e51b8152600401610d4290612f74565b610d8d838383611d10565b6000610dfe8361164f565b8210610e1c5760405162461bcd60e51b8152600401610d4290612fcc565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610e4d6119b4565b6000336001600160a01b031647604051610e6690612fdf565b60006040518083038185875af1925050503d8060008114610ea3576040519150601f19603f3d011682016040523d82523d6000602084013e610ea8565b606091505b5050905080610eb657600080fd5b50565b610ec16119b4565b6001600160a01b038116610ee75760405162461bcd60e51b8152600401610d429061300a565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6014546000906001600160a01b03163314610f365760405162461bcd60e51b8152600401610d4290613068565b601a8210610f565760405162461bcd60e51b8152600401610d42906130a5565b60005b82811015610f9e57600080610f7a83601254610f7591906130cb565b611e3d565b91509150610f89868383611a7d565b50508080610f96906130e3565b915050610f59565b5060649392505050565b610fb06119b4565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b610d8d83838360405180602001604052806000815250611740565b6000610ff860095490565b82106110165760405162461bcd60e51b8152600401610d4290613147565b6009828154811061102957611029613157565b90600052602060002001549050919050565b6110436119b4565b610d8d600f838361280d565b611057612891565b6000828152601160209081526040808320815160a081018352815481526001820154818501908152600283015482850190815260038401546060808501918252600490950154608080860191825287519081018852855181529351978401979097529051948201949094529251918301919091529151839291908190306110dd896110f6565b6001600160a01b03161494509450945050509193909250565b6000818152600260205260408120546001600160a01b031680610c445760405162461bcd60e51b8152600401610d42906131a1565b33611135836110f6565b6001600160a01b03161461115b5760405162461bcd60e51b8152600401610d42906131f0565b8215808061117957503361116e856110f6565b6001600160a01b0316145b6111955760405162461bcd60e51b8152600401610d4290613232565b60006111a0836119de565b600084815260106020526040902054909150806111cf5760405162461bcd60e51b8152600401610d4290613266565b6000868152601160209081526040808320888452818420825160a08082018552835480835260018086015484890152600280870154858901526003808801546060808801919091526004808a01546080808a01919091528b519788018c5289548852948901549b87019b909b529187015498850198909852968501549683019690965295830154948101949094529194909391929115611277578061127381613276565b9150505b60018501541561128f578061128b81613276565b9150505b6002850154156112a757806112a381613276565b9150505b6003850154156112bf57806112bb81613276565b9150505b60018714156113255783546018908a146112ec5760405162461bcd60e51b8152600401610d429190613305565b5087806112f857508454155b6017906113185760405162461bcd60e51b8152600401610d429190613305565b508883526000825261147a565b600287141561139857888460010154146018906113555760405162461bcd60e51b8152600401610d429190613305565b50878061136457506001850154155b6017906113845760405162461bcd60e51b8152600401610d429190613305565b5060208084018a905260009083015261147a565b600387141561140b57888460020154146018906113c85760405162461bcd60e51b8152600401610d429190613305565b5087806113d757506002850154155b6017906113f75760405162461bcd60e51b8152600401610d429190613305565b5060408084018a905260009083015261147a565b600487141561147a578884600301541460189061143b5760405162461bcd60e51b8152600401610d429190613305565b50878061144a57506003850154155b60179061146a5760405162461bcd60e51b8152600401610d429190613305565b5060608084018a90526000908301525b858360800181815161148c91906130cb565b90525081511515806114a15750602082015115155b806114af5750604082015115155b806114bd5750606082015115155b156115005785826080018181516114d49190613316565b90525060006114e2600b5490565b90506114f2600b80546001019055565b6114fe33828d86611f0e565b505b600061150b600b5490565b905061151b600b80546001019055565b61152733828e87611f0e565b88611535576115358c611fa4565b61153e8b611fa4565b6000828152601560205260409081902054600e549151632770a7eb60e21b815290916001600160a01b031690639dc29fac90611580903390859060040161332d565b600060405180830381600087803b15801561159a57600080fd5b505af11580156115ae573d6000803e3d6000fd5b5050505050505050505050505050505050565b600f80546115ce90612e41565b80601f01602080910402602001604051908101604052809291908181526020018280546115fa90612e41565b80156116475780601f1061161c57610100808354040283529160200191611647565b820191906000526020600020905b81548152906001019060200180831161162a57829003601f168201915b505050505081565b60006001600160a01b0382166116775760405162461bcd60e51b8152600401610d429061338e565b506001600160a01b031660009081526003602052604090205490565b61169b6119b4565b6116a56000611fd9565b565b6116af6119b4565b60009182526015602052604090912055565b6014546001600160a01b031633146116eb5760405162461bcd60e51b8152600401610d42906133ec565b306116f5826110f6565b6001600160a01b03161461171b5760405162461bcd60e51b8152600401610d4290613430565b610dad308383610fd2565b606060018054610c5990612e41565b610dad33838361202b565b61174a3383611c47565b6117665760405162461bcd60e51b8152600401610d4290612f74565b611772848484846120ce565b50505050565b6117806119b4565b601255565b606061179082611912565b600061179a612101565b905060008151116117ba57604051806020016040528060008152506117e5565b806117c484612110565b6040516020016117d5929190613462565b6040516020818303038152906040525b9392505050565b6014546000906001600160a01b031633146118195760405162461bcd60e51b8152600401610d42906133ec565b826001600160a01b031661182c836110f6565b6001600160a01b0316146118525760405162461bcd60e51b8152600401610d42906134b8565b61185d833084610fd2565b50600090815260116020526040902060040154919050565b61187d6119b4565b6001600160a01b0381166118a35760405162461bcd60e51b8152600401610d429061350b565b610eb681611fd9565b6118b46119b4565b601355565b80546001019055565b60006001600160e01b031982166380ac58cd60e01b14806118f357506001600160e01b03198216635b5e139f60e01b145b80610c4457506301ffc9a760e01b6001600160e01b0319831614610c44565b6000818152600260205260409020546001600160a01b0316610eb65760405162461bcd60e51b8152600401610d42906131a1565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061197b826110f6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b031633146116a55760405162461bcd60e51b8152600401610d429061354d565b6000606582101580156119f25750606c8211155b156119ff57506001919050565b60c98210158015611a11575060d08211155b15611a1e57506002919050565b61012d8210158015611a3257506101348211155b15611a3f57506003919050565b6101918210158015611a5357506101988211155b15611a6057506004919050565b60405162461bcd60e51b8152600401610d42906135a0565b919050565b60008181526010602052604081205490611a96600b5490565b9050611aa2858261220e565b6001841415611af557600081815260116020526040808220859055600d549051600080516020613b4883398151915292611ae892859287918991849182918291906135c5565b60405180910390a1611be8565b6002841415611b3e57600081815260116020526040808220600101859055600d549051600080516020613b4883398151915292611ae8928592879183918a91839182919061363c565b6003841415611b8757600081815260116020526040808220600201859055600d549051600080516020613b4883398151915292611ae89285928791839182918b9183919061367f565b6004841415611bd057600081815260116020526040808220600301859055600d549051600080516020613b4883398151915292611ae892859287918391829182918c91906136cf565b60405162461bcd60e51b8152600401610d4290613758565b600081815260116020908152604080832060040185905585835260109091528120600101805491611c1883613768565b9091555050600c8054906000611c2d83613768565b9190505550611c40600b80546001019055565b5050505050565b6000818152600260205260408120546001600160a01b0316611c7b5760405162461bcd60e51b8152600401610d42906137c8565b6000611c86836110f6565b9050806001600160a01b0316846001600160a01b03161480611cc15750836001600160a01b0316611cb684610cdc565b6001600160a01b0316145b80611cf157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610dba57506014546001600160a01b03858116911614949350505050565b826001600160a01b0316611d23826110f6565b6001600160a01b031614611d495760405162461bcd60e51b8152600401610d429061381a565b6001600160a01b038216611d6f5760405162461bcd60e51b8152600401610d429061386b565b611d7a8383836122fc565b611d85600082611946565b6001600160a01b0383166000908152600360205260408120805460019290611dae908490613316565b90915550506001600160a01b0382166000908152600360205260408120805460019290611ddc9084906130cb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806000600c54611e4f33866123b4565b611e599190613891565b90506000805b601654811015611ef557600060168281548110611e7e57611e7e613157565b60009182526020808320909101548083526010909152604090912060010154909150838510801590611eb85750611eb581856130cb565b85105b15611ed457611ec6826119de565b989197509095505050505050565b611ede81856130cb565b935050508080611eed906130e3565b915050611e5f565b5060405162461bcd60e51b8152600401610d42906138d2565b611f18848461248e565b600080516020613b48833981519152838383608001518460000151856020015186604001518760600151600d54604051611f599897969594939291906138e2565b60405180910390a16000928352601160209081526040938490208251815590820151600182015592810151600284015560608101516003840155608001516004909201919091555050565b611fad816124a8565b600090815260116020526040812081815560018101829055600281018290556003810182905560040155565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561205d5760405162461bcd60e51b8152600401610d4290613966565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906120c1908590612911565b60405180910390a3505050565b6120d9848484611d10565b6120e58484848461254f565b6117725760405162461bcd60e51b8152600401610d42906139c5565b6060600f8054610c5990612e41565b6060816121345750506040805180820190915260018152600360fc1b602082015290565b8160005b811561215e5780612148816130e3565b91506121579050600a836139d5565b9150612138565b60008167ffffffffffffffff81111561217957612179612a4d565b6040519080825280601f01601f1916602001820160405280156121a3576020820181803683370190505b5090505b8415610dba576121b8600183613316565b91506121c5600a86613891565b6121d09060306130cb565b60f81b8183815181106121e5576121e5613157565b60200101906001600160f81b031916908160001a905350612207600a866139d5565b94506121a7565b6001600160a01b0382166122345760405162461bcd60e51b8152600401610d4290613a1b565b6000818152600260205260409020546001600160a01b0316156122695760405162461bcd60e51b8152600401610d4290613a5f565b612275600083836122fc565b6001600160a01b038216600090815260036020526040812080546001929061229e9084906130cb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166123575761235281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61237a565b816001600160a01b0316836001600160a01b03161461237a5761237a838261264a565b6001600160a01b03821661239157610d8d816126e7565b826001600160a01b0316826001600160a01b031614610d8d57610d8d8282612796565b600042836040516020016123c89190613a97565b6040516020818303038152906040528051906020012060001c6123eb91906139d5565b42416040516020016123fd9190613a97565b6040516020818303038152906040528051906020012060001c61242091906139d5565b83434561242d44426130cb565b61243791906130cb565b61244191906130cb565b61244b91906130cb565b61245591906130cb565b61245f91906130cb565b60405160200161246f9190613aac565b60408051601f1981840301815291905280516020909101209392505050565b610dad8282604051806020016040528060008152506127da565b60006124b3826110f6565b90506124c1816000846122fc565b6124cc600083611946565b6001600160a01b03811660009081526003602052604081208054600192906124f5908490613316565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b1561264257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612593903390899088908890600401613ac1565b6020604051808303816000875af19250505080156125ce575060408051601f3d908101601f191682019092526125cb91810190613b10565b60015b612628573d8080156125fc576040519150601f19603f3d011682016040523d82523d6000602084013e612601565b606091505b5080516126205760405162461bcd60e51b8152600401610d42906139c5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610dba565b506001610dba565b600060016126578461164f565b6126619190613316565b6000838152600860205260409020549091508082146126b4576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906126f990600190613316565b6000838152600a60205260408120546009805493945090928490811061272157612721613157565b90600052602060002001549050806009838154811061274257612742613157565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061277a5761277a613b31565b6001900381819060005260206000200160009055905550505050565b60006127a18361164f565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6127e4838361220e565b6127f1600084848461254f565b610d8d5760405162461bcd60e51b8152600401610d42906139c5565b82805461281990612e41565b90600052602060002090601f01602090048101928261283b5760008555612881565b82601f106128545782800160ff19823516178555612881565b82800160010185558215612881579182015b82811115612881578235825591602001919060010190612866565b5061288d9291506128af565b5090565b60405180608001604052806004906020820280368337509192915050565b5b8082111561288d57600081556001016128b0565b6001600160e01b031981165b8114610eb657600080fd5b8035610c44816128c4565b6000602082840312156128fb576128fb600080fd5b6000610dba84846128db565b8015155b82525050565b60208101610c448284612907565b8061290b565b60208101610c44828461291f565b60005b8381101561294e578181015183820152602001612936565b838111156117725750506000910152565b6000612969825190565b808452602084019350612980818560208601612933565b601f01601f19169290920192915050565b602080825281016117e5818461295f565b806128d0565b8035610c44816129a2565b6000602082840312156129c8576129c8600080fd5b6000610dba84846129a8565b60006001600160a01b038216610c44565b61290b816129d4565b60208101610c4482846129e5565b6128d0816129d4565b8035610c44816129fc565b60008060408385031215612a2657612a26600080fd5b6000612a328585612a05565b9250506020612a43858286016129a8565b9150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612a8957612a89612a4d565b6040525050565b6000612a9b60405190565b9050611a788282612a63565b600067ffffffffffffffff821115612ac157612ac1612a4d565b601f19601f83011660200192915050565b82818337506000910152565b6000612af1612aec84612aa7565b612a90565b905082815260208101848484011115612b0c57612b0c600080fd5b612b17848285612ad2565b509392505050565b600082601f830112612b3357612b33600080fd5b8135610dba848260208601612ade565b60008060008060808587031215612b5c57612b5c600080fd5b6000612b688787612a05565b9450506020612b7987828801612a05565b9350506040612b8a878288016129a8565b925050606085013567ffffffffffffffff811115612baa57612baa600080fd5b612bb687828801612b1f565b91505092959194509250565b6001600160e01b0319811661290b565b60208101610c448284612bc2565b600080600060608486031215612bf857612bf8600080fd5b6000612c048686612a05565b9350506020612c1586828701612a05565b9250506040612c26868287016129a8565b9150509250925092565b600060208284031215612c4557612c45600080fd5b6000610dba8484612a05565b60008083601f840112612c6657612c66600080fd5b50813567ffffffffffffffff811115612c8157612c81600080fd5b602083019150836001820283011115612c9c57612c9c600080fd5b9250929050565b60008060208385031215612cb957612cb9600080fd5b823567ffffffffffffffff811115612cd357612cd3600080fd5b612cdf85828601612c51565b92509250509250929050565b6000612cf7838361291f565b505060200190565b6004818060005b83811015612d2b578151612d1a8782612ceb565b965060208301925050600101612d06565b505050505050565b60c08101612d418286612cff565b612d4e608083018561291f565b610dba60a0830184612907565b600080600060608486031215612d7357612d73600080fd5b6000612d7f86866129a8565b9350506020612c15868287016129a8565b60008060408385031215612da657612da6600080fd5b6000612a3285856129a8565b8015156128d0565b8035610c4481612db2565b60008060408385031215612ddb57612ddb600080fd5b6000612de78585612a05565b9250506020612a4385828601612dba565b60008060408385031215612e0e57612e0e600080fd5b6000612e1a8585612a05565b9250506020612a4385828601612a05565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612e5557607f821691505b60208210811415612e6857612e68612e2b565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291505b5060400190565b60208082528101610c4481612e6e565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060208201529150612ea8565b60208082528101610c4481612ebf565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b60208201529150612ea8565b60208082528101610c4481612f29565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b60208201529150612ea8565b60208082528101610c4481612f84565b90565b600081610c44565b6009815260006020820168373ab6361030b2323960b91b815291505b5060200190565b60208082528101610c4481612fe7565b603181526000602082017f636f6d706f6e656e74206d696e7473206d75737420636f6d652066726f6d20628152701bdbdb481c9bdbdb4818dbdb9d1c9858dd607a1b60208201529150612ea8565b60208082528101610c448161301a565b60168152600060208201756d757374206d696e7420323520617420612074696d6560501b81529150613003565b60208082528101610c4481613078565b634e487b7160e01b600052601160045260246000fd5b600082198211156130de576130de6130b5565b500190565b60006000198214156130f7576130f76130b5565b5060010190565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b60208201529150612ea8565b60208082528101610c44816130fe565b634e487b7160e01b600052603260045260246000fd5b601881526000602082017f4552433732313a20696e76616c696420746f6b656e204944000000000000000081529150613003565b60208082528101610c448161316d565b602281526000602082017f63616c6c657220646f6573206e6f74206f776e2066726f6d20636f6d706f6e658152611b9d60f21b60208201529150612ea8565b60208082528101610c44816131b1565b60208082527f63616c6c657220646f6573206e6f74206f776e20746f20636f6d706f6e656e7491019081526000613003565b60208082528101610c4481613200565b600d81526000602082016c1a5b9d985b1a59081d1c985a5d609a1b81529150613003565b60208082528101610c4481613242565b60006001600160ff1b038214156130f7576130f76130b5565b6000815461329c81612e41565b8085526020850194506001821680156132bc57600181146132ce576132fc565b60ff19831686526020860193506132fc565b60008581526020902060005b838110156132f6578154888201526001909101906020016132da565b87019450505b50505092915050565b602080825281016117e5818461328f565b600082821015613328576133286130b5565b500390565b6040810161333b82856129e5565b6117e5602083018461291f565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b60208201529150612ea8565b60208082528101610c4481613348565b603181526000602082017f6f6e6c7920626f6f6d20726f6f6d20636f6e74726163742063616e206c6f636b8152702f756e6c6f636b20636f706f6e656e747360781b60208201529150612ea8565b60208082528101610c448161339e565b601781526000602082017f636f6d706f6e656e74206973206e6f74206c6f636b656400000000000000000081529150613003565b60208082528101610c44816133fc565b600061344a825190565b613458818560208601612933565b9290920192915050565b600061346e8285613440565b9150610dba8284613440565b602181526000602082017f61646472657373206973206e6f74206f776e6572206f6620636f6d706f6e656e8152601d60fa1b60208201529150612ea8565b60208082528101610c448161347a565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612ea8565b60208082528101610c44816134c8565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613003565b60208082528101610c448161351b565b602681526000602082017f63616e6e6f74206765742074726169742074797065206f6e20696e76616c6964815265081d1c985a5d60d21b60208201529150612ea8565b60208082528101610c448161355d565b6000610c44612fdc8381565b61290b816135b0565b61010081016135d4828b61291f565b6135e1602083018a6135bc565b6135ee604083018961291f565b6135fb606083018861291f565b61360860808301876135bc565b61361560a08301866135bc565b61362260c08301856135bc565b61362f60e083018461291f565b9998505050505050505050565b610100810161364b828b61291f565b613658602083018a6135bc565b613665604083018961291f565b61367260608301886135bc565b613608608083018761291f565b610100810161368e828b61291f565b61369b602083018a6135bc565b6136a8604083018961291f565b6136b560608301886135bc565b6136c260808301876135bc565b61361560a083018661291f565b61010081016136de828b61291f565b6136eb602083018a6135bc565b6136f8604083018961291f565b61370560608301886135bc565b61371260808301876135bc565b61371f60a08301866135bc565b61362260c083018561291f565b6015815260006020820174756e6578706563746564207472616974207479706560581b81529150613003565b60208082528101610c448161372c565b600081613777576137776130b5565b506000190190565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150612ea8565b60208082528101610c448161377f565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b60208201529150612ea8565b60208082528101610c44816137d8565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150612ea8565b60208082528101610c448161382a565b634e487b7160e01b600052601260045260246000fd5b6000826138a0576138a061387b565b500690565b60168152600060208201751b9bc81d1c985a5d1cc81b19599d081d1bc81b5a5b9d60521b81529150613003565b60208082528101610c44816138a5565b61010081016138f1828b61291f565b6138fe602083018a61291f565b61390b604083018961291f565b613918606083018861291f565b613925608083018761291f565b61371f60a083018661291f565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613003565b60208082528101610c4481613932565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150612ea8565b60208082528101610c4481613976565b6000826139e4576139e461387b565b500490565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613003565b60208082528101610c44816139e9565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150613003565b60208082528101610c4481613a2b565b6000610c448260601b90565b6000610c4482613a6f565b61290b613a92826129d4565b613a7b565b6000613aa38284613a86565b50601401919050565b6000613ab8828461291f565b50602001919050565b60808101613acf82876129e5565b613adc60208301866129e5565b613ae9604083018561291f565b8181036060830152613afb818461295f565b9695505050505050565b8051610c44816128c4565b600060208284031215613b2557613b25600080fd5b6000610dba8484613b05565b634e487b7160e01b600052603160045260246000fdfe899429d6162ab2c6c964085f939dbc12a2b3f11f25082e3c719a81bdcdc7195ca2646970667358221220a69461e75c3a83748a7494c3997c920cef0e001f03785800239d266daf7b8a7f64736f6c634300080a003366726f6d20636f6d706f6e656e7420646f6573206e6f7420686176652073706563696669656420747261697463616e6e6f74206f7665727772697465207472616974202d206d757374206d6f766520697420746f20616e6f7468657220636f6d706f6e656e7400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106104315760003560e01c8063715018a611610229578063c87b56dd1161012e578063df0609c3116100b6578063f0058b591161007a578063f0058b5914610b9e578063f2aa636514610bb3578063f2fde38b14610bc9578063f327822f14610be9578063f4a0a52814610bff57600080fd5b8063df0609c314610af5578063e3b7b07914610b0b578063e4f534d014610b20578063e6f76aa514610b40578063e985e9c514610b5557600080fd5b8063d1d834bd116100fd578063d1d834bd14610a8a578063d83e6ff214610aa0578063db68826f14610ab5578063dc40e74a14610aca578063dd97583a14610adf57600080fd5b8063c87b56dd14610a2a578063caecb71e14610a4a578063ceed2ed614610a5f578063d106df4f14610a7457600080fd5b806395d89b41116101b1578063a453b24c11610180578063a453b24c146109ab578063b5574a21146109c0578063b88d4fde146109d5578063baacf101146109f5578063c32a50f914610a0a57600080fd5b806395d89b411461094b5780639b2d49eb14610960578063a22cb46514610975578063a34d13b41461099557600080fd5b8063803c1f72116101f8578063803c1f72146108c25780638096c464146108e25780638495c746146108f75780638da5cb5b1461090d57806393f3e3e51461092b57600080fd5b8063715018a61461086e5780637152c9c3146108835780637895431d1461089857806379be168e146108ad57600080fd5b80633ccfd60b1161033a57806355f804b3116102c25780636817c76c116102865780636817c76c146107f757806369a170b21461080d5780636c0360eb146108235780636e68fd821461083857806370a082311461084e57600080fd5b806355f804b3146107525780635ad5302d146107725780636248b1bf146107a15780636352211e146107b757806367e19662146107d757600080fd5b806342842e0e1161030957806342842e0e146106d057806346f1d742146106f05780634ae379c8146107065780634f6ccce71461071c578063506f8c231461073c57600080fd5b80633ccfd60b146106685780633cff5ee71461067057806340c10f191461069057806341429cd4146106b057600080fd5b806317497b70116103bd57806323b872dd1161038c57806323b872dd146105e75780632a942db7146106075780632b50ac7b1461061d5780632f745c5914610633578063373d3bf71461065357600080fd5b806317497b701461059157806318160ddd146105a657806319d5240b146105bb57806320d9b340146105d157600080fd5b8063095ea7b311610404578063095ea7b3146104dd5780630e1af57b146104ff57806310c94a651461052f578063114b552a1461054f578063150b7a021461056457600080fd5b806301ffc9a714610436578063060cf1711461046c57806306fdde031461048e578063081812fc146104b0575b600080fd5b34801561044257600080fd5b506104566104513660046128e6565b610c1f565b6040516104639190612911565b60405180910390f35b34801561047857600080fd5b5061048160cf81565b6040516104639190612925565b34801561049a57600080fd5b506104a3610c4a565b6040516104639190612991565b3480156104bc57600080fd5b506104d06104cb3660046129b3565b610cdc565b60405161046391906129ee565b3480156104e957600080fd5b506104fd6104f8366004612a10565b610d03565b005b34801561050b57600080fd5b5061048161051a3660046129b3565b60009081526011602052604090206004015490565b34801561053b57600080fd5b506104fd61054a366004612a10565b610d92565b34801561055b57600080fd5b50610481600281565b34801561057057600080fd5b5061058461057f366004612b43565b610db1565b6040516104639190612bd2565b34801561059d57600080fd5b50610481606981565b3480156105b257600080fd5b50600954610481565b3480156105c757600080fd5b5061048161019281565b3480156105dd57600080fd5b5061048161012f81565b3480156105f357600080fd5b506104fd610602366004612be0565b610dc2565b34801561061357600080fd5b50610481600d5481565b34801561062957600080fd5b5061048161019381565b34801561063f57600080fd5b5061048161064e366004612a10565b610df3565b34801561065f57600080fd5b50610481600381565b6104fd610e45565b34801561067c57600080fd5b506104fd61068b366004612c30565b610eb9565b34801561069c57600080fd5b506104816106ab366004612a10565b610f09565b3480156106bc57600080fd5b506104fd6106cb366004612c30565b610fa8565b3480156106dc57600080fd5b506104fd6106eb366004612be0565b610fd2565b3480156106fc57600080fd5b5061048161019181565b34801561071257600080fd5b5061048161012e81565b34801561072857600080fd5b506104816107373660046129b3565b610fed565b34801561074857600080fd5b50610481600c5481565b34801561075e57600080fd5b506104fd61076d366004612ca3565b61103b565b34801561077e57600080fd5b5061079261078d3660046129b3565b61104f565b60405161046393929190612d33565b3480156107ad57600080fd5b5061048161013381565b3480156107c357600080fd5b506104d06107d23660046129b3565b6110f6565b3480156107e357600080fd5b506104fd6107f2366004612d5b565b61112b565b34801561080357600080fd5b5061048160135481565b34801561081957600080fd5b5061048161019581565b34801561082f57600080fd5b506104a36115c1565b34801561084457600080fd5b5061048161019681565b34801561085a57600080fd5b50610481610869366004612c30565b61164f565b34801561087a57600080fd5b506104fd611693565b34801561088f57600080fd5b50610481600481565b3480156108a457600080fd5b50610481606781565b3480156108b957600080fd5b5061048160d081565b3480156108ce57600080fd5b506104fd6108dd366004612d90565b6116a7565b3480156108ee57600080fd5b5061048160ce81565b34801561090357600080fd5b5061048161013181565b34801561091957600080fd5b506006546001600160a01b03166104d0565b34801561093757600080fd5b506104fd610946366004612a10565b6116c1565b34801561095757600080fd5b506104a3611726565b34801561096c57600080fd5b50610481606b81565b34801561098157600080fd5b506104fd610990366004612dc5565b611735565b3480156109a157600080fd5b5061048161019481565b3480156109b757600080fd5b5061048160c981565b3480156109cc57600080fd5b5061048160cc81565b3480156109e157600080fd5b506104fd6109f0366004612b43565b611740565b348015610a0157600080fd5b5061048160cb81565b348015610a1657600080fd5b506104fd610a253660046129b3565b611778565b348015610a3657600080fd5b506104a3610a453660046129b3565b611785565b348015610a5657600080fd5b50610481606c81565b348015610a6b57600080fd5b5061048160ca81565b348015610a8057600080fd5b5061048161013281565b348015610a9657600080fd5b5061048161019881565b348015610aac57600080fd5b50610481606681565b348015610ac157600080fd5b50610481606881565b348015610ad657600080fd5b50610481600181565b348015610aeb57600080fd5b5061048161012d81565b348015610b0157600080fd5b5061048161013081565b348015610b1757600080fd5b50610481606581565b348015610b2c57600080fd5b50610481610b3b366004612a10565b6117ec565b348015610b4c57600080fd5b5061048160cd81565b348015610b6157600080fd5b50610456610b70366004612df8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610baa57600080fd5b50610481606a81565b348015610bbf57600080fd5b5061048161013481565b348015610bd557600080fd5b506104fd610be4366004612c30565b611875565b348015610bf557600080fd5b5061048161019781565b348015610c0b57600080fd5b506104fd610c1a3660046129b3565b6118ac565b60006001600160e01b0319821663780e9d6360e01b1480610c445750610c44826118c2565b92915050565b606060008054610c5990612e41565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8590612e41565b8015610cd25780601f10610ca757610100808354040283529160200191610cd2565b820191906000526020600020905b815481529060010190602001808311610cb557829003601f168201915b5050505050905090565b6000610ce782611912565b506000908152600460205260409020546001600160a01b031690565b6000610d0e826110f6565b9050806001600160a01b0316836001600160a01b03161415610d4b5760405162461bcd60e51b8152600401610d4290612eaf565b60405180910390fd5b336001600160a01b0382161480610d675750610d678133610b70565b610d835760405162461bcd60e51b8152600401610d4290612f19565b610d8d8383611946565b505050565b610d9a6119b4565b610dad82610da7836119de565b83611a7d565b5050565b630a85bd0160e11b5b949350505050565b610dcc3382611c47565b610de85760405162461bcd60e51b8152600401610d4290612f74565b610d8d838383611d10565b6000610dfe8361164f565b8210610e1c5760405162461bcd60e51b8152600401610d4290612fcc565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610e4d6119b4565b6000336001600160a01b031647604051610e6690612fdf565b60006040518083038185875af1925050503d8060008114610ea3576040519150601f19603f3d011682016040523d82523d6000602084013e610ea8565b606091505b5050905080610eb657600080fd5b50565b610ec16119b4565b6001600160a01b038116610ee75760405162461bcd60e51b8152600401610d429061300a565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6014546000906001600160a01b03163314610f365760405162461bcd60e51b8152600401610d4290613068565b601a8210610f565760405162461bcd60e51b8152600401610d42906130a5565b60005b82811015610f9e57600080610f7a83601254610f7591906130cb565b611e3d565b91509150610f89868383611a7d565b50508080610f96906130e3565b915050610f59565b5060649392505050565b610fb06119b4565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b610d8d83838360405180602001604052806000815250611740565b6000610ff860095490565b82106110165760405162461bcd60e51b8152600401610d4290613147565b6009828154811061102957611029613157565b90600052602060002001549050919050565b6110436119b4565b610d8d600f838361280d565b611057612891565b6000828152601160209081526040808320815160a081018352815481526001820154818501908152600283015482850190815260038401546060808501918252600490950154608080860191825287519081018852855181529351978401979097529051948201949094529251918301919091529151839291908190306110dd896110f6565b6001600160a01b03161494509450945050509193909250565b6000818152600260205260408120546001600160a01b031680610c445760405162461bcd60e51b8152600401610d42906131a1565b33611135836110f6565b6001600160a01b03161461115b5760405162461bcd60e51b8152600401610d42906131f0565b8215808061117957503361116e856110f6565b6001600160a01b0316145b6111955760405162461bcd60e51b8152600401610d4290613232565b60006111a0836119de565b600084815260106020526040902054909150806111cf5760405162461bcd60e51b8152600401610d4290613266565b6000868152601160209081526040808320888452818420825160a08082018552835480835260018086015484890152600280870154858901526003808801546060808801919091526004808a01546080808a01919091528b519788018c5289548852948901549b87019b909b529187015498850198909852968501549683019690965295830154948101949094529194909391929115611277578061127381613276565b9150505b60018501541561128f578061128b81613276565b9150505b6002850154156112a757806112a381613276565b9150505b6003850154156112bf57806112bb81613276565b9150505b60018714156113255783546018908a146112ec5760405162461bcd60e51b8152600401610d429190613305565b5087806112f857508454155b6017906113185760405162461bcd60e51b8152600401610d429190613305565b508883526000825261147a565b600287141561139857888460010154146018906113555760405162461bcd60e51b8152600401610d429190613305565b50878061136457506001850154155b6017906113845760405162461bcd60e51b8152600401610d429190613305565b5060208084018a905260009083015261147a565b600387141561140b57888460020154146018906113c85760405162461bcd60e51b8152600401610d429190613305565b5087806113d757506002850154155b6017906113f75760405162461bcd60e51b8152600401610d429190613305565b5060408084018a905260009083015261147a565b600487141561147a578884600301541460189061143b5760405162461bcd60e51b8152600401610d429190613305565b50878061144a57506003850154155b60179061146a5760405162461bcd60e51b8152600401610d429190613305565b5060608084018a90526000908301525b858360800181815161148c91906130cb565b90525081511515806114a15750602082015115155b806114af5750604082015115155b806114bd5750606082015115155b156115005785826080018181516114d49190613316565b90525060006114e2600b5490565b90506114f2600b80546001019055565b6114fe33828d86611f0e565b505b600061150b600b5490565b905061151b600b80546001019055565b61152733828e87611f0e565b88611535576115358c611fa4565b61153e8b611fa4565b6000828152601560205260409081902054600e549151632770a7eb60e21b815290916001600160a01b031690639dc29fac90611580903390859060040161332d565b600060405180830381600087803b15801561159a57600080fd5b505af11580156115ae573d6000803e3d6000fd5b5050505050505050505050505050505050565b600f80546115ce90612e41565b80601f01602080910402602001604051908101604052809291908181526020018280546115fa90612e41565b80156116475780601f1061161c57610100808354040283529160200191611647565b820191906000526020600020905b81548152906001019060200180831161162a57829003601f168201915b505050505081565b60006001600160a01b0382166116775760405162461bcd60e51b8152600401610d429061338e565b506001600160a01b031660009081526003602052604090205490565b61169b6119b4565b6116a56000611fd9565b565b6116af6119b4565b60009182526015602052604090912055565b6014546001600160a01b031633146116eb5760405162461bcd60e51b8152600401610d42906133ec565b306116f5826110f6565b6001600160a01b03161461171b5760405162461bcd60e51b8152600401610d4290613430565b610dad308383610fd2565b606060018054610c5990612e41565b610dad33838361202b565b61174a3383611c47565b6117665760405162461bcd60e51b8152600401610d4290612f74565b611772848484846120ce565b50505050565b6117806119b4565b601255565b606061179082611912565b600061179a612101565b905060008151116117ba57604051806020016040528060008152506117e5565b806117c484612110565b6040516020016117d5929190613462565b6040516020818303038152906040525b9392505050565b6014546000906001600160a01b031633146118195760405162461bcd60e51b8152600401610d42906133ec565b826001600160a01b031661182c836110f6565b6001600160a01b0316146118525760405162461bcd60e51b8152600401610d42906134b8565b61185d833084610fd2565b50600090815260116020526040902060040154919050565b61187d6119b4565b6001600160a01b0381166118a35760405162461bcd60e51b8152600401610d429061350b565b610eb681611fd9565b6118b46119b4565b601355565b80546001019055565b60006001600160e01b031982166380ac58cd60e01b14806118f357506001600160e01b03198216635b5e139f60e01b145b80610c4457506301ffc9a760e01b6001600160e01b0319831614610c44565b6000818152600260205260409020546001600160a01b0316610eb65760405162461bcd60e51b8152600401610d42906131a1565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061197b826110f6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b031633146116a55760405162461bcd60e51b8152600401610d429061354d565b6000606582101580156119f25750606c8211155b156119ff57506001919050565b60c98210158015611a11575060d08211155b15611a1e57506002919050565b61012d8210158015611a3257506101348211155b15611a3f57506003919050565b6101918210158015611a5357506101988211155b15611a6057506004919050565b60405162461bcd60e51b8152600401610d42906135a0565b919050565b60008181526010602052604081205490611a96600b5490565b9050611aa2858261220e565b6001841415611af557600081815260116020526040808220859055600d549051600080516020613b4883398151915292611ae892859287918991849182918291906135c5565b60405180910390a1611be8565b6002841415611b3e57600081815260116020526040808220600101859055600d549051600080516020613b4883398151915292611ae8928592879183918a91839182919061363c565b6003841415611b8757600081815260116020526040808220600201859055600d549051600080516020613b4883398151915292611ae89285928791839182918b9183919061367f565b6004841415611bd057600081815260116020526040808220600301859055600d549051600080516020613b4883398151915292611ae892859287918391829182918c91906136cf565b60405162461bcd60e51b8152600401610d4290613758565b600081815260116020908152604080832060040185905585835260109091528120600101805491611c1883613768565b9091555050600c8054906000611c2d83613768565b9190505550611c40600b80546001019055565b5050505050565b6000818152600260205260408120546001600160a01b0316611c7b5760405162461bcd60e51b8152600401610d42906137c8565b6000611c86836110f6565b9050806001600160a01b0316846001600160a01b03161480611cc15750836001600160a01b0316611cb684610cdc565b6001600160a01b0316145b80611cf157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610dba57506014546001600160a01b03858116911614949350505050565b826001600160a01b0316611d23826110f6565b6001600160a01b031614611d495760405162461bcd60e51b8152600401610d429061381a565b6001600160a01b038216611d6f5760405162461bcd60e51b8152600401610d429061386b565b611d7a8383836122fc565b611d85600082611946565b6001600160a01b0383166000908152600360205260408120805460019290611dae908490613316565b90915550506001600160a01b0382166000908152600360205260408120805460019290611ddc9084906130cb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806000600c54611e4f33866123b4565b611e599190613891565b90506000805b601654811015611ef557600060168281548110611e7e57611e7e613157565b60009182526020808320909101548083526010909152604090912060010154909150838510801590611eb85750611eb581856130cb565b85105b15611ed457611ec6826119de565b989197509095505050505050565b611ede81856130cb565b935050508080611eed906130e3565b915050611e5f565b5060405162461bcd60e51b8152600401610d42906138d2565b611f18848461248e565b600080516020613b48833981519152838383608001518460000151856020015186604001518760600151600d54604051611f599897969594939291906138e2565b60405180910390a16000928352601160209081526040938490208251815590820151600182015592810151600284015560608101516003840155608001516004909201919091555050565b611fad816124a8565b600090815260116020526040812081815560018101829055600281018290556003810182905560040155565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561205d5760405162461bcd60e51b8152600401610d4290613966565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906120c1908590612911565b60405180910390a3505050565b6120d9848484611d10565b6120e58484848461254f565b6117725760405162461bcd60e51b8152600401610d42906139c5565b6060600f8054610c5990612e41565b6060816121345750506040805180820190915260018152600360fc1b602082015290565b8160005b811561215e5780612148816130e3565b91506121579050600a836139d5565b9150612138565b60008167ffffffffffffffff81111561217957612179612a4d565b6040519080825280601f01601f1916602001820160405280156121a3576020820181803683370190505b5090505b8415610dba576121b8600183613316565b91506121c5600a86613891565b6121d09060306130cb565b60f81b8183815181106121e5576121e5613157565b60200101906001600160f81b031916908160001a905350612207600a866139d5565b94506121a7565b6001600160a01b0382166122345760405162461bcd60e51b8152600401610d4290613a1b565b6000818152600260205260409020546001600160a01b0316156122695760405162461bcd60e51b8152600401610d4290613a5f565b612275600083836122fc565b6001600160a01b038216600090815260036020526040812080546001929061229e9084906130cb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166123575761235281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61237a565b816001600160a01b0316836001600160a01b03161461237a5761237a838261264a565b6001600160a01b03821661239157610d8d816126e7565b826001600160a01b0316826001600160a01b031614610d8d57610d8d8282612796565b600042836040516020016123c89190613a97565b6040516020818303038152906040528051906020012060001c6123eb91906139d5565b42416040516020016123fd9190613a97565b6040516020818303038152906040528051906020012060001c61242091906139d5565b83434561242d44426130cb565b61243791906130cb565b61244191906130cb565b61244b91906130cb565b61245591906130cb565b61245f91906130cb565b60405160200161246f9190613aac565b60408051601f1981840301815291905280516020909101209392505050565b610dad8282604051806020016040528060008152506127da565b60006124b3826110f6565b90506124c1816000846122fc565b6124cc600083611946565b6001600160a01b03811660009081526003602052604081208054600192906124f5908490613316565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b1561264257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612593903390899088908890600401613ac1565b6020604051808303816000875af19250505080156125ce575060408051601f3d908101601f191682019092526125cb91810190613b10565b60015b612628573d8080156125fc576040519150601f19603f3d011682016040523d82523d6000602084013e612601565b606091505b5080516126205760405162461bcd60e51b8152600401610d42906139c5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610dba565b506001610dba565b600060016126578461164f565b6126619190613316565b6000838152600860205260409020549091508082146126b4576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906126f990600190613316565b6000838152600a60205260408120546009805493945090928490811061272157612721613157565b90600052602060002001549050806009838154811061274257612742613157565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061277a5761277a613b31565b6001900381819060005260206000200160009055905550505050565b60006127a18361164f565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6127e4838361220e565b6127f1600084848461254f565b610d8d5760405162461bcd60e51b8152600401610d42906139c5565b82805461281990612e41565b90600052602060002090601f01602090048101928261283b5760008555612881565b82601f106128545782800160ff19823516178555612881565b82800160010185558215612881579182015b82811115612881578235825591602001919060010190612866565b5061288d9291506128af565b5090565b60405180608001604052806004906020820280368337509192915050565b5b8082111561288d57600081556001016128b0565b6001600160e01b031981165b8114610eb657600080fd5b8035610c44816128c4565b6000602082840312156128fb576128fb600080fd5b6000610dba84846128db565b8015155b82525050565b60208101610c448284612907565b8061290b565b60208101610c44828461291f565b60005b8381101561294e578181015183820152602001612936565b838111156117725750506000910152565b6000612969825190565b808452602084019350612980818560208601612933565b601f01601f19169290920192915050565b602080825281016117e5818461295f565b806128d0565b8035610c44816129a2565b6000602082840312156129c8576129c8600080fd5b6000610dba84846129a8565b60006001600160a01b038216610c44565b61290b816129d4565b60208101610c4482846129e5565b6128d0816129d4565b8035610c44816129fc565b60008060408385031215612a2657612a26600080fd5b6000612a328585612a05565b9250506020612a43858286016129a8565b9150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612a8957612a89612a4d565b6040525050565b6000612a9b60405190565b9050611a788282612a63565b600067ffffffffffffffff821115612ac157612ac1612a4d565b601f19601f83011660200192915050565b82818337506000910152565b6000612af1612aec84612aa7565b612a90565b905082815260208101848484011115612b0c57612b0c600080fd5b612b17848285612ad2565b509392505050565b600082601f830112612b3357612b33600080fd5b8135610dba848260208601612ade565b60008060008060808587031215612b5c57612b5c600080fd5b6000612b688787612a05565b9450506020612b7987828801612a05565b9350506040612b8a878288016129a8565b925050606085013567ffffffffffffffff811115612baa57612baa600080fd5b612bb687828801612b1f565b91505092959194509250565b6001600160e01b0319811661290b565b60208101610c448284612bc2565b600080600060608486031215612bf857612bf8600080fd5b6000612c048686612a05565b9350506020612c1586828701612a05565b9250506040612c26868287016129a8565b9150509250925092565b600060208284031215612c4557612c45600080fd5b6000610dba8484612a05565b60008083601f840112612c6657612c66600080fd5b50813567ffffffffffffffff811115612c8157612c81600080fd5b602083019150836001820283011115612c9c57612c9c600080fd5b9250929050565b60008060208385031215612cb957612cb9600080fd5b823567ffffffffffffffff811115612cd357612cd3600080fd5b612cdf85828601612c51565b92509250509250929050565b6000612cf7838361291f565b505060200190565b6004818060005b83811015612d2b578151612d1a8782612ceb565b965060208301925050600101612d06565b505050505050565b60c08101612d418286612cff565b612d4e608083018561291f565b610dba60a0830184612907565b600080600060608486031215612d7357612d73600080fd5b6000612d7f86866129a8565b9350506020612c15868287016129a8565b60008060408385031215612da657612da6600080fd5b6000612a3285856129a8565b8015156128d0565b8035610c4481612db2565b60008060408385031215612ddb57612ddb600080fd5b6000612de78585612a05565b9250506020612a4385828601612dba565b60008060408385031215612e0e57612e0e600080fd5b6000612e1a8585612a05565b9250506020612a4385828601612a05565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612e5557607f821691505b60208210811415612e6857612e68612e2b565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291505b5060400190565b60208082528101610c4481612e6e565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060208201529150612ea8565b60208082528101610c4481612ebf565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b60208201529150612ea8565b60208082528101610c4481612f29565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b60208201529150612ea8565b60208082528101610c4481612f84565b90565b600081610c44565b6009815260006020820168373ab6361030b2323960b91b815291505b5060200190565b60208082528101610c4481612fe7565b603181526000602082017f636f6d706f6e656e74206d696e7473206d75737420636f6d652066726f6d20628152701bdbdb481c9bdbdb4818dbdb9d1c9858dd607a1b60208201529150612ea8565b60208082528101610c448161301a565b60168152600060208201756d757374206d696e7420323520617420612074696d6560501b81529150613003565b60208082528101610c4481613078565b634e487b7160e01b600052601160045260246000fd5b600082198211156130de576130de6130b5565b500190565b60006000198214156130f7576130f76130b5565b5060010190565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b60208201529150612ea8565b60208082528101610c44816130fe565b634e487b7160e01b600052603260045260246000fd5b601881526000602082017f4552433732313a20696e76616c696420746f6b656e204944000000000000000081529150613003565b60208082528101610c448161316d565b602281526000602082017f63616c6c657220646f6573206e6f74206f776e2066726f6d20636f6d706f6e658152611b9d60f21b60208201529150612ea8565b60208082528101610c44816131b1565b60208082527f63616c6c657220646f6573206e6f74206f776e20746f20636f6d706f6e656e7491019081526000613003565b60208082528101610c4481613200565b600d81526000602082016c1a5b9d985b1a59081d1c985a5d609a1b81529150613003565b60208082528101610c4481613242565b60006001600160ff1b038214156130f7576130f76130b5565b6000815461329c81612e41565b8085526020850194506001821680156132bc57600181146132ce576132fc565b60ff19831686526020860193506132fc565b60008581526020902060005b838110156132f6578154888201526001909101906020016132da565b87019450505b50505092915050565b602080825281016117e5818461328f565b600082821015613328576133286130b5565b500390565b6040810161333b82856129e5565b6117e5602083018461291f565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b60208201529150612ea8565b60208082528101610c4481613348565b603181526000602082017f6f6e6c7920626f6f6d20726f6f6d20636f6e74726163742063616e206c6f636b8152702f756e6c6f636b20636f706f6e656e747360781b60208201529150612ea8565b60208082528101610c448161339e565b601781526000602082017f636f6d706f6e656e74206973206e6f74206c6f636b656400000000000000000081529150613003565b60208082528101610c44816133fc565b600061344a825190565b613458818560208601612933565b9290920192915050565b600061346e8285613440565b9150610dba8284613440565b602181526000602082017f61646472657373206973206e6f74206f776e6572206f6620636f6d706f6e656e8152601d60fa1b60208201529150612ea8565b60208082528101610c448161347a565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612ea8565b60208082528101610c44816134c8565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613003565b60208082528101610c448161351b565b602681526000602082017f63616e6e6f74206765742074726169742074797065206f6e20696e76616c6964815265081d1c985a5d60d21b60208201529150612ea8565b60208082528101610c448161355d565b6000610c44612fdc8381565b61290b816135b0565b61010081016135d4828b61291f565b6135e1602083018a6135bc565b6135ee604083018961291f565b6135fb606083018861291f565b61360860808301876135bc565b61361560a08301866135bc565b61362260c08301856135bc565b61362f60e083018461291f565b9998505050505050505050565b610100810161364b828b61291f565b613658602083018a6135bc565b613665604083018961291f565b61367260608301886135bc565b613608608083018761291f565b610100810161368e828b61291f565b61369b602083018a6135bc565b6136a8604083018961291f565b6136b560608301886135bc565b6136c260808301876135bc565b61361560a083018661291f565b61010081016136de828b61291f565b6136eb602083018a6135bc565b6136f8604083018961291f565b61370560608301886135bc565b61371260808301876135bc565b61371f60a08301866135bc565b61362260c083018561291f565b6015815260006020820174756e6578706563746564207472616974207479706560581b81529150613003565b60208082528101610c448161372c565b600081613777576137776130b5565b506000190190565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150612ea8565b60208082528101610c448161377f565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b60208201529150612ea8565b60208082528101610c44816137d8565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150612ea8565b60208082528101610c448161382a565b634e487b7160e01b600052601260045260246000fd5b6000826138a0576138a061387b565b500690565b60168152600060208201751b9bc81d1c985a5d1cc81b19599d081d1bc81b5a5b9d60521b81529150613003565b60208082528101610c44816138a5565b61010081016138f1828b61291f565b6138fe602083018a61291f565b61390b604083018961291f565b613918606083018861291f565b613925608083018761291f565b61371f60a083018661291f565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613003565b60208082528101610c4481613932565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150612ea8565b60208082528101610c4481613976565b6000826139e4576139e461387b565b500490565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613003565b60208082528101610c44816139e9565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150613003565b60208082528101610c4481613a2b565b6000610c448260601b90565b6000610c4482613a6f565b61290b613a92826129d4565b613a7b565b6000613aa38284613a86565b50601401919050565b6000613ab8828461291f565b50602001919050565b60808101613acf82876129e5565b613adc60208301866129e5565b613ae9604083018561291f565b8181036060830152613afb818461295f565b9695505050505050565b8051610c44816128c4565b600060208284031215613b2557613b25600080fd5b6000610dba8484613b05565b634e487b7160e01b600052603160045260246000fdfe899429d6162ab2c6c964085f939dbc12a2b3f11f25082e3c719a81bdcdc7195ca2646970667358221220a69461e75c3a83748a7494c3997c920cef0e001f03785800239d266daf7b8a7f64736f6c634300080a0033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : uri (string):

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 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  ]

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.