Contract 0x3158b2432d19287e0166bf87698bfefe89460573

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3de5135b2142a0f8314ec4003cf18e7a81cae4baf7cfff43d9d8ef416f964ff8Set Approval For...131569942021-12-03 10:46:225 mins ago0x787fd495161792f4d965a27334624c033c51718d IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00022519
0x442e4edcab3a83ad481925b18b76e6e1b3ceca66456bef8c46d643f2cdf8b850Set Approval For...131553082021-12-03 9:21:421 hr 30 mins ago0x35224016ce200cbe485001471d551f4bbb908e74 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00022519
0x6ae19d79a92c554bf22a1328cfe254b09f8605e233ff3f10ecb00814c37012c9Transfer From131552662021-12-03 9:19:361 hr 32 mins ago0x2195c4607a3be055cc40a8d3182edb59cb68def2 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00037566396
0xa7acfff197e12fe0ec229c26c8cfadedc7aab85dc6038cfe6cc3d955d3f32260Transfer From131551222021-12-03 9:12:101 hr 40 mins ago0x640e8891361f67f9edee371f48dedc59ad5cbc4f IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050076
0xd7edba44afdb54aee5dbb7bb21d68229da6cddd8c9c840a63c842e6a2fdeb02cSet Approval For...131538872021-12-03 8:08:002 hrs 44 mins ago0x64be9bae8f370615815d9d42c947688e0729f378 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00007513
0xb8cedf7e3ef6e1def22d98c407aae0c51670949e915bd320c91968f06394c0f9Set Approval For...131537902021-12-03 8:03:092 hrs 49 mins ago0x9932f6289ff1c48c41fc1a09c1a353c6e31ef173 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00022519
0xcbd08d8da9ca2cd9c8442a6b8150e36715e8cb94df4cf64fe244f542704b8c1dTransfer From131496402021-12-03 4:32:516 hrs 19 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0xaaba6e70952b2434b7fdc33545fb64d80f82464b8a5e89862dd83cce3518c6d6Transfer From131496282021-12-03 4:32:156 hrs 19 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0xd916f35c0c10f46db2834be07d961a41a5e087f81878d2b14550567f4462a86bTransfer From131496172021-12-03 4:31:426 hrs 20 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0x8ed9b82bd46fc0f415e9a9871c56a56d431d146c3cd4a144a0cfcaf811563b23Transfer From131495992021-12-03 4:30:486 hrs 21 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0xbb87248c846f40b0d6d2ceb04767225ef15e82fef849c208e49005dce7708d1eTransfer From131495932021-12-03 4:30:306 hrs 21 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0x8625ef47569fd2aef034cb6e865ed7844dd4a0b2fc2f4315fd3fd06edfa8a514Transfer From131495792021-12-03 4:29:486 hrs 22 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0x74af21f4704ff84900235e625585cb7620e06175bc3c3e35ed82ede3df495ef1Transfer From131495722021-12-03 4:29:276 hrs 22 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0xc50540b4684d0515924fb899e27803a5144f488a08c585761c2fbe2bb41cbea9Transfer From131495482021-12-03 4:28:156 hrs 23 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0xaea9ac27f25b4093a920e9830fe99607273a5257fd25a0753f2bd9ec8f97c6e6Transfer From131495412021-12-03 4:27:546 hrs 24 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0xa3fbf426e1223f1a62772e8eb34f67e432b90ce1b39de546ecf220ce23cd4196Transfer From131495352021-12-03 4:27:366 hrs 24 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0x9e17d41f0002544bdff631d91cfa1b1009c963a915c594a34fe9e36876ffce0eTransfer From131495272021-12-03 4:27:126 hrs 24 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0x373ddb51e3762321c233d83817c493b5027f7fe859677de3a57d07a92cb023feTransfer From131495222021-12-03 4:26:576 hrs 25 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0x315098fd26b9c8e96bb2fd3e9965277395d102c5c9a68836308ca4702d541812Transfer From131494752021-12-03 4:24:366 hrs 27 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0xccb6dc19bffb4529b7d8fadf12d579979199c0ca7f087be8e0c7df577408f501Transfer From131494622021-12-03 4:23:576 hrs 28 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0x51e48384790fc969f708b2c3075cc4063e242447d428b535986209146993e0bcTransfer From131493942021-12-03 4:20:336 hrs 31 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0xb9d685a3c315239d89bf3d6c691f578b59e75060903c4d2ff1163a447c43db1fTransfer From131493872021-12-03 4:20:126 hrs 31 mins ago0x228003f88a532da98c182df35ba9604745f06e4a IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00037566396
0xc68fa19f41c643413e4229b43c1e83a0836f16bfa53c643987ba6840208c4b01Transfer From131493862021-12-03 4:20:096 hrs 32 mins ago0xc40ca7e11639cf224728f73a20e4d42e5718c364 IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
0x36bee1fbf927b629e533eb9816e1816d262583b1bc9fcac427f09615b4769e36Transfer From131493832021-12-03 4:20:006 hrs 32 mins ago0x228003f88a532da98c182df35ba9604745f06e4a IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00045598896
0xf946d3955de04f7f99ace7b2ad89175a076a03a645680ab9ee7c0c9852e415abTransfer From131493792021-12-03 4:19:486 hrs 32 mins ago0x228003f88a532da98c182df35ba9604745f06e4a IN  0x3158b2432d19287e0166bf87698bfefe894605730 BNB0.00050097096
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Houses

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

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

pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;

import "./SafeMath.sol";
import "./Context.sol";
import "./Ownable.sol";
import "./Counters.sol";
import "./MinterRole.sol";
import "./Pausable.sol";
import "./ERC721.sol";
import "./IHousesNFT.sol";

contract Houses is Context, Ownable, MinterRole, Pausable, ERC721, IHousesNFT {
    using SafeMath for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private _currentId;
    
    // multiplier range for 'luxury', 'durability', and 'luck' attributes. from 0.95 to 1.3
    uint256 constant private MULTIPLIER_MIN = 95;   //0.95
    uint256 constant private MULTIPLIER_MAX = 130;  //1.3
    // base values for buildingPeirod of 6 levels
    uint256 private _level1BuildingPeriod = 30 minutes;
    uint256 private _level2BuildingPeriod = 1 hours;
    uint256 private _level3BuildingPeriod = 2 hours;
    uint256 private _level4BuildingPeriod = 5 hours;
    uint256 private _level5BuildingPeriod = 24 hours;
    uint256 private _level6BuildingPeriod = 720 hours;
    // base values for area of 6 levels (unit in m^2, square meters)
    uint256 private _level1Area = 1;
    uint256 private _level2Area = 4;
    uint256 private _level3Area = 9;
    uint256 private _level4Area = 16;
    uint256 private _level5Area = 36;
    uint256 private _level6Area = 100;
    // base values for luxury of 6 levels
    // notice: /100 to show on the frontend
    uint256 private _level1Luxury = 1;
    uint256 private _level2Luxury = 5;
    uint256 private _level3Luxury = 25;
    uint256 private _level4Luxury = 80;
    uint256 private _level5Luxury = 700;
    uint256 private _level6Luxury = 10000;
    // base values for durability of 6 levels
    // notice: /100 to show on the frontend
    uint256 private _level1Durability = 6;
    uint256 private _level2Durability = 6;
    uint256 private _level3Durability = 24;
    uint256 private _level4Durability = 72;
    uint256 private _level5Durability = 168;
    uint256 private _level6Durability = 2000;
    // base values for luck of 6 levels (base *10 to be initeger)
    // notice: /1000 to show on the frontend
    uint256 private _level1Luck = 10;  //1
    uint256 private _level2Luck = 12;  //1.2
    uint256 private _level3Luck = 15;  //1.5
    uint256 private _level4Luck = 20;  //2
    uint256 private _level5Luck = 40;  //4
    uint256 private _level6Luck = 500; //50
    // base values for rentingPeriod of 6 levels
    uint256 private _allLevelRentingPeriod = 8 hours;
    // base values for protectingPeriod of 6 levels
    uint256 private _allLevelProtectingPeriod = 5 minutes;

    struct attributes {
        uint256 level;
        uint256 buildingPeriod;
        uint256 area;
        uint256 luxury;
        uint256 durability;
        uint256 luck;
        uint256 rentingPeriod;
        uint256 protectingPeriod;
    }

    // house's tokenId => attributes
    mapping(uint256 => attributes) private houseAttributes;
    // event of set a house's attribute when the house is minted
    event SetHouseAttributes(uint256 indexed tokenId, uint256 indexed level);

    constructor() ERC721("BINO house", "BINOH") public {

    }

    function safeMint(address to, uint256 level) public virtual override onlyMinter {
        require(level >= 1 && level <=6, "level is not in the range of [1, 6]");

        // start from #1
        _currentId.increment();
        uint256 tokenId = _currentId.current();
        // set random attributes first, then mint; mint will invoke onERC721Received();
        _setHouseAttributes(tokenId, level);
        _safeMint(to, tokenId);
    }

    function burn(uint256 tokenId) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    } 

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    function setBaseURI(string memory baseURI) public onlyOwner {
        _setBaseURI(baseURI);
    }

    function setTokenURI(uint256 tokenId, string memory tokenURI) public onlyOwner {
        _setTokenURI(tokenId, tokenURI);
    }

    function checkHouseAttributes(uint256 tokenId) public view returns (attributes memory) {
        require(_exists(tokenId), "check house attributes for nonexistent tokenId");
        attributes storage thisHouse = houseAttributes[tokenId];
        return thisHouse;
    }

    function checkHouseLevel(uint256 tokenId) public override view returns (uint256) {
        require(_exists(tokenId), "check house attributes for nonexistent tokenId");
        attributes storage thisHouse = houseAttributes[tokenId];
        return thisHouse.level;
    }

    function checkHouseBulidingPeriod(uint256 tokenId) public override view returns (uint256) {
        require(_exists(tokenId), "check house attributes for nonexistent tokenId");
        attributes storage thisHouse = houseAttributes[tokenId];
        return thisHouse.buildingPeriod;
    }

    function checkHouseArea(uint256 tokenId) public override view returns (uint256) {
        require(_exists(tokenId), "check house attributes for nonexistent tokenId");
        attributes storage thisHouse = houseAttributes[tokenId];
        return thisHouse.area;
    }

    function checkHouseLuxury(uint256 tokenId) public override view returns (uint256) {
        require(_exists(tokenId), "check house attributes for nonexistent tokenId");
        attributes storage thisHouse = houseAttributes[tokenId];
        return thisHouse.luxury;
    }

    function checkHouseDurability(uint256 tokenId) public override view returns (uint256) {
        require(_exists(tokenId), "check house attributes for nonexistent tokenId");
        attributes storage thisHouse = houseAttributes[tokenId];
        return thisHouse.durability;
    }

    function checkHouseLuck(uint256 tokenId) public override view returns (uint256) {
        require(_exists(tokenId), "check house attributes for nonexistent tokenId");
        attributes storage thisHouse = houseAttributes[tokenId];
        return thisHouse.luck;
    }

    function checkHouseRentingPeriod(uint256 tokenId) public override view returns (uint256) {
        require(_exists(tokenId), "check house attributes for nonexistent tokenId");
        attributes storage thisHouse = houseAttributes[tokenId];
        return thisHouse.rentingPeriod;
    }

    function checkHouseProtectingPeriod(uint256 tokenId) public override view returns (uint256) {
        require(_exists(tokenId), "check house attributes for nonexistent tokenId");
        attributes storage thisHouse = houseAttributes[tokenId];
        return thisHouse.protectingPeriod;
    }

    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }

    function _setHouseAttributes(uint256 tokenId, uint256 level) private {
        attributes storage thisHouse = houseAttributes[tokenId];

        thisHouse.level = level;
        thisHouse.rentingPeriod = _allLevelRentingPeriod;
        thisHouse.protectingPeriod = _allLevelProtectingPeriod;
        if (level == 1) {
            thisHouse.buildingPeriod = _level1BuildingPeriod;
            thisHouse.area = _level1Area;
            // multiply by a random MULTIPLIER
            thisHouse.luxury = _level1Luxury.mul(_getRandomMultiplier());
            thisHouse.durability = _level1Durability.mul(_getRandomMultiplier());
            thisHouse.luck = _level1Luck.mul(_getRandomMultiplier());
        } else if (level == 2) {
            thisHouse.buildingPeriod = _level2BuildingPeriod;
            thisHouse.area = _level2Area;
            // multiply by a random MULTIPLIER
            thisHouse.luxury = _level2Luxury.mul(_getRandomMultiplier());
            thisHouse.durability = _level2Durability.mul(_getRandomMultiplier());
            thisHouse.luck = _level2Luck.mul(_getRandomMultiplier());
        } else if (level == 3) {
            thisHouse.buildingPeriod = _level3BuildingPeriod;
            thisHouse.area = _level3Area;
            // multiply by a random MULTIPLIER
            thisHouse.luxury = _level3Luxury.mul(_getRandomMultiplier());
            thisHouse.durability = _level3Durability.mul(_getRandomMultiplier());
            thisHouse.luck = _level3Luck.mul(_getRandomMultiplier());
        } else if (level == 4) {
            thisHouse.buildingPeriod = _level4BuildingPeriod;
            thisHouse.area = _level4Area;
            // multiply by a random MULTIPLIER
            thisHouse.luxury = _level4Luxury.mul(_getRandomMultiplier());
            thisHouse.durability = _level4Durability.mul(_getRandomMultiplier());
            thisHouse.luck = _level4Luck.mul(_getRandomMultiplier());
        } else if (level == 5) {
            thisHouse.buildingPeriod = _level5BuildingPeriod;
            thisHouse.area = _level5Area;
            // multiply by a random MULTIPLIER
            thisHouse.luxury = _level5Luxury.mul(_getRandomMultiplier());
            thisHouse.durability = _level5Durability.mul(_getRandomMultiplier());
            thisHouse.luck = _level5Luck.mul(_getRandomMultiplier());
        } else {
            thisHouse.buildingPeriod = _level6BuildingPeriod;
            thisHouse.area = _level6Area;
            // multiply by a random MULTIPLIER
            thisHouse.luxury = _level6Luxury.mul(_getRandomMultiplier());
            thisHouse.durability = _level6Durability.mul(_getRandomMultiplier());
            thisHouse.luck = _level6Luck.mul(_getRandomMultiplier());
        }

        emit SetHouseAttributes(tokenId, level);
    }

    // generate a random integer between MULTIPLIER_MIN to MULTIPLIER_MAX
    function _getRandomMultiplier() private view returns (uint256) {
        // randomSeed % (130 - 95 + 1) => randomInt = [0, 35]
        uint256 randomInt = uint256(
            keccak256(
                abi.encodePacked(
                    uint256(blockhash(block.number.sub(1))),
                    uint256(block.coinbase),
                    block.difficulty,
                    block.timestamp,
                    totalSupply()
                )
            )
        ).mod(MULTIPLIER_MAX.sub(MULTIPLIER_MIN).add(1));
        return randomInt.add(MULTIPLIER_MIN);
    }
}

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

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

pragma solidity ^0.6.0;

import "./SafeMath.sol";

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. 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;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    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 {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

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

pragma solidity ^0.6.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        return _get(map, key, "EnumerableMap: nonexistent key");
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

   /**
    * @dev Returns the element stored at position `index` in the set. O(1).
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint256(value)));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key), errorMessage)));
    }
}

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

pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

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

pragma solidity ^0.6.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

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

pragma solidity ^0.6.0;

import "./Context.sol";
import "./IERC721.sol";
import "./IERC721Metadata.sol";
import "./IERC721Enumerable.sol";
import "./IERC721Receiver.sol";
import "./ERC165.sol";
import "./SafeMath.sol";
import "./Address.sol";
import "./EnumerableSet.sol";
import "./EnumerableMap.sol";
import "./Strings.sol";

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping (address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

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

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

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

        return _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

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

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

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

        string memory _tokenURI = _tokenURIs[tokenId];

        // If there is no base URI, return the token URI.
        if (bytes(_baseURI).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(_baseURI, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(_baseURI, tokenId.toString()));
    }

    /**
    * @dev Returns the base URI set via {_setBaseURI}. This will be
    * automatically added as a prefix in {tokenURI} to each token's URI, or
    * to the token ID if no specific URI is set for that token ID.
    */
    function baseURI() public view returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mecanisms 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 returns (bool) {
        return _tokenOwners.contains(tokenId);
    }

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

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     d*
     * - `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);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

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

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

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

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

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    /**
     * @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()) {
            return true;
        }
        bytes memory returndata = to.functionCall(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            _msgSender(),
            from,
            tokenId,
            _data
        ), "ERC721: transfer to non ERC721Receiver implementer");
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

    function _approve(address to, uint256 tokenId) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

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

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

pragma solidity ^0.6.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 20: IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

import "./IERC165.sol";

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.6.2;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

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

pragma solidity ^0.6.2;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

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

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

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

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

pragma solidity ^0.6.0;

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

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

pragma solidity ^0.6.0;

interface IHousesNFT {

    function safeMint(address to, uint256 level) external;

    function burn(uint256 tokenId) external;

    function checkHouseLevel(uint256 tokenId) external view returns (uint256);

    function checkHouseBulidingPeriod(uint256 tokenId) external view returns (uint256);

    function checkHouseArea(uint256 tokenId) external view returns (uint256);

    function checkHouseLuxury(uint256 tokenId) external view returns (uint256);

    function checkHouseDurability(uint256 tokenId) external view returns (uint256);

    function checkHouseLuck(uint256 tokenId) external view returns (uint256);

    function checkHouseRentingPeriod(uint256 tokenId) external view returns (uint256);

    function checkHouseProtectingPeriod(uint256 tokenId) external view returns (uint256);
}

File 15 of 20: MinterRole.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

import "./Context.sol";
import "./Roles.sol";
import "./Ownable.sol";


contract MinterRole is Context, Ownable {
    using Roles for Roles.Role;

    event MinterAdded(address indexed account);
    event MinterRemoved(address indexed account);

    Roles.Role private _minters;

    constructor () internal {
        _addMinter(_msgSender());
    }

    modifier onlyMinter() {
        require(isMinter(_msgSender()), "MinterRole: caller does not have the Minter role");
        _;
    }

    function isMinter(address account) public view returns (bool) {
        return _minters.has(account);
    }

    function addMinter(address account) public virtual onlyOwner {
        _addMinter(account);
    }

    function renounceMinter() public virtual {
        _removeMinter(_msgSender());
    }

    function _addMinter(address account) internal virtual {
        _minters.add(account);
        emit MinterAdded(account);
    }

    function _removeMinter(address account) internal virtual {
        _minters.remove(account);
        emit MinterRemoved(account);
    }
}

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

pragma solidity ^0.6.0;

import "./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.
 *
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

pragma solidity ^0.6.0;

import "./Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 18 of 20: Roles.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

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

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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

pragma solidity ^0.6.0;

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` 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);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = byte(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"level","type":"uint256"}],"name":"SetHouseAttributes","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addMinter","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkHouseArea","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkHouseAttributes","outputs":[{"components":[{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"buildingPeriod","type":"uint256"},{"internalType":"uint256","name":"area","type":"uint256"},{"internalType":"uint256","name":"luxury","type":"uint256"},{"internalType":"uint256","name":"durability","type":"uint256"},{"internalType":"uint256","name":"luck","type":"uint256"},{"internalType":"uint256","name":"rentingPeriod","type":"uint256"},{"internalType":"uint256","name":"protectingPeriod","type":"uint256"}],"internalType":"struct Houses.attributes","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkHouseBulidingPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkHouseDurability","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkHouseLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkHouseLuck","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkHouseLuxury","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkHouseProtectingPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkHouseRentingPeriod","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":"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":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"level","type":"uint256"}],"name":"safeMint","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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052610708600e55610e10600f55611c206010556146506011556201518060125562278d006013556001601455600460155560096016556010601755602460185560646019556001601a556005601b556019601c556050601d556102bc601e55612710601f55600660205560066021556018602255604860235560a86024556107d0602555600a602655600c602755600f60285560146029556028602a556101f4602b55617080602c5561012c602d55348015620000bf57600080fd5b506040518060400160405280600a81526020016942494e4f20686f75736560b01b81525060405180604001604052806005815260200164084929c9e960db1b815250600062000113620001f760201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620001716200016b620001f7565b620001fb565b6002805460ff191690556200018d6301ffc9a760e01b6200024d565b8151620001a290600990602085019062000344565b508051620001b890600a90602084019062000344565b50620001cb6380ac58cd60e01b6200024d565b620001dd635b5e139f60e01b6200024d565b620001ef63780e9d6360e01b6200024d565b505062000490565b3390565b62000216816001620002a860201b620010d81790919060201c565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b6001600160e01b03198082161415620002835760405162461bcd60e51b81526004016200027a9062000417565b60405180910390fd5b6001600160e01b0319166000908152600360205260409020805460ff19166001179055565b620002b48282620002f9565b15620002d45760405162461bcd60e51b81526004016200027a90620003e0565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b038216620003245760405162461bcd60e51b81526004016200027a906200044e565b506001600160a01b03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200038757805160ff1916838001178555620003b7565b82800160010185558215620003b7579182015b82811115620003b75782518255916020019190600101906200039a565b50620003c5929150620003c9565b5090565b5b80821115620003c55760008155600101620003ca565b6020808252601f908201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604082015260600190565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b60208082526022908201527f526f6c65733a206163636f756e7420697320746865207a65726f206164647265604082015261737360f01b606082015260800190565b61318d80620004a06000396000f3fe608060405234801561001057600080fd5b506004361061023d5760003560e01c80636dac92251161013b578063a22cb465116100b8578063b88d4fde1161007c578063b88d4fde146104a6578063c2645c85146104b9578063c87b56dd146104cc578063e985e9c5146104df578063f2fde38b146104f25761023d565b8063a22cb46514610447578063aa271e1a1461045a578063ada10ce81461046d578063afb946fe14610480578063b159551c146104935761023d565b806394becb9a116100ff57806394becb9a146103fe57806395d89b4114610411578063983b2d5614610419578063986502751461042c578063a1448194146104345761023d565b80636dac9225146103c057806370a08231146103d3578063715018a6146103e65780638456cb59146103ee5780638da5cb5b146103f65761023d565b80633f4ba83a116101c957806355f804b31161018d57806355f804b3146103775780635c975abb1461038a5780636347ac42146103925780636352211e146103a55780636c0360eb146103b85761023d565b80633f4ba83a1461031657806342842e0e1461031e57806342966c68146103315780634f6ccce71461034457806353804269146103575761023d565b8063162094c411610210578063162094c4146102b557806317a0a724146102c857806318160ddd146102e857806323b872dd146102f05780632f745c59146103035761023d565b806301ffc9a71461024257806306fdde031461026b578063081812fc14610280578063095ea7b3146102a0575b600080fd5b6102556102503660046125f6565b610505565b60405161026291906127fb565b60405180910390f35b610273610528565b6040516102629190612806565b61029361028e366004612661565b6105be565b60405161026291906127aa565b6102b36102ae3660046125cc565b61060a565b005b6102b36102c3366004612679565b6106a2565b6102db6102d6366004612661565b6106e5565b604051610262919061309c565b6102db610722565b6102b36102fe3660046124e9565b610733565b6102db6103113660046125cc565b61076b565b6102b3610796565b6102b361032c3660046124e9565b6107d5565b6102b361033f366004612661565b6107f0565b6102db610352366004612661565b610823565b61036a610365366004612661565b610839565b6040516102629190613043565b6102b361038536600461262e565b6108d4565b610255610912565b6102db6103a0366004612661565b61091b565b6102936103b3366004612661565b610958565b610273610980565b6102db6103ce366004612661565b6109e1565b6102db6103e136600461249a565b610a1e565b6102b3610a67565b6102b3610ae6565b610293610b23565b6102db61040c366004612661565b610b32565b610273610b6f565b6102b361042736600461249a565b610bd0565b6102b3610c0e565b6102b36104423660046125cc565b610c1e565b6102b3610455366004612591565b610c9f565b61025561046836600461249a565b610d6d565b6102db61047b366004612661565b610d7a565b6102db61048e366004612661565b610db7565b6102db6104a1366004612661565b610df4565b6102b36104b4366004612529565b610e2e565b6102db6104c7366004612661565b610e6d565b6102736104da366004612661565b610eaa565b6102556104ed3660046124b5565b610ff4565b6102b361050036600461249a565b611022565b6001600160e01b0319811660009081526003602052604090205460ff165b919050565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105b45780601f10610589576101008083540402835291602001916105b4565b820191906000526020600020905b81548152906001019060200180831161059757829003601f168201915b5050505050905090565b60006105c982611124565b6105ee5760405162461bcd60e51b81526004016105e590612d40565b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061061582610958565b9050806001600160a01b0316836001600160a01b031614156106495760405162461bcd60e51b81526004016105e590612ee7565b806001600160a01b031661065b611131565b6001600160a01b031614806106775750610677816104ed611131565b6106935760405162461bcd60e51b81526004016105e590612b50565b61069d8383611135565b505050565b6106aa611131565b6000546001600160a01b039081169116146106d75760405162461bcd60e51b81526004016105e590612dd8565b6106e182826111a3565b5050565b60006106f082611124565b61070c5760405162461bcd60e51b81526004016105e5906129da565b506000908152602e602052604090206005015490565b600061072e60056111e7565b905090565b61074461073e611131565b826111f2565b6107605760405162461bcd60e51b81526004016105e590612f28565b61069d838383611277565b6001600160a01b038216600090815260046020526040812061078d9083611385565b90505b92915050565b61079e611131565b6000546001600160a01b039081169116146107cb5760405162461bcd60e51b81526004016105e590612dd8565b6107d3611391565b565b61069d83838360405180602001604052806000815250610e2e565b6107fb61073e611131565b6108175760405162461bcd60e51b81526004016105e590612ff3565b610820816113fd565b50565b6000806108316005846114ca565b509392505050565b6108416122ed565b61084a82611124565b6108665760405162461bcd60e51b81526004016105e5906129da565b506000908152602e6020908152604091829020825161010081018452815481526001820154928101929092526002810154928201929092526003820154606082015260048201546080820152600582015460a0820152600682015460c082015260079091015460e082015290565b6108dc611131565b6000546001600160a01b039081169116146109095760405162461bcd60e51b81526004016105e590612dd8565b610820816114e6565b60025460ff1690565b600061092682611124565b6109425760405162461bcd60e51b81526004016105e5906129da565b506000908152602e602052604090206006015490565b60006107908260405180606001604052806029815260200161312f60299139600591906114f9565b600c8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105b45780601f10610589576101008083540402835291602001916105b4565b60006109ec82611124565b610a085760405162461bcd60e51b81526004016105e5906129da565b506000908152602e602052604090206002015490565b60006001600160a01b038216610a465760405162461bcd60e51b81526004016105e590612bad565b6001600160a01b0382166000908152600460205260409020610790906111e7565b610a6f611131565b6000546001600160a01b03908116911614610a9c5760405162461bcd60e51b81526004016105e590612dd8565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610aee611131565b6000546001600160a01b03908116911614610b1b5760405162461bcd60e51b81526004016105e590612dd8565b6107d3611510565b6000546001600160a01b031690565b6000610b3d82611124565b610b595760405162461bcd60e51b81526004016105e5906129da565b506000908152602e602052604090206004015490565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105b45780601f10610589576101008083540402835291602001916105b4565b610bd8611131565b6000546001600160a01b03908116911614610c055760405162461bcd60e51b81526004016105e590612dd8565b61082081611569565b6107d3610c19611131565b6115ab565b610c29610468611131565b610c455760405162461bcd60e51b81526004016105e590612bf7565b60018110158015610c57575060068111155b610c735760405162461bcd60e51b81526004016105e590612f79565b610c7d600d6115ed565b6000610c89600d6115f6565b9050610c9581836115fa565b61069d838261188e565b610ca7611131565b6001600160a01b0316826001600160a01b03161415610cd85760405162461bcd60e51b81526004016105e590612aa3565b8060086000610ce5611131565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610d29611131565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610d6191906127fb565b60405180910390a35050565b60006107906001836118a8565b6000610d8582611124565b610da15760405162461bcd60e51b81526004016105e5906129da565b506000908152602e602052604090206007015490565b6000610dc282611124565b610dde5760405162461bcd60e51b81526004016105e5906129da565b506000908152602e602052604090206003015490565b6000610dff82611124565b610e1b5760405162461bcd60e51b81526004016105e5906129da565b506000908152602e602052604090205490565b610e3f610e39611131565b836111f2565b610e5b5760405162461bcd60e51b81526004016105e590612f28565b610e67848484846118f0565b50505050565b6000610e7882611124565b610e945760405162461bcd60e51b81526004016105e5906129da565b506000908152602e602052604090206001015490565b6060610eb582611124565b610ed15760405162461bcd60e51b81526004016105e590612e98565b6000828152600b602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610f665780601f10610f3b57610100808354040283529160200191610f66565b820191906000526020600020905b815481529060010190602001808311610f4957829003601f168201915b5050600c5493945050505060026000196101006001841615020190911604610f8f579050610523565b805115610fc157600c81604051602001610faa929190612706565b604051602081830303815290604052915050610523565b600c610fcc84611923565b604051602001610fdd929190612706565b604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61102a611131565b6000546001600160a01b039081169116146110575760405162461bcd60e51b81526004016105e590612dd8565b6001600160a01b03811661107d5760405162461bcd60e51b81526004016105e59061295d565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6110e282826118a8565b156110ff5760405162461bcd60e51b81526004016105e5906128d4565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006107906005836119fe565b3390565b600081815260076020526040902080546001600160a01b0319166001600160a01b038416908117909155819061116a82610958565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6111ac82611124565b6111c85760405162461bcd60e51b81526004016105e590612d8c565b6000828152600b60209081526040909120825161069d92840190612332565b6000610790826115f6565b60006111fd82611124565b6112195760405162461bcd60e51b81526004016105e590612ada565b600061122483610958565b9050806001600160a01b0316846001600160a01b0316148061125f5750836001600160a01b0316611254846105be565b6001600160a01b0316145b8061126f575061126f8185610ff4565b949350505050565b826001600160a01b031661128a82610958565b6001600160a01b0316146112b05760405162461bcd60e51b81526004016105e590612e4f565b6001600160a01b0382166112d65760405162461bcd60e51b81526004016105e590612a5f565b6112e1838383611a0a565b6112ec600082611135565b6001600160a01b038316600090815260046020526040902061130e9082611a3a565b506001600160a01b03821660009081526004602052604090206113319082611a46565b5061133e60058284611a52565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061078d8383611a68565b60025460ff166113b35760405162461bcd60e51b81526004016105e5906128a6565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6113e6611131565b6040516113f391906127aa565b60405180910390a1565b600061140882610958565b905061141681600084611a0a565b611421600083611135565b6000828152600b6020526040902054600260001961010060018416150201909116041561145f576000828152600b6020526040812061145f916123b0565b6001600160a01b03811660009081526004602052604090206114819083611a3a565b5061148d600583611aad565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806114d98686611ab9565b9097909650945050505050565b80516106e190600c906020840190612332565b6000611506848484611b15565b90505b9392505050565b60025460ff16156115335760405162461bcd60e51b81526004016105e590612b26565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113e6611131565b6115746001826110d8565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b6115b6600182611b74565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b80546001019055565b5490565b6000828152602e60205260409020818155602c546006820155602d546007820155600182141561168457600e546001820155601454600282015561164861163f611bbc565b601a5490611c35565b6003820155611661611658611bbc565b60205490611c35565b600482015561167a611671611bbc565b60265490611c35565b600582015561185c565b81600214156116e357600f54600182015560155460028201556116b16116a8611bbc565b601b5490611c35565b60038201556116ca6116c1611bbc565b60215490611c35565b600482015561167a6116da611bbc565b60275490611c35565b81600314156117425760105460018201556016546002820155611710611707611bbc565b601c5490611c35565b6003820155611729611720611bbc565b60225490611c35565b600482015561167a611739611bbc565b60285490611c35565b81600414156117a1576011546001820155601754600282015561176f611766611bbc565b601d5490611c35565b600382015561178861177f611bbc565b60235490611c35565b600482015561167a611798611bbc565b60295490611c35565b816005141561180057601254600182015560185460028201556117ce6117c5611bbc565b601e5490611c35565b60038201556117e76117de611bbc565b60245490611c35565b600482015561167a6117f7611bbc565b602a5490611c35565b6013546001820155601954600282015561182461181b611bbc565b601f5490611c35565b600382015561183d611834611bbc565b60255490611c35565b600482015561185661184d611bbc565b602b5490611c35565b60058201555b604051829084907f3875e4386f7452bfca55f5ccee42512ebd09b4e11f447780940be37e24bd88f490600090a3505050565b6106e1828260405180602001604052806000815250611c6f565b60006001600160a01b0382166118d05760405162461bcd60e51b81526004016105e590612e0d565b506001600160a01b03166000908152602091909152604090205460ff1690565b6118fb848484611277565b61190784848484611ca2565b610e675760405162461bcd60e51b81526004016105e59061290b565b60608161194857506040805180820190915260018152600360fc1b6020820152610523565b8160005b811561196057600101600a8204915061194c565b60608167ffffffffffffffff8111801561197957600080fd5b506040519080825280601f01601f1916602001820160405280156119a4576020820181803683370190505b50859350905060001982015b83156119f557600a840660300160f81b828280600190039350815181106119d357fe5b60200101906001600160f81b031916908160001a905350600a840493506119b0565b50949350505050565b600061078d8383611d81565b611a1583838361069d565b611a1d610912565b1561069d5760405162461bcd60e51b81526004016105e59061285b565b600061078d8383611d99565b600061078d8383611e5f565b600061150684846001600160a01b038516611ea9565b81546000908210611a8b5760405162461bcd60e51b81526004016105e590612819565b826000018281548110611a9a57fe5b9060005260206000200154905092915050565b600061078d8383611f40565b815460009081908310611ade5760405162461bcd60e51b81526004016105e590612c88565b6000846000018481548110611aef57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611b455760405162461bcd60e51b81526004016105e59190612806565b50846000016001820381548110611b5857fe5b9060005260206000209060020201600101549150509392505050565b611b7e82826118a8565b611b9a5760405162461bcd60e51b81526004016105e590612c47565b6001600160a01b0316600090815260209190915260409020805460ff19169055565b600080611c22611bd96001611bd36082605f612014565b90612056565b611be4436001612014565b40414442611bf0610722565b604051602001611c04959493929190612787565b60408051601f1981840301815291905280516020909101209061207b565b9050611c2f81605f612056565b91505090565b600082611c4457506000610790565b82820282848281611c5157fe5b041461078d5760405162461bcd60e51b81526004016105e590612cff565b611c7983836120bd565b611c866000848484611ca2565b61069d5760405162461bcd60e51b81526004016105e59061290b565b6000611cb6846001600160a01b0316612181565b611cc25750600161126f565b6060611d4a630a85bd0160e11b611cd7611131565b888787604051602401611ced94939291906127be565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016130fd603291396001600160a01b03881691906121ba565b9050600081806020019051810190611d629190612612565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015611e555783546000198083019190810190600090879083908110611dcc57fe5b9060005260206000200154905080876000018481548110611de957fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611e1957fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610790565b6000915050610790565b6000611e6b8383611d81565b611ea157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610790565b506000610790565b600082815260018401602052604081205480611f0e575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611509565b82856000016001830381548110611f2157fe5b9060005260206000209060020201600101819055506000915050611509565b60008181526001830160205260408120548015611e555783546000198083019190810190600090879083908110611f7357fe5b9060005260206000209060020201905080876000018481548110611f9357fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611fd257fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107909350505050565b600061078d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506121c9565b60008282018381101561078d5760405162461bcd60e51b81526004016105e590612a28565b600061078d83836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f00000000000000008152506121f5565b6001600160a01b0382166120e35760405162461bcd60e51b81526004016105e590612cca565b6120ec81611124565b156121095760405162461bcd60e51b81526004016105e5906129a3565b61211560008383611a0a565b6001600160a01b03821660009081526004602052604090206121379082611a46565b5061214460058284611a52565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061126f575050151592915050565b60606115068484600085612229565b600081848411156121ed5760405162461bcd60e51b81526004016105e59190612806565b505050900390565b600081836122165760405162461bcd60e51b81526004016105e59190612806565b5082848161222057fe5b06949350505050565b606061223485612181565b6122505760405162461bcd60e51b81526004016105e590612fbc565b60006060866001600160a01b0316858760405161226d91906126ea565b60006040518083038185875af1925050503d80600081146122aa576040519150601f19603f3d011682016040523d82523d6000602084013e6122af565b606091505b509150915081156122c357915061126f9050565b8051156122d35780518082602001fd5b8360405162461bcd60e51b81526004016105e59190612806565b60405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061237357805160ff19168380011785556123a0565b828001600101855582156123a0579182015b828111156123a0578251825591602001919060010190612385565b506123ac9291506123f0565b5090565b50805460018160011615610100020316600290046000825580601f106123d65750610820565b601f01602090049060005260206000209081019061082091905b5b808211156123ac57600081556001016123f1565b80356001600160a01b038116811461079057600080fd5b600082601f83011261242c578081fd5b813567ffffffffffffffff80821115612443578283fd5b604051601f8301601f191681016020018281118282101715612463578485fd5b60405282815292508284830160200186101561247e57600080fd5b8260208601602083013760006020848301015250505092915050565b6000602082840312156124ab578081fd5b61078d8383612405565b600080604083850312156124c7578081fd5b6124d18484612405565b91506124e08460208501612405565b90509250929050565b6000806000606084860312156124fd578081fd5b8335612508816130d1565b92506020840135612518816130d1565b929592945050506040919091013590565b6000806000806080858703121561253e578081fd5b6125488686612405565b93506125578660208701612405565b925060408501359150606085013567ffffffffffffffff811115612579578182fd5b6125858782880161241c565b91505092959194509250565b600080604083850312156125a3578182fd5b6125ad8484612405565b9150602083013580151581146125c1578182fd5b809150509250929050565b600080604083850312156125de578182fd5b6125e88484612405565b946020939093013593505050565b600060208284031215612607578081fd5b813561078d816130e6565b600060208284031215612623578081fd5b815161078d816130e6565b60006020828403121561263f578081fd5b813567ffffffffffffffff811115612655578182fd5b61126f8482850161241c565b600060208284031215612672578081fd5b5035919050565b6000806040838503121561268b578182fd5b82359150602083013567ffffffffffffffff8111156126a8578182fd5b6126b48582860161241c565b9150509250929050565b600081518084526126d68160208601602086016130a5565b601f01601f19169290920160200192915050565b600082516126fc8184602087016130a5565b9190910192915050565b6000808454600180821660008114612725576001811461273c5761276b565b60ff198316865260028304607f168601935061276b565b600283048886526020808720875b838110156127635781548a82015290850190820161274a565b505050860193505b505050835161277e8183602088016130a5565b01949350505050565b948552602085019390935260408401919091526060830152608082015260a00190565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127f1908301846126be565b9695505050505050565b901515815260200190565b60006020825261078d60208301846126be565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252602b908201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760408201526a1a1a5b19481c185d5cd95960aa1b606082015260800190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b6020808252601f908201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252602e908201527f636865636b20686f757365206174747269627574657320666f72206e6f6e657860408201526d1a5cdd195b9d081d1bdad95b925960921b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526030908201527f4d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766560408201526f20746865204d696e74657220726f6c6560801b606082015260800190565b60208082526021908201527f526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6040820152606560f81b606082015260800190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252602c908201527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526022908201527f526f6c65733a206163636f756e7420697320746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526023908201527f6c6576656c206973206e6f7420696e207468652072616e6765206f66205b312c60408201526220365d60e81b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b600061010082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015160c083015260e083015160e083015292915050565b90815260200190565b60005b838110156130c05781810151838201526020016130a8565b83811115610e675750506000910152565b6001600160a01b038116811461082057600080fd5b6001600160e01b03198116811461082057600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea26469706673582212204213ba7ef429037fcae10ecdce16f40c61d35b090276a2df1cd9296a97861ce364736f6c634300060c0033

Deployed ByteCode Sourcemap

293:10311:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;948:140:3;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4411:90:4;;;:::i;:::-;;;;;;;:::i;7018:209::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;6576:381::-;;;;;;:::i;:::-;;:::i;:::-;;4087:127:7;;;;;;:::i;:::-;;:::i;5904:268::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;6086:200:4:-;;;:::i;7866:300::-;;;;;;:::i;:::-;;:::i;5863:152::-;;;;;;:::i;:::-;;:::i;3915:63:7:-;;;:::i;8232:149:4:-;;;;;;:::i;:::-;;:::i;3645:198:7:-;;;;;;:::i;:::-;;:::i;6358:161:4:-;;;;;;:::i;:::-;;:::i;4220:270:7:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3984:97::-;;;;;;:::i;:::-;;:::i;1035:76:16:-;;;:::i;6178:286:7:-;;;;;;:::i;:::-;;:::i;4182:167:4:-;;;;;;:::i;:::-;;:::i;5697:87::-;;;:::i;5066:268:7:-;;;;;;:::i;:::-;;:::i;3914:211:4:-;;;;;;:::i;:::-;;:::i;1376:145:15:-;;;:::i;3850:59:7:-;;;:::i;753:77:15:-;;;:::i;5618:280:7:-;;;;;;:::i;:::-;;:::i;4565:94:4:-;;;:::i;664:97:14:-;;;;;;:::i;:::-;;:::i;767:85::-;;;:::i;3200:439:7:-;;;;;;:::i;:::-;;:::i;7294:290:4:-;;;;;;:::i;:::-;;:::i;551:107:14:-;;;;;;:::i;:::-;;:::i;6470:292:7:-;;;;;;:::i;:::-;;:::i;5340:272::-;;;;;;:::i;:::-;;:::i;4496:270::-;;;;;;:::i;:::-;;:::i;8447:282:4:-;;;;;;:::i;:::-;;:::i;4772:288:7:-;;;;;;:::i;:::-;;:::i;4725:740:4:-;;;;;;:::i;:::-;;:::i;7650:154::-;;;;;;:::i;:::-;;:::i;1670:240:15:-;;;;;;:::i;:::-;;:::i;948:140:3:-;-1:-1:-1;;;;;;1048:33:3;;1025:4;1048:33;;;:20;:33;;;;;;;;948:140;;;;:::o;4411:90:4:-;4489:5;4482:12;;;;;;;;-1:-1:-1;;4482:12:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4457:13;;4482:12;;4489:5;;4482:12;;4489:5;4482:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4411:90;:::o;7018:209::-;7086:7;7113:16;7121:7;7113;:16::i;:::-;7105:73;;;;-1:-1:-1;;;7105:73:4;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;7196:24:4;;;;:15;:24;;;;;;-1:-1:-1;;;;;7196:24:4;;7018:209::o;6576:381::-;6656:13;6672:16;6680:7;6672;:16::i;:::-;6656:32;;6712:5;-1:-1:-1;;;;;6706:11:4;:2;-1:-1:-1;;;;;6706:11:4;;;6698:57;;;;-1:-1:-1;;;6698:57:4;;;;;;;:::i;:::-;6790:5;-1:-1:-1;;;;;6774:21:4;:12;:10;:12::i;:::-;-1:-1:-1;;;;;6774:21:4;;:62;;;;6799:37;6816:5;6823:12;:10;:12::i;6799:37::-;6766:152;;;;-1:-1:-1;;;6766:152:4;;;;;;;:::i;:::-;6929:21;6938:2;6942:7;6929:8;:21::i;:::-;6576:381;;;:::o;4087:127:7:-;967:12:15;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:15;;;:22;;;949:67;;;;-1:-1:-1;;;949:67:15;;;;;;;:::i;:::-;4176:31:7::1;4189:7;4198:8;4176:12;:31::i;:::-;4087:127:::0;;:::o;5904:268::-;5975:7;6002:16;6010:7;6002;:16::i;:::-;5994:75;;;;-1:-1:-1;;;5994:75:7;;;;;;;:::i;:::-;-1:-1:-1;6079:28:7;6110:24;;;:15;:24;;;;;6151:14;;;;5904:268::o;6086:200:4:-;6139:7;6258:21;:12;:19;:21::i;:::-;6251:28;;6086:200;:::o;7866:300::-;8025:41;8044:12;:10;:12::i;:::-;8058:7;8025:18;:41::i;:::-;8017:103;;;;-1:-1:-1;;;8017:103:4;;;;;;;:::i;:::-;8131:28;8141:4;8147:2;8151:7;8131:9;:28::i;5863:152::-;-1:-1:-1;;;;;5978:20:4;;5952:7;5978:20;;;:13;:20;;;;;:30;;6002:5;5978:23;:30::i;:::-;5971:37;;5863:152;;;;;:::o;3915:63:7:-;967:12:15;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:15;;;:22;;;949:67;;;;-1:-1:-1;;;949:67:15;;;;;;;:::i;:::-;3961:10:7::1;:8;:10::i;:::-;3915:63::o:0;8232:149:4:-;8335:39;8352:4;8358:2;8362:7;8335:39;;;;;;;;;;;;:16;:39::i;3645:198:7:-;3718:41;3737:12;:10;:12::i;3718:41::-;3710:102;;;;-1:-1:-1;;;3710:102:7;;;;;;;:::i;:::-;3822:14;3828:7;3822:5;:14::i;:::-;3645:198;:::o;6358:161:4:-;6425:7;;6466:22;:12;6482:5;6466:15;:22::i;:::-;-1:-1:-1;6444:44:4;6358:161;-1:-1:-1;;;6358:161:4:o;4220:270:7:-;4288:17;;:::i;:::-;4325:16;4333:7;4325;:16::i;:::-;4317:75;;;;-1:-1:-1;;;4317:75:7;;;;;;;:::i;:::-;-1:-1:-1;4402:28:7;4433:24;;;:15;:24;;;;;;;;;4467:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4220:270::o;3984:97::-;967:12:15;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:15;;;:22;;;949:67;;;;-1:-1:-1;;;949:67:15;;;;;;;:::i;:::-;4054:20:7::1;4066:7;4054:11;:20::i;1035:76:16:-:0;1097:7;;;;1035:76;:::o;6178:286:7:-;6258:7;6285:16;6293:7;6285;:16::i;:::-;6277:75;;;;-1:-1:-1;;;6277:75:7;;;;;;;:::i;:::-;-1:-1:-1;6362:28:7;6393:24;;;:15;:24;;;;;6434:23;;;;6178:286::o;4182:167:4:-;4246:7;4272:70;4289:7;4272:70;;;;;;;;;;;;;;;;;:12;;:70;:16;:70::i;5697:87::-;5769:8;5762:15;;;;;;;;-1:-1:-1;;5762:15:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5737:13;;5762:15;;5769:8;;5762:15;;5769:8;5762:15;;;;;;;;;;;;;;;;;;;;;;;;5066:268:7;5137:7;5164:16;5172:7;5164;:16::i;:::-;5156:75;;;;-1:-1:-1;;;5156:75:7;;;;;;;:::i;:::-;-1:-1:-1;5241:28:7;5272:24;;;:15;:24;;;;;5313:14;;;;5066:268::o;3914:211:4:-;3978:7;-1:-1:-1;;;;;4005:19:4;;3997:74;;;;-1:-1:-1;;;3997:74:4;;;;;;;:::i;:::-;-1:-1:-1;;;;;4089:20:4;;;;;;:13;:20;;;;;:29;;:27;:29::i;1376:145:15:-;967:12;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:15;;;:22;;;949:67;;;;-1:-1:-1;;;949:67:15;;;;;;;:::i;:::-;1482:1:::1;1466:6:::0;;1445:40:::1;::::0;-1:-1:-1;;;;;1466:6:15;;::::1;::::0;1445:40:::1;::::0;1482:1;;1445:40:::1;1512:1;1495:19:::0;;-1:-1:-1;;;;;;1495:19:15::1;::::0;;1376:145::o;3850:59:7:-;967:12:15;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:15;;;:22;;;949:67;;;;-1:-1:-1;;;949:67:15;;;;;;;:::i;:::-;3894:8:7::1;:6;:8::i;753:77:15:-:0;791:7;817:6;-1:-1:-1;;;;;817:6:15;753:77;:::o;5618:280:7:-;5695:7;5722:16;5730:7;5722;:16::i;:::-;5714:75;;;;-1:-1:-1;;;5714:75:7;;;;;;;:::i;:::-;-1:-1:-1;5799:28:7;5830:24;;;:15;:24;;;;;5871:20;;;;5618:280::o;4565:94:4:-;4645:7;4638:14;;;;;;;;-1:-1:-1;;4638:14:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4613:13;;4638:14;;4645:7;;4638:14;;4645:7;4638:14;;;;;;;;;;;;;;;;;;;;;;;;664:97:14;967:12:15;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:15;;;:22;;;949:67;;;;-1:-1:-1;;;949:67:15;;;;;;;:::i;:::-;735:19:14::1;746:7;735:10;:19::i;767:85::-:0;818:27;832:12;:10;:12::i;:::-;818:13;:27::i;3200:439:7:-;452:22:14;461:12;:10;:12::i;452:22::-;444:83;;;;-1:-1:-1;;;444:83:14;;;;;;;:::i;:::-;3307:1:7::1;3298:5;:10;;:23;;;;;3320:1;3312:5;:9;;3298:23;3290:71;;;;-1:-1:-1::0;;;3290:71:7::1;;;;;;;:::i;:::-;3397:22;:10;:20;:22::i;:::-;3429:15;3447:20;:10;:18;:20::i;:::-;3429:38;;3565:35;3585:7;3594:5;3565:19;:35::i;:::-;3610:22;3620:2;3624:7;3610:9;:22::i;7294:290:4:-:0;7408:12;:10;:12::i;:::-;-1:-1:-1;;;;;7396:24:4;:8;-1:-1:-1;;;;;7396:24:4;;;7388:62;;;;-1:-1:-1;;;7388:62:4;;;;;;;:::i;:::-;7506:8;7461:18;:32;7480:12;:10;:12::i;:::-;-1:-1:-1;;;;;7461:32:4;;;;;;;;;;;;;;;;;-1:-1:-1;7461:32:4;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;7461:53:4;;;;;;;;;;;7544:12;:10;:12::i;:::-;-1:-1:-1;;;;;7529:48:4;;7568:8;7529:48;;;;;;:::i;:::-;;;;;;;;7294:290;;:::o;551:107:14:-;607:4;630:21;:8;643:7;630:12;:21::i;6470:292:7:-;6553:7;6580:16;6588:7;6580;:16::i;:::-;6572:75;;;;-1:-1:-1;;;6572:75:7;;;;;;;:::i;:::-;-1:-1:-1;6657:28:7;6688:24;;;:15;:24;;;;;6729:26;;;;6470:292::o;5340:272::-;5413:7;5440:16;5448:7;5440;:16::i;:::-;5432:75;;;;-1:-1:-1;;;5432:75:7;;;;;;;:::i;:::-;-1:-1:-1;5517:28:7;5548:24;;;:15;:24;;;;;5589:16;;;;5340:272::o;4496:270::-;4568:7;4595:16;4603:7;4595;:16::i;:::-;4587:75;;;;-1:-1:-1;;;4587:75:7;;;;;;;:::i;:::-;-1:-1:-1;4672:28:7;4703:24;;;:15;:24;;;;;4744:15;;4496:270::o;8447:282:4:-;8578:41;8597:12;:10;:12::i;:::-;8611:7;8578:18;:41::i;:::-;8570:103;;;;-1:-1:-1;;;8570:103:4;;;;;;;:::i;:::-;8683:39;8697:4;8703:2;8707:7;8716:5;8683:13;:39::i;:::-;8447:282;;;;:::o;4772:288:7:-;4853:7;4880:16;4888:7;4880;:16::i;:::-;4872:75;;;;-1:-1:-1;;;4872:75:7;;;;;;;:::i;:::-;-1:-1:-1;4957:28:7;4988:24;;;:15;:24;;;;;5029;;;;4772:288::o;4725:740:4:-;4790:13;4823:16;4831:7;4823;:16::i;:::-;4815:76;;;;-1:-1:-1;;;4815:76:4;;;;;;;:::i;:::-;4928:19;;;;:10;:19;;;;;;;;;4902:45;;;;;;-1:-1:-1;;4902:45:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;:45;;;4928:19;4902:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5026:8:4;5020:22;4902:45;;-1:-1:-1;;;;5020:22:4;-1:-1:-1;;5020:22:4;;;;;;;;;;;5016:74;;5070:9;-1:-1:-1;5063:16:4;;5016:74;5192:23;;:27;5188:110;;5266:8;5276:9;5249:37;;;;;;;;;:::i;:::-;;;;;;;;;;;;;5235:52;;;;;5188:110;5428:8;5438:18;:7;:16;:18::i;:::-;5411:46;;;;;;;;;:::i;:::-;;;;;;;;;;;;;5397:61;;;4725:740;;;:::o;7650:154::-;-1:-1:-1;;;;;7762:25:4;;;7739:4;7762:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;7650:154::o;1670:240:15:-;967:12;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:15;;;:22;;;949:67;;;;-1:-1:-1;;;949:67:15;;;;;;;:::i;:::-;-1:-1:-1;;;;;1758:22:15;::::1;1750:73;;;;-1:-1:-1::0;;;1750:73:15::1;;;;;;;:::i;:::-;1859:6;::::0;;1838:38:::1;::::0;-1:-1:-1;;;;;1838:38:15;;::::1;::::0;1859:6;::::1;::::0;1838:38:::1;::::0;::::1;1886:6;:17:::0;;-1:-1:-1;;;;;;1886:17:15::1;-1:-1:-1::0;;;;;1886:17:15;;;::::1;::::0;;;::::1;::::0;;1670:240::o;292:175:17:-;369:18;373:4;379:7;369:3;:18::i;:::-;368:19;360:63;;;;-1:-1:-1;;;360:63:17;;;;;;;:::i;:::-;-1:-1:-1;;;;;433:20:17;:11;:20;;;;;;;;;;;:27;;-1:-1:-1;;433:27:17;456:4;433:27;;;292:175::o;10162:117:4:-;10219:4;10242:30;:12;10264:7;10242:21;:30::i;590:104:1:-;677:10;590:104;:::o;15818:155:4:-;15883:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;15883:29:4;-1:-1:-1;;;;;15883:29:4;;;;;;;;:24;;15936:16;15883:24;15936:7;:16::i;:::-;-1:-1:-1;;;;;15927:39:4;;;;;;;;;;;15818:155;;:::o;14137:212::-;14236:16;14244:7;14236;:16::i;:::-;14228:73;;;;-1:-1:-1;;;14228:73:4;;;;;;;:::i;:::-;14311:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;7023:121:5:-;7092:7;7118:19;7126:3;7118:7;:19::i;10437:329:4:-;10522:4;10546:16;10554:7;10546;:16::i;:::-;10538:73;;;;-1:-1:-1;;;10538:73:4;;;;;;;:::i;:::-;10621:13;10637:16;10645:7;10637;:16::i;:::-;10621:32;;10682:5;-1:-1:-1;;;;;10671:16:4;:7;-1:-1:-1;;;;;10671:16:4;;:51;;;;10715:7;-1:-1:-1;;;;;10691:31:4;:20;10703:7;10691:11;:20::i;:::-;-1:-1:-1;;;;;10691:31:4;;10671:51;:87;;;;10726:32;10743:5;10750:7;10726:16;:32::i;:::-;10663:96;10437:329;-1:-1:-1;;;;10437:329:4:o;13431:559::-;13548:4;-1:-1:-1;;;;;13528:24:4;:16;13536:7;13528;:16::i;:::-;-1:-1:-1;;;;;13528:24:4;;13520:78;;;;-1:-1:-1;;;13520:78:4;;;;;;;:::i;:::-;-1:-1:-1;;;;;13616:16:4;;13608:65;;;;-1:-1:-1;;;13608:65:4;;;;;;;:::i;:::-;13684:39;13705:4;13711:2;13715:7;13684:20;:39::i;:::-;13785:29;13802:1;13806:7;13785:8;:29::i;:::-;-1:-1:-1;;;;;13825:19:4;;;;;;:13;:19;;;;;:35;;13852:7;13825:26;:35::i;:::-;-1:-1:-1;;;;;;13870:17:4;;;;;;:13;:17;;;;;:30;;13892:7;13870:21;:30::i;:::-;-1:-1:-1;13911:29:4;:12;13928:7;13937:2;13911:16;:29::i;:::-;;13975:7;13971:2;-1:-1:-1;;;;;13956:27:4;13965:4;-1:-1:-1;;;;;13956:27:4;;;;;;;;;;;13431:559;;;:::o;7649:135:6:-;7720:7;7754:22;7758:3;7770:5;7754:3;:22::i;2037:117:16:-;1605:7;;;;1597:40;;;;-1:-1:-1;;;1597:40:16;;;;;;;:::i;:::-;2095:7:::1;:15:::0;;-1:-1:-1;;2095:15:16::1;::::0;;2125:22:::1;2134:12;:10;:12::i;:::-;2125:22;;;;;;:::i;:::-;;;;;;;;2037:117::o:0;12605:502:4:-;12664:13;12680:16;12688:7;12680;:16::i;:::-;12664:32;;12707:48;12728:5;12743:1;12747:7;12707:20;:48::i;:::-;12793:29;12810:1;12814:7;12793:8;:29::i;:::-;12878:19;;;;:10;:19;;;;;12872:33;;-1:-1:-1;;12872:33:4;;;;;;;;;;;:38;12868:95;;12933:19;;;;:10;:19;;;;;12926:26;;;:::i;:::-;-1:-1:-1;;;;;12973:20:4;;;;;;:13;:20;;;;;:36;;13001:7;12973:27;:36::i;:::-;-1:-1:-1;13020:28:4;:12;13040:7;13020:19;:28::i;:::-;-1:-1:-1;13064:36:4;;13092:7;;13088:1;;-1:-1:-1;;;;;13064:36:4;;;;;13088:1;;13064:36;12605:502;;:::o;7472:224:5:-;7552:7;;;;7611:22;7615:3;7627:5;7611:3;:22::i;:::-;7580:53;;;;-1:-1:-1;7472:224:5;-1:-1:-1;;;;;7472:224:5:o;14572:98:4:-;14644:19;;;;:8;;:19;;;;;:::i;8115:202:5:-;8222:7;8264:44;8269:3;8289;8295:12;8264:4;:44::i;:::-;8256:53;-1:-1:-1;8115:202:5;;;;;;:::o;1790:115:16:-;1341:7;;;;1340:8;1332:37;;;;-1:-1:-1;;;1332:37:16;;;;;;;:::i;:::-;1849:7:::1;:14:::0;;-1:-1:-1;;1849:14:16::1;1859:4;1849:14;::::0;;1878:20:::1;1885:12;:10;:12::i;858:127:14:-:0;922:21;:8;935:7;922:12;:21::i;:::-;958:20;;-1:-1:-1;;;;;958:20:14;;;;;;;;858:127;:::o;991:135::-;1058:24;:8;1074:7;1058:15;:24::i;:::-;1097:22;;-1:-1:-1;;;;;1097:22:14;;;;;;;;991:135;:::o;1210:178:2:-;1362:19;;1380:1;1362:19;;;1210:178::o;1092:112::-;1183:14;;1092:112::o;7151:2794:7:-;7230:28;7261:24;;;:15;:24;;;;;7296:23;;;7355:22;;7329:23;;;:48;7416:25;;7387:26;;;:54;7464:1;7455:10;;7451:2438;;;7508:21;;7481:24;;;:48;7560:11;;7543:14;;;:28;7651:41;7669:22;:20;:22::i;:::-;7651:13;;;:17;:41::i;:::-;7632:16;;;:60;7729:45;7751:22;:20;:22::i;:::-;7729:17;;;:21;:45::i;:::-;7706:20;;;:68;7805:39;7821:22;:20;:22::i;:::-;7805:11;;;:15;:39::i;:::-;7788:14;;;:56;7451:2438;;;7865:5;7874:1;7865:10;7861:2028;;;7918:21;;7891:24;;;:48;7970:11;;7953:14;;;:28;8061:41;8079:22;:20;:22::i;:::-;8061:13;;;:17;:41::i;:::-;8042:16;;;:60;8139:45;8161:22;:20;:22::i;:::-;8139:17;;;:21;:45::i;:::-;8116:20;;;:68;8215:39;8231:22;:20;:22::i;:::-;8215:11;;;:15;:39::i;7861:2028::-;8275:5;8284:1;8275:10;8271:1618;;;8328:21;;8301:24;;;:48;8380:11;;8363:14;;;:28;8471:41;8489:22;:20;:22::i;:::-;8471:13;;;:17;:41::i;:::-;8452:16;;;:60;8549:45;8571:22;:20;:22::i;:::-;8549:17;;;:21;:45::i;:::-;8526:20;;;:68;8625:39;8641:22;:20;:22::i;:::-;8625:11;;;:15;:39::i;8271:1618::-;8685:5;8694:1;8685:10;8681:1208;;;8738:21;;8711:24;;;:48;8790:11;;8773:14;;;:28;8881:41;8899:22;:20;:22::i;:::-;8881:13;;;:17;:41::i;:::-;8862:16;;;:60;8959:45;8981:22;:20;:22::i;:::-;8959:17;;;:21;:45::i;:::-;8936:20;;;:68;9035:39;9051:22;:20;:22::i;:::-;9035:11;;;:15;:39::i;8681:1208::-;9095:5;9104:1;9095:10;9091:798;;;9148:21;;9121:24;;;:48;9200:11;;9183:14;;;:28;9291:41;9309:22;:20;:22::i;:::-;9291:13;;;:17;:41::i;:::-;9272:16;;;:60;9369:45;9391:22;:20;:22::i;:::-;9369:17;;;:21;:45::i;:::-;9346:20;;;:68;9445:39;9461:22;:20;:22::i;:::-;9445:11;;;:15;:39::i;9091:798::-;9542:21;;9515:24;;;:48;9594:11;;9577:14;;;:28;9685:41;9703:22;:20;:22::i;:::-;9685:13;;;:17;:41::i;:::-;9666:16;;;:60;9763:45;9785:22;:20;:22::i;:::-;9763:17;;;:21;:45::i;:::-;9740:20;;;:68;9839:39;9855:22;:20;:22::i;:::-;9839:11;;;:15;:39::i;:::-;9822:14;;;:56;9091:798;9904:34;;9932:5;;9923:7;;9904:34;;;;;7151:2794;;;:::o;11097:108:4:-;11172:26;11182:2;11186:7;11172:26;;;;;;;;;;;;:9;:26::i;811:200:17:-;883:4;-1:-1:-1;;;;;907:21:17;;899:68;;;;-1:-1:-1;;;899:68:17;;;;;;;:::i;:::-;-1:-1:-1;;;;;;984:20:17;:11;:20;;;;;;;;;;;;;;;811:200::o;9590:269:4:-;9703:28;9713:4;9719:2;9723:7;9703:9;:28::i;:::-;9749:48;9772:4;9778:2;9782:7;9791:5;9749:22;:48::i;:::-;9741:111;;;;-1:-1:-1;;;9741:111:4;;;;;;;:::i;202:723:19:-;258:13;475:10;471:51;;-1:-1:-1;501:10:19;;;;;;;;;;;;-1:-1:-1;;;501:10:19;;;;;;471:51;546:5;531:12;585:75;592:9;;585:75;;617:8;;647:2;639:10;;;;585:75;;;669:19;701:6;691:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;691:17:19;-1:-1:-1;761:5:19;;-1:-1:-1;669:39:19;-1:-1:-1;;;734:10:19;;776:112;783:9;;776:112;;849:2;842:4;:9;837:2;:14;826:27;;808:6;815:7;;;;;;;808:15;;;;;;;;;;;:45;-1:-1:-1;;;;;808:45:19;;;;;;;;-1:-1:-1;875:2:19;867:10;;;;776:112;;;-1:-1:-1;911:6:19;202:723;-1:-1:-1;;;;202:723:19:o;6791:149:5:-;6875:4;6898:35;6908:3;6928;6898:9;:35::i;6908:237:7:-;7017:45;7044:4;7050:2;7054:7;7017:26;:45::i;:::-;7082:8;:6;:8::i;:::-;7081:9;7073:65;;;;-1:-1:-1;;;7073:65:7;;;;;;;:::i;6764:135:6:-;6834:4;6857:35;6865:3;6885:5;6857:7;:35::i;6467:129::-;6534:4;6557:32;6562:3;6582:5;6557:4;:32::i;6239:174:5:-;6328:4;6351:55;6356:3;6376;-1:-1:-1;;;;;6390:14:5;;6351:4;:55::i;4423:201:6:-;4517:18;;4490:7;;4517:26;-1:-1:-1;4509:73:6;;;;-1:-1:-1;;;4509:73:6;;;;;;;:::i;:::-;4599:3;:11;;4611:5;4599:18;;;;;;;;;;;;;;;;4592:25;;4423:201;;;;:::o;6572:140:5:-;6649:4;6672:33;6680:3;6700;6672:7;:33::i;4934:274::-;5037:19;;5001:7;;;;5037:27;-1:-1:-1;5029:74:5;;;;-1:-1:-1;;;5029:74:5;;;;;;;:::i;:::-;5114:22;5139:3;:12;;5152:5;5139:19;;;;;;;;;;;;;;;;;;5114:44;;5176:5;:10;;;5188:5;:12;;;5168:33;;;;;4934:274;;;;;:::o;5615:315::-;5709:7;5747:17;;;:12;;;:17;;;;;;5797:12;5782:13;5774:36;;;;-1:-1:-1;;;5774:36:5;;;;;;;;:::i;:::-;;5863:3;:12;;5887:1;5876:8;:12;5863:26;;;;;;;;;;;;;;;;;;:33;;;5856:40;;;5615:315;;;;;:::o;542:180:17:-;621:18;625:4;631:7;621:3;:18::i;:::-;613:64;;;;-1:-1:-1;;;613:64:17;;;;;;;:::i;:::-;-1:-1:-1;;;;;687:20:17;710:5;687:20;;;;;;;;;;;:28;;-1:-1:-1;;687:28:17;;;542:180::o;10025:577:7:-;10079:7;;10180:369;10507:41;10546:1;10507:34;690:3;631:2;10507:18;:34::i;:::-;:38;;:41::i;:::-;10284:19;:12;10301:1;10284:16;:19::i;:::-;10274:30;10335:14;10372:16;10410:15;10447:13;:11;:13::i;:::-;10228:250;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;10228:250:7;;;;;;;;;10201:291;;10228:250;10201:291;;;;;10180:326;:369::i;:::-;10160:389;-1:-1:-1;10566:29:7;10160:389;631:2;10566:13;:29::i;:::-;10559:36;;;10025:577;:::o;2180:459:18:-;2238:7;2479:6;2475:45;;-1:-1:-1;2508:1:18;2501:8;;2475:45;2542:5;;;2546:1;2542;:5;:1;2565:5;;;;;:10;2557:56;;;;-1:-1:-1;;;2557:56:18;;;;;;;:::i;11426:247:4:-;11521:18;11527:2;11531:7;11521:5;:18::i;:::-;11557:54;11588:1;11592:2;11596:7;11605:5;11557:22;:54::i;:::-;11549:117;;;;-1:-1:-1;;;11549:117:4;;;;;;;:::i;15223:589::-;15343:4;15368:15;:2;-1:-1:-1;;;;;15368:13:4;;:15::i;:::-;15363:58;;-1:-1:-1;15406:4:4;15399:11;;15363:58;15430:23;15456:246;-1:-1:-1;;;15567:12:4;:10;:12::i;:::-;15593:4;15611:7;15632:5;15472:175;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;15472:175:4;;;;;;;-1:-1:-1;;;;;15472:175:4;;;;;;;;;;;15456:246;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15456:15:4;;;:246;:15;:246::i;:::-;15430:272;;15712:13;15739:10;15728:32;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;15778:26:4;-1:-1:-1;;;15778:26:4;;-1:-1:-1;;;15223:589:4;;;;;;:::o;4270:123:5:-;4341:4;4364:17;;;:12;;;;;:17;;;;;;:22;;;4270:123::o;2183:1512:6:-;2249:4;2386:19;;;:12;;;:19;;;;;;2420:15;;2416:1273;;2849:18;;-1:-1:-1;;2801:14:6;;;;2849:22;;;;2777:21;;2849:3;;:22;;3131;;;;;;;;;;;;;;3111:42;;3274:9;3245:3;:11;;3257:13;3245:26;;;;;;;;;;;;;;;;;;;:38;;;;3349:23;;;3391:1;3349:12;;;:23;;;;;;3375:17;;;3349:43;;3498:17;;3349:3;;3498:17;;;;;;;;;;;;;;;;;;;;;;3590:3;:12;;:19;3603:5;3590:19;;;;;;;;;;;3583:26;;;3631:4;3624:11;;;;;;;;2416:1273;3673:5;3666:12;;;;;1611:404;1674:4;1695:21;1705:3;1710:5;1695:9;:21::i;:::-;1690:319;;-1:-1:-1;1732:23:6;;;;;;;;:11;:23;;;;;;;;;;;;;1912:18;;1890:19;;;:12;;;:19;;;;;;:40;;;;1944:11;;1690:319;-1:-1:-1;1993:5:6;1986:12;;1828:678:5;1904:4;2037:17;;;:12;;;:17;;;;;;2069:13;2065:435;;-1:-1:-1;;2153:38:5;;;;;;;;;;;;;;;;;;2135:57;;;;;;;;:12;:57;;;;;;;;;;;;;;;;;;;;;;;;2347:19;;2327:17;;;:12;;;:17;;;;;;;:39;2380:11;;2065:435;2458:5;2422:3;:12;;2446:1;2435:8;:12;2422:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;2484:5;2477:12;;;;;2674:1517;2738:4;2871:17;;;:12;;;:17;;;;;;2903:13;;2899:1286;;3329:19;;-1:-1:-1;;3283:12:5;;;;3329:23;;;;3259:21;;3329:3;;:23;;3621;;;;;;;;;;;;;;;;3592:52;;3766:9;3736:3;:12;;3749:13;3736:27;;;;;;;;;;;;;;;;:39;;:27;;;;;:39;;;;;;;;;;;;;;;3854:14;;3841:28;;:12;;;:28;;;;;3872:17;;;3841:48;;3995:18;;3841:3;;3995:18;;;;;;;;;;;;;;-1:-1:-1;;3995:18:5;;;;;;;;;;;;;;;;;;;;;4088:17;;;:12;;;:17;;;;;;4081:24;;;;3995:18;-1:-1:-1;4120:11:5;;-1:-1:-1;;;;4120:11:5;1321:134:18;1379:7;1405:43;1409:1;1412;1405:43;;;;;;;;;;;;;;;;;:3;:43::i;874:176::-;932:7;963:5;;;986:6;;;;978:46;;;;-1:-1:-1;;;978:46:18;;;;;;;:::i;4436:128::-;4494:7;4520:37;4524:1;4527;4520:37;;;;;;;;;;;;;;;;;:3;:37::i;11995:393:4:-;-1:-1:-1;;;;;12074:16:4;;12066:61;;;;-1:-1:-1;;;12066:61:4;;;;;;;:::i;:::-;12146:16;12154:7;12146;:16::i;:::-;12145:17;12137:58;;;;-1:-1:-1;;;12137:58:4;;;;;;;:::i;:::-;12206:45;12235:1;12239:2;12243:7;12206:20;:45::i;:::-;-1:-1:-1;;;;;12262:17:4;;;;;;:13;:17;;;;;:30;;12284:7;12262:21;:30::i;:::-;-1:-1:-1;12303:29:4;:12;12320:7;12329:2;12303:16;:29::i;:::-;-1:-1:-1;12348:33:4;;12373:7;;-1:-1:-1;;;;;12348:33:4;;;12365:1;;12348:33;;12365:1;;12348:33;11995:393;;:::o;718:610:0:-;778:4;1239:20;;1084:66;1278:23;;;;;;:42;;-1:-1:-1;;1305:15:0;;;1270:51;-1:-1:-1;;718:610:0:o;3770:194::-;3873:12;3904:53;3927:6;3935:4;3941:1;3944:12;3904:22;:53::i;1746:187:18:-;1832:7;1867:12;1859:6;;;;1851:29;;;;-1:-1:-1;;;1851:29:18;;;;;;;;:::i;:::-;-1:-1:-1;;;1902:5:18;;;1746:187::o;5035:163::-;5121:7;5156:12;5148:6;5140:29;;;;-1:-1:-1;;;5140:29:18;;;;;;;;:::i;:::-;;5190:1;5186;:5;;;;;;;5035:163;-1:-1:-1;;;;5035:163:18:o;5117:958:0:-;5247:12;5279:18;5290:6;5279:10;:18::i;:::-;5271:60;;;;-1:-1:-1;;;5271:60:0;;;;;;;:::i;:::-;5402:12;5416:23;5443:6;-1:-1:-1;;;;;5443:11:0;5463:8;5474:4;5443:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5401:78;;;;5493:7;5489:580;;;5523:10;-1:-1:-1;5516:17:0;;-1:-1:-1;5516:17:0;5489:580;5634:17;;:21;5630:429;;5892:10;5886:17;5952:15;5939:10;5935:2;5931:19;5924:44;5841:145;6031:12;6024:20;;-1:-1:-1;;;6024:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:130;72:20;;-1:-1;;;;;41492:54;;42692:35;;42682:2;;42741:1;;42731:12;548:440;;649:3;642:4;634:6;630:17;626:27;616:2;;-1:-1;;657:12;616:2;704:6;691:20;39397:18;;39389:6;39386:30;39383:2;;;-1:-1;;39419:12;39383:2;39053;39047:9;39492;39473:17;;-1:-1;;39469:33;39079:17;;39560:4;39079:17;39139:34;;;39175:22;;;39136:62;39133:2;;;-1:-1;;39201:12;39133:2;39053;39220:22;796:21;;;717:73;-1:-1;717:73;896:16;;;39560:4;896:16;893:25;-1:-1;890:2;;;931:1;;921:12;890:2;42098:6;39560:4;838:6;834:17;39560:4;872:5;868:16;42075:30;42154:1;39560:4;42145:6;872:5;42136:16;;42129:27;;;;609:379;;;;:::o;1584:241::-;;1688:2;1676:9;1667:7;1663:23;1659:32;1656:2;;;-1:-1;;1694:12;1656:2;1756:53;1801:7;1777:22;1756:53;:::i;1832:366::-;;;1953:2;1941:9;1932:7;1928:23;1924:32;1921:2;;;-1:-1;;1959:12;1921:2;2021:53;2066:7;2042:22;2021:53;:::i;:::-;2011:63;;2129:53;2174:7;2111:2;2154:9;2150:22;2129:53;:::i;:::-;2119:63;;1915:283;;;;;:::o;2205:491::-;;;;2343:2;2331:9;2322:7;2318:23;2314:32;2311:2;;;-1:-1;;2349:12;2311:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;2401:63;-1:-1;2501:2;2540:22;;72:20;97:33;72:20;97:33;:::i;:::-;2305:391;;2509:63;;-1:-1;;;2609:2;2648:22;;;;1514:20;;2305:391::o;2703:721::-;;;;;2867:3;2855:9;2846:7;2842:23;2838:33;2835:2;;;-1:-1;;2874:12;2835:2;2936:53;2981:7;2957:22;2936:53;:::i;:::-;2926:63;;3044:53;3089:7;3026:2;3069:9;3065:22;3044:53;:::i;:::-;3034:63;;3134:2;3177:9;3173:22;1514:20;3142:63;;3270:2;3259:9;3255:18;3242:32;3294:18;3286:6;3283:30;3280:2;;;-1:-1;;3316:12;3280:2;3346:62;3400:7;3391:6;3380:9;3376:22;3346:62;:::i;:::-;3336:72;;;2829:595;;;;;;;:::o;3431:360::-;;;3549:2;3537:9;3528:7;3524:23;3520:32;3517:2;;;-1:-1;;3555:12;3517:2;3617:53;3662:7;3638:22;3617:53;:::i;:::-;3607:63;;3707:2;3747:9;3743:22;206:20;42838:5;41253:13;41246:21;42816:5;42813:32;42803:2;;-1:-1;;42849:12;42803:2;3715:60;;;;3511:280;;;;;:::o;3798:366::-;;;3919:2;3907:9;3898:7;3894:23;3890:32;3887:2;;;-1:-1;;3925:12;3887:2;3987:53;4032:7;4008:22;3987:53;:::i;:::-;3977:63;4077:2;4116:22;;;;1514:20;;-1:-1;;;3881:283::o;4171:239::-;;4274:2;4262:9;4253:7;4249:23;4245:32;4242:2;;;-1:-1;;4280:12;4242:2;352:6;339:20;364:32;390:5;364:32;:::i;4417:261::-;;4531:2;4519:9;4510:7;4506:23;4502:32;4499:2;;;-1:-1;;4537:12;4499:2;491:6;485:13;503:32;529:5;503:32;:::i;4685:347::-;;4799:2;4787:9;4778:7;4774:23;4770:32;4767:2;;;-1:-1;;4805:12;4767:2;4863:17;4850:31;4901:18;4893:6;4890:30;4887:2;;;-1:-1;;4923:12;4887:2;4953:63;5008:7;4999:6;4988:9;4984:22;4953:63;:::i;5039:241::-;;5143:2;5131:9;5122:7;5118:23;5114:32;5111:2;;;-1:-1;;5149:12;5111:2;-1:-1;1514:20;;5105:175;-1:-1;5105:175::o;5287:472::-;;;5418:2;5406:9;5397:7;5393:23;5389:32;5386:2;;;-1:-1;;5424:12;5386:2;1527:6;1514:20;5476:63;;5604:2;5593:9;5589:18;5576:32;5628:18;5620:6;5617:30;5614:2;;;-1:-1;;5650:12;5614:2;5680:63;5735:7;5726:6;5715:9;5711:22;5680:63;:::i;:::-;5670:73;;;5380:379;;;;;:::o;6290:343::-;;6432:5;40163:12;40448:6;40443:3;40436:19;6525:52;6570:6;40485:4;40480:3;40476:14;40485:4;6551:5;6547:16;6525:52;:::i;:::-;39492:9;42596:14;-1:-1;;42592:28;6589:39;;;;40485:4;6589:39;;6380:253;-1:-1;;6380:253::o;22089:271::-;;6800:5;40163:12;6911:52;6956:6;6951:3;6944:4;6937:5;6933:16;6911:52;:::i;:::-;6975:16;;;;;22223:137;-1:-1;;22223:137::o;22367:430::-;;-1:-1;7886:5;7880:12;7920:1;;7909:9;7905:17;7933:1;7928:268;;;;8207:1;8202:425;;;;7898:729;;7928:268;-1:-1;;8133:25;;8121:38;;8002:1;7987:17;;8006:4;7983:28;8173:16;;;-1:-1;7928:268;;8202:425;8271:1;8260:9;8256:17;40016:3;-1:-1;40006:14;40048:4;;-1:-1;40035:18;-1:-1;8460:130;8474:6;8471:1;8468:13;8460:130;;;8533:14;;8520:11;;;8513:35;8567:15;;;;8489:12;;8460:130;;;-1:-1;;;8604:16;;;-1:-1;7898:729;;;;6800:5;40163:12;6911:52;6956:6;6951:3;6944:4;6937:5;6933:16;6911:52;:::i;:::-;6975:16;;22548:249;-1:-1;;;;22548:249::o;22804:809::-;21761:37;;;23141:2;23132:12;;21761:37;;;;23243:12;;;21761:37;;;;23354:12;;;21761:37;23465:12;;;21761:37;23576:12;;;23032:581::o;23620:222::-;-1:-1;;;;;41492:54;;;;6002:45;;23747:2;23732:18;;23718:124::o;24094:672::-;-1:-1;;;;;41492:54;;;6002:45;;41492:54;;24520:2;24505:18;;6002:45;24603:2;24588:18;;21761:37;;;24339:3;24640:2;24625:18;;24618:48;;;24094:672;;24680:76;;24324:19;;24742:6;24680:76;:::i;:::-;24672:84;24310:456;-1:-1;;;;;;24310:456::o;24773:210::-;41253:13;;41246:21;6244:34;;24894:2;24879:18;;24865:118::o;24990:310::-;;25137:2;25158:17;25151:47;25212:78;25137:2;25126:9;25122:18;25276:6;25212:78;:::i;25307:416::-;25507:2;25521:47;;;8866:2;25492:18;;;40436:19;8902:34;40476:14;;;8882:55;-1:-1;;;8957:12;;;8950:26;8995:12;;;25478:245::o;25730:416::-;25930:2;25944:47;;;9246:2;25915:18;;;40436:19;9282:34;40476:14;;;9262:55;-1:-1;;;9337:12;;;9330:35;9384:12;;;25901:245::o;26153:416::-;26353:2;26367:47;;;9635:2;26338:18;;;40436:19;-1:-1;;;40476:14;;;9651:43;9713:12;;;26324:245::o;26576:416::-;26776:2;26790:47;;;9964:2;26761:18;;;40436:19;10000:33;40476:14;;;9980:54;10053:12;;;26747:245::o;26999:416::-;27199:2;27213:47;;;10304:2;27184:18;;;40436:19;10340:34;40476:14;;;10320:55;-1:-1;;;10395:12;;;10388:42;10449:12;;;27170:245::o;27422:416::-;27622:2;27636:47;;;10700:2;27607:18;;;40436:19;10736:34;40476:14;;;10716:55;-1:-1;;;10791:12;;;10784:30;10833:12;;;27593:245::o;27845:416::-;28045:2;28059:47;;;11084:2;28030:18;;;40436:19;11120:30;40476:14;;;11100:51;11170:12;;;28016:245::o;28268:416::-;28468:2;28482:47;;;11421:2;28453:18;;;40436:19;11457:34;40476:14;;;11437:55;-1:-1;;;11512:12;;;11505:38;11562:12;;;28439:245::o;28691:416::-;28891:2;28905:47;;;11813:2;28876:18;;;40436:19;11849:29;40476:14;;;11829:50;11898:12;;;28862:245::o;29114:416::-;29314:2;29328:47;;;12149:2;29299:18;;;40436:19;12185:34;40476:14;;;12165:55;-1:-1;;;12240:12;;;12233:28;12280:12;;;29285:245::o;29537:416::-;29737:2;29751:47;;;12531:2;29722:18;;;40436:19;12567:27;40476:14;;;12547:48;12614:12;;;29708:245::o;29960:416::-;30160:2;30174:47;;;12865:2;30145:18;;;40436:19;12901:34;40476:14;;;12881:55;-1:-1;;;12956:12;;;12949:36;13004:12;;;30131:245::o;30383:416::-;30583:2;30597:47;;;13255:2;30568:18;;;40436:19;-1:-1;;;40476:14;;;13271:39;13329:12;;;30554:245::o;30806:416::-;31006:2;31020:47;;;13580:2;30991:18;;;40436:19;13616:34;40476:14;;;13596:55;13685:26;13671:12;;;13664:48;13731:12;;;30977:245::o;31229:416::-;31429:2;31443:47;;;13982:2;31414:18;;;40436:19;14018:34;40476:14;;;13998:55;-1:-1;;;14073:12;;;14066:34;14119:12;;;31400:245::o;31652:416::-;31852:2;31866:47;;;14370:2;31837:18;;;40436:19;14406:34;40476:14;;;14386:55;-1:-1;;;14461:12;;;14454:40;14513:12;;;31823:245::o;32075:416::-;32275:2;32289:47;;;14764:2;32260:18;;;40436:19;14800:34;40476:14;;;14780:55;-1:-1;;;14855:12;;;14848:25;14892:12;;;32246:245::o;32498:416::-;32698:2;32712:47;;;15143:2;32683:18;;;40436:19;15179:34;40476:14;;;15159:55;-1:-1;;;15234:12;;;15227:26;15272:12;;;32669:245::o;32921:416::-;33121:2;33135:47;;;33106:18;;;40436:19;15559:34;40476:14;;;15539:55;15613:12;;;33092:245::o;33344:416::-;33544:2;33558:47;;;15864:2;33529:18;;;40436:19;15900:34;40476:14;;;15880:55;-1:-1;;;15955:12;;;15948:25;15992:12;;;33515:245::o;33767:416::-;33967:2;33981:47;;;16243:2;33952:18;;;40436:19;16279:34;40476:14;;;16259:55;-1:-1;;;16334:12;;;16327:36;16382:12;;;33938:245::o;34190:416::-;34390:2;34404:47;;;16633:2;34375:18;;;40436:19;16669:34;40476:14;;;16649:55;-1:-1;;;16724:12;;;16717:36;16772:12;;;34361:245::o;34613:416::-;34813:2;34827:47;;;34798:18;;;40436:19;17059:34;40476:14;;;17039:55;17113:12;;;34784:245::o;35036:416::-;35236:2;35250:47;;;17364:2;35221:18;;;40436:19;17400:34;40476:14;;;17380:55;-1:-1;;;17455:12;;;17448:26;17493:12;;;35207:245::o;35459:416::-;35659:2;35673:47;;;17744:2;35644:18;;;40436:19;17780:34;40476:14;;;17760:55;-1:-1;;;17835:12;;;17828:33;17880:12;;;35630:245::o;35882:416::-;36082:2;36096:47;;;18131:2;36067:18;;;40436:19;18167:34;40476:14;;;18147:55;-1:-1;;;18222:12;;;18215:39;18273:12;;;36053:245::o;36305:416::-;36505:2;36519:47;;;18524:2;36490:18;;;40436:19;18560:34;40476:14;;;18540:55;-1:-1;;;18615:12;;;18608:25;18652:12;;;36476:245::o;36728:416::-;36928:2;36942:47;;;18903:2;36913:18;;;40436:19;18939:34;40476:14;;;18919:55;-1:-1;;;18994:12;;;18987:41;19047:12;;;36899:245::o;37151:416::-;37351:2;37365:47;;;19298:2;37336:18;;;40436:19;19334:34;40476:14;;;19314:55;-1:-1;;;19389:12;;;19382:27;19428:12;;;37322:245::o;37574:416::-;37774:2;37788:47;;;19679:2;37759:18;;;40436:19;19715:31;40476:14;;;19695:52;19766:12;;;37745:245::o;37997:416::-;38197:2;38211:47;;;20017:2;38182:18;;;40436:19;20053:34;40476:14;;;20033:55;-1:-1;;;20108:12;;;20101:40;20160:12;;;38168:245::o;38420:335::-;;38603:3;38592:9;38588:19;38580:27;;20469:16;20463:23;21768:3;21761:37;20644:4;20637:5;20633:16;20627:23;20644:4;20708:3;20704:14;21761:37;20798:4;20791:5;20787:16;20781:23;20798:4;20862:3;20858:14;21761:37;20954:4;20947:5;20943:16;20937:23;20954:4;21018:3;21014:14;21761:37;21114:4;21107:5;21103:16;21097:23;21114:4;21178:3;21174:14;21761:37;21268:4;21261:5;21257:16;21251:23;21268:4;21332:3;21328:14;21761:37;21431:4;21424:5;21420:16;21414:23;21431:4;21495:3;21491:14;21761:37;21597:4;21590:5;21586:16;21580:23;21597:4;21661:3;21657:14;21761:37;38574:181;;;;:::o;38762:222::-;21761:37;;;38889:2;38874:18;;38860:124::o;42171:268::-;42236:1;42243:101;42257:6;42254:1;42251:13;42243:101;;;42324:11;;;42318:18;42305:11;;;42298:39;42279:2;42272:10;42243:101;;;42359:6;42356:1;42353:13;42350:2;;;-1:-1;;42236:1;42406:16;;42399:27;42220:219::o;42633:117::-;-1:-1;;;;;41492:54;;42692:35;;42682:2;;42741:1;;42731:12;42875:115;-1:-1;;;;;;41340:78;;42933:34;;42923:2;;42981:1;;42971:12

Swarm Source

ipfs://4213ba7ef429037fcae10ecdce16f40c61d35b090276a2df1cd9296a97861ce3
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.