POL Price: $0.212914 (+0.36%)
 

Overview

Max Total Supply

532,499,999.999999999999999996 $SLIVER

Holders

40 (0.00%)

Total Transfers

-

Market

Price

$0.00 @ 0.000000 POL

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

$SLIVER is the official in-game currency and governance token of Lucky Races.

Contract Source Code Verified (Exact Match)

Contract Name:
SliverChild

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : SliverChild.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "../polygon/IChildToken.sol";
import "../libraries/Utilities.sol";
import "../polygon/AccessControlMixin.sol";
import "../polygon/NativeMetaTransaction.sol";
import "../polygon/ContextMixin.sol";

contract SliverChild is
    ERC20,
    IChildToken,
    AccessControlMixin,
    NativeMetaTransaction,
    ContextMixin
{
    bytes32 public constant DEPOSITOR_ROLE = keccak256("DEPOSITOR_ROLE");

    address private creators;
    address private playToEarn;
    address private minting;
    address private marketing;

    uint256 public totalCreatorsSupply;
    uint256 public totalPlayToEarnSupply;
    uint256 public totalMintingSupply;
    uint256 public totalMarketingSupply;

    uint256 public totalCreatorsDistribution;
    uint256 public totalPlayToEarnDistribution;
    uint256 public totalMintingDistribution;
    uint256 public totalMarketingDistribution;

    uint256 public mintDate;

    uint256 public lastCreatorsDistribution;
    uint256 public lastPlayToEarnDistribution;
    uint256 public lastMintingDistribution;
    uint256 public lastMarketingDistribution;

    uint256 private creatorsReleaseInterval;
    uint256 private playToEarnReleaseInterval;
    uint256 private mintingReleaseInterval;
    uint256 private marketingReleaseInterval;

    uint256 private creatorsReleaseSegments;
    uint256 private playToEarnReleaseSegments;
    uint256 private mintingReleaseSegments;
    uint256 private marketingReleaseSegments;

    uint256 public creatorsDistributionAmount;
    uint256 public playToEarnDistributionAmount;
    uint256 public mintingDistributionAmount;
    uint256 public marketingDistributionAmount;

    constructor(
        string memory name_,
        string memory symbol_,
        address childChainManager_,
        address _creators,
        address _playToEarn,
        address _minting,
        address _marketing
    ) ERC20(name_, symbol_) {
        _setupContractId("SliverChild");
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(DEPOSITOR_ROLE, childChainManager_);
        _initializeEIP712(name_);

        mintDate = block.timestamp;
        uint256 DAYS = 60 * 60 * 24;
        uint256 MONTHS = DAYS * 30;

        creatorsReleaseInterval = 30 * DAYS;
        creatorsReleaseSegments = 24;

        playToEarnReleaseInterval = 6 * MONTHS;
        playToEarnReleaseSegments = 4;

        mintingReleaseInterval = 3 * MONTHS;
        mintingReleaseSegments = 4;

        marketingReleaseInterval = 30 * DAYS;
        marketingReleaseSegments = 24;

        creators = _creators;
        playToEarn = _playToEarn;
        minting = _minting;
        marketing = _marketing;

        uint256 supply = 2170000000 * 10**18; //2,170,000,000 $SLVR

        totalMintingSupply = supply / 10; // 10%
        totalCreatorsSupply = supply / 5; // 20%
        totalPlayToEarnSupply = 1302000000 * 10**18; // 60%
        totalMarketingSupply = supply / 10; // 10%

        creatorsDistributionAmount =
            totalCreatorsSupply /
            creatorsReleaseSegments;
        playToEarnDistributionAmount =
            totalPlayToEarnSupply /
            playToEarnReleaseSegments;
        mintingDistributionAmount = totalMintingSupply / mintingReleaseSegments;
        marketingDistributionAmount =
            totalMarketingSupply /
            marketingReleaseSegments;

        _mint(creators, creatorsDistributionAmount);
        _mint(playToEarn, playToEarnDistributionAmount);
        _mint(minting, mintingDistributionAmount);
        _mint(marketing, marketingDistributionAmount);

        totalCreatorsDistribution += creatorsDistributionAmount;
        totalPlayToEarnDistribution += playToEarnDistributionAmount;
        totalMintingDistribution += mintingDistributionAmount;
        totalMarketingDistribution += marketingDistributionAmount;

        lastCreatorsDistribution = block.timestamp;
        lastPlayToEarnDistribution = block.timestamp;
        lastMintingDistribution = block.timestamp;
        lastMarketingDistribution = block.timestamp;
    }

    function canDistributeCreatorsTokens()
        public
        view
        returns (bool canDistribute)
    {
        canDistribute = false;
        if (
            block.timestamp >=
            (lastCreatorsDistribution + creatorsReleaseInterval) &&
            totalCreatorsDistribution < totalCreatorsSupply
        ) {
            canDistribute = true;
        }
    }

    function canDistributePlayToEarnTokens()
        public
        view
        returns (bool canDistribute)
    {
        canDistribute = false;
        if (
            block.timestamp >=
            (lastPlayToEarnDistribution + playToEarnReleaseInterval) &&
            totalPlayToEarnDistribution < totalPlayToEarnSupply
        ) {
            canDistribute = true;
        }
    }

    function canDistributeMintingTokens()
        public
        view
        returns (bool canDistribute)
    {
        canDistribute = false;
        if (
            block.timestamp >=
            (lastMintingDistribution + mintingReleaseInterval) &&
            totalMintingDistribution < totalMintingSupply
        ) {
            canDistribute = true;
        }
    }

    function canDistributeMarketingTokens()
        public
        view
        returns (bool canDistribute)
    {
        canDistribute = false;
        if (
            block.timestamp >=
            (lastMarketingDistribution + marketingReleaseInterval) &&
            totalMarketingDistribution < totalMarketingSupply
        ) {
            canDistribute = true;
        }
    }

    function distributionsAvailable() public view returns (bool available) {
        available = false;
        if (
            canDistributeCreatorsTokens() ||
            canDistributePlayToEarnTokens() ||
            canDistributeMintingTokens() ||
            canDistributeMarketingTokens()
        ) {
            available = true;
        }
    }

    function distributeAllTokens() public {
        require(
            distributionsAvailable(),
            "All current distributions have been made"
        );
        distributeCreatorsTokens();
        distributePlayToEarnTokens();
        distributeMintingTokens();
        distributeMarketingTokens();
    }

    function distributeCreatorsTokens() public {
        if (canDistributeCreatorsTokens()) {
            uint256 distributionQty = creatorsDistributionAmount;
            // Subtraction okay, canDistributeCreatorsTokens only returns true if supply > distribution
            uint256 remainingSupply = totalCreatorsSupply -
                totalCreatorsDistribution;
            if (remainingSupply < creatorsDistributionAmount) {
                //distribute the remaining amount
                distributionQty = remainingSupply;
            }
            _mint(creators, distributionQty);
            totalCreatorsDistribution += distributionQty;
            lastCreatorsDistribution = block.timestamp;
        }
    }

    function distributePlayToEarnTokens() public {
        if (canDistributePlayToEarnTokens()) {
            uint256 distributionQty = playToEarnDistributionAmount;
            uint256 remainingSupply = totalPlayToEarnSupply -
                totalPlayToEarnDistribution;
            if (remainingSupply < playToEarnDistributionAmount) {
                distributionQty = remainingSupply;
            }
            _mint(playToEarn, distributionQty);
            totalPlayToEarnDistribution += distributionQty;
            lastPlayToEarnDistribution = block.timestamp;
        }
    }

    function distributeMintingTokens() public {
        if (canDistributeMintingTokens()) {
            uint256 distributionQty = mintingDistributionAmount;
            uint256 remainingSupply = totalMintingSupply -
                totalMintingDistribution;
            if (remainingSupply < mintingDistributionAmount) {
                distributionQty = remainingSupply;
            }
            _mint(minting, distributionQty);
            totalMintingDistribution += distributionQty;
            lastMintingDistribution = block.timestamp;
        }
    }

    function distributeMarketingTokens() public {
        if (canDistributeMarketingTokens()) {
            uint256 distributionQty = marketingDistributionAmount;
            uint256 remainingSupply = totalMarketingSupply -
                totalMarketingDistribution;
            if (remainingSupply < marketingDistributionAmount) {
                distributionQty = remainingSupply;
            }
            _mint(marketing, distributionQty);
            totalMarketingDistribution += distributionQty;
            lastMarketingDistribution = block.timestamp;
        }
    }

    // This is to support Native meta transactions
    // never use msg.sender directly, use _msgSender() instead
    function __msgSender() internal view returns (address payable sender) {
        return ContextMixin.msgSender();
    }

    /**
     * @notice called when token is deposited on root chain
     * @dev Should be callable only by ChildChainManager
     * Should handle deposit by minting the required amount for user
     * Make sure minting is done only by this function
     * @param user user address for whom deposit is being done
     * @param depositData abi encoded amount
     */
    function deposit(address user, bytes calldata depositData)
        external
        override
        only(DEPOSITOR_ROLE)
    {
        uint256 amount = abi.decode(depositData, (uint256));
        _mint(user, amount);
    }

    /**
     * @notice called when user wants to withdraw tokens back to root chain
     * @dev Should burn user's tokens. This transaction will be verified when exiting on root chain
     * @param amount amount of tokens to withdraw
     */
    function withdraw(uint256 amount) external {
        _burn(__msgSender(), amount);
    }
}

File 2 of 19 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH =
        keccak256(
            bytes(
                "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
            )
        );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 3 of 19 : Initializable.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

File 4 of 19 : IChildToken.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

interface IChildToken {
    function deposit(address user, bytes calldata depositData) external;
}

File 5 of 19 : EIP712Base.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string public constant ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH =
        keccak256(
            bytes(
                "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
            )
        );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contractsa that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(string memory name) internal initializer {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 6 of 19 : ContextMixin.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

abstract contract ContextMixin {
    function msgSender() internal view returns (address payable sender) {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 7 of 19 : AccessControlMixin.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";

contract AccessControlMixin is AccessControlEnumerable {
    string private _revertMsg;

    function _setupContractId(string memory contractId) internal {
        _revertMsg = string(
            abi.encodePacked(contractId, ": INSUFFICIENT_PERMISSIONS")
        );
    }

    modifier only(bytes32 role) {
        require(hasRole(role, _msgSender()), _revertMsg);
        _;
    }
}

File 8 of 19 : Utilities.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";

library Utilities {
    using SafeMath for uint256;

    /* Utilities */

    //TODO: use openzeppelin strings for uintToString

    function uintToString(uint256 v) public pure returns (string memory str) {
        uint256 maxlength = 100;
        bytes memory reversed = new bytes(maxlength);
        uint256 i = 0;
        while (v != 0) {
            uint256 remainder = v % 10;
            v = v / 10;
            reversed[i++] = bytes1(uint8(48 + remainder));
        }
        bytes memory s = new bytes(i + 1);
        for (uint256 j = 0; j <= i; j++) {
            s[j] = reversed[i - j];
        }
        str = string(s);
    }

    function stringToUint(string memory s)
        public
        pure
        returns (uint256 result)
    {
        bytes memory b = bytes(s);
        uint8 i;
        result = 0;
        for (i = 0; i < b.length; i++) {
            uint8 c = uint8(b[i]);
            if (c >= 48 && c <= 57) {
                result = result * 10 + (c - 48);
            }
        }
    }

    function stringLength(string memory s)
        public
        pure
        returns (uint256 length)
    {
        return bytes(s).length;
    }

    function substring(
        string memory str,
        uint256 startIndex,
        uint256 endIndex
    ) public pure returns (string memory s) {
        bytes memory strBytes = bytes(str);
        bytes memory result = new bytes(endIndex - startIndex);
        for (uint256 i = startIndex; i < endIndex; i++) {
            result[i - startIndex] = strBytes[i];
        }
        return string(result);
    }

    function average(uint256 a, uint256 b) public pure returns (uint256) {
        return (a + b) / 2;
    }
}

File 9 of 19 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 10 of 19 : 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 11 of 19 : 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 12 of 19 : 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 13 of 19 : 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 14 of 19 : 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 15 of 19 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 16 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 17 of 19 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens 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 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 18 of 19 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable {
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {grantRole} to track enumerable memberships
     */
    function grantRole(bytes32 role, address account) public virtual override {
        super.grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {revokeRole} to track enumerable memberships
     */
    function revokeRole(bytes32 role, address account) public virtual override {
        super.revokeRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {renounceRole} to track enumerable memberships
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        super.renounceRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {_setupRole} to track enumerable memberships
     */
    function _setupRole(bytes32 role, address account) internal virtual override {
        super._setupRole(role, account);
        _roleMembers[role].add(account);
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);

    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    function grantRole(bytes32 role, address account) external;

    function revokeRole(bytes32 role, address account) external;

    function renounceRole(bytes32 role, address account) external;
}

/**
 * @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 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 {_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 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]{20}) is missing role (0x[0-9a-f]{32})$/
     *
     * _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]{20}) is missing role (0x[0-9a-f]{32})$/
     */
    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 {
        emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = 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());
        }
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"childChainManager_","type":"address"},{"internalType":"address","name":"_creators","type":"address"},{"internalType":"address","name":"_playToEarn","type":"address"},{"internalType":"address","name":"_minting","type":"address"},{"internalType":"address","name":"_marketing","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPOSITOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canDistributeCreatorsTokens","outputs":[{"internalType":"bool","name":"canDistribute","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canDistributeMarketingTokens","outputs":[{"internalType":"bool","name":"canDistribute","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canDistributeMintingTokens","outputs":[{"internalType":"bool","name":"canDistribute","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canDistributePlayToEarnTokens","outputs":[{"internalType":"bool","name":"canDistribute","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creatorsDistributionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes","name":"depositData","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeCreatorsTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeMarketingTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeMintingTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributePlayToEarnTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributionsAvailable","outputs":[{"internalType":"bool","name":"available","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastCreatorsDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastMarketingDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastMintingDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPlayToEarnDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingDistributionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingDistributionAmount","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":"playToEarnDistributionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCreatorsDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCreatorsSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMarketingDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMarketingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintingDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPlayToEarnDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPlayToEarnSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526008805460ff191690553480156200001b57600080fd5b5060405162002fe138038062002fe18339810160408190526200003e9162000865565b86518790879062000057906003906020850190620006c8565b5080516200006d906004906020840190620006c8565b505060408051808201909152600b81526a14db1a5d995c90da1a5b1960aa1b60208201526200009d91506200033a565b620000aa60003362000377565b620000d67f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a98662000377565b620000e187620003ba565b42601755620151806000620000f882601e62000942565b90506200010782601e62000942565b601c5560186020556200011c81600662000942565b601d5560046021556200013181600362000942565b601e90815560046022556200014890839062000942565b601f556018602355600b80546001600160a01b038089166001600160a01b031992831617909255600c8054888416908316179055600d8054878416908316179055600e8054928616929091169190911790556b0702fb5fb6f51646ba000000620001b4600a8262000964565b601155620001c460058262000964565b600f556b0434fd396dc64090d6000000601055620001e4600a8262000964565b601255602054600f54620001f9919062000964565b6024556021546010546200020e919062000964565b60255560225460115462000223919062000964565b60265560235460125462000238919062000964565b602755600b5460245462000256916001600160a01b0316906200041f565b600c5460255462000271916001600160a01b0316906200041f565b600d546026546200028c916001600160a01b0316906200041f565b600e54602754620002a7916001600160a01b0316906200041f565b60245460136000828254620002bd919062000987565b909155505060255460148054600090620002d990849062000987565b909155505060265460158054600090620002f590849062000987565b9091555050602754601680546000906200031190849062000987565b90915550504260188190556019819055601a819055601b555062000a2298505050505050505050565b806040516020016200034d9190620009a2565b6040516020818303038152906040526007908051906020019062000373929190620006c8565b5050565b6200038e82826200050460201b620012361760201c565b6000828152600660209081526040909120620003b59183906200124462000510821b17901c565b505050565b60085460ff1615620004045760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b60448201526064015b60405180910390fd5b6200040f8162000530565b506008805460ff19166001179055565b6001600160a01b038216620004775760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620003fb565b80600260008282546200048b919062000987565b90915550506001600160a01b03821660009081526020819052604081208054839290620004ba90849062000987565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b620003738282620005d2565b600062000527836001600160a01b03841662000676565b90505b92915050565b6040518060800160405280604f815260200162002f92604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600955565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16620003735760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620006323390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054620006bf575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200052a565b5060006200052a565b828054620006d690620009e5565b90600052602060002090601f016020900481019282620006fa576000855562000745565b82601f106200071557805160ff191683800117855562000745565b8280016001018555821562000745579182015b828111156200074557825182559160200191906001019062000728565b506200075392915062000757565b5090565b5b8082111562000753576000815560010162000758565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620007a157818101518382015260200162000787565b83811115620007b1576000848401525b50505050565b600082601f830112620007c957600080fd5b81516001600160401b0380821115620007e657620007e66200076e565b604051601f8301601f19908116603f011681019082821181831017156200081157620008116200076e565b816040528381528660208588010111156200082b57600080fd5b6200083e84602083016020890162000784565b9695505050505050565b80516001600160a01b03811681146200086057600080fd5b919050565b600080600080600080600060e0888a0312156200088157600080fd5b87516001600160401b03808211156200089957600080fd5b620008a78b838c01620007b7565b985060208a0151915080821115620008be57600080fd5b50620008cd8a828b01620007b7565b965050620008de6040890162000848565b9450620008ee6060890162000848565b9350620008fe6080890162000848565b92506200090e60a0890162000848565b91506200091e60c0890162000848565b905092959891949750929550565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156200095f576200095f6200092c565b500290565b6000826200098257634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156200099d576200099d6200092c565b500190565b60008251620009b681846020870162000784565b7f3a20494e53554646494349454e545f5045524d495353494f4e53000000000000920191825250601a01919050565b600181811c90821680620009fa57607f821691505b6020821081141562000a1c57634e487b7160e01b600052602260045260246000fd5b50919050565b6125608062000a326000396000f3fe60806040526004361061034f5760003560e01c80634740227d116101c6578063adaf1e3f116100f7578063d547741f11610095578063dd62ed3e1161006f578063dd62ed3e1461090d578063e2649ce814610953578063eb3ede9b14610968578063f2f9409a1461097e57600080fd5b8063d547741f146108c3578063db9b6482146108e3578063dba4ff4b146108f857600080fd5b8063c6f346e8116100d1578063c6f346e814610857578063ca15c8731461086d578063cef0042f1461088d578063cf2c52cb146108a357600080fd5b8063adaf1e3f14610815578063bca7a2fd1461082b578063c06154501461084157600080fd5b806391d1485411610164578063a217fddf1161013e578063a217fddf1461078c578063a3b0b5a3146107a1578063a457c2d7146107d5578063a9059cbb146107f557600080fd5b806391d148541461074157806395d89b411461076157806398fafb2e1461077657600080fd5b8063752cc1b4116101a0578063752cc1b4146106c85780638491be31146106de57806384dc010e146106f35780639010d07c1461070957600080fd5b80634740227d146106685780636f6689d41461067d57806370a082311461069257600080fd5b806323726533116102a05780632f2ff15d1161023e57806336568abe1161021857806336568abe146105fd578063395093511461061d5780633bb95b2a1461063d57806346a35c5c1461065257600080fd5b80632f2ff15d146105ae578063313ce567146105ce5780633408e470146105ea57600080fd5b80632917f66b1161027a5780632917f66b1461052d5780632bfaa0c4146105425780632d0335ab146105585780632e1a7d4d1461058e57600080fd5b806323726533146104c757806323b872dd146104dd578063248a9ca3146104fd57600080fd5b806309bdce1d1161030d5780630f7e5970116102e75780630f7e59701461045a57806318160ddd146104875780631e8842381461049c57806320379ee5146104b257600080fd5b806309bdce1d1461041a5780630bdae093146104315780630c53c51c1461044757600080fd5b8062a62ef51461035457806301cf9b8a1461037e57806301ffc9a7146103a2578063038dfb74146103c257806306fdde03146103d8578063095ea7b3146103fa575b600080fd5b34801561036057600080fd5b50610369610994565b60405190151581526020015b60405180910390f35b34801561038a57600080fd5b5061039460195481565b604051908152602001610375565b3480156103ae57600080fd5b506103696103bd366004611f0d565b6109c4565b3480156103ce57600080fd5b50610394600f5481565b3480156103e457600080fd5b506103ed6109ef565b6040516103759190611f8f565b34801561040657600080fd5b50610369610415366004611fbe565b610a81565b34801561042657600080fd5b5061042f610a97565b005b34801561043d57600080fd5b5061039460145481565b6103ed61045536600461200f565b610aff565b34801561046657600080fd5b506103ed604051806040016040528060018152602001603160f81b81525081565b34801561049357600080fd5b50600254610394565b3480156104a857600080fd5b5061039460135481565b3480156104be57600080fd5b50600954610394565b3480156104d357600080fd5b5061039460155481565b3480156104e957600080fd5b506103696104f83660046120f5565b610cee565b34801561050957600080fd5b50610394610518366004612131565b60009081526005602052604090206001015490565b34801561053957600080fd5b5061042f610d98565b34801561054e57600080fd5b5061039460125481565b34801561056457600080fd5b5061039461057336600461214a565b6001600160a01b03166000908152600a602052604090205490565b34801561059a57600080fd5b5061042f6105a9366004612131565b610e1d565b3480156105ba57600080fd5b5061042f6105c9366004612165565b610e31565b3480156105da57600080fd5b5060405160128152602001610375565b3480156105f657600080fd5b5046610394565b34801561060957600080fd5b5061042f610618366004612165565b610e58565b34801561062957600080fd5b50610369610638366004611fbe565b610e7a565b34801561064957600080fd5b50610369610eb6565b34801561065e57600080fd5b5061039460275481565b34801561067457600080fd5b50610369610ee4565b34801561068957600080fd5b5061042f610f18565b34801561069e57600080fd5b506103946106ad36600461214a565b6001600160a01b031660009081526020819052604090205490565b3480156106d457600080fd5b5061039460115481565b3480156106ea57600080fd5b5061042f610f7f565b3480156106ff57600080fd5b5061039460255481565b34801561071557600080fd5b50610729610724366004612191565b610fe6565b6040516001600160a01b039091168152602001610375565b34801561074d57600080fd5b5061036961075c366004612165565b611005565b34801561076d57600080fd5b506103ed611030565b34801561078257600080fd5b5061039460175481565b34801561079857600080fd5b50610394600081565b3480156107ad57600080fd5b506103947f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a981565b3480156107e157600080fd5b506103696107f0366004611fbe565b61103f565b34801561080157600080fd5b50610369610810366004611fbe565b6110d8565b34801561082157600080fd5b5061039460245481565b34801561083757600080fd5b50610394601a5481565b34801561084d57600080fd5b5061039460265481565b34801561086357600080fd5b5061039460165481565b34801561087957600080fd5b50610394610888366004612131565b6110e5565b34801561089957600080fd5b5061039460185481565b3480156108af57600080fd5b5061042f6108be3660046121b3565b6110fc565b3480156108cf57600080fd5b5061042f6108de366004612165565b611169565b3480156108ef57600080fd5b50610369611173565b34801561090457600080fd5b506103696111a1565b34801561091957600080fd5b50610394610928366004612236565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561095f57600080fd5b5061042f6111cf565b34801561097457600080fd5b50610394601b5481565b34801561098a57600080fd5b5061039460105481565b6000601e54601a546109a69190612276565b42101580156109b85750601154601554105b156109c1575060015b90565b60006001600160e01b03198216635a05180f60e01b14806109e957506109e982611259565b92915050565b6060600380546109fe9061228e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2a9061228e565b8015610a775780601f10610a4c57610100808354040283529160200191610a77565b820191906000526020600020905b815481529060010190602001808311610a5a57829003601f168201915b5050505050905090565b6000610a8e33848461128e565b50600192915050565b610a9f610eb6565b15610afd57602454601354600f54600091610ab9916122c9565b9050602454811015610ac9578091505b600b54610adf906001600160a01b0316836113b2565b8160136000828254610af19190612276565b90915550504260185550505b565b60408051606081810183526001600160a01b0388166000818152600a602090815290859020548452830152918101869052610b3d8782878787611491565b610b985760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084015b60405180910390fd5b6001600160a01b0387166000908152600a6020526040902054610bbc906001611581565b6001600160a01b0388166000908152600a60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610c0c90899033908a906122e0565b60405180910390a1600080306001600160a01b0316888a604051602001610c34929190612315565b60408051601f1981840301815290829052610c4e9161234c565b6000604051808303816000865af19150503d8060008114610c8b576040519150601f19603f3d011682016040523d82523d6000602084013e610c90565b606091505b509150915081610ce25760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610b8f565b98975050505050505050565b6000610cfb84848461158d565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610d805760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610b8f565b610d8d853385840361128e565b506001949350505050565b610da0610ee4565b610dfd5760405162461bcd60e51b815260206004820152602860248201527f416c6c2063757272656e7420646973747269627574696f6e732068617665206260448201526765656e206d61646560c01b6064820152608401610b8f565b610e05610a97565b610e0d610f7f565b610e15610f18565b610afd6111cf565b610e2e610e2861175d565b8261176c565b50565b610e3b82826118ba565b6000828152600660205260409020610e539082611244565b505050565b610e6282826118e0565b6000828152600660205260409020610e53908261195a565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610a8e918590610eb1908690612276565b61128e565b6000601c54601854610ec89190612276565b42101580156109b85750600f5460135410156109c15750600190565b6000610eee610eb6565b80610efc5750610efc6111a1565b80610f0a5750610f0a610994565b806109b857506109b8611173565b610f20610994565b15610afd57602654601554601154600091610f3a916122c9565b9050602654811015610f4a578091505b600d54610f60906001600160a01b0316836113b2565b8160156000828254610f729190612276565b909155505042601a555050565b610f876111a1565b15610afd57602554601454601054600091610fa1916122c9565b9050602554811015610fb1578091505b600c54610fc7906001600160a01b0316836113b2565b8160146000828254610fd99190612276565b9091555050426019555050565b6000828152600660205260408120610ffe908361196f565b9392505050565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546109fe9061228e565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156110c15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b8f565b6110ce338585840361128e565b5060019392505050565b6000610a8e33848461158d565b60008181526006602052604081206109e99061197b565b7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a96111278133611005565b6007906111475760405162461bcd60e51b8152600401610b8f9190612368565b50600061115683850185612131565b905061116285826113b2565b5050505050565b610e628282611985565b6000601f54601b546111859190612276565b42101580156109b8575060125460165410156109c15750600190565b6000601d546019546111b39190612276565b42101580156109b8575060105460145410156109c15750600190565b6111d7611173565b15610afd576027546016546012546000916111f1916122c9565b9050602754811015611201578091505b600e54611217906001600160a01b0316836113b2565b81601660008282546112299190612276565b909155505042601b555050565b61124082826119ab565b5050565b6000610ffe836001600160a01b038416611a31565b60006001600160e01b03198216637965db0b60e01b14806109e957506301ffc9a760e01b6001600160e01b03198316146109e9565b6001600160a01b0383166112f05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b8f565b6001600160a01b0382166113515760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b8f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166114085760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b8f565b806002600082825461141a9190612276565b90915550506001600160a01b03821660009081526020819052604081208054839290611447908490612276565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006001600160a01b0386166114f75760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610b8f565b600161150a61150587611a80565b611afd565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015611558573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000610ffe8284612276565b6001600160a01b0383166115f15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b8f565b6001600160a01b0382166116535760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b8f565b6001600160a01b038316600090815260208190526040902054818110156116cb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b8f565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611702908490612276565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161174e91815260200190565b60405180910390a35b50505050565b6000611767611b2d565b905090565b6001600160a01b0382166117cc5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b8f565b6001600160a01b038216600090815260208190526040902054818110156118405760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b8f565b6001600160a01b038316600090815260208190526040812083830390556002805484929061186f9084906122c9565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000828152600560205260409020600101546118d68133611b89565b610e5383836119ab565b6001600160a01b03811633146119505760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b8f565b6112408282611bed565b6000610ffe836001600160a01b038416611c54565b6000610ffe8383611d47565b60006109e9825490565b6000828152600560205260409020600101546119a18133611b89565b610e538383611bed565b6119b58282611005565b6112405760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556119ed3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054611a78575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109e9565b5060006109e9565b60006040518060800160405280604381526020016124e86043913980516020918201208351848301516040808701518051908601209051611ae0950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000611b0860095490565b60405161190160f01b6020820152602281019190915260428101839052606201611ae0565b600033301415611b8457600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506109c19050565b503390565b611b938282611005565b61124057611bab816001600160a01b03166014611d71565b611bb6836020611d71565b604051602001611bc7929190612410565b60408051601f198184030181529082905262461bcd60e51b8252610b8f91600401611f8f565b611bf78282611005565b156112405760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015611d3d576000611c786001836122c9565b8554909150600090611c8c906001906122c9565b9050818114611cf1576000866000018281548110611cac57611cac612485565b9060005260206000200154905080876000018481548110611ccf57611ccf612485565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611d0257611d0261249b565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506109e9565b60009150506109e9565b6000826000018281548110611d5e57611d5e612485565b9060005260206000200154905092915050565b60606000611d808360026124b1565b611d8b906002612276565b67ffffffffffffffff811115611da357611da3611fe8565b6040519080825280601f01601f191660200182016040528015611dcd576020820181803683370190505b509050600360fc1b81600081518110611de857611de8612485565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611e1757611e17612485565b60200101906001600160f81b031916908160001a9053506000611e3b8460026124b1565b611e46906001612276565b90505b6001811115611ebe576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611e7a57611e7a612485565b1a60f81b828281518110611e9057611e90612485565b60200101906001600160f81b031916908160001a90535060049490941c93611eb7816124d0565b9050611e49565b508315610ffe5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b8f565b600060208284031215611f1f57600080fd5b81356001600160e01b031981168114610ffe57600080fd5b60005b83811015611f52578181015183820152602001611f3a565b838111156117575750506000910152565b60008151808452611f7b816020860160208601611f37565b601f01601f19169290920160200192915050565b602081526000610ffe6020830184611f63565b80356001600160a01b0381168114611fb957600080fd5b919050565b60008060408385031215611fd157600080fd5b611fda83611fa2565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b803560ff81168114611fb957600080fd5b600080600080600060a0868803121561202757600080fd5b61203086611fa2565b9450602086013567ffffffffffffffff8082111561204d57600080fd5b818801915088601f83011261206157600080fd5b81358181111561207357612073611fe8565b604051601f8201601f19908116603f0116810190838211818310171561209b5761209b611fe8565b816040528281528b60208487010111156120b457600080fd5b82602086016020830137600060208483010152809850505050505060408601359250606086013591506120e960808701611ffe565b90509295509295909350565b60008060006060848603121561210a57600080fd5b61211384611fa2565b925061212160208501611fa2565b9150604084013590509250925092565b60006020828403121561214357600080fd5b5035919050565b60006020828403121561215c57600080fd5b610ffe82611fa2565b6000806040838503121561217857600080fd5b8235915061218860208401611fa2565b90509250929050565b600080604083850312156121a457600080fd5b50508035926020909101359150565b6000806000604084860312156121c857600080fd5b6121d184611fa2565b9250602084013567ffffffffffffffff808211156121ee57600080fd5b818601915086601f83011261220257600080fd5b81358181111561221157600080fd5b87602082850101111561222357600080fd5b6020830194508093505050509250925092565b6000806040838503121561224957600080fd5b61225283611fa2565b915061218860208401611fa2565b634e487b7160e01b600052601160045260246000fd5b6000821982111561228957612289612260565b500190565b600181811c908216806122a257607f821691505b602082108114156122c357634e487b7160e01b600052602260045260246000fd5b50919050565b6000828210156122db576122db612260565b500390565b6001600160a01b0384811682528316602082015260606040820181905260009061230c90830184611f63565b95945050505050565b60008351612327818460208801611f37565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b6000825161235e818460208701611f37565b9190910192915050565b600060208083526000845481600182811c91508083168061238a57607f831692505b8583108114156123a857634e487b7160e01b85526022600452602485fd5b8786018381526020018180156123c557600181146123d657612401565b60ff19861682528782019650612401565b60008b81526020902060005b868110156123fb578154848201529085019089016123e2565b83019750505b50949998505050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612448816017850160208801611f37565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612479816028840160208801611f37565b01602801949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60008160001904831182151516156124cb576124cb612260565b500290565b6000816124df576124df612260565b50600019019056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212208309a88903a1e4842a22278e3dc9befcc91cbb85d65334dd3776f32cad7f0c8f64736f6c634300080a0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742900000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000a6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa000000000000000000000000c8c541a79716070aeab0b334eadb24e966d82e2e000000000000000000000000380658b769ab4a5cdf9f665821f5a5f46023ce66000000000000000000000000bbe14592e8e055fa824fdf0f764ec705c3f7db22000000000000000000000000e5034ab71af8a2a401e4a557782ac92b438e245800000000000000000000000000000000000000000000000000000000000000124c75636b7920526163657320536c697665720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000724534c4956455200000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061034f5760003560e01c80634740227d116101c6578063adaf1e3f116100f7578063d547741f11610095578063dd62ed3e1161006f578063dd62ed3e1461090d578063e2649ce814610953578063eb3ede9b14610968578063f2f9409a1461097e57600080fd5b8063d547741f146108c3578063db9b6482146108e3578063dba4ff4b146108f857600080fd5b8063c6f346e8116100d1578063c6f346e814610857578063ca15c8731461086d578063cef0042f1461088d578063cf2c52cb146108a357600080fd5b8063adaf1e3f14610815578063bca7a2fd1461082b578063c06154501461084157600080fd5b806391d1485411610164578063a217fddf1161013e578063a217fddf1461078c578063a3b0b5a3146107a1578063a457c2d7146107d5578063a9059cbb146107f557600080fd5b806391d148541461074157806395d89b411461076157806398fafb2e1461077657600080fd5b8063752cc1b4116101a0578063752cc1b4146106c85780638491be31146106de57806384dc010e146106f35780639010d07c1461070957600080fd5b80634740227d146106685780636f6689d41461067d57806370a082311461069257600080fd5b806323726533116102a05780632f2ff15d1161023e57806336568abe1161021857806336568abe146105fd578063395093511461061d5780633bb95b2a1461063d57806346a35c5c1461065257600080fd5b80632f2ff15d146105ae578063313ce567146105ce5780633408e470146105ea57600080fd5b80632917f66b1161027a5780632917f66b1461052d5780632bfaa0c4146105425780632d0335ab146105585780632e1a7d4d1461058e57600080fd5b806323726533146104c757806323b872dd146104dd578063248a9ca3146104fd57600080fd5b806309bdce1d1161030d5780630f7e5970116102e75780630f7e59701461045a57806318160ddd146104875780631e8842381461049c57806320379ee5146104b257600080fd5b806309bdce1d1461041a5780630bdae093146104315780630c53c51c1461044757600080fd5b8062a62ef51461035457806301cf9b8a1461037e57806301ffc9a7146103a2578063038dfb74146103c257806306fdde03146103d8578063095ea7b3146103fa575b600080fd5b34801561036057600080fd5b50610369610994565b60405190151581526020015b60405180910390f35b34801561038a57600080fd5b5061039460195481565b604051908152602001610375565b3480156103ae57600080fd5b506103696103bd366004611f0d565b6109c4565b3480156103ce57600080fd5b50610394600f5481565b3480156103e457600080fd5b506103ed6109ef565b6040516103759190611f8f565b34801561040657600080fd5b50610369610415366004611fbe565b610a81565b34801561042657600080fd5b5061042f610a97565b005b34801561043d57600080fd5b5061039460145481565b6103ed61045536600461200f565b610aff565b34801561046657600080fd5b506103ed604051806040016040528060018152602001603160f81b81525081565b34801561049357600080fd5b50600254610394565b3480156104a857600080fd5b5061039460135481565b3480156104be57600080fd5b50600954610394565b3480156104d357600080fd5b5061039460155481565b3480156104e957600080fd5b506103696104f83660046120f5565b610cee565b34801561050957600080fd5b50610394610518366004612131565b60009081526005602052604090206001015490565b34801561053957600080fd5b5061042f610d98565b34801561054e57600080fd5b5061039460125481565b34801561056457600080fd5b5061039461057336600461214a565b6001600160a01b03166000908152600a602052604090205490565b34801561059a57600080fd5b5061042f6105a9366004612131565b610e1d565b3480156105ba57600080fd5b5061042f6105c9366004612165565b610e31565b3480156105da57600080fd5b5060405160128152602001610375565b3480156105f657600080fd5b5046610394565b34801561060957600080fd5b5061042f610618366004612165565b610e58565b34801561062957600080fd5b50610369610638366004611fbe565b610e7a565b34801561064957600080fd5b50610369610eb6565b34801561065e57600080fd5b5061039460275481565b34801561067457600080fd5b50610369610ee4565b34801561068957600080fd5b5061042f610f18565b34801561069e57600080fd5b506103946106ad36600461214a565b6001600160a01b031660009081526020819052604090205490565b3480156106d457600080fd5b5061039460115481565b3480156106ea57600080fd5b5061042f610f7f565b3480156106ff57600080fd5b5061039460255481565b34801561071557600080fd5b50610729610724366004612191565b610fe6565b6040516001600160a01b039091168152602001610375565b34801561074d57600080fd5b5061036961075c366004612165565b611005565b34801561076d57600080fd5b506103ed611030565b34801561078257600080fd5b5061039460175481565b34801561079857600080fd5b50610394600081565b3480156107ad57600080fd5b506103947f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a981565b3480156107e157600080fd5b506103696107f0366004611fbe565b61103f565b34801561080157600080fd5b50610369610810366004611fbe565b6110d8565b34801561082157600080fd5b5061039460245481565b34801561083757600080fd5b50610394601a5481565b34801561084d57600080fd5b5061039460265481565b34801561086357600080fd5b5061039460165481565b34801561087957600080fd5b50610394610888366004612131565b6110e5565b34801561089957600080fd5b5061039460185481565b3480156108af57600080fd5b5061042f6108be3660046121b3565b6110fc565b3480156108cf57600080fd5b5061042f6108de366004612165565b611169565b3480156108ef57600080fd5b50610369611173565b34801561090457600080fd5b506103696111a1565b34801561091957600080fd5b50610394610928366004612236565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561095f57600080fd5b5061042f6111cf565b34801561097457600080fd5b50610394601b5481565b34801561098a57600080fd5b5061039460105481565b6000601e54601a546109a69190612276565b42101580156109b85750601154601554105b156109c1575060015b90565b60006001600160e01b03198216635a05180f60e01b14806109e957506109e982611259565b92915050565b6060600380546109fe9061228e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2a9061228e565b8015610a775780601f10610a4c57610100808354040283529160200191610a77565b820191906000526020600020905b815481529060010190602001808311610a5a57829003601f168201915b5050505050905090565b6000610a8e33848461128e565b50600192915050565b610a9f610eb6565b15610afd57602454601354600f54600091610ab9916122c9565b9050602454811015610ac9578091505b600b54610adf906001600160a01b0316836113b2565b8160136000828254610af19190612276565b90915550504260185550505b565b60408051606081810183526001600160a01b0388166000818152600a602090815290859020548452830152918101869052610b3d8782878787611491565b610b985760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084015b60405180910390fd5b6001600160a01b0387166000908152600a6020526040902054610bbc906001611581565b6001600160a01b0388166000908152600a60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610c0c90899033908a906122e0565b60405180910390a1600080306001600160a01b0316888a604051602001610c34929190612315565b60408051601f1981840301815290829052610c4e9161234c565b6000604051808303816000865af19150503d8060008114610c8b576040519150601f19603f3d011682016040523d82523d6000602084013e610c90565b606091505b509150915081610ce25760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610b8f565b98975050505050505050565b6000610cfb84848461158d565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610d805760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610b8f565b610d8d853385840361128e565b506001949350505050565b610da0610ee4565b610dfd5760405162461bcd60e51b815260206004820152602860248201527f416c6c2063757272656e7420646973747269627574696f6e732068617665206260448201526765656e206d61646560c01b6064820152608401610b8f565b610e05610a97565b610e0d610f7f565b610e15610f18565b610afd6111cf565b610e2e610e2861175d565b8261176c565b50565b610e3b82826118ba565b6000828152600660205260409020610e539082611244565b505050565b610e6282826118e0565b6000828152600660205260409020610e53908261195a565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610a8e918590610eb1908690612276565b61128e565b6000601c54601854610ec89190612276565b42101580156109b85750600f5460135410156109c15750600190565b6000610eee610eb6565b80610efc5750610efc6111a1565b80610f0a5750610f0a610994565b806109b857506109b8611173565b610f20610994565b15610afd57602654601554601154600091610f3a916122c9565b9050602654811015610f4a578091505b600d54610f60906001600160a01b0316836113b2565b8160156000828254610f729190612276565b909155505042601a555050565b610f876111a1565b15610afd57602554601454601054600091610fa1916122c9565b9050602554811015610fb1578091505b600c54610fc7906001600160a01b0316836113b2565b8160146000828254610fd99190612276565b9091555050426019555050565b6000828152600660205260408120610ffe908361196f565b9392505050565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546109fe9061228e565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156110c15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b8f565b6110ce338585840361128e565b5060019392505050565b6000610a8e33848461158d565b60008181526006602052604081206109e99061197b565b7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a96111278133611005565b6007906111475760405162461bcd60e51b8152600401610b8f9190612368565b50600061115683850185612131565b905061116285826113b2565b5050505050565b610e628282611985565b6000601f54601b546111859190612276565b42101580156109b8575060125460165410156109c15750600190565b6000601d546019546111b39190612276565b42101580156109b8575060105460145410156109c15750600190565b6111d7611173565b15610afd576027546016546012546000916111f1916122c9565b9050602754811015611201578091505b600e54611217906001600160a01b0316836113b2565b81601660008282546112299190612276565b909155505042601b555050565b61124082826119ab565b5050565b6000610ffe836001600160a01b038416611a31565b60006001600160e01b03198216637965db0b60e01b14806109e957506301ffc9a760e01b6001600160e01b03198316146109e9565b6001600160a01b0383166112f05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b8f565b6001600160a01b0382166113515760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b8f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166114085760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b8f565b806002600082825461141a9190612276565b90915550506001600160a01b03821660009081526020819052604081208054839290611447908490612276565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006001600160a01b0386166114f75760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610b8f565b600161150a61150587611a80565b611afd565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015611558573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000610ffe8284612276565b6001600160a01b0383166115f15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b8f565b6001600160a01b0382166116535760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b8f565b6001600160a01b038316600090815260208190526040902054818110156116cb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b8f565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611702908490612276565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161174e91815260200190565b60405180910390a35b50505050565b6000611767611b2d565b905090565b6001600160a01b0382166117cc5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b8f565b6001600160a01b038216600090815260208190526040902054818110156118405760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b8f565b6001600160a01b038316600090815260208190526040812083830390556002805484929061186f9084906122c9565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000828152600560205260409020600101546118d68133611b89565b610e5383836119ab565b6001600160a01b03811633146119505760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b8f565b6112408282611bed565b6000610ffe836001600160a01b038416611c54565b6000610ffe8383611d47565b60006109e9825490565b6000828152600560205260409020600101546119a18133611b89565b610e538383611bed565b6119b58282611005565b6112405760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556119ed3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054611a78575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109e9565b5060006109e9565b60006040518060800160405280604381526020016124e86043913980516020918201208351848301516040808701518051908601209051611ae0950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000611b0860095490565b60405161190160f01b6020820152602281019190915260428101839052606201611ae0565b600033301415611b8457600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506109c19050565b503390565b611b938282611005565b61124057611bab816001600160a01b03166014611d71565b611bb6836020611d71565b604051602001611bc7929190612410565b60408051601f198184030181529082905262461bcd60e51b8252610b8f91600401611f8f565b611bf78282611005565b156112405760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015611d3d576000611c786001836122c9565b8554909150600090611c8c906001906122c9565b9050818114611cf1576000866000018281548110611cac57611cac612485565b9060005260206000200154905080876000018481548110611ccf57611ccf612485565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611d0257611d0261249b565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506109e9565b60009150506109e9565b6000826000018281548110611d5e57611d5e612485565b9060005260206000200154905092915050565b60606000611d808360026124b1565b611d8b906002612276565b67ffffffffffffffff811115611da357611da3611fe8565b6040519080825280601f01601f191660200182016040528015611dcd576020820181803683370190505b509050600360fc1b81600081518110611de857611de8612485565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611e1757611e17612485565b60200101906001600160f81b031916908160001a9053506000611e3b8460026124b1565b611e46906001612276565b90505b6001811115611ebe576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611e7a57611e7a612485565b1a60f81b828281518110611e9057611e90612485565b60200101906001600160f81b031916908160001a90535060049490941c93611eb7816124d0565b9050611e49565b508315610ffe5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b8f565b600060208284031215611f1f57600080fd5b81356001600160e01b031981168114610ffe57600080fd5b60005b83811015611f52578181015183820152602001611f3a565b838111156117575750506000910152565b60008151808452611f7b816020860160208601611f37565b601f01601f19169290920160200192915050565b602081526000610ffe6020830184611f63565b80356001600160a01b0381168114611fb957600080fd5b919050565b60008060408385031215611fd157600080fd5b611fda83611fa2565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b803560ff81168114611fb957600080fd5b600080600080600060a0868803121561202757600080fd5b61203086611fa2565b9450602086013567ffffffffffffffff8082111561204d57600080fd5b818801915088601f83011261206157600080fd5b81358181111561207357612073611fe8565b604051601f8201601f19908116603f0116810190838211818310171561209b5761209b611fe8565b816040528281528b60208487010111156120b457600080fd5b82602086016020830137600060208483010152809850505050505060408601359250606086013591506120e960808701611ffe565b90509295509295909350565b60008060006060848603121561210a57600080fd5b61211384611fa2565b925061212160208501611fa2565b9150604084013590509250925092565b60006020828403121561214357600080fd5b5035919050565b60006020828403121561215c57600080fd5b610ffe82611fa2565b6000806040838503121561217857600080fd5b8235915061218860208401611fa2565b90509250929050565b600080604083850312156121a457600080fd5b50508035926020909101359150565b6000806000604084860312156121c857600080fd5b6121d184611fa2565b9250602084013567ffffffffffffffff808211156121ee57600080fd5b818601915086601f83011261220257600080fd5b81358181111561221157600080fd5b87602082850101111561222357600080fd5b6020830194508093505050509250925092565b6000806040838503121561224957600080fd5b61225283611fa2565b915061218860208401611fa2565b634e487b7160e01b600052601160045260246000fd5b6000821982111561228957612289612260565b500190565b600181811c908216806122a257607f821691505b602082108114156122c357634e487b7160e01b600052602260045260246000fd5b50919050565b6000828210156122db576122db612260565b500390565b6001600160a01b0384811682528316602082015260606040820181905260009061230c90830184611f63565b95945050505050565b60008351612327818460208801611f37565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b6000825161235e818460208701611f37565b9190910192915050565b600060208083526000845481600182811c91508083168061238a57607f831692505b8583108114156123a857634e487b7160e01b85526022600452602485fd5b8786018381526020018180156123c557600181146123d657612401565b60ff19861682528782019650612401565b60008b81526020902060005b868110156123fb578154848201529085019089016123e2565b83019750505b50949998505050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612448816017850160208801611f37565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612479816028840160208801611f37565b01602801949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60008160001904831182151516156124cb576124cb612260565b500290565b6000816124df576124df612260565b50600019019056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212208309a88903a1e4842a22278e3dc9befcc91cbb85d65334dd3776f32cad7f0c8f64736f6c634300080a0033

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

00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000a6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa000000000000000000000000c8c541a79716070aeab0b334eadb24e966d82e2e000000000000000000000000380658b769ab4a5cdf9f665821f5a5f46023ce66000000000000000000000000bbe14592e8e055fa824fdf0f764ec705c3f7db22000000000000000000000000e5034ab71af8a2a401e4a557782ac92b438e245800000000000000000000000000000000000000000000000000000000000000124c75636b7920526163657320536c697665720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000724534c4956455200000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Lucky Races Sliver
Arg [1] : symbol_ (string): $SLIVER
Arg [2] : childChainManager_ (address): 0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa
Arg [3] : _creators (address): 0xC8c541a79716070AeAb0B334eaDb24e966D82E2E
Arg [4] : _playToEarn (address): 0x380658B769AB4A5Cdf9f665821F5A5f46023ce66
Arg [5] : _minting (address): 0xbBE14592E8E055FA824Fdf0f764ec705c3f7db22
Arg [6] : _marketing (address): 0xE5034aB71Af8a2A401E4a557782ac92b438e2458

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 000000000000000000000000a6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa
Arg [3] : 000000000000000000000000c8c541a79716070aeab0b334eadb24e966d82e2e
Arg [4] : 000000000000000000000000380658b769ab4a5cdf9f665821f5a5f46023ce66
Arg [5] : 000000000000000000000000bbe14592e8e055fa824fdf0f764ec705c3f7db22
Arg [6] : 000000000000000000000000e5034ab71af8a2a401e4a557782ac92b438e2458
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [8] : 4c75636b7920526163657320536c697665720000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [10] : 24534c4956455200000000000000000000000000000000000000000000000000


Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.