ETH Price: $3,254.20 (+0.00%)
Gas: 1 Gwei

Contract

0x93975b0Ac3c16Ed0478E916921F84417e29f473F
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...201545622024-06-23 13:03:2333 days ago1719147803IN
0x93975b0A...7e29f473F
0 ETH0.000082073.38924227
Set Approval For...182277162023-09-27 14:33:47303 days ago1695825227IN
0x93975b0A...7e29f473F
0 ETH0.0009204619.95467235
Set Approval For...170105962023-04-09 11:58:47474 days ago1681041527IN
0x93975b0A...7e29f473F
0 ETH0.0004761219.59381295
Set Approval For...170105782023-04-09 11:55:11474 days ago1681041311IN
0x93975b0A...7e29f473F
0 ETH0.000509520.96710647
Set Approval For...167628872023-03-05 14:47:47509 days ago1678027667IN
0x93975b0A...7e29f473F
0 ETH0.0011500224.93122051
Set Approval For...166569752023-02-18 17:23:11524 days ago1676740991IN
0x93975b0A...7e29f473F
0 ETH0.0012531327.16639135
Set Approval For...165139462023-01-29 17:24:11544 days ago1675013051IN
0x93975b0A...7e29f473F
0 ETH0.0005097320.98691375
Set Approval For...163056522022-12-31 15:31:11573 days ago1672500671IN
0x93975b0A...7e29f473F
0 ETH0.0007671916.60600596
Set Approval For...157190332022-10-10 16:56:35655 days ago1665420995IN
0x93975b0A...7e29f473F
0 ETH0.0018187939.42937454
Set Approval For...156982202022-10-07 19:13:47658 days ago1665170027IN
0x93975b0A...7e29f473F
0 ETH0.000606113.11913966
Set Approval For...156362162022-09-29 3:08:11667 days ago1664420891IN
0x93975b0A...7e29f473F
0 ETH0.0006121313.24970794
Set Approval For...153263282022-08-12 9:52:28714 days ago1660297948IN
0x93975b0A...7e29f473F
0 ETH0.0006922314.98338089
Set Approval For...152479822022-07-31 4:00:06727 days ago1659240006IN
0x93975b0A...7e29f473F
0 ETH0.000108514.46561261
Set Approval For...151324312022-07-13 5:29:50744 days ago1657690190IN
0x93975b0A...7e29f473F
0 ETH0.0004950610.73249452
Set Approval For...149491152022-06-12 8:14:11775 days ago1655021651IN
0x93975b0A...7e29f473F
0 ETH0.0011292924.4435848
Set Approval For...146748632022-04-28 20:05:59820 days ago1651176359IN
0x93975b0A...7e29f473F
0 ETH0.000968639.86026961
Set Approval For...146678302022-04-27 17:20:51821 days ago1651080051IN
0x93975b0A...7e29f473F
0 ETH0.0042223591.36916579
Set Approval For...146678302022-04-27 17:20:51821 days ago1651080051IN
0x93975b0A...7e29f473F
0 ETH0.0042223591.36916579
Set Approval For...146678302022-04-27 17:20:51821 days ago1651080051IN
0x93975b0A...7e29f473F
0 ETH0.0042223591.36916579
Set Approval For...146663552022-04-27 12:03:16821 days ago1651060996IN
0x93975b0A...7e29f473F
0 ETH0.0015912734.43427494
Set Approval For...146663542022-04-27 12:03:08821 days ago1651060988IN
0x93975b0A...7e29f473F
0 ETH0.0016512435.73189228
Set Approval For...145632362022-04-11 8:06:09837 days ago1649664369IN
0x93975b0A...7e29f473F
0 ETH0.0009274120.06865834
Set Approval For...144009622022-03-17 1:08:40863 days ago1647479320IN
0x93975b0A...7e29f473F
0 ETH0.0025272454.68814233
Set Approval For...143821712022-03-14 2:55:59866 days ago1647226559IN
0x93975b0A...7e29f473F
0 ETH0.0018873740.85219689
Set Approval For...143745402022-03-12 22:05:31867 days ago1647122731IN
0x93975b0A...7e29f473F
0 ETH0.0011884725.71790116
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
133282512021-09-30 17:00:341030 days ago1633021234
0x93975b0A...7e29f473F
0.0693 ETH
133282512021-09-30 17:00:341030 days ago1633021234
0x93975b0A...7e29f473F
0.0077 ETH
133282512021-09-30 17:00:341030 days ago1633021234
0x93975b0A...7e29f473F
0.0693 ETH
133282512021-09-30 17:00:341030 days ago1633021234
0x93975b0A...7e29f473F
0.0077 ETH
133282512021-09-30 17:00:341030 days ago1633021234
0x93975b0A...7e29f473F
0.0693 ETH
133282512021-09-30 17:00:341030 days ago1633021234
0x93975b0A...7e29f473F
0.0077 ETH
133282512021-09-30 17:00:341030 days ago1633021234
0x93975b0A...7e29f473F
0.0693 ETH
133282512021-09-30 17:00:341030 days ago1633021234
0x93975b0A...7e29f473F
0.0077 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0693 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0077 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0693 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0077 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0693 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0077 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0693 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0077 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0693 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0077 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0693 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0077 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0693 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0077 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0693 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0077 ETH
133282502021-09-30 16:59:561030 days ago1633021196
0x93975b0A...7e29f473F
0.0693 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Bingo

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : Bingo.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../FormaBase.sol";

contract Bingo is FormaBase {
    uint8 public boardWidth;
    uint8 public maxBoardWidth = 8;
    uint16 public tileProbability;

    uint64 public freshTokensMinted = 0;
    uint64 public mergeTokensMinted = 0;

    mapping(uint256 => bytes32) public tokenIdToHash;
    mapping(uint256 => bool[]) public tokenIdToData;
    mapping(uint256 => uint32) public tokenIdToCount;
    mapping(uint256 => bool) public tokenIdToBurned;

    constructor(
        string memory _tokenName,
        string memory _tokenSymbol,
        string memory _baseURI,
        uint8 _boardWidth,
        uint16 _tileProbability,
        uint256 _pricePerToken,
        uint256 _maxTokens
    ) ERC721(_tokenName, _tokenSymbol) {
        admins[msg.sender] = true;
        formaAddress = msg.sender;
        baseURI = _baseURI;
        require(_pricePerToken >= minPricePerToken, "pricePerToken too low");
        require(_boardWidth <= maxBoardWidth, "Board width too large");
        require(
            _tileProbability >= 0 && _tileProbability <= 100,
            "Probability must between 0 and 100"
        );
        boardWidth = _boardWidth;
        tileProbability = _tileProbability;
        pricePerToken = _pricePerToken;
        maxTokens = _maxTokens;
    }

    function mint() public payable virtual override returns (uint256 _tokenId) {
        require(active, "Drop must be active");
        require(msg.value >= pricePerToken, "Ether amount is under set price");
        require(freshTokensMinted < maxTokens, "Must not exceed max tokens");

        uint256 tokenId = _mintToken(msg.sender);
        salesStarted = true;
        return tokenId;
    }

    function reserve(address _toAddress)
        public
        virtual
        override
        onlyAdmins
        returns (uint256 _tokenId)
    {
        require(freshTokensMinted < maxTokens, "Must not exceed max tokens");

        uint256 tokenId = _mintToken(_toAddress);
        return tokenId;
    }

    function _mintToken(address _toAddress) internal virtual returns (uint256 _tokenId) {
        uint256 tokenId = freshTokensMinted;
        freshTokensMinted = freshTokensMinted + 1;

        bytes32 hash = keccak256(
            abi.encodePacked(tokenId, block.number, blockhash(block.number - 1), _toAddress)
        );

        _mint(_toAddress, tokenId);
        tokenIdToHash[tokenId] = hash;

        bool[] memory generatedTokenData = _generateTokenData(hash);
        tokenIdToData[tokenId] = generatedTokenData;
        tokenIdToCount[tokenId] = 1;

        emit Mint(_toAddress, tokenId);

        if (msg.value > 0) {
            _splitFunds();
        }

        return tokenId;
    }

    function _generateTokenData(bytes32 _seedHash)
        internal
        view
        returns (bool[] memory _tokenData)
    {
        uint8 _totalTiles = boardWidth * boardWidth;

        bool[] memory _board = new bool[](_totalTiles);
        for (uint8 i = 0; i < _totalTiles; i++) {
            unchecked {
                uint16 _pseudoRandomNumber = uint16(uint8(bytes1(_seedHash << (8 * i))));
                uint16 _cutoff = (256 * uint16(tileProbability)) / 100;
                if (_pseudoRandomNumber < _cutoff) {
                    _board[i] = true;
                }
            }
        }
        return _board;
    }

    function merge(uint256 _tokenId1, uint256 _tokenId2) public returns (uint256 _tokenId) {
        require(
            ERC721.ownerOf(_tokenId1) == _msgSender(),
            "ERC721: Merging of token that is not own"
        );
        require(
            ERC721.ownerOf(_tokenId2) == _msgSender(),
            "ERC721: Merging of token that is not own"
        );
        require(active, "Drop must be active");

        bool[] memory _token1Data = tokenIdToData[_tokenId1];
        bool[] memory _token2Data = tokenIdToData[_tokenId2];

        uint256 mergedTokenId = _mintMergedToken(_token1Data, _token2Data, msg.sender);
        tokenIdToCount[mergedTokenId] = tokenIdToCount[_tokenId1] + tokenIdToCount[_tokenId2];

        _burn(_tokenId1);
        tokenIdToBurned[_tokenId1] = true;
        _burn(_tokenId2);
        tokenIdToBurned[_tokenId2] = true;

        return mergedTokenId;
    }

    function _mintMergedToken(
        bool[] memory _token1Data,
        bool[] memory _token2Data,
        address _toAddress
    ) internal returns (uint256 _tokenId) {
        uint256 tokenId = maxTokens + mergeTokensMinted;
        mergeTokensMinted = mergeTokensMinted + 1;

        bytes32 hash = keccak256(
            abi.encodePacked(tokenId, block.number, blockhash(block.number - 1), _toAddress)
        );

        _mint(_toAddress, tokenId);
        tokenIdToHash[tokenId] = hash;

        bool[] memory mergedData = _mergeTokenData(_token1Data, _token2Data);
        tokenIdToData[tokenId] = mergedData;

        emit Mint(_toAddress, tokenId);

        return tokenId;
    }

    function _mergeTokenData(bool[] memory _token1Data, bool[] memory _token2Data)
        internal
        view
        returns (bool[] memory _mergedTokenData)
    {
        bool[] memory _merged = new bool[](boardWidth * boardWidth);

        for (uint32 i = 0; i < _token1Data.length; i++) {
            _merged[i] = (_token1Data[i] || _token2Data[i]);
        }

        return _merged;
    }

    function tokenData(uint256 tokenId) public view returns (bool[] memory) {
        return tokenIdToData[tokenId];
    }
}

File 2 of 14 : FormaBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract FormaBase is ERC721Enumerable, Ownable {
    event Mint(address indexed _to, uint256 indexed _tokenId);

    mapping(address => bool) public admins;

    address public formaAddress;
    uint256 public formaPercentage = 10;

    address public artistAddress;
    uint256 public artistPercentage = 90;

    address public secondPayoutAddress;
    uint256 public secondPayoutSplit = 0;

    uint256 public maxTokens;
    uint256 public pricePerToken;
    uint256 public minPricePerToken = 10000000000000000;

    // States
    bool public locked = false;
    bool public active = false;

    // Flags
    bool public artistSet = false;
    bool public salesStarted = false;

    string public baseURI;
    string public script;
    string public scriptType = "p5js";

    modifier onlyAdmins() {
        require(admins[msg.sender], "Only admins");
        _;
    }

    modifier onlyEditors() {
        require(admins[msg.sender] || msg.sender == artistAddress, "Only editors");
        _;
    }

    function addAdmin(address _address) public onlyOwner {
        admins[_address] = true;
    }

    function removeAdmin(address _address) public onlyOwner {
        require(_address != owner(), "Can't remove owner from admins");
        admins[_address] = false;
    }

    function updateArtist(address _artistAddress) public onlyAdmins {
        require(!locked, "Only unlocked");
        artistSet = true;
        artistAddress = _artistAddress;
    }

    function updateSecondPayoutAddress(address _secondPayoutAddress) public onlyEditors {
        secondPayoutAddress = _secondPayoutAddress;
    }

    function updateSecondPayoutSplit(uint256 _secondPayoutSplit) public onlyEditors {
        require(_secondPayoutSplit <= 100, "Can't have more than 100% paid out");
        secondPayoutSplit = _secondPayoutSplit;
    }

    function updateScript(string memory _script) public onlyEditors {
        require(!locked, "Only unlocked");
        script = _script;
    }

    function updateScriptType(string memory _scriptType) public onlyEditors {
        require(!locked, "Only unlocked");
        scriptType = _scriptType;
    }

    function updateMaxTokens(uint256 _maxTokens) public onlyAdmins {
        require(!locked, "Only unlocked");
        maxTokens = _maxTokens;
    }

    function updatePricePerToken(uint256 _pricePerToken) public onlyAdmins {
        require(
            !locked || (locked && msg.sender == owner()),
            "Only owner can update price when locked"
        );
        require(_pricePerToken >= minPricePerToken, "pricePerToken too low");
        pricePerToken = _pricePerToken;
    }

    function updateBaseURI(string memory _baseURI) public onlyAdmins {
        baseURI = _baseURI;
    }

    function updateFormaAddress(address _formaAddress) public onlyOwner {
        formaAddress = _formaAddress;
    }

    function toggleLocked() public onlyEditors {
        require(!active, "Can only toggle lock before project is active");
        require(!locked || (locked && !salesStarted), "Can't unlock contract after sales started");
        require(locked || (!locked && artistSet), "Can't lock contract without an artist set");
        locked = !locked;
    }

    function toggleActive() public onlyAdmins {
        require(locked, "Can only toggle active for locked project");
        active = !active;
    }

    function mint() public payable virtual returns (uint256 _tokenId);

    function reserve(address _toAddress) public virtual returns (uint256 _tokenId);

    function _splitFunds() internal {
        uint256 refund = msg.value - pricePerToken;
        if (refund > 0) {
            payable(msg.sender).transfer(refund);
        }

        uint256 formaAmount = (pricePerToken / 100) * formaPercentage;
        if (formaAmount > 0) {
            payable(formaAddress).transfer(formaAmount);
        }

        uint256 totalArtistPayout = (pricePerToken / 100) * artistPercentage;
        uint256 artistPayout = (totalArtistPayout / 100) * (100 - secondPayoutSplit);

        if (artistPayout > 0) {
            payable(artistAddress).transfer(artistPayout);
        }

        uint256 secondPayout = (totalArtistPayout / 100) * secondPayoutSplit;

        if (secondPayout > 0) {
            payable(secondPayoutAddress).transfer(secondPayout);
        }
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        return string(abi.encodePacked(baseURI, Strings.toString(tokenId)));
    }
}

File 3 of 14 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from 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
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) 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 = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

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

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the 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 = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 9 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 14 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 13 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"uint8","name":"_boardWidth","type":"uint8"},{"internalType":"uint16","name":"_tileProbability","type":"uint16"},{"internalType":"uint256","name":"_pricePerToken","type":"uint256"},{"internalType":"uint256","name":"_maxTokens","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"admins","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"artistPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"artistSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boardWidth","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"formaAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"formaPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freshTokensMinted","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBoardWidth","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId1","type":"uint256"},{"internalType":"uint256","name":"_tokenId2","type":"uint256"}],"name":"merge","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mergeTokensMinted","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minPricePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_toAddress","type":"address"}],"name":"reserve","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salesStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"script","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"scriptType","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondPayoutAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondPayoutSplit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tileProbability","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenData","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToBurned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToData","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_artistAddress","type":"address"}],"name":"updateArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_formaAddress","type":"address"}],"name":"updateFormaAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokens","type":"uint256"}],"name":"updateMaxTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pricePerToken","type":"uint256"}],"name":"updatePricePerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_script","type":"string"}],"name":"updateScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_scriptType","type":"string"}],"name":"updateScriptType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_secondPayoutAddress","type":"address"}],"name":"updateSecondPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_secondPayoutSplit","type":"uint256"}],"name":"updateSecondPayoutSplit","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600a600d55605a600f556000601155662386f26fc100006014556015805463ffffffff1916905560c0604052600460808190526370356a7360e01b60a09081526200004e9160189190620002d3565b506019805463ffff0100600160a01b0319166108001790553480156200007357600080fd5b506040516200406638038062004066833981016040819052620000969162000444565b865187908790620000af906000906020850190620002d3565b508051620000c5906001906020840190620002d3565b505050620000e2620000dc6200027d60201b60201c565b62000281565b336000818152600b60209081526040909120805460ff19166001179055600c80546001600160a01b0319169092179091558551620001279160169190880190620002d3565b50601454821015620001805760405162461bcd60e51b815260206004820152601560248201527f7072696365506572546f6b656e20746f6f206c6f77000000000000000000000060448201526064015b60405180910390fd5b60195460ff61010090910481169085161115620001e05760405162461bcd60e51b815260206004820152601560248201527f426f61726420776964746820746f6f206c617267650000000000000000000000604482015260640162000177565b60648361ffff161115620002425760405162461bcd60e51b815260206004820152602260248201527f50726f626162696c697479206d757374206265747765656e203020616e642031604482015261030360f41b606482015260840162000177565b6019805461ffff909416620100000263ffff00ff1990941660ff90951694909417929092179092556013919091556012555062000563915050565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002e19062000510565b90600052602060002090601f01602090048101928262000305576000855562000350565b82601f106200032057805160ff191683800117855562000350565b8280016001018555821562000350579182015b828111156200035057825182559160200191906001019062000333565b506200035e92915062000362565b5090565b5b808211156200035e576000815560010162000363565b600082601f8301126200038a578081fd5b81516001600160401b0380821115620003a757620003a76200054d565b604051601f8301601f19908116603f01168101908282118183101715620003d257620003d26200054d565b81604052838152602092508683858801011115620003ee578485fd5b8491505b83821015620004115785820183015181830184015290820190620003f2565b838211156200042257848385830101525b9695505050505050565b805161ffff811681146200043f57600080fd5b919050565b600080600080600080600060e0888a0312156200045f578283fd5b87516001600160401b038082111562000476578485fd5b620004848b838c0162000379565b985060208a01519150808211156200049a578485fd5b620004a88b838c0162000379565b975060408a0151915080821115620004be578485fd5b50620004cd8a828b0162000379565b955050606088015160ff81168114620004e4578384fd5b9350620004f4608089016200042c565b925060a0880151915060c0880151905092959891949750929550565b600181811c908216806200052557607f821691505b602082108114156200054757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b613af380620005736000396000f3fe6080604052600436106103ad5760003560e01c8063715018a6116101e7578063be6b79da1161010d578063dd40d666116100a0578063ebe9eb9f1161006f578063ebe9eb9f14610b37578063f2fde38b14610b4c578063f9134e6814610b6c578063fd4e851114610bb457600080fd5b8063dd40d66614610a98578063e75179a414610ab8578063e831574214610ad8578063e985e9c514610aee57600080fd5b8063cf309012116100dc578063cf30901214610a28578063d1c2babb14610a42578063d7179f4c14610a62578063d7eb3f3a14610a7857600080fd5b8063be6b79da146109bc578063c87b56dd146109d2578063ccf24f82146109f2578063cddf44e914610a0857600080fd5b8063931688cb11610185578063b3b51bc111610154578063b3b51bc11461091a578063b4b5b48f1461094e578063b75ecf131461097b578063b88d4fde1461099c57600080fd5b8063931688cb146108a557806395d89b41146108c5578063a22cb465146108da578063add7625c146108fa57600080fd5b80638d027bdd116101c15780638d027bdd146108275780638da5cb5b146108475780638ec294a0146108655780639028bf701461088557600080fd5b8063715018a6146107dc5780637b1b1de6146107f1578063855765fe1461080757600080fd5b80632f745c59116102d75780635fff80d81161026a5780636c0360eb116102395780636c0360eb146107675780636efc07601461077c578063704802751461079c57806370a08231146107bc57600080fd5b80635fff80d8146106dc578063621a1f74146106f25780636352211e1461071f5780636993f6161461073f57600080fd5b8063429b62e5116102a6578063429b62e5146106575780634f6ccce7146106875780635d69dbdd146106a75780635fa4f345146106bc57600080fd5b80632f745c59146105b8578063325fbb6d146105d857806340948b611461061757806342842e0e1461063757600080fd5b80631249c58b1161034f57806321b66e7b1161031e57806321b66e7b1461053257806323b872dd1461056357806329c68dc1146105835780632c482b201461059857600080fd5b80631249c58b146104b75780631785f53c146104cd57806318160ddd146104ed5780631f4a300b1461050257600080fd5b806306fdde031161038b57806306fdde031461041d578063081812fc1461043f578063095ea7b3146104775780630c4c8fa01461049757600080fd5b806301b11792146103b257806301ffc9a7146103c957806302fb0c5e146103fe575b600080fd5b3480156103be57600080fd5b506103c7610bce565b005b3480156103d557600080fd5b506103e96103e43660046134ea565b610da9565b60405190151581526020015b60405180910390f35b34801561040a57600080fd5b506015546103e990610100900460ff1681565b34801561042957600080fd5b50610432610dd4565b6040516103f59190613711565b34801561044b57600080fd5b5061045f61045a366004613567565b610e66565b6040516001600160a01b0390911681526020016103f5565b34801561048357600080fd5b506103c76104923660046134c1565b610efb565b3480156104a357600080fd5b50600c5461045f906001600160a01b031681565b6104bf611011565b6040519081526020016103f5565b3480156104d957600080fd5b506103c76104e8366004613381565b61113b565b3480156104f957600080fd5b506008546104bf565b34801561050e57600080fd5b506103e961051d366004613567565b601d6020526000908152604090205460ff1681565b34801561053e57600080fd5b5060195461055190610100900460ff1681565b60405160ff90911681526020016103f5565b34801561056f57600080fd5b506103c761057e3660046133d4565b6111e4565b34801561058f57600080fd5b506103c7611215565b3480156105a457600080fd5b506103c76105b3366004613381565b6112c5565b3480156105c457600080fd5b506104bf6105d33660046134c1565b61134b565b3480156105e457600080fd5b506019546105ff90600160601b90046001600160401b031681565b6040516001600160401b0390911681526020016103f5565b34801561062357600080fd5b506015546103e99062010000900460ff1681565b34801561064357600080fd5b506103c76106523660046133d4565b6113e1565b34801561066357600080fd5b506103e9610672366004613381565b600b6020526000908152604090205460ff1681565b34801561069357600080fd5b506104bf6106a2366004613567565b6113fc565b3480156106b357600080fd5b5061043261149d565b3480156106c857600080fd5b506103c76106d7366004613522565b61152b565b3480156106e857600080fd5b506104bf600d5481565b3480156106fe57600080fd5b506104bf61070d366004613567565b601a6020526000908152604090205481565b34801561072b57600080fd5b5061045f61073a366004613567565b6115a9565b34801561074b57600080fd5b506019546105ff9064010000000090046001600160401b031681565b34801561077357600080fd5b50610432611620565b34801561078857600080fd5b506103c7610797366004613567565b61162d565b3480156107a857600080fd5b506103c76107b7366004613381565b6116d2565b3480156107c857600080fd5b506104bf6107d7366004613381565b611720565b3480156107e857600080fd5b506103c76117a7565b3480156107fd57600080fd5b506104bf60135481565b34801561081357600080fd5b5060105461045f906001600160a01b031681565b34801561083357600080fd5b506103c7610842366004613381565b6117dd565b34801561085357600080fd5b50600a546001600160a01b031661045f565b34801561087157600080fd5b506103c7610880366004613567565b611829565b34801561089157600080fd5b506103c76108a0366004613522565b61192c565b3480156108b157600080fd5b506103c76108c0366004613522565b6119a6565b3480156108d157600080fd5b506104326119e8565b3480156108e657600080fd5b506103c76108f5366004613487565b6119f7565b34801561090657600080fd5b506103c7610915366004613381565b611abc565b34801561092657600080fd5b5060195461093b9062010000900461ffff1681565b60405161ffff90911681526020016103f5565b34801561095a57600080fd5b5061096e610969366004613567565b611b22565b6040516103f591906136cb565b34801561098757600080fd5b506015546103e9906301000000900460ff1681565b3480156109a857600080fd5b506103c76109b736600461340f565b611ba4565b3480156109c857600080fd5b506104bf60145481565b3480156109de57600080fd5b506104326109ed366004613567565b611bdc565b3480156109fe57600080fd5b506104bf60115481565b348015610a1457600080fd5b506103e9610a2336600461357f565b611c8d565b348015610a3457600080fd5b506015546103e99060ff1681565b348015610a4e57600080fd5b506104bf610a5d36600461357f565b611cd0565b348015610a6e57600080fd5b506104bf600f5481565b348015610a8457600080fd5b50600e5461045f906001600160a01b031681565b348015610aa457600080fd5b506103c7610ab3366004613567565b611f2f565b348015610ac457600080fd5b506104bf610ad3366004613381565b611f86565b348015610ae457600080fd5b506104bf60125481565b348015610afa57600080fd5b506103e9610b093660046133a2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b4357600080fd5b5061043261202d565b348015610b5857600080fd5b506103c7610b67366004613381565b61203a565b348015610b7857600080fd5b50610b9f610b87366004613567565b601c6020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016103f5565b348015610bc057600080fd5b506019546105519060ff1681565b336000908152600b602052604090205460ff1680610bf65750600e546001600160a01b031633145b610c1b5760405162461bcd60e51b8152600401610c1290613776565b60405180910390fd5b601554610100900460ff1615610c895760405162461bcd60e51b815260206004820152602d60248201527f43616e206f6e6c7920746f67676c65206c6f636b206265666f72652070726f6a60448201526c6563742069732061637469766560981b6064820152608401610c12565b60155460ff161580610cb2575060155460ff168015610cb257506015546301000000900460ff16155b610d105760405162461bcd60e51b815260206004820152602960248201527f43616e277420756e6c6f636b20636f6e74726163742061667465722073616c656044820152681cc81cdd185c9d195960ba1b6064820152608401610c12565b60155460ff1680610d37575060155460ff16158015610d37575060155462010000900460ff165b610d955760405162461bcd60e51b815260206004820152602960248201527f43616e2774206c6f636b20636f6e747261637420776974686f757420616e20616044820152681c9d1a5cdd081cd95d60ba1b6064820152608401610c12565b6015805460ff19811660ff90911615179055565b60006001600160e01b0319821663780e9d6360e01b1480610dce5750610dce826120d5565b92915050565b606060008054610de3906139b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0f906139b7565b8015610e5c5780601f10610e3157610100808354040283529160200191610e5c565b820191906000526020600020905b815481529060010190602001808311610e3f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610edf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c12565b506000908152600460205260409020546001600160a01b031690565b6000610f06826115a9565b9050806001600160a01b0316836001600160a01b03161415610f745760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c12565b336001600160a01b0382161480610f905750610f908133610b09565b6110025760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c12565b61100c8383612125565b505050565b601554600090610100900460ff166110615760405162461bcd60e51b815260206004820152601360248201527244726f70206d7573742062652061637469766560681b6044820152606401610c12565b6013543410156110b35760405162461bcd60e51b815260206004820152601f60248201527f457468657220616d6f756e7420697320756e64657220736574207072696365006044820152606401610c12565b60125460195464010000000090046001600160401b0316106111175760405162461bcd60e51b815260206004820152601a60248201527f4d757374206e6f7420657863656564206d617820746f6b656e730000000000006044820152606401610c12565b600061112233612193565b6015805463ff0000001916630100000017905592915050565b600a546001600160a01b031633146111655760405162461bcd60e51b8152600401610c129061379c565b600a546001600160a01b03828116911614156111c35760405162461bcd60e51b815260206004820152601e60248201527f43616e27742072656d6f7665206f776e65722066726f6d2061646d696e7300006044820152606401610c12565b6001600160a01b03166000908152600b60205260409020805460ff19169055565b6111ee33826122ef565b61120a5760405162461bcd60e51b8152600401610c12906137f6565b61100c8383836123e6565b336000908152600b602052604090205460ff166112445760405162461bcd60e51b8152600401610c12906137d1565b60155460ff166112a85760405162461bcd60e51b815260206004820152602960248201527f43616e206f6e6c7920746f67676c652061637469766520666f72206c6f636b6560448201526819081c1c9bda9958dd60ba1b6064820152608401610c12565b6015805461ff001981166101009182900460ff1615909102179055565b336000908152600b602052604090205460ff166112f45760405162461bcd60e51b8152600401610c12906137d1565b60155460ff16156113175760405162461bcd60e51b8152600401610c129061388f565b6015805462ff0000191662010000179055600e80546001600160a01b039092166001600160a01b0319909216919091179055565b600061135683611720565b82106113b85760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c12565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61100c83838360405180602001604052806000815250611ba4565b600061140760085490565b821061146a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c12565b6008828154811061148b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b601880546114aa906139b7565b80601f01602080910402602001604051908101604052809291908181526020018280546114d6906139b7565b80156115235780601f106114f857610100808354040283529160200191611523565b820191906000526020600020905b81548152906001019060200180831161150657829003601f168201915b505050505081565b336000908152600b602052604090205460ff16806115535750600e546001600160a01b031633145b61156f5760405162461bcd60e51b8152600401610c1290613776565b60155460ff16156115925760405162461bcd60e51b8152600401610c129061388f565b80516115a59060179060208401906131c0565b5050565b6000818152600260205260408120546001600160a01b031680610dce5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c12565b601680546114aa906139b7565b336000908152600b602052604090205460ff16806116555750600e546001600160a01b031633145b6116715760405162461bcd60e51b8152600401610c1290613776565b60648111156116cd5760405162461bcd60e51b815260206004820152602260248201527f43616e27742068617665206d6f7265207468616e20313030252070616964206f6044820152611d5d60f21b6064820152608401610c12565b601155565b600a546001600160a01b031633146116fc5760405162461bcd60e51b8152600401610c129061379c565b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b60006001600160a01b03821661178b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c12565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146117d15760405162461bcd60e51b8152600401610c129061379c565b6117db6000612591565b565b600a546001600160a01b031633146118075760405162461bcd60e51b8152600401610c129061379c565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600b602052604090205460ff166118585760405162461bcd60e51b8152600401610c12906137d1565b60155460ff161580611881575060155460ff1680156118815750600a546001600160a01b031633145b6118dd5760405162461bcd60e51b815260206004820152602760248201527f4f6e6c79206f776e65722063616e20757064617465207072696365207768656e604482015266081b1bd8dad95960ca1b6064820152608401610c12565b6014548110156119275760405162461bcd60e51b81526020600482015260156024820152747072696365506572546f6b656e20746f6f206c6f7760581b6044820152606401610c12565b601355565b336000908152600b602052604090205460ff16806119545750600e546001600160a01b031633145b6119705760405162461bcd60e51b8152600401610c1290613776565b60155460ff16156119935760405162461bcd60e51b8152600401610c129061388f565b80516115a59060189060208401906131c0565b336000908152600b602052604090205460ff166119d55760405162461bcd60e51b8152600401610c12906137d1565b80516115a59060169060208401906131c0565b606060018054610de3906139b7565b6001600160a01b038216331415611a505760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c12565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336000908152600b602052604090205460ff1680611ae45750600e546001600160a01b031633145b611b005760405162461bcd60e51b8152600401610c1290613776565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152601b6020908152604091829020805483518184028101840190945280845260609392830182828015611b9857602002820191906000526020600020906000905b825461010083900a900460ff161515815260206001928301818104948501949093039092029101808411611b675790505b50505050509050919050565b611bae33836122ef565b611bca5760405162461bcd60e51b8152600401610c12906137f6565b611bd6848484846125e3565b50505050565b6000818152600260205260409020546060906001600160a01b0316611c5b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c12565b6016611c6683612616565b604051602001611c779291906135e8565b6040516020818303038152906040529050919050565b601b6020528160005260406000208181548110611ca957600080fd5b9060005260206000209060209182820401919006915091509054906101000a900460ff1681565b600033611cdc846115a9565b6001600160a01b031614611d025760405162461bcd60e51b8152600401610c1290613847565b33611d0c836115a9565b6001600160a01b031614611d325760405162461bcd60e51b8152600401610c1290613847565b601554610100900460ff16611d7f5760405162461bcd60e51b815260206004820152601360248201527244726f70206d7573742062652061637469766560681b6044820152606401610c12565b6000838152601b6020908152604080832080548251818502810185019093528083529192909190830182828015611df557602002820191906000526020600020906000905b825461010083900a900460ff161515815260206001928301818104948501949093039092029101808411611dc45790505b505050505090506000601b6000858152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611e7b57602002820191906000526020600020906000905b825461010083900a900460ff161515815260206001928301818104948501949093039092029101808411611e4a5790505b505050505090506000611e8f83833361272f565b6000868152601c602052604080822054898352912054919250611ebb9163ffffffff91821691166138ce565b6000828152601c60205260409020805463ffffffff191663ffffffff92909216919091179055611eea86612889565b6000868152601d60205260409020805460ff19166001179055611f0c85612889565b6000858152601d60205260409020805460ff191660011790559250505092915050565b336000908152600b602052604090205460ff16611f5e5760405162461bcd60e51b8152600401610c12906137d1565b60155460ff1615611f815760405162461bcd60e51b8152600401610c129061388f565b601255565b336000908152600b602052604081205460ff16611fb55760405162461bcd60e51b8152600401610c12906137d1565b60125460195464010000000090046001600160401b0316106120195760405162461bcd60e51b815260206004820152601a60248201527f4d757374206e6f7420657863656564206d617820746f6b656e730000000000006044820152606401610c12565b600061202483612193565b9150505b919050565b601780546114aa906139b7565b600a546001600160a01b031633146120645760405162461bcd60e51b8152600401610c129061379c565b6001600160a01b0381166120c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c12565b6120d281612591565b50565b60006001600160e01b031982166380ac58cd60e01b148061210657506001600160e01b03198216635b5e139f60e01b145b80610dce57506301ffc9a760e01b6001600160e01b0319831614610dce565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061215a826115a9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60195460009064010000000090046001600160401b03166121b58160016138f6565b601980546001600160401b0392909216640100000000026bffffffffffffffff0000000019909216919091179055600081436121f2600182613974565b6040805160208101949094528301919091524060608083019190915285901b6bffffffffffffffffffffffff1916608082015260940160405160208183030381529060405280519060200120905061224a8483612930565b6000828152601a6020526040812082905561226482612a7e565b6000848152601b602090815260409091208251929350612288929091840190613244565b506000838152601c6020526040808220805463ffffffff191660011790555184916001600160a01b038816917f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859190a334156122e6576122e6612b81565b50909392505050565b6000818152600260205260408120546001600160a01b03166123685760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c12565b6000612373836115a9565b9050806001600160a01b0316846001600160a01b031614806123ae5750836001600160a01b03166123a384610e66565b6001600160a01b0316145b806123de57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166123f9826115a9565b6001600160a01b0316146124615760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c12565b6001600160a01b0382166124c35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c12565b6124ce838383612d1a565b6124d9600082612125565b6001600160a01b0383166000908152600360205260408120805460019290612502908490613974565b90915550506001600160a01b03821660009081526003602052604081208054600192906125309084906138b6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6125ee8484846123e6565b6125fa84848484612dd2565b611bd65760405162461bcd60e51b8152600401610c1290613724565b60608161263a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612664578061264e816139f2565b915061265d9050600a83613918565b915061263e565b6000816001600160401b0381111561268c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156126b6576020820181803683370190505b5090505b84156123de576126cb600183613974565b91506126d8600a86613a51565b6126e39060306138b6565b60f81b81838151811061270657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612728600a86613918565b94506126ba565b601954601254600091829161275491600160601b90046001600160401b0316906138b6565b60195490915061277590600160601b90046001600160401b031660016138f6565b601980546001600160401b0392909216600160601b0267ffffffffffffffff60601b19909216919091179055600081436127b0600182613974565b6040805160208101949094528301919091524060608083019190915285901b6bffffffffffffffffffffffff191660808201526094016040516020818303038152906040528051906020012090506128088483612930565b6000828152601a602052604081208290556128238787612edf565b6000848152601b602090815260409091208251929350612847929091840190613244565b5060405183906001600160a01b038716907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688590600090a3509095945050505050565b6000612894826115a9565b90506128a281600084612d1a565b6128ad600083612125565b6001600160a01b03811660009081526003602052604081208054600192906128d6908490613974565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166129865760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c12565b6000818152600260205260409020546001600160a01b0316156129eb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c12565b6129f760008383612d1a565b6001600160a01b0382166000908152600360205260408120805460019290612a209084906138b6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b601954606090600090612a949060ff168061394b565b905060008160ff166001600160401b03811115612ac157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612aea578160200160208202803683370190505b50905060005b8260ff168160ff161015612b795760195460ff600883021686901b60f81c90606461ffff62010000909204821661010002821604908116821015612b64576001848460ff1681518110612b5357634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101525b50508080612b7190613a31565b915050612af0565b509392505050565b600060135434612b919190613974565b90508015612bc857604051339082156108fc029083906000818181858888f19350505050158015612bc6573d6000803e3d6000fd5b505b6000600d546064601354612bdc9190613918565b612be6919061392c565b90508015612c2a57600c546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612c28573d6000803e3d6000fd5b505b6000600f546064601354612c3e9190613918565b612c48919061392c565b905060006011546064612c5b9190613974565b612c66606484613918565b612c70919061392c565b90508015612cb457600e546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612cb2573d6000803e3d6000fd5b505b601154600090612cc5606485613918565b612ccf919061392c565b90508015612d13576010546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612d11573d6000803e3d6000fd5b505b5050505050565b6001600160a01b038316612d7557612d7081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612d98565b816001600160a01b0316836001600160a01b031614612d9857612d988382613006565b6001600160a01b038216612daf5761100c816130a3565b826001600160a01b0316826001600160a01b03161461100c5761100c828261317c565b60006001600160a01b0384163b15612ed457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e1690339089908890889060040161368e565b602060405180830381600087803b158015612e3057600080fd5b505af1925050508015612e60575060408051601f3d908101601f19168201909252612e5d91810190613506565b60015b612eba573d808015612e8e576040519150601f19603f3d011682016040523d82523d6000602084013e612e93565b606091505b508051612eb25760405162461bcd60e51b8152600401610c1290613724565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123de565b506001949350505050565b601954606090600090612ef59060ff168061394b565b60ff166001600160401b03811115612f1d57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612f46578160200160208202803683370190505b50905060005b84518163ffffffff161015612b7957848163ffffffff1681518110612f8157634e487b7160e01b600052603260045260246000fd5b602002602001015180612fbe5750838163ffffffff1681518110612fb557634e487b7160e01b600052603260045260246000fd5b60200260200101515b828263ffffffff1681518110612fe457634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612ffe81613a0d565b915050612f4c565b6000600161301384611720565b61301d9190613974565b600083815260076020526040902054909150808214613070576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906130b590600190613974565b600083815260096020526040812054600880549394509092849081106130eb57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061311a57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061316057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061318783611720565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546131cc906139b7565b90600052602060002090601f0160209004810192826131ee5760008555613234565b82601f1061320757805160ff1916838001178555613234565b82800160010185558215613234579182015b82811115613234578251825591602001919060010190613219565b506132409291506132e0565b5090565b82805482825590600052602060002090601f016020900481019282156132345791602002820160005b838211156132aa57835183826101000a81548160ff021916908315150217905550926020019260010160208160000104928301926001030261326d565b80156132d75782816101000a81549060ff02191690556001016020816000010492830192600103026132aa565b50506132409291505b5b8082111561324057600081556001016132e1565b60006001600160401b038084111561330f5761330f613a91565b604051601f8501601f19908116603f0116810190828211818310171561333757613337613a91565b8160405280935085815286868601111561335057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461202857600080fd5b600060208284031215613392578081fd5b61339b8261336a565b9392505050565b600080604083850312156133b4578081fd5b6133bd8361336a565b91506133cb6020840161336a565b90509250929050565b6000806000606084860312156133e8578081fd5b6133f18461336a565b92506133ff6020850161336a565b9150604084013590509250925092565b60008060008060808587031215613424578081fd5b61342d8561336a565b935061343b6020860161336a565b92506040850135915060608501356001600160401b0381111561345c578182fd5b8501601f8101871361346c578182fd5b61347b878235602084016132f5565b91505092959194509250565b60008060408385031215613499578182fd5b6134a28361336a565b9150602083013580151581146134b6578182fd5b809150509250929050565b600080604083850312156134d3578182fd5b6134dc8361336a565b946020939093013593505050565b6000602082840312156134fb578081fd5b813561339b81613aa7565b600060208284031215613517578081fd5b815161339b81613aa7565b600060208284031215613533578081fd5b81356001600160401b03811115613548578182fd5b8201601f81018413613558578182fd5b6123de848235602084016132f5565b600060208284031215613578578081fd5b5035919050565b60008060408385031215613591578182fd5b50508035926020909101359150565b600081518084526135b881602086016020860161398b565b601f01601f19169290920160200192915050565b600081516135de81856020860161398b565b9290920192915050565b600080845482600182811c91508083168061360457607f831692505b602080841082141561362457634e487b7160e01b87526022600452602487fd5b818015613638576001811461364957613675565b60ff19861689528489019650613675565b60008b815260209020885b8681101561366d5781548b820152908501908301613654565b505084890196505b50505050505061368581856135cc565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136c1908301846135a0565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156137055783511515835292840192918401916001016136e7565b50909695505050505050565b60208152600061339b60208301846135a0565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600c908201526b4f6e6c7920656469746f727360a01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600b908201526a4f6e6c792061646d696e7360a81b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526028908201527f4552433732313a204d657267696e67206f6620746f6b656e2074686174206973604082015267103737ba1037bbb760c11b606082015260800190565b6020808252600d908201526c13db9b1e481d5b9b1bd8dad959609a1b604082015260600190565b600082198211156138c9576138c9613a65565b500190565b600063ffffffff8083168185168083038211156138ed576138ed613a65565b01949350505050565b60006001600160401b038083168185168083038211156138ed576138ed613a65565b60008261392757613927613a7b565b500490565b600081600019048311821515161561394657613946613a65565b500290565b600060ff821660ff84168160ff048111821515161561396c5761396c613a65565b029392505050565b60008282101561398657613986613a65565b500390565b60005b838110156139a657818101518382015260200161398e565b83811115611bd65750506000910152565b600181811c908216806139cb57607f821691505b602082108114156139ec57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613a0657613a06613a65565b5060010190565b600063ffffffff80831681811415613a2757613a27613a65565b6001019392505050565b600060ff821660ff811415613a4857613a48613a65565b60010192915050565b600082613a6057613a60613a7b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146120d257600080fdfea26469706673582212200e092950b6924fc40ac741c7fc8fc52a53208d91ed27546be95dde0c433661c064736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000001118f178fb4800000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000642696e676f210000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000542494e474f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f666f726d612d6172742e6865726f6b756170702e636f6d2f6170692f70726f6a656374732f6f70656e5365612f342f000000000000000000

Deployed Bytecode

0x6080604052600436106103ad5760003560e01c8063715018a6116101e7578063be6b79da1161010d578063dd40d666116100a0578063ebe9eb9f1161006f578063ebe9eb9f14610b37578063f2fde38b14610b4c578063f9134e6814610b6c578063fd4e851114610bb457600080fd5b8063dd40d66614610a98578063e75179a414610ab8578063e831574214610ad8578063e985e9c514610aee57600080fd5b8063cf309012116100dc578063cf30901214610a28578063d1c2babb14610a42578063d7179f4c14610a62578063d7eb3f3a14610a7857600080fd5b8063be6b79da146109bc578063c87b56dd146109d2578063ccf24f82146109f2578063cddf44e914610a0857600080fd5b8063931688cb11610185578063b3b51bc111610154578063b3b51bc11461091a578063b4b5b48f1461094e578063b75ecf131461097b578063b88d4fde1461099c57600080fd5b8063931688cb146108a557806395d89b41146108c5578063a22cb465146108da578063add7625c146108fa57600080fd5b80638d027bdd116101c15780638d027bdd146108275780638da5cb5b146108475780638ec294a0146108655780639028bf701461088557600080fd5b8063715018a6146107dc5780637b1b1de6146107f1578063855765fe1461080757600080fd5b80632f745c59116102d75780635fff80d81161026a5780636c0360eb116102395780636c0360eb146107675780636efc07601461077c578063704802751461079c57806370a08231146107bc57600080fd5b80635fff80d8146106dc578063621a1f74146106f25780636352211e1461071f5780636993f6161461073f57600080fd5b8063429b62e5116102a6578063429b62e5146106575780634f6ccce7146106875780635d69dbdd146106a75780635fa4f345146106bc57600080fd5b80632f745c59146105b8578063325fbb6d146105d857806340948b611461061757806342842e0e1461063757600080fd5b80631249c58b1161034f57806321b66e7b1161031e57806321b66e7b1461053257806323b872dd1461056357806329c68dc1146105835780632c482b201461059857600080fd5b80631249c58b146104b75780631785f53c146104cd57806318160ddd146104ed5780631f4a300b1461050257600080fd5b806306fdde031161038b57806306fdde031461041d578063081812fc1461043f578063095ea7b3146104775780630c4c8fa01461049757600080fd5b806301b11792146103b257806301ffc9a7146103c957806302fb0c5e146103fe575b600080fd5b3480156103be57600080fd5b506103c7610bce565b005b3480156103d557600080fd5b506103e96103e43660046134ea565b610da9565b60405190151581526020015b60405180910390f35b34801561040a57600080fd5b506015546103e990610100900460ff1681565b34801561042957600080fd5b50610432610dd4565b6040516103f59190613711565b34801561044b57600080fd5b5061045f61045a366004613567565b610e66565b6040516001600160a01b0390911681526020016103f5565b34801561048357600080fd5b506103c76104923660046134c1565b610efb565b3480156104a357600080fd5b50600c5461045f906001600160a01b031681565b6104bf611011565b6040519081526020016103f5565b3480156104d957600080fd5b506103c76104e8366004613381565b61113b565b3480156104f957600080fd5b506008546104bf565b34801561050e57600080fd5b506103e961051d366004613567565b601d6020526000908152604090205460ff1681565b34801561053e57600080fd5b5060195461055190610100900460ff1681565b60405160ff90911681526020016103f5565b34801561056f57600080fd5b506103c761057e3660046133d4565b6111e4565b34801561058f57600080fd5b506103c7611215565b3480156105a457600080fd5b506103c76105b3366004613381565b6112c5565b3480156105c457600080fd5b506104bf6105d33660046134c1565b61134b565b3480156105e457600080fd5b506019546105ff90600160601b90046001600160401b031681565b6040516001600160401b0390911681526020016103f5565b34801561062357600080fd5b506015546103e99062010000900460ff1681565b34801561064357600080fd5b506103c76106523660046133d4565b6113e1565b34801561066357600080fd5b506103e9610672366004613381565b600b6020526000908152604090205460ff1681565b34801561069357600080fd5b506104bf6106a2366004613567565b6113fc565b3480156106b357600080fd5b5061043261149d565b3480156106c857600080fd5b506103c76106d7366004613522565b61152b565b3480156106e857600080fd5b506104bf600d5481565b3480156106fe57600080fd5b506104bf61070d366004613567565b601a6020526000908152604090205481565b34801561072b57600080fd5b5061045f61073a366004613567565b6115a9565b34801561074b57600080fd5b506019546105ff9064010000000090046001600160401b031681565b34801561077357600080fd5b50610432611620565b34801561078857600080fd5b506103c7610797366004613567565b61162d565b3480156107a857600080fd5b506103c76107b7366004613381565b6116d2565b3480156107c857600080fd5b506104bf6107d7366004613381565b611720565b3480156107e857600080fd5b506103c76117a7565b3480156107fd57600080fd5b506104bf60135481565b34801561081357600080fd5b5060105461045f906001600160a01b031681565b34801561083357600080fd5b506103c7610842366004613381565b6117dd565b34801561085357600080fd5b50600a546001600160a01b031661045f565b34801561087157600080fd5b506103c7610880366004613567565b611829565b34801561089157600080fd5b506103c76108a0366004613522565b61192c565b3480156108b157600080fd5b506103c76108c0366004613522565b6119a6565b3480156108d157600080fd5b506104326119e8565b3480156108e657600080fd5b506103c76108f5366004613487565b6119f7565b34801561090657600080fd5b506103c7610915366004613381565b611abc565b34801561092657600080fd5b5060195461093b9062010000900461ffff1681565b60405161ffff90911681526020016103f5565b34801561095a57600080fd5b5061096e610969366004613567565b611b22565b6040516103f591906136cb565b34801561098757600080fd5b506015546103e9906301000000900460ff1681565b3480156109a857600080fd5b506103c76109b736600461340f565b611ba4565b3480156109c857600080fd5b506104bf60145481565b3480156109de57600080fd5b506104326109ed366004613567565b611bdc565b3480156109fe57600080fd5b506104bf60115481565b348015610a1457600080fd5b506103e9610a2336600461357f565b611c8d565b348015610a3457600080fd5b506015546103e99060ff1681565b348015610a4e57600080fd5b506104bf610a5d36600461357f565b611cd0565b348015610a6e57600080fd5b506104bf600f5481565b348015610a8457600080fd5b50600e5461045f906001600160a01b031681565b348015610aa457600080fd5b506103c7610ab3366004613567565b611f2f565b348015610ac457600080fd5b506104bf610ad3366004613381565b611f86565b348015610ae457600080fd5b506104bf60125481565b348015610afa57600080fd5b506103e9610b093660046133a2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b4357600080fd5b5061043261202d565b348015610b5857600080fd5b506103c7610b67366004613381565b61203a565b348015610b7857600080fd5b50610b9f610b87366004613567565b601c6020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016103f5565b348015610bc057600080fd5b506019546105519060ff1681565b336000908152600b602052604090205460ff1680610bf65750600e546001600160a01b031633145b610c1b5760405162461bcd60e51b8152600401610c1290613776565b60405180910390fd5b601554610100900460ff1615610c895760405162461bcd60e51b815260206004820152602d60248201527f43616e206f6e6c7920746f67676c65206c6f636b206265666f72652070726f6a60448201526c6563742069732061637469766560981b6064820152608401610c12565b60155460ff161580610cb2575060155460ff168015610cb257506015546301000000900460ff16155b610d105760405162461bcd60e51b815260206004820152602960248201527f43616e277420756e6c6f636b20636f6e74726163742061667465722073616c656044820152681cc81cdd185c9d195960ba1b6064820152608401610c12565b60155460ff1680610d37575060155460ff16158015610d37575060155462010000900460ff165b610d955760405162461bcd60e51b815260206004820152602960248201527f43616e2774206c6f636b20636f6e747261637420776974686f757420616e20616044820152681c9d1a5cdd081cd95d60ba1b6064820152608401610c12565b6015805460ff19811660ff90911615179055565b60006001600160e01b0319821663780e9d6360e01b1480610dce5750610dce826120d5565b92915050565b606060008054610de3906139b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0f906139b7565b8015610e5c5780601f10610e3157610100808354040283529160200191610e5c565b820191906000526020600020905b815481529060010190602001808311610e3f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610edf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c12565b506000908152600460205260409020546001600160a01b031690565b6000610f06826115a9565b9050806001600160a01b0316836001600160a01b03161415610f745760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c12565b336001600160a01b0382161480610f905750610f908133610b09565b6110025760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c12565b61100c8383612125565b505050565b601554600090610100900460ff166110615760405162461bcd60e51b815260206004820152601360248201527244726f70206d7573742062652061637469766560681b6044820152606401610c12565b6013543410156110b35760405162461bcd60e51b815260206004820152601f60248201527f457468657220616d6f756e7420697320756e64657220736574207072696365006044820152606401610c12565b60125460195464010000000090046001600160401b0316106111175760405162461bcd60e51b815260206004820152601a60248201527f4d757374206e6f7420657863656564206d617820746f6b656e730000000000006044820152606401610c12565b600061112233612193565b6015805463ff0000001916630100000017905592915050565b600a546001600160a01b031633146111655760405162461bcd60e51b8152600401610c129061379c565b600a546001600160a01b03828116911614156111c35760405162461bcd60e51b815260206004820152601e60248201527f43616e27742072656d6f7665206f776e65722066726f6d2061646d696e7300006044820152606401610c12565b6001600160a01b03166000908152600b60205260409020805460ff19169055565b6111ee33826122ef565b61120a5760405162461bcd60e51b8152600401610c12906137f6565b61100c8383836123e6565b336000908152600b602052604090205460ff166112445760405162461bcd60e51b8152600401610c12906137d1565b60155460ff166112a85760405162461bcd60e51b815260206004820152602960248201527f43616e206f6e6c7920746f67676c652061637469766520666f72206c6f636b6560448201526819081c1c9bda9958dd60ba1b6064820152608401610c12565b6015805461ff001981166101009182900460ff1615909102179055565b336000908152600b602052604090205460ff166112f45760405162461bcd60e51b8152600401610c12906137d1565b60155460ff16156113175760405162461bcd60e51b8152600401610c129061388f565b6015805462ff0000191662010000179055600e80546001600160a01b039092166001600160a01b0319909216919091179055565b600061135683611720565b82106113b85760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c12565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61100c83838360405180602001604052806000815250611ba4565b600061140760085490565b821061146a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c12565b6008828154811061148b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b601880546114aa906139b7565b80601f01602080910402602001604051908101604052809291908181526020018280546114d6906139b7565b80156115235780601f106114f857610100808354040283529160200191611523565b820191906000526020600020905b81548152906001019060200180831161150657829003601f168201915b505050505081565b336000908152600b602052604090205460ff16806115535750600e546001600160a01b031633145b61156f5760405162461bcd60e51b8152600401610c1290613776565b60155460ff16156115925760405162461bcd60e51b8152600401610c129061388f565b80516115a59060179060208401906131c0565b5050565b6000818152600260205260408120546001600160a01b031680610dce5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c12565b601680546114aa906139b7565b336000908152600b602052604090205460ff16806116555750600e546001600160a01b031633145b6116715760405162461bcd60e51b8152600401610c1290613776565b60648111156116cd5760405162461bcd60e51b815260206004820152602260248201527f43616e27742068617665206d6f7265207468616e20313030252070616964206f6044820152611d5d60f21b6064820152608401610c12565b601155565b600a546001600160a01b031633146116fc5760405162461bcd60e51b8152600401610c129061379c565b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b60006001600160a01b03821661178b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c12565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146117d15760405162461bcd60e51b8152600401610c129061379c565b6117db6000612591565b565b600a546001600160a01b031633146118075760405162461bcd60e51b8152600401610c129061379c565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600b602052604090205460ff166118585760405162461bcd60e51b8152600401610c12906137d1565b60155460ff161580611881575060155460ff1680156118815750600a546001600160a01b031633145b6118dd5760405162461bcd60e51b815260206004820152602760248201527f4f6e6c79206f776e65722063616e20757064617465207072696365207768656e604482015266081b1bd8dad95960ca1b6064820152608401610c12565b6014548110156119275760405162461bcd60e51b81526020600482015260156024820152747072696365506572546f6b656e20746f6f206c6f7760581b6044820152606401610c12565b601355565b336000908152600b602052604090205460ff16806119545750600e546001600160a01b031633145b6119705760405162461bcd60e51b8152600401610c1290613776565b60155460ff16156119935760405162461bcd60e51b8152600401610c129061388f565b80516115a59060189060208401906131c0565b336000908152600b602052604090205460ff166119d55760405162461bcd60e51b8152600401610c12906137d1565b80516115a59060169060208401906131c0565b606060018054610de3906139b7565b6001600160a01b038216331415611a505760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c12565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336000908152600b602052604090205460ff1680611ae45750600e546001600160a01b031633145b611b005760405162461bcd60e51b8152600401610c1290613776565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152601b6020908152604091829020805483518184028101840190945280845260609392830182828015611b9857602002820191906000526020600020906000905b825461010083900a900460ff161515815260206001928301818104948501949093039092029101808411611b675790505b50505050509050919050565b611bae33836122ef565b611bca5760405162461bcd60e51b8152600401610c12906137f6565b611bd6848484846125e3565b50505050565b6000818152600260205260409020546060906001600160a01b0316611c5b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c12565b6016611c6683612616565b604051602001611c779291906135e8565b6040516020818303038152906040529050919050565b601b6020528160005260406000208181548110611ca957600080fd5b9060005260206000209060209182820401919006915091509054906101000a900460ff1681565b600033611cdc846115a9565b6001600160a01b031614611d025760405162461bcd60e51b8152600401610c1290613847565b33611d0c836115a9565b6001600160a01b031614611d325760405162461bcd60e51b8152600401610c1290613847565b601554610100900460ff16611d7f5760405162461bcd60e51b815260206004820152601360248201527244726f70206d7573742062652061637469766560681b6044820152606401610c12565b6000838152601b6020908152604080832080548251818502810185019093528083529192909190830182828015611df557602002820191906000526020600020906000905b825461010083900a900460ff161515815260206001928301818104948501949093039092029101808411611dc45790505b505050505090506000601b6000858152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611e7b57602002820191906000526020600020906000905b825461010083900a900460ff161515815260206001928301818104948501949093039092029101808411611e4a5790505b505050505090506000611e8f83833361272f565b6000868152601c602052604080822054898352912054919250611ebb9163ffffffff91821691166138ce565b6000828152601c60205260409020805463ffffffff191663ffffffff92909216919091179055611eea86612889565b6000868152601d60205260409020805460ff19166001179055611f0c85612889565b6000858152601d60205260409020805460ff191660011790559250505092915050565b336000908152600b602052604090205460ff16611f5e5760405162461bcd60e51b8152600401610c12906137d1565b60155460ff1615611f815760405162461bcd60e51b8152600401610c129061388f565b601255565b336000908152600b602052604081205460ff16611fb55760405162461bcd60e51b8152600401610c12906137d1565b60125460195464010000000090046001600160401b0316106120195760405162461bcd60e51b815260206004820152601a60248201527f4d757374206e6f7420657863656564206d617820746f6b656e730000000000006044820152606401610c12565b600061202483612193565b9150505b919050565b601780546114aa906139b7565b600a546001600160a01b031633146120645760405162461bcd60e51b8152600401610c129061379c565b6001600160a01b0381166120c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c12565b6120d281612591565b50565b60006001600160e01b031982166380ac58cd60e01b148061210657506001600160e01b03198216635b5e139f60e01b145b80610dce57506301ffc9a760e01b6001600160e01b0319831614610dce565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061215a826115a9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60195460009064010000000090046001600160401b03166121b58160016138f6565b601980546001600160401b0392909216640100000000026bffffffffffffffff0000000019909216919091179055600081436121f2600182613974565b6040805160208101949094528301919091524060608083019190915285901b6bffffffffffffffffffffffff1916608082015260940160405160208183030381529060405280519060200120905061224a8483612930565b6000828152601a6020526040812082905561226482612a7e565b6000848152601b602090815260409091208251929350612288929091840190613244565b506000838152601c6020526040808220805463ffffffff191660011790555184916001600160a01b038816917f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859190a334156122e6576122e6612b81565b50909392505050565b6000818152600260205260408120546001600160a01b03166123685760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c12565b6000612373836115a9565b9050806001600160a01b0316846001600160a01b031614806123ae5750836001600160a01b03166123a384610e66565b6001600160a01b0316145b806123de57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166123f9826115a9565b6001600160a01b0316146124615760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c12565b6001600160a01b0382166124c35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c12565b6124ce838383612d1a565b6124d9600082612125565b6001600160a01b0383166000908152600360205260408120805460019290612502908490613974565b90915550506001600160a01b03821660009081526003602052604081208054600192906125309084906138b6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6125ee8484846123e6565b6125fa84848484612dd2565b611bd65760405162461bcd60e51b8152600401610c1290613724565b60608161263a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612664578061264e816139f2565b915061265d9050600a83613918565b915061263e565b6000816001600160401b0381111561268c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156126b6576020820181803683370190505b5090505b84156123de576126cb600183613974565b91506126d8600a86613a51565b6126e39060306138b6565b60f81b81838151811061270657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612728600a86613918565b94506126ba565b601954601254600091829161275491600160601b90046001600160401b0316906138b6565b60195490915061277590600160601b90046001600160401b031660016138f6565b601980546001600160401b0392909216600160601b0267ffffffffffffffff60601b19909216919091179055600081436127b0600182613974565b6040805160208101949094528301919091524060608083019190915285901b6bffffffffffffffffffffffff191660808201526094016040516020818303038152906040528051906020012090506128088483612930565b6000828152601a602052604081208290556128238787612edf565b6000848152601b602090815260409091208251929350612847929091840190613244565b5060405183906001600160a01b038716907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688590600090a3509095945050505050565b6000612894826115a9565b90506128a281600084612d1a565b6128ad600083612125565b6001600160a01b03811660009081526003602052604081208054600192906128d6908490613974565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166129865760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c12565b6000818152600260205260409020546001600160a01b0316156129eb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c12565b6129f760008383612d1a565b6001600160a01b0382166000908152600360205260408120805460019290612a209084906138b6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b601954606090600090612a949060ff168061394b565b905060008160ff166001600160401b03811115612ac157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612aea578160200160208202803683370190505b50905060005b8260ff168160ff161015612b795760195460ff600883021686901b60f81c90606461ffff62010000909204821661010002821604908116821015612b64576001848460ff1681518110612b5357634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101525b50508080612b7190613a31565b915050612af0565b509392505050565b600060135434612b919190613974565b90508015612bc857604051339082156108fc029083906000818181858888f19350505050158015612bc6573d6000803e3d6000fd5b505b6000600d546064601354612bdc9190613918565b612be6919061392c565b90508015612c2a57600c546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612c28573d6000803e3d6000fd5b505b6000600f546064601354612c3e9190613918565b612c48919061392c565b905060006011546064612c5b9190613974565b612c66606484613918565b612c70919061392c565b90508015612cb457600e546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612cb2573d6000803e3d6000fd5b505b601154600090612cc5606485613918565b612ccf919061392c565b90508015612d13576010546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612d11573d6000803e3d6000fd5b505b5050505050565b6001600160a01b038316612d7557612d7081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612d98565b816001600160a01b0316836001600160a01b031614612d9857612d988382613006565b6001600160a01b038216612daf5761100c816130a3565b826001600160a01b0316826001600160a01b03161461100c5761100c828261317c565b60006001600160a01b0384163b15612ed457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e1690339089908890889060040161368e565b602060405180830381600087803b158015612e3057600080fd5b505af1925050508015612e60575060408051601f3d908101601f19168201909252612e5d91810190613506565b60015b612eba573d808015612e8e576040519150601f19603f3d011682016040523d82523d6000602084013e612e93565b606091505b508051612eb25760405162461bcd60e51b8152600401610c1290613724565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123de565b506001949350505050565b601954606090600090612ef59060ff168061394b565b60ff166001600160401b03811115612f1d57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612f46578160200160208202803683370190505b50905060005b84518163ffffffff161015612b7957848163ffffffff1681518110612f8157634e487b7160e01b600052603260045260246000fd5b602002602001015180612fbe5750838163ffffffff1681518110612fb557634e487b7160e01b600052603260045260246000fd5b60200260200101515b828263ffffffff1681518110612fe457634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612ffe81613a0d565b915050612f4c565b6000600161301384611720565b61301d9190613974565b600083815260076020526040902054909150808214613070576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906130b590600190613974565b600083815260096020526040812054600880549394509092849081106130eb57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061311a57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061316057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061318783611720565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546131cc906139b7565b90600052602060002090601f0160209004810192826131ee5760008555613234565b82601f1061320757805160ff1916838001178555613234565b82800160010185558215613234579182015b82811115613234578251825591602001919060010190613219565b506132409291506132e0565b5090565b82805482825590600052602060002090601f016020900481019282156132345791602002820160005b838211156132aa57835183826101000a81548160ff021916908315150217905550926020019260010160208160000104928301926001030261326d565b80156132d75782816101000a81549060ff02191690556001016020816000010492830192600103026132aa565b50506132409291505b5b8082111561324057600081556001016132e1565b60006001600160401b038084111561330f5761330f613a91565b604051601f8501601f19908116603f0116810190828211818310171561333757613337613a91565b8160405280935085815286868601111561335057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461202857600080fd5b600060208284031215613392578081fd5b61339b8261336a565b9392505050565b600080604083850312156133b4578081fd5b6133bd8361336a565b91506133cb6020840161336a565b90509250929050565b6000806000606084860312156133e8578081fd5b6133f18461336a565b92506133ff6020850161336a565b9150604084013590509250925092565b60008060008060808587031215613424578081fd5b61342d8561336a565b935061343b6020860161336a565b92506040850135915060608501356001600160401b0381111561345c578182fd5b8501601f8101871361346c578182fd5b61347b878235602084016132f5565b91505092959194509250565b60008060408385031215613499578182fd5b6134a28361336a565b9150602083013580151581146134b6578182fd5b809150509250929050565b600080604083850312156134d3578182fd5b6134dc8361336a565b946020939093013593505050565b6000602082840312156134fb578081fd5b813561339b81613aa7565b600060208284031215613517578081fd5b815161339b81613aa7565b600060208284031215613533578081fd5b81356001600160401b03811115613548578182fd5b8201601f81018413613558578182fd5b6123de848235602084016132f5565b600060208284031215613578578081fd5b5035919050565b60008060408385031215613591578182fd5b50508035926020909101359150565b600081518084526135b881602086016020860161398b565b601f01601f19169290920160200192915050565b600081516135de81856020860161398b565b9290920192915050565b600080845482600182811c91508083168061360457607f831692505b602080841082141561362457634e487b7160e01b87526022600452602487fd5b818015613638576001811461364957613675565b60ff19861689528489019650613675565b60008b815260209020885b8681101561366d5781548b820152908501908301613654565b505084890196505b50505050505061368581856135cc565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136c1908301846135a0565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156137055783511515835292840192918401916001016136e7565b50909695505050505050565b60208152600061339b60208301846135a0565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600c908201526b4f6e6c7920656469746f727360a01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600b908201526a4f6e6c792061646d696e7360a81b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526028908201527f4552433732313a204d657267696e67206f6620746f6b656e2074686174206973604082015267103737ba1037bbb760c11b606082015260800190565b6020808252600d908201526c13db9b1e481d5b9b1bd8dad959609a1b604082015260600190565b600082198211156138c9576138c9613a65565b500190565b600063ffffffff8083168185168083038211156138ed576138ed613a65565b01949350505050565b60006001600160401b038083168185168083038211156138ed576138ed613a65565b60008261392757613927613a7b565b500490565b600081600019048311821515161561394657613946613a65565b500290565b600060ff821660ff84168160ff048111821515161561396c5761396c613a65565b029392505050565b60008282101561398657613986613a65565b500390565b60005b838110156139a657818101518382015260200161398e565b83811115611bd65750506000910152565b600181811c908216806139cb57607f821691505b602082108114156139ec57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613a0657613a06613a65565b5060010190565b600063ffffffff80831681811415613a2757613a27613a65565b6001019392505050565b600060ff821660ff811415613a4857613a48613a65565b60010192915050565b600082613a6057613a60613a7b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146120d257600080fdfea26469706673582212200e092950b6924fc40ac741c7fc8fc52a53208d91ed27546be95dde0c433661c064736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000001118f178fb4800000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000642696e676f210000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000542494e474f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f666f726d612d6172742e6865726f6b756170702e636f6d2f6170692f70726f6a656374732f6f70656e5365612f342f000000000000000000

-----Decoded View---------------
Arg [0] : _tokenName (string): Bingo!
Arg [1] : _tokenSymbol (string): BINGO
Arg [2] : _baseURI (string): https://forma-art.herokuapp.com/api/projects/openSea/4/
Arg [3] : _boardWidth (uint8): 7
Arg [4] : _tileProbability (uint16): 8
Arg [5] : _pricePerToken (uint256): 77000000000000000
Arg [6] : _maxTokens (uint256): 500

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 00000000000000000000000000000000000000000000000001118f178fb48000
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 42696e676f210000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 42494e474f000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000037
Arg [12] : 68747470733a2f2f666f726d612d6172742e6865726f6b756170702e636f6d2f
Arg [13] : 6170692f70726f6a656374732f6f70656e5365612f342f000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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