ETH Price: $3,487.27 (+4.60%)

Token

KillaCubs (KillaCubs)
 

Overview

Max Total Supply

8,552 KillaCubs

Holders

763

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
mrpibbnophd.q00t.eth
Balance
1 KillaCubs
0xf9cb99d5f2a8485eb499bafbb0d3cc118de87214
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The Killaverse is under attack, and only YOU can save it! Stake your Cubryo in the Incubation Machine and watch it evolve through 8 Phases on its way to becoming a full-grown Killacub!

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
KillaCubsV2

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

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

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

contract KillaCubsV2 is KillaCubsERC721, IURIManager {
    using Strings for uint256;
    using Strings for uint16;

    constructor(
        address bitsAddress,
        address gearAddress,
        address bearsAddress,
        address passesAddress,
        address kiltonAddress,
        address labsAddress,
        address superOwner
    )
        KillaCubsERC721(
            bitsAddress,
            gearAddress,
            bearsAddress,
            passesAddress,
            kiltonAddress,
            labsAddress,
            superOwner
        )
    {
        uriManager = IURIManager(this);
    }

    function toggleClaims(bool enabled) external onlyOwner {
        claimsStarted = enabled;
    }

    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 = calculateIncubationPhase(
            token.incubationPhase,
            token.stakeTimestamp,
            token.generation
        );
        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 || gen == 0
            ? baseURI
            : baseURIFinalized;

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

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

    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 copyTokensClaimed(address, uint256, uint256) external onlyOwner {
        (bool success, ) = _delegatecall(airdropper, msg.data);
        require(success, "delegatecall failed");
    }

    function copyTokensBatched(address, uint256, uint256) external onlyOwner {
        (bool success, ) = _delegatecall(airdropper, msg.data);
        require(success, "delegatecall failed");
    }

    function stake(uint256[] calldata) external {
        (bool success, ) = _delegatecall(staker, msg.data);
        require(success, "delegatecall failed");
    }

    function unstake(uint256[] calldata, bool) external {
        (bool success, ) = _delegatecall(staker, msg.data);
        require(success, "delegatecall failed");
    }

    function addBits(uint256[] calldata, uint16[] calldata) external {
        (bool success, ) = _delegatecall(staker, msg.data);
        require(success, "delegatecall failed");
    }

    function removeBits(uint256[] calldata) external {
        (bool success, ) = _delegatecall(staker, msg.data);
        require(success, "delegatecall failed");
    }

    function extractGear(uint256[] calldata) external {
        (bool success, ) = _delegatecall(staker, msg.data);
        require(success, "delegatecall failed");
    }

    function fastForward(
        address,
        uint256[] calldata,
        uint256
    ) external onlyAuthority {
        (bool success, ) = _delegatecall(staker, msg.data);
        require(success, "delegatecall failed");
    }

    function configureStakingWindows(uint256, uint256) external onlyOwner {
        (bool success, ) = _delegatecall(staker, msg.data);
        require(success, "delegatecall failed");
    }

    function setIncubator(address) external onlyOwner {
        (bool success, ) = _delegatecall(staker, msg.data);
        require(success, "delegatecall failed");
    }

    function startNexGeneration() external onlyOwner {
        (bool success, ) = _delegatecall(staker, msg.data);
        require(success, "delegatecall failed");
    }

    function claim(uint256[] calldata, bool) public {
        (bool success, ) = _delegatecall(claimer, msg.data);
        require(success, "delegatecall failed");
    }

    function redeem(uint16, bool) external {
        (bool success, ) = _delegatecall(claimer, msg.data);
        require(success, "delegatecall failed");
    }

    fallback() external payable {
        address extension = extensions[msg.sig];
        require(extension != address(0));
        assembly {
            calldatacopy(0, 0, calldatasize())
            let result := delegatecall(
                gas(),
                extension,
                0,
                calldatasize(),
                0,
                0
            )
            returndatacopy(0, 0, returndatasize())
            switch result
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    receive() external payable {}
}

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

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

abstract contract KillaCubsStaking is KillaCubsERC721 {
    

}

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 : KillaCubsERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;

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

abstract contract KillaCubsERC721 is KillaCubsStorage {
    constructor(
        address bitsAddress,
        address gearAddress,
        address bearsAddress,
        address passesAddress,
        address kiltonAddress,
        address labsAddress,
        address superOwner
    )
        KillaCubsStorage(
            bitsAddress,
            gearAddress,
            bearsAddress,
            passesAddress,
            kiltonAddress,
            labsAddress,
            superOwner
        )
    {
        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 (to.code.length != 0)
            if (!_checkOnERC721Received(from, to, id, data))
                revert TransferToNonERC721ReceiverImplementer();
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);
        if (to.code.length != 0)
            if (!_checkOnERC721Received(from, to, id, ""))
                revert TransferToNonERC721ReceiverImplementer();
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual onlyAllowedOperator(from) {
        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 onlyAllowedOperatorApproval(to) {
        address owner = ownerOf(id);
        if (msg.sender != owner) {
            if (!isApprovedForAll(owner, msg.sender)) {
                revert NotAllowed();
            }
        }

        tokenApprovals[id] = to;
        emit Approval(msg.sender, to, id);
    }

    function setApprovalForAll(
        address operator,
        bool approved
    ) public virtual onlyAllowedOperatorApproval(operator) {
        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
    ) public 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)"
                )
            );
    }

    function calculateIncubationPhase(
        uint256 phase,
        uint256 ts,
        uint256 gen
    ) public view returns (uint256) {
        if (ts != 0) {
            phase += (block.timestamp - ts) / 1 weeks;
        }
        uint256 max = gen == 0
            ? initialIncubationLength
            : remixIncubationLength;
        if (phase > max) return max;
        return phase;
    }

    function getIncubationPhase(uint256 id) public view returns (uint256) {
        Token memory token = resolveToken(id);
        return
            calculateIncubationPhase(
                token.incubationPhase,
                token.stakeTimestamp,
                token.generation
            );
    }

    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 : KillaCubsStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;

import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "../SuperOwnable.sol";

interface IKillaPasses {
    function burn(uint256 typeId, address owner, uint256 n) external;
}

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

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

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

interface IERC721 {
    function ownerOf(uint256 tokenId) external view returns (address owner);
}

abstract contract KillaCubsStorage is
    DefaultOperatorFilterer,
    SuperOwnable,
    ERC2981
{
    string public name;
    string public symbol;

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

    IIncubator public incubator;

    MintCounters public counters;

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

    IKILLABITS public bitsContract;
    IKILLAGEAR public gearContract;

    IERC721 public bears;
    IKillaPasses public passes;
    IERC721 public kilton;
    IERC721 public labs;
    bool public claimsStarted;

    mapping(uint256 => bool) public bitsUsed;
    mapping(uint256 => uint256) public laterGenerations;

    address public airdropper;
    address public staker;
    address public claimer;

    IURIManager public uriManager;

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

    mapping(bytes4 => address) extensions;
    mapping(uint256 => address) externalStorage;

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

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

    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(
        address bitsAddress,
        address gearAddress,
        address bearsAddress,
        address passesAddress,
        address kiltonAddress,
        address labsAddress,
        address superOwner
    ) SuperOwnable(superOwner) {
        bitsContract = IKILLABITS(bitsAddress);
        gearContract = IKILLAGEAR(gearAddress);
        bears = IERC721(bearsAddress);
        passes = IKillaPasses(passesAddress);
        kilton = IERC721(kiltonAddress);
        labs = IERC721(labsAddress);
    }

    function setAirdropper(address a) external onlyOwner {
        airdropper = a;
    }

    function setStaker(address a) external onlyOwner {
        staker = a;
    }

    function setClaimer(address a) external onlyOwner {
        claimer = a;
    }

    function setExtension(bytes4 id, address a) external onlyOwner {
        extensions[id] = a;
    }

    function setExternalStorage(uint256 id, address a) external onlyOwner {
        externalStorage[id] = a;
    }

    function _delegatecall(
        address target,
        bytes memory data
    ) internal returns (bool, bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        if (!success) {
            if (returndata.length == 0) revert();
            assembly {
                revert(add(32, returndata), mload(returndata))
            }
        }
        return (success, returndata);
    }
}

File 6 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 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 : 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 10 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 11 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 12 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 13 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 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":"bearsAddress","type":"address"},{"internalType":"address","name":"passesAddress","type":"address"},{"internalType":"address","name":"kiltonAddress","type":"address"},{"internalType":"address","name":"labsAddress","type":"address"},{"internalType":"address","name":"superOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ClaimNotStarted","type":"error"},{"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"},{"stateMutability":"payable","type":"fallback"},{"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":"","type":"uint256[]"},{"internalType":"uint16[]","name":"","type":"uint16[]"}],"name":"addBits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"airdropper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","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":"bears","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"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":"uint256","name":"phase","type":"uint256"},{"internalType":"uint256","name":"ts","type":"uint256"},{"internalType":"uint256","name":"gen","type":"uint256"}],"name":"calculateIncubationPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bool","name":"","type":"bool"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimsStarted","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":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"configureStakingWindows","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"copyTokensBatched","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"copyTokensClaimed","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":"","type":"uint256[]"}],"name":"extractGear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256","name":"","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":[],"name":"kilton","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"labs","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"laterGenerations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"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":"passes","outputs":[{"internalType":"contract IKillaPasses","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bool","name":"","type":"bool"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"remixIncubationLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"","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":[{"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":"id","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":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"setAirdropper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"setClaimer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"id","type":"bytes4"},{"internalType":"address","name":"a","type":"address"}],"name":"setExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"a","type":"address"}],"name":"setExternalStorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"setIncubator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"setStaker","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":"","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"enabled","type":"bool"}],"name":"toggleClaims","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":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bool","name":"","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":"","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"},{"stateMutability":"payable","type":"receive"}]

608060405260016007556008805560046009553480156200001f57600080fd5b506040516200455b3803806200455b83398101604081905262000042916200043d565b868686868686868686868686868680733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b15620001ad578015620000fb57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620000dc57600080fd5b505af1158015620000f1573d6000803e3d6000fd5b50505050620001ad565b6001600160a01b038216156200014c5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000c1565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200019357600080fd5b505af1158015620001a8573d6000803e3d6000fd5b505050505b50620001bb905033620002cb565b600180546001600160a01b03199081166001600160a01b039384161790915560108054821699831699909917909855601180548916978216979097179096555060128054871694861694909417909355601380548616928516929092179091556014805485169184169190911790556015805490931691161790556040805180820190915260098152684b696c6c614375627360b81b602082015260059062000265908262000577565b506040805180820190915260098152684b696c6c614375627360b81b602082015260069062000295908262000577565b50620002a4336101f46200031b565b5050601b80546001600160a01b0319163017905550620006439a5050505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6127106001600160601b03821611156200038f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003e75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000386565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b80516001600160a01b03811681146200043857600080fd5b919050565b600080600080600080600060e0888a0312156200045957600080fd5b620004648862000420565b9650620004746020890162000420565b9550620004846040890162000420565b9450620004946060890162000420565b9350620004a46080890162000420565b9250620004b460a0890162000420565b9150620004c460c0890162000420565b905092959891949750929550565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620004fd57607f821691505b6020821081036200051e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200057257600081815260208120601f850160051c810160208610156200054d5750805b601f850160051c820191505b818110156200056e5782815560010162000559565b5050505b505050565b81516001600160401b03811115620005935762000593620004d2565b620005ab81620005a48454620004e8565b8462000524565b602080601f831160018114620005e35760008415620005ca5750858301515b600019600386901b1c1916600185901b1785556200056e565b600085815260208120601f198616915b828110156200061457888601518255948401946001909101908401620005f3565b5085821015620006335787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613f0880620006536000396000f3fe6080604052600436106104405760003560e01c80637cd05b0911610234578063ca6484d91161012e578063e3b50504116100b6578063ee0c9cc21161007a578063ee0c9cc214610d16578063f23a6e6114610f07578063f2fde38b14610f66578063f721063314610f86578063ff3bf6bc1461057f57610447565b8063e3b5050414610e39578063e48a206d14610e4e578063e8fed30214610e7e578063e985e9c514610e9e578063ebceda3214610ee757610447565b8063d27c487b116100fd578063d27c487b14610d8c578063d3397c1314610dac578063d379be2314610dd9578063d89977ab14610df9578063dc489c9b14610e1957610447565b8063ca6484d914610d16578063ccdc828f14610d36578063cdfb583214610d56578063cf4227bd14610d7657610447565b8063a7b23b97116101bc578063c50cda1211610180578063c50cda1214610c69578063c87b56dd14610c89578063c890026b14610ca9578063c8f8a39914610cc9578063c9d6838914610cf657610447565b8063a7b23b9714610bc9578063acea8ebc14610be9578063b88d4fde14610c09578063b8ee528914610c29578063c2e802ea14610c4957610447565b80638dd57f1b116102035780638dd57f1b14610b3457806395d89b4114610b54578063a0bcfc7f14610b69578063a22cb46514610b89578063a29a43bb14610ba957610447565b80637cd05b0914610a0a57806387dcd2b614610a2a57806389b08f1114610a4a5780638da5cb5b14610b1457610447565b80633ab4c5a61161034557806352ed55d6116102cd5780636c0360eb116102915780636c0360eb1461097557806370a082311461098a5780637aef2f32146109aa5780637be8570a146109ca5780637bedb31b146109ea57610447565b806352ed55d6146108e057806356e3df97146109005780635b266c4b146109205780635ebaf1db146109355780636352211e1461095557610447565b806341f434341161031457806341f434341461079157806342842e0e146107b357806349a9ba31146107d35780634f64b2be146107f3578063520477f8146108c057610447565b80633ab4c5a61461070d5780633c8599ff1461073a5780633d30c2d71461075a5780633e97414f1461077057610447565b80631a3815e4116103c857806325f04af01161039757806325f04af01461064e57806329fa72661461066e5780632a55205a1461068e5780633228337a146106cd57806333b2cee0146106ed57610447565b80631a3815e4146105f85780631a4cbf46146106185780631dfa28a21461057f57806323b872dd1461062e57610447565b8063095ea7b31161040f578063095ea7b31461055f5780630fbf0a931461057f57806318160ddd1461059f578063198b474a146105c257806319b8fe20146105e257610447565b806301ffc9a71461049a5780630439a74a146104cf57806306fdde03146104ef578063081812fc1461051157610447565b3661044757005b600080356001600160e01b0319168152601f60205260409020546001600160a01b03168061047457600080fd5b3660008037600080366000845af43d6000803e808015610493573d6000f35b3d6000fd5b005b3480156104a657600080fd5b506104ba6104b5366004613146565b610fee565b60405190151581526020015b60405180910390f35b3480156104db57600080fd5b506104986104ea36600461317f565b611076565b3480156104fb57600080fd5b506105046110f4565b6040516104c69190613204565b34801561051d57600080fd5b5061054761052c366004613217565b6000908152600e60205260409020546001600160a01b031690565b6040516001600160a01b0390911681526020016104c6565b34801561056b57600080fd5b5061049861057a366004613230565b611182565b34801561058b57600080fd5b5061049861059a36600461329e565b611248565b3480156105ab57600080fd5b506105b46112ce565b6040519081526020016104c6565b3480156105ce57600080fd5b506104986105dd3660046132df565b6112f3565b3480156105ee57600080fd5b506105b460095481565b34801561060457600080fd5b506105b46106133660046132fa565b611359565b34801561062457600080fd5b506105b4601e5481565b34801561063a57600080fd5b50610498610649366004613326565b6113b7565b34801561065a57600080fd5b50601154610547906001600160a01b031681565b34801561067a57600080fd5b506104986106893660046132df565b611723565b34801561069a57600080fd5b506106ae6106a9366004613362565b611797565b604080516001600160a01b0390931683526020830191909152016104c6565b3480156106d957600080fd5b506104986106e8366004613392565b611845565b3480156106f957600080fd5b50601554610547906001600160a01b031681565b34801561071957600080fd5b5061072d61072836600461329e565b6118c3565b6040516104c6919061344c565b34801561074657600080fd5b5061049861075536600461349a565b611ac4565b34801561076657600080fd5b506105b460085481565b34801561077c57600080fd5b506015546104ba90600160a01b900460ff1681565b34801561079d57600080fd5b506105476daaeb6d7670e522a718067333cd4e81565b3480156107bf57600080fd5b506104986107ce366004613326565b611b8c565b3480156107df57600080fd5b50601254610547906001600160a01b031681565b3480156107ff57600080fd5b5061086f61080e366004613217565b600d602052600090815260409020546001600160a01b0381169061ffff600160a01b8204811691600160b01b810482169163ffffffff600160c01b8304169160ff600160e01b8204811692600160e81b830490911691600160f01b90041687565b604080516001600160a01b03909816885261ffff96871660208901529486169487019490945263ffffffff909216606086015260ff90811660808601521660a08401521660c082015260e0016104c6565b3480156108cc57600080fd5b506104986108db3660046134f3565b611bdf565b3480156108ec57600080fd5b506104986108fb36600461353c565b611c4e565b34801561090c57600080fd5b506105b461091b366004613217565b611ca6565b34801561092c57600080fd5b50610504611ce6565b34801561094157600080fd5b50601954610547906001600160a01b031681565b34801561096157600080fd5b50610547610970366004613217565b611cf3565b34801561098157600080fd5b50610504611d22565b34801561099657600080fd5b506105b46109a53660046132df565b611d2f565b3480156109b657600080fd5b50601b54610547906001600160a01b031681565b3480156109d657600080fd5b506105b46109e5366004613217565b611d74565b3480156109f657600080fd5b50610498610a05366004613558565b611da5565b348015610a1657600080fd5b50610498610a25366004613575565b611e07565b348015610a3657600080fd5b50600154610547906001600160a01b031681565b348015610a5657600080fd5b50610ac7610a653660046132df565b600c6020526000908152604090205461ffff808216916201000081048216916401000000008204811691600160301b8104821691680100000000000000008204811691600160501b8104821691600160601b8204811691600160701b90041688565b6040805161ffff998a16815297891660208901529588169587019590955292861660608601529085166080850152841660a0840152831660c083015290911660e0820152610100016104c6565b348015610b2057600080fd5b50600054610547906001600160a01b031681565b348015610b4057600080fd5b50610504610b4f366004613617565b611e78565b348015610b6057600080fd5b5061050461202f565b348015610b7557600080fd5b50610498610b84366004613716565b61203c565b348015610b9557600080fd5b50610498610ba43660046134f3565b61208d565b348015610bb557600080fd5b50610498610bc43660046132df565b612104565b348015610bd557600080fd5b50610498610be436600461374b565b611b0d565b348015610bf557600080fd5b50610547610c04366004613217565b61216a565b348015610c1557600080fd5b50610498610c243660046137dd565b612175565b348015610c3557600080fd5b50601354610547906001600160a01b031681565b348015610c5557600080fd5b50601054610547906001600160a01b031681565b348015610c7557600080fd5b50610498610c84366004613392565b6121b9565b348015610c9557600080fd5b50610504610ca4366004613217565b612211565b348015610cb557600080fd5b50601454610547906001600160a01b031681565b348015610cd557600080fd5b50610ce9610ce4366004613217565b612296565b6040516104c69190613887565b348015610d0257600080fd5b50601854610547906001600160a01b031681565b348015610d2257600080fd5b50610498610d31366004613895565b6124fe565b348015610d4257600080fd5b50610498610d513660046138c8565b61259a565b348015610d6257600080fd5b50610498610d713660046132df565b6125ec565b348015610d8257600080fd5b506105b460075481565b348015610d9857600080fd5b50610498610da7366004613362565b612652565b348015610db857600080fd5b506105b4610dc7366004613217565b60176020526000908152604090205481565b348015610de557600080fd5b50601a54610547906001600160a01b031681565b348015610e0557600080fd5b50610498610e14366004613900565b612696565b348015610e2557600080fd5b50610498610e343660046132df565b6126ec565b348015610e4557600080fd5b50610498612752565b348015610e5a57600080fd5b506104ba610e69366004613217565b60166020526000908152604090205460ff1681565b348015610e8a57600080fd5b50610498610e993660046132df565b612811565b348015610eaa57600080fd5b506104ba610eb936600461394b565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205460ff1690565b348015610ef357600080fd5b50600a54610547906001600160a01b031681565b348015610f1357600080fd5b50610f4d610f22366004613967565b7ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf979695505050505050565b6040516001600160e01b031990911681526020016104c6565b348015610f7257600080fd5b50610498610f813660046132df565b6128cd565b348015610f9257600080fd5b50600b54610fc09061ffff808216916201000081048216916401000000008204811691600160301b90041684565b6040805161ffff958616815293851660208501529184169183019190915290911660608201526080016104c6565b60006301ffc9a760e01b6001600160e01b03198316148061101f57506380ac58cd60e01b6001600160e01b03198316145b8061103a5750635b5e139f60e01b6001600160e01b03198316145b806110555750630271189760e51b6001600160e01b03198316145b80611070575063152a902d60e11b6001600160e01b03198316145b92915050565b6000546001600160a01b0316331480159061109c57506001546001600160a01b03163314155b156110ba5760405163e3372e2d60e01b815260040160405180910390fd5b6001600160e01b0319919091166000908152601f6020526040902080546001600160a01b0319166001600160a01b03909216919091179055565b60058054611101906139de565b80601f016020809104026020016040519081016040528092919081815260200182805461112d906139de565b801561117a5780601f1061114f5761010080835404028352916020019161117a565b820191906000526020600020905b81548152906001019060200180831161115d57829003601f168201915b505050505081565b8161118c8161291a565b600061119783611cf3565b9050336001600160a01b038216146111ed576001600160a01b0381166000908152600f6020908152604080832033845290915290205460ff166111ed57604051631eb49d6d60e11b815260040160405180910390fd5b6000838152600e602052604080822080546001600160a01b0319166001600160a01b0388169081179091559051859233917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a450505050565b60006112a0601960009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b509050806112c95760405162461bcd60e51b81526004016112c090613a18565b60405180910390fd5b505050565b600b546000906112ea9061ffff62010000820481169116613a5b565b61ffff16905090565b6000546001600160a01b0316331480159061131957506001546001600160a01b03163314155b156113375760405163e3372e2d60e01b815260040160405180910390fd5b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b600082156113865762093a8061136f8442613a7d565b6113799190613a90565b6113839085613ab2565b93505b600082156113965760095461139a565b6008545b9050808511156113ab5790506113b0565b849150505b9392505050565b826001600160a01b03811633146113d1576113d13361291a565b836001600160a01b0316836001600160a01b03160361140357604051631eb49d6d60e11b815260040160405180910390fd5b6001600160a01b03831661142a57604051631eb49d6d60e11b815260040160405180910390fd5b600061143583612296565b90506000816060015163ffffffff1611806114665750846001600160a01b031681600001516001600160a01b031614155b1561148457604051631eb49d6d60e11b815260040160405180910390fd5b80516001600160a01b031633146114ff5780516001600160a01b03166000908152600f6020908152604080832033845290915290205460ff161580156114e157506000838152600e60205260409020546001600160a01b03163314155b156114ff57604051631eb49d6d60e11b815260040160405180910390fd5b6000838152600e60205260409020546001600160a01b03161561156e576000838152600e602052604080822080546001600160a01b0319169055518491906001600160a01b038816907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925908390a45b805160405184916001600160a01b03808816929116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a46115b48184612a5d565b6001600160a01b03808516825285166000908152600c60205260408120805461ffff16916115e183613ac5565b82546101009290920a61ffff8181021990931691831602179091556001600160a01b0386166000908152600c602052604081208054909216925061162483613ae3565b82546101009290920a61ffff8181021990931691831602179091556000948552600d60209081526040958690208451815492860151978601516060870151608088015160a089015160c0909901516001600160a01b039094166001600160b01b031990961695909517600160a01b9a87169a909a029990991765ffffffffffff60b01b1916600160b01b9186169190910263ffffffff60c01b191617600160c01b63ffffffff909916989098029790971761ffff60e01b1916600160e01b60ff9384160260ff60e81b191617600160e81b9290951691909102939093176001600160f01b0316600160f01b959091169490940293909317905550505050565b6001546001600160a01b0316331461174e5760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b0381166117755760405163e3372e2d60e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161180c5750604080518082019091526003546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061182b906001600160601b031687613b04565b6118359190613a90565b91519350909150505b9250929050565b600061189d601960009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b509050806118bd5760405162461bcd60e51b81526004016112c090613a18565b50505050565b60606000826001600160401b038111156118df576118df613598565b60405190808252806020026020018201604052801561191857816020015b6119056130f4565b8152602001906001900390816118fd5790505b50905060006119256130f4565b60005b85811015611ab957600087878381811061194457611944613b1b565b905060200201359050831561195c5760009350611968565b61196581612296565b92505b8285838151811061197b5761197b613b1b565b60200260200101819052506000836020015161ffff166000146119a75750602083015161ffff166119f1565b610d05821180156119d35750600b546119cc9062010000900461ffff16610d05613a5b565b61ffff1682105b156119ea576119e3826001613ab2565b90506119f1565b5050611aa7565b6000818152600d60205260409020546001600160a01b031615611a15575050611aa7565b87611a21846001613ab2565b108015611a4f5750808989611a37866001613ab2565b818110611a4657611a46613b1b565b90506020020135145b15611aa4576000818152600d602081815260408084205461ffff600160f01b8204811660c08b0152600160a01b820481168a85015295909452919052600160b01b909104909116908401525060019250611aa7565b50505b80611ab181613b31565b915050611928565b509195945050505050565b3360009081526002602052604090205460ff16158015611aef57506000546001600160a01b03163314155b15611b0d5760405163e3372e2d60e01b815260040160405180910390fd5b6000611b65601960009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b50905080611b855760405162461bcd60e51b81526004016112c090613a18565b5050505050565b611b978383836113b7565b6001600160a01b0382163b156112c957611bc283838360405180602001604052806000815250612d10565b6112c9576040516368d2bf6b60e11b815260040160405180910390fd5b6000546001600160a01b03163314801590611c0557506001546001600160a01b03163314155b15611c235760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b60006112a0601a60009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b60008181526017602052604081205415611ccd575060009081526017602052604090205490565b6000611cd883612296565b6080015160ff169392505050565b601d8054611101906139de565b600080611cff83612296565b9050806060015163ffffffff16600014611d1b57503092915050565b5192915050565b601c8054611101906139de565b6000306001600160a01b03831603611d54575050600b54600160301b900461ffff1690565b506001600160a01b03166000908152600c602052604090205461ffff1690565b600080611d8083612296565b90506113b08160a0015160ff16826060015163ffffffff16836080015160ff16611359565b6000546001600160a01b03163314801590611dcb57506001546001600160a01b03163314155b15611de95760405163e3372e2d60e01b815260040160405180910390fd5b60158054911515600160a01b0260ff60a01b19909216919091179055565b6000546001600160a01b03163314801590611e2d57506001546001600160a01b03163314155b15611e4b5760405163e3372e2d60e01b815260040160405180910390fd5b600091825260208052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6060600080836060015163ffffffff161190506000611eb08460a0015160ff16856060015163ffffffff16866080015160ff16611359565b608085015160008781526017602052604090205491925060ff169015611ee157506000858152601760205260409020545b8215611f8557601c8115611f13576040518060400160405280600681526020016572656d69782d60d01b815250611f35565b60405180604001604052806008815260200167696e697469616c2d60c01b8152505b611f3e88612e3d565b611f4785612e3d565b611f588960c0015161ffff16612e3d565b604051602001611f6c959493929190613bbd565b6040516020818303038152906040529350505050611070565b6000601e54821180611f95575081155b611fa057601d611fa3565b601c5b9050808215611fce57604051806040016040528060048152602001636375622d60e01b815250611fef565b6040518060400160405280600781526020016663756272796f2d60c81b8152505b611ff889612e3d565b61200186612e3d565b6040516020016120149493929190613c36565b60405160208183030381529060405294505050505092915050565b60068054611101906139de565b6000546001600160a01b0316331480159061206257506001546001600160a01b03163314155b156120805760405163e3372e2d60e01b815260040160405180910390fd5b601c6112c9828483613cde565b816120978161291a565b336000818152600f602090815260408083206001600160a01b03881680855290835292819020805460ff191687151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000546001600160a01b0316331480159061212a57506001546001600160a01b03163314155b156121485760405163e3372e2d60e01b815260040160405180910390fd5b601980546001600160a01b0319166001600160a01b0392909216919091179055565b6000611d1b82612296565b6121808484846113b7565b6001600160a01b0383163b156118bd5761219c84848484612d10565b6118bd576040516368d2bf6b60e11b815260040160405180910390fd5b600061189d601a60009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b6060600061221e83612296565b601b54604051638dd57f1b60e01b81529192506001600160a01b031690638dd57f1b906122519086908590600401613d9d565b600060405180830381865afa15801561226e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113b09190810190613db2565b61229e6130f4565b6000828152600d6020908152604091829020825160e08101845290546001600160a01b03811680835261ffff600160a01b8304811694840194909452600160b01b820484169483019490945263ffffffff600160c01b820416606083015260ff600160e01b820481166080840152600160e81b82041660a0830152600160f01b900490911660c082015290611070576040810151819061ffff16156123da575b60409182015161ffff9081166000908152600d602090815290849020845160e08101865290546001600160a01b038116808352600160a01b8204851693830193909352600160b01b810484169582019590955263ffffffff600160c01b860416606082015260ff600160e01b860481166080830152600160e81b86041660a0820152600160f01b90940490911660c08401521561233e576124ce565b610d05841180156124075750600b546123ff9062010000900461ffff16610d05613a5b565b61ffff168411155b156124b5575b600d600061241a86613e28565b8082526020808301939093526040918201600020825160e08101845290546001600160a01b03811680835261ffff600160a01b8304811696840196909652600160b01b820486169483019490945263ffffffff600160c01b820416606083015260ff600160e01b820481166080840152600160e81b82041660a0830152600160f01b900490931660c084015295509092501561240d576124ce565b604051634a1850bf60e11b815260040160405180910390fd5b60c08082015161ffff90811691840191909152602080830151821690840152604091820151169082015292915050565b6000546001600160a01b0316331480159061252457506001546001600160a01b03163314155b156125425760405163e3372e2d60e01b815260040160405180910390fd5b600061189d601860009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b6000546001600160a01b031633148015906125c057506001546001600160a01b03163314155b156125de5760405163e3372e2d60e01b815260040160405180910390fd5b6125e88282612ecf565b5050565b6000546001600160a01b0316331480159061261257506001546001600160a01b03163314155b156126305760405163e3372e2d60e01b815260040160405180910390fd5b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331480159061267857506001546001600160a01b03163314155b156112485760405163e3372e2d60e01b815260040160405180910390fd5b6000546001600160a01b031633148015906126bc57506001546001600160a01b03163314155b156126da5760405163e3372e2d60e01b815260040160405180910390fd5b601e839055601d6118bd828483613cde565b6000546001600160a01b0316331480159061271257506001546001600160a01b03163314155b156127305760405163e3372e2d60e01b815260040160405180910390fd5b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331480159061277857506001546001600160a01b03163314155b156127965760405163e3372e2d60e01b815260040160405180910390fd5b60006127ee601960009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b5090508061280e5760405162461bcd60e51b81526004016112c090613a18565b50565b6000546001600160a01b0316331480159061283757506001546001600160a01b03163314155b156128555760405163e3372e2d60e01b815260040160405180910390fd5b60006128ad601960009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b509050806125e85760405162461bcd60e51b81526004016112c090613a18565b6000546001600160a01b031633148015906128f357506001546001600160a01b03163314155b156129115760405163e3372e2d60e01b815260040160405180910390fd5b61280e81612fcc565b6daaeb6d7670e522a718067333cd4e3b1561280e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612987573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ab9190613e3f565b61280e57604051633b79c77360e21b81526001600160a01b03821660048201526024016112c0565b60006060600080856001600160a01b0316856040516129f29190613e5c565b600060405180830381855af49150503d8060008114612a2d576040519150601f19603f3d011682016040523d82523d6000602084013e612a32565b606091505b509150915081612a52578051600003612a4a57600080fd5b805181602001fd5b909590945092505050565b6000826020015161ffff16600014612a7e5750602082015161ffff16612abf565b610d058211156112c957612a93826001613ab2565b600b54909150612aaf9062010000900461ffff16610d05613a5b565b61ffff16811115612abf57505050565b6000818152600d6020908152604091829020825160e08101845290546001600160a01b03811680835261ffff600160a01b8304811694840194909452600160b01b820484169483019490945263ffffffff600160c01b820416606083015260ff600160e01b820481166080840152600160e81b82041660a0830152600160f01b900490911660c08201529015612b555750505050565b83600d600084815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548161ffff021916908361ffff16021790555060408201518160000160166101000a81548161ffff021916908361ffff16021790555060608201518160000160186101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001601c6101000a81548160ff021916908360ff16021790555060a082015181600001601d6101000a81548160ff021916908360ff16021790555060c082015181600001601e6101000a81548161ffff021916908361ffff1602179055509050508060200151600d600084815260200190815260200160002060000160146101000a81548161ffff021916908361ffff1602179055508060400151600d600084815260200190815260200160002060000160166101000a81548161ffff021916908361ffff1602179055508060c00151600d6000848152602001908152602001600020600001601e6101000a81548161ffff021916908361ffff16021790555050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612d45903390899088908890600401613e78565b6020604051808303816000875af1925050508015612d80575060408051601f3d908101601f19168201909252612d7d91810190613eb5565b60015b612e20573d808015612dae576040519150601f19603f3d011682016040523d82523d6000602084013e612db3565b606091505b508051600003612a4a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016112c0565b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606000612e4a8361301c565b60010190506000816001600160401b03811115612e6957612e69613598565b6040519080825280601f01601f191660200182016040528015612e93576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612e9d57509392505050565b6127106001600160601b0382161115612f3d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016112c0565b6001600160a01b038216612f935760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016112c0565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061305b5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613087576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106130a557662386f26fc10000830492506010015b6305f5e10083106130bd576305f5e100830492506008015b61271083106130d157612710830492506004015b606483106130e3576064830492506002015b600a83106110705760010192915050565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081019190915290565b6001600160e01b03198116811461280e57600080fd5b60006020828403121561315857600080fd5b81356113b081613130565b80356001600160a01b038116811461317a57600080fd5b919050565b6000806040838503121561319257600080fd5b823561319d81613130565b91506131ab60208401613163565b90509250929050565b60005b838110156131cf5781810151838201526020016131b7565b50506000910152565b600081518084526131f08160208601602086016131b4565b601f01601f19169290920160200192915050565b6020815260006113b060208301846131d8565b60006020828403121561322957600080fd5b5035919050565b6000806040838503121561324357600080fd5b61324c83613163565b946020939093013593505050565b60008083601f84011261326c57600080fd5b5081356001600160401b0381111561328357600080fd5b6020830191508360208260051b850101111561183e57600080fd5b600080602083850312156132b157600080fd5b82356001600160401b038111156132c757600080fd5b6132d38582860161325a565b90969095509350505050565b6000602082840312156132f157600080fd5b6113b082613163565b60008060006060848603121561330f57600080fd5b505081359360208301359350604090920135919050565b60008060006060848603121561333b57600080fd5b61334484613163565b925061335260208501613163565b9150604084013590509250925092565b6000806040838503121561337557600080fd5b50508035926020909101359150565b801515811461280e57600080fd5b6000806000604084860312156133a757600080fd5b83356001600160401b038111156133bd57600080fd5b6133c98682870161325a565b90945092505060208401356133dd81613384565b809150509250925092565b60018060a01b038151168252602081015161ffff808216602085015280604084015116604085015263ffffffff606084015116606085015260ff608084015116608085015260ff60a08401511660a08501528060c08401511660c085015250505050565b6020808252825182820181905260009190848201906040850190845b8181101561348e5761347b8385516133e8565b9284019260e09290920191600101613468565b50909695505050505050565b600080600080606085870312156134b057600080fd5b6134b985613163565b935060208501356001600160401b038111156134d457600080fd5b6134e08782880161325a565b9598909750949560400135949350505050565b6000806040838503121561350657600080fd5b61350f83613163565b9150602083013561351f81613384565b809150509250929050565b803561ffff8116811461317a57600080fd5b6000806040838503121561354f57600080fd5b61350f8361352a565b60006020828403121561356a57600080fd5b81356113b081613384565b6000806040838503121561358857600080fd5b823591506131ab60208401613163565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156135d0576135d0613598565b60405290565b604051601f8201601f191681016001600160401b03811182821017156135fe576135fe613598565b604052919050565b803560ff8116811461317a57600080fd5b60008082840361010081121561362c57600080fd5b8335925060e0601f198201121561364257600080fd5b5061364b6135ae565b61365760208501613163565b81526136656040850161352a565b60208201526136766060850161352a565b6040820152608084013563ffffffff8116811461369257600080fd5b60608201526136a360a08501613606565b60808201526136b460c08501613606565b60a08201526136c560e0850161352a565b60c0820152809150509250929050565b60008083601f8401126136e757600080fd5b5081356001600160401b038111156136fe57600080fd5b60208301915083602082850101111561183e57600080fd5b6000806020838503121561372957600080fd5b82356001600160401b0381111561373f57600080fd5b6132d3858286016136d5565b6000806000806040858703121561376157600080fd5b84356001600160401b038082111561377857600080fd5b6137848883890161325a565b9096509450602087013591508082111561379d57600080fd5b506137aa8782880161325a565b95989497509550505050565b60006001600160401b038211156137cf576137cf613598565b50601f01601f191660200190565b600080600080608085870312156137f357600080fd5b6137fc85613163565b935061380a60208601613163565b92506040850135915060608501356001600160401b0381111561382c57600080fd5b8501601f8101871361383d57600080fd5b803561385061384b826137b6565b6135d6565b81815288602083850101111561386557600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60e0810161107082846133e8565b6000806000606084860312156138aa57600080fd5b6138b384613163565b95602085013595506040909401359392505050565b600080604083850312156138db57600080fd5b6138e483613163565b915060208301356001600160601b038116811461351f57600080fd5b60008060006040848603121561391557600080fd5b8335925060208401356001600160401b0381111561393257600080fd5b61393e868287016136d5565b9497909650939450505050565b6000806040838503121561395e57600080fd5b61319d83613163565b60008060008060008060a0878903121561398057600080fd5b61398987613163565b955061399760208801613163565b9450604087013593506060870135925060808701356001600160401b038111156139c057600080fd5b6139cc89828a016136d5565b979a9699509497509295939492505050565b600181811c908216806139f257607f821691505b602082108103613a1257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526013908201527219195b1959d85d1958d85b1b0819985a5b1959606a1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b61ffff818116838216019080821115613a7657613a76613a45565b5092915050565b8181038181111561107057611070613a45565b600082613aad57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561107057611070613a45565b600061ffff821680613ad957613ad9613a45565b6000190192915050565b600061ffff808316818103613afa57613afa613a45565b6001019392505050565b808202811582820484141761107057611070613a45565b634e487b7160e01b600052603260045260246000fd5b600060018201613b4357613b43613a45565b5060010190565b60008154613b57816139de565b60018281168015613b6f5760018114613b8457613bb3565b60ff1984168752821515830287019450613bb3565b8560005260208060002060005b85811015613baa5781548a820152908401908201613b91565b50505082870194505b5050505092915050565b6000613bc98288613b4a565b8651613bd9818360208b016131b4565b8651910190613bec818360208a016131b4565b602d60f81b91018181528551909190613c0c816001850160208a016131b4565b60019201918201528351613c278160028401602088016131b4565b01600201979650505050505050565b6000613c428287613b4a565b8551613c52818360208a016131b4565b8551910190613c658183602089016131b4565b602d60f81b91019081528351613c828160018401602088016131b4565b016001019695505050505050565b601f8211156112c957600081815260208120601f850160051c81016020861015613cb75750805b601f850160051c820191505b81811015613cd657828155600101613cc3565b505050505050565b6001600160401b03831115613cf557613cf5613598565b613d0983613d0383546139de565b83613c90565b6000601f841160018114613d3d5760008515613d255750838201355b600019600387901b1c1916600186901b178355611b85565b600083815260209020601f19861690835b82811015613d6e5786850135825560209485019460019092019101613d4e565b5086821015613d8b5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b82815261010081016113b060208301846133e8565b600060208284031215613dc457600080fd5b81516001600160401b03811115613dda57600080fd5b8201601f81018413613deb57600080fd5b8051613df961384b826137b6565b818152856020838501011115613e0e57600080fd5b613e1f8260208301602086016131b4565b95945050505050565b600081613e3757613e37613a45565b506000190190565b600060208284031215613e5157600080fd5b81516113b081613384565b60008251613e6e8184602087016131b4565b9190910192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613eab908301846131d8565b9695505050505050565b600060208284031215613ec757600080fd5b81516113b08161313056fea2646970667358221220352c6870899556bd80b52bcb12c168478aee8d913819f81c1b392604888eac7b64736f6c6343000813003300000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db000000000000000000000000153f8df0ce6a014e21f6fe6825129c53fa6ce0d8000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c50000000000000000000000009311ac6b45e22e48c6f7acc9beefdde3fe994ec000000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f0000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a880000000000000000000000001bf52762f9e486d8c373c866f977134d7331c5a5

Deployed Bytecode

0x6080604052600436106104405760003560e01c80637cd05b0911610234578063ca6484d91161012e578063e3b50504116100b6578063ee0c9cc21161007a578063ee0c9cc214610d16578063f23a6e6114610f07578063f2fde38b14610f66578063f721063314610f86578063ff3bf6bc1461057f57610447565b8063e3b5050414610e39578063e48a206d14610e4e578063e8fed30214610e7e578063e985e9c514610e9e578063ebceda3214610ee757610447565b8063d27c487b116100fd578063d27c487b14610d8c578063d3397c1314610dac578063d379be2314610dd9578063d89977ab14610df9578063dc489c9b14610e1957610447565b8063ca6484d914610d16578063ccdc828f14610d36578063cdfb583214610d56578063cf4227bd14610d7657610447565b8063a7b23b97116101bc578063c50cda1211610180578063c50cda1214610c69578063c87b56dd14610c89578063c890026b14610ca9578063c8f8a39914610cc9578063c9d6838914610cf657610447565b8063a7b23b9714610bc9578063acea8ebc14610be9578063b88d4fde14610c09578063b8ee528914610c29578063c2e802ea14610c4957610447565b80638dd57f1b116102035780638dd57f1b14610b3457806395d89b4114610b54578063a0bcfc7f14610b69578063a22cb46514610b89578063a29a43bb14610ba957610447565b80637cd05b0914610a0a57806387dcd2b614610a2a57806389b08f1114610a4a5780638da5cb5b14610b1457610447565b80633ab4c5a61161034557806352ed55d6116102cd5780636c0360eb116102915780636c0360eb1461097557806370a082311461098a5780637aef2f32146109aa5780637be8570a146109ca5780637bedb31b146109ea57610447565b806352ed55d6146108e057806356e3df97146109005780635b266c4b146109205780635ebaf1db146109355780636352211e1461095557610447565b806341f434341161031457806341f434341461079157806342842e0e146107b357806349a9ba31146107d35780634f64b2be146107f3578063520477f8146108c057610447565b80633ab4c5a61461070d5780633c8599ff1461073a5780633d30c2d71461075a5780633e97414f1461077057610447565b80631a3815e4116103c857806325f04af01161039757806325f04af01461064e57806329fa72661461066e5780632a55205a1461068e5780633228337a146106cd57806333b2cee0146106ed57610447565b80631a3815e4146105f85780631a4cbf46146106185780631dfa28a21461057f57806323b872dd1461062e57610447565b8063095ea7b31161040f578063095ea7b31461055f5780630fbf0a931461057f57806318160ddd1461059f578063198b474a146105c257806319b8fe20146105e257610447565b806301ffc9a71461049a5780630439a74a146104cf57806306fdde03146104ef578063081812fc1461051157610447565b3661044757005b600080356001600160e01b0319168152601f60205260409020546001600160a01b03168061047457600080fd5b3660008037600080366000845af43d6000803e808015610493573d6000f35b3d6000fd5b005b3480156104a657600080fd5b506104ba6104b5366004613146565b610fee565b60405190151581526020015b60405180910390f35b3480156104db57600080fd5b506104986104ea36600461317f565b611076565b3480156104fb57600080fd5b506105046110f4565b6040516104c69190613204565b34801561051d57600080fd5b5061054761052c366004613217565b6000908152600e60205260409020546001600160a01b031690565b6040516001600160a01b0390911681526020016104c6565b34801561056b57600080fd5b5061049861057a366004613230565b611182565b34801561058b57600080fd5b5061049861059a36600461329e565b611248565b3480156105ab57600080fd5b506105b46112ce565b6040519081526020016104c6565b3480156105ce57600080fd5b506104986105dd3660046132df565b6112f3565b3480156105ee57600080fd5b506105b460095481565b34801561060457600080fd5b506105b46106133660046132fa565b611359565b34801561062457600080fd5b506105b4601e5481565b34801561063a57600080fd5b50610498610649366004613326565b6113b7565b34801561065a57600080fd5b50601154610547906001600160a01b031681565b34801561067a57600080fd5b506104986106893660046132df565b611723565b34801561069a57600080fd5b506106ae6106a9366004613362565b611797565b604080516001600160a01b0390931683526020830191909152016104c6565b3480156106d957600080fd5b506104986106e8366004613392565b611845565b3480156106f957600080fd5b50601554610547906001600160a01b031681565b34801561071957600080fd5b5061072d61072836600461329e565b6118c3565b6040516104c6919061344c565b34801561074657600080fd5b5061049861075536600461349a565b611ac4565b34801561076657600080fd5b506105b460085481565b34801561077c57600080fd5b506015546104ba90600160a01b900460ff1681565b34801561079d57600080fd5b506105476daaeb6d7670e522a718067333cd4e81565b3480156107bf57600080fd5b506104986107ce366004613326565b611b8c565b3480156107df57600080fd5b50601254610547906001600160a01b031681565b3480156107ff57600080fd5b5061086f61080e366004613217565b600d602052600090815260409020546001600160a01b0381169061ffff600160a01b8204811691600160b01b810482169163ffffffff600160c01b8304169160ff600160e01b8204811692600160e81b830490911691600160f01b90041687565b604080516001600160a01b03909816885261ffff96871660208901529486169487019490945263ffffffff909216606086015260ff90811660808601521660a08401521660c082015260e0016104c6565b3480156108cc57600080fd5b506104986108db3660046134f3565b611bdf565b3480156108ec57600080fd5b506104986108fb36600461353c565b611c4e565b34801561090c57600080fd5b506105b461091b366004613217565b611ca6565b34801561092c57600080fd5b50610504611ce6565b34801561094157600080fd5b50601954610547906001600160a01b031681565b34801561096157600080fd5b50610547610970366004613217565b611cf3565b34801561098157600080fd5b50610504611d22565b34801561099657600080fd5b506105b46109a53660046132df565b611d2f565b3480156109b657600080fd5b50601b54610547906001600160a01b031681565b3480156109d657600080fd5b506105b46109e5366004613217565b611d74565b3480156109f657600080fd5b50610498610a05366004613558565b611da5565b348015610a1657600080fd5b50610498610a25366004613575565b611e07565b348015610a3657600080fd5b50600154610547906001600160a01b031681565b348015610a5657600080fd5b50610ac7610a653660046132df565b600c6020526000908152604090205461ffff808216916201000081048216916401000000008204811691600160301b8104821691680100000000000000008204811691600160501b8104821691600160601b8204811691600160701b90041688565b6040805161ffff998a16815297891660208901529588169587019590955292861660608601529085166080850152841660a0840152831660c083015290911660e0820152610100016104c6565b348015610b2057600080fd5b50600054610547906001600160a01b031681565b348015610b4057600080fd5b50610504610b4f366004613617565b611e78565b348015610b6057600080fd5b5061050461202f565b348015610b7557600080fd5b50610498610b84366004613716565b61203c565b348015610b9557600080fd5b50610498610ba43660046134f3565b61208d565b348015610bb557600080fd5b50610498610bc43660046132df565b612104565b348015610bd557600080fd5b50610498610be436600461374b565b611b0d565b348015610bf557600080fd5b50610547610c04366004613217565b61216a565b348015610c1557600080fd5b50610498610c243660046137dd565b612175565b348015610c3557600080fd5b50601354610547906001600160a01b031681565b348015610c5557600080fd5b50601054610547906001600160a01b031681565b348015610c7557600080fd5b50610498610c84366004613392565b6121b9565b348015610c9557600080fd5b50610504610ca4366004613217565b612211565b348015610cb557600080fd5b50601454610547906001600160a01b031681565b348015610cd557600080fd5b50610ce9610ce4366004613217565b612296565b6040516104c69190613887565b348015610d0257600080fd5b50601854610547906001600160a01b031681565b348015610d2257600080fd5b50610498610d31366004613895565b6124fe565b348015610d4257600080fd5b50610498610d513660046138c8565b61259a565b348015610d6257600080fd5b50610498610d713660046132df565b6125ec565b348015610d8257600080fd5b506105b460075481565b348015610d9857600080fd5b50610498610da7366004613362565b612652565b348015610db857600080fd5b506105b4610dc7366004613217565b60176020526000908152604090205481565b348015610de557600080fd5b50601a54610547906001600160a01b031681565b348015610e0557600080fd5b50610498610e14366004613900565b612696565b348015610e2557600080fd5b50610498610e343660046132df565b6126ec565b348015610e4557600080fd5b50610498612752565b348015610e5a57600080fd5b506104ba610e69366004613217565b60166020526000908152604090205460ff1681565b348015610e8a57600080fd5b50610498610e993660046132df565b612811565b348015610eaa57600080fd5b506104ba610eb936600461394b565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205460ff1690565b348015610ef357600080fd5b50600a54610547906001600160a01b031681565b348015610f1357600080fd5b50610f4d610f22366004613967565b7ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf979695505050505050565b6040516001600160e01b031990911681526020016104c6565b348015610f7257600080fd5b50610498610f813660046132df565b6128cd565b348015610f9257600080fd5b50600b54610fc09061ffff808216916201000081048216916401000000008204811691600160301b90041684565b6040805161ffff958616815293851660208501529184169183019190915290911660608201526080016104c6565b60006301ffc9a760e01b6001600160e01b03198316148061101f57506380ac58cd60e01b6001600160e01b03198316145b8061103a5750635b5e139f60e01b6001600160e01b03198316145b806110555750630271189760e51b6001600160e01b03198316145b80611070575063152a902d60e11b6001600160e01b03198316145b92915050565b6000546001600160a01b0316331480159061109c57506001546001600160a01b03163314155b156110ba5760405163e3372e2d60e01b815260040160405180910390fd5b6001600160e01b0319919091166000908152601f6020526040902080546001600160a01b0319166001600160a01b03909216919091179055565b60058054611101906139de565b80601f016020809104026020016040519081016040528092919081815260200182805461112d906139de565b801561117a5780601f1061114f5761010080835404028352916020019161117a565b820191906000526020600020905b81548152906001019060200180831161115d57829003601f168201915b505050505081565b8161118c8161291a565b600061119783611cf3565b9050336001600160a01b038216146111ed576001600160a01b0381166000908152600f6020908152604080832033845290915290205460ff166111ed57604051631eb49d6d60e11b815260040160405180910390fd5b6000838152600e602052604080822080546001600160a01b0319166001600160a01b0388169081179091559051859233917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a450505050565b60006112a0601960009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b509050806112c95760405162461bcd60e51b81526004016112c090613a18565b60405180910390fd5b505050565b600b546000906112ea9061ffff62010000820481169116613a5b565b61ffff16905090565b6000546001600160a01b0316331480159061131957506001546001600160a01b03163314155b156113375760405163e3372e2d60e01b815260040160405180910390fd5b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b600082156113865762093a8061136f8442613a7d565b6113799190613a90565b6113839085613ab2565b93505b600082156113965760095461139a565b6008545b9050808511156113ab5790506113b0565b849150505b9392505050565b826001600160a01b03811633146113d1576113d13361291a565b836001600160a01b0316836001600160a01b03160361140357604051631eb49d6d60e11b815260040160405180910390fd5b6001600160a01b03831661142a57604051631eb49d6d60e11b815260040160405180910390fd5b600061143583612296565b90506000816060015163ffffffff1611806114665750846001600160a01b031681600001516001600160a01b031614155b1561148457604051631eb49d6d60e11b815260040160405180910390fd5b80516001600160a01b031633146114ff5780516001600160a01b03166000908152600f6020908152604080832033845290915290205460ff161580156114e157506000838152600e60205260409020546001600160a01b03163314155b156114ff57604051631eb49d6d60e11b815260040160405180910390fd5b6000838152600e60205260409020546001600160a01b03161561156e576000838152600e602052604080822080546001600160a01b0319169055518491906001600160a01b038816907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925908390a45b805160405184916001600160a01b03808816929116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a46115b48184612a5d565b6001600160a01b03808516825285166000908152600c60205260408120805461ffff16916115e183613ac5565b82546101009290920a61ffff8181021990931691831602179091556001600160a01b0386166000908152600c602052604081208054909216925061162483613ae3565b82546101009290920a61ffff8181021990931691831602179091556000948552600d60209081526040958690208451815492860151978601516060870151608088015160a089015160c0909901516001600160a01b039094166001600160b01b031990961695909517600160a01b9a87169a909a029990991765ffffffffffff60b01b1916600160b01b9186169190910263ffffffff60c01b191617600160c01b63ffffffff909916989098029790971761ffff60e01b1916600160e01b60ff9384160260ff60e81b191617600160e81b9290951691909102939093176001600160f01b0316600160f01b959091169490940293909317905550505050565b6001546001600160a01b0316331461174e5760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b0381166117755760405163e3372e2d60e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161180c5750604080518082019091526003546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061182b906001600160601b031687613b04565b6118359190613a90565b91519350909150505b9250929050565b600061189d601960009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b509050806118bd5760405162461bcd60e51b81526004016112c090613a18565b50505050565b60606000826001600160401b038111156118df576118df613598565b60405190808252806020026020018201604052801561191857816020015b6119056130f4565b8152602001906001900390816118fd5790505b50905060006119256130f4565b60005b85811015611ab957600087878381811061194457611944613b1b565b905060200201359050831561195c5760009350611968565b61196581612296565b92505b8285838151811061197b5761197b613b1b565b60200260200101819052506000836020015161ffff166000146119a75750602083015161ffff166119f1565b610d05821180156119d35750600b546119cc9062010000900461ffff16610d05613a5b565b61ffff1682105b156119ea576119e3826001613ab2565b90506119f1565b5050611aa7565b6000818152600d60205260409020546001600160a01b031615611a15575050611aa7565b87611a21846001613ab2565b108015611a4f5750808989611a37866001613ab2565b818110611a4657611a46613b1b565b90506020020135145b15611aa4576000818152600d602081815260408084205461ffff600160f01b8204811660c08b0152600160a01b820481168a85015295909452919052600160b01b909104909116908401525060019250611aa7565b50505b80611ab181613b31565b915050611928565b509195945050505050565b3360009081526002602052604090205460ff16158015611aef57506000546001600160a01b03163314155b15611b0d5760405163e3372e2d60e01b815260040160405180910390fd5b6000611b65601960009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b50905080611b855760405162461bcd60e51b81526004016112c090613a18565b5050505050565b611b978383836113b7565b6001600160a01b0382163b156112c957611bc283838360405180602001604052806000815250612d10565b6112c9576040516368d2bf6b60e11b815260040160405180910390fd5b6000546001600160a01b03163314801590611c0557506001546001600160a01b03163314155b15611c235760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b60006112a0601a60009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b60008181526017602052604081205415611ccd575060009081526017602052604090205490565b6000611cd883612296565b6080015160ff169392505050565b601d8054611101906139de565b600080611cff83612296565b9050806060015163ffffffff16600014611d1b57503092915050565b5192915050565b601c8054611101906139de565b6000306001600160a01b03831603611d54575050600b54600160301b900461ffff1690565b506001600160a01b03166000908152600c602052604090205461ffff1690565b600080611d8083612296565b90506113b08160a0015160ff16826060015163ffffffff16836080015160ff16611359565b6000546001600160a01b03163314801590611dcb57506001546001600160a01b03163314155b15611de95760405163e3372e2d60e01b815260040160405180910390fd5b60158054911515600160a01b0260ff60a01b19909216919091179055565b6000546001600160a01b03163314801590611e2d57506001546001600160a01b03163314155b15611e4b5760405163e3372e2d60e01b815260040160405180910390fd5b600091825260208052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6060600080836060015163ffffffff161190506000611eb08460a0015160ff16856060015163ffffffff16866080015160ff16611359565b608085015160008781526017602052604090205491925060ff169015611ee157506000858152601760205260409020545b8215611f8557601c8115611f13576040518060400160405280600681526020016572656d69782d60d01b815250611f35565b60405180604001604052806008815260200167696e697469616c2d60c01b8152505b611f3e88612e3d565b611f4785612e3d565b611f588960c0015161ffff16612e3d565b604051602001611f6c959493929190613bbd565b6040516020818303038152906040529350505050611070565b6000601e54821180611f95575081155b611fa057601d611fa3565b601c5b9050808215611fce57604051806040016040528060048152602001636375622d60e01b815250611fef565b6040518060400160405280600781526020016663756272796f2d60c81b8152505b611ff889612e3d565b61200186612e3d565b6040516020016120149493929190613c36565b60405160208183030381529060405294505050505092915050565b60068054611101906139de565b6000546001600160a01b0316331480159061206257506001546001600160a01b03163314155b156120805760405163e3372e2d60e01b815260040160405180910390fd5b601c6112c9828483613cde565b816120978161291a565b336000818152600f602090815260408083206001600160a01b03881680855290835292819020805460ff191687151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000546001600160a01b0316331480159061212a57506001546001600160a01b03163314155b156121485760405163e3372e2d60e01b815260040160405180910390fd5b601980546001600160a01b0319166001600160a01b0392909216919091179055565b6000611d1b82612296565b6121808484846113b7565b6001600160a01b0383163b156118bd5761219c84848484612d10565b6118bd576040516368d2bf6b60e11b815260040160405180910390fd5b600061189d601a60009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b6060600061221e83612296565b601b54604051638dd57f1b60e01b81529192506001600160a01b031690638dd57f1b906122519086908590600401613d9d565b600060405180830381865afa15801561226e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113b09190810190613db2565b61229e6130f4565b6000828152600d6020908152604091829020825160e08101845290546001600160a01b03811680835261ffff600160a01b8304811694840194909452600160b01b820484169483019490945263ffffffff600160c01b820416606083015260ff600160e01b820481166080840152600160e81b82041660a0830152600160f01b900490911660c082015290611070576040810151819061ffff16156123da575b60409182015161ffff9081166000908152600d602090815290849020845160e08101865290546001600160a01b038116808352600160a01b8204851693830193909352600160b01b810484169582019590955263ffffffff600160c01b860416606082015260ff600160e01b860481166080830152600160e81b86041660a0820152600160f01b90940490911660c08401521561233e576124ce565b610d05841180156124075750600b546123ff9062010000900461ffff16610d05613a5b565b61ffff168411155b156124b5575b600d600061241a86613e28565b8082526020808301939093526040918201600020825160e08101845290546001600160a01b03811680835261ffff600160a01b8304811696840196909652600160b01b820486169483019490945263ffffffff600160c01b820416606083015260ff600160e01b820481166080840152600160e81b82041660a0830152600160f01b900490931660c084015295509092501561240d576124ce565b604051634a1850bf60e11b815260040160405180910390fd5b60c08082015161ffff90811691840191909152602080830151821690840152604091820151169082015292915050565b6000546001600160a01b0316331480159061252457506001546001600160a01b03163314155b156125425760405163e3372e2d60e01b815260040160405180910390fd5b600061189d601860009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b6000546001600160a01b031633148015906125c057506001546001600160a01b03163314155b156125de5760405163e3372e2d60e01b815260040160405180910390fd5b6125e88282612ecf565b5050565b6000546001600160a01b0316331480159061261257506001546001600160a01b03163314155b156126305760405163e3372e2d60e01b815260040160405180910390fd5b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331480159061267857506001546001600160a01b03163314155b156112485760405163e3372e2d60e01b815260040160405180910390fd5b6000546001600160a01b031633148015906126bc57506001546001600160a01b03163314155b156126da5760405163e3372e2d60e01b815260040160405180910390fd5b601e839055601d6118bd828483613cde565b6000546001600160a01b0316331480159061271257506001546001600160a01b03163314155b156127305760405163e3372e2d60e01b815260040160405180910390fd5b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331480159061277857506001546001600160a01b03163314155b156127965760405163e3372e2d60e01b815260040160405180910390fd5b60006127ee601960009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b5090508061280e5760405162461bcd60e51b81526004016112c090613a18565b50565b6000546001600160a01b0316331480159061283757506001546001600160a01b03163314155b156128555760405163e3372e2d60e01b815260040160405180910390fd5b60006128ad601960009054906101000a90046001600160a01b03166000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506129d392505050565b509050806125e85760405162461bcd60e51b81526004016112c090613a18565b6000546001600160a01b031633148015906128f357506001546001600160a01b03163314155b156129115760405163e3372e2d60e01b815260040160405180910390fd5b61280e81612fcc565b6daaeb6d7670e522a718067333cd4e3b1561280e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612987573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ab9190613e3f565b61280e57604051633b79c77360e21b81526001600160a01b03821660048201526024016112c0565b60006060600080856001600160a01b0316856040516129f29190613e5c565b600060405180830381855af49150503d8060008114612a2d576040519150601f19603f3d011682016040523d82523d6000602084013e612a32565b606091505b509150915081612a52578051600003612a4a57600080fd5b805181602001fd5b909590945092505050565b6000826020015161ffff16600014612a7e5750602082015161ffff16612abf565b610d058211156112c957612a93826001613ab2565b600b54909150612aaf9062010000900461ffff16610d05613a5b565b61ffff16811115612abf57505050565b6000818152600d6020908152604091829020825160e08101845290546001600160a01b03811680835261ffff600160a01b8304811694840194909452600160b01b820484169483019490945263ffffffff600160c01b820416606083015260ff600160e01b820481166080840152600160e81b82041660a0830152600160f01b900490911660c08201529015612b555750505050565b83600d600084815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548161ffff021916908361ffff16021790555060408201518160000160166101000a81548161ffff021916908361ffff16021790555060608201518160000160186101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001601c6101000a81548160ff021916908360ff16021790555060a082015181600001601d6101000a81548160ff021916908360ff16021790555060c082015181600001601e6101000a81548161ffff021916908361ffff1602179055509050508060200151600d600084815260200190815260200160002060000160146101000a81548161ffff021916908361ffff1602179055508060400151600d600084815260200190815260200160002060000160166101000a81548161ffff021916908361ffff1602179055508060c00151600d6000848152602001908152602001600020600001601e6101000a81548161ffff021916908361ffff16021790555050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612d45903390899088908890600401613e78565b6020604051808303816000875af1925050508015612d80575060408051601f3d908101601f19168201909252612d7d91810190613eb5565b60015b612e20573d808015612dae576040519150601f19603f3d011682016040523d82523d6000602084013e612db3565b606091505b508051600003612a4a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016112c0565b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606000612e4a8361301c565b60010190506000816001600160401b03811115612e6957612e69613598565b6040519080825280601f01601f191660200182016040528015612e93576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612e9d57509392505050565b6127106001600160601b0382161115612f3d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016112c0565b6001600160a01b038216612f935760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016112c0565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061305b5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613087576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106130a557662386f26fc10000830492506010015b6305f5e10083106130bd576305f5e100830492506008015b61271083106130d157612710830492506004015b606483106130e3576064830492506002015b600a83106110705760010192915050565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081019190915290565b6001600160e01b03198116811461280e57600080fd5b60006020828403121561315857600080fd5b81356113b081613130565b80356001600160a01b038116811461317a57600080fd5b919050565b6000806040838503121561319257600080fd5b823561319d81613130565b91506131ab60208401613163565b90509250929050565b60005b838110156131cf5781810151838201526020016131b7565b50506000910152565b600081518084526131f08160208601602086016131b4565b601f01601f19169290920160200192915050565b6020815260006113b060208301846131d8565b60006020828403121561322957600080fd5b5035919050565b6000806040838503121561324357600080fd5b61324c83613163565b946020939093013593505050565b60008083601f84011261326c57600080fd5b5081356001600160401b0381111561328357600080fd5b6020830191508360208260051b850101111561183e57600080fd5b600080602083850312156132b157600080fd5b82356001600160401b038111156132c757600080fd5b6132d38582860161325a565b90969095509350505050565b6000602082840312156132f157600080fd5b6113b082613163565b60008060006060848603121561330f57600080fd5b505081359360208301359350604090920135919050565b60008060006060848603121561333b57600080fd5b61334484613163565b925061335260208501613163565b9150604084013590509250925092565b6000806040838503121561337557600080fd5b50508035926020909101359150565b801515811461280e57600080fd5b6000806000604084860312156133a757600080fd5b83356001600160401b038111156133bd57600080fd5b6133c98682870161325a565b90945092505060208401356133dd81613384565b809150509250925092565b60018060a01b038151168252602081015161ffff808216602085015280604084015116604085015263ffffffff606084015116606085015260ff608084015116608085015260ff60a08401511660a08501528060c08401511660c085015250505050565b6020808252825182820181905260009190848201906040850190845b8181101561348e5761347b8385516133e8565b9284019260e09290920191600101613468565b50909695505050505050565b600080600080606085870312156134b057600080fd5b6134b985613163565b935060208501356001600160401b038111156134d457600080fd5b6134e08782880161325a565b9598909750949560400135949350505050565b6000806040838503121561350657600080fd5b61350f83613163565b9150602083013561351f81613384565b809150509250929050565b803561ffff8116811461317a57600080fd5b6000806040838503121561354f57600080fd5b61350f8361352a565b60006020828403121561356a57600080fd5b81356113b081613384565b6000806040838503121561358857600080fd5b823591506131ab60208401613163565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156135d0576135d0613598565b60405290565b604051601f8201601f191681016001600160401b03811182821017156135fe576135fe613598565b604052919050565b803560ff8116811461317a57600080fd5b60008082840361010081121561362c57600080fd5b8335925060e0601f198201121561364257600080fd5b5061364b6135ae565b61365760208501613163565b81526136656040850161352a565b60208201526136766060850161352a565b6040820152608084013563ffffffff8116811461369257600080fd5b60608201526136a360a08501613606565b60808201526136b460c08501613606565b60a08201526136c560e0850161352a565b60c0820152809150509250929050565b60008083601f8401126136e757600080fd5b5081356001600160401b038111156136fe57600080fd5b60208301915083602082850101111561183e57600080fd5b6000806020838503121561372957600080fd5b82356001600160401b0381111561373f57600080fd5b6132d3858286016136d5565b6000806000806040858703121561376157600080fd5b84356001600160401b038082111561377857600080fd5b6137848883890161325a565b9096509450602087013591508082111561379d57600080fd5b506137aa8782880161325a565b95989497509550505050565b60006001600160401b038211156137cf576137cf613598565b50601f01601f191660200190565b600080600080608085870312156137f357600080fd5b6137fc85613163565b935061380a60208601613163565b92506040850135915060608501356001600160401b0381111561382c57600080fd5b8501601f8101871361383d57600080fd5b803561385061384b826137b6565b6135d6565b81815288602083850101111561386557600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60e0810161107082846133e8565b6000806000606084860312156138aa57600080fd5b6138b384613163565b95602085013595506040909401359392505050565b600080604083850312156138db57600080fd5b6138e483613163565b915060208301356001600160601b038116811461351f57600080fd5b60008060006040848603121561391557600080fd5b8335925060208401356001600160401b0381111561393257600080fd5b61393e868287016136d5565b9497909650939450505050565b6000806040838503121561395e57600080fd5b61319d83613163565b60008060008060008060a0878903121561398057600080fd5b61398987613163565b955061399760208801613163565b9450604087013593506060870135925060808701356001600160401b038111156139c057600080fd5b6139cc89828a016136d5565b979a9699509497509295939492505050565b600181811c908216806139f257607f821691505b602082108103613a1257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526013908201527219195b1959d85d1958d85b1b0819985a5b1959606a1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b61ffff818116838216019080821115613a7657613a76613a45565b5092915050565b8181038181111561107057611070613a45565b600082613aad57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561107057611070613a45565b600061ffff821680613ad957613ad9613a45565b6000190192915050565b600061ffff808316818103613afa57613afa613a45565b6001019392505050565b808202811582820484141761107057611070613a45565b634e487b7160e01b600052603260045260246000fd5b600060018201613b4357613b43613a45565b5060010190565b60008154613b57816139de565b60018281168015613b6f5760018114613b8457613bb3565b60ff1984168752821515830287019450613bb3565b8560005260208060002060005b85811015613baa5781548a820152908401908201613b91565b50505082870194505b5050505092915050565b6000613bc98288613b4a565b8651613bd9818360208b016131b4565b8651910190613bec818360208a016131b4565b602d60f81b91018181528551909190613c0c816001850160208a016131b4565b60019201918201528351613c278160028401602088016131b4565b01600201979650505050505050565b6000613c428287613b4a565b8551613c52818360208a016131b4565b8551910190613c658183602089016131b4565b602d60f81b91019081528351613c828160018401602088016131b4565b016001019695505050505050565b601f8211156112c957600081815260208120601f850160051c81016020861015613cb75750805b601f850160051c820191505b81811015613cd657828155600101613cc3565b505050505050565b6001600160401b03831115613cf557613cf5613598565b613d0983613d0383546139de565b83613c90565b6000601f841160018114613d3d5760008515613d255750838201355b600019600387901b1c1916600186901b178355611b85565b600083815260209020601f19861690835b82811015613d6e5786850135825560209485019460019092019101613d4e565b5086821015613d8b5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b82815261010081016113b060208301846133e8565b600060208284031215613dc457600080fd5b81516001600160401b03811115613dda57600080fd5b8201601f81018413613deb57600080fd5b8051613df961384b826137b6565b818152856020838501011115613e0e57600080fd5b613e1f8260208301602086016131b4565b95945050505050565b600081613e3757613e37613a45565b506000190190565b600060208284031215613e5157600080fd5b81516113b081613384565b60008251613e6e8184602087016131b4565b9190910192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613eab908301846131d8565b9695505050505050565b600060208284031215613ec757600080fd5b81516113b08161313056fea2646970667358221220352c6870899556bd80b52bcb12c168478aee8d913819f81c1b392604888eac7b64736f6c63430008130033

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

00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db000000000000000000000000153f8df0ce6a014e21f6fe6825129c53fa6ce0d8000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c50000000000000000000000009311ac6b45e22e48c6f7acc9beefdde3fe994ec000000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f0000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a880000000000000000000000001bf52762f9e486d8c373c866f977134d7331c5a5

-----Decoded View---------------
Arg [0] : bitsAddress (address): 0x64a1C0937728d8d2fA8Cd81Ef61a9c860B7362Db
Arg [1] : gearAddress (address): 0x153f8df0CE6A014e21F6FE6825129c53FA6cE0d8
Arg [2] : bearsAddress (address): 0xc99c679C50033Bbc5321EB88752E89a93e9e83C5
Arg [3] : passesAddress (address): 0x9311aC6b45e22e48C6f7AcC9BeEFDDE3fe994Ec0
Arg [4] : kiltonAddress (address): 0x01621C6180d8AdFad5B0c8f69d7D4ABf49c7868F
Arg [5] : labsAddress (address): 0x0a1730279B86a00C7214Abc624f19261F8Fd9a88
Arg [6] : superOwner (address): 0x1Bf52762F9E486d8c373c866F977134D7331C5a5

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db
Arg [1] : 000000000000000000000000153f8df0ce6a014e21f6fe6825129c53fa6ce0d8
Arg [2] : 000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c5
Arg [3] : 0000000000000000000000009311ac6b45e22e48c6f7acc9beefdde3fe994ec0
Arg [4] : 00000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f
Arg [5] : 0000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a88
Arg [6] : 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.