ETH Price: $3,486.67 (+2.00%)

Token

KillaCubs (KillaCubs)
 

Overview

Max Total Supply

7,648 KillaCubs

Holders

1,589

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
jawnwick.eth
Balance
1 KillaCubs
0x6B06440a8451d3d3b758e6253c02A3B17F40E59e
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
KillaCubs

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : KillaCubs.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;
import "./KillaCubs/KillaCubsRestrictor.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

interface IURIManager {
    function getTokenURI(
        uint256 id,
        Token memory token
    ) external view returns (string memory);
}

contract KillaCubs is KillaCubsRestrictor, IURIManager {
    using Strings for uint256;
    using Strings for uint16;

    IURIManager public uriManager;

    string public baseURI;
    string public baseURIFinalized;
    uint256 public finalizedGeneration;

    constructor(
        address bitsAddress,
        address gearAddress,
        address superOwner
    ) KillaCubsRestrictor(bitsAddress, gearAddress, superOwner) {
        uriManager = IURIManager(this);
    }

    function mint(
        address owner,
        uint256[] calldata ids,
        bool staked
    ) public onlyAuthority {
        _mint(owner, ids, staked);
    }

    function mint(address owner, uint16 n, bool staked) external onlyAuthority {
        _mint(owner, n, staked);
        if (counters.batched > 5555) revert Overflow();
    }

    function mintRedeemed(
        address owner,
        uint16 n,
        bool staked
    ) external onlyAuthority {
        _mint(owner, n, staked);
        counters.redeems += n;
        wallets[owner].redeems += n;
        if (counters.batched > 5555) revert Overflow();
    }

    function useAllowance(
        address sender,
        address main,
        uint256 n,
        bool holders,
        uint256 allowance
    ) external onlyAuthority {
        wallets[sender].allowlistMints += uint16(n);

        Wallet storage w = wallets[main];
        if (holders) {
            w.holderMints += uint16(n);
            if (w.holderMints > allowance) revert Overflow();
        } else {
            w.privateMints += uint16(n);
            if (w.privateMints > allowance) revert Overflow();
        }
    }

    function tokenURI(uint256 id) external view returns (string memory) {
        Token memory token = resolveToken(id);
        return uriManager.getTokenURI(id, token);
    }

    function getTokenURI(
        uint256 id,
        Token memory token
    ) public view returns (string memory) {
        bool staked = token.stakeTimestamp > 0;
        uint256 phase = _getIncubationPhase(token);
        uint256 gen = token.generation;
        if (laterGenerations[id] != 0) gen = laterGenerations[id];

        if (staked) {
            return
                string(
                    abi.encodePacked(
                        baseURI,
                        gen == 0 ? "initial-" : "remix-",
                        id.toString(),
                        "-",
                        phase.toString(),
                        "-",
                        token.bit.toString()
                    )
                );
        }

        string storage base = gen < finalizedGeneration
            ? baseURI
            : baseURIFinalized;

        return
            string(
                abi.encodePacked(
                    base,
                    gen == 0 ? "cubryo-" : "cub-",
                    id.toString(),
                    "-",
                    phase.toString()
                )
            );
    }

    // Admin

    function configureRoyalties(
        address royaltyReceiver,
        uint96 royaltyAmount
    ) external onlyOwner {
        _setDefaultRoyalty(royaltyReceiver, royaltyAmount);
    }

    function toggleRestricted(bool restricted_) external onlyOwner {
        restricted = restricted_;
    }

    function configureStakingWindows(
        uint256 initialLength,
        uint256 remixLength
    ) external onlyOwner {
        initialIncubationLength = initialLength;
        remixIncubationLength = remixLength;
    }

    function setIncubator(address addr) external onlyOwner {
        incubator = IIncubator(addr);
    }

    function startNexGeneration() external onlyOwner {
        activeGeneration++;
    }

    function finalizeGeneration(
        uint256 gen,
        string calldata uri
    ) external onlyOwner {
        finalizedGeneration = gen;
        baseURIFinalized = uri;
    }

    function setURIManager(address addr) external onlyOwner {
        uriManager = IURIManager(addr);
    }

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

    function withdraw(address to) external onlyOwner {
        if (to == address(0)) revert NotAllowed();
        payable(to).transfer(address(this).balance);
    }
}

File 2 of 14 : KillaCubsRestrictor.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;

import "./KillaCubsStaking.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";

contract KillaCubsRestrictor is KillaCubsStaking, DefaultOperatorFilterer {
    constructor(
        address bitsAddress,
        address gearAddress,
        address superOwner
    ) KillaCubsStaking(bitsAddress, gearAddress, superOwner) {}

    bool public restricted = true;

    function setApprovalForAll(
        address operator,
        bool approved
    ) public override {
        if (restricted) {
            setApprovalForAllRestricted(operator, approved);
        } else {
            super.setApprovalForAll(operator, approved);
        }
    }

    function approve(address operator, uint256 tokenId) public override {
        if (restricted) {
            approveRestricted(operator, tokenId);
        } else {
            super.approve(operator, tokenId);
        }
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        if (restricted) {
            transferFromRestricted(from, to, tokenId);
        } else {
            super.transferFrom(from, to, tokenId);
        }
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        if (restricted) {
            safeTransferFromRestricted(from, to, tokenId);
        } else {
            super.safeTransferFrom(from, to, tokenId);
        }
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public override {
        if (restricted) {
            safeTransferFromRestricted(from, to, tokenId);
        } else {
            super.safeTransferFrom(from, to, tokenId, data);
        }
    }

    function setApprovalForAllRestricted(
        address operator,
        bool approved
    ) public onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approveRestricted(
        address operator,
        uint256 tokenId
    ) public onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFromRestricted(
        address from,
        address to,
        uint256 tokenId
    ) public onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFromRestricted(
        address from,
        address to,
        uint256 tokenId
    ) public onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFromRestricted(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

File 3 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

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

File 4 of 14 : KillaCubsStaking.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;
import "./KillaCubsERC721.sol";
import "../SuperOwnable.sol";

interface IKILLABITS {
    function detachUpgrade(uint256 token) external;

    function tokenUpgrade(uint256 token) external view returns (uint64);

    function transferFrom(address from, address to, uint256 tokenId) external;
}

interface IKILLAGEAR {
    function detokenize(
        address addr,
        uint256[] calldata types,
        uint256[] calldata amounts
    ) external;
}

abstract contract KillaCubsStaking is KillaCubsERC721, SuperOwnable {
    IKILLABITS public immutable bitsContract;
    IKILLAGEAR public immutable gearContract;

    event BitsAdded(uint256[] indexed tokens, uint16[] indexed bits);
    event BitRemoved(uint256 indexed token, uint16 indexed bit);
    event FastForwarded(uint256[] indexed tokens, uint256 indexed numberOfDays);

    mapping(uint256 => bool) public bitsUsed;

    uint256 public activeGeneration = 1;
    uint256 public initialIncubationLength = 8;
    uint256 public remixIncubationLength = 4;

    mapping(uint256 => uint256) public laterGenerations;

    constructor(
        address bitsAddress,
        address gearAddress,
        address superOwner
    ) KillaCubsERC721() SuperOwnable(superOwner) {
        bitsContract = IKILLABITS(bitsAddress);
        gearContract = IKILLAGEAR(gearAddress);
    }

    function stake(uint256[] calldata tokenIds) external {
        if (tokenIds.length == 0) return;

        Token memory token;
        bool skip;

        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];

            if (!skip) {
                token = resolveToken(tokenId);

                if (token.owner != msg.sender) revert NotAllowed();

                if (token.stakeTimestamp > 0) revert NotAllowed();

                tokens[tokenId] = token;
                tokens[tokenId].stakeTimestamp = uint32(block.timestamp);
            }

            emit Transfer(msg.sender, address(this), tokenId);

            skip = _lookAhead(tokenIds, i, token, true);
        }

        wallets[msg.sender].stakes += uint16(tokenIds.length);
        wallets[msg.sender].balance -= uint16(tokenIds.length);
        counters.stakes += uint16(tokenIds.length);
        incubator.add(msg.sender, tokenIds);
    }

    function unstake(uint256[] calldata tokenIds, bool finalized) external {
        if (tokenIds.length == 0) return;

        Token memory token;
        bool skip;
        bool setLaterGeneration;

        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];

            if (tokens[tokenId].bit > 0) {
                bitsContract.transferFrom(
                    address(this),
                    msg.sender,
                    tokens[tokenId].bit
                );
                if (finalized) bitsUsed[tokens[tokenId].bit] = true;
                emit BitRemoved(tokenId, tokens[tokenId].bit);
                tokens[tokenId].bit = 0;
            }

            if (!skip) {
                token = resolveToken(tokenId);
                setLaterGeneration = false;

                if (token.owner != msg.sender) revert NotAllowed();
                if (token.stakeTimestamp == 0) revert NotAllowed();

                uint256 phase = _getIncubationPhase(token);

                tokens[tokenId] = token;
                tokens[tokenId].stakeTimestamp = 0;

                uint256 max = token.generation == 0
                    ? initialIncubationLength
                    : remixIncubationLength;

                if (phase >= max) {
                    if (!finalized) revert NotAllowed();
                    tokens[tokenId].incubationPhase = 0;
                    if (activeGeneration > 255) {
                        tokens[tokenId].generation = 255;
                        setLaterGeneration = true;
                    } else {
                        tokens[tokenId].generation = uint8(activeGeneration);
                    }
                } else {
                    if (finalized) revert NotAllowed();
                    tokens[tokenId].incubationPhase = uint8(phase);
                }
            }

            if (setLaterGeneration) {
                laterGenerations[tokenId] = activeGeneration;
            }

            emit Transfer(address(this), msg.sender, tokenId);

            skip = _lookAhead(tokenIds, i, token, true);
        }

        wallets[msg.sender].stakes -= uint16(tokenIds.length);
        wallets[msg.sender].balance += uint16(tokenIds.length);
        counters.stakes -= uint16(tokenIds.length);
        incubator.remove(msg.sender, tokenIds);
    }

    function addBits(
        uint256[] calldata tokenIds,
        uint16[] calldata bits
    ) external {
        if (tokenIds.length == 0) return;

        Token memory token;
        bool skip;
        bool modified;
        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];

            if (tokens[tokenId].bit > 0) revert NotAllowed();
            if (bitsUsed[bits[i]]) revert NotAllowed();
            tokens[tokenId].bit = bits[i];
            bitsContract.transferFrom(msg.sender, address(this), bits[i]);

            if (!skip) {
                modified = false;
                token = resolveToken(tokenId);

                if (token.generation > 0) revert NotAllowed();
                if (token.owner != msg.sender) revert NotAllowed();
                if (token.stakeTimestamp == 0) revert NotAllowed();

                uint256 phase = _getIncubationPhase(token);

                if (phase >= initialIncubationLength) revert NotAllowed();
                if (phase > 1) {
                    tokens[tokenId] = token;
                    tokens[tokenId].stakeTimestamp = 0;
                    tokens[tokenId].incubationPhase = 0;
                    modified = true;
                }
            }

            skip = _lookAhead(tokenIds, i, token, modified);
        }

        emit BitsAdded(tokenIds, bits);
    }

    function removeBits(uint256[] calldata tokenIds) external {
        uint16 n = uint16(tokenIds.length);
        for (uint256 i = 0; i < n; i++) {
            uint256 tokenId = tokenIds[i];
            if (rightfulOwnerOf(tokenId) != msg.sender) revert NotAllowed();
            bitsContract.transferFrom(
                address(this),
                msg.sender,
                tokens[tokenId].bit
            );
            emit BitRemoved(tokenId, tokens[tokenId].bit);
            tokens[tokenId].bit = 0;
        }
    }

    function extractGear(uint256[] calldata cubs) external {
        if (cubs.length == 0) revert NotAllowed();

        uint256[] memory weapons = new uint256[](1);
        uint256[] memory amounts = new uint256[](1);
        amounts[0] = 1;

        for (uint256 i = 0; i < cubs.length; i++) {
            uint256 id = cubs[i];
            Token memory token = resolveToken(id);

            if (token.owner != msg.sender) revert NotAllowed();
            if (token.bit == 0) revert NotAllowed();

            uint256 phase = _getIncubationPhase(token);

            if (phase != 8) revert NotAllowed();

            uint256 weapon = bitsContract.tokenUpgrade(token.bit);
            bitsContract.detachUpgrade(token.bit);

            weapons[0] = weapon;
            gearContract.detokenize(address(this), weapons, amounts);
        }
    }

    function fastForward(
        address owner,
        uint256[] calldata tokenIds,
        uint256 numberOfDays
    ) external onlyAuthority {
        if (tokenIds.length == 0) return;
        if (numberOfDays == 0) return;

        Token memory token;
        bool skip;

        bool modified;
        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];

            if (!skip) {
                token = resolveToken(tokenId);

                if (token.owner != owner) revert NotAllowed();
                if (token.stakeTimestamp == 0) revert NotAllowed();

                uint256 phase = _getIncubationPhase(token);

                uint256 max = token.generation == 0
                    ? initialIncubationLength
                    : remixIncubationLength;

                if (phase >= max) revert NotAllowed();

                tokens[tokenId] = token;
                tokens[tokenId].stakeTimestamp -= uint32(
                    numberOfDays * 24 * 3600
                );
                modified = true;
            }

            skip = _lookAhead(tokenIds, i, token, modified);
        }
        emit FastForwarded(tokenIds, numberOfDays);
    }

    function _lookAhead(
        uint256[] calldata tokenIds,
        uint256 index,
        Token memory current,
        bool modified
    ) internal returns (bool sequential) {
        uint256 id = tokenIds[index];
        uint256 nextId;

        if (current.linkedNext != 0) {
            nextId = current.linkedNext;
        } else if (id > 3333 && id < 3333 + counters.batched) {
            nextId = id + 1;
        } else {
            return false;
        }

        if (tokens[nextId].owner != address(0)) return false;

        if (index + 1 < tokenIds.length && tokenIds[index + 1] == nextId)
            return true;

        if (modified) {
            Token memory temp = tokens[nextId];
            tokens[nextId] = current;
            tokens[nextId].bit = temp.bit;
            tokens[nextId].linkedNext = temp.linkedNext;
            tokens[nextId].linkedPrev = temp.linkedPrev;
        }

        return false;
    }

    function _getIncubationPhase(
        Token memory token
    ) internal view returns (uint256) {
        uint256 phase = token.incubationPhase;
        if (token.stakeTimestamp != 0) {
            phase += (block.timestamp - token.stakeTimestamp) / 1 weeks;
        }
        uint256 max = token.generation == 0
            ? initialIncubationLength
            : remixIncubationLength;
        if (phase > max) return max;
        return phase;
    }

    function getIncubationPhase(uint256 id) public view returns (uint256) {
        Token memory token = resolveToken(id);
        return _getIncubationPhase(token);
    }

    function getGeneration(uint256 id) public view returns (uint256) {
        if (laterGenerations[id] != 0) return laterGenerations[id];
        Token memory token = resolveToken(id);
        return token.generation;
    }
}

File 5 of 14 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 6 of 14 : KillaCubsERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;

import "@openzeppelin/contracts/token/common/ERC2981.sol";

struct Token {
    address owner;
    uint16 linkedNext;
    uint16 linkedPrev;
    uint32 stakeTimestamp;
    uint8 generation;
    uint8 incubationPhase;
    uint16 bit;
}

struct Wallet {
    uint16 balance;
    uint16 stakes;
    uint16 linkedMints;
    uint16 batchedMints;
	uint16 allowlistMints;
	uint16 privateMints;
	uint16 holderMints;
    uint16 redeems;
}

struct MintCounters {
    uint16 linked;
    uint16 batched;
    uint16 redeems;
    uint16 stakes;
}

interface IIncubator {
    function add(address owner, uint256[] calldata tokenIds) external;

    function add(address owner, uint256 start, uint256 count) external;

    function remove(address owner, uint256[] calldata tokenIds) external;

    function remove(address owner, uint256 start, uint256 count) external;
}

interface IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

abstract contract KillaCubsERC721 is ERC2981 {
    string public name;
    string public symbol;

    IIncubator public incubator;

    MintCounters public counters;

    mapping(address => Wallet) public wallets;
    mapping(uint256 => Token) public tokens;
    mapping(uint256 => address) private tokenApprovals;
    mapping(address => mapping(address => bool)) private operatorApprovals;

    error TransferToNonERC721ReceiverImplementer();
    error NonExistentToken();
    error NotAllowed();
    error Overflow();

    event Transfer(
        address indexed from,
        address indexed to,
        uint256 indexed tokenId
    );

    event Approval(
        address indexed owner,
        address indexed approved,
        uint256 indexed tokenId
    );

    event ApprovalForAll(
        address indexed owner,
        address indexed operator,
        bool approved
    );

    constructor() {
        name = "KillaCubs";
        symbol = "KillaCubs";
        _setDefaultRoyalty(msg.sender, 500);
    }

    function _mint(address to, uint256 n, bool staked) internal {
        uint256 tokenId = 3334 + counters.batched;
        uint256 end = tokenId + n - 1;
        if (end > 8888) revert NotAllowed();

        Token storage token = tokens[tokenId];
        token.owner = to;

        counters.batched += uint16(n);
        wallets[to].batchedMints += uint16(n);

        if (staked) {
            incubator.add(to, tokenId, n);
            token.stakeTimestamp = uint32(block.timestamp);
            counters.stakes += uint16(n);
            wallets[to].stakes += uint16(n);

            while (tokenId <= end) {
                emit Transfer(address(0), to, tokenId);
                emit Transfer(to, address(this), tokenId);
                tokenId++;
            }
        } else {
            wallets[to].balance += uint16(n);
            while (tokenId <= end) {
                emit Transfer(address(0), to, tokenId);
                tokenId++;
            }
        }
    }

    function _mint(
        address to,
        uint256[] calldata tokenIds,
        bool staked
    ) internal {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 id = tokenIds[i];

            Token storage token = tokens[id];

            if (id == 0) revert NotAllowed();
            if (token.owner != address(0)) revert NotAllowed();
            if (token.linkedPrev != 0) revert NotAllowed();

            token.owner = to;
            emit Transfer(address(0), to, id);

            if (staked) {
                emit Transfer(to, address(this), id);
                token.stakeTimestamp = uint32(block.timestamp);
            }

            if (i == 0) {
                token.owner = to;
            } else {
                token.linkedPrev = uint16(tokenIds[i - 1]);
                tokens[tokenIds[i - 1]].linkedNext = uint16(id);
            }
        }

        counters.linked += uint16(tokenIds.length);
        if (staked) {
            counters.stakes += uint16(tokenIds.length);
            wallets[to].stakes += uint16(tokenIds.length);
            incubator.add(to, tokenIds);
        } else {
            wallets[to].balance += uint16(tokenIds.length);
        }
        wallets[to].linkedMints += uint16(tokenIds.length);
    }

    function totalSupply() public view virtual returns (uint256) {
        return counters.linked + counters.batched;
    }

    function balanceOf(
        address owner
    ) external view virtual returns (uint256 balance) {
        if (owner == address(this)) return counters.stakes;
        return wallets[owner].balance;
    }

    function ownerOf(uint256 id) public view virtual returns (address) {
        Token memory token = resolveToken(id);
        if (token.stakeTimestamp != 0) return address(this);
        return token.owner;
    }

    function rightfulOwnerOf(
        uint256 tokenId
    ) public view virtual returns (address) {
        return resolveToken(tokenId).owner;
    }

    function resolveToken(uint256 id) public view returns (Token memory) {
        Token memory token = tokens[id];
        if (token.owner == address(0)) {
            Token memory temp = token;
            if (token.linkedPrev != 0) {
                do token = tokens[token.linkedPrev]; while (
                    token.owner == address(0)
                );
            } else if (id > 3333 && id <= 3333 + counters.batched) {
                do token = tokens[--id]; while (token.owner == address(0));
            } else {
                revert NonExistentToken();
            }

            token.bit = temp.bit;
            token.linkedNext = temp.linkedNext;
            token.linkedPrev = temp.linkedPrev;
        }
        return token;
    }

    function resolveTokens(
        uint256[] calldata ids
    ) public view returns (Token[] memory) {
        Token[] memory ret = new Token[](ids.length);
        bool skip = false;
        Token memory token;
        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];

            if (skip) skip = false;
            else token = resolveToken(id);

            ret[i] = token;

            uint256 nextId;
            if (token.linkedNext != 0) {
                nextId = token.linkedNext;
            } else if (id > 3333 && id < 3333 + counters.batched) {
                nextId = id + 1;
            } else {
                continue;
            }

            if (tokens[nextId].owner != address(0)) continue;
            if (i + 1 < ids.length && ids[i + 1] == nextId) {
                skip = true;
                token.bit = tokens[nextId].bit;
                token.linkedNext = tokens[nextId].linkedNext;
                token.linkedPrev = tokens[nextId].linkedPrev;
                continue;
            }
        }
        return ret;
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes memory data
    ) public virtual {
        transferFrom(from, to, id);
        if (!_checkOnERC721Received(from, to, id, data))
            revert TransferToNonERC721ReceiverImplementer();
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        safeTransferFrom(from, to, id, "");
    }

    function transferFrom(address from, address to, uint256 id) public virtual {
        if (to == from) revert NotAllowed();
        if (to == address(0)) revert NotAllowed();

        Token memory token = resolveToken(id);

        if (token.stakeTimestamp > 0 || token.owner != from)
            revert NotAllowed();

        if (msg.sender != token.owner) {
            if (
                !operatorApprovals[token.owner][msg.sender] &&
                tokenApprovals[id] != msg.sender
            ) revert NotAllowed();
        }

        if (tokenApprovals[id] != address(0)) {
            delete tokenApprovals[id];
            emit Approval(from, address(0), id);
        }

        emit Transfer(token.owner, to, id);
        _bakeNextToken(token, id);

        token.owner = to;

        wallets[from].balance--;
        wallets[to].balance++;
        tokens[id] = token;
    }

    function _bakeNextToken(Token memory current, uint256 id) internal {
        uint256 nextId;
        if (current.linkedNext != 0) {
            nextId = current.linkedNext;
        } else if (id > 3333) {
            nextId = id + 1;
            if (nextId > 3333 + counters.batched) return;
        } else {
            return;
        }

        Token memory temp = tokens[nextId];
        if (temp.owner != address(0)) return;

        tokens[nextId] = current;

        tokens[nextId].linkedNext = temp.linkedNext;
        tokens[nextId].linkedPrev = temp.linkedPrev;
        tokens[nextId].bit = temp.bit;
    }

    function approve(address to, uint256 id) public virtual {
        tokenApprovals[id] = to;
        emit Approval(msg.sender, to, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        operatorApprovals[msg.sender][operator] = approved;
        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function getApproved(
        uint256 id
    ) external view virtual returns (address operator) {
        return tokenApprovals[id];
    }

    function isApprovedForAll(
        address owner,
        address operator
    ) external view virtual returns (bool) {
        return operatorApprovals[owner][operator];
    }

    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165
            interfaceId == 0x80ac58cd || // ERC721
            interfaceId == 0x5b5e139f || // ERC721Metadata;
            interfaceId == 0x4e2312e0 || // ERC1155Receiver
            interfaceId == 0x2a55205a; // ERC2981
    }

    function _checkOnERC721Received(
        address from,
        address to,
        uint256 id,
        bytes memory data
    ) private returns (bool) {
        try
            IERC721Receiver(to).onERC721Received(msg.sender, from, id, data)
        returns (bytes4 retval) {
            return retval == IERC721Receiver.onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert("ERC721: transfer to non ERC721Receiver implementer");
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes calldata
    ) external pure returns (bytes4) {
        return
            bytes4(
                keccak256(
                    "onERC1155Received(address,address,uint256,uint256,bytes)"
                )
            );
    }
}

File 7 of 14 : SuperOwnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;

abstract contract SuperOwnable {
    address public owner;
    address public superOwner;

    mapping(address => bool) authorities;

    error Denied();

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

    constructor(address superOwner_) {
        _transferOwnership(msg.sender);
        superOwner = superOwner_;
    }

    modifier onlyOwner() {
        if (msg.sender != owner && msg.sender != superOwner) revert Denied();
        _;
    }

    modifier onlySuperOwner() {
        if (msg.sender != superOwner) revert Denied();
        _;
    }

    modifier onlyAuthority() {
        if (!authorities[msg.sender] && msg.sender != owner) revert Denied();
        _;
    }

    function transferOwnership(address addr) public virtual onlyOwner {
        _transferOwnership(addr);
    }

    function _transferOwnership(address addr) internal virtual {
        address oldOwner = owner;
        owner = addr;
        emit OwnershipTransferred(oldOwner, addr);
    }

    function setSuperOwner(address addr) public onlySuperOwner {
        if (addr == address(0)) revert Denied();
        superOwner = addr;
    }

    function toggleAuthority(address addr, bool enabled) public onlyOwner {
        authorities[addr] = enabled;
    }
}

File 8 of 14 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 9 of 14 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 12 of 14 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 13 of 14 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 14 of 14 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"bitsAddress","type":"address"},{"internalType":"address","name":"gearAddress","type":"address"},{"internalType":"address","name":"superOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Denied","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"Overflow","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"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":"uint256","name":"token","type":"uint256"},{"indexed":true,"internalType":"uint16","name":"bit","type":"uint16"}],"name":"BitRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256[]","name":"tokens","type":"uint256[]"},{"indexed":true,"internalType":"uint16[]","name":"bits","type":"uint16[]"}],"name":"BitsAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256[]","name":"tokens","type":"uint256[]"},{"indexed":true,"internalType":"uint256","name":"numberOfDays","type":"uint256"}],"name":"FastForwarded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activeGeneration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint16[]","name":"bits","type":"uint16[]"}],"name":"addBits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approveRestricted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURIFinalized","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bitsContract","outputs":[{"internalType":"contract IKILLABITS","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bitsUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyReceiver","type":"address"},{"internalType":"uint96","name":"royaltyAmount","type":"uint96"}],"name":"configureRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"initialLength","type":"uint256"},{"internalType":"uint256","name":"remixLength","type":"uint256"}],"name":"configureStakingWindows","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"counters","outputs":[{"internalType":"uint16","name":"linked","type":"uint16"},{"internalType":"uint16","name":"batched","type":"uint16"},{"internalType":"uint16","name":"redeems","type":"uint16"},{"internalType":"uint16","name":"stakes","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"cubs","type":"uint256[]"}],"name":"extractGear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"numberOfDays","type":"uint256"}],"name":"fastForward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gen","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"finalizeGeneration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizedGeneration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gearContract","outputs":[{"internalType":"contract IKILLAGEAR","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getGeneration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getIncubationPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint16","name":"linkedNext","type":"uint16"},{"internalType":"uint16","name":"linkedPrev","type":"uint16"},{"internalType":"uint32","name":"stakeTimestamp","type":"uint32"},{"internalType":"uint8","name":"generation","type":"uint8"},{"internalType":"uint8","name":"incubationPhase","type":"uint8"},{"internalType":"uint16","name":"bit","type":"uint16"}],"internalType":"struct Token","name":"token","type":"tuple"}],"name":"getTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incubator","outputs":[{"internalType":"contract IIncubator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialIncubationLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"laterGenerations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint16","name":"n","type":"uint16"},{"internalType":"bool","name":"staked","type":"bool"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"bool","name":"staked","type":"bool"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint16","name":"n","type":"uint16"},{"internalType":"bool","name":"staked","type":"bool"}],"name":"mintRedeemed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remixIncubationLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"removeBits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"resolveToken","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint16","name":"linkedNext","type":"uint16"},{"internalType":"uint16","name":"linkedPrev","type":"uint16"},{"internalType":"uint32","name":"stakeTimestamp","type":"uint32"},{"internalType":"uint8","name":"generation","type":"uint8"},{"internalType":"uint8","name":"incubationPhase","type":"uint8"},{"internalType":"uint16","name":"bit","type":"uint16"}],"internalType":"struct Token","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"resolveTokens","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint16","name":"linkedNext","type":"uint16"},{"internalType":"uint16","name":"linkedPrev","type":"uint16"},{"internalType":"uint32","name":"stakeTimestamp","type":"uint32"},{"internalType":"uint8","name":"generation","type":"uint8"},{"internalType":"uint8","name":"incubationPhase","type":"uint8"},{"internalType":"uint16","name":"bit","type":"uint16"}],"internalType":"struct Token[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"restricted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"rightfulOwnerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFromRestricted","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":"safeTransferFromRestricted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAllRestricted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setIncubator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSuperOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setURIManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startNexGeneration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"superOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"address","name":"addr","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"toggleAuthority","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"restricted_","type":"bool"}],"name":"toggleRestricted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint16","name":"linkedNext","type":"uint16"},{"internalType":"uint16","name":"linkedPrev","type":"uint16"},{"internalType":"uint32","name":"stakeTimestamp","type":"uint32"},{"internalType":"uint8","name":"generation","type":"uint8"},{"internalType":"uint8","name":"incubationPhase","type":"uint8"},{"internalType":"uint16","name":"bit","type":"uint16"}],"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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFromRestricted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bool","name":"finalized","type":"bool"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriManager","outputs":[{"internalType":"contract IURIManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"main","type":"address"},{"internalType":"uint256","name":"n","type":"uint256"},{"internalType":"bool","name":"holders","type":"bool"},{"internalType":"uint256","name":"allowance","type":"uint256"}],"name":"useAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wallets","outputs":[{"internalType":"uint16","name":"balance","type":"uint16"},{"internalType":"uint16","name":"stakes","type":"uint16"},{"internalType":"uint16","name":"linkedMints","type":"uint16"},{"internalType":"uint16","name":"batchedMints","type":"uint16"},{"internalType":"uint16","name":"allowlistMints","type":"uint16"},{"internalType":"uint16","name":"privateMints","type":"uint16"},{"internalType":"uint16","name":"holderMints","type":"uint16"},{"internalType":"uint16","name":"redeems","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526001600e8190556008600f5560046010556012805460ff191690911790553480156200002f57600080fd5b5060405162005fdc38038062005fdc8339810160408190526200005291620003f2565b828282733cc6cdda760b79bafa08df41ecfa224f810dceb6600184848480604051806040016040528060098152602001684b696c6c614375627360b81b81525060029081620000a29190620004e1565b506040805180820190915260098152684b696c6c614375627360b81b6020820152600390620000d29082620004e1565b50620000e1336101f46200027e565b620000ec3362000383565b600b80546001600160a01b0319166001600160a01b03928316179055928316608052501660a0526daaeb6d7670e522a718067333cd4e3b1562000258578015620001a657604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200018757600080fd5b505af11580156200019c573d6000803e3d6000fd5b5050505062000258565b6001600160a01b03821615620001f75760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200016c565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200023e57600080fd5b505af115801562000253573d6000803e3d6000fd5b505050505b505060128054610100600160a81b031916306101000217905550620005ad945050505050565b6127106001600160601b0382161115620002f25760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200034a5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620002e9565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b0381168114620003ed57600080fd5b919050565b6000806000606084860312156200040857600080fd5b6200041384620003d5565b92506200042360208501620003d5565b91506200043360408501620003d5565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200046757607f821691505b6020821081036200048857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004dc57600081815260208120601f850160051c81016020861015620004b75750805b601f850160051c820191505b81811015620004d857828155600101620004c3565b5050505b505050565b81516001600160401b03811115620004fd57620004fd6200043c565b62000515816200050e845462000452565b846200048e565b602080601f8311600181146200054d5760008415620005345750858301515b600019600386901b1c1916600185901b178555620004d8565b600085815260208120601f198616915b828110156200057e578886015182559484019460019091019084016200055d565b50858210156200059d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a0516159df620005fd6000396000818161051f01526113790152600081816109460152818161123f015281816112e7015281816115ca01528181612948015261321701526159df6000f3fe608060405234801561001057600080fd5b50600436106103fb5760003560e01c806375d096f311610215578063c87b56dd11610125578063e48a206d116100b8578063ebceda3211610087578063ebceda3214610a9d578063f23a6e6114610ab0578063f2fde38b14610b02578063f721063314610b15578063ff3bf6bc14610b7057600080fd5b8063e48a206d14610a18578063e4d0453714610a3b578063e8fed30214610a4e578063e985e9c514610a6157600080fd5b8063d27c487b116100f4578063d27c487b146109ca578063d3397c13146109dd578063d89977ab146109fd578063e3b5050414610a1057600080fd5b8063c87b56dd1461097b578063c8f8a3991461098e578063ccdc828f146109ae578063cf4227bd146109c157600080fd5b806395d89b41116101a8578063a7b23b9711610177578063a7b23b9714610908578063acea8ebc1461091b578063b88d4fde1461092e578063c2e802ea14610941578063c7a9e99c1461096857600080fd5b806395d89b41146108c7578063a0bcfc7f146108cf578063a22cb465146108e2578063a314636d146108f557600080fd5b806387dcd2b6116101e457806387dcd2b6146107d657806389b08f11146107e95780638da5cb5b146108a15780638dd57f1b146108b457600080fd5b806375d096f3146107855780637aef2f32146107985780637be8570a146107b057806387bdd71d146107c357600080fd5b80633c8599ff1161031057806356e3df97116102a3578063659d32f111610272578063659d32f1146107375780636c0360eb1461074a5780636ef90417146107525780637072c6b11461076557806370a082311461077257600080fd5b806356e3df97146106f65780635b266c4b1461070957806360f30c0b146107115780636352211e1461072457600080fd5b806342842e0e116102df57806342842e0e146105fd5780634f64b2be1461061057806351cff8d9146106d0578063520477f8146106e357600080fd5b80633c8599ff146105b95780633d30c2d7146105cc578063409f55b3146105d557806341f43434146105e857600080fd5b806319b8fe201161039357806325f04af01161036257806325f04af01461051a57806329fa7266146105415780632a55205a146105545780633228337a146105865780633ab4c5a61461059957600080fd5b806319b8fe20146104e25780631a4cbf46146104eb5780631dfa28a2146104f457806323b872dd1461050757600080fd5b8063095ea7b3116103cf578063095ea7b3146104935780630fbf0a93146104a657806318160ddd146104b9578063198b474a146104cf57600080fd5b8062153bdc1461040057806301ffc9a71461041557806306fdde031461043d578063081812fc14610452575b600080fd5b61041361040e366004614a86565b610b83565b005b610428610423366004614ae3565b610c10565b60405190151581526020015b60405180910390f35b610445610c98565b6040516104349190614b50565b61047b610460366004614b63565b6000908152600860205260409020546001600160a01b031690565b6040516001600160a01b039091168152602001610434565b6104136104a1366004614b7c565b610d26565b6104136104b4366004614bea565b610d49565b6104c161104d565b604051908152602001610434565b6104136104dd366004614c2b565b611072565b6104c160105481565b6104c160155481565b610413610502366004614bea565b6110de565b610413610515366004614c46565b611402565b61047b7f000000000000000000000000000000000000000000000000000000000000000081565b61041361054f366004614c2b565b611423565b610567610562366004614c82565b611497565b604080516001600160a01b039093168352602083019190915201610434565b610413610594366004614ca4565b611545565b6105ac6105a7366004614bea565b611b3b565b6040516104349190614d53565b6104136105c7366004614da1565b611d3c565b6104c1600f5481565b6104136105e3366004614b7c565b61202b565b61047b6daaeb6d7670e522a718067333cd4e81565b61041361060b366004614c46565b61203f565b61067f61061e366004614b63565b6007602052600090815260409020546001600160a01b0381169061ffff600160a01b8204811691600160b01b810482169163ffffffff600160c01b8304169160ff600160e01b8204811692600160e81b830490911691600160f01b90041687565b604080516001600160a01b03909816885261ffff96871660208901529486169487019490945263ffffffff909216606086015260ff90811660808601521660a08401521660c082015260e001610434565b6104136106de366004614c2b565b612060565b6104136106f1366004614dfa565b612100565b6104c1610704366004614b63565b61216f565b6104456121af565b61041361071f366004614c46565b6121bc565b61047b610732366004614b63565b6121e1565b610413610745366004614e31565b612210565b6104456123b8565b610413610760366004614e88565b6123c5565b6012546104289060ff1681565b6104c1610780366004614c2b565b61241c565b610413610793366004614a86565b612461565b60125461047b9061010090046001600160a01b031681565b6104c16107be366004614b63565b61257e565b6104136107d1366004614dfa565b61259c565b600b5461047b906001600160a01b031681565b6108546107f7366004614c2b565b60066020526000908152604090205461ffff808216916201000081048216916401000000008204811691600160301b8104821691600160401b8204811691600160501b8104821691600160601b8204811691600160701b90041688565b6040805161ffff998a16815297891660208901529588169587019590955292861660608601529085166080850152841660a0840152831660c083015290911660e082015261010001610434565b600a5461047b906001600160a01b031681565b6104456108c2366004614f24565b6125b0565b61044561273f565b6104136108dd366004615023565b61274c565b6104136108f0366004614dfa565b61279d565b610413610903366004615058565b6127bc565b6104136109163660046150bd565b612811565b61047b610929366004614b63565b612c1e565b61041361093c36600461514f565b612c29565b61047b7f000000000000000000000000000000000000000000000000000000000000000081565b610413610976366004614c46565b612c50565b610445610989366004614b63565b612c75565b6109a161099c366004614b63565b612cff565b60405161043491906151f9565b6104136109bc366004615207565b612f67565b6104c1600e5481565b6104136109d8366004614c82565b612fb5565b6104c16109eb366004614b63565b60116020526000908152604090205481565b610413610a0b36600461523f565b613004565b61041361305a565b610428610a26366004614b63565b600d6020526000908152604090205460ff1681565b610413610a4936600461514f565b6130b5565b610413610a5c366004614c2b565b6130db565b610428610a6f36600461528a565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b60045461047b906001600160a01b031681565b610ae9610abe3660046152bd565b7ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf979695505050505050565b6040516001600160e01b03199091168152602001610434565b610413610b10366004614c2b565b613141565b600554610b429061ffff808216916201000081048216916401000000008204811691600160301b90041684565b6040805161ffff95861681529385166020850152918416918301919091529091166060820152608001610434565b610413610b7e366004614bea565b613191565b336000908152600c602052604090205460ff16158015610bae5750600a546001600160a01b03163314155b15610bcc5760405163e3372e2d60e01b815260040160405180910390fd5b610bdb838361ffff1683613305565b6005546115b36201000090910461ffff161115610c0b57604051631a93c68960e11b815260040160405180910390fd5b505050565b60006301ffc9a760e01b6001600160e01b031983161480610c4157506380ac58cd60e01b6001600160e01b03198316145b80610c5c5750635b5e139f60e01b6001600160e01b03198316145b80610c775750630271189760e51b6001600160e01b03198316145b80610c92575063152a902d60e11b6001600160e01b03198316145b92915050565b60028054610ca590615334565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd190615334565b8015610d1e5780601f10610cf357610100808354040283529160200191610d1e565b820191906000526020600020905b815481529060010190602001808311610d0157829003601f168201915b505050505081565b60125460ff1615610d3f57610d3b828261202b565b5050565b610d3b8282613629565b6000819003610d56575050565b610d5e614a0e565b6000805b83811015610f1b576000858583818110610d7e57610d7e61536e565b90506020020135905082610eda57610d9581612cff565b80519094506001600160a01b03163314610dc257604051631eb49d6d60e11b815260040160405180910390fd5b606084015163ffffffff1615610deb57604051631eb49d6d60e11b815260040160405180910390fd5b600081815260076020908152604091829020865181549288015193880151606089015160808a015160a08b015160c08c01516001600160a01b039095166001600160b01b031990971696909617600160a01b61ffff988916021765ffffffffffff60b01b1916600160b01b9388169390930263ffffffff60c01b199081169390931763ffffffff928316600160c01b9081029190911761ffff60e01b1916600160e01b60ff9384160260ff60e81b191617600160e81b929097169190910295909517600165ffff0000000160c01b0316600160f01b969093169590950216174293909316919091029190911790555b60405181903090339060008051602061598a83398151915290600090a4610f05868684876001613682565b9250508080610f139061539a565b915050610d62565b503360009081526006602052604090208054849190600290610f4890849062010000900461ffff166153b3565b82546101009290920a61ffff81810219909316918316021790915533600090815260066020526040812080548794509092610f85918591166153ce565b92506101000a81548161ffff021916908361ffff16021790555083839050600560000160068282829054906101000a900461ffff16610fc491906153b3565b825461ffff9182166101009390930a928302919092021990911617905550600480546040516366664d4960e11b81526001600160a01b039091169163cccc9a929161101591339189918991016153e9565b600060405180830381600087803b15801561102f57600080fd5b505af1158015611043573d6000803e3d6000fd5b5050505050505050565b6005546000906110699061ffff620100008204811691166153b3565b61ffff16905090565b600a546001600160a01b031633148015906110985750600b546001600160a01b03163314155b156110b65760405163e3372e2d60e01b815260040160405180910390fd5b601280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600081900361110057604051631eb49d6d60e11b815260040160405180910390fd5b60408051600180825281830190925260009160208083019080368337505060408051600180825281830190925292935060009291506020808301908036833701905050905060018160008151811061115a5761115a61536e565b60200260200101818152505060005b838110156113fb5760008585838181106111855761118561536e565b905060200201359050600061119982612cff565b80519091506001600160a01b031633146111c657604051631eb49d6d60e11b815260040160405180910390fd5b8060c0015161ffff166000036111ef57604051631eb49d6d60e11b815260040160405180910390fd5b60006111fa82613a5f565b90508060081461121d57604051631eb49d6d60e11b815260040160405180910390fd5b60c08201516040516373dd6c4760e11b815261ffff90911660048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e7bad88e90602401602060405180830381865afa15801561128e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b29190615433565b60c08401516040516360ad099960e01b815261ffff90911660048201526001600160401b039190911691506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906360ad099990602401600060405180830381600087803b15801561132b57600080fd5b505af115801561133f573d6000803e3d6000fd5b5050505080876000815181106113575761135761536e565b602090810291909101015260405163021d5af160e51b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906343ab5e20906113b29030908b908b90600401615497565b600060405180830381600087803b1580156113cc57600080fd5b505af11580156113e0573d6000803e3d6000fd5b505050505050505080806113f39061539a565b915050611169565b5050505050565b60125460ff161561141857610c0b8383836121bc565b610c0b838383613ae1565b600b546001600160a01b0316331461144e5760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b0381166114755760405163e3372e2d60e01b815260040160405180910390fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161150c5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061152b906001600160601b0316876154d7565b61153591906154ee565b91519350909150505b9250929050565b600082900361155357505050565b61155b614a0e565b60008060005b85811015611a0757600087878381811061157d5761157d61536e565b602090810292909201356000818152600790935260409092205491925050600160f01b900461ffff16156116e157600081815260076020526040908190205490516323b872dd60e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316916323b872dd916116159130913391600160f01b900461ffff1690600401615510565b600060405180830381600087803b15801561162f57600080fd5b505af1158015611643573d6000803e3d6000fd5b5050505085156116805760008181526007602090815260408083205461ffff600160f01b909104168352600d9091529020805460ff191660011790555b600081815260076020526040808220549051600160f01b90910461ffff169183917f4105bf7d7d5dd178ee6bce5ac8517ce18d3f664d9506b0927fc2d493891f38fd9190a3600081815260076020526040902080546001600160f01b031690555b836119ad576116ef81612cff565b8051909550600093506001600160a01b0316331461172057604051631eb49d6d60e11b815260040160405180910390fd5b846060015163ffffffff1660000361174b57604051631eb49d6d60e11b815260040160405180910390fd5b600061175686613a5f565b9050856007600084815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548161ffff021916908361ffff16021790555060408201518160000160166101000a81548161ffff021916908361ffff16021790555060608201518160000160186101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001601c6101000a81548160ff021916908360ff16021790555060a082015181600001601d6101000a81548160ff021916908360ff16021790555060c082015181600001601e6101000a81548161ffff021916908361ffff16021790555090505060006007600084815260200190815260200160002060000160186101000a81548163ffffffff021916908363ffffffff1602179055506000866080015160ff166000146118bd576010546118c1565b600f545b905080821061196657876118e857604051631eb49d6d60e11b815260040160405180910390fd5b6000838152600760205260409020805460ff60e81b19169055600e5460ff1015611934576000838152600760205260409020805460ff60e01b191660ff60e01b179055600194506119aa565b600e546000848152600760205260409020805460ff909216600160e01b0260ff60e01b199092169190911790556119aa565b871561198557604051631eb49d6d60e11b815260040160405180910390fd5b6000838152600760205260409020805460ff60e81b1916600160e81b60ff8516021790555b50505b82156119c657600e546000828152601160205260409020555b60405181903390309060008051602061598a83398151915290600090a46119f1888884886001613682565b93505080806119ff9061539a565b915050611561565b503360009081526006602052604090208054869190600290611a3490849062010000900461ffff166153ce565b82546101009290920a61ffff81810219909316918316021790915533600090815260066020526040812080548994509092611a71918591166153b3565b92506101000a81548161ffff021916908361ffff16021790555085859050600560000160068282829054906101000a900461ffff16611ab091906153ce565b825461ffff9182166101009390930a9283029190920219909116179055506004805460405163549055c960e01b81526001600160a01b039091169163549055c991611b019133918b918b91016153e9565b600060405180830381600087803b158015611b1b57600080fd5b505af1158015611b2f573d6000803e3d6000fd5b50505050505050505050565b60606000826001600160401b03811115611b5757611b57614ea5565b604051908082528060200260200182016040528015611b9057816020015b611b7d614a0e565b815260200190600190039081611b755790505b5090506000611b9d614a0e565b60005b85811015611d31576000878783818110611bbc57611bbc61536e565b9050602002013590508315611bd45760009350611be0565b611bdd81612cff565b92505b82858381518110611bf357611bf361536e565b60200260200101819052506000836020015161ffff16600014611c1f5750602083015161ffff16611c69565b610d0582118015611c4b5750600554611c449062010000900461ffff16610d056153b3565b61ffff1682105b15611c6257611c5b826001615537565b9050611c69565b5050611d1f565b6000818152600760205260409020546001600160a01b031615611c8d575050611d1f565b87611c99846001615537565b108015611cc75750808989611caf866001615537565b818110611cbe57611cbe61536e565b90506020020135145b15611d1c5760008181526007602081815260408084205461ffff600160f01b8204811660c08b0152600160a01b820481168a85015295909452919052600160b01b909104909116908401525060019250611d1f565b50505b80611d298161539a565b915050611ba0565b509195945050505050565b336000908152600c602052604090205460ff16158015611d675750600a546001600160a01b03163314155b15611d855760405163e3372e2d60e01b815260040160405180910390fd5b811561202557801561202557611d99614a0e565b60008060005b85811015611fdf576000878783818110611dbb57611dbb61536e565b90506020020135905083611fbc57611dd281612cff565b9450886001600160a01b031685600001516001600160a01b031614611e0a57604051631eb49d6d60e11b815260040160405180910390fd5b846060015163ffffffff16600003611e3557604051631eb49d6d60e11b815260040160405180910390fd5b6000611e4086613a5f565b90506000866080015160ff16600014611e5b57601054611e5f565b600f545b9050808210611e8157604051631eb49d6d60e11b815260040160405180910390fd5b60008381526007602090815260409182902089518154928b0151938b015160608c015160808d015160a08e015160c08f01516001600160a01b039095166001600160b01b031990971696909617600160a01b61ffff988916021765ffffffffffff60b01b1916600160b01b9388169390930263ffffffff60c01b191692909217600160c01b63ffffffff909216919091021761ffff60e01b1916600160e01b60ff9283160260ff60e81b191617600160e81b9190941602929092176001600160f01b0316600160f01b9390921692909202179055611f608860186154d7565b611f6c90610e106154d7565b60008481526007602052604090208054601890611f97908490600160c01b900463ffffffff1661554a565b92506101000a81548163ffffffff021916908363ffffffff1602179055506001945050505b611fc98888848887613682565b9350508080611fd79061539a565b915050611d9f565b50838686604051611ff1929190615567565b604051908190038120907f57e6bdf24f3c6059dcb3868a521ca6836bb70e97cb0cd3f10ce3216f5e5b713890600090a35050505b50505050565b8161203581613e20565b610c0b8383613629565b60125460ff161561205557610c0b838383612c50565b610c0b838383613ede565b600a546001600160a01b031633148015906120865750600b546001600160a01b03163314155b156120a45760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b0381166120cb57604051631eb49d6d60e11b815260040160405180910390fd5b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610d3b573d6000803e3d6000fd5b600a546001600160a01b031633148015906121265750600b546001600160a01b03163314155b156121445760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b60008181526011602052604081205415612196575060009081526011602052604090205490565b60006121a183612cff565b6080015160ff169392505050565b60148054610ca590615334565b826001600160a01b03811633146121d6576121d633613e20565b612025848484613ae1565b6000806121ed83612cff565b9050806060015163ffffffff1660001461220957503092915050565b5192915050565b336000908152600c602052604090205460ff1615801561223b5750600a546001600160a01b03163314155b156122595760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b0385166000908152600660205260409020805484919060089061228f908490600160401b900461ffff166153b3565b825461ffff9182166101009390930a9283029190920219909116179055506001600160a01b0384166000908152600660205260409020821561234057805484908290600c906122ea908490600160601b900461ffff166153b3565b92506101000a81548161ffff021916908361ffff1602179055508181600001600c9054906101000a900461ffff1661ffff16111561233b57604051631a93c68960e11b815260040160405180910390fd5b6123b0565b805484908290600a9061235f908490600160501b900461ffff166153b3565b92506101000a81548161ffff021916908361ffff1602179055508181600001600a9054906101000a900461ffff1661ffff1611156123b057604051631a93c68960e11b815260040160405180910390fd5b505050505050565b60138054610ca590615334565b600a546001600160a01b031633148015906123eb5750600b546001600160a01b03163314155b156124095760405163e3372e2d60e01b815260040160405180910390fd5b6012805460ff1916911515919091179055565b6000306001600160a01b03831603612441575050600554600160301b900461ffff1690565b506001600160a01b031660009081526006602052604090205461ffff1690565b336000908152600c602052604090205460ff1615801561248c5750600a546001600160a01b03163314155b156124aa5760405163e3372e2d60e01b815260040160405180910390fd5b6124b9838361ffff1683613305565b600580548391906004906124da908490640100000000900461ffff166153b3565b82546101009290920a61ffff8181021990931691831602179091556001600160a01b038516600090815260066020526040902080548593509091600e9161252a918591600160701b9004166153b3565b92506101000a81548161ffff021916908361ffff1602179055506115b3600560000160029054906101000a900461ffff1661ffff161115610c0b57604051631a93c68960e11b815260040160405180910390fd5b60008061258a83612cff565b905061259581613a5f565b9392505050565b816125a681613e20565b610c0b8383613ef9565b60608181015163ffffffff16151560006125c984613a5f565b608085015160008781526011602052604090205491925060ff1690156125fa57506000858152601160205260409020545b821561269e576013811561262c576040518060400160405280600681526020016572656d69782d60d01b81525061264e565b60405180604001604052806008815260200167696e697469616c2d60c01b8152505b61265788613f65565b61266085613f65565b6126718960c0015161ffff16613f65565b604051602001612685959493929190615603565b6040516020818303038152906040529350505050610c92565b600060155482106126b05760146126b3565b60135b90508082156126de57604051806040016040528060048152602001636375622d60e01b8152506126ff565b6040518060400160405280600781526020016663756272796f2d60c81b8152505b61270889613f65565b61271186613f65565b604051602001612724949392919061567c565b60405160208183030381529060405294505050505092915050565b60038054610ca590615334565b600a546001600160a01b031633148015906127725750600b546001600160a01b03163314155b156127905760405163e3372e2d60e01b815260040160405180910390fd5b6013610c0b82848361571c565b60125460ff16156127b257610d3b828261259c565b610d3b8282613ef9565b336000908152600c602052604090205460ff161580156127e75750600a546001600160a01b03163314155b156128055760405163e3372e2d60e01b815260040160405180910390fd5b61202584848484613ff7565b82156120255761281f614a0e565b60008060005b86811015612bbc5760008888838181106128415761284161536e565b602090810292909201356000818152600790935260409092205491925050600160f01b900461ffff161561288857604051631eb49d6d60e11b815260040160405180910390fd5b600d600088888581811061289e5761289e61536e565b90506020020160208101906128b391906157db565b61ffff16815260208101919091526040016000205460ff16156128e957604051631eb49d6d60e11b815260040160405180910390fd5b8686838181106128fb576128fb61536e565b905060200201602081019061291091906157db565b6000828152600760205260409020805461ffff92909216600160f01b026001600160f01b039092169190911790556001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166323b872dd33308a8a878181106129815761298161536e565b905060200201602081019061299691906157db565b6040518463ffffffff1660e01b81526004016129b493929190615510565b600060405180830381600087803b1580156129ce57600080fd5b505af11580156129e2573d6000803e3d6000fd5b5050505083612b9957600092506129f881612cff565b608081015190955060ff1615612a2157604051631eb49d6d60e11b815260040160405180910390fd5b84516001600160a01b03163314612a4b57604051631eb49d6d60e11b815260040160405180910390fd5b846060015163ffffffff16600003612a7657604051631eb49d6d60e11b815260040160405180910390fd5b6000612a8186613a5f565b9050600f548110612aa557604051631eb49d6d60e11b815260040160405180910390fd5b6001811115612b975760008281526007602090815260409182902088518154928a0151938a015160608b015160808c015160a08d015160c08e01516001600160a01b039095166001600160b01b031990971696909617600160a01b61ffff988916021765ffffffffffff60b01b1916600160b01b9388169390930263ffffffff60c01b191692909217600160c01b63ffffffff909216919091021761ffff60e01b1916600160e01b60ff9283160260ff60e81b191617600160e81b919094160292909217600164ff0000000160c01b0316600160f01b939092169290920265ff00ffffffff60c01b1916179055600193505b505b612ba68989848887613682565b9350508080612bb49061539a565b915050612825565b508484604051612bcd9291906157f6565b60405180910390208787604051612be5929190615567565b604051908190038120907f385ad5bb5363d3864fa9eb288438962ddf85c5eb0db96f626b60f56f7b01e26490600090a350505050505050565b600061220982612cff565b60125460ff1615612c4457612c3f848484612c50565b612025565b612025848484846143cb565b826001600160a01b0381163314612c6a57612c6a33613e20565b612025848484613ede565b60606000612c8283612cff565b601254604051638dd57f1b60e01b815291925061010090046001600160a01b031690638dd57f1b90612cba9086908590600401615831565b600060405180830381865afa158015612cd7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125959190810190615846565b612d07614a0e565b600082815260076020908152604091829020825160e08101845290546001600160a01b03811680835261ffff600160a01b8304811694840194909452600160b01b820484169483019490945263ffffffff600160c01b820416606083015260ff600160e01b820481166080840152600160e81b82041660a0830152600160f01b900490911660c082015290610c92576040810151819061ffff1615612e43575b60409182015161ffff90811660009081526007602090815290849020845160e08101865290546001600160a01b038116808352600160a01b8204851693830193909352600160b01b810484169582019590955263ffffffff600160c01b860416606082015260ff600160e01b860481166080830152600160e81b86041660a0820152600160f01b90940490911660c084015215612da757612f37565b610d0584118015612e705750600554612e689062010000900461ffff16610d056153b3565b61ffff168411155b15612f1e575b60076000612e83866158b3565b8082526020808301939093526040918201600020825160e08101845290546001600160a01b03811680835261ffff600160a01b8304811696840196909652600160b01b820486169483019490945263ffffffff600160c01b820416606083015260ff600160e01b820481166080840152600160e81b82041660a0830152600160f01b900490931660c0840152955090925015612e7657612f37565b604051634a1850bf60e11b815260040160405180910390fd5b60c08082015161ffff90811691840191909152602080830151821690840152604091820151169082015292915050565b600a546001600160a01b03163314801590612f8d5750600b546001600160a01b03163314155b15612fab5760405163e3372e2d60e01b815260040160405180910390fd5b610d3b82826143ff565b600a546001600160a01b03163314801590612fdb5750600b546001600160a01b03163314155b15612ff95760405163e3372e2d60e01b815260040160405180910390fd5b600f91909155601055565b600a546001600160a01b0316331480159061302a5750600b546001600160a01b03163314155b156130485760405163e3372e2d60e01b815260040160405180910390fd5b6015839055601461202582848361571c565b600a546001600160a01b031633148015906130805750600b546001600160a01b03163314155b1561309e5760405163e3372e2d60e01b815260040160405180910390fd5b600e80549060006130ae8361539a565b9190505550565b836001600160a01b03811633146130cf576130cf33613e20565b6113fb858585856143cb565b600a546001600160a01b031633148015906131015750600b546001600160a01b03163314155b1561311f5760405163e3372e2d60e01b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633148015906131675750600b546001600160a01b03163314155b156131855760405163e3372e2d60e01b815260040160405180910390fd5b61318e816144fc565b50565b8060005b8161ffff168110156120255760008484838181106131b5576131b561536e565b905060200201359050336001600160a01b03166131d182612c1e565b6001600160a01b0316146131f857604051631eb49d6d60e11b815260040160405180910390fd5b600081815260076020526040908190205490516323b872dd60e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316916323b872dd916132629130913391600160f01b900461ffff1690600401615510565b600060405180830381600087803b15801561327c57600080fd5b505af1158015613290573d6000803e3d6000fd5b505050600082815260076020526040808220549051600160f01b90910461ffff16925083917f4105bf7d7d5dd178ee6bce5ac8517ce18d3f664d9506b0927fc2d493891f38fd91a3600090815260076020526040902080546001600160f01b03169055806132fd8161539a565b915050613195565b6005546000906133219062010000900461ffff16610d066153b3565b61ffff169050600060016133358584615537565b61333f91906158ca565b90506122b881111561336457604051631eb49d6d60e11b815260040160405180910390fd5b600082815260076020526040902080546001600160a01b0319166001600160a01b038716178155600580548691906002906133aa90849062010000900461ffff166153b3565b92506101000a81548161ffff021916908361ffff1602179055508460066000886001600160a01b03166001600160a01b0316815260200190815260200160002060000160068282829054906101000a900461ffff1661340991906153b3565b92506101000a81548161ffff021916908361ffff16021790555083156135a35760048054604051630a203c2560e31b81526001600160a01b03898116938201939093526024810186905260448101889052911690635101e12890606401600060405180830381600087803b15801561348057600080fd5b505af1158015613494573d6000803e3d6000fd5b5050825463ffffffff60c01b1916600160c01b4263ffffffff16021783555050600580548691906006906134d4908490600160301b900461ffff166153b3565b82546101009290920a61ffff8181021990931691831602179091556001600160a01b038816600090815260066020526040902080548893509091600291613523918591620100009004166153b3565b92506101000a81548161ffff021916908361ffff1602179055505b81831161233b5760405183906001600160a01b0388169060009060008051602061598a833981519152908290a4604051839030906001600160a01b0389169060008051602061598a83398151915290600090a48261359b8161539a565b93505061353e565b6001600160a01b038616600090815260066020526040812080548792906135cf90849061ffff166153b3565b92506101000a81548161ffff021916908361ffff1602179055505b8183116123b05760405183906001600160a01b0388169060009060008051602061598a833981519152908290a4826136218161539a565b9350506135ea565b60008181526008602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839233917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a45050565b6000808686868181106136975761369761536e565b9050602002013590506000846020015161ffff166000146136c15750602084015161ffff1661370f565b610d05821180156136ed57506005546136e69062010000900461ffff16610d056153b3565b61ffff1682105b15613704576136fd826001615537565b905061370f565b600092505050613a56565b6000818152600760205260409020546001600160a01b03161561373757600092505050613a56565b86613743876001615537565b1080156137715750808888613759896001615537565b8181106137685761376861536e565b90506020020135145b1561378157600192505050613a56565b8315613a4f576000600760008381526020019081526020016000206040518060e00160405290816000820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016000820160149054906101000a900461ffff1661ffff1661ffff1681526020016000820160169054906101000a900461ffff1661ffff1661ffff1681526020016000820160189054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160008201601c9054906101000a900460ff1660ff1660ff16815260200160008201601d9054906101000a900460ff1660ff1660ff16815260200160008201601e9054906101000a900461ffff1661ffff1661ffff16815250509050856007600084815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548161ffff021916908361ffff16021790555060408201518160000160166101000a81548161ffff021916908361ffff16021790555060608201518160000160186101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001601c6101000a81548160ff021916908360ff16021790555060a082015181600001601d6101000a81548160ff021916908360ff16021790555060c082015181600001601e6101000a81548161ffff021916908361ffff1602179055509050508060c0015160076000848152602001908152602001600020600001601e6101000a81548161ffff021916908361ffff16021790555080602001516007600084815260200190815260200160002060000160146101000a81548161ffff021916908361ffff16021790555080604001516007600084815260200190815260200160002060000160166101000a81548161ffff021916908361ffff160217905550505b6000925050505b95945050505050565b60a0810151606082015160009160ff169063ffffffff1615613aac5762093a80836060015163ffffffff1642613a9591906158ca565b613a9f91906154ee565b613aa99082615537565b90505b6000836080015160ff16600014613ac557601054613ac9565b600f545b905080821115613ada579392505050565b5092915050565b826001600160a01b0316826001600160a01b031603613b1357604051631eb49d6d60e11b815260040160405180910390fd5b6001600160a01b038216613b3a57604051631eb49d6d60e11b815260040160405180910390fd5b6000613b4582612cff565b90506000816060015163ffffffff161180613b765750836001600160a01b031681600001516001600160a01b031614155b15613b9457604051631eb49d6d60e11b815260040160405180910390fd5b80516001600160a01b03163314613c0f5780516001600160a01b0316600090815260096020908152604080832033845290915290205460ff16158015613bf157506000828152600860205260409020546001600160a01b03163314155b15613c0f57604051631eb49d6d60e11b815260040160405180910390fd5b6000828152600860205260409020546001600160a01b031615613c7e5760008281526008602052604080822080546001600160a01b0319169055518391906001600160a01b038716907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925908390a45b805160405183916001600160a01b038087169291169060008051602061598a83398151915290600090a4613cb2818361454e565b6001600160a01b03808416825284166000908152600660205260408120805461ffff1691613cdf836158dd565b82546101009290920a61ffff8181021990931691831602179091556001600160a01b038516600090815260066020526040812080549092169250613d22836158fb565b82546101009290920a61ffff8181021990931691831602179091556000938452600760209081526040948590208451815492860151968601516060870151608088015160a089015160c0909901516001600160a01b039094166001600160b01b031990961695909517600160a01b998716999099029890981765ffffffffffff60b01b1916600160b01b9186169190910263ffffffff60c01b191617600160c01b63ffffffff909816979097029690961761ffff60e01b1916600160e01b60ff9384160260ff60e81b191617600160e81b9290951691909102939093176001600160f01b0316600160f01b9490911693909302929092179055505050565b6daaeb6d7670e522a718067333cd4e3b1561318e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015613e8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613eb1919061591c565b61318e57604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b610c0b83838360405180602001604052806000815250612c29565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60606000613f7283614801565b60010190506000816001600160401b03811115613f9157613f91614ea5565b6040519080825280601f01601f191660200182016040528015613fbb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084613fc557509392505050565b60005b828110156141fc5760008484838181106140165761401661536e565b90506020020135905060006007600083815260200190815260200160002090508160000361405757604051631eb49d6d60e11b815260040160405180910390fd5b80546001600160a01b03161561408057604051631eb49d6d60e11b815260040160405180910390fd5b8054600160b01b900461ffff16156140ab57604051631eb49d6d60e11b815260040160405180910390fd5b80546001600160a01b0319166001600160a01b038816908117825560405183919060009060008051602061598a833981519152908290a4831561412b57604051829030906001600160a01b038a169060008051602061598a83398151915290600090a4805463ffffffff60c01b1916600160c01b4263ffffffff16021781555b826000036141515780546001600160a01b0319166001600160a01b0388161781556141e7565b858561415e6001866158ca565b81811061416d5761416d61536e565b835461ffff60b01b1916600160b01b602092909202939093013561ffff160291909117825550816007600088886141a56001896158ca565b8181106141b4576141b461536e565b90506020020135815260200190815260200160002060000160146101000a81548161ffff021916908361ffff1602179055505b505080806141f49061539a565b915050613ffa565b506005805483919060009061421690849061ffff166153b3565b92506101000a81548161ffff021916908361ffff160217905550801561432d5760058054839190600690614256908490600160301b900461ffff166153b3565b82546101009290920a61ffff8181021990931691831602179091556001600160a01b0386166000908152600660205260409020805485935090916002916142a5918591620100009004166153b3565b825461ffff9182166101009390930a928302919092021990911617905550600480546040516366664d4960e11b81526001600160a01b039091169163cccc9a92916142f691889188918891016153e9565b600060405180830381600087803b15801561431057600080fd5b505af1158015614324573d6000803e3d6000fd5b50505050614374565b6001600160a01b0384166000908152600660205260408120805484929061435990849061ffff166153b3565b92506101000a81548161ffff021916908361ffff1602179055505b6001600160a01b038416600090815260066020526040902080548391906004906143ab908490640100000000900461ffff166153b3565b92506101000a81548161ffff021916908361ffff16021790555050505050565b6143d6848484611402565b6143e2848484846148d9565b612025576040516368d2bf6b60e11b815260040160405180910390fd5b6127106001600160601b038216111561446d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401613ed5565b6001600160a01b0382166144c35760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401613ed5565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826020015161ffff1660001461456f5750602082015161ffff166145b0565b610d05821115610c0b57614584826001615537565b6005549091506145a09062010000900461ffff16610d056153b3565b61ffff168111156145b057505050565b600081815260076020908152604091829020825160e08101845290546001600160a01b03811680835261ffff600160a01b8304811694840194909452600160b01b820484169483019490945263ffffffff600160c01b820416606083015260ff600160e01b820481166080840152600160e81b82041660a0830152600160f01b900490911660c082015290156146465750505050565b836007600084815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548161ffff021916908361ffff16021790555060408201518160000160166101000a81548161ffff021916908361ffff16021790555060608201518160000160186101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001601c6101000a81548160ff021916908360ff16021790555060a082015181600001601d6101000a81548160ff021916908360ff16021790555060c082015181600001601e6101000a81548161ffff021916908361ffff16021790555090505080602001516007600084815260200190815260200160002060000160146101000a81548161ffff021916908361ffff16021790555080604001516007600084815260200190815260200160002060000160166101000a81548161ffff021916908361ffff1602179055508060c0015160076000848152602001908152602001600020600001601e6101000a81548161ffff021916908361ffff16021790555050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106148405772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061486c576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061488a57662386f26fc10000830492506010015b6305f5e10083106148a2576305f5e100830492506008015b61271083106148b657612710830492506004015b606483106148c8576064830492506002015b600a8310610c925760010192915050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061490e903390899088908890600401615939565b6020604051808303816000875af1925050508015614949575060408051601f3d908101601f191682019092526149469181019061596c565b60015b6149f1573d808015614977576040519150601f19603f3d011682016040523d82523d6000602084013e61497c565b606091505b5080516000036149e95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401613ed5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081019190915290565b80356001600160a01b0381168114614a6157600080fd5b919050565b803561ffff81168114614a6157600080fd5b801515811461318e57600080fd5b600080600060608486031215614a9b57600080fd5b614aa484614a4a565b9250614ab260208501614a66565b91506040840135614ac281614a78565b809150509250925092565b6001600160e01b03198116811461318e57600080fd5b600060208284031215614af557600080fd5b813561259581614acd565b60005b83811015614b1b578181015183820152602001614b03565b50506000910152565b60008151808452614b3c816020860160208601614b00565b601f01601f19169290920160200192915050565b6020815260006125956020830184614b24565b600060208284031215614b7557600080fd5b5035919050565b60008060408385031215614b8f57600080fd5b614b9883614a4a565b946020939093013593505050565b60008083601f840112614bb857600080fd5b5081356001600160401b03811115614bcf57600080fd5b6020830191508360208260051b850101111561153e57600080fd5b60008060208385031215614bfd57600080fd5b82356001600160401b03811115614c1357600080fd5b614c1f85828601614ba6565b90969095509350505050565b600060208284031215614c3d57600080fd5b61259582614a4a565b600080600060608486031215614c5b57600080fd5b614c6484614a4a565b9250614c7260208501614a4a565b9150604084013590509250925092565b60008060408385031215614c9557600080fd5b50508035926020909101359150565b600080600060408486031215614cb957600080fd5b83356001600160401b03811115614ccf57600080fd5b614cdb86828701614ba6565b9094509250506020840135614ac281614a78565b60018060a01b038151168252602081015161ffff808216602085015280604084015116604085015263ffffffff606084015116606085015260ff608084015116608085015260ff60a08401511660a08501528060c08401511660c085015250505050565b6020808252825182820181905260009190848201906040850190845b81811015614d9557614d82838551614cef565b9284019260e09290920191600101614d6f565b50909695505050505050565b60008060008060608587031215614db757600080fd5b614dc085614a4a565b935060208501356001600160401b03811115614ddb57600080fd5b614de787828801614ba6565b9598909750949560400135949350505050565b60008060408385031215614e0d57600080fd5b614e1683614a4a565b91506020830135614e2681614a78565b809150509250929050565b600080600080600060a08688031215614e4957600080fd5b614e5286614a4a565b9450614e6060208701614a4a565b9350604086013592506060860135614e7781614a78565b949793965091946080013592915050565b600060208284031215614e9a57600080fd5b813561259581614a78565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715614edd57614edd614ea5565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614f0b57614f0b614ea5565b604052919050565b803560ff81168114614a6157600080fd5b600080828403610100811215614f3957600080fd5b8335925060e0601f1982011215614f4f57600080fd5b50614f58614ebb565b614f6460208501614a4a565b8152614f7260408501614a66565b6020820152614f8360608501614a66565b6040820152608084013563ffffffff81168114614f9f57600080fd5b6060820152614fb060a08501614f13565b6080820152614fc160c08501614f13565b60a0820152614fd260e08501614a66565b60c0820152809150509250929050565b60008083601f840112614ff457600080fd5b5081356001600160401b0381111561500b57600080fd5b60208301915083602082850101111561153e57600080fd5b6000806020838503121561503657600080fd5b82356001600160401b0381111561504c57600080fd5b614c1f85828601614fe2565b6000806000806060858703121561506e57600080fd5b61507785614a4a565b935060208501356001600160401b0381111561509257600080fd5b61509e87828801614ba6565b90945092505060408501356150b281614a78565b939692955090935050565b600080600080604085870312156150d357600080fd5b84356001600160401b03808211156150ea57600080fd5b6150f688838901614ba6565b9096509450602087013591508082111561510f57600080fd5b5061511c87828801614ba6565b95989497509550505050565b60006001600160401b0382111561514157615141614ea5565b50601f01601f191660200190565b6000806000806080858703121561516557600080fd5b61516e85614a4a565b935061517c60208601614a4a565b92506040850135915060608501356001600160401b0381111561519e57600080fd5b8501601f810187136151af57600080fd5b80356151c26151bd82615128565b614ee3565b8181528860208385010111156151d757600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60e08101610c928284614cef565b6000806040838503121561521a57600080fd5b61522383614a4a565b915060208301356001600160601b0381168114614e2657600080fd5b60008060006040848603121561525457600080fd5b8335925060208401356001600160401b0381111561527157600080fd5b61527d86828701614fe2565b9497909650939450505050565b6000806040838503121561529d57600080fd5b6152a683614a4a565b91506152b460208401614a4a565b90509250929050565b60008060008060008060a087890312156152d657600080fd5b6152df87614a4a565b95506152ed60208801614a4a565b9450604087013593506060870135925060808701356001600160401b0381111561531657600080fd5b61532289828a01614fe2565b979a9699509497509295939492505050565b600181811c9082168061534857607f821691505b60208210810361536857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016153ac576153ac615384565b5060010190565b61ffff818116838216019080821115613ada57613ada615384565b61ffff828116828216039080821115613ada57613ada615384565b6001600160a01b0384168152604060208201819052810182905260006001600160fb1b0383111561541957600080fd5b8260051b8085606085013791909101606001949350505050565b60006020828403121561544557600080fd5b81516001600160401b038116811461259557600080fd5b600081518084526020808501945080840160005b8381101561548c57815187529582019590820190600101615470565b509495945050505050565b6001600160a01b03841681526060602082018190526000906154bb9083018561545c565b82810360408401526154cd818561545c565b9695505050505050565b8082028115828204841417610c9257610c92615384565b60008261550b57634e487b7160e01b600052601260045260246000fd5b500490565b6001600160a01b03938416815291909216602082015261ffff909116604082015260600190565b80820180821115610c9257610c92615384565b63ffffffff828116828216039080821115613ada57613ada615384565b60006001600160fb1b0383111561557d57600080fd5b8260051b80858437919091019392505050565b6000815461559d81615334565b600182811680156155b557600181146155ca576155f9565b60ff19841687528215158302870194506155f9565b8560005260208060002060005b858110156155f05781548a8201529084019082016155d7565b50505082870194505b5050505092915050565b600061560f8288615590565b865161561f818360208b01614b00565b8651910190615632818360208a01614b00565b602d60f81b91018181528551909190615652816001850160208a01614b00565b6001920191820152835161566d816002840160208801614b00565b01600201979650505050505050565b60006156888287615590565b8551615698818360208a01614b00565b85519101906156ab818360208901614b00565b602d60f81b910190815283516156c8816001840160208801614b00565b016001019695505050505050565b601f821115610c0b57600081815260208120601f850160051c810160208610156156fd5750805b601f850160051c820191505b818110156123b057828155600101615709565b6001600160401b0383111561573357615733614ea5565b615747836157418354615334565b836156d6565b6000601f84116001811461577b57600085156157635750838201355b600019600387901b1c1916600186901b1783556113fb565b600083815260209020601f19861690835b828110156157ac578685013582556020948501946001909201910161578c565b50868210156157c95760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000602082840312156157ed57600080fd5b61259582614a66565b60008184825b858110156158265761ffff61581083614a66565b16835260209283019291909101906001016157fc565b509095945050505050565b82815261010081016125956020830184614cef565b60006020828403121561585857600080fd5b81516001600160401b0381111561586e57600080fd5b8201601f8101841361587f57600080fd5b805161588d6151bd82615128565b8181528560208385010111156158a257600080fd5b613a56826020830160208601614b00565b6000816158c2576158c2615384565b506000190190565b81810381811115610c9257610c92615384565b600061ffff8216806158f1576158f1615384565b6000190192915050565b600061ffff80831681810361591257615912615384565b6001019392505050565b60006020828403121561592e57600080fd5b815161259581614a78565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906154cd90830184614b24565b60006020828403121561597e57600080fd5b815161259581614acd56feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207a9b28741414445e0e760e797fc7a6edbfe64c705c1cf60b04febabb7781035e64736f6c6343000813003300000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db000000000000000000000000153f8df0ce6a014e21f6fe6825129c53fa6ce0d80000000000000000000000001bf52762f9e486d8c373c866f977134d7331c5a5

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103fb5760003560e01c806375d096f311610215578063c87b56dd11610125578063e48a206d116100b8578063ebceda3211610087578063ebceda3214610a9d578063f23a6e6114610ab0578063f2fde38b14610b02578063f721063314610b15578063ff3bf6bc14610b7057600080fd5b8063e48a206d14610a18578063e4d0453714610a3b578063e8fed30214610a4e578063e985e9c514610a6157600080fd5b8063d27c487b116100f4578063d27c487b146109ca578063d3397c13146109dd578063d89977ab146109fd578063e3b5050414610a1057600080fd5b8063c87b56dd1461097b578063c8f8a3991461098e578063ccdc828f146109ae578063cf4227bd146109c157600080fd5b806395d89b41116101a8578063a7b23b9711610177578063a7b23b9714610908578063acea8ebc1461091b578063b88d4fde1461092e578063c2e802ea14610941578063c7a9e99c1461096857600080fd5b806395d89b41146108c7578063a0bcfc7f146108cf578063a22cb465146108e2578063a314636d146108f557600080fd5b806387dcd2b6116101e457806387dcd2b6146107d657806389b08f11146107e95780638da5cb5b146108a15780638dd57f1b146108b457600080fd5b806375d096f3146107855780637aef2f32146107985780637be8570a146107b057806387bdd71d146107c357600080fd5b80633c8599ff1161031057806356e3df97116102a3578063659d32f111610272578063659d32f1146107375780636c0360eb1461074a5780636ef90417146107525780637072c6b11461076557806370a082311461077257600080fd5b806356e3df97146106f65780635b266c4b1461070957806360f30c0b146107115780636352211e1461072457600080fd5b806342842e0e116102df57806342842e0e146105fd5780634f64b2be1461061057806351cff8d9146106d0578063520477f8146106e357600080fd5b80633c8599ff146105b95780633d30c2d7146105cc578063409f55b3146105d557806341f43434146105e857600080fd5b806319b8fe201161039357806325f04af01161036257806325f04af01461051a57806329fa7266146105415780632a55205a146105545780633228337a146105865780633ab4c5a61461059957600080fd5b806319b8fe20146104e25780631a4cbf46146104eb5780631dfa28a2146104f457806323b872dd1461050757600080fd5b8063095ea7b3116103cf578063095ea7b3146104935780630fbf0a93146104a657806318160ddd146104b9578063198b474a146104cf57600080fd5b8062153bdc1461040057806301ffc9a71461041557806306fdde031461043d578063081812fc14610452575b600080fd5b61041361040e366004614a86565b610b83565b005b610428610423366004614ae3565b610c10565b60405190151581526020015b60405180910390f35b610445610c98565b6040516104349190614b50565b61047b610460366004614b63565b6000908152600860205260409020546001600160a01b031690565b6040516001600160a01b039091168152602001610434565b6104136104a1366004614b7c565b610d26565b6104136104b4366004614bea565b610d49565b6104c161104d565b604051908152602001610434565b6104136104dd366004614c2b565b611072565b6104c160105481565b6104c160155481565b610413610502366004614bea565b6110de565b610413610515366004614c46565b611402565b61047b7f000000000000000000000000153f8df0ce6a014e21f6fe6825129c53fa6ce0d881565b61041361054f366004614c2b565b611423565b610567610562366004614c82565b611497565b604080516001600160a01b039093168352602083019190915201610434565b610413610594366004614ca4565b611545565b6105ac6105a7366004614bea565b611b3b565b6040516104349190614d53565b6104136105c7366004614da1565b611d3c565b6104c1600f5481565b6104136105e3366004614b7c565b61202b565b61047b6daaeb6d7670e522a718067333cd4e81565b61041361060b366004614c46565b61203f565b61067f61061e366004614b63565b6007602052600090815260409020546001600160a01b0381169061ffff600160a01b8204811691600160b01b810482169163ffffffff600160c01b8304169160ff600160e01b8204811692600160e81b830490911691600160f01b90041687565b604080516001600160a01b03909816885261ffff96871660208901529486169487019490945263ffffffff909216606086015260ff90811660808601521660a08401521660c082015260e001610434565b6104136106de366004614c2b565b612060565b6104136106f1366004614dfa565b612100565b6104c1610704366004614b63565b61216f565b6104456121af565b61041361071f366004614c46565b6121bc565b61047b610732366004614b63565b6121e1565b610413610745366004614e31565b612210565b6104456123b8565b610413610760366004614e88565b6123c5565b6012546104289060ff1681565b6104c1610780366004614c2b565b61241c565b610413610793366004614a86565b612461565b60125461047b9061010090046001600160a01b031681565b6104c16107be366004614b63565b61257e565b6104136107d1366004614dfa565b61259c565b600b5461047b906001600160a01b031681565b6108546107f7366004614c2b565b60066020526000908152604090205461ffff808216916201000081048216916401000000008204811691600160301b8104821691600160401b8204811691600160501b8104821691600160601b8204811691600160701b90041688565b6040805161ffff998a16815297891660208901529588169587019590955292861660608601529085166080850152841660a0840152831660c083015290911660e082015261010001610434565b600a5461047b906001600160a01b031681565b6104456108c2366004614f24565b6125b0565b61044561273f565b6104136108dd366004615023565b61274c565b6104136108f0366004614dfa565b61279d565b610413610903366004615058565b6127bc565b6104136109163660046150bd565b612811565b61047b610929366004614b63565b612c1e565b61041361093c36600461514f565b612c29565b61047b7f00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db81565b610413610976366004614c46565b612c50565b610445610989366004614b63565b612c75565b6109a161099c366004614b63565b612cff565b60405161043491906151f9565b6104136109bc366004615207565b612f67565b6104c1600e5481565b6104136109d8366004614c82565b612fb5565b6104c16109eb366004614b63565b60116020526000908152604090205481565b610413610a0b36600461523f565b613004565b61041361305a565b610428610a26366004614b63565b600d6020526000908152604090205460ff1681565b610413610a4936600461514f565b6130b5565b610413610a5c366004614c2b565b6130db565b610428610a6f36600461528a565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b60045461047b906001600160a01b031681565b610ae9610abe3660046152bd565b7ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf979695505050505050565b6040516001600160e01b03199091168152602001610434565b610413610b10366004614c2b565b613141565b600554610b429061ffff808216916201000081048216916401000000008204811691600160301b90041684565b6040805161ffff95861681529385166020850152918416918301919091529091166060820152608001610434565b610413610b7e366004614bea565b613191565b336000908152600c602052604090205460ff16158015610bae5750600a546001600160a01b03163314155b15610bcc5760405163e3372e2d60e01b815260040160405180910390fd5b610bdb838361ffff1683613305565b6005546115b36201000090910461ffff161115610c0b57604051631a93c68960e11b815260040160405180910390fd5b505050565b60006301ffc9a760e01b6001600160e01b031983161480610c4157506380ac58cd60e01b6001600160e01b03198316145b80610c5c5750635b5e139f60e01b6001600160e01b03198316145b80610c775750630271189760e51b6001600160e01b03198316145b80610c92575063152a902d60e11b6001600160e01b03198316145b92915050565b60028054610ca590615334565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd190615334565b8015610d1e5780601f10610cf357610100808354040283529160200191610d1e565b820191906000526020600020905b815481529060010190602001808311610d0157829003601f168201915b505050505081565b60125460ff1615610d3f57610d3b828261202b565b5050565b610d3b8282613629565b6000819003610d56575050565b610d5e614a0e565b6000805b83811015610f1b576000858583818110610d7e57610d7e61536e565b90506020020135905082610eda57610d9581612cff565b80519094506001600160a01b03163314610dc257604051631eb49d6d60e11b815260040160405180910390fd5b606084015163ffffffff1615610deb57604051631eb49d6d60e11b815260040160405180910390fd5b600081815260076020908152604091829020865181549288015193880151606089015160808a015160a08b015160c08c01516001600160a01b039095166001600160b01b031990971696909617600160a01b61ffff988916021765ffffffffffff60b01b1916600160b01b9388169390930263ffffffff60c01b199081169390931763ffffffff928316600160c01b9081029190911761ffff60e01b1916600160e01b60ff9384160260ff60e81b191617600160e81b929097169190910295909517600165ffff0000000160c01b0316600160f01b969093169590950216174293909316919091029190911790555b60405181903090339060008051602061598a83398151915290600090a4610f05868684876001613682565b9250508080610f139061539a565b915050610d62565b503360009081526006602052604090208054849190600290610f4890849062010000900461ffff166153b3565b82546101009290920a61ffff81810219909316918316021790915533600090815260066020526040812080548794509092610f85918591166153ce565b92506101000a81548161ffff021916908361ffff16021790555083839050600560000160068282829054906101000a900461ffff16610fc491906153b3565b825461ffff9182166101009390930a928302919092021990911617905550600480546040516366664d4960e11b81526001600160a01b039091169163cccc9a929161101591339189918991016153e9565b600060405180830381600087803b15801561102f57600080fd5b505af1158015611043573d6000803e3d6000fd5b5050505050505050565b6005546000906110699061ffff620100008204811691166153b3565b61ffff16905090565b600a546001600160a01b031633148015906110985750600b546001600160a01b03163314155b156110b65760405163e3372e2d60e01b815260040160405180910390fd5b601280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600081900361110057604051631eb49d6d60e11b815260040160405180910390fd5b60408051600180825281830190925260009160208083019080368337505060408051600180825281830190925292935060009291506020808301908036833701905050905060018160008151811061115a5761115a61536e565b60200260200101818152505060005b838110156113fb5760008585838181106111855761118561536e565b905060200201359050600061119982612cff565b80519091506001600160a01b031633146111c657604051631eb49d6d60e11b815260040160405180910390fd5b8060c0015161ffff166000036111ef57604051631eb49d6d60e11b815260040160405180910390fd5b60006111fa82613a5f565b90508060081461121d57604051631eb49d6d60e11b815260040160405180910390fd5b60c08201516040516373dd6c4760e11b815261ffff90911660048201526000907f00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db6001600160a01b03169063e7bad88e90602401602060405180830381865afa15801561128e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b29190615433565b60c08401516040516360ad099960e01b815261ffff90911660048201526001600160401b039190911691506001600160a01b037f00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db16906360ad099990602401600060405180830381600087803b15801561132b57600080fd5b505af115801561133f573d6000803e3d6000fd5b5050505080876000815181106113575761135761536e565b602090810291909101015260405163021d5af160e51b81526001600160a01b037f000000000000000000000000153f8df0ce6a014e21f6fe6825129c53fa6ce0d816906343ab5e20906113b29030908b908b90600401615497565b600060405180830381600087803b1580156113cc57600080fd5b505af11580156113e0573d6000803e3d6000fd5b505050505050505080806113f39061539a565b915050611169565b5050505050565b60125460ff161561141857610c0b8383836121bc565b610c0b838383613ae1565b600b546001600160a01b0316331461144e5760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b0381166114755760405163e3372e2d60e01b815260040160405180910390fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161150c5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061152b906001600160601b0316876154d7565b61153591906154ee565b91519350909150505b9250929050565b600082900361155357505050565b61155b614a0e565b60008060005b85811015611a0757600087878381811061157d5761157d61536e565b602090810292909201356000818152600790935260409092205491925050600160f01b900461ffff16156116e157600081815260076020526040908190205490516323b872dd60e01b81527f00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db6001600160a01b0316916323b872dd916116159130913391600160f01b900461ffff1690600401615510565b600060405180830381600087803b15801561162f57600080fd5b505af1158015611643573d6000803e3d6000fd5b5050505085156116805760008181526007602090815260408083205461ffff600160f01b909104168352600d9091529020805460ff191660011790555b600081815260076020526040808220549051600160f01b90910461ffff169183917f4105bf7d7d5dd178ee6bce5ac8517ce18d3f664d9506b0927fc2d493891f38fd9190a3600081815260076020526040902080546001600160f01b031690555b836119ad576116ef81612cff565b8051909550600093506001600160a01b0316331461172057604051631eb49d6d60e11b815260040160405180910390fd5b846060015163ffffffff1660000361174b57604051631eb49d6d60e11b815260040160405180910390fd5b600061175686613a5f565b9050856007600084815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548161ffff021916908361ffff16021790555060408201518160000160166101000a81548161ffff021916908361ffff16021790555060608201518160000160186101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001601c6101000a81548160ff021916908360ff16021790555060a082015181600001601d6101000a81548160ff021916908360ff16021790555060c082015181600001601e6101000a81548161ffff021916908361ffff16021790555090505060006007600084815260200190815260200160002060000160186101000a81548163ffffffff021916908363ffffffff1602179055506000866080015160ff166000146118bd576010546118c1565b600f545b905080821061196657876118e857604051631eb49d6d60e11b815260040160405180910390fd5b6000838152600760205260409020805460ff60e81b19169055600e5460ff1015611934576000838152600760205260409020805460ff60e01b191660ff60e01b179055600194506119aa565b600e546000848152600760205260409020805460ff909216600160e01b0260ff60e01b199092169190911790556119aa565b871561198557604051631eb49d6d60e11b815260040160405180910390fd5b6000838152600760205260409020805460ff60e81b1916600160e81b60ff8516021790555b50505b82156119c657600e546000828152601160205260409020555b60405181903390309060008051602061598a83398151915290600090a46119f1888884886001613682565b93505080806119ff9061539a565b915050611561565b503360009081526006602052604090208054869190600290611a3490849062010000900461ffff166153ce565b82546101009290920a61ffff81810219909316918316021790915533600090815260066020526040812080548994509092611a71918591166153b3565b92506101000a81548161ffff021916908361ffff16021790555085859050600560000160068282829054906101000a900461ffff16611ab091906153ce565b825461ffff9182166101009390930a9283029190920219909116179055506004805460405163549055c960e01b81526001600160a01b039091169163549055c991611b019133918b918b91016153e9565b600060405180830381600087803b158015611b1b57600080fd5b505af1158015611b2f573d6000803e3d6000fd5b50505050505050505050565b60606000826001600160401b03811115611b5757611b57614ea5565b604051908082528060200260200182016040528015611b9057816020015b611b7d614a0e565b815260200190600190039081611b755790505b5090506000611b9d614a0e565b60005b85811015611d31576000878783818110611bbc57611bbc61536e565b9050602002013590508315611bd45760009350611be0565b611bdd81612cff565b92505b82858381518110611bf357611bf361536e565b60200260200101819052506000836020015161ffff16600014611c1f5750602083015161ffff16611c69565b610d0582118015611c4b5750600554611c449062010000900461ffff16610d056153b3565b61ffff1682105b15611c6257611c5b826001615537565b9050611c69565b5050611d1f565b6000818152600760205260409020546001600160a01b031615611c8d575050611d1f565b87611c99846001615537565b108015611cc75750808989611caf866001615537565b818110611cbe57611cbe61536e565b90506020020135145b15611d1c5760008181526007602081815260408084205461ffff600160f01b8204811660c08b0152600160a01b820481168a85015295909452919052600160b01b909104909116908401525060019250611d1f565b50505b80611d298161539a565b915050611ba0565b509195945050505050565b336000908152600c602052604090205460ff16158015611d675750600a546001600160a01b03163314155b15611d855760405163e3372e2d60e01b815260040160405180910390fd5b811561202557801561202557611d99614a0e565b60008060005b85811015611fdf576000878783818110611dbb57611dbb61536e565b90506020020135905083611fbc57611dd281612cff565b9450886001600160a01b031685600001516001600160a01b031614611e0a57604051631eb49d6d60e11b815260040160405180910390fd5b846060015163ffffffff16600003611e3557604051631eb49d6d60e11b815260040160405180910390fd5b6000611e4086613a5f565b90506000866080015160ff16600014611e5b57601054611e5f565b600f545b9050808210611e8157604051631eb49d6d60e11b815260040160405180910390fd5b60008381526007602090815260409182902089518154928b0151938b015160608c015160808d015160a08e015160c08f01516001600160a01b039095166001600160b01b031990971696909617600160a01b61ffff988916021765ffffffffffff60b01b1916600160b01b9388169390930263ffffffff60c01b191692909217600160c01b63ffffffff909216919091021761ffff60e01b1916600160e01b60ff9283160260ff60e81b191617600160e81b9190941602929092176001600160f01b0316600160f01b9390921692909202179055611f608860186154d7565b611f6c90610e106154d7565b60008481526007602052604090208054601890611f97908490600160c01b900463ffffffff1661554a565b92506101000a81548163ffffffff021916908363ffffffff1602179055506001945050505b611fc98888848887613682565b9350508080611fd79061539a565b915050611d9f565b50838686604051611ff1929190615567565b604051908190038120907f57e6bdf24f3c6059dcb3868a521ca6836bb70e97cb0cd3f10ce3216f5e5b713890600090a35050505b50505050565b8161203581613e20565b610c0b8383613629565b60125460ff161561205557610c0b838383612c50565b610c0b838383613ede565b600a546001600160a01b031633148015906120865750600b546001600160a01b03163314155b156120a45760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b0381166120cb57604051631eb49d6d60e11b815260040160405180910390fd5b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610d3b573d6000803e3d6000fd5b600a546001600160a01b031633148015906121265750600b546001600160a01b03163314155b156121445760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b60008181526011602052604081205415612196575060009081526011602052604090205490565b60006121a183612cff565b6080015160ff169392505050565b60148054610ca590615334565b826001600160a01b03811633146121d6576121d633613e20565b612025848484613ae1565b6000806121ed83612cff565b9050806060015163ffffffff1660001461220957503092915050565b5192915050565b336000908152600c602052604090205460ff1615801561223b5750600a546001600160a01b03163314155b156122595760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b0385166000908152600660205260409020805484919060089061228f908490600160401b900461ffff166153b3565b825461ffff9182166101009390930a9283029190920219909116179055506001600160a01b0384166000908152600660205260409020821561234057805484908290600c906122ea908490600160601b900461ffff166153b3565b92506101000a81548161ffff021916908361ffff1602179055508181600001600c9054906101000a900461ffff1661ffff16111561233b57604051631a93c68960e11b815260040160405180910390fd5b6123b0565b805484908290600a9061235f908490600160501b900461ffff166153b3565b92506101000a81548161ffff021916908361ffff1602179055508181600001600a9054906101000a900461ffff1661ffff1611156123b057604051631a93c68960e11b815260040160405180910390fd5b505050505050565b60138054610ca590615334565b600a546001600160a01b031633148015906123eb5750600b546001600160a01b03163314155b156124095760405163e3372e2d60e01b815260040160405180910390fd5b6012805460ff1916911515919091179055565b6000306001600160a01b03831603612441575050600554600160301b900461ffff1690565b506001600160a01b031660009081526006602052604090205461ffff1690565b336000908152600c602052604090205460ff1615801561248c5750600a546001600160a01b03163314155b156124aa5760405163e3372e2d60e01b815260040160405180910390fd5b6124b9838361ffff1683613305565b600580548391906004906124da908490640100000000900461ffff166153b3565b82546101009290920a61ffff8181021990931691831602179091556001600160a01b038516600090815260066020526040902080548593509091600e9161252a918591600160701b9004166153b3565b92506101000a81548161ffff021916908361ffff1602179055506115b3600560000160029054906101000a900461ffff1661ffff161115610c0b57604051631a93c68960e11b815260040160405180910390fd5b60008061258a83612cff565b905061259581613a5f565b9392505050565b816125a681613e20565b610c0b8383613ef9565b60608181015163ffffffff16151560006125c984613a5f565b608085015160008781526011602052604090205491925060ff1690156125fa57506000858152601160205260409020545b821561269e576013811561262c576040518060400160405280600681526020016572656d69782d60d01b81525061264e565b60405180604001604052806008815260200167696e697469616c2d60c01b8152505b61265788613f65565b61266085613f65565b6126718960c0015161ffff16613f65565b604051602001612685959493929190615603565b6040516020818303038152906040529350505050610c92565b600060155482106126b05760146126b3565b60135b90508082156126de57604051806040016040528060048152602001636375622d60e01b8152506126ff565b6040518060400160405280600781526020016663756272796f2d60c81b8152505b61270889613f65565b61271186613f65565b604051602001612724949392919061567c565b60405160208183030381529060405294505050505092915050565b60038054610ca590615334565b600a546001600160a01b031633148015906127725750600b546001600160a01b03163314155b156127905760405163e3372e2d60e01b815260040160405180910390fd5b6013610c0b82848361571c565b60125460ff16156127b257610d3b828261259c565b610d3b8282613ef9565b336000908152600c602052604090205460ff161580156127e75750600a546001600160a01b03163314155b156128055760405163e3372e2d60e01b815260040160405180910390fd5b61202584848484613ff7565b82156120255761281f614a0e565b60008060005b86811015612bbc5760008888838181106128415761284161536e565b602090810292909201356000818152600790935260409092205491925050600160f01b900461ffff161561288857604051631eb49d6d60e11b815260040160405180910390fd5b600d600088888581811061289e5761289e61536e565b90506020020160208101906128b391906157db565b61ffff16815260208101919091526040016000205460ff16156128e957604051631eb49d6d60e11b815260040160405180910390fd5b8686838181106128fb576128fb61536e565b905060200201602081019061291091906157db565b6000828152600760205260409020805461ffff92909216600160f01b026001600160f01b039092169190911790556001600160a01b037f00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db166323b872dd33308a8a878181106129815761298161536e565b905060200201602081019061299691906157db565b6040518463ffffffff1660e01b81526004016129b493929190615510565b600060405180830381600087803b1580156129ce57600080fd5b505af11580156129e2573d6000803e3d6000fd5b5050505083612b9957600092506129f881612cff565b608081015190955060ff1615612a2157604051631eb49d6d60e11b815260040160405180910390fd5b84516001600160a01b03163314612a4b57604051631eb49d6d60e11b815260040160405180910390fd5b846060015163ffffffff16600003612a7657604051631eb49d6d60e11b815260040160405180910390fd5b6000612a8186613a5f565b9050600f548110612aa557604051631eb49d6d60e11b815260040160405180910390fd5b6001811115612b975760008281526007602090815260409182902088518154928a0151938a015160608b015160808c015160a08d015160c08e01516001600160a01b039095166001600160b01b031990971696909617600160a01b61ffff988916021765ffffffffffff60b01b1916600160b01b9388169390930263ffffffff60c01b191692909217600160c01b63ffffffff909216919091021761ffff60e01b1916600160e01b60ff9283160260ff60e81b191617600160e81b919094160292909217600164ff0000000160c01b0316600160f01b939092169290920265ff00ffffffff60c01b1916179055600193505b505b612ba68989848887613682565b9350508080612bb49061539a565b915050612825565b508484604051612bcd9291906157f6565b60405180910390208787604051612be5929190615567565b604051908190038120907f385ad5bb5363d3864fa9eb288438962ddf85c5eb0db96f626b60f56f7b01e26490600090a350505050505050565b600061220982612cff565b60125460ff1615612c4457612c3f848484612c50565b612025565b612025848484846143cb565b826001600160a01b0381163314612c6a57612c6a33613e20565b612025848484613ede565b60606000612c8283612cff565b601254604051638dd57f1b60e01b815291925061010090046001600160a01b031690638dd57f1b90612cba9086908590600401615831565b600060405180830381865afa158015612cd7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125959190810190615846565b612d07614a0e565b600082815260076020908152604091829020825160e08101845290546001600160a01b03811680835261ffff600160a01b8304811694840194909452600160b01b820484169483019490945263ffffffff600160c01b820416606083015260ff600160e01b820481166080840152600160e81b82041660a0830152600160f01b900490911660c082015290610c92576040810151819061ffff1615612e43575b60409182015161ffff90811660009081526007602090815290849020845160e08101865290546001600160a01b038116808352600160a01b8204851693830193909352600160b01b810484169582019590955263ffffffff600160c01b860416606082015260ff600160e01b860481166080830152600160e81b86041660a0820152600160f01b90940490911660c084015215612da757612f37565b610d0584118015612e705750600554612e689062010000900461ffff16610d056153b3565b61ffff168411155b15612f1e575b60076000612e83866158b3565b8082526020808301939093526040918201600020825160e08101845290546001600160a01b03811680835261ffff600160a01b8304811696840196909652600160b01b820486169483019490945263ffffffff600160c01b820416606083015260ff600160e01b820481166080840152600160e81b82041660a0830152600160f01b900490931660c0840152955090925015612e7657612f37565b604051634a1850bf60e11b815260040160405180910390fd5b60c08082015161ffff90811691840191909152602080830151821690840152604091820151169082015292915050565b600a546001600160a01b03163314801590612f8d5750600b546001600160a01b03163314155b15612fab5760405163e3372e2d60e01b815260040160405180910390fd5b610d3b82826143ff565b600a546001600160a01b03163314801590612fdb5750600b546001600160a01b03163314155b15612ff95760405163e3372e2d60e01b815260040160405180910390fd5b600f91909155601055565b600a546001600160a01b0316331480159061302a5750600b546001600160a01b03163314155b156130485760405163e3372e2d60e01b815260040160405180910390fd5b6015839055601461202582848361571c565b600a546001600160a01b031633148015906130805750600b546001600160a01b03163314155b1561309e5760405163e3372e2d60e01b815260040160405180910390fd5b600e80549060006130ae8361539a565b9190505550565b836001600160a01b03811633146130cf576130cf33613e20565b6113fb858585856143cb565b600a546001600160a01b031633148015906131015750600b546001600160a01b03163314155b1561311f5760405163e3372e2d60e01b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633148015906131675750600b546001600160a01b03163314155b156131855760405163e3372e2d60e01b815260040160405180910390fd5b61318e816144fc565b50565b8060005b8161ffff168110156120255760008484838181106131b5576131b561536e565b905060200201359050336001600160a01b03166131d182612c1e565b6001600160a01b0316146131f857604051631eb49d6d60e11b815260040160405180910390fd5b600081815260076020526040908190205490516323b872dd60e01b81527f00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db6001600160a01b0316916323b872dd916132629130913391600160f01b900461ffff1690600401615510565b600060405180830381600087803b15801561327c57600080fd5b505af1158015613290573d6000803e3d6000fd5b505050600082815260076020526040808220549051600160f01b90910461ffff16925083917f4105bf7d7d5dd178ee6bce5ac8517ce18d3f664d9506b0927fc2d493891f38fd91a3600090815260076020526040902080546001600160f01b03169055806132fd8161539a565b915050613195565b6005546000906133219062010000900461ffff16610d066153b3565b61ffff169050600060016133358584615537565b61333f91906158ca565b90506122b881111561336457604051631eb49d6d60e11b815260040160405180910390fd5b600082815260076020526040902080546001600160a01b0319166001600160a01b038716178155600580548691906002906133aa90849062010000900461ffff166153b3565b92506101000a81548161ffff021916908361ffff1602179055508460066000886001600160a01b03166001600160a01b0316815260200190815260200160002060000160068282829054906101000a900461ffff1661340991906153b3565b92506101000a81548161ffff021916908361ffff16021790555083156135a35760048054604051630a203c2560e31b81526001600160a01b03898116938201939093526024810186905260448101889052911690635101e12890606401600060405180830381600087803b15801561348057600080fd5b505af1158015613494573d6000803e3d6000fd5b5050825463ffffffff60c01b1916600160c01b4263ffffffff16021783555050600580548691906006906134d4908490600160301b900461ffff166153b3565b82546101009290920a61ffff8181021990931691831602179091556001600160a01b038816600090815260066020526040902080548893509091600291613523918591620100009004166153b3565b92506101000a81548161ffff021916908361ffff1602179055505b81831161233b5760405183906001600160a01b0388169060009060008051602061598a833981519152908290a4604051839030906001600160a01b0389169060008051602061598a83398151915290600090a48261359b8161539a565b93505061353e565b6001600160a01b038616600090815260066020526040812080548792906135cf90849061ffff166153b3565b92506101000a81548161ffff021916908361ffff1602179055505b8183116123b05760405183906001600160a01b0388169060009060008051602061598a833981519152908290a4826136218161539a565b9350506135ea565b60008181526008602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839233917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a45050565b6000808686868181106136975761369761536e565b9050602002013590506000846020015161ffff166000146136c15750602084015161ffff1661370f565b610d05821180156136ed57506005546136e69062010000900461ffff16610d056153b3565b61ffff1682105b15613704576136fd826001615537565b905061370f565b600092505050613a56565b6000818152600760205260409020546001600160a01b03161561373757600092505050613a56565b86613743876001615537565b1080156137715750808888613759896001615537565b8181106137685761376861536e565b90506020020135145b1561378157600192505050613a56565b8315613a4f576000600760008381526020019081526020016000206040518060e00160405290816000820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016000820160149054906101000a900461ffff1661ffff1661ffff1681526020016000820160169054906101000a900461ffff1661ffff1661ffff1681526020016000820160189054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160008201601c9054906101000a900460ff1660ff1660ff16815260200160008201601d9054906101000a900460ff1660ff1660ff16815260200160008201601e9054906101000a900461ffff1661ffff1661ffff16815250509050856007600084815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548161ffff021916908361ffff16021790555060408201518160000160166101000a81548161ffff021916908361ffff16021790555060608201518160000160186101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001601c6101000a81548160ff021916908360ff16021790555060a082015181600001601d6101000a81548160ff021916908360ff16021790555060c082015181600001601e6101000a81548161ffff021916908361ffff1602179055509050508060c0015160076000848152602001908152602001600020600001601e6101000a81548161ffff021916908361ffff16021790555080602001516007600084815260200190815260200160002060000160146101000a81548161ffff021916908361ffff16021790555080604001516007600084815260200190815260200160002060000160166101000a81548161ffff021916908361ffff160217905550505b6000925050505b95945050505050565b60a0810151606082015160009160ff169063ffffffff1615613aac5762093a80836060015163ffffffff1642613a9591906158ca565b613a9f91906154ee565b613aa99082615537565b90505b6000836080015160ff16600014613ac557601054613ac9565b600f545b905080821115613ada579392505050565b5092915050565b826001600160a01b0316826001600160a01b031603613b1357604051631eb49d6d60e11b815260040160405180910390fd5b6001600160a01b038216613b3a57604051631eb49d6d60e11b815260040160405180910390fd5b6000613b4582612cff565b90506000816060015163ffffffff161180613b765750836001600160a01b031681600001516001600160a01b031614155b15613b9457604051631eb49d6d60e11b815260040160405180910390fd5b80516001600160a01b03163314613c0f5780516001600160a01b0316600090815260096020908152604080832033845290915290205460ff16158015613bf157506000828152600860205260409020546001600160a01b03163314155b15613c0f57604051631eb49d6d60e11b815260040160405180910390fd5b6000828152600860205260409020546001600160a01b031615613c7e5760008281526008602052604080822080546001600160a01b0319169055518391906001600160a01b038716907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925908390a45b805160405183916001600160a01b038087169291169060008051602061598a83398151915290600090a4613cb2818361454e565b6001600160a01b03808416825284166000908152600660205260408120805461ffff1691613cdf836158dd565b82546101009290920a61ffff8181021990931691831602179091556001600160a01b038516600090815260066020526040812080549092169250613d22836158fb565b82546101009290920a61ffff8181021990931691831602179091556000938452600760209081526040948590208451815492860151968601516060870151608088015160a089015160c0909901516001600160a01b039094166001600160b01b031990961695909517600160a01b998716999099029890981765ffffffffffff60b01b1916600160b01b9186169190910263ffffffff60c01b191617600160c01b63ffffffff909816979097029690961761ffff60e01b1916600160e01b60ff9384160260ff60e81b191617600160e81b9290951691909102939093176001600160f01b0316600160f01b9490911693909302929092179055505050565b6daaeb6d7670e522a718067333cd4e3b1561318e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015613e8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613eb1919061591c565b61318e57604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b610c0b83838360405180602001604052806000815250612c29565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60606000613f7283614801565b60010190506000816001600160401b03811115613f9157613f91614ea5565b6040519080825280601f01601f191660200182016040528015613fbb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084613fc557509392505050565b60005b828110156141fc5760008484838181106140165761401661536e565b90506020020135905060006007600083815260200190815260200160002090508160000361405757604051631eb49d6d60e11b815260040160405180910390fd5b80546001600160a01b03161561408057604051631eb49d6d60e11b815260040160405180910390fd5b8054600160b01b900461ffff16156140ab57604051631eb49d6d60e11b815260040160405180910390fd5b80546001600160a01b0319166001600160a01b038816908117825560405183919060009060008051602061598a833981519152908290a4831561412b57604051829030906001600160a01b038a169060008051602061598a83398151915290600090a4805463ffffffff60c01b1916600160c01b4263ffffffff16021781555b826000036141515780546001600160a01b0319166001600160a01b0388161781556141e7565b858561415e6001866158ca565b81811061416d5761416d61536e565b835461ffff60b01b1916600160b01b602092909202939093013561ffff160291909117825550816007600088886141a56001896158ca565b8181106141b4576141b461536e565b90506020020135815260200190815260200160002060000160146101000a81548161ffff021916908361ffff1602179055505b505080806141f49061539a565b915050613ffa565b506005805483919060009061421690849061ffff166153b3565b92506101000a81548161ffff021916908361ffff160217905550801561432d5760058054839190600690614256908490600160301b900461ffff166153b3565b82546101009290920a61ffff8181021990931691831602179091556001600160a01b0386166000908152600660205260409020805485935090916002916142a5918591620100009004166153b3565b825461ffff9182166101009390930a928302919092021990911617905550600480546040516366664d4960e11b81526001600160a01b039091169163cccc9a92916142f691889188918891016153e9565b600060405180830381600087803b15801561431057600080fd5b505af1158015614324573d6000803e3d6000fd5b50505050614374565b6001600160a01b0384166000908152600660205260408120805484929061435990849061ffff166153b3565b92506101000a81548161ffff021916908361ffff1602179055505b6001600160a01b038416600090815260066020526040902080548391906004906143ab908490640100000000900461ffff166153b3565b92506101000a81548161ffff021916908361ffff16021790555050505050565b6143d6848484611402565b6143e2848484846148d9565b612025576040516368d2bf6b60e11b815260040160405180910390fd5b6127106001600160601b038216111561446d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401613ed5565b6001600160a01b0382166144c35760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401613ed5565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826020015161ffff1660001461456f5750602082015161ffff166145b0565b610d05821115610c0b57614584826001615537565b6005549091506145a09062010000900461ffff16610d056153b3565b61ffff168111156145b057505050565b600081815260076020908152604091829020825160e08101845290546001600160a01b03811680835261ffff600160a01b8304811694840194909452600160b01b820484169483019490945263ffffffff600160c01b820416606083015260ff600160e01b820481166080840152600160e81b82041660a0830152600160f01b900490911660c082015290156146465750505050565b836007600084815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548161ffff021916908361ffff16021790555060408201518160000160166101000a81548161ffff021916908361ffff16021790555060608201518160000160186101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001601c6101000a81548160ff021916908360ff16021790555060a082015181600001601d6101000a81548160ff021916908360ff16021790555060c082015181600001601e6101000a81548161ffff021916908361ffff16021790555090505080602001516007600084815260200190815260200160002060000160146101000a81548161ffff021916908361ffff16021790555080604001516007600084815260200190815260200160002060000160166101000a81548161ffff021916908361ffff1602179055508060c0015160076000848152602001908152602001600020600001601e6101000a81548161ffff021916908361ffff16021790555050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106148405772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061486c576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061488a57662386f26fc10000830492506010015b6305f5e10083106148a2576305f5e100830492506008015b61271083106148b657612710830492506004015b606483106148c8576064830492506002015b600a8310610c925760010192915050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061490e903390899088908890600401615939565b6020604051808303816000875af1925050508015614949575060408051601f3d908101601f191682019092526149469181019061596c565b60015b6149f1573d808015614977576040519150601f19603f3d011682016040523d82523d6000602084013e61497c565b606091505b5080516000036149e95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401613ed5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081019190915290565b80356001600160a01b0381168114614a6157600080fd5b919050565b803561ffff81168114614a6157600080fd5b801515811461318e57600080fd5b600080600060608486031215614a9b57600080fd5b614aa484614a4a565b9250614ab260208501614a66565b91506040840135614ac281614a78565b809150509250925092565b6001600160e01b03198116811461318e57600080fd5b600060208284031215614af557600080fd5b813561259581614acd565b60005b83811015614b1b578181015183820152602001614b03565b50506000910152565b60008151808452614b3c816020860160208601614b00565b601f01601f19169290920160200192915050565b6020815260006125956020830184614b24565b600060208284031215614b7557600080fd5b5035919050565b60008060408385031215614b8f57600080fd5b614b9883614a4a565b946020939093013593505050565b60008083601f840112614bb857600080fd5b5081356001600160401b03811115614bcf57600080fd5b6020830191508360208260051b850101111561153e57600080fd5b60008060208385031215614bfd57600080fd5b82356001600160401b03811115614c1357600080fd5b614c1f85828601614ba6565b90969095509350505050565b600060208284031215614c3d57600080fd5b61259582614a4a565b600080600060608486031215614c5b57600080fd5b614c6484614a4a565b9250614c7260208501614a4a565b9150604084013590509250925092565b60008060408385031215614c9557600080fd5b50508035926020909101359150565b600080600060408486031215614cb957600080fd5b83356001600160401b03811115614ccf57600080fd5b614cdb86828701614ba6565b9094509250506020840135614ac281614a78565b60018060a01b038151168252602081015161ffff808216602085015280604084015116604085015263ffffffff606084015116606085015260ff608084015116608085015260ff60a08401511660a08501528060c08401511660c085015250505050565b6020808252825182820181905260009190848201906040850190845b81811015614d9557614d82838551614cef565b9284019260e09290920191600101614d6f565b50909695505050505050565b60008060008060608587031215614db757600080fd5b614dc085614a4a565b935060208501356001600160401b03811115614ddb57600080fd5b614de787828801614ba6565b9598909750949560400135949350505050565b60008060408385031215614e0d57600080fd5b614e1683614a4a565b91506020830135614e2681614a78565b809150509250929050565b600080600080600060a08688031215614e4957600080fd5b614e5286614a4a565b9450614e6060208701614a4a565b9350604086013592506060860135614e7781614a78565b949793965091946080013592915050565b600060208284031215614e9a57600080fd5b813561259581614a78565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715614edd57614edd614ea5565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614f0b57614f0b614ea5565b604052919050565b803560ff81168114614a6157600080fd5b600080828403610100811215614f3957600080fd5b8335925060e0601f1982011215614f4f57600080fd5b50614f58614ebb565b614f6460208501614a4a565b8152614f7260408501614a66565b6020820152614f8360608501614a66565b6040820152608084013563ffffffff81168114614f9f57600080fd5b6060820152614fb060a08501614f13565b6080820152614fc160c08501614f13565b60a0820152614fd260e08501614a66565b60c0820152809150509250929050565b60008083601f840112614ff457600080fd5b5081356001600160401b0381111561500b57600080fd5b60208301915083602082850101111561153e57600080fd5b6000806020838503121561503657600080fd5b82356001600160401b0381111561504c57600080fd5b614c1f85828601614fe2565b6000806000806060858703121561506e57600080fd5b61507785614a4a565b935060208501356001600160401b0381111561509257600080fd5b61509e87828801614ba6565b90945092505060408501356150b281614a78565b939692955090935050565b600080600080604085870312156150d357600080fd5b84356001600160401b03808211156150ea57600080fd5b6150f688838901614ba6565b9096509450602087013591508082111561510f57600080fd5b5061511c87828801614ba6565b95989497509550505050565b60006001600160401b0382111561514157615141614ea5565b50601f01601f191660200190565b6000806000806080858703121561516557600080fd5b61516e85614a4a565b935061517c60208601614a4a565b92506040850135915060608501356001600160401b0381111561519e57600080fd5b8501601f810187136151af57600080fd5b80356151c26151bd82615128565b614ee3565b8181528860208385010111156151d757600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60e08101610c928284614cef565b6000806040838503121561521a57600080fd5b61522383614a4a565b915060208301356001600160601b0381168114614e2657600080fd5b60008060006040848603121561525457600080fd5b8335925060208401356001600160401b0381111561527157600080fd5b61527d86828701614fe2565b9497909650939450505050565b6000806040838503121561529d57600080fd5b6152a683614a4a565b91506152b460208401614a4a565b90509250929050565b60008060008060008060a087890312156152d657600080fd5b6152df87614a4a565b95506152ed60208801614a4a565b9450604087013593506060870135925060808701356001600160401b0381111561531657600080fd5b61532289828a01614fe2565b979a9699509497509295939492505050565b600181811c9082168061534857607f821691505b60208210810361536857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016153ac576153ac615384565b5060010190565b61ffff818116838216019080821115613ada57613ada615384565b61ffff828116828216039080821115613ada57613ada615384565b6001600160a01b0384168152604060208201819052810182905260006001600160fb1b0383111561541957600080fd5b8260051b8085606085013791909101606001949350505050565b60006020828403121561544557600080fd5b81516001600160401b038116811461259557600080fd5b600081518084526020808501945080840160005b8381101561548c57815187529582019590820190600101615470565b509495945050505050565b6001600160a01b03841681526060602082018190526000906154bb9083018561545c565b82810360408401526154cd818561545c565b9695505050505050565b8082028115828204841417610c9257610c92615384565b60008261550b57634e487b7160e01b600052601260045260246000fd5b500490565b6001600160a01b03938416815291909216602082015261ffff909116604082015260600190565b80820180821115610c9257610c92615384565b63ffffffff828116828216039080821115613ada57613ada615384565b60006001600160fb1b0383111561557d57600080fd5b8260051b80858437919091019392505050565b6000815461559d81615334565b600182811680156155b557600181146155ca576155f9565b60ff19841687528215158302870194506155f9565b8560005260208060002060005b858110156155f05781548a8201529084019082016155d7565b50505082870194505b5050505092915050565b600061560f8288615590565b865161561f818360208b01614b00565b8651910190615632818360208a01614b00565b602d60f81b91018181528551909190615652816001850160208a01614b00565b6001920191820152835161566d816002840160208801614b00565b01600201979650505050505050565b60006156888287615590565b8551615698818360208a01614b00565b85519101906156ab818360208901614b00565b602d60f81b910190815283516156c8816001840160208801614b00565b016001019695505050505050565b601f821115610c0b57600081815260208120601f850160051c810160208610156156fd5750805b601f850160051c820191505b818110156123b057828155600101615709565b6001600160401b0383111561573357615733614ea5565b615747836157418354615334565b836156d6565b6000601f84116001811461577b57600085156157635750838201355b600019600387901b1c1916600186901b1783556113fb565b600083815260209020601f19861690835b828110156157ac578685013582556020948501946001909201910161578c565b50868210156157c95760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000602082840312156157ed57600080fd5b61259582614a66565b60008184825b858110156158265761ffff61581083614a66565b16835260209283019291909101906001016157fc565b509095945050505050565b82815261010081016125956020830184614cef565b60006020828403121561585857600080fd5b81516001600160401b0381111561586e57600080fd5b8201601f8101841361587f57600080fd5b805161588d6151bd82615128565b8181528560208385010111156158a257600080fd5b613a56826020830160208601614b00565b6000816158c2576158c2615384565b506000190190565b81810381811115610c9257610c92615384565b600061ffff8216806158f1576158f1615384565b6000190192915050565b600061ffff80831681810361591257615912615384565b6001019392505050565b60006020828403121561592e57600080fd5b815161259581614a78565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906154cd90830184614b24565b60006020828403121561597e57600080fd5b815161259581614acd56feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207a9b28741414445e0e760e797fc7a6edbfe64c705c1cf60b04febabb7781035e64736f6c63430008130033

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

00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db000000000000000000000000153f8df0ce6a014e21f6fe6825129c53fa6ce0d80000000000000000000000001bf52762f9e486d8c373c866f977134d7331c5a5

-----Decoded View---------------
Arg [0] : bitsAddress (address): 0x64a1C0937728d8d2fA8Cd81Ef61a9c860B7362Db
Arg [1] : gearAddress (address): 0x153f8df0CE6A014e21F6FE6825129c53FA6cE0d8
Arg [2] : superOwner (address): 0x1Bf52762F9E486d8c373c866F977134D7331C5a5

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db
Arg [1] : 000000000000000000000000153f8df0ce6a014e21f6fe6825129c53fa6ce0d8
Arg [2] : 0000000000000000000000001bf52762f9e486d8c373c866f977134d7331c5a5


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.