ETH Price: $2,317.65 (-5.27%)

Contract

0x4cBFC8772ee8d12cdd6007C9E4254AEB71214bab
 

Overview

ETH Balance

0.000452547500000002 ETH

Eth Value

$1.05 (@ $2,317.65/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...205864712024-08-22 20:15:3541 days ago1724357735IN
0x4cBFC877...B71214bab
0 ETH0.000030361.25317325
Set Approval For...205345042024-08-15 14:03:3549 days ago1723730615IN
0x4cBFC877...B71214bab
0 ETH0.000265385.75114544
Set Approval For...194477012024-03-16 13:17:47201 days ago1710595067IN
0x4cBFC877...B71214bab
0 ETH0.0007025928.99314574
Set Approval For...193648122024-03-04 22:33:11212 days ago1709591591IN
0x4cBFC877...B71214bab
0 ETH0.00354576.96330721
Set Approval For...193371352024-03-01 1:46:47216 days ago1709257607IN
0x4cBFC877...B71214bab
0 ETH0.0022028547.82472067
Set Approval For...193351842024-02-29 19:14:11216 days ago1709234051IN
0x4cBFC877...B71214bab
0 ETH0.0030061665.26477678
Safe Transfer Fr...190728812024-01-24 0:18:59253 days ago1706055539IN
0x4cBFC877...B71214bab
0 ETH0.000392299.01740805
Safe Transfer Fr...190728772024-01-24 0:18:11253 days ago1706055491IN
0x4cBFC877...B71214bab
0 ETH0.000401818.31847781
Safe Transfer Fr...190728742024-01-24 0:17:35253 days ago1706055455IN
0x4cBFC877...B71214bab
0 ETH0.000482749.99397738
Safe Transfer Fr...190728692024-01-24 0:16:35253 days ago1706055395IN
0x4cBFC877...B71214bab
0 ETH0.0006842410.46174987
Set Approval For...189020212023-12-31 0:53:23277 days ago1703984003IN
0x4cBFC877...B71214bab
0 ETH0.0008158317.6843966
Set Approval For...188531732023-12-24 4:11:47284 days ago1703391107IN
0x4cBFC877...B71214bab
0 ETH0.0014183130.73615149
Set Approval For...186655152023-11-27 20:59:59310 days ago1701118799IN
0x4cBFC877...B71214bab
0 ETH0.0014318831.08678242
Set Approval For...185380692023-11-10 0:49:11328 days ago1699577351IN
0x4cBFC877...B71214bab
0 ETH0.0016618336.07890089
Set Approval For...182943652023-10-06 22:13:23362 days ago1696630403IN
0x4cBFC877...B71214bab
0 ETH0.0003070112.66908816
Set Approval For...182943652023-10-06 22:13:23362 days ago1696630403IN
0x4cBFC877...B71214bab
0 ETH0.0003070112.66908816
Set Approval For...180678982023-09-05 4:29:35394 days ago1693888175IN
0x4cBFC877...B71214bab
0 ETH0.000428679.30666667
Set Approval For...180422282023-09-01 14:14:35398 days ago1693577675IN
0x4cBFC877...B71214bab
0 ETH0.0006299725.9964433
Set Approval For...172554812023-05-14 3:30:35508 days ago1684035035IN
0x4cBFC877...B71214bab
0 ETH0.0016368635.53699886
Set Approval For...170627202023-04-16 23:36:35535 days ago1681688195IN
0x4cBFC877...B71214bab
0 ETH0.0011421124.7956945
Set Approval For...168400202023-03-16 11:09:59567 days ago1678964999IN
0x4cBFC877...B71214bab
0 ETH0.001283227.85871791
Set Approval For...168151802023-03-12 23:22:23570 days ago1678663343IN
0x4cBFC877...B71214bab
0 ETH0.0017975439.02524931
Set Approval For...167063922023-02-25 16:10:59586 days ago1677341459IN
0x4cBFC877...B71214bab
0 ETH0.0010978723.83517789
Set Approval For...166649372023-02-19 20:13:47591 days ago1676837627IN
0x4cBFC877...B71214bab
0 ETH0.0010878123.61679794
Set Approval For...165876812023-02-09 0:41:11602 days ago1675903271IN
0x4cBFC877...B71214bab
0 ETH0.0011981926.01320309
View all transactions

Latest 13 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
165965362023-02-10 6:22:23601 days ago1676010143
0x4cBFC877...B71214bab
0.00045 ETH
164975052023-01-27 10:18:23615 days ago1674814703
0x4cBFC877...B71214bab
0.0000025 ETH
162893222022-12-29 8:48:23644 days ago1672303703
0x4cBFC877...B71214bab
0.00000004 ETH
158838662022-11-02 17:36:23700 days ago1667410583
0x4cBFC877...B71214bab
0.00097786 ETH
158838662022-11-02 17:36:23700 days ago1667410583
0x4cBFC877...B71214bab
0.00097786 ETH
158838662022-11-02 17:36:23700 days ago1667410583
0x4cBFC877...B71214bab
0.00547603 ETH
158838662022-11-02 17:36:23700 days ago1667410583
0x4cBFC877...B71214bab
0.00298248 ETH
158838662022-11-02 17:36:23700 days ago1667410583
0x4cBFC877...B71214bab
0.00914301 ETH
139640662022-01-08 9:48:00999 days ago1641635280
0x4cBFC877...B71214bab
0.04750344 ETH
139640662022-01-08 9:48:00999 days ago1641635280
0x4cBFC877...B71214bab
0.04750344 ETH
139640662022-01-08 9:48:00999 days ago1641635280
0x4cBFC877...B71214bab
0.2660193 ETH
139640662022-01-08 9:48:00999 days ago1641635280
0x4cBFC877...B71214bab
0.14488551 ETH
139640662022-01-08 9:48:00999 days ago1641635280
0x4cBFC877...B71214bab
0.44415723 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UCube

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

pragma solidity =0.8.4;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract UCube is Context, Ownable, ERC721 {
    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    modifier onlyCollaborator() {
        bool isCollaborator = false;
        for (uint256 i; i < collaborators.length; i++) {
            if (collaborators[i].addr == msg.sender) {
                isCollaborator = true;

                break;
            }
        }

        require(
            owner() == _msgSender() || isCollaborator,
            "Ownable: caller is not the owner nor a collaborator"
        );

        _;
    }

    
    address private packContractAddress;


    uint128 private basisPoints = 10000;
    
    mapping(address => uint256[]) private cubesByAddress;
    
    
    string private baseURI = "https://ucubemeta.com/cube/meta/";
    string private contractBaseURI = "https://ucubemeta.com/cube/contract_meta";
    
    struct Collaborators {
        address addr;
        uint256 cut;
    }
    
    Collaborators[] internal collaborators;

    
    uint16 constant startCubeId = 1;
    uint16 constant giftCubes = 400;
    uint16 constant mintpassCubes = 1000;
    
    uint16 constant numOfPacks = 9600;
    
    uint16 constant twoPackNum = 6154;
    uint16 constant threePackNum = 2588;
    uint16 constant fourPackNum = 762;
    uint16 constant fivePackNum = 96;

    mapping (uint8 => uint16[]) private packsByCubeCount;

    
    uint16 private totalCubes = 25000;
    uint16 private totalMintedCubes = 0;

    uint16 private currentCubeIdForMintPass = startCubeId + giftCubes;
    uint16 private remainsToAirdrop = mintpassCubes;
    uint16 private remainsToGift = giftCubes;
    uint16 private currentCubeIdForRegularMint = startCubeId + giftCubes + mintpassCubes;

    uint8[] private setsToMint;


    constructor () ERC721("UCube", "UCube") {
        uint256 regularCubesNumber = (totalCubes - giftCubes - mintpassCubes);
        
        require(regularCubesNumber == (2*twoPackNum + 3*threePackNum + 4*fourPackNum + 5*fivePackNum), "Wrong set numbers");
        require(numOfPacks == (twoPackNum + threePackNum + fourPackNum + fivePackNum), "Sets quantity is not equal to packs quantity");
        
        packsByCubeCount[2] = [0, twoPackNum];
        packsByCubeCount[3] = [0, threePackNum];
        packsByCubeCount[4] = [0, fourPackNum];
        packsByCubeCount[5] = [0, fivePackNum];
    }
    
    
    
    // ONLY OWNER

    /**
     * Sets the collaborators of the project with their cuts
     */
    function addCollaborators(Collaborators[] memory _collaborators)
        external
        onlyOwner
    {
        require(collaborators.length == 0, "Collaborators were already set");

        uint128 totalCut;
        for (uint256 i; i < _collaborators.length; i++) {
            collaborators.push(_collaborators[i]);
            totalCut += uint128(_collaborators[i].cut);
        }

        require(totalCut == basisPoints, "Total cut does not add to 100%");
    }
    
    function addSets(uint8 cubesInSet, uint16 numOfSets) external onlyOwner
    {
        require(2 == packsByCubeCount[cubesInSet].length, "This value of cubes in set is not allowed.");
        require((packsByCubeCount[cubesInSet][0] + numOfSets) <= packsByCubeCount[cubesInSet][1], "Total exceed for set.");
        
        uint16 i;

        for (i = 0; i < numOfSets; i++) {
            setsToMint.push(cubesInSet);
        }
        
        packsByCubeCount[cubesInSet][0] = packsByCubeCount[cubesInSet][0] + numOfSets;
    }
    
    function setPackContractAddr(address _addr) external onlyOwner {
       packContractAddress = _addr;
    }


    // ONLY collaborators
    
    /**
     * @dev Allows to withdraw the Ether in the contract and split it among the collaborators
     */
    function withdraw() external onlyCollaborator {
        uint256 totalBalance = address(this).balance;

        for (uint256 i; i < collaborators.length; i++) {
            payable(collaborators[i].addr).transfer(
                mulScale(totalBalance, collaborators[i].cut, basisPoints)
            );
        }
    }

    /**
     * @dev Sets the base URI for the API that provides the NFT data.
     */
    function setBaseTokenURI(string memory _uri) external onlyCollaborator {
        baseURI = _uri;
    }
    
    function setContractBaseTokenURI(string memory _uri) external onlyCollaborator {
        contractBaseURI = _uri;
    }

    function makeGift(address owner, uint256 cubeId) external onlyCollaborator {
        require(!_exists(cubeId), "Cube already owned");
        require(cubeId < (startCubeId + giftCubes), "Cube Id is out of gift list");
        
        _mint(owner, cubeId);

        totalMintedCubes++;
    }

    
    function airdropMint(address[] calldata _gifted) external onlyCollaborator {
        require(remainsToAirdrop >= _gifted.length, "No enough cubes to airdrop.");

        for (uint i = 0; i < _gifted.length; i++) {
             require(!_exists(currentCubeIdForMintPass), "Cube already owned");
             
            _mint(_gifted[i], currentCubeIdForMintPass);

            currentCubeIdForMintPass++;
            totalMintedCubes++;
            remainsToAirdrop--;
        }
    }
    
    
    function setCurrentCubeForMintPass(uint16 _val, uint _fuse) external onlyCollaborator {
        require(_fuse == 111, "Fuse is incorrect.");
        
        currentCubeIdForMintPass = _val;
    }
    
    function getRemainsToAirdrop() external view onlyCollaborator returns (uint16) {
        return remainsToAirdrop;
    }
    
    function getRemainsToGift() external view onlyCollaborator returns (uint16) {
        return remainsToGift;
    }
    

    // END ONLY COLLABORATORS
    
    
    fallback() external payable {}
    
    receive() external payable {}
    
    
    
    function mintByPack(address owner) external {
        require(msg.sender == packContractAddress, "Unauthorized");
        require(setsToMint.length > 0, "Out of cubes");
        
        uint8 numOfCubesToMint = getNumOfCubesToRegularMint();

        for (uint8 i = 0; i < numOfCubesToMint; i++) {
            
            _mint(owner, currentCubeIdForRegularMint);

            cubesByAddress[owner].push(currentCubeIdForRegularMint);

            totalMintedCubes++;
            currentCubeIdForRegularMint++;
        }
    }
    
    
    
    function contractURI() public view returns (string memory) {
        return contractBaseURI;
    }


    function getTokensByAddress(address _addr) public view returns (uint256[] memory) {
        return cubesByAddress[_addr];
    }


    /**
     * @dev Returns the total supply
     */
    function totalSupply() external view virtual returns (uint256) {
        return totalMintedCubes;
    }

    
    // INTERNAL 
    
    function mulScale(
        uint256 x,
        uint256 y,
        uint128 scale
    ) internal pure returns (uint256) {
        uint256 a = x / scale;
        uint256 b = x % scale;
        uint256 c = y / scale;
        uint256 d = y % scale;

        return a * c * scale + a * d + b * c + (b * d) / scale;
    }
    
    
    /**
     * @dev See {ERC721}.
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    
    function getNumOfCubesToRegularMint() internal returns (uint8) {
        uint256 random = _getRandomNumberWithSets((setsToMint.length - 1));
        uint8 numOfCubesToMint = setsToMint[random];
        setsToMint[random] = setsToMint[setsToMint.length - 1];
        setsToMint.pop();

        return numOfCubesToMint;
    }
    

    /**
     * @dev Generates a pseudo-random number.
     */
    function _getRandomNumberWithSets(uint256 _upper) private view returns (uint256) {
        uint256 random = uint256(
            keccak256(
                abi.encodePacked(
                    setsToMint.length,
                    block.timestamp,
                    blockhash(block.number - 1),
                    block.coinbase,
                    block.difficulty,
                    msg.sender
                )
            )
        );

        return random % (_upper + 1);
    }
}

File 2 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 4 of 11 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

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

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

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

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

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

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 5 of 11 : ERC165.sol
// SPDX-License-Identifier: MIT

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 6 of 11 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

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

File 7 of 11 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 11 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

File 9 of 11 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 10 of 11 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"cut","type":"uint256"}],"internalType":"struct UCube.Collaborators[]","name":"_collaborators","type":"tuple[]"}],"name":"addCollaborators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"cubesInSet","type":"uint8"},{"internalType":"uint16","name":"numOfSets","type":"uint16"}],"name":"addSets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_gifted","type":"address[]"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainsToAirdrop","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainsToGift","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getTokensByAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"cubeId","type":"uint256"}],"name":"makeGift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"mintByPack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_val","type":"uint16"},{"internalType":"uint256","name":"_fuse","type":"uint256"}],"name":"setCurrentCubeForMintPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setPackContractAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

600880546001600160801b03191661271017905560c0604052602060808190527f68747470733a2f2f75637562656d6574612e636f6d2f637562652f6d6574612f60a09081526200005491600a9190620004dc565b50604051806060016040528060288152602001620036a66028913980516200008591600b91602090910190620004dc565b50600e805463ffffffff19166161a8179055620000a6610190600162000628565b600e805463ffffffff60201b191664010000000061ffff939093169290920261ffff60301b1916919091176703e80000000000001761ffff60401b191669019000000000000000001790556103e862000103610190600162000628565b6200010f919062000628565b600e600a6101000a81548161ffff021916908361ffff1602179055503480156200013857600080fd5b5060405180604001604052806005815260200164554375626560d81b81525060405180604001604052806005815260200164554375626560d81b8152506200018f620001896200048860201b60201c565b6200048c565b8151620001a4906001906020850190620004dc565b508051620001ba906002906020840190620004dc565b5050600e54600091506103e890620001da906101909061ffff166200067e565b620001e691906200067e565b61ffff169050620001fa6060600562000651565b620002096102fa600462000651565b62000218610a1c600362000651565b6200022761180a600262000651565b62000233919062000628565b6200023f919062000628565b6200024b919062000628565b61ffff168114620002975760405162461bcd60e51b815260206004820152601160248201527057726f6e6720736574206e756d6265727360781b60448201526064015b60405180910390fd5b60606102fa620002ac610a1c61180a62000628565b620002b8919062000628565b620002c4919062000628565b61ffff1661258061ffff1614620003335760405162461bcd60e51b815260206004820152602c60248201527f53657473207175616e74697479206973206e6f7420657175616c20746f20706160448201526b636b73207175616e7469747960a01b60648201526084016200028e565b60408051808201909152600080825261180a602080840191909152600291829052600d905262000385917f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc249916200056b565b50604080518082019091526000808252610a1c6020808401919091526003909152600d9052620003d9907f26b4a10d0f0b04925c23bd4480ee147c916e5e87a7d68206a533dad160ac81e29060026200056b565b506040805180820190915260008082526102fa6020808401919091526004909152600d90526200042d907fafafe8948a4ed9d478b1e9a5780b119b5edd00ea7d07bc35bef7c814824eb94b9060026200056b565b5060408051808201909152600080825260606020808401919091526005909152600d905262000480907fa5049387d9cb649c59f4bda666105ba636c2a103d8e2b232ba4d125737cd21499060026200056b565b5050620006f7565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620004ea90620006a4565b90600052602060002090601f0160209004810192826200050e576000855562000559565b82601f106200052957805160ff191683800117855562000559565b8280016001018555821562000559579182015b82811115620005595782518255916020019190600101906200053c565b506200056792915062000611565b5090565b82805482825590600052602060002090600f01601090048101928215620005595791602002820160005b83821115620005d757835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000595565b8015620006075782816101000a81549061ffff0219169055600201602081600101049283019260010302620005d7565b5050620005679291505b5b8082111562000567576000815560010162000612565b600061ffff808316818516808303821115620006485762000648620006e1565b01949350505050565b600061ffff80831681851681830481118215151615620006755762000675620006e1565b02949350505050565b600061ffff838116908316818110156200069c576200069c620006e1565b039392505050565b600181811c90821680620006b957607f821691505b60208210811415620006db57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b612f9f80620007076000396000f3fe6080604052600436106101c45760003560e01c80636352211e116100f6578063a22cb4651161008f578063d61f921611610061578063d61f92161461054c578063e8a3d4851461056c578063e985e9c514610581578063f2fde38b146105ca57005b8063a22cb465146104cc578063b88d4fde146104ec578063c87b56dd1461050c578063d0ac1f651461052c57005b80637ebf5453116100c85780637ebf5453146104645780638d01a8c1146104845780638da5cb5b1461049957806395d89b41146104b757005b80636352211e146103ef57806370a082311461040f578063715018a61461042f5780637c1e9f7e1461044457005b806323b872dd116101685780633ccfd60b1161013a5780633ccfd60b1461037a578063408facb11461038f57806342842e0e146103af57806346d36211146103cf57005b806323b872dd146102f2578063256a62331461031257806330176e131461033a57806337b2f1551461035a57005b8063081812fc116101a1578063081812fc146102515780630955f63c14610289578063095ea7b3146102a957806318160ddd146102c957005b806301ffc9a7146101cd57806306fdde031461020257806307ca36451461022457005b366101cb57005b005b3480156101d957600080fd5b506101ed6101e8366004612a25565b6105ea565b60405190151581526020015b60405180910390f35b34801561020e57600080fd5b5061021761063c565b6040516101f99190612be2565b34801561023057600080fd5b5061024461023f366004612781565b6106ce565b6040516101f99190612b9e565b34801561025d57600080fd5b5061027161026c366004612abe565b61073a565b6040516001600160a01b0390911681526020016101f9565b34801561029557600080fd5b506101cb6102a4366004612954565b6107c7565b3480156102b557600080fd5b506101cb6102c43660046128bb565b610968565b3480156102d557600080fd5b50600e5462010000900461ffff165b6040519081526020016101f9565b3480156102fe57600080fd5b506101cb61030d3660046127cd565b610a7e565b34801561031e57600080fd5b50610327610aaf565b60405161ffff90911681526020016101f9565b34801561034657600080fd5b506101cb610355366004612a5d565b610b6f565b34801561036657600080fd5b506101cb610375366004612781565b610c29565b34801561038657600080fd5b506101cb610da1565b34801561039b57600080fd5b506101cb6103aa366004612a5d565b610f2d565b3480156103bb57600080fd5b506101cb6103ca3660046127cd565b610fe7565b3480156103db57600080fd5b506101cb6103ea3660046128e4565b611002565b3480156103fb57600080fd5b5061027161040a366004612abe565b611280565b34801561041b57600080fd5b506102e461042a366004612781565b6112f7565b34801561043b57600080fd5b506101cb61137e565b34801561045057600080fd5b506101cb61045f366004612781565b6113b4565b34801561047057600080fd5b506101cb61047f3660046128bb565b611400565b34801561049057600080fd5b50610327611595565b3480156104a557600080fd5b506000546001600160a01b0316610271565b3480156104c357600080fd5b50610217611655565b3480156104d857600080fd5b506101cb6104e7366004612881565b611664565b3480156104f857600080fd5b506101cb610507366004612808565b611729565b34801561051857600080fd5b50610217610527366004612abe565b61175b565b34801561053857600080fd5b506101cb610547366004612aa3565b611826565b34801561055857600080fd5b506101cb610567366004612ad6565b611938565b34801561057857600080fd5b50610217611c0f565b34801561058d57600080fd5b506101ed61059c36600461279b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156105d657600080fd5b506101cb6105e5366004612781565b611c1e565b60006001600160e01b031982166380ac58cd60e01b148061061b57506001600160e01b03198216635b5e139f60e01b145b8061063657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461064b90612e65565b80601f016020809104026020016040519081016040528092919081815260200182805461067790612e65565b80156106c45780601f10610699576101008083540402835291602001916106c4565b820191906000526020600020905b8154815290600101906020018083116106a757829003601f168201915b5050505050905090565b6001600160a01b03811660009081526009602090815260409182902080548351818402810184019094528084526060939283018282801561072e57602002820191906000526020600020905b81548152602001906001019080831161071a575b50505050509050919050565b600061074582611cb9565b6107ab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000546001600160a01b031633146107f15760405162461bcd60e51b81526004016107a290612c47565b600c54156108415760405162461bcd60e51b815260206004820152601e60248201527f436f6c6c61626f7261746f7273207765726520616c726561647920736574000060448201526064016107a2565b6000805b825181101561090657600c83828151811061087057634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018082018555600094855293839020825160029092020180546001600160a01b0319166001600160a01b0390921691909117815591015191015582518390829081106108db57634e487b7160e01b600052603260045260246000fd5b602002602001015160200151826108f29190612d7a565b9150806108fe81612ec2565b915050610845565b506008546001600160801b038281169116146109645760405162461bcd60e51b815260206004820152601e60248201527f546f74616c2063757420646f6573206e6f742061646420746f2031303025000060448201526064016107a2565b5050565b600061097382611280565b9050806001600160a01b0316836001600160a01b031614156109e15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107a2565b336001600160a01b03821614806109fd57506109fd813361059c565b610a6f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107a2565b610a798383611cd6565b505050565b610a883382611d44565b610aa45760405162461bcd60e51b81526004016107a290612ccf565b610a79838383611e2e565b600080805b600c54811015610b2457336001600160a01b0316600c8281548110610ae957634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b03161415610b125760019150610b24565b80610b1c81612ec2565b915050610ab4565b506000546001600160a01b0316331480610b3b5750805b610b575760405162461bcd60e51b81526004016107a290612c7c565b600e546601000000000000900461ffff1691505b5090565b6000805b600c54811015610be357336001600160a01b0316600c8281548110610ba857634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b03161415610bd15760019150610be3565b80610bdb81612ec2565b915050610b73565b506000546001600160a01b0316331480610bfa5750805b610c165760405162461bcd60e51b81526004016107a290612c7c565b8151610a7990600a90602085019061266b565b6007546001600160a01b03163314610c725760405162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5e995960a21b60448201526064016107a2565b600f54610cb05760405162461bcd60e51b815260206004820152600c60248201526b4f7574206f6620637562657360a01b60448201526064016107a2565b6000610cba611fce565b905060005b8160ff168160ff161015610a7957600e54610ce6908490600160501b900461ffff1661211e565b6001600160a01b03831660009081526009602090815260408220600e805482546001810184559285529290932061ffff600160501b9093048316910155815462010000900416906002610d3883612ea0565b91906101000a81548161ffff021916908361ffff16021790555050600e600a81819054906101000a900461ffff1680929190610d7390612ea0565b91906101000a81548161ffff021916908361ffff160217905550508080610d9990612edd565b915050610cbf565b6000805b600c54811015610e1557336001600160a01b0316600c8281548110610dda57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b03161415610e035760019150610e15565b80610e0d81612ec2565b915050610da5565b506000546001600160a01b0316331480610e2c5750805b610e485760405162461bcd60e51b81526004016107a290612c7c565b4760005b600c54811015610a7957600c8181548110610e7757634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160000160009054906101000a90046001600160a01b03166001600160a01b03166108fc610ef284600c8581548110610ecd57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600160029092020101546008546001600160801b0316612251565b6040518115909202916000818181858888f19350505050158015610f1a573d6000803e3d6000fd5b5080610f2581612ec2565b915050610e4c565b6000805b600c54811015610fa157336001600160a01b0316600c8281548110610f6657634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b03161415610f8f5760019150610fa1565b80610f9981612ec2565b915050610f31565b506000546001600160a01b0316331480610fb85750805b610fd45760405162461bcd60e51b81526004016107a290612c7c565b8151610a7990600b90602085019061266b565b610a7983838360405180602001604052806000815250611729565b6000805b600c5481101561107657336001600160a01b0316600c828154811061103b57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b031614156110645760019150611076565b8061106e81612ec2565b915050611006565b506000546001600160a01b031633148061108d5750805b6110a95760405162461bcd60e51b81526004016107a290612c7c565b600e546601000000000000900461ffff168211156111095760405162461bcd60e51b815260206004820152601b60248201527f4e6f20656e6f75676820637562657320746f2061697264726f702e000000000060448201526064016107a2565b60005b8281101561127a57600e5461112c90640100000000900461ffff16611cb9565b1561116e5760405162461bcd60e51b815260206004820152601260248201527110dd589948185b1c9958591e481bdddb995960721b60448201526064016107a2565b6111ba84848381811061119157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906111a69190612781565b600e54640100000000900461ffff1661211e565b600e8054640100000000900461ffff169060046111d683612ea0565b91906101000a81548161ffff021916908361ffff16021790555050600e600281819054906101000a900461ffff168092919061121190612ea0565b91906101000a81548161ffff021916908361ffff16021790555050600e600681819054906101000a900461ffff168092919061124c90612e47565b91906101000a81548161ffff021916908361ffff16021790555050808061127290612ec2565b91505061110c565b50505050565b6000818152600360205260408120546001600160a01b0316806106365760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107a2565b60006001600160a01b0382166113625760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107a2565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146113a85760405162461bcd60e51b81526004016107a290612c47565b6113b26000612328565b565b6000546001600160a01b031633146113de5760405162461bcd60e51b81526004016107a290612c47565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000805b600c5481101561147457336001600160a01b0316600c828154811061143957634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b031614156114625760019150611474565b8061146c81612ec2565b915050611404565b506000546001600160a01b031633148061148b5750805b6114a75760405162461bcd60e51b81526004016107a290612c7c565b6114b082611cb9565b156114f25760405162461bcd60e51b815260206004820152601260248201527110dd589948185b1c9958591e481bdddb995960721b60448201526064016107a2565b6114ff6101906001612d9c565b61ffff1682106115515760405162461bcd60e51b815260206004820152601b60248201527f43756265204964206973206f7574206f662067696674206c697374000000000060448201526064016107a2565b61155b838361211e565b600e805462010000900461ffff1690600261157583612ea0565b91906101000a81548161ffff021916908361ffff16021790555050505050565b600080805b600c5481101561160a57336001600160a01b0316600c82815481106115cf57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b031614156115f8576001915061160a565b8061160281612ec2565b91505061159a565b506000546001600160a01b03163314806116215750805b61163d5760405162461bcd60e51b81526004016107a290612c7c565b5050600e5468010000000000000000900461ffff1690565b60606002805461064b90612e65565b6001600160a01b0382163314156116bd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107a2565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117333383611d44565b61174f5760405162461bcd60e51b81526004016107a290612ccf565b61127a84848484612378565b606061176682611cb9565b6117ca5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107a2565b60006117d46123ab565b905060008151116117f4576040518060200160405280600081525061181f565b806117fe846123ba565b60405160200161180f929190612b32565b6040516020818303038152906040525b9392505050565b6000805b600c5481101561189a57336001600160a01b0316600c828154811061185f57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b03161415611888576001915061189a565b8061189281612ec2565b91505061182a565b506000546001600160a01b03163314806118b15750805b6118cd5760405162461bcd60e51b81526004016107a290612c7c565b81606f146119125760405162461bcd60e51b8152602060048201526012602482015271233ab9b29034b99034b731b7b93932b1ba1760711b60448201526064016107a2565b5050600e805461ffff9092166401000000000265ffff0000000019909216919091179055565b6000546001600160a01b031633146119625760405162461bcd60e51b81526004016107a290612c47565b60ff82166000908152600d60205260409020546002146119d75760405162461bcd60e51b815260206004820152602a60248201527f546869732076616c7565206f6620637562657320696e20736574206973206e6f6044820152693a1030b63637bbb2b21760b11b60648201526084016107a2565b60ff82166000908152600d6020526040902080546001908110611a0a57634e487b7160e01b600052603260045260246000fd5b6000918252602080832060108304015460ff86168452600d909152604083208054600f9093166002026101000a90910461ffff16928492611a5b57634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff16611a899190612d9c565b61ffff161115611ad35760405162461bcd60e51b81526020600482015260156024820152742a37ba30b61032bc31b2b2b2103337b91039b2ba1760591b60448201526064016107a2565b60005b8161ffff168161ffff161015611b4b57600f8054600181018255600091909152602081047f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80201805460ff808716601f9094166101000a9384029302191691909117905580611b4381612ea0565b915050611ad6565b60ff83166000908152600d602052604081208054849290611b7c57634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff16611baa9190612d9c565b60ff84166000908152600d602052604081208054909190611bdb57634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550505050565b6060600b805461064b90612e65565b6000546001600160a01b03163314611c485760405162461bcd60e51b81526004016107a290612c47565b6001600160a01b038116611cad5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107a2565b611cb681612328565b50565b6000908152600360205260409020546001600160a01b0316151590565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d0b82611280565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d4f82611cb9565b611db05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107a2565b6000611dbb83611280565b9050806001600160a01b0316846001600160a01b03161480611df65750836001600160a01b0316611deb8461073a565b6001600160a01b0316145b80611e2657506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e4182611280565b6001600160a01b031614611ea95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107a2565b6001600160a01b038216611f0b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107a2565b611f16600082611cd6565b6001600160a01b0383166000908152600460205260408120805460019290611f3f908490612e04565b90915550506001600160a01b0382166000908152600460205260408120805460019290611f6d908490612db9565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080611feb6001600f80549050611fe69190612e04565b6124d4565b90506000600f828154811061201057634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff169050600f6001600f805490506120469190612e04565b8154811061206457634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff16600f83815481106120a557634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190066101000a81548160ff021916908360ff160217905550600f8054806120ee57634e487b7160e01b600052603160045260246000fd5b6000828152602090819020600019909201908104909101805460ff601f84166101000a0219169055905592915050565b6001600160a01b0382166121745760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107a2565b61217d81611cb9565b156121ca5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107a2565b6001600160a01b03821660009081526004602052604081208054600192906121f3908490612db9565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000806122676001600160801b03841686612dd1565b9050600061227e6001600160801b03851687612efd565b905060006122956001600160801b03861687612dd1565b905060006122ac6001600160801b03871688612efd565b90506001600160801b0386166122c28285612de5565b6122cc9190612dd1565b6122d68385612de5565b6122e08387612de5565b6001600160801b0389166122f48689612de5565b6122fe9190612de5565b6123089190612db9565b6123129190612db9565b61231c9190612db9565b98975050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612383848484611e2e565b61238f8484848461255e565b61127a5760405162461bcd60e51b81526004016107a290612bf5565b6060600a805461064b90612e65565b6060816123de5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561240857806123f281612ec2565b91506124019050600a83612dd1565b91506123e2565b60008167ffffffffffffffff81111561243157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561245b576020820181803683370190505b5090505b8415611e2657612470600183612e04565b915061247d600a86612efd565b612488906030612db9565b60f81b8183815181106124ab57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506124cd600a86612dd1565b945061245f565b600f546000908190426124e8600143612e04565b604080516020810194909452830191909152406060808301919091526bffffffffffffffffffffffff1941821b811660808401524460948401523390911b1660b482015260c80160408051601f1981840301815291905280516020909101209050612554836001612db9565b61181f9082612efd565b60006001600160a01b0384163b1561266057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125a2903390899088908890600401612b61565b602060405180830381600087803b1580156125bc57600080fd5b505af19250505080156125ec575060408051601f3d908101601f191682019092526125e991810190612a41565b60015b612646573d80801561261a576040519150601f19603f3d011682016040523d82523d6000602084013e61261f565b606091505b50805161263e5760405162461bcd60e51b81526004016107a290612bf5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e26565b506001949350505050565b82805461267790612e65565b90600052602060002090601f01602090048101928261269957600085556126df565b82601f106126b257805160ff19168380011785556126df565b828001600101855582156126df579182015b828111156126df5782518255916020019190600101906126c4565b50610b6b9291505b80821115610b6b57600081556001016126e7565b600067ffffffffffffffff83111561271557612715612f3d565b612728601f8401601f1916602001612d49565b905082815283838301111561273c57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461276a57600080fd5b919050565b803561ffff8116811461276a57600080fd5b600060208284031215612792578081fd5b61181f82612753565b600080604083850312156127ad578081fd5b6127b683612753565b91506127c460208401612753565b90509250929050565b6000806000606084860312156127e1578081fd5b6127ea84612753565b92506127f860208501612753565b9150604084013590509250925092565b6000806000806080858703121561281d578081fd5b61282685612753565b935061283460208601612753565b925060408501359150606085013567ffffffffffffffff811115612856578182fd5b8501601f81018713612866578182fd5b612875878235602084016126fb565b91505092959194509250565b60008060408385031215612893578182fd5b61289c83612753565b9150602083013580151581146128b0578182fd5b809150509250929050565b600080604083850312156128cd578182fd5b6128d683612753565b946020939093013593505050565b600080602083850312156128f6578182fd5b823567ffffffffffffffff8082111561290d578384fd5b818501915085601f830112612920578384fd5b81358181111561292e578485fd5b8660208260051b8501011115612942578485fd5b60209290920196919550909350505050565b60006020808385031215612966578182fd5b823567ffffffffffffffff8082111561297d578384fd5b818501915085601f830112612990578384fd5b8135818111156129a2576129a2612f3d565b6129b0848260051b01612d49565b8181528481019250838501600683901b850186018910156129cf578687fd5b8694505b82851015612a1957604080828b0312156129eb578788fd5b6129f3612d20565b6129fc83612753565b8152828801358882015285526001959095019493860193016129d3565b50979650505050505050565b600060208284031215612a36578081fd5b813561181f81612f53565b600060208284031215612a52578081fd5b815161181f81612f53565b600060208284031215612a6e578081fd5b813567ffffffffffffffff811115612a84578182fd5b8201601f81018413612a94578182fd5b611e26848235602084016126fb565b60008060408385031215612ab5578182fd5b6128d68361276f565b600060208284031215612acf578081fd5b5035919050565b60008060408385031215612ae8578182fd5b823560ff81168114612af8578283fd5b91506127c46020840161276f565b60008151808452612b1e816020860160208601612e1b565b601f01601f19169290920160200192915050565b60008351612b44818460208801612e1b565b835190830190612b58818360208801612e1b565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b9490830184612b06565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612bd657835183529284019291840191600101612bba565b50909695505050505050565b60208152600061181f6020830184612b06565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015272103737b910309031b7b63630b137b930ba37b960691b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6040805190810167ffffffffffffffff81118282101715612d4357612d43612f3d565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715612d7257612d72612f3d565b604052919050565b60006001600160801b03808316818516808303821115612b5857612b58612f11565b600061ffff808316818516808303821115612b5857612b58612f11565b60008219821115612dcc57612dcc612f11565b500190565b600082612de057612de0612f27565b500490565b6000816000190483118215151615612dff57612dff612f11565b500290565b600082821015612e1657612e16612f11565b500390565b60005b83811015612e36578181015183820152602001612e1e565b8381111561127a5750506000910152565b600061ffff821680612e5b57612e5b612f11565b6000190192915050565b600181811c90821680612e7957607f821691505b60208210811415612e9a57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415612eb857612eb8612f11565b6001019392505050565b6000600019821415612ed657612ed6612f11565b5060010190565b600060ff821660ff811415612ef457612ef4612f11565b60010192915050565b600082612f0c57612f0c612f27565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611cb657600080fdfea26469706673582212206a1377e2c116795437c2a5268ed9c5b354665094f951cbbaac0c72e1a5ad2f1264736f6c6343000804003368747470733a2f2f75637562656d6574612e636f6d2f637562652f636f6e74726163745f6d657461

Deployed Bytecode

0x6080604052600436106101c45760003560e01c80636352211e116100f6578063a22cb4651161008f578063d61f921611610061578063d61f92161461054c578063e8a3d4851461056c578063e985e9c514610581578063f2fde38b146105ca57005b8063a22cb465146104cc578063b88d4fde146104ec578063c87b56dd1461050c578063d0ac1f651461052c57005b80637ebf5453116100c85780637ebf5453146104645780638d01a8c1146104845780638da5cb5b1461049957806395d89b41146104b757005b80636352211e146103ef57806370a082311461040f578063715018a61461042f5780637c1e9f7e1461044457005b806323b872dd116101685780633ccfd60b1161013a5780633ccfd60b1461037a578063408facb11461038f57806342842e0e146103af57806346d36211146103cf57005b806323b872dd146102f2578063256a62331461031257806330176e131461033a57806337b2f1551461035a57005b8063081812fc116101a1578063081812fc146102515780630955f63c14610289578063095ea7b3146102a957806318160ddd146102c957005b806301ffc9a7146101cd57806306fdde031461020257806307ca36451461022457005b366101cb57005b005b3480156101d957600080fd5b506101ed6101e8366004612a25565b6105ea565b60405190151581526020015b60405180910390f35b34801561020e57600080fd5b5061021761063c565b6040516101f99190612be2565b34801561023057600080fd5b5061024461023f366004612781565b6106ce565b6040516101f99190612b9e565b34801561025d57600080fd5b5061027161026c366004612abe565b61073a565b6040516001600160a01b0390911681526020016101f9565b34801561029557600080fd5b506101cb6102a4366004612954565b6107c7565b3480156102b557600080fd5b506101cb6102c43660046128bb565b610968565b3480156102d557600080fd5b50600e5462010000900461ffff165b6040519081526020016101f9565b3480156102fe57600080fd5b506101cb61030d3660046127cd565b610a7e565b34801561031e57600080fd5b50610327610aaf565b60405161ffff90911681526020016101f9565b34801561034657600080fd5b506101cb610355366004612a5d565b610b6f565b34801561036657600080fd5b506101cb610375366004612781565b610c29565b34801561038657600080fd5b506101cb610da1565b34801561039b57600080fd5b506101cb6103aa366004612a5d565b610f2d565b3480156103bb57600080fd5b506101cb6103ca3660046127cd565b610fe7565b3480156103db57600080fd5b506101cb6103ea3660046128e4565b611002565b3480156103fb57600080fd5b5061027161040a366004612abe565b611280565b34801561041b57600080fd5b506102e461042a366004612781565b6112f7565b34801561043b57600080fd5b506101cb61137e565b34801561045057600080fd5b506101cb61045f366004612781565b6113b4565b34801561047057600080fd5b506101cb61047f3660046128bb565b611400565b34801561049057600080fd5b50610327611595565b3480156104a557600080fd5b506000546001600160a01b0316610271565b3480156104c357600080fd5b50610217611655565b3480156104d857600080fd5b506101cb6104e7366004612881565b611664565b3480156104f857600080fd5b506101cb610507366004612808565b611729565b34801561051857600080fd5b50610217610527366004612abe565b61175b565b34801561053857600080fd5b506101cb610547366004612aa3565b611826565b34801561055857600080fd5b506101cb610567366004612ad6565b611938565b34801561057857600080fd5b50610217611c0f565b34801561058d57600080fd5b506101ed61059c36600461279b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156105d657600080fd5b506101cb6105e5366004612781565b611c1e565b60006001600160e01b031982166380ac58cd60e01b148061061b57506001600160e01b03198216635b5e139f60e01b145b8061063657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461064b90612e65565b80601f016020809104026020016040519081016040528092919081815260200182805461067790612e65565b80156106c45780601f10610699576101008083540402835291602001916106c4565b820191906000526020600020905b8154815290600101906020018083116106a757829003601f168201915b5050505050905090565b6001600160a01b03811660009081526009602090815260409182902080548351818402810184019094528084526060939283018282801561072e57602002820191906000526020600020905b81548152602001906001019080831161071a575b50505050509050919050565b600061074582611cb9565b6107ab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000546001600160a01b031633146107f15760405162461bcd60e51b81526004016107a290612c47565b600c54156108415760405162461bcd60e51b815260206004820152601e60248201527f436f6c6c61626f7261746f7273207765726520616c726561647920736574000060448201526064016107a2565b6000805b825181101561090657600c83828151811061087057634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018082018555600094855293839020825160029092020180546001600160a01b0319166001600160a01b0390921691909117815591015191015582518390829081106108db57634e487b7160e01b600052603260045260246000fd5b602002602001015160200151826108f29190612d7a565b9150806108fe81612ec2565b915050610845565b506008546001600160801b038281169116146109645760405162461bcd60e51b815260206004820152601e60248201527f546f74616c2063757420646f6573206e6f742061646420746f2031303025000060448201526064016107a2565b5050565b600061097382611280565b9050806001600160a01b0316836001600160a01b031614156109e15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107a2565b336001600160a01b03821614806109fd57506109fd813361059c565b610a6f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107a2565b610a798383611cd6565b505050565b610a883382611d44565b610aa45760405162461bcd60e51b81526004016107a290612ccf565b610a79838383611e2e565b600080805b600c54811015610b2457336001600160a01b0316600c8281548110610ae957634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b03161415610b125760019150610b24565b80610b1c81612ec2565b915050610ab4565b506000546001600160a01b0316331480610b3b5750805b610b575760405162461bcd60e51b81526004016107a290612c7c565b600e546601000000000000900461ffff1691505b5090565b6000805b600c54811015610be357336001600160a01b0316600c8281548110610ba857634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b03161415610bd15760019150610be3565b80610bdb81612ec2565b915050610b73565b506000546001600160a01b0316331480610bfa5750805b610c165760405162461bcd60e51b81526004016107a290612c7c565b8151610a7990600a90602085019061266b565b6007546001600160a01b03163314610c725760405162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5e995960a21b60448201526064016107a2565b600f54610cb05760405162461bcd60e51b815260206004820152600c60248201526b4f7574206f6620637562657360a01b60448201526064016107a2565b6000610cba611fce565b905060005b8160ff168160ff161015610a7957600e54610ce6908490600160501b900461ffff1661211e565b6001600160a01b03831660009081526009602090815260408220600e805482546001810184559285529290932061ffff600160501b9093048316910155815462010000900416906002610d3883612ea0565b91906101000a81548161ffff021916908361ffff16021790555050600e600a81819054906101000a900461ffff1680929190610d7390612ea0565b91906101000a81548161ffff021916908361ffff160217905550508080610d9990612edd565b915050610cbf565b6000805b600c54811015610e1557336001600160a01b0316600c8281548110610dda57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b03161415610e035760019150610e15565b80610e0d81612ec2565b915050610da5565b506000546001600160a01b0316331480610e2c5750805b610e485760405162461bcd60e51b81526004016107a290612c7c565b4760005b600c54811015610a7957600c8181548110610e7757634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160000160009054906101000a90046001600160a01b03166001600160a01b03166108fc610ef284600c8581548110610ecd57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600160029092020101546008546001600160801b0316612251565b6040518115909202916000818181858888f19350505050158015610f1a573d6000803e3d6000fd5b5080610f2581612ec2565b915050610e4c565b6000805b600c54811015610fa157336001600160a01b0316600c8281548110610f6657634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b03161415610f8f5760019150610fa1565b80610f9981612ec2565b915050610f31565b506000546001600160a01b0316331480610fb85750805b610fd45760405162461bcd60e51b81526004016107a290612c7c565b8151610a7990600b90602085019061266b565b610a7983838360405180602001604052806000815250611729565b6000805b600c5481101561107657336001600160a01b0316600c828154811061103b57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b031614156110645760019150611076565b8061106e81612ec2565b915050611006565b506000546001600160a01b031633148061108d5750805b6110a95760405162461bcd60e51b81526004016107a290612c7c565b600e546601000000000000900461ffff168211156111095760405162461bcd60e51b815260206004820152601b60248201527f4e6f20656e6f75676820637562657320746f2061697264726f702e000000000060448201526064016107a2565b60005b8281101561127a57600e5461112c90640100000000900461ffff16611cb9565b1561116e5760405162461bcd60e51b815260206004820152601260248201527110dd589948185b1c9958591e481bdddb995960721b60448201526064016107a2565b6111ba84848381811061119157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906111a69190612781565b600e54640100000000900461ffff1661211e565b600e8054640100000000900461ffff169060046111d683612ea0565b91906101000a81548161ffff021916908361ffff16021790555050600e600281819054906101000a900461ffff168092919061121190612ea0565b91906101000a81548161ffff021916908361ffff16021790555050600e600681819054906101000a900461ffff168092919061124c90612e47565b91906101000a81548161ffff021916908361ffff16021790555050808061127290612ec2565b91505061110c565b50505050565b6000818152600360205260408120546001600160a01b0316806106365760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107a2565b60006001600160a01b0382166113625760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107a2565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146113a85760405162461bcd60e51b81526004016107a290612c47565b6113b26000612328565b565b6000546001600160a01b031633146113de5760405162461bcd60e51b81526004016107a290612c47565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000805b600c5481101561147457336001600160a01b0316600c828154811061143957634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b031614156114625760019150611474565b8061146c81612ec2565b915050611404565b506000546001600160a01b031633148061148b5750805b6114a75760405162461bcd60e51b81526004016107a290612c7c565b6114b082611cb9565b156114f25760405162461bcd60e51b815260206004820152601260248201527110dd589948185b1c9958591e481bdddb995960721b60448201526064016107a2565b6114ff6101906001612d9c565b61ffff1682106115515760405162461bcd60e51b815260206004820152601b60248201527f43756265204964206973206f7574206f662067696674206c697374000000000060448201526064016107a2565b61155b838361211e565b600e805462010000900461ffff1690600261157583612ea0565b91906101000a81548161ffff021916908361ffff16021790555050505050565b600080805b600c5481101561160a57336001600160a01b0316600c82815481106115cf57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b031614156115f8576001915061160a565b8061160281612ec2565b91505061159a565b506000546001600160a01b03163314806116215750805b61163d5760405162461bcd60e51b81526004016107a290612c7c565b5050600e5468010000000000000000900461ffff1690565b60606002805461064b90612e65565b6001600160a01b0382163314156116bd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107a2565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117333383611d44565b61174f5760405162461bcd60e51b81526004016107a290612ccf565b61127a84848484612378565b606061176682611cb9565b6117ca5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107a2565b60006117d46123ab565b905060008151116117f4576040518060200160405280600081525061181f565b806117fe846123ba565b60405160200161180f929190612b32565b6040516020818303038152906040525b9392505050565b6000805b600c5481101561189a57336001600160a01b0316600c828154811061185f57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b03161415611888576001915061189a565b8061189281612ec2565b91505061182a565b506000546001600160a01b03163314806118b15750805b6118cd5760405162461bcd60e51b81526004016107a290612c7c565b81606f146119125760405162461bcd60e51b8152602060048201526012602482015271233ab9b29034b99034b731b7b93932b1ba1760711b60448201526064016107a2565b5050600e805461ffff9092166401000000000265ffff0000000019909216919091179055565b6000546001600160a01b031633146119625760405162461bcd60e51b81526004016107a290612c47565b60ff82166000908152600d60205260409020546002146119d75760405162461bcd60e51b815260206004820152602a60248201527f546869732076616c7565206f6620637562657320696e20736574206973206e6f6044820152693a1030b63637bbb2b21760b11b60648201526084016107a2565b60ff82166000908152600d6020526040902080546001908110611a0a57634e487b7160e01b600052603260045260246000fd5b6000918252602080832060108304015460ff86168452600d909152604083208054600f9093166002026101000a90910461ffff16928492611a5b57634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff16611a899190612d9c565b61ffff161115611ad35760405162461bcd60e51b81526020600482015260156024820152742a37ba30b61032bc31b2b2b2103337b91039b2ba1760591b60448201526064016107a2565b60005b8161ffff168161ffff161015611b4b57600f8054600181018255600091909152602081047f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80201805460ff808716601f9094166101000a9384029302191691909117905580611b4381612ea0565b915050611ad6565b60ff83166000908152600d602052604081208054849290611b7c57634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff16611baa9190612d9c565b60ff84166000908152600d602052604081208054909190611bdb57634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550505050565b6060600b805461064b90612e65565b6000546001600160a01b03163314611c485760405162461bcd60e51b81526004016107a290612c47565b6001600160a01b038116611cad5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107a2565b611cb681612328565b50565b6000908152600360205260409020546001600160a01b0316151590565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d0b82611280565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d4f82611cb9565b611db05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107a2565b6000611dbb83611280565b9050806001600160a01b0316846001600160a01b03161480611df65750836001600160a01b0316611deb8461073a565b6001600160a01b0316145b80611e2657506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e4182611280565b6001600160a01b031614611ea95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107a2565b6001600160a01b038216611f0b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107a2565b611f16600082611cd6565b6001600160a01b0383166000908152600460205260408120805460019290611f3f908490612e04565b90915550506001600160a01b0382166000908152600460205260408120805460019290611f6d908490612db9565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080611feb6001600f80549050611fe69190612e04565b6124d4565b90506000600f828154811061201057634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff169050600f6001600f805490506120469190612e04565b8154811061206457634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff16600f83815481106120a557634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190066101000a81548160ff021916908360ff160217905550600f8054806120ee57634e487b7160e01b600052603160045260246000fd5b6000828152602090819020600019909201908104909101805460ff601f84166101000a0219169055905592915050565b6001600160a01b0382166121745760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107a2565b61217d81611cb9565b156121ca5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107a2565b6001600160a01b03821660009081526004602052604081208054600192906121f3908490612db9565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000806122676001600160801b03841686612dd1565b9050600061227e6001600160801b03851687612efd565b905060006122956001600160801b03861687612dd1565b905060006122ac6001600160801b03871688612efd565b90506001600160801b0386166122c28285612de5565b6122cc9190612dd1565b6122d68385612de5565b6122e08387612de5565b6001600160801b0389166122f48689612de5565b6122fe9190612de5565b6123089190612db9565b6123129190612db9565b61231c9190612db9565b98975050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612383848484611e2e565b61238f8484848461255e565b61127a5760405162461bcd60e51b81526004016107a290612bf5565b6060600a805461064b90612e65565b6060816123de5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561240857806123f281612ec2565b91506124019050600a83612dd1565b91506123e2565b60008167ffffffffffffffff81111561243157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561245b576020820181803683370190505b5090505b8415611e2657612470600183612e04565b915061247d600a86612efd565b612488906030612db9565b60f81b8183815181106124ab57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506124cd600a86612dd1565b945061245f565b600f546000908190426124e8600143612e04565b604080516020810194909452830191909152406060808301919091526bffffffffffffffffffffffff1941821b811660808401524460948401523390911b1660b482015260c80160408051601f1981840301815291905280516020909101209050612554836001612db9565b61181f9082612efd565b60006001600160a01b0384163b1561266057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125a2903390899088908890600401612b61565b602060405180830381600087803b1580156125bc57600080fd5b505af19250505080156125ec575060408051601f3d908101601f191682019092526125e991810190612a41565b60015b612646573d80801561261a576040519150601f19603f3d011682016040523d82523d6000602084013e61261f565b606091505b50805161263e5760405162461bcd60e51b81526004016107a290612bf5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e26565b506001949350505050565b82805461267790612e65565b90600052602060002090601f01602090048101928261269957600085556126df565b82601f106126b257805160ff19168380011785556126df565b828001600101855582156126df579182015b828111156126df5782518255916020019190600101906126c4565b50610b6b9291505b80821115610b6b57600081556001016126e7565b600067ffffffffffffffff83111561271557612715612f3d565b612728601f8401601f1916602001612d49565b905082815283838301111561273c57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461276a57600080fd5b919050565b803561ffff8116811461276a57600080fd5b600060208284031215612792578081fd5b61181f82612753565b600080604083850312156127ad578081fd5b6127b683612753565b91506127c460208401612753565b90509250929050565b6000806000606084860312156127e1578081fd5b6127ea84612753565b92506127f860208501612753565b9150604084013590509250925092565b6000806000806080858703121561281d578081fd5b61282685612753565b935061283460208601612753565b925060408501359150606085013567ffffffffffffffff811115612856578182fd5b8501601f81018713612866578182fd5b612875878235602084016126fb565b91505092959194509250565b60008060408385031215612893578182fd5b61289c83612753565b9150602083013580151581146128b0578182fd5b809150509250929050565b600080604083850312156128cd578182fd5b6128d683612753565b946020939093013593505050565b600080602083850312156128f6578182fd5b823567ffffffffffffffff8082111561290d578384fd5b818501915085601f830112612920578384fd5b81358181111561292e578485fd5b8660208260051b8501011115612942578485fd5b60209290920196919550909350505050565b60006020808385031215612966578182fd5b823567ffffffffffffffff8082111561297d578384fd5b818501915085601f830112612990578384fd5b8135818111156129a2576129a2612f3d565b6129b0848260051b01612d49565b8181528481019250838501600683901b850186018910156129cf578687fd5b8694505b82851015612a1957604080828b0312156129eb578788fd5b6129f3612d20565b6129fc83612753565b8152828801358882015285526001959095019493860193016129d3565b50979650505050505050565b600060208284031215612a36578081fd5b813561181f81612f53565b600060208284031215612a52578081fd5b815161181f81612f53565b600060208284031215612a6e578081fd5b813567ffffffffffffffff811115612a84578182fd5b8201601f81018413612a94578182fd5b611e26848235602084016126fb565b60008060408385031215612ab5578182fd5b6128d68361276f565b600060208284031215612acf578081fd5b5035919050565b60008060408385031215612ae8578182fd5b823560ff81168114612af8578283fd5b91506127c46020840161276f565b60008151808452612b1e816020860160208601612e1b565b601f01601f19169290920160200192915050565b60008351612b44818460208801612e1b565b835190830190612b58818360208801612e1b565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b9490830184612b06565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612bd657835183529284019291840191600101612bba565b50909695505050505050565b60208152600061181f6020830184612b06565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015272103737b910309031b7b63630b137b930ba37b960691b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6040805190810167ffffffffffffffff81118282101715612d4357612d43612f3d565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715612d7257612d72612f3d565b604052919050565b60006001600160801b03808316818516808303821115612b5857612b58612f11565b600061ffff808316818516808303821115612b5857612b58612f11565b60008219821115612dcc57612dcc612f11565b500190565b600082612de057612de0612f27565b500490565b6000816000190483118215151615612dff57612dff612f11565b500290565b600082821015612e1657612e16612f11565b500390565b60005b83811015612e36578181015183820152602001612e1e565b8381111561127a5750506000910152565b600061ffff821680612e5b57612e5b612f11565b6000190192915050565b600181811c90821680612e7957607f821691505b60208210811415612e9a57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415612eb857612eb8612f11565b6001019392505050565b6000600019821415612ed657612ed6612f11565b5060010190565b600060ff821660ff811415612ef457612ef4612f11565b60010192915050565b600082612f0c57612f0c612f27565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611cb657600080fdfea26469706673582212206a1377e2c116795437c2a5268ed9c5b354665094f951cbbaac0c72e1a5ad2f1264736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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