ETH Price: $3,653.02 (-7.37%)

Contract

0x96eA4f8d4788Fb1D48d175Cd751dAaB056AdA627
 

Overview

ETH Balance

1.44 ETH

Eth Value

$5,260.35 (@ $3,653.02/ETH)

Token Holdings

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer From198314882024-05-09 9:07:59214 days ago1715245679IN
0x96eA4f8d...056AdA627
0 ETH0.000360854.26069822
Transfer From198314302024-05-09 8:56:23214 days ago1715244983IN
0x96eA4f8d...056AdA627
0 ETH0.000435625.02495152
Set Approval For...195069182024-03-24 20:58:47260 days ago1711313927IN
0x96eA4f8d...056AdA627
0 ETH0.0004120916.43895563
Safe Transfer Fr...194087752024-03-11 2:09:11274 days ago1710122951IN
0x96eA4f8d...056AdA627
0 ETH0.0045922345.87330913
Set Approval For...172739712023-05-16 18:15:11573 days ago1684260911IN
0x96eA4f8d...056AdA627
0 ETH0.0028911261.64966056
Set Approval For...169792682023-04-05 1:11:47615 days ago1680657107IN
0x96eA4f8d...056AdA627
0 ETH0.0022982949.00830129
Set Approval For...166567152023-02-18 16:30:35660 days ago1676737835IN
0x96eA4f8d...056AdA627
0 ETH0.0013792929.35929489
Set Approval For...166566562023-02-18 16:18:35660 days ago1676737115IN
0x96eA4f8d...056AdA627
0 ETH0.0016779435.78011704
Set Approval For...166002762023-02-10 18:54:23668 days ago1676055263IN
0x96eA4f8d...056AdA627
0 ETH0.001191325.40308251
Set Approval For...165625962023-02-05 12:30:35673 days ago1675600235IN
0x96eA4f8d...056AdA627
0 ETH0.0004010916.05417548
Safe Transfer Fr...164901812023-01-26 9:45:59683 days ago1674726359IN
0x96eA4f8d...056AdA627
0 ETH0.0012745714.42925354
Set Approval For...164699602023-01-23 13:59:35686 days ago1674482375IN
0x96eA4f8d...056AdA627
0 ETH0.0007034415
Set Approval For...163767472023-01-10 13:36:35699 days ago1673357795IN
0x96eA4f8d...056AdA627
0 ETH0.0007171715.26556196
Set Approval For...162881052022-12-29 4:43:23711 days ago1672289003IN
0x96eA4f8d...056AdA627
0 ETH0.0007577516.1333883
Set Approval For...162663662022-12-26 3:53:35714 days ago1672026815IN
0x96eA4f8d...056AdA627
0 ETH0.000544811.61738288
Set Approval For...161606112022-12-11 9:36:23729 days ago1670751383IN
0x96eA4f8d...056AdA627
0 ETH0.0006622814.12231763
Approve161319732022-12-07 9:35:11733 days ago1670405711IN
0x96eA4f8d...056AdA627
0 ETH0.0004011113.89637725
Approve161319712022-12-07 9:34:47733 days ago1670405687IN
0x96eA4f8d...056AdA627
0 ETH0.0006926114.20307954
Set Approval For...159549292022-11-12 15:48:35758 days ago1668268115IN
0x96eA4f8d...056AdA627
0 ETH0.0003684314.69755574
Set Approval For...157944732022-10-21 5:44:47780 days ago1666331087IN
0x96eA4f8d...056AdA627
0 ETH0.0010917223.23816793
Claim All156629172022-10-02 20:41:11799 days ago1664743271IN
0x96eA4f8d...056AdA627
0 ETH0.000256865.89968083
Set Approval For...156585242022-10-02 5:59:35799 days ago1664690375IN
0x96eA4f8d...056AdA627
0 ETH0.000206354.4001905
Set Approval For...152727722022-08-04 0:47:07859 days ago1659574027IN
0x96eA4f8d...056AdA627
0 ETH0.000378268.06613316
Set Approval For...152327482022-07-28 18:59:01865 days ago1659034741IN
0x96eA4f8d...056AdA627
0 ETH0.0011567524.66632079
Set Approval For...151465832022-07-15 9:59:51878 days ago1657879191IN
0x96eA4f8d...056AdA627
0 ETH0.0007146615.23934364
View all transactions

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
144065412022-03-17 21:59:42998 days ago1647554382
0x96eA4f8d...056AdA627
6.869 ETH
141713242022-02-09 10:17:111034 days ago1644401831
0x96eA4f8d...056AdA627
6.55999999 ETH
141713082022-02-09 10:12:461034 days ago1644401566
0x96eA4f8d...056AdA627
1 wei
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Seed

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 2 runs

Other Settings:
default evmVersion
File 1 of 17 : seed.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface GM420 {
    function balanceOf(address owner) external view returns (uint256);
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
}


contract Seed is ERC721Enumerable, ReentrancyGuard, Ownable, AccessControl {

    using SafeMath for uint256;
    using Strings for uint256;

    bytes32 public constant WHITE_LIST_ROLE = keccak256("WHITE_LIST_ROLE");
    uint256 public constant PRICE = 0.04 ether;
    uint256 public constant TOTAL_NUMBER_OF_SEEDS_PAIRS = 5330;
    uint256 public constant TOTAL_NUMBER_OF_SEED_TOKENS = TOTAL_NUMBER_OF_SEEDS_PAIRS * 2;
    uint256 public constant SEED_WORDS_PER_TOKEN = 12;
    uint256 public constant MAX_MINT_PER_TRANSACTION = 10;

    uint256 public giveaway_reserved_pairs = 50;
    uint256 public gm420_pre_mint_reserved_pairs = 420;

    uint256 public minted_seed_pairs = 0;

    mapping(uint256 => bool) private _gm420_redeemed_tokens;

    bool public paused_mint = true;
    bool public paused_gm420_pre_mint = true;

    bool public words_can_be_added = true;
    mapping(uint256 => string) public seeds_to_plant;
    uint256 public seed_words_count = 0;

    address gm420;

    // withdraw addresses
    address lolabs_splitter;

    modifier whenMintNotPaused() {
        require(!paused_mint, "Seed: mint is paused");
        _;
    }

    modifier whenPreMintNotPaused() {
        require(!paused_gm420_pre_mint, "Seed: pre mint is paused");
        _;
    }

    modifier senderIsGm420TokenOwner(uint256 gm420TokenId) {
        bool is_gm420_token_owner = false;
        uint256 tokenCount = GM420(gm420).balanceOf(msg.sender);
        for (uint256 i; i < tokenCount; i++) {
            uint256 ownerTokenId = GM420(gm420).tokenOfOwnerByIndex(msg.sender, i);
            if (ownerTokenId == gm420TokenId) {
                is_gm420_token_owner = true;
                break;
            }
        }

        require(is_gm420_token_owner, "Seed: GM420 token is not owned by the sender.");
        _;
    }

    event MintPaused(address account);

    event MintUnpaused(address account);

    event PreMintPaused(address account);

    event PreMintUnpaused(address account);

    event GM420Redeemed(address account, uint256 gm420Token);

    function random(string memory input) public pure returns (uint256) {
        return uint256(keccak256(abi.encodePacked(input,'lola_is_the_perfectest_dog')));
    }

    function check_words_duplication(uint256[SEED_WORDS_PER_TOKEN] memory words, uint256 words_count, uint256 new_word) public pure returns (bool) {
        for (uint256 i; i < words_count; i++) {
            if (words[i] == new_word) {
                return true;
            }
        }

        return false;
    }

    function seeds_factory(uint256 tokenId) internal view returns (string[SEED_WORDS_PER_TOKEN] memory) {
        string[SEED_WORDS_PER_TOKEN] memory words_selected;
        uint256[SEED_WORDS_PER_TOKEN] memory words_selected_indexes;

        for (uint256 i; i < SEED_WORDS_PER_TOKEN; i++) {
            uint256 rand = random(string(abi.encodePacked(i.toString(), tokenId.toString())));
            uint256 rand_word_index = rand % seed_words_count;

            while (check_words_duplication(words_selected_indexes, i, rand_word_index)) {
                rand = rand + 1;
                rand_word_index = rand % seed_words_count;
            }

            words_selected_indexes[i] = rand_word_index;
            words_selected[i] = seeds_to_plant[rand_word_index];
        }

        return words_selected;
    }


    function tokenURI(uint256 tokenId) override public view returns (string memory) {
        require(_exists(tokenId), "Seeds: cannot display non existing token");

        string[SEED_WORDS_PER_TOKEN] memory words_selected = seeds_factory(tokenId);
        string memory color;
        if (tokenId % 2 == 1) {
            color = 'red' ;
        } else {
            color = 'blue';
        }
        string memory output = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>.base { fill: white; font-family: serif; font-size: 14px; }</style><rect width="100%" height="100%" fill="';
        output = string(abi.encodePacked(output, color, '" /><text x="10" y="20" class="base">'));
        string memory attributes = string(abi.encodePacked('[', '{"trait_type":"Color", "value":"', color, '"},'));
        uint256 y = 40;
        for (uint256 i; i < SEED_WORDS_PER_TOKEN; i++) {
            string memory separator = string(abi.encodePacked('</text><text x="10" y="', ((i * 20) + y).toString(), '" class="base">'));
            output = string(abi.encodePacked(output, separator, words_selected[i]));
            if(i != SEED_WORDS_PER_TOKEN-1) {
                attributes = string(abi.encodePacked(attributes, '{"value":"', words_selected[i], '"},'));
            } else {
                attributes = string(abi.encodePacked(attributes, '{"value":"', words_selected[i], '"}]'));
            }
        }
        output = string(abi.encodePacked(output, '</text></svg>'));

        string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "S33D #', tokenId.toString(),
            '", "description": "S33D is a collection of randomized seed phrases generated and stored on-chain. S33D can be used for riddles and puzzles. You can use it for anything you want. It\'s a seed phrase. It\'s fun.", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)),
            '","attributes": ', attributes,
            '}'))));
        output = string(abi.encodePacked('data:application/json;base64,', json));

        return output;

    }

    function mint(uint256 num) public payable nonReentrant whenMintNotPaused() {
        require(num <= MAX_MINT_PER_TRANSACTION, "Seed: You can mint a maximum of 10 Seeds");
        require(msg.value >= PRICE * num, "Seeds: Ether sent is less than PRICE*num");
        require(minted_seed_pairs + num <= TOTAL_NUMBER_OF_SEEDS_PAIRS - (giveaway_reserved_pairs + gm420_pre_mint_reserved_pairs), "Seed: Exceeds maximum Seeds supply");
        require(msg.sender == tx.origin, "Seeds: contracts cannot mint");

        for (uint256 i = 0; i < num; i++) {
            _lfg(msg.sender);
        }
    }

    function claim(uint256 gm420TokenId) public whenPreMintNotPaused() nonReentrant senderIsGm420TokenOwner(gm420TokenId) {
        require(gm420_pre_mint_reserved_pairs > 0, "Seed: all gm420 tokens were redeemed");
        require(_gm420_redeemed_tokens[gm420TokenId] == false, "Seed: GM420 token was already redeemed");
        _gm420_redeemed_tokens[gm420TokenId] = true;
        gm420_pre_mint_reserved_pairs -= 1;
        _lfg(msg.sender);
        emit GM420Redeemed(msg.sender, gm420TokenId);
    }

    function claimAll() public whenPreMintNotPaused() nonReentrant {
        require(gm420_pre_mint_reserved_pairs > 0, "Seed: all gm420 tokens were redeemed");

        uint256 tokenCount = GM420(gm420).balanceOf(msg.sender);
        for (uint256 i; i < tokenCount; i++) {
            uint256 gm420TokenId = GM420(gm420).tokenOfOwnerByIndex(msg.sender, i);

            if (!_gm420_redeemed_tokens[gm420TokenId] && gm420_pre_mint_reserved_pairs > 0) {
                _gm420_redeemed_tokens[gm420TokenId] = true;
                gm420_pre_mint_reserved_pairs -= 1;
                _lfg(msg.sender);
                emit GM420Redeemed(msg.sender, gm420TokenId);
            }

        }
    }

    function giveaway(address _to) external onlyRole(WHITE_LIST_ROLE) {
        require(0 < giveaway_reserved_pairs, "Seed: giveaway more than supply of reserved");
        giveaway_reserved_pairs = giveaway_reserved_pairs - 1;
        _lfg(_to);
    }

    function giveawayBatch(address _to, uint256 count) external onlyRole(WHITE_LIST_ROLE) {
        require(0 <= giveaway_reserved_pairs - count, "Seed: giveawayBatch more than supply of reserved");
        for (uint256 i; i < count; i++) {
            giveaway_reserved_pairs = giveaway_reserved_pairs - 1;
            _lfg(_to);
        }
    }

    function _lfg(address _to) internal {
        uint256 supply = totalSupply();
        minted_seed_pairs = minted_seed_pairs + 1;
        _safeMint(_to, supply);
        _safeMint(_to, supply + 1);
    }

    function pauseMint() public onlyRole(WHITE_LIST_ROLE) {
        paused_mint = true;
        emit MintPaused(msg.sender);
    }

    function unpauseMint() public onlyRole(WHITE_LIST_ROLE) {
        paused_mint = false;
        emit MintUnpaused(msg.sender);
    }

    function pausePreMint() public onlyRole(WHITE_LIST_ROLE) {
        paused_gm420_pre_mint = true;
        emit PreMintPaused(msg.sender);
    }

    function unpausePreMint() public onlyRole(WHITE_LIST_ROLE) {
        paused_gm420_pre_mint = false;
        emit PreMintUnpaused(msg.sender);
    }

    function updateLolaSplitterAddress(address _lolabs_splitter) public onlyRole(WHITE_LIST_ROLE) {
        lolabs_splitter = _lolabs_splitter;
    }

    function getLolabsSplitter() view public onlyRole(WHITE_LIST_ROLE) returns(address splitter) {
        return lolabs_splitter;
    }

    function updateGM420Address(address _gm420) public onlyRole(WHITE_LIST_ROLE) {
        gm420 = _gm420;
    }

    function getGM420Address() view public returns(address) {
        return gm420;
    }

    function accountIsGM420TokenOwner() view public returns(bool) {
        uint256 tokenCount = GM420(gm420).balanceOf(msg.sender);
        return tokenCount > 0;
    }

    function withdrawAmountToSplitter(uint256 amount) public onlyRole(WHITE_LIST_ROLE) {
        uint256 _balance = address(this).balance ;
        require(_balance > 0, "Seed: withdraw amount call without balance");
        require(_balance-amount >= 0, "Seed: withdraw amount call with more than the balance");
        require(payable(lolabs_splitter).send(amount), "Seed: FAILED withdraw amount call");
    }

    function withdrawAllToSplitter() public onlyRole(WHITE_LIST_ROLE) {
        uint256 _balance = address(this).balance ;
        require(_balance > 0, "Seed: withdraw all call without balance");
        require(payable(lolabs_splitter).send(_balance), "Seed: FAILED withdraw all call");
    }

    function walletOfOwner(address _owner) public view returns(uint256[] memory) {
        uint256 tokenCount = balanceOf(_owner);

        uint256[] memory tokensId = new uint256[](tokenCount);
        for(uint256 i; i < tokenCount; i++){
            tokensId[i] = tokenOfOwnerByIndex(_owner, i);
        }
        return tokensId;
    }

    function is_gm420_token_redeemed(uint256 gm420TokenId) public view returns(bool) {
        require(gm420TokenId >= 0 && gm420TokenId < 420, "Seed: Token ID invalid");
        return _gm420_redeemed_tokens[gm420TokenId];
    }

    function add_seeds_to_plant(string[] memory seeds_to_add) public onlyRole(WHITE_LIST_ROLE) {
        require(words_can_be_added, "Seed: cannot add seed words when locked");
        for(uint256 i; i < seeds_to_add.length; i++){
            seeds_to_plant[seed_words_count] = seeds_to_add[i];
            seed_words_count = seed_words_count + 1;
        }
    }

    function lock_seed_words() public onlyRole(WHITE_LIST_ROLE) {
        words_can_be_added = false;
    }

    constructor(address lolabs_team, address splitter, address gm420_contract) ERC721("Seed", "SEED") Ownable() {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(DEFAULT_ADMIN_ROLE, lolabs_team);

        _setupRole(WHITE_LIST_ROLE, msg.sender);
        _setupRole(WHITE_LIST_ROLE, lolabs_team);

        gm420 = gm420_contract;
        lolabs_splitter = splitter;

    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC721Enumerable, AccessControl) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

receive() external payable {}

fallback() external payable {}
}

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

/// @notice Encodes some bytes to the base64 representation
function encode(bytes memory data) internal pure returns (string memory) {
uint256 len = data.length;
if (len == 0) return "";

// multiply by 4/3 rounded up
uint256 encodedLen = 4 * ((len + 2) / 3);

// Add some extra buffer at the end
bytes memory result = new bytes(encodedLen + 32);

bytes memory table = TABLE;

assembly {
let tablePtr := add(table, 1)
let resultPtr := add(result, 32)

for {
let i := 0
} lt(i, len) {

} {
i := add(i, 3)
let input := and(mload(add(data, i)), 0xffffff)

let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
out := shl(8, out)
out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
out := shl(8, out)
out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
out := shl(8, out)
out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
out := shl(224, out)

mstore(resultPtr, out)

resultPtr := add(resultPtr, 4)
}

switch mod(len, 3)
case 1 {
mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
}
case 2 {
mstore(sub(resultPtr, 1), shl(248, 0x3d))
}

mstore(result, encodedLen)
}

return string(result);
}
}

File 2 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 3 of 17 : 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 4 of 17 : 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 5 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 6 of 17 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 7 of 17 : 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 8 of 17 : 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 9 of 17 : 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 10 of 17 : 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 11 of 17 : 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 12 of 17 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 13 of 17 : 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);
}

File 14 of 17 : 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 15 of 17 : 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 16 of 17 : 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 17 of 17 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"lolabs_team","type":"address"},{"internalType":"address","name":"splitter","type":"address"},{"internalType":"address","name":"gm420_contract","type":"address"}],"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":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"gm420Token","type":"uint256"}],"name":"GM420Redeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"MintPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"MintUnpaused","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":false,"internalType":"address","name":"account","type":"address"}],"name":"PreMintPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"PreMintUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PER_TRANSACTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SEED_WORDS_PER_TOKEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_NUMBER_OF_SEEDS_PAIRS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_NUMBER_OF_SEED_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITE_LIST_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accountIsGM420TokenOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"seeds_to_add","type":"string[]"}],"name":"add_seeds_to_plant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[12]","name":"words","type":"uint256[12]"},{"internalType":"uint256","name":"words_count","type":"uint256"},{"internalType":"uint256","name":"new_word","type":"uint256"}],"name":"check_words_duplication","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"gm420TokenId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGM420Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLolabsSplitter","outputs":[{"internalType":"address","name":"splitter","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"giveawayBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giveaway_reserved_pairs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gm420_pre_mint_reserved_pairs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gm420TokenId","type":"uint256"}],"name":"is_gm420_token_redeemed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock_seed_words","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"minted_seed_pairs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"pauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pausePreMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused_gm420_pre_mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused_mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"input","type":"string"}],"name":"random","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"seed_words_count","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seeds_to_plant","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"unpauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpausePreMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gm420","type":"address"}],"name":"updateGM420Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lolabs_splitter","type":"address"}],"name":"updateLolaSplitterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAllToSplitter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawAmountToSplitter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"words_can_be_added","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526032600d556101a4600e556000600f8190556011805462ffffff1916620101011790556013553480156200003757600080fd5b5060405162004973380380620049738339810160408190526200005a9162000324565b6040518060400160405280600481526020016314d9595960e21b8152506040518060400160405280600481526020016314d1515160e21b8152508160009080519060200190620000ac92919062000261565b508051620000c290600190602084019062000261565b50506001600a5550620000d5336200015b565b620000e2600033620001ad565b620000ef600084620001ad565b6200010a6000805160206200495383398151915233620001ad565b620001256000805160206200495383398151915284620001ad565b601480546001600160a01b039283166001600160a01b0319918216179091556015805493909216921691909117905550620003aa565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001b98282620001bd565b5050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff16620001b9576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200021d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200026f906200036d565b90600052602060002090601f016020900481019282620002935760008555620002de565b82601f10620002ae57805160ff1916838001178555620002de565b82800160010185558215620002de579182015b82811115620002de578251825591602001919060010190620002c1565b50620002ec929150620002f0565b5090565b5b80821115620002ec5760008155600101620002f1565b80516001600160a01b03811681146200031f57600080fd5b919050565b60008060006060848603121562000339578283fd5b620003448462000307565b9250620003546020850162000307565b9150620003646040850162000307565b90509250925092565b600181811c908216806200038257607f821691505b60208210811415620003a457634e487b7160e01b600052602260045260246000fd5b50919050565b61459980620003ba6000396000f3fe6080604052600436106102b35760003560e01c806301ffc9a7146102bc57806304a64c25146102f157806306fdde0314610311578063081812fc14610333578063095ea7b3146103605780630acd12c71461038057806318160ddd146103955780631a8bd2da146103b45780631b14d7c2146103c957806322b8d044146103de57806323b872dd146103fe578063248a9ca31461041e57806324ef901e1461043e5780632f2ff15d146104535780632f745c591461047357806336568abe14610493578063379607f5146104b357806337c2372c146104d3578063405fe043146104f357806341d257ef1461050857806342842e0e1461051e578063438b63001461053e57806346de49ed1461056b5780634f6ccce7146105805780635a644426146105a05780636352211e146105b65780636d411668146105d657806370a08231146105f6578063715018a6146106165780637850b87f1461062b5780637e262b351461064b578063819e0b571461066b5780638d859f3e146106815780638da5cb5b1461069c5780638ee0927b146106b157806391418680146106c657806391d14854146106db57806395d89b41146106fb5780639afea3e514610710578063a0712d681461072e578063a217fddf14610741578063a22cb46514610756578063a258375f14610776578063a40a65ab1461078b578063a9fa8dbf146107a0578063b1bbb1d7146107c0578063b88d4fde146107e0578063b993e35e14610800578063c422ddde1461081f578063c50a557c1461083f578063c87b56dd14610861578063cb48d8ee14610881578063cc4081f51461089b578063cd85cdb5146108b1578063d1058e59146108c6578063d547741f146108db578063dfd233dd146108fb578063e985e9c51461091b578063ef8491531461093b578063f2fde38b1461095b578063f6fd8f7c1461097b57005b366102ba57005b005b3480156102c857600080fd5b506102dc6102d7366004613a51565b610991565b60405190151581526020015b60405180910390f35b3480156102fd57600080fd5b506011546102dc9062010000900460ff1681565b34801561031d57600080fd5b506103266109a2565b6040516102e891906140c1565b34801561033f57600080fd5b5061035361034e366004613a17565b610a34565b6040516102e8919061401d565b34801561036c57600080fd5b506102ba61037b36600461389a565b610ac1565b34801561038c57600080fd5b506102ba610bd2565b3480156103a157600080fd5b506008545b6040519081526020016102e8565b3480156103c057600080fd5b506102ba610cc2565b3480156103d557600080fd5b506102ba610d20565b3480156103ea57600080fd5b506103a66103f9366004613a89565b610d48565b34801561040a57600080fd5b506102ba6104193660046137ad565b610d79565b34801561042a57600080fd5b506103a6610439366004613a17565b610daa565b34801561044a57600080fd5b506103a6600a81565b34801561045f57600080fd5b506102ba61046e366004613a2f565b610dbf565b34801561047f57600080fd5b506103a661048e36600461389a565b610ddc565b34801561049f57600080fd5b506102ba6104ae366004613a2f565b610e72565b3480156104bf57600080fd5b506102ba6104ce366004613a17565b610eec565b3480156104df57600080fd5b506102dc6104ee366004613984565b6111dc565b3480156104ff57600080fd5b506103a6600c81565b34801561051457600080fd5b506103a6600d5481565b34801561052a57600080fd5b506102ba6105393660046137ad565b61123d565b34801561054a57600080fd5b5061055e610559366004613761565b611258565b6040516102e8919061407d565b34801561057757600080fd5b506102dc611315565b34801561058c57600080fd5b506103a661059b366004613a17565b6113a2565b3480156105ac57600080fd5b506103a66114d281565b3480156105c257600080fd5b506103536105d1366004613a17565b611443565b3480156105e257600080fd5b506102ba6105f13660046138c3565b6114ba565b34801561060257600080fd5b506103a6610611366004613761565b6115bb565b34801561062257600080fd5b506102ba611642565b34801561063757600080fd5b506102ba61064636600461389a565b61167d565b34801561065757600080fd5b506102ba610666366004613761565b6116e3565b34801561067757600080fd5b506103a6600e5481565b34801561068d57600080fd5b506103a6668e1bc9bf04000081565b3480156106a857600080fd5b5061035361171f565b3480156106bd57600080fd5b506102ba61172e565b3480156106d257600080fd5b50610353611782565b3480156106e757600080fd5b506102dc6106f6366004613a2f565b6117b0565b34801561070757600080fd5b506103266117db565b34801561071c57600080fd5b506014546001600160a01b0316610353565b6102ba61073c366004613a17565b6117ea565b34801561074d57600080fd5b506103a6600081565b34801561076257600080fd5b506102ba610771366004613860565b611a2f565b34801561078257600080fd5b506103a6611af0565b34801561079757600080fd5b506102ba611b00565b3480156107ac57600080fd5b506103266107bb366004613a17565b611b58565b3480156107cc57600080fd5b506102ba6107db366004613a17565b611bf2565b3480156107ec57600080fd5b506102ba6107fb3660046137e8565b611d63565b34801561080c57600080fd5b506011546102dc90610100900460ff1681565b34801561082b57600080fd5b506102ba61083a366004613761565b611d95565b34801561084b57600080fd5b506103a66000805160206143f183398151915281565b34801561086d57600080fd5b5061032661087c366004613a17565b611dd1565b34801561088d57600080fd5b506011546102dc9060ff1681565b3480156108a757600080fd5b506103a660135481565b3480156108bd57600080fd5b506102ba6120e4565b3480156108d257600080fd5b506102ba61213a565b3480156108e757600080fd5b506102ba6108f6366004613a2f565b61235c565b34801561090757600080fd5b506102ba610916366004613761565b612379565b34801561092757600080fd5b506102dc61093636600461377b565b612413565b34801561094757600080fd5b506102dc610956366004613a17565b612441565b34801561096757600080fd5b506102ba610976366004613761565b6124a3565b34801561098757600080fd5b506103a6600f5481565b600061099c82612543565b92915050565b6060600080546109b19061432e565b80601f01602080910402602001604051908101604052809291908181526020018280546109dd9061432e565b8015610a2a5780601f106109ff57610100808354040283529160200191610a2a565b820191906000526020600020905b815481529060010190602001808311610a0d57829003601f168201915b5050505050905090565b6000610a3f82612568565b610aa55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610acc82611443565b9050806001600160a01b0316836001600160a01b03161415610b3a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a9c565b336001600160a01b0382161480610b565750610b568133612413565b610bc35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610a9c565b610bcd8383612585565b505050565b6000805160206143f1833981519152610beb81336125f3565b4780610c495760405162461bcd60e51b815260206004820152602760248201527f536565643a20776974686472617720616c6c2063616c6c20776974686f75742060448201526662616c616e636560c81b6064820152608401610a9c565b6015546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050610cbe5760405162461bcd60e51b815260206004820152601e60248201527f536565643a204641494c454420776974686472617720616c6c2063616c6c00006044820152606401610a9c565b5050565b6000805160206143f1833981519152610cdb81336125f3565b6011805460ff191690556040517f4edc83796ddd13f7381b8c91ffbca02176782693577083e23486400548aaa8a190610d1590339061401d565b60405180910390a150565b6000805160206143f1833981519152610d3981336125f3565b506011805462ff000019169055565b600081604051602001610d5b9190613c23565b60408051601f19818403018152919052805160209091012092915050565b610d833382612657565b610d9f5760405162461bcd60e51b8152600401610a9c9061419f565b610bcd838383612721565b6000908152600c602052604090206001015490565b610dc882610daa565b610dd281336125f3565b610bcd83836128ba565b6000610de7836115bb565b8210610e495760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a9c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b0381163314610ee25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a9c565b610cbe8282612940565b601154610100900460ff1615610f145760405162461bcd60e51b8152600401610a9c906141f0565b6002600a541415610f375760405162461bcd60e51b8152600401610a9c90614222565b6002600a556014546040516370a0823160e01b8152829160009182916001600160a01b0316906370a0823190610f7190339060040161401d565b60206040518083038186803b158015610f8957600080fd5b505afa158015610f9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc19190613abb565b905060005b8181101561107857601454604051632f745c5960e01b81526000916001600160a01b031690632f745c59906110019033908690600401614064565b60206040518083038186803b15801561101957600080fd5b505afa15801561102d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110519190613abb565b905084811415611065576001935050611078565b508061107081614369565b915050610fc6565b50816110dc5760405162461bcd60e51b815260206004820152602d60248201527f536565643a20474d34323020746f6b656e206973206e6f74206f776e6564206260448201526c3c903a34329039b2b73232b91760991b6064820152608401610a9c565b6000600e54116110fe5760405162461bcd60e51b8152600401610a9c90614126565b60008481526010602052604090205460ff161561116c5760405162461bcd60e51b815260206004820152602660248201527f536565643a20474d34323020746f6b656e2077617320616c72656164792072656044820152651919595b595960d21b6064820152608401610a9c565b6000848152601060205260408120805460ff19166001908117909155600e80549192909161119b9084906142d4565b909155506111aa9050336129a7565b60008051602061441183398151915233856040516111c9929190614064565b60405180910390a150506001600a555050565b6000805b8381101561123057828582600c811061120957634e487b7160e01b600052603260045260246000fd5b6020020151141561121e576001915050611236565b8061122881614369565b9150506111e0565b50600090505b9392505050565b610bcd83838360405180602001604052806000815250611d63565b60606000611265836115bb565b90506000816001600160401b0381111561128f57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112b8578160200160208202803683370190505b50905060005b8281101561130d576112d08582610ddc565b8282815181106112f057634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061130581614369565b9150506112be565b509392505050565b6014546040516370a0823160e01b815260009182916001600160a01b03909116906370a082319061134a90339060040161401d565b60206040518083038186803b15801561136257600080fd5b505afa158015611376573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139a9190613abb565b151592915050565b60006113ad60085490565b82106114105760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a9c565b6008828154811061143157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b03168061099c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a9c565b6000805160206143f18339815191526114d381336125f3565b60115462010000900460ff1661153b5760405162461bcd60e51b815260206004820152602760248201527f536565643a2063616e6e6f7420616464207365656420776f726473207768656e604482015266081b1bd8dad95960ca1b6064820152608401610a9c565b60005b8251811015610bcd5782818151811061156757634e487b7160e01b600052603260045260246000fd5b602002602001015160126000601354815260200190815260200160002090805190602001906115979291906135f3565b506013546115a6906001614289565b601355806115b381614369565b91505061153e565b60006001600160a01b0382166116265760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a9c565b506001600160a01b031660009081526003602052604090205490565b3361164b61171f565b6001600160a01b0316146116715760405162461bcd60e51b8152600401610a9c9061416a565b61167b60006129e4565b565b6000805160206143f183398151915261169681336125f3565b81600d546116a491906142d4565b5060005b828110156116dd576001600d546116bf91906142d4565b600d556116cb846129a7565b806116d581614369565b9150506116a8565b50505050565b6000805160206143f18339815191526116fc81336125f3565b50601580546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031690565b6000805160206143f183398151915261174781336125f3565b6011805461ff00191690556040517f8a3f4e54d8cdf3c0e6f0646578db4ba141e67bf902991531b47e6aa4c88480b790610d1590339061401d565b60006000805160206143f183398151915261179d81336125f3565b6015546001600160a01b031691505b5090565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546109b19061432e565b6002600a54141561180d5760405162461bcd60e51b8152600401610a9c90614222565b6002600a5560115460ff161561185c5760405162461bcd60e51b815260206004820152601460248201527314d959590e881b5a5b9d081a5cc81c185d5cd95960621b6044820152606401610a9c565b600a8111156118be5760405162461bcd60e51b815260206004820152602860248201527f536565643a20596f752063616e206d696e742061206d6178696d756d206f6620604482015267313020536565647360c01b6064820152608401610a9c565b6118cf81668e1bc9bf0400006142b5565b34101561192f5760405162461bcd60e51b815260206004820152602860248201527f53656564733a2045746865722073656e74206973206c657373207468616e2050604482015267524943452a6e756d60c01b6064820152608401610a9c565b600e54600d5461193f9190614289565b61194b906114d26142d4565b81600f546119599190614289565b11156119b25760405162461bcd60e51b815260206004820152602260248201527f536565643a2045786365656473206d6178696d756d20536565647320737570706044820152616c7960f01b6064820152608401610a9c565b333214611a005760405162461bcd60e51b815260206004820152601c60248201527b14d959591cce8818dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d60221b6044820152606401610a9c565b60005b81811015611a2657611a14336129a7565b80611a1e81614369565b915050611a03565b50506001600a55565b6001600160a01b038216331415611a845760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610a9c565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611afd6114d260026142b5565b81565b6000805160206143f1833981519152611b1981336125f3565b6011805461ff0019166101001790556040517f261dbdca66ce7134b6b4a8aaab3f7e9d7e389e31a2bad248611205b4619ec7c790610d1590339061401d565b60126020526000908152604090208054611b719061432e565b80601f0160208091040260200160405190810160405280929190818152602001828054611b9d9061432e565b8015611bea5780601f10611bbf57610100808354040283529160200191611bea565b820191906000526020600020905b815481529060010190602001808311611bcd57829003601f168201915b505050505081565b6000805160206143f1833981519152611c0b81336125f3565b4780611c6c5760405162461bcd60e51b815260206004820152602a60248201527f536565643a20776974686472617720616d6f756e742063616c6c20776974686f60448201526975742062616c616e636560b01b6064820152608401610a9c565b6000611c7884836142d4565b1015611ce45760405162461bcd60e51b815260206004820152603560248201527f536565643a20776974686472617720616d6f756e742063616c6c2077697468206044820152746d6f7265207468616e207468652062616c616e636560581b6064820152608401610a9c565b6015546040516001600160a01b039091169084156108fc029085906000818181858888f19350505050610bcd5760405162461bcd60e51b815260206004820152602160248201527f536565643a204641494c454420776974686472617720616d6f756e742063616c6044820152601b60fa1b6064820152608401610a9c565b611d6d3383612657565b611d895760405162461bcd60e51b8152600401610a9c9061419f565b6116dd84848484612a36565b6000805160206143f1833981519152611dae81336125f3565b50601480546001600160a01b0319166001600160a01b0392909216919091179055565b6060611ddc82612568565b611e395760405162461bcd60e51b815260206004820152602860248201527f53656564733a2063616e6e6f7420646973706c6179206e6f6e206578697374696044820152673733903a37b5b2b760c11b6064820152608401610a9c565b6000611e4483612a69565b90506060611e53600285614384565b60011415611e7b57506040805180820190915260038152621c995960ea1b6020820152611e98565b50604080518082019091526004815263626c756560e01b60208201525b600060405180610100016040528060d3815260200161449160d3913990508082604051602001611ec9929190613b8d565b6040516020818303038152906040529050600082604051602001611eed9190613eb4565b60408051601f198184030181529190529050602860005b600c811015612054576000611f2d83611f1e8460146142b5565b611f289190614289565b612c19565b604051602001611f3d9190613fc4565b604051602081830303815290604052905084818884600c8110611f7057634e487b7160e01b600052603260045260246000fd5b6020020151604051602001611f8793929190613b4a565b60408051601f198184030181529190529450611fa56001600c6142d4565b8214611ff857838783600c8110611fcc57634e487b7160e01b600052603260045260246000fd5b6020020151604051602001611fe2929190613c61565b6040516020818303038152906040529350612041565b838783600c811061201957634e487b7160e01b600052603260045260246000fd5b602002015160405160200161202f929190613cb6565b60405160208183030381529060405293505b508061204c81614369565b915050611f04565b50826040516020016120669190613bf2565b604051602081830303815290604052925060006120b561208589612c19565b61208e86612d32565b856040516020016120a193929190613d0b565b604051602081830303815290604052612d32565b9050806040516020016120c89190613f10565b60408051601f1981840301815291905298975050505050505050565b6000805160206143f18339815191526120fd81336125f3565b6011805460ff191660011790556040517fee9b45d4bbbf616909699035be16f077b7459c8d4db74944d4e27d84f15faf3490610d1590339061401d565b601154610100900460ff16156121625760405162461bcd60e51b8152600401610a9c906141f0565b6002600a5414156121855760405162461bcd60e51b8152600401610a9c90614222565b6002600a55600e546121a95760405162461bcd60e51b8152600401610a9c90614126565b6014546040516370a0823160e01b81526000916001600160a01b0316906370a08231906121da90339060040161401d565b60206040518083038186803b1580156121f257600080fd5b505afa158015612206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222a9190613abb565b905060005b81811015611a2657601454604051632f745c5960e01b81526000916001600160a01b031690632f745c599061226a9033908690600401614064565b60206040518083038186803b15801561228257600080fd5b505afa158015612296573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ba9190613abb565b60008181526010602052604090205490915060ff161580156122de57506000600e54115b15612349576000818152601060205260408120805460ff19166001908117909155600e8054919290916123129084906142d4565b909155506123219050336129a7565b6000805160206144118339815191523382604051612340929190614064565b60405180910390a15b508061235481614369565b91505061222f565b61236582610daa565b61236f81336125f3565b610bcd8383612940565b6000805160206143f183398151915261239281336125f3565b600d546000106123f85760405162461bcd60e51b815260206004820152602b60248201527f536565643a206769766561776179206d6f7265207468616e20737570706c792060448201526a1bd9881c995cd95c9d995960aa1b6064820152608401610a9c565b6001600d5461240791906142d4565b600d55610cbe826129a7565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006101a4821061248d5760405162461bcd60e51b815260206004820152601660248201527514d959590e88151bdad95b881251081a5b9d985b1a5960521b6044820152606401610a9c565b5060009081526010602052604090205460ff1690565b336124ac61171f565b6001600160a01b0316146124d25760405162461bcd60e51b8152600401610a9c9061416a565b6001600160a01b0381166125375760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a9c565b612540816129e4565b50565b60006001600160e01b03198216637965db0b60e01b148061099c575061099c82612ea5565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125ba82611443565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6125fd82826117b0565b610cbe57612615816001600160a01b03166014612eca565b612620836020612eca565b604051602001612631929190613f55565b60408051601f198184030181529082905262461bcd60e51b8252610a9c916004016140c1565b600061266282612568565b6126c35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a9c565b60006126ce83611443565b9050806001600160a01b0316846001600160a01b031614806127095750836001600160a01b03166126fe84610a34565b6001600160a01b0316145b8061271957506127198185612413565b949350505050565b826001600160a01b031661273482611443565b6001600160a01b03161461279c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a9c565b6001600160a01b0382166127fe5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a9c565b6128098383836130ab565b612814600082612585565b6001600160a01b038316600090815260036020526040812080546001929061283d9084906142d4565b90915550506001600160a01b038216600090815260036020526040812080546001929061286b908490614289565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061447183398151915291a4505050565b6128c482826117b0565b610cbe576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556128fc3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61294a82826117b0565b15610cbe576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006129b260085490565b9050600f5460016129c39190614289565b600f556129d08282613163565b610cbe826129df836001614289565b613163565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612a41848484612721565b612a4d8484848461317d565b6116dd5760405162461bcd60e51b8152600401610a9c906140d4565b612a71613673565b612a79613673565b612a8161369b565b60005b600c811015612c10576000612ac9612a9b83612c19565b612aa488612c19565b604051602001612ab5929190613b1b565b604051602081830303815290604052610d48565b9050600060135482612adb9190614384565b90505b612ae98484836111dc565b15612b1057612af9826001614289565b915060135482612b099190614384565b9050612ade565b808484600c8110612b3157634e487b7160e01b600052603260045260246000fd5b602002018181525050601260008281526020019081526020016000208054612b589061432e565b80601f0160208091040260200160405190810160405280929190818152602001828054612b849061432e565b8015612bd15780601f10612ba657610100808354040283529160200191612bd1565b820191906000526020600020905b815481529060010190602001808311612bb457829003601f168201915b50505050508584600c8110612bf657634e487b7160e01b600052603260045260246000fd5b602002015250819050612c0881614369565b915050612a84565b50909392505050565b606081612c3d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c675780612c5181614369565b9150612c609050600a836142a1565b9150612c41565b6000816001600160401b03811115612c8f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612cb9576020820181803683370190505b5090505b841561271957612cce6001836142d4565b9150612cdb600a86614384565b612ce6906030614289565b60f81b818381518110612d0957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612d2b600a866142a1565b9450612cbd565b805160609080612d52575050604080516020810190915260008152919050565b60006003612d61836002614289565b612d6b91906142a1565b612d769060046142b5565b90506000612d85826020614289565b6001600160401b03811115612daa57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612dd4576020820181803683370190505b5090506000604051806060016040528060408152602001614431604091399050600181016020830160005b86811015612e60576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612dff565b506003860660018114612e7a5760028114612e8b57612e97565b613d3d60f01b600119830152612e97565b603d60f81b6000198301525b505050918152949350505050565b60006001600160e01b0319821663780e9d6360e01b148061099c575061099c8261328a565b60606000612ed98360026142b5565b612ee4906002614289565b6001600160401b03811115612f0957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612f33576020820181803683370190505b509050600360fc1b81600081518110612f5c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612f9957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612fbd8460026142b5565b612fc8906001614289565b90505b600181111561305c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061300a57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061302e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361305581614317565b9050612fcb565b5083156112365760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a9c565b6001600160a01b0383166131065761310181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613129565b816001600160a01b0316836001600160a01b0316146131295761312983826132da565b6001600160a01b03821661314057610bcd81613377565b826001600160a01b0316826001600160a01b031614610bcd57610bcd8282613450565b610cbe828260405180602001604052806000815250613494565b60006001600160a01b0384163b1561327f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131c1903390899088908890600401614031565b602060405180830381600087803b1580156131db57600080fd5b505af192505050801561320b575060408051601f3d908101601f1916820190925261320891810190613a6d565b60015b613265573d808015613239576040519150601f19603f3d011682016040523d82523d6000602084013e61323e565b606091505b50805161325d5760405162461bcd60e51b8152600401610a9c906140d4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612719565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b14806132bb57506001600160e01b03198216635b5e139f60e01b145b8061099c57506301ffc9a760e01b6001600160e01b031983161461099c565b600060016132e7846115bb565b6132f191906142d4565b600083815260076020526040902054909150808214613344576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613389906001906142d4565b600083815260096020526040812054600880549394509092849081106133bf57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106133ee57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061343457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061345b836115bb565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b61349e83836134c7565b6134ab600084848461317d565b610bcd5760405162461bcd60e51b8152600401610a9c906140d4565b6001600160a01b03821661351d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a9c565b61352681612568565b156135725760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610a9c565b61357e600083836130ab565b6001600160a01b03821660009081526003602052604081208054600192906135a7908490614289565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020614471833981519152908290a45050565b8280546135ff9061432e565b90600052602060002090601f0160209004810192826136215760008555613667565b82601f1061363a57805160ff1916838001178555613667565b82800160010185558215613667579182015b8281111561366757825182559160200191906001019061364c565b506117ac9291506136ba565b604051806101800160405280600c905b60608152602001906001900390816136835790505090565b604051806101800160405280600c906020820280368337509192915050565b5b808211156117ac57600081556001016136bb565b60006001600160401b038311156136e8576136e86143c4565b6136fb601f8401601f1916602001614259565b905082815283838301111561370f57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461373d57600080fd5b919050565b600082601f830112613752578081fd5b611236838335602085016136cf565b600060208284031215613772578081fd5b61123682613726565b6000806040838503121561378d578081fd5b61379683613726565b91506137a460208401613726565b90509250929050565b6000806000606084860312156137c1578081fd5b6137ca84613726565b92506137d860208501613726565b9150604084013590509250925092565b600080600080608085870312156137fd578081fd5b61380685613726565b935061381460208601613726565b92506040850135915060608501356001600160401b03811115613835578182fd5b8501601f81018713613845578182fd5b613854878235602084016136cf565b91505092959194509250565b60008060408385031215613872578182fd5b61387b83613726565b91506020830135801515811461388f578182fd5b809150509250929050565b600080604083850312156138ac578182fd5b6138b583613726565b946020939093013593505050565b600060208083850312156138d5578182fd5b82356001600160401b03808211156138eb578384fd5b818501915085601f8301126138fe578384fd5b813581811115613910576139106143c4565b8060051b61391f858201614259565b8281528581019085870183870188018b1015613939578889fd5b8893505b848410156139765780358681111561395357898afd5b6139618c8a838b0101613742565b8452506001939093019291870191870161393d565b509998505050505050505050565b60008060006101c08486031215613999578283fd5b84601f8501126139a7578283fd5b6040516101808082016001600160401b03811183821017156139cb576139cb6143c4565b60405285018186888311156139de578687fd5b865b600c8110156139ff5781358352602092830192909101906001016139e0565b50929891359750506101a09590950135949350505050565b600060208284031215613a28578081fd5b5035919050565b60008060408385031215613a41578182fd5b823591506137a460208401613726565b600060208284031215613a62578081fd5b8135611236816143da565b600060208284031215613a7e578081fd5b8151611236816143da565b600060208284031215613a9a578081fd5b81356001600160401b03811115613aaf578182fd5b61271984828501613742565b600060208284031215613acc578081fd5b5051919050565b60008151808452613aeb8160208601602086016142eb565b601f01601f19169290920160200192915050565b60008151613b118185602086016142eb565b9290920192915050565b60008351613b2d8184602088016142eb565b835190830190613b418183602088016142eb565b01949350505050565b60008451613b5c8184602089016142eb565b845190830190613b708183602089016142eb565b8451910190613b838183602088016142eb565b0195945050505050565b60008351613b9f8184602088016142eb565b835190830190613bb38183602088016142eb565b7f22202f3e3c7465787420783d2231302220793d2232302220636c6173733d226291019081526430b9b2911f60d91b6020820152602501949350505050565b60008251613c048184602087016142eb565b6c1e17ba32bc3a1f1e17b9bb339f60991b920191825250600d01919050565b60008251613c358184602087016142eb565b796c6f6c615f69735f7468655f706572666563746573745f646f6760301b920191825250601a01919050565b60008351613c738184602088016142eb565b693d913b30b63ab2911d1160b11b9083019081528351613c9a81600a8401602088016142eb565b62089f4b60ea1b600a9290910191820152600d01949350505050565b60008351613cc88184602088016142eb565b693d913b30b63ab2911d1160b11b9083019081528351613cef81600a8401602088016142eb565b62227d5d60e81b600a9290910191820152600d01949350505050565b6f7b226e616d65223a202253333344202360801b81528351600090613d378160108501602089016142eb565b7f222c20226465736372697074696f6e223a202253333344206973206120636f6c6010918401918201527f6c656374696f6e206f662072616e646f6d697a6564207365656420706872617360308201527f65732067656e65726174656420616e642073746f726564206f6e2d636861696e60508201527f2e20533333442063616e206265207573656420666f7220726964646c6573206160708201527f6e642070757a7a6c65732e20596f752063616e2075736520697420666f72206160908201527f6e797468696e6720796f752077616e742e20497427732061207365656420706860b08201527f726173652e20497427732066756e2e222c2022696d616765223a20226461746160d0820152750e9a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b60521b60f0820152613eaa613e9d613e97613e7b610106850189613aff565b6f011161130ba3a3934b13aba32b9911d160851b815260100190565b86613aff565b607d60f81b815260010190565b9695505050505050565b605b60f81b81527f7b2274726169745f74797065223a22436f6c6f72222c202276616c7565223a22600182015260008251613ef68160218501602087016142eb565b62089f4b60ea1b6021939091019283015250602401919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613f4881601d8501602087016142eb565b91909101601d0192915050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351613f878160178501602088016142eb565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613fb88160288401602088016142eb565b01602801949350505050565b761e17ba32bc3a1f1e3a32bc3a103c1e91189811103c9e9160491b81528151600090613ff78160178501602087016142eb565b6e111031b630b9b99e913130b9b2911f60891b6017939091019283015250602601919050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613eaa90830184613ad3565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b818110156140b557835183529284019291840191600101614099565b50909695505050505050565b6020815260006112366020830184613ad3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526024908201527f536565643a20616c6c20676d34323020746f6b656e7320776572652072656465604082015263195b595960e21b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526018908201527714d959590e881c1c99481b5a5b9d081a5cc81c185d5cd95960421b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715614281576142816143c4565b604052919050565b6000821982111561429c5761429c614398565b500190565b6000826142b0576142b06143ae565b500490565b60008160001904831182151516156142cf576142cf614398565b500290565b6000828210156142e6576142e6614398565b500390565b60005b838110156143065781810151838201526020016142ee565b838111156116dd5750506000910152565b60008161432657614326614398565b506000190190565b600181811c9082168061434257607f821691505b6020821081141561436357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561437d5761437d614398565b5060010190565b600082614393576143936143ae565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461254057600080fdfe86024e89529ee90561d266fe70772355cdf7be9c9e97e3ac6b5d90ddbc85336522a928440597a4bd641c7e80f18a0c9a9e1139204ab57558d75cff3700a591bb4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22a26469706673582212205062a14f1cc919b45b48980c05ea6720c096f9f88c80f5a0dcaf9d90f01127be64736f6c6343000804003386024e89529ee90561d266fe70772355cdf7be9c9e97e3ac6b5d90ddbc853365000000000000000000000000d739429bfbdef8f25280bee993c6f5fb2e884a3b000000000000000000000000a422bfff5daba6eeefaff84debf609edf0868c5f000000000000000000000000fb4ccb3e948fed6946fc528ba806e737edc938c4

Deployed Bytecode

0x6080604052600436106102b35760003560e01c806301ffc9a7146102bc57806304a64c25146102f157806306fdde0314610311578063081812fc14610333578063095ea7b3146103605780630acd12c71461038057806318160ddd146103955780631a8bd2da146103b45780631b14d7c2146103c957806322b8d044146103de57806323b872dd146103fe578063248a9ca31461041e57806324ef901e1461043e5780632f2ff15d146104535780632f745c591461047357806336568abe14610493578063379607f5146104b357806337c2372c146104d3578063405fe043146104f357806341d257ef1461050857806342842e0e1461051e578063438b63001461053e57806346de49ed1461056b5780634f6ccce7146105805780635a644426146105a05780636352211e146105b65780636d411668146105d657806370a08231146105f6578063715018a6146106165780637850b87f1461062b5780637e262b351461064b578063819e0b571461066b5780638d859f3e146106815780638da5cb5b1461069c5780638ee0927b146106b157806391418680146106c657806391d14854146106db57806395d89b41146106fb5780639afea3e514610710578063a0712d681461072e578063a217fddf14610741578063a22cb46514610756578063a258375f14610776578063a40a65ab1461078b578063a9fa8dbf146107a0578063b1bbb1d7146107c0578063b88d4fde146107e0578063b993e35e14610800578063c422ddde1461081f578063c50a557c1461083f578063c87b56dd14610861578063cb48d8ee14610881578063cc4081f51461089b578063cd85cdb5146108b1578063d1058e59146108c6578063d547741f146108db578063dfd233dd146108fb578063e985e9c51461091b578063ef8491531461093b578063f2fde38b1461095b578063f6fd8f7c1461097b57005b366102ba57005b005b3480156102c857600080fd5b506102dc6102d7366004613a51565b610991565b60405190151581526020015b60405180910390f35b3480156102fd57600080fd5b506011546102dc9062010000900460ff1681565b34801561031d57600080fd5b506103266109a2565b6040516102e891906140c1565b34801561033f57600080fd5b5061035361034e366004613a17565b610a34565b6040516102e8919061401d565b34801561036c57600080fd5b506102ba61037b36600461389a565b610ac1565b34801561038c57600080fd5b506102ba610bd2565b3480156103a157600080fd5b506008545b6040519081526020016102e8565b3480156103c057600080fd5b506102ba610cc2565b3480156103d557600080fd5b506102ba610d20565b3480156103ea57600080fd5b506103a66103f9366004613a89565b610d48565b34801561040a57600080fd5b506102ba6104193660046137ad565b610d79565b34801561042a57600080fd5b506103a6610439366004613a17565b610daa565b34801561044a57600080fd5b506103a6600a81565b34801561045f57600080fd5b506102ba61046e366004613a2f565b610dbf565b34801561047f57600080fd5b506103a661048e36600461389a565b610ddc565b34801561049f57600080fd5b506102ba6104ae366004613a2f565b610e72565b3480156104bf57600080fd5b506102ba6104ce366004613a17565b610eec565b3480156104df57600080fd5b506102dc6104ee366004613984565b6111dc565b3480156104ff57600080fd5b506103a6600c81565b34801561051457600080fd5b506103a6600d5481565b34801561052a57600080fd5b506102ba6105393660046137ad565b61123d565b34801561054a57600080fd5b5061055e610559366004613761565b611258565b6040516102e8919061407d565b34801561057757600080fd5b506102dc611315565b34801561058c57600080fd5b506103a661059b366004613a17565b6113a2565b3480156105ac57600080fd5b506103a66114d281565b3480156105c257600080fd5b506103536105d1366004613a17565b611443565b3480156105e257600080fd5b506102ba6105f13660046138c3565b6114ba565b34801561060257600080fd5b506103a6610611366004613761565b6115bb565b34801561062257600080fd5b506102ba611642565b34801561063757600080fd5b506102ba61064636600461389a565b61167d565b34801561065757600080fd5b506102ba610666366004613761565b6116e3565b34801561067757600080fd5b506103a6600e5481565b34801561068d57600080fd5b506103a6668e1bc9bf04000081565b3480156106a857600080fd5b5061035361171f565b3480156106bd57600080fd5b506102ba61172e565b3480156106d257600080fd5b50610353611782565b3480156106e757600080fd5b506102dc6106f6366004613a2f565b6117b0565b34801561070757600080fd5b506103266117db565b34801561071c57600080fd5b506014546001600160a01b0316610353565b6102ba61073c366004613a17565b6117ea565b34801561074d57600080fd5b506103a6600081565b34801561076257600080fd5b506102ba610771366004613860565b611a2f565b34801561078257600080fd5b506103a6611af0565b34801561079757600080fd5b506102ba611b00565b3480156107ac57600080fd5b506103266107bb366004613a17565b611b58565b3480156107cc57600080fd5b506102ba6107db366004613a17565b611bf2565b3480156107ec57600080fd5b506102ba6107fb3660046137e8565b611d63565b34801561080c57600080fd5b506011546102dc90610100900460ff1681565b34801561082b57600080fd5b506102ba61083a366004613761565b611d95565b34801561084b57600080fd5b506103a66000805160206143f183398151915281565b34801561086d57600080fd5b5061032661087c366004613a17565b611dd1565b34801561088d57600080fd5b506011546102dc9060ff1681565b3480156108a757600080fd5b506103a660135481565b3480156108bd57600080fd5b506102ba6120e4565b3480156108d257600080fd5b506102ba61213a565b3480156108e757600080fd5b506102ba6108f6366004613a2f565b61235c565b34801561090757600080fd5b506102ba610916366004613761565b612379565b34801561092757600080fd5b506102dc61093636600461377b565b612413565b34801561094757600080fd5b506102dc610956366004613a17565b612441565b34801561096757600080fd5b506102ba610976366004613761565b6124a3565b34801561098757600080fd5b506103a6600f5481565b600061099c82612543565b92915050565b6060600080546109b19061432e565b80601f01602080910402602001604051908101604052809291908181526020018280546109dd9061432e565b8015610a2a5780601f106109ff57610100808354040283529160200191610a2a565b820191906000526020600020905b815481529060010190602001808311610a0d57829003601f168201915b5050505050905090565b6000610a3f82612568565b610aa55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610acc82611443565b9050806001600160a01b0316836001600160a01b03161415610b3a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a9c565b336001600160a01b0382161480610b565750610b568133612413565b610bc35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610a9c565b610bcd8383612585565b505050565b6000805160206143f1833981519152610beb81336125f3565b4780610c495760405162461bcd60e51b815260206004820152602760248201527f536565643a20776974686472617720616c6c2063616c6c20776974686f75742060448201526662616c616e636560c81b6064820152608401610a9c565b6015546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050610cbe5760405162461bcd60e51b815260206004820152601e60248201527f536565643a204641494c454420776974686472617720616c6c2063616c6c00006044820152606401610a9c565b5050565b6000805160206143f1833981519152610cdb81336125f3565b6011805460ff191690556040517f4edc83796ddd13f7381b8c91ffbca02176782693577083e23486400548aaa8a190610d1590339061401d565b60405180910390a150565b6000805160206143f1833981519152610d3981336125f3565b506011805462ff000019169055565b600081604051602001610d5b9190613c23565b60408051601f19818403018152919052805160209091012092915050565b610d833382612657565b610d9f5760405162461bcd60e51b8152600401610a9c9061419f565b610bcd838383612721565b6000908152600c602052604090206001015490565b610dc882610daa565b610dd281336125f3565b610bcd83836128ba565b6000610de7836115bb565b8210610e495760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a9c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b0381163314610ee25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a9c565b610cbe8282612940565b601154610100900460ff1615610f145760405162461bcd60e51b8152600401610a9c906141f0565b6002600a541415610f375760405162461bcd60e51b8152600401610a9c90614222565b6002600a556014546040516370a0823160e01b8152829160009182916001600160a01b0316906370a0823190610f7190339060040161401d565b60206040518083038186803b158015610f8957600080fd5b505afa158015610f9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc19190613abb565b905060005b8181101561107857601454604051632f745c5960e01b81526000916001600160a01b031690632f745c59906110019033908690600401614064565b60206040518083038186803b15801561101957600080fd5b505afa15801561102d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110519190613abb565b905084811415611065576001935050611078565b508061107081614369565b915050610fc6565b50816110dc5760405162461bcd60e51b815260206004820152602d60248201527f536565643a20474d34323020746f6b656e206973206e6f74206f776e6564206260448201526c3c903a34329039b2b73232b91760991b6064820152608401610a9c565b6000600e54116110fe5760405162461bcd60e51b8152600401610a9c90614126565b60008481526010602052604090205460ff161561116c5760405162461bcd60e51b815260206004820152602660248201527f536565643a20474d34323020746f6b656e2077617320616c72656164792072656044820152651919595b595960d21b6064820152608401610a9c565b6000848152601060205260408120805460ff19166001908117909155600e80549192909161119b9084906142d4565b909155506111aa9050336129a7565b60008051602061441183398151915233856040516111c9929190614064565b60405180910390a150506001600a555050565b6000805b8381101561123057828582600c811061120957634e487b7160e01b600052603260045260246000fd5b6020020151141561121e576001915050611236565b8061122881614369565b9150506111e0565b50600090505b9392505050565b610bcd83838360405180602001604052806000815250611d63565b60606000611265836115bb565b90506000816001600160401b0381111561128f57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112b8578160200160208202803683370190505b50905060005b8281101561130d576112d08582610ddc565b8282815181106112f057634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061130581614369565b9150506112be565b509392505050565b6014546040516370a0823160e01b815260009182916001600160a01b03909116906370a082319061134a90339060040161401d565b60206040518083038186803b15801561136257600080fd5b505afa158015611376573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139a9190613abb565b151592915050565b60006113ad60085490565b82106114105760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a9c565b6008828154811061143157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b03168061099c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a9c565b6000805160206143f18339815191526114d381336125f3565b60115462010000900460ff1661153b5760405162461bcd60e51b815260206004820152602760248201527f536565643a2063616e6e6f7420616464207365656420776f726473207768656e604482015266081b1bd8dad95960ca1b6064820152608401610a9c565b60005b8251811015610bcd5782818151811061156757634e487b7160e01b600052603260045260246000fd5b602002602001015160126000601354815260200190815260200160002090805190602001906115979291906135f3565b506013546115a6906001614289565b601355806115b381614369565b91505061153e565b60006001600160a01b0382166116265760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a9c565b506001600160a01b031660009081526003602052604090205490565b3361164b61171f565b6001600160a01b0316146116715760405162461bcd60e51b8152600401610a9c9061416a565b61167b60006129e4565b565b6000805160206143f183398151915261169681336125f3565b81600d546116a491906142d4565b5060005b828110156116dd576001600d546116bf91906142d4565b600d556116cb846129a7565b806116d581614369565b9150506116a8565b50505050565b6000805160206143f18339815191526116fc81336125f3565b50601580546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031690565b6000805160206143f183398151915261174781336125f3565b6011805461ff00191690556040517f8a3f4e54d8cdf3c0e6f0646578db4ba141e67bf902991531b47e6aa4c88480b790610d1590339061401d565b60006000805160206143f183398151915261179d81336125f3565b6015546001600160a01b031691505b5090565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546109b19061432e565b6002600a54141561180d5760405162461bcd60e51b8152600401610a9c90614222565b6002600a5560115460ff161561185c5760405162461bcd60e51b815260206004820152601460248201527314d959590e881b5a5b9d081a5cc81c185d5cd95960621b6044820152606401610a9c565b600a8111156118be5760405162461bcd60e51b815260206004820152602860248201527f536565643a20596f752063616e206d696e742061206d6178696d756d206f6620604482015267313020536565647360c01b6064820152608401610a9c565b6118cf81668e1bc9bf0400006142b5565b34101561192f5760405162461bcd60e51b815260206004820152602860248201527f53656564733a2045746865722073656e74206973206c657373207468616e2050604482015267524943452a6e756d60c01b6064820152608401610a9c565b600e54600d5461193f9190614289565b61194b906114d26142d4565b81600f546119599190614289565b11156119b25760405162461bcd60e51b815260206004820152602260248201527f536565643a2045786365656473206d6178696d756d20536565647320737570706044820152616c7960f01b6064820152608401610a9c565b333214611a005760405162461bcd60e51b815260206004820152601c60248201527b14d959591cce8818dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d60221b6044820152606401610a9c565b60005b81811015611a2657611a14336129a7565b80611a1e81614369565b915050611a03565b50506001600a55565b6001600160a01b038216331415611a845760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610a9c565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611afd6114d260026142b5565b81565b6000805160206143f1833981519152611b1981336125f3565b6011805461ff0019166101001790556040517f261dbdca66ce7134b6b4a8aaab3f7e9d7e389e31a2bad248611205b4619ec7c790610d1590339061401d565b60126020526000908152604090208054611b719061432e565b80601f0160208091040260200160405190810160405280929190818152602001828054611b9d9061432e565b8015611bea5780601f10611bbf57610100808354040283529160200191611bea565b820191906000526020600020905b815481529060010190602001808311611bcd57829003601f168201915b505050505081565b6000805160206143f1833981519152611c0b81336125f3565b4780611c6c5760405162461bcd60e51b815260206004820152602a60248201527f536565643a20776974686472617720616d6f756e742063616c6c20776974686f60448201526975742062616c616e636560b01b6064820152608401610a9c565b6000611c7884836142d4565b1015611ce45760405162461bcd60e51b815260206004820152603560248201527f536565643a20776974686472617720616d6f756e742063616c6c2077697468206044820152746d6f7265207468616e207468652062616c616e636560581b6064820152608401610a9c565b6015546040516001600160a01b039091169084156108fc029085906000818181858888f19350505050610bcd5760405162461bcd60e51b815260206004820152602160248201527f536565643a204641494c454420776974686472617720616d6f756e742063616c6044820152601b60fa1b6064820152608401610a9c565b611d6d3383612657565b611d895760405162461bcd60e51b8152600401610a9c9061419f565b6116dd84848484612a36565b6000805160206143f1833981519152611dae81336125f3565b50601480546001600160a01b0319166001600160a01b0392909216919091179055565b6060611ddc82612568565b611e395760405162461bcd60e51b815260206004820152602860248201527f53656564733a2063616e6e6f7420646973706c6179206e6f6e206578697374696044820152673733903a37b5b2b760c11b6064820152608401610a9c565b6000611e4483612a69565b90506060611e53600285614384565b60011415611e7b57506040805180820190915260038152621c995960ea1b6020820152611e98565b50604080518082019091526004815263626c756560e01b60208201525b600060405180610100016040528060d3815260200161449160d3913990508082604051602001611ec9929190613b8d565b6040516020818303038152906040529050600082604051602001611eed9190613eb4565b60408051601f198184030181529190529050602860005b600c811015612054576000611f2d83611f1e8460146142b5565b611f289190614289565b612c19565b604051602001611f3d9190613fc4565b604051602081830303815290604052905084818884600c8110611f7057634e487b7160e01b600052603260045260246000fd5b6020020151604051602001611f8793929190613b4a565b60408051601f198184030181529190529450611fa56001600c6142d4565b8214611ff857838783600c8110611fcc57634e487b7160e01b600052603260045260246000fd5b6020020151604051602001611fe2929190613c61565b6040516020818303038152906040529350612041565b838783600c811061201957634e487b7160e01b600052603260045260246000fd5b602002015160405160200161202f929190613cb6565b60405160208183030381529060405293505b508061204c81614369565b915050611f04565b50826040516020016120669190613bf2565b604051602081830303815290604052925060006120b561208589612c19565b61208e86612d32565b856040516020016120a193929190613d0b565b604051602081830303815290604052612d32565b9050806040516020016120c89190613f10565b60408051601f1981840301815291905298975050505050505050565b6000805160206143f18339815191526120fd81336125f3565b6011805460ff191660011790556040517fee9b45d4bbbf616909699035be16f077b7459c8d4db74944d4e27d84f15faf3490610d1590339061401d565b601154610100900460ff16156121625760405162461bcd60e51b8152600401610a9c906141f0565b6002600a5414156121855760405162461bcd60e51b8152600401610a9c90614222565b6002600a55600e546121a95760405162461bcd60e51b8152600401610a9c90614126565b6014546040516370a0823160e01b81526000916001600160a01b0316906370a08231906121da90339060040161401d565b60206040518083038186803b1580156121f257600080fd5b505afa158015612206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222a9190613abb565b905060005b81811015611a2657601454604051632f745c5960e01b81526000916001600160a01b031690632f745c599061226a9033908690600401614064565b60206040518083038186803b15801561228257600080fd5b505afa158015612296573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ba9190613abb565b60008181526010602052604090205490915060ff161580156122de57506000600e54115b15612349576000818152601060205260408120805460ff19166001908117909155600e8054919290916123129084906142d4565b909155506123219050336129a7565b6000805160206144118339815191523382604051612340929190614064565b60405180910390a15b508061235481614369565b91505061222f565b61236582610daa565b61236f81336125f3565b610bcd8383612940565b6000805160206143f183398151915261239281336125f3565b600d546000106123f85760405162461bcd60e51b815260206004820152602b60248201527f536565643a206769766561776179206d6f7265207468616e20737570706c792060448201526a1bd9881c995cd95c9d995960aa1b6064820152608401610a9c565b6001600d5461240791906142d4565b600d55610cbe826129a7565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006101a4821061248d5760405162461bcd60e51b815260206004820152601660248201527514d959590e88151bdad95b881251081a5b9d985b1a5960521b6044820152606401610a9c565b5060009081526010602052604090205460ff1690565b336124ac61171f565b6001600160a01b0316146124d25760405162461bcd60e51b8152600401610a9c9061416a565b6001600160a01b0381166125375760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a9c565b612540816129e4565b50565b60006001600160e01b03198216637965db0b60e01b148061099c575061099c82612ea5565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125ba82611443565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6125fd82826117b0565b610cbe57612615816001600160a01b03166014612eca565b612620836020612eca565b604051602001612631929190613f55565b60408051601f198184030181529082905262461bcd60e51b8252610a9c916004016140c1565b600061266282612568565b6126c35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a9c565b60006126ce83611443565b9050806001600160a01b0316846001600160a01b031614806127095750836001600160a01b03166126fe84610a34565b6001600160a01b0316145b8061271957506127198185612413565b949350505050565b826001600160a01b031661273482611443565b6001600160a01b03161461279c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a9c565b6001600160a01b0382166127fe5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a9c565b6128098383836130ab565b612814600082612585565b6001600160a01b038316600090815260036020526040812080546001929061283d9084906142d4565b90915550506001600160a01b038216600090815260036020526040812080546001929061286b908490614289565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061447183398151915291a4505050565b6128c482826117b0565b610cbe576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556128fc3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61294a82826117b0565b15610cbe576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006129b260085490565b9050600f5460016129c39190614289565b600f556129d08282613163565b610cbe826129df836001614289565b613163565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612a41848484612721565b612a4d8484848461317d565b6116dd5760405162461bcd60e51b8152600401610a9c906140d4565b612a71613673565b612a79613673565b612a8161369b565b60005b600c811015612c10576000612ac9612a9b83612c19565b612aa488612c19565b604051602001612ab5929190613b1b565b604051602081830303815290604052610d48565b9050600060135482612adb9190614384565b90505b612ae98484836111dc565b15612b1057612af9826001614289565b915060135482612b099190614384565b9050612ade565b808484600c8110612b3157634e487b7160e01b600052603260045260246000fd5b602002018181525050601260008281526020019081526020016000208054612b589061432e565b80601f0160208091040260200160405190810160405280929190818152602001828054612b849061432e565b8015612bd15780601f10612ba657610100808354040283529160200191612bd1565b820191906000526020600020905b815481529060010190602001808311612bb457829003601f168201915b50505050508584600c8110612bf657634e487b7160e01b600052603260045260246000fd5b602002015250819050612c0881614369565b915050612a84565b50909392505050565b606081612c3d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c675780612c5181614369565b9150612c609050600a836142a1565b9150612c41565b6000816001600160401b03811115612c8f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612cb9576020820181803683370190505b5090505b841561271957612cce6001836142d4565b9150612cdb600a86614384565b612ce6906030614289565b60f81b818381518110612d0957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612d2b600a866142a1565b9450612cbd565b805160609080612d52575050604080516020810190915260008152919050565b60006003612d61836002614289565b612d6b91906142a1565b612d769060046142b5565b90506000612d85826020614289565b6001600160401b03811115612daa57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612dd4576020820181803683370190505b5090506000604051806060016040528060408152602001614431604091399050600181016020830160005b86811015612e60576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612dff565b506003860660018114612e7a5760028114612e8b57612e97565b613d3d60f01b600119830152612e97565b603d60f81b6000198301525b505050918152949350505050565b60006001600160e01b0319821663780e9d6360e01b148061099c575061099c8261328a565b60606000612ed98360026142b5565b612ee4906002614289565b6001600160401b03811115612f0957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612f33576020820181803683370190505b509050600360fc1b81600081518110612f5c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612f9957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612fbd8460026142b5565b612fc8906001614289565b90505b600181111561305c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061300a57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061302e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361305581614317565b9050612fcb565b5083156112365760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a9c565b6001600160a01b0383166131065761310181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613129565b816001600160a01b0316836001600160a01b0316146131295761312983826132da565b6001600160a01b03821661314057610bcd81613377565b826001600160a01b0316826001600160a01b031614610bcd57610bcd8282613450565b610cbe828260405180602001604052806000815250613494565b60006001600160a01b0384163b1561327f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131c1903390899088908890600401614031565b602060405180830381600087803b1580156131db57600080fd5b505af192505050801561320b575060408051601f3d908101601f1916820190925261320891810190613a6d565b60015b613265573d808015613239576040519150601f19603f3d011682016040523d82523d6000602084013e61323e565b606091505b50805161325d5760405162461bcd60e51b8152600401610a9c906140d4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612719565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b14806132bb57506001600160e01b03198216635b5e139f60e01b145b8061099c57506301ffc9a760e01b6001600160e01b031983161461099c565b600060016132e7846115bb565b6132f191906142d4565b600083815260076020526040902054909150808214613344576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613389906001906142d4565b600083815260096020526040812054600880549394509092849081106133bf57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106133ee57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061343457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061345b836115bb565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b61349e83836134c7565b6134ab600084848461317d565b610bcd5760405162461bcd60e51b8152600401610a9c906140d4565b6001600160a01b03821661351d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a9c565b61352681612568565b156135725760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610a9c565b61357e600083836130ab565b6001600160a01b03821660009081526003602052604081208054600192906135a7908490614289565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020614471833981519152908290a45050565b8280546135ff9061432e565b90600052602060002090601f0160209004810192826136215760008555613667565b82601f1061363a57805160ff1916838001178555613667565b82800160010185558215613667579182015b8281111561366757825182559160200191906001019061364c565b506117ac9291506136ba565b604051806101800160405280600c905b60608152602001906001900390816136835790505090565b604051806101800160405280600c906020820280368337509192915050565b5b808211156117ac57600081556001016136bb565b60006001600160401b038311156136e8576136e86143c4565b6136fb601f8401601f1916602001614259565b905082815283838301111561370f57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461373d57600080fd5b919050565b600082601f830112613752578081fd5b611236838335602085016136cf565b600060208284031215613772578081fd5b61123682613726565b6000806040838503121561378d578081fd5b61379683613726565b91506137a460208401613726565b90509250929050565b6000806000606084860312156137c1578081fd5b6137ca84613726565b92506137d860208501613726565b9150604084013590509250925092565b600080600080608085870312156137fd578081fd5b61380685613726565b935061381460208601613726565b92506040850135915060608501356001600160401b03811115613835578182fd5b8501601f81018713613845578182fd5b613854878235602084016136cf565b91505092959194509250565b60008060408385031215613872578182fd5b61387b83613726565b91506020830135801515811461388f578182fd5b809150509250929050565b600080604083850312156138ac578182fd5b6138b583613726565b946020939093013593505050565b600060208083850312156138d5578182fd5b82356001600160401b03808211156138eb578384fd5b818501915085601f8301126138fe578384fd5b813581811115613910576139106143c4565b8060051b61391f858201614259565b8281528581019085870183870188018b1015613939578889fd5b8893505b848410156139765780358681111561395357898afd5b6139618c8a838b0101613742565b8452506001939093019291870191870161393d565b509998505050505050505050565b60008060006101c08486031215613999578283fd5b84601f8501126139a7578283fd5b6040516101808082016001600160401b03811183821017156139cb576139cb6143c4565b60405285018186888311156139de578687fd5b865b600c8110156139ff5781358352602092830192909101906001016139e0565b50929891359750506101a09590950135949350505050565b600060208284031215613a28578081fd5b5035919050565b60008060408385031215613a41578182fd5b823591506137a460208401613726565b600060208284031215613a62578081fd5b8135611236816143da565b600060208284031215613a7e578081fd5b8151611236816143da565b600060208284031215613a9a578081fd5b81356001600160401b03811115613aaf578182fd5b61271984828501613742565b600060208284031215613acc578081fd5b5051919050565b60008151808452613aeb8160208601602086016142eb565b601f01601f19169290920160200192915050565b60008151613b118185602086016142eb565b9290920192915050565b60008351613b2d8184602088016142eb565b835190830190613b418183602088016142eb565b01949350505050565b60008451613b5c8184602089016142eb565b845190830190613b708183602089016142eb565b8451910190613b838183602088016142eb565b0195945050505050565b60008351613b9f8184602088016142eb565b835190830190613bb38183602088016142eb565b7f22202f3e3c7465787420783d2231302220793d2232302220636c6173733d226291019081526430b9b2911f60d91b6020820152602501949350505050565b60008251613c048184602087016142eb565b6c1e17ba32bc3a1f1e17b9bb339f60991b920191825250600d01919050565b60008251613c358184602087016142eb565b796c6f6c615f69735f7468655f706572666563746573745f646f6760301b920191825250601a01919050565b60008351613c738184602088016142eb565b693d913b30b63ab2911d1160b11b9083019081528351613c9a81600a8401602088016142eb565b62089f4b60ea1b600a9290910191820152600d01949350505050565b60008351613cc88184602088016142eb565b693d913b30b63ab2911d1160b11b9083019081528351613cef81600a8401602088016142eb565b62227d5d60e81b600a9290910191820152600d01949350505050565b6f7b226e616d65223a202253333344202360801b81528351600090613d378160108501602089016142eb565b7f222c20226465736372697074696f6e223a202253333344206973206120636f6c6010918401918201527f6c656374696f6e206f662072616e646f6d697a6564207365656420706872617360308201527f65732067656e65726174656420616e642073746f726564206f6e2d636861696e60508201527f2e20533333442063616e206265207573656420666f7220726964646c6573206160708201527f6e642070757a7a6c65732e20596f752063616e2075736520697420666f72206160908201527f6e797468696e6720796f752077616e742e20497427732061207365656420706860b08201527f726173652e20497427732066756e2e222c2022696d616765223a20226461746160d0820152750e9a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b60521b60f0820152613eaa613e9d613e97613e7b610106850189613aff565b6f011161130ba3a3934b13aba32b9911d160851b815260100190565b86613aff565b607d60f81b815260010190565b9695505050505050565b605b60f81b81527f7b2274726169745f74797065223a22436f6c6f72222c202276616c7565223a22600182015260008251613ef68160218501602087016142eb565b62089f4b60ea1b6021939091019283015250602401919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613f4881601d8501602087016142eb565b91909101601d0192915050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351613f878160178501602088016142eb565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613fb88160288401602088016142eb565b01602801949350505050565b761e17ba32bc3a1f1e3a32bc3a103c1e91189811103c9e9160491b81528151600090613ff78160178501602087016142eb565b6e111031b630b9b99e913130b9b2911f60891b6017939091019283015250602601919050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613eaa90830184613ad3565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b818110156140b557835183529284019291840191600101614099565b50909695505050505050565b6020815260006112366020830184613ad3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526024908201527f536565643a20616c6c20676d34323020746f6b656e7320776572652072656465604082015263195b595960e21b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526018908201527714d959590e881c1c99481b5a5b9d081a5cc81c185d5cd95960421b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715614281576142816143c4565b604052919050565b6000821982111561429c5761429c614398565b500190565b6000826142b0576142b06143ae565b500490565b60008160001904831182151516156142cf576142cf614398565b500290565b6000828210156142e6576142e6614398565b500390565b60005b838110156143065781810151838201526020016142ee565b838111156116dd5750506000910152565b60008161432657614326614398565b506000190190565b600181811c9082168061434257607f821691505b6020821081141561436357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561437d5761437d614398565b5060010190565b600082614393576143936143ae565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461254057600080fdfe86024e89529ee90561d266fe70772355cdf7be9c9e97e3ac6b5d90ddbc85336522a928440597a4bd641c7e80f18a0c9a9e1139204ab57558d75cff3700a591bb4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22a26469706673582212205062a14f1cc919b45b48980c05ea6720c096f9f88c80f5a0dcaf9d90f01127be64736f6c63430008040033

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

000000000000000000000000d739429bfbdef8f25280bee993c6f5fb2e884a3b000000000000000000000000a422bfff5daba6eeefaff84debf609edf0868c5f000000000000000000000000fb4ccb3e948fed6946fc528ba806e737edc938c4

-----Decoded View---------------
Arg [0] : lolabs_team (address): 0xD739429bfBDEF8F25280bee993c6F5FB2E884A3b
Arg [1] : splitter (address): 0xA422bfFF5dABa6eeeFAFf84Debf609Edf0868C5f
Arg [2] : gm420_contract (address): 0xFB4ccb3e948FEd6946fC528bA806e737eDc938c4

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000d739429bfbdef8f25280bee993c6f5fb2e884a3b
Arg [1] : 000000000000000000000000a422bfff5daba6eeefaff84debf609edf0868c5f
Arg [2] : 000000000000000000000000fb4ccb3e948fed6946fc528ba806e737edc938c4


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.