ETH Price: $2,728.69 (+12.64%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake Tokens188575272023-12-24 18:52:35318 days ago1703443955IN
0xCBB86983...EFe0754fF
0 ETH0.0029909219.01570448
Unstake Tokens184094172023-10-23 0:30:23380 days ago1698021023IN
0xCBB86983...EFe0754fF
0 ETH0.0123153411.20385283
Unstake Tokens183561312023-10-15 13:39:59388 days ago1697377199IN
0xCBB86983...EFe0754fF
0 ETH0.000745359.23243574
Unstake Tokens182160552023-09-25 23:23:11407 days ago1695684191IN
0xCBB86983...EFe0754fF
0 ETH0.002248149.46078735
Unstake Tokens181747102023-09-20 4:25:47413 days ago1695183947IN
0xCBB86983...EFe0754fF
0 ETH0.0008951611.08813919
Unstake Tokens180860372023-09-07 17:27:59426 days ago1694107679IN
0xCBB86983...EFe0754fF
0 ETH0.0055906427.09366561
Unstake Tokens179065152023-08-13 14:24:59451 days ago1691936699IN
0xCBB86983...EFe0754fF
0 ETH0.0087815718.99228966
Unstake Tokens178649562023-08-07 18:51:35457 days ago1691434295IN
0xCBB86983...EFe0754fF
0 ETH0.0047358526.63642817
Unstake Tokens178493812023-08-05 14:31:47459 days ago1691245907IN
0xCBB86983...EFe0754fF
0 ETH0.0013869620.65438544
Unstake Tokens178383712023-08-04 1:34:11460 days ago1691112851IN
0xCBB86983...EFe0754fF
0 ETH0.0014710117.45985861
Unstake Tokens178222562023-08-01 19:31:23463 days ago1690918283IN
0xCBB86983...EFe0754fF
0 ETH0.0026047725.18147805
Unstake Tokens178170562023-08-01 2:05:11463 days ago1690855511IN
0xCBB86983...EFe0754fF
0 ETH0.0021230517.24391056
Unstake Tokens177772312023-07-26 12:23:59469 days ago1690374239IN
0xCBB86983...EFe0754fF
0 ETH0.003123928.64125206
Unstake Tokens177753222023-07-26 5:59:35469 days ago1690351175IN
0xCBB86983...EFe0754fF
0 ETH0.0010070514.99687485
Unstake Tokens177749852023-07-26 4:51:35469 days ago1690347095IN
0xCBB86983...EFe0754fF
0 ETH0.0010072615
Unstake Tokens177723042023-07-25 19:51:11470 days ago1690314671IN
0xCBB86983...EFe0754fF
0 ETH0.0022506833.51672317
Unstake Tokens177612582023-07-24 6:44:11471 days ago1690181051IN
0xCBB86983...EFe0754fF
0 ETH0.0014102515.03629188
Unstake Tokens177599822023-07-24 2:27:35471 days ago1690165655IN
0xCBB86983...EFe0754fF
0 ETH0.0010584915.76293721
Unstake Tokens177566412023-07-23 15:15:23472 days ago1690125323IN
0xCBB86983...EFe0754fF
0 ETH0.0016915125.18978527
Unstake Tokens177525812023-07-23 1:36:47472 days ago1690076207IN
0xCBB86983...EFe0754fF
0 ETH0.0014224416.88344324
Unstake Tokens177469612023-07-22 6:44:11473 days ago1690008251IN
0xCBB86983...EFe0754fF
0 ETH0.0016480517.57175345
Unstake Tokens177469172023-07-22 6:35:23473 days ago1690007723IN
0xCBB86983...EFe0754fF
0 ETH0.0013556920.18872899
Unstake Tokens177266212023-07-19 10:24:23476 days ago1689762263IN
0xCBB86983...EFe0754fF
0 ETH0.0011850717.64791908
Unstake Tokens177239552023-07-19 1:24:35476 days ago1689729875IN
0xCBB86983...EFe0754fF
0 ETH0.0023177224.71190499
Unstake Tokens177224142023-07-18 20:13:35477 days ago1689711215IN
0xCBB86983...EFe0754fF
0 ETH0.0057019427.00629164
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
188575272023-12-24 18:52:35318 days ago1703443955
0xCBB86983...EFe0754fF
0 ETH
188575272023-12-24 18:52:35318 days ago1703443955
0xCBB86983...EFe0754fF
0 ETH
188575272023-12-24 18:52:35318 days ago1703443955
0xCBB86983...EFe0754fF
0 ETH
188575272023-12-24 18:52:35318 days ago1703443955
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
184094172023-10-23 0:30:23380 days ago1698021023
0xCBB86983...EFe0754fF
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ReplicantXStaking

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.0;

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

import "./IFrameNFT.sol";

/*
 * This contract allows users to stake and unstake ERC721 tokens,
 * and mint a FrameNFT for each staked token while unstaking
 */

contract ReplicantXStaking is Ownable, ERC721Holder {
    // Event emitted when a FrameNFT is minted,
    // used for tracking relationship of frameNFT and tokenId of voter
    event FrameNFTMinted(
        uint256 frameNFTId,
        address voterContract,
        uint256 voterTokenId,
        address voterWalletAddress,
        address frameNFTAddress
    );

    // Mapping from token address to staking/unstaking enabled status
    mapping(address => bool) public isStakingEnabledForTokenContractAddress;
    mapping(address => bool) public isUnstakingEnabledForTokenContractAddress;

    // Mapping owner address to token address to staked token count
    mapping(address => mapping(address => uint256)) private _stakedCount;
    // Mapping from owner to token address to index of staked token IDs to tokenIDs
    mapping(address => mapping(address => mapping(uint256 => uint256)))
        private _stakedTokens;
    // Mapping from token address to token ID to index of the staked tokens list
    mapping(address => mapping(uint256 => uint256)) private _stakedTokensIndex;
    // Mapping from owner to token type to token IDs which are staked
    mapping(address => mapping(address => mapping(uint256 => bool)))
        private _userAddressToStakedTokenIdMap;

    // Mapping from token address to should enable frame minting status when unstaking
    mapping(address => bool) public shouldMintFrameWhenUnstakingForToken;
    // frameNFT contract address to mint frameNFT
    IFrameNFT public frameNFTContract;

    /**
     * @dev The contract address of the Frame NFT to be minted when unstaking
     * @param add address representing the contract address of the Frame NFT
     * contract address must conform to IFrameNFT interface to be able to mint
     */
    function setFrameNFTContract(address add) external onlyOwner {
        frameNFTContract = IFrameNFT(add);
    }

    /**
     * @dev Enable/disable minting of Frame NFT when unstaking for specific staked token
     * @param enable status of minting frame NFT enabled/disabled
     * @param tokenAddress address representing the contract address of staked NFT
     */
    function toggleMintFrameEnabledWhenUnstakingToken(
        bool enable,
        address tokenAddress
    ) external onlyOwner {
        shouldMintFrameWhenUnstakingForToken[tokenAddress] = enable;
    }

    /**
     * @dev Enable/disable staking for token
     * @param enabled status of staking enabled/disabled for token
     * @param tokenAddress address representing the contract address of token
     */
    function setStakingEnabledForTokenContractAddress(
        bool enabled,
        address tokenAddress
    ) external onlyOwner {
        isStakingEnabledForTokenContractAddress[tokenAddress] = enabled;
    }

    /**
     * @dev Enable/disable unstaking for token
     * @param enabled status of unstaking enabled/disabled for token
     * @param tokenAddress address representing the contract address of token
     */
    function setUnstakingEnabledForTokenContractAddress(
        bool enabled,
        address tokenAddress
    ) external onlyOwner {
        isUnstakingEnabledForTokenContractAddress[tokenAddress] = enabled;
    }

    /**
     * @dev Stake tokens from user from different contracts that must each be enabled in setStakingEnabledForTokenContractAddress.
     * Token must be of type ERC721
     * @param tokenContractAddresses token contract addresses of tokens intended for staking
     * @param tokenIdsForEachContract tokenIds of each contract intended for staking
     */
    function stakeTokens(
        address[] calldata tokenContractAddresses,
        uint256[][] calldata tokenIdsForEachContract
    ) public {
        require(
            tokenContractAddresses.length > 0,
            "Cannot stake 0 tokenContractAddresses"
        );
        require(
            tokenIdsForEachContract.length > 0,
            "Cannot stake 0 tokenIdsForEachContract"
        );
        require(
            tokenIdsForEachContract.length == tokenContractAddresses.length,
            "tokenContractAddresses array count different than tokenIdsForEachContract count"
        );
        for (uint256 i = 0; i < tokenContractAddresses.length; i++) {
            address tokenAddress = tokenContractAddresses[i];
            require(
                isStakingEnabledForTokenContractAddress[tokenAddress],
                "Staking not enabled for token"
            );
            uint256[] memory tokenIds = tokenIdsForEachContract[i];
            require(
                tokenIds.length > 0,
                "TokenID array cannot be empty for token"
            );
            for (uint256 j = 0; j < tokenIds.length; j++) {
                uint256 tokenId = tokenIds[j];
                require(
                    ERC721(tokenAddress).ownerOf(tokenId) == msg.sender,
                    "Not owner of tokenId"
                );
                ERC721(tokenAddress).safeTransferFrom(
                    msg.sender,
                    address(this),
                    tokenId
                );
                _addTokenToStakedEnumeration(msg.sender, tokenId, tokenAddress);
            }
        }
    }

    /**
     * @dev Unstake tokens for user from different token contracts
     * Unstaking for that token address must be enabled by calling setUnstakingEnabledForTokenContractAddress
     * TokenIds must be previously staked by the same user for the same token address

     * FrameNFTs can be minted while unstaking if enabled
     * must have toggleMintFrameEnabledWhenUnstakingToken enabled for specific token address
     * must have contract address set for frameNFTContract
     * frameNFTContract must allow this contract address to mint frameNFT in its implementation
     * @param tokenContractAddresses token contract addresses of tokens for unstaking
     * @param tokenIdsForEachContract tokenIds for each contract for unstaking 
     */
    function unstakeTokens(
        address[] calldata tokenContractAddresses,
        uint256[][] calldata tokenIdsForEachContract
    ) public {
        require(
            tokenContractAddresses.length > 0,
            "Cannot unstake 0 tokenContractAddresses"
        );
        require(
            tokenIdsForEachContract.length > 0,
            "Cannot unstake 0 tokenIdsForEachContract"
        );
        require(
            tokenIdsForEachContract.length == tokenContractAddresses.length,
            "tokenContractAddresses array count different than tokenIdsForEachContract count"
        );
        for (uint256 i = 0; i < tokenContractAddresses.length; i++) {
            address tokenAddress = tokenContractAddresses[i];
            require(
                _stakedCount[msg.sender][tokenAddress] > 0,
                "Have nothing staked"
            );
            require(
                isUnstakingEnabledForTokenContractAddress[tokenAddress],
                "Unstaking not enabled for token"
            );
            uint256[] memory tokenIds = tokenIdsForEachContract[i];
            require(
                tokenIds.length > 0,
                "TokenID array cannot be empty for token"
            );
            for (uint256 j = 0; j < tokenIds.length; j++) {
                // for each tokenID in token type
                uint256 tokenId = tokenIds[j];
                require(
                    _userAddressToStakedTokenIdMap[msg.sender][tokenAddress][
                        tokenId
                    ],
                    "Not staked by user"
                );

                ERC721(tokenAddress).safeTransferFrom(
                    address(this),
                    msg.sender,
                    tokenId
                );
                _removeTokenFromStakedEnumeration(
                    msg.sender,
                    tokenId,
                    tokenAddress
                );
                if (shouldMintFrameWhenUnstakingForToken[tokenAddress]) {
                    uint256 nextTokenId = frameNFTContract.nextTokenId();
                    frameNFTContract.mint(msg.sender);
                    emit FrameNFTMinted(
                        nextTokenId,
                        tokenAddress,
                        tokenId,
                        msg.sender,
                        address(frameNFTContract)
                    );
                }
            }
        }
    }

    /**
     * @dev The number of staked NFTs that have been staked by the given address with token address
     * @param staker address representing the staker
     * @param tokenAddress address representing the token address staked
     */
    function numStakedTokens(address staker, address tokenAddress)
        public
        view
        returns (uint256)
    {
        return _stakedCount[staker][tokenAddress];
    }

    /**
     * @dev Used to access each token that has been staked by the given address.
     * For example, we can get the `numStakedTokens` for the given address, and then
     * iterate through each index (e.g. 0, 1, 2) to get the IDs of each staked token.
     * @param staker address representing the staker
     * @param index index of the token (e.g. first staked token will have index of 0)
     * @param tokenAddress address representing the token address staked
     */
    function tokenOfStakerByIndex(
        address staker,
        uint256 index,
        address tokenAddress
    ) public view returns (uint256) {
        return _stakedTokens[staker][tokenAddress][index];
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param staker address representing the staker of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     * @param tokenAddress address representing the token address staked
     */
    function _addTokenToStakedEnumeration(
        address staker,
        uint256 tokenId,
        address tokenAddress
    ) private {
        uint256 length = _stakedCount[staker][tokenAddress];

        _stakedTokens[staker][tokenAddress][length] = tokenId;
        _stakedTokensIndex[tokenAddress][tokenId] = length;
        _userAddressToStakedTokenIdMap[staker][tokenAddress][tokenId] = true;
        _stakedCount[staker][tokenAddress] += 1;
    }

    /**
     * @dev Private function to remove a token from this contract's staked-tracking data structures.
     * This has O(1) time complexity, but alters the order of the _stakedTokens array.
     * @param staker address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     * @param tokenAddress address representing the token address for token removed
     */
    function _removeTokenFromStakedEnumeration(
        address staker,
        uint256 tokenId,
        address tokenAddress
    ) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).
        uint256 lastTokenIndex = _stakedCount[staker][tokenAddress] - 1;
        uint256 tokenIndex = _stakedTokensIndex[tokenAddress][tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _stakedTokens[staker][tokenAddress][
                lastTokenIndex
            ];

            _stakedTokens[staker][tokenAddress][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _stakedTokensIndex[tokenAddress][lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _stakedTokensIndex[tokenAddress][tokenId];
        delete _stakedTokens[staker][tokenAddress][lastTokenIndex];

        _userAddressToStakedTokenIdMap[staker][tokenAddress][tokenId] = false;
        _stakedCount[staker][tokenAddress] -= 1;
    }
}

File 2 of 13 : IFrameNFT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// This is an interface for FrameNFTs that will need to be implemented and referenced in the staking contract

interface IFrameNFT {
    function mint(address to) external;

    function nextTokenId() external view returns (uint256);
}

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

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

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

File 4 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: 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 overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not 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 {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 5 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev 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 {
        _transferOwnership(address(0));
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 7 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 8 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

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 9 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

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 11 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

File 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"frameNFTId","type":"uint256"},{"indexed":false,"internalType":"address","name":"voterContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"voterTokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"voterWalletAddress","type":"address"},{"indexed":false,"internalType":"address","name":"frameNFTAddress","type":"address"}],"name":"FrameNFTMinted","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"},{"inputs":[],"name":"frameNFTContract","outputs":[{"internalType":"contract IFrameNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isStakingEnabledForTokenContractAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isUnstakingEnabledForTokenContractAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"numStakedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"add","type":"address"}],"name":"setFrameNFTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"setStakingEnabledForTokenContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"setUnstakingEnabledForTokenContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"shouldMintFrameWhenUnstakingForToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenContractAddresses","type":"address[]"},{"internalType":"uint256[][]","name":"tokenIdsForEachContract","type":"uint256[][]"}],"name":"stakeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enable","type":"bool"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"toggleMintFrameEnabledWhenUnstakingToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"tokenOfStakerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenContractAddresses","type":"address[]"},{"internalType":"uint256[][]","name":"tokenIdsForEachContract","type":"uint256[][]"}],"name":"unstakeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5062000032620000266200003860201b60201c565b6200004060201b60201c565b62000104565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612c3c80620001146000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063a8566b0611610097578063ce1ee03011610066578063ce1ee030146102ab578063ddd6e968146102c7578063e7fac8fb146102f7578063f2fde38b1461031357610100565b8063a8566b0614610225578063c152401b14610241578063c409b7411461025d578063ca4626f01461027b57610100565b806370eccd88116100d357806370eccd881461019d578063715018a6146101cd5780637cbfae4e146101d75780638da5cb5b1461020757610100565b806311115c1314610105578063150b7a021461012157806332fd269b14610151578063605f134514610181575b600080fd5b61011f600480360381019061011a9190611e09565b61032f565b005b61013b60048036038101906101369190611ea3565b6103ef565b60405161014891906122e6565b60405180910390f35b61016b60048036038101906101669190611e63565b610403565b60405161017891906124bc565b60405180910390f35b61019b60048036038101906101969190611f79565b61048a565b005b6101b760048036038101906101b29190611e09565b61089d565b6040516101c491906122cb565b60405180910390f35b6101d56108bd565b005b6101f160048036038101906101ec9190611e09565b610945565b6040516101fe91906122cb565b60405180910390f35b61020f610965565b60405161021c9190612279565b60405180910390f35b61023f600480360381019061023a9190611ffa565b61098e565b005b61025b60048036038101906102569190611ffa565b610a65565b005b610265610b3c565b6040516102729190612301565b60405180910390f35b61029560048036038101906102909190611f26565b610b62565b6040516102a291906124bc565b60405180910390f35b6102c560048036038101906102c09190611ffa565b610bfb565b005b6102e160048036038101906102dc9190611e09565b610cd2565b6040516102ee91906122cb565b60405180910390f35b610311600480360381019061030c9190611f79565b610cf2565b005b61032d60048036038101906103289190611e09565b61138e565b005b610337611486565b73ffffffffffffffffffffffffffffffffffffffff16610355610965565b73ffffffffffffffffffffffffffffffffffffffff16146103ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a29061241c565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600063150b7a0260e01b9050949350505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600084849050116104d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104c7906123bc565b60405180910390fd5b60008282905011610516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050d9061239c565b60405180910390fd5b83839050828290501461055e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105559061243c565b60405180910390fd5b60005b84849050811015610896576000858583818110610581576105806127e0565b5b90506020020160208101906105969190611e09565b9050600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061b9061247c565b60405180910390fd5b6000848484818110610639576106386127e0565b5b905060200281019061064b919061252a565b80806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050905060008151116106d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c89061233c565b60405180910390fd5b60005b81518110156108805760008282815181106106f2576106f16127e0565b5b602002602001015190503373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161074c91906124bc565b60206040518083038186803b15801561076457600080fd5b505afa158015610778573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079c9190611e36565b73ffffffffffffffffffffffffffffffffffffffff16146107f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e99061245c565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166342842e0e3330846040518463ffffffff1660e01b815260040161082f93929190612294565b600060405180830381600087803b15801561084957600080fd5b505af115801561085d573d6000803e3d6000fd5b5050505061086c33828661148e565b50808061087890612768565b9150506106d4565b505050808061088e90612768565b915050610561565b5050505050565b60076020528060005260406000206000915054906101000a900460ff1681565b6108c5611486565b73ffffffffffffffffffffffffffffffffffffffff166108e3610965565b73ffffffffffffffffffffffffffffffffffffffff1614610939576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109309061241c565b60405180910390fd5b6109436000611736565b565b60016020528060005260406000206000915054906101000a900460ff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610996611486565b73ffffffffffffffffffffffffffffffffffffffff166109b4610965565b73ffffffffffffffffffffffffffffffffffffffff1614610a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a019061241c565b60405180910390fd5b81600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b610a6d611486565b73ffffffffffffffffffffffffffffffffffffffff16610a8b610965565b73ffffffffffffffffffffffffffffffffffffffff1614610ae1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad89061241c565b60405180910390fd5b81600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000205490509392505050565b610c03611486565b73ffffffffffffffffffffffffffffffffffffffff16610c21610965565b73ffffffffffffffffffffffffffffffffffffffff1614610c77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6e9061241c565b60405180910390fd5b81600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60026020528060005260406000206000915054906101000a900460ff1681565b60008484905011610d38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2f9061237c565b60405180910390fd5b60008282905011610d7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d75906123fc565b60405180910390fd5b838390508282905014610dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbd9061243c565b60405180910390fd5b60005b84849050811015611387576000858583818110610de957610de86127e0565b5b9050602002016020810190610dfe9190611e09565b90506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb6906123dc565b60405180910390fd5b600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610f4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f429061231c565b60405180910390fd5b6000848484818110610f6057610f5f6127e0565b5b9050602002810190610f72919061252a565b80806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505090506000815111610ff8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fef9061233c565b60405180910390fd5b60005b8151811015611371576000828281518110611019576110186127e0565b5b60200260200101519050600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082815260200190815260200160002060009054906101000a900460ff166110fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f49061249c565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166342842e0e3033846040518463ffffffff1660e01b815260040161113a93929190612294565b600060405180830381600087803b15801561115457600080fd5b505af1158015611168573d6000803e3d6000fd5b505050506111773382866117fa565b600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561135d576000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166375794a3c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561123357600080fd5b505afa158015611247573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126b919061203a565b9050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636a627842336040518263ffffffff1660e01b81526004016112c89190612279565b600060405180830381600087803b1580156112e257600080fd5b505af11580156112f6573d6000803e3d6000fd5b505050507f09d8d0d4d2b9a299c92392701ab35a0538405dfa47219d01e1b1175867c7703181868433600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516113539594939291906124d7565b60405180910390a1505b50808061136990612768565b915050610ffb565b505050808061137f90612768565b915050610dc9565b5050505050565b611396611486565b73ffffffffffffffffffffffffffffffffffffffff166113b4610965565b73ffffffffffffffffffffffffffffffffffffffff161461140a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114019061241c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561147a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114719061235c565b60405180910390fd5b61148381611736565b50565b600033905090565b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000208190555080600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020819055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600085815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461172991906125f4565b9250508190555050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006001600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611885919061264a565b90506000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020549050818114611a5e576000600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000208190555081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550505b600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600085815260200190815260200160002060009055600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020600090556000600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c76919061264a565b925050819055505050505050565b6000611c97611c92846125b2565b61258d565b905082815260208101848484011115611cb357611cb261285c565b5b611cbe848285612728565b509392505050565b600081359050611cd581612bc1565b92915050565b600081519050611cea81612bc1565b92915050565b60008083601f840112611d0657611d05612843565b5b8235905067ffffffffffffffff811115611d2357611d2261283e565b5b602083019150836020820283011115611d3f57611d3e612852565b5b9250929050565b60008083601f840112611d5c57611d5b612843565b5b8235905067ffffffffffffffff811115611d7957611d7861283e565b5b602083019150836020820283011115611d9557611d94612852565b5b9250929050565b600081359050611dab81612bd8565b92915050565b600082601f830112611dc657611dc5612843565b5b8135611dd6848260208601611c84565b91505092915050565b600081359050611dee81612bef565b92915050565b600081519050611e0381612bef565b92915050565b600060208284031215611e1f57611e1e612866565b5b6000611e2d84828501611cc6565b91505092915050565b600060208284031215611e4c57611e4b612866565b5b6000611e5a84828501611cdb565b91505092915050565b60008060408385031215611e7a57611e79612866565b5b6000611e8885828601611cc6565b9250506020611e9985828601611cc6565b9150509250929050565b60008060008060808587031215611ebd57611ebc612866565b5b6000611ecb87828801611cc6565b9450506020611edc87828801611cc6565b9350506040611eed87828801611ddf565b925050606085013567ffffffffffffffff811115611f0e57611f0d612861565b5b611f1a87828801611db1565b91505092959194509250565b600080600060608486031215611f3f57611f3e612866565b5b6000611f4d86828701611cc6565b9350506020611f5e86828701611ddf565b9250506040611f6f86828701611cc6565b9150509250925092565b60008060008060408587031215611f9357611f92612866565b5b600085013567ffffffffffffffff811115611fb157611fb0612861565b5b611fbd87828801611cf0565b9450945050602085013567ffffffffffffffff811115611fe057611fdf612861565b5b611fec87828801611d46565b925092505092959194509250565b6000806040838503121561201157612010612866565b5b600061201f85828601611d9c565b925050602061203085828601611cc6565b9150509250929050565b6000602082840312156120505761204f612866565b5b600061205e84828501611df4565b91505092915050565b6120708161267e565b82525050565b61207f81612690565b82525050565b61208e8161269c565b82525050565b61209d816126f2565b82525050565b60006120b0601f836125e3565b91506120bb8261287c565b602082019050919050565b60006120d36027836125e3565b91506120de826128a5565b604082019050919050565b60006120f66026836125e3565b9150612101826128f4565b604082019050919050565b60006121196027836125e3565b915061212482612943565b604082019050919050565b600061213c6026836125e3565b915061214782612992565b604082019050919050565b600061215f6025836125e3565b915061216a826129e1565b604082019050919050565b60006121826013836125e3565b915061218d82612a30565b602082019050919050565b60006121a56028836125e3565b91506121b082612a59565b604082019050919050565b60006121c86020836125e3565b91506121d382612aa8565b602082019050919050565b60006121eb604f836125e3565b91506121f682612ad1565b606082019050919050565b600061220e6014836125e3565b915061221982612b46565b602082019050919050565b6000612231601d836125e3565b915061223c82612b6f565b602082019050919050565b60006122546012836125e3565b915061225f82612b98565b602082019050919050565b612273816126e8565b82525050565b600060208201905061228e6000830184612067565b92915050565b60006060820190506122a96000830186612067565b6122b66020830185612067565b6122c3604083018461226a565b949350505050565b60006020820190506122e06000830184612076565b92915050565b60006020820190506122fb6000830184612085565b92915050565b60006020820190506123166000830184612094565b92915050565b60006020820190508181036000830152612335816120a3565b9050919050565b60006020820190508181036000830152612355816120c6565b9050919050565b60006020820190508181036000830152612375816120e9565b9050919050565b600060208201905081810360008301526123958161210c565b9050919050565b600060208201905081810360008301526123b58161212f565b9050919050565b600060208201905081810360008301526123d581612152565b9050919050565b600060208201905081810360008301526123f581612175565b9050919050565b6000602082019050818103600083015261241581612198565b9050919050565b60006020820190508181036000830152612435816121bb565b9050919050565b60006020820190508181036000830152612455816121de565b9050919050565b6000602082019050818103600083015261247581612201565b9050919050565b6000602082019050818103600083015261249581612224565b9050919050565b600060208201905081810360008301526124b581612247565b9050919050565b60006020820190506124d1600083018461226a565b92915050565b600060a0820190506124ec600083018861226a565b6124f96020830187612067565b612506604083018661226a565b6125136060830185612067565b6125206080830184612067565b9695505050505050565b600080833560016020038436030381126125475761254661284d565b5b80840192508235915067ffffffffffffffff82111561256957612568612848565b5b60208301925060208202360383131561258557612584612857565b5b509250929050565b60006125976125a8565b90506125a38282612737565b919050565b6000604051905090565b600067ffffffffffffffff8211156125cd576125cc61280f565b5b6125d68261286b565b9050602081019050919050565b600082825260208201905092915050565b60006125ff826126e8565b915061260a836126e8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561263f5761263e6127b1565b5b828201905092915050565b6000612655826126e8565b9150612660836126e8565b925082821015612673576126726127b1565b5b828203905092915050565b6000612689826126c8565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006126fd82612704565b9050919050565b600061270f82612716565b9050919050565b6000612721826126c8565b9050919050565b82818337600083830152505050565b6127408261286b565b810181811067ffffffffffffffff8211171561275f5761275e61280f565b5b80604052505050565b6000612773826126e8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156127a6576127a56127b1565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f556e7374616b696e67206e6f7420656e61626c656420666f7220746f6b656e00600082015250565b7f546f6b656e49442061727261792063616e6e6f7420626520656d70747920666f60008201527f7220746f6b656e00000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f43616e6e6f7420756e7374616b65203020746f6b656e436f6e7472616374416460008201527f6472657373657300000000000000000000000000000000000000000000000000602082015250565b7f43616e6e6f74207374616b65203020746f6b656e496473466f7245616368436f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b7f43616e6e6f74207374616b65203020746f6b656e436f6e74726163744164647260008201527f6573736573000000000000000000000000000000000000000000000000000000602082015250565b7f48617665206e6f7468696e67207374616b656400000000000000000000000000600082015250565b7f43616e6e6f7420756e7374616b65203020746f6b656e496473466f724561636860008201527f436f6e7472616374000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f746f6b656e436f6e747261637441646472657373657320617272617920636f7560008201527f6e7420646966666572656e74207468616e20746f6b656e496473466f7245616360208201527f68436f6e747261637420636f756e740000000000000000000000000000000000604082015250565b7f4e6f74206f776e6572206f6620746f6b656e4964000000000000000000000000600082015250565b7f5374616b696e67206e6f7420656e61626c656420666f7220746f6b656e000000600082015250565b7f4e6f74207374616b656420627920757365720000000000000000000000000000600082015250565b612bca8161267e565b8114612bd557600080fd5b50565b612be181612690565b8114612bec57600080fd5b50565b612bf8816126e8565b8114612c0357600080fd5b5056fea2646970667358221220f3db66839696e6eb59963d71a35cbe75e299013933866f5fb433722260cc013164736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c8063a8566b0611610097578063ce1ee03011610066578063ce1ee030146102ab578063ddd6e968146102c7578063e7fac8fb146102f7578063f2fde38b1461031357610100565b8063a8566b0614610225578063c152401b14610241578063c409b7411461025d578063ca4626f01461027b57610100565b806370eccd88116100d357806370eccd881461019d578063715018a6146101cd5780637cbfae4e146101d75780638da5cb5b1461020757610100565b806311115c1314610105578063150b7a021461012157806332fd269b14610151578063605f134514610181575b600080fd5b61011f600480360381019061011a9190611e09565b61032f565b005b61013b60048036038101906101369190611ea3565b6103ef565b60405161014891906122e6565b60405180910390f35b61016b60048036038101906101669190611e63565b610403565b60405161017891906124bc565b60405180910390f35b61019b60048036038101906101969190611f79565b61048a565b005b6101b760048036038101906101b29190611e09565b61089d565b6040516101c491906122cb565b60405180910390f35b6101d56108bd565b005b6101f160048036038101906101ec9190611e09565b610945565b6040516101fe91906122cb565b60405180910390f35b61020f610965565b60405161021c9190612279565b60405180910390f35b61023f600480360381019061023a9190611ffa565b61098e565b005b61025b60048036038101906102569190611ffa565b610a65565b005b610265610b3c565b6040516102729190612301565b60405180910390f35b61029560048036038101906102909190611f26565b610b62565b6040516102a291906124bc565b60405180910390f35b6102c560048036038101906102c09190611ffa565b610bfb565b005b6102e160048036038101906102dc9190611e09565b610cd2565b6040516102ee91906122cb565b60405180910390f35b610311600480360381019061030c9190611f79565b610cf2565b005b61032d60048036038101906103289190611e09565b61138e565b005b610337611486565b73ffffffffffffffffffffffffffffffffffffffff16610355610965565b73ffffffffffffffffffffffffffffffffffffffff16146103ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a29061241c565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600063150b7a0260e01b9050949350505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600084849050116104d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104c7906123bc565b60405180910390fd5b60008282905011610516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050d9061239c565b60405180910390fd5b83839050828290501461055e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105559061243c565b60405180910390fd5b60005b84849050811015610896576000858583818110610581576105806127e0565b5b90506020020160208101906105969190611e09565b9050600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061b9061247c565b60405180910390fd5b6000848484818110610639576106386127e0565b5b905060200281019061064b919061252a565b80806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050905060008151116106d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c89061233c565b60405180910390fd5b60005b81518110156108805760008282815181106106f2576106f16127e0565b5b602002602001015190503373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161074c91906124bc565b60206040518083038186803b15801561076457600080fd5b505afa158015610778573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079c9190611e36565b73ffffffffffffffffffffffffffffffffffffffff16146107f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e99061245c565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166342842e0e3330846040518463ffffffff1660e01b815260040161082f93929190612294565b600060405180830381600087803b15801561084957600080fd5b505af115801561085d573d6000803e3d6000fd5b5050505061086c33828661148e565b50808061087890612768565b9150506106d4565b505050808061088e90612768565b915050610561565b5050505050565b60076020528060005260406000206000915054906101000a900460ff1681565b6108c5611486565b73ffffffffffffffffffffffffffffffffffffffff166108e3610965565b73ffffffffffffffffffffffffffffffffffffffff1614610939576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109309061241c565b60405180910390fd5b6109436000611736565b565b60016020528060005260406000206000915054906101000a900460ff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610996611486565b73ffffffffffffffffffffffffffffffffffffffff166109b4610965565b73ffffffffffffffffffffffffffffffffffffffff1614610a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a019061241c565b60405180910390fd5b81600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b610a6d611486565b73ffffffffffffffffffffffffffffffffffffffff16610a8b610965565b73ffffffffffffffffffffffffffffffffffffffff1614610ae1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad89061241c565b60405180910390fd5b81600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000205490509392505050565b610c03611486565b73ffffffffffffffffffffffffffffffffffffffff16610c21610965565b73ffffffffffffffffffffffffffffffffffffffff1614610c77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6e9061241c565b60405180910390fd5b81600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60026020528060005260406000206000915054906101000a900460ff1681565b60008484905011610d38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2f9061237c565b60405180910390fd5b60008282905011610d7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d75906123fc565b60405180910390fd5b838390508282905014610dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbd9061243c565b60405180910390fd5b60005b84849050811015611387576000858583818110610de957610de86127e0565b5b9050602002016020810190610dfe9190611e09565b90506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb6906123dc565b60405180910390fd5b600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610f4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f429061231c565b60405180910390fd5b6000848484818110610f6057610f5f6127e0565b5b9050602002810190610f72919061252a565b80806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505090506000815111610ff8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fef9061233c565b60405180910390fd5b60005b8151811015611371576000828281518110611019576110186127e0565b5b60200260200101519050600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082815260200190815260200160002060009054906101000a900460ff166110fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f49061249c565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166342842e0e3033846040518463ffffffff1660e01b815260040161113a93929190612294565b600060405180830381600087803b15801561115457600080fd5b505af1158015611168573d6000803e3d6000fd5b505050506111773382866117fa565b600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561135d576000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166375794a3c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561123357600080fd5b505afa158015611247573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126b919061203a565b9050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636a627842336040518263ffffffff1660e01b81526004016112c89190612279565b600060405180830381600087803b1580156112e257600080fd5b505af11580156112f6573d6000803e3d6000fd5b505050507f09d8d0d4d2b9a299c92392701ab35a0538405dfa47219d01e1b1175867c7703181868433600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516113539594939291906124d7565b60405180910390a1505b50808061136990612768565b915050610ffb565b505050808061137f90612768565b915050610dc9565b5050505050565b611396611486565b73ffffffffffffffffffffffffffffffffffffffff166113b4610965565b73ffffffffffffffffffffffffffffffffffffffff161461140a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114019061241c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561147a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114719061235c565b60405180910390fd5b61148381611736565b50565b600033905090565b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000208190555080600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020819055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600085815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461172991906125f4565b9250508190555050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006001600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611885919061264a565b90506000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020549050818114611a5e576000600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000208190555081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550505b600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600085815260200190815260200160002060009055600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020600090556000600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c76919061264a565b925050819055505050505050565b6000611c97611c92846125b2565b61258d565b905082815260208101848484011115611cb357611cb261285c565b5b611cbe848285612728565b509392505050565b600081359050611cd581612bc1565b92915050565b600081519050611cea81612bc1565b92915050565b60008083601f840112611d0657611d05612843565b5b8235905067ffffffffffffffff811115611d2357611d2261283e565b5b602083019150836020820283011115611d3f57611d3e612852565b5b9250929050565b60008083601f840112611d5c57611d5b612843565b5b8235905067ffffffffffffffff811115611d7957611d7861283e565b5b602083019150836020820283011115611d9557611d94612852565b5b9250929050565b600081359050611dab81612bd8565b92915050565b600082601f830112611dc657611dc5612843565b5b8135611dd6848260208601611c84565b91505092915050565b600081359050611dee81612bef565b92915050565b600081519050611e0381612bef565b92915050565b600060208284031215611e1f57611e1e612866565b5b6000611e2d84828501611cc6565b91505092915050565b600060208284031215611e4c57611e4b612866565b5b6000611e5a84828501611cdb565b91505092915050565b60008060408385031215611e7a57611e79612866565b5b6000611e8885828601611cc6565b9250506020611e9985828601611cc6565b9150509250929050565b60008060008060808587031215611ebd57611ebc612866565b5b6000611ecb87828801611cc6565b9450506020611edc87828801611cc6565b9350506040611eed87828801611ddf565b925050606085013567ffffffffffffffff811115611f0e57611f0d612861565b5b611f1a87828801611db1565b91505092959194509250565b600080600060608486031215611f3f57611f3e612866565b5b6000611f4d86828701611cc6565b9350506020611f5e86828701611ddf565b9250506040611f6f86828701611cc6565b9150509250925092565b60008060008060408587031215611f9357611f92612866565b5b600085013567ffffffffffffffff811115611fb157611fb0612861565b5b611fbd87828801611cf0565b9450945050602085013567ffffffffffffffff811115611fe057611fdf612861565b5b611fec87828801611d46565b925092505092959194509250565b6000806040838503121561201157612010612866565b5b600061201f85828601611d9c565b925050602061203085828601611cc6565b9150509250929050565b6000602082840312156120505761204f612866565b5b600061205e84828501611df4565b91505092915050565b6120708161267e565b82525050565b61207f81612690565b82525050565b61208e8161269c565b82525050565b61209d816126f2565b82525050565b60006120b0601f836125e3565b91506120bb8261287c565b602082019050919050565b60006120d36027836125e3565b91506120de826128a5565b604082019050919050565b60006120f66026836125e3565b9150612101826128f4565b604082019050919050565b60006121196027836125e3565b915061212482612943565b604082019050919050565b600061213c6026836125e3565b915061214782612992565b604082019050919050565b600061215f6025836125e3565b915061216a826129e1565b604082019050919050565b60006121826013836125e3565b915061218d82612a30565b602082019050919050565b60006121a56028836125e3565b91506121b082612a59565b604082019050919050565b60006121c86020836125e3565b91506121d382612aa8565b602082019050919050565b60006121eb604f836125e3565b91506121f682612ad1565b606082019050919050565b600061220e6014836125e3565b915061221982612b46565b602082019050919050565b6000612231601d836125e3565b915061223c82612b6f565b602082019050919050565b60006122546012836125e3565b915061225f82612b98565b602082019050919050565b612273816126e8565b82525050565b600060208201905061228e6000830184612067565b92915050565b60006060820190506122a96000830186612067565b6122b66020830185612067565b6122c3604083018461226a565b949350505050565b60006020820190506122e06000830184612076565b92915050565b60006020820190506122fb6000830184612085565b92915050565b60006020820190506123166000830184612094565b92915050565b60006020820190508181036000830152612335816120a3565b9050919050565b60006020820190508181036000830152612355816120c6565b9050919050565b60006020820190508181036000830152612375816120e9565b9050919050565b600060208201905081810360008301526123958161210c565b9050919050565b600060208201905081810360008301526123b58161212f565b9050919050565b600060208201905081810360008301526123d581612152565b9050919050565b600060208201905081810360008301526123f581612175565b9050919050565b6000602082019050818103600083015261241581612198565b9050919050565b60006020820190508181036000830152612435816121bb565b9050919050565b60006020820190508181036000830152612455816121de565b9050919050565b6000602082019050818103600083015261247581612201565b9050919050565b6000602082019050818103600083015261249581612224565b9050919050565b600060208201905081810360008301526124b581612247565b9050919050565b60006020820190506124d1600083018461226a565b92915050565b600060a0820190506124ec600083018861226a565b6124f96020830187612067565b612506604083018661226a565b6125136060830185612067565b6125206080830184612067565b9695505050505050565b600080833560016020038436030381126125475761254661284d565b5b80840192508235915067ffffffffffffffff82111561256957612568612848565b5b60208301925060208202360383131561258557612584612857565b5b509250929050565b60006125976125a8565b90506125a38282612737565b919050565b6000604051905090565b600067ffffffffffffffff8211156125cd576125cc61280f565b5b6125d68261286b565b9050602081019050919050565b600082825260208201905092915050565b60006125ff826126e8565b915061260a836126e8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561263f5761263e6127b1565b5b828201905092915050565b6000612655826126e8565b9150612660836126e8565b925082821015612673576126726127b1565b5b828203905092915050565b6000612689826126c8565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006126fd82612704565b9050919050565b600061270f82612716565b9050919050565b6000612721826126c8565b9050919050565b82818337600083830152505050565b6127408261286b565b810181811067ffffffffffffffff8211171561275f5761275e61280f565b5b80604052505050565b6000612773826126e8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156127a6576127a56127b1565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f556e7374616b696e67206e6f7420656e61626c656420666f7220746f6b656e00600082015250565b7f546f6b656e49442061727261792063616e6e6f7420626520656d70747920666f60008201527f7220746f6b656e00000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f43616e6e6f7420756e7374616b65203020746f6b656e436f6e7472616374416460008201527f6472657373657300000000000000000000000000000000000000000000000000602082015250565b7f43616e6e6f74207374616b65203020746f6b656e496473466f7245616368436f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b7f43616e6e6f74207374616b65203020746f6b656e436f6e74726163744164647260008201527f6573736573000000000000000000000000000000000000000000000000000000602082015250565b7f48617665206e6f7468696e67207374616b656400000000000000000000000000600082015250565b7f43616e6e6f7420756e7374616b65203020746f6b656e496473466f724561636860008201527f436f6e7472616374000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f746f6b656e436f6e747261637441646472657373657320617272617920636f7560008201527f6e7420646966666572656e74207468616e20746f6b656e496473466f7245616360208201527f68436f6e747261637420636f756e740000000000000000000000000000000000604082015250565b7f4e6f74206f776e6572206f6620746f6b656e4964000000000000000000000000600082015250565b7f5374616b696e67206e6f7420656e61626c656420666f7220746f6b656e000000600082015250565b7f4e6f74207374616b656420627920757365720000000000000000000000000000600082015250565b612bca8161267e565b8114612bd557600080fd5b50565b612be181612690565b8114612bec57600080fd5b50565b612bf8816126e8565b8114612c0357600080fd5b5056fea2646970667358221220f3db66839696e6eb59963d71a35cbe75e299013933866f5fb433722260cc013164736f6c63430008070033

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  ]

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.