ETH Price: $3,226.10 (-0.89%)
Gas: 26 Gwei

Token

 

Overview

Max Total Supply

514

Holders

208

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
mintsniper.eth
0xA8e2A4F1356Ce4715275Da00Ab53De1D3761E402
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
RemixBurnRewards

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 22 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 2 of 22 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 3 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 22 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 22 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 22 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

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

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

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

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 7 of 22 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 8 of 22 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 22 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 10 of 22 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates weither any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_mint}.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._mint(account, id, amount, data);
        _totalSupply[id] += amount;
    }

    /**
     * @dev See {ERC1155-_mintBatch}.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._mintBatch(to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] += amounts[i];
        }
    }

    /**
     * @dev See {ERC1155-_burn}.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override {
        super._burn(account, id, amount);
        _totalSupply[id] -= amount;
    }

    /**
     * @dev See {ERC1155-_burnBatch}.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override {
        super._burnBatch(account, ids, amounts);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] -= amounts[i];
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 12 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 22 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 22 : 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 22 : 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 16 of 22 : 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 17 of 22 : 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 18 of 22 : RemixBurnRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

// ========== Imports ==========
import "./access/AdminControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "./interfaces/IERC721Burnable.sol";
import "./interfaces/IERC1155Burnable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";


contract RemixBurnRewards is ERC1155, ERC1155Burnable, ERC1155Supply, Pausable, ReentrancyGuard, AdminControl, Ownable {
  using Strings for uint256;

  uint16 constant MAX_SUPPORTED_TOKENS = 65000;

  // ========== Mutable Variables ==========

  string public baseURI;
  mapping(uint16 => uint16) public numClaimsByTokenID;
  mapping(uint16 => uint16) public maximumSupplyByTokenID;

  enum ContractType {
    ERC721,
    ERC1155
  }

  struct BurnEdition {
    address contractAddress;
    uint16 tokenCost; // Number of tokens to burn to claim an edition
    ContractType contractType;
    uint16 supportedToken;
  }
  mapping(uint16 => BurnEdition) public burnEditions;
  uint16 public numBurnEditions;

  // ========== Events ==========
  event ClaimedPhysicalEdition(address indexed burner, uint16 editionId, uint16 tokenId);

  // ========== Constructor ==========

  constructor(
  ) ERC1155(baseURI)
  {
    baseURI = "https://storageapi.fleek.co/apedao-bucket/remix-rewards/";
    numBurnEditions = 0;
    
    _pause();
  }

  // ========== Claiming ==========

  function burnForPhysical(uint16[] calldata _burnTokenIds, uint16 editionId, uint16 editionTokenId, bool claimNFT) public whenNotPaused nonReentrant {
    require(editionId <= numBurnEditions, "Edition not found");
    require(_burnTokenIds.length > 0, "No tokens to burn");

    BurnEdition storage edition = burnEditions[editionId];

    require(edition.supportedToken == editionTokenId, "Token Id is not supported for edition");

    // Calculate quantity
    require(_burnTokenIds.length % edition.tokenCost == 0, "Quantity must be a multiple of token cost");
    uint16 _quantity = uint16(_burnTokenIds.length) / edition.tokenCost;

    // Can only claim if there is supply remaining
    numClaimsByTokenID[editionTokenId] += _quantity;
    require(numClaimsByTokenID[editionTokenId] <= maximumSupplyByTokenID[editionTokenId], "Not enough tokens remaining");

    // Check that tokens are owned by the caller and burn
    if(edition.contractType == ContractType.ERC721) {
      IERC721Burnable supportedContract = IERC721Burnable(edition.contractAddress);
      for (uint16 i=0; i < _burnTokenIds.length; i++) {
        supportedContract.burn(_burnTokenIds[i]);
      }
    } else if (edition.contractType == ContractType.ERC1155) {
      IERC1155Burnable supportedContract = IERC1155Burnable(edition.contractAddress);
      for (uint16 i=0; i < _burnTokenIds.length; i++) {
        supportedContract.burn(msg.sender, _burnTokenIds[i], 1);
      }
    }
    
    if(claimNFT) {
      _mint(msg.sender, editionTokenId, _quantity, "");
    }

    emit ClaimedPhysicalEdition(msg.sender, editionId, editionTokenId);
  }

  // ========== Public Methods ==========

  function getMaximumSupply(uint16 tokenId) public view returns (uint16) {
    return maximumSupplyByTokenID[tokenId];
  }

  function getRemainingSupply(uint16 tokenId) public view returns (uint16) {
    return maximumSupplyByTokenID[tokenId] - numClaimsByTokenID[tokenId];
  }

  function getEdition(uint16 editionId) public view returns (uint256, uint16, address, ContractType) {
    BurnEdition memory edition = burnEditions[editionId];
    return (edition.tokenCost, edition.supportedToken, edition.contractAddress, edition.contractType);
  }

  // ========== Admin ==========

  function addEdition(address _contractAddress, uint16 _tokenCost, uint16 _supportedToken, uint16 _maximumSupply, ContractType contractType) public onlyAdmin {
    uint16 newEditionId = numBurnEditions + 1; 
    burnEditions[newEditionId] = BurnEdition(
      _contractAddress,
      _tokenCost,
      contractType,
      _supportedToken
    );

    maximumSupplyByTokenID[_supportedToken] = _maximumSupply;

    numBurnEditions++;
  }

  function updateEdition(uint16 editionId, address _contractAddress, uint16 _tokenCost, uint16 _supportedToken, ContractType contractType) public onlyAdmin {
    burnEditions[editionId].contractAddress = _contractAddress;
    burnEditions[editionId].tokenCost = _tokenCost;
    burnEditions[editionId].contractType = contractType;
    burnEditions[editionId].supportedToken = _supportedToken;
  }

  function setMaximumSupply(uint16 tokenId, uint16 _maximumSupply) public onlyAdmin {
    maximumSupplyByTokenID[tokenId] = _maximumSupply;
  }

  function ownerMint(address _to, uint16 _tokenId, uint16 _quantity) public onlyAdmin {
    // Can only mint if there is supply remaining
    require(numClaimsByTokenID[_tokenId] + _quantity <= maximumSupplyByTokenID[_tokenId], "Not enough tokens remaining");

    _mint(_to, _tokenId, _quantity, "");
    numClaimsByTokenID[_tokenId] += _quantity;
  }

  function setBaseURI(string memory _baseURI) public onlyAdmin {
    baseURI = _baseURI;
  }

  function pause() public onlyAdmin {
    _pause();
  }

  function unpause() public onlyAdmin {
    _unpause();
  }

  function withdraw() public onlyAdmin {
    (bool success, ) = msg.sender.call{value: address(this).balance}("");
    require(success, "Transfer failed.");
  }

  // ============ Overrides ========

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

  function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal override(ERC1155) {
    super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
  }

  function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal override(ERC1155, ERC1155Supply) {
    super._mint(account, id, amount, data);
  }

  function _mintBatch(address account, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal override(ERC1155, ERC1155Supply) {
    super._mintBatch(account, ids, amounts, data);
  }

  function _burn(address account, uint256 id, uint256 amount) internal override(ERC1155, ERC1155Supply) {
    super._burn(account, id, amount);
  }

  function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal override(ERC1155, ERC1155Supply) {
    super._burnBatch(account, ids, amounts);
  }

  function uri(uint256 _tokenId) public view override returns (string memory) {
    require(_tokenId > 0 && _tokenId <= MAX_SUPPORTED_TOKENS, "URI requested for invalid token");
    return
      bytes(baseURI).length > 0
        ? string(abi.encodePacked(baseURI, _tokenId.toString()))
        : baseURI;
  }

}

File 19 of 22 : AdminControl.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./IAdminControl.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Context.sol";

abstract contract AdminControl is AccessControl {

  bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

  constructor() {
    _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
    _setupRole(ADMIN_ROLE, _msgSender());
  }

  // ========== Modifiers ==========

  modifier onlyAdmin() {
    require(hasRole(ADMIN_ROLE, _msgSender()), "Caller is not an admin");
    _;
  }

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

File 20 of 22 : IAdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev External interface of AdminControl declared to support ERC165 detection.
 */
interface IAdminControl {

}

File 21 of 22 : IERC1155Burnable.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";

interface IERC1155Burnable is IERC1155 {
  function burn(address account, uint256 id, uint256 value) external; 
}

File 22 of 22 : IERC721Burnable.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface IERC721Burnable is IERC721 {
  function burn(uint256 tokenId) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"burner","type":"address"},{"indexed":false,"internalType":"uint16","name":"editionId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"ClaimedPhysicalEdition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint16","name":"_tokenCost","type":"uint16"},{"internalType":"uint16","name":"_supportedToken","type":"uint16"},{"internalType":"uint16","name":"_maximumSupply","type":"uint16"},{"internalType":"enum RemixBurnRewards.ContractType","name":"contractType","type":"uint8"}],"name":"addEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"burnEditions","outputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint16","name":"tokenCost","type":"uint16"},{"internalType":"enum RemixBurnRewards.ContractType","name":"contractType","type":"uint8"},{"internalType":"uint16","name":"supportedToken","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"_burnTokenIds","type":"uint16[]"},{"internalType":"uint16","name":"editionId","type":"uint16"},{"internalType":"uint16","name":"editionTokenId","type":"uint16"},{"internalType":"bool","name":"claimNFT","type":"bool"}],"name":"burnForPhysical","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"editionId","type":"uint16"}],"name":"getEdition","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"address","name":"","type":"address"},{"internalType":"enum RemixBurnRewards.ContractType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"getMaximumSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"getRemainingSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"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":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"maximumSupplyByTokenID","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numBurnEditions","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"numClaimsByTokenID","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint16","name":"_tokenId","type":"uint16"},{"internalType":"uint16","name":"_quantity","type":"uint16"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"uint16","name":"_maximumSupply","type":"uint16"}],"name":"setMaximumSupply","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"editionId","type":"uint16"},{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint16","name":"_tokenCost","type":"uint16"},{"internalType":"uint16","name":"_supportedToken","type":"uint16"},{"internalType":"enum RemixBurnRewards.ContractType","name":"contractType","type":"uint8"}],"name":"updateEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50600880546200002190620003b5565b80601f01602080910402602001604051908101604052809291908181526020018280546200004f90620003b5565b8015620000a05780601f106200007457610100808354040283529160200191620000a0565b820191906000526020600020905b8154815290600101906020018083116200008257829003601f168201915b5050505050620000b6816200015660201b60201c565b506004805460ff191690556001600555620000d36000336200016f565b620000ff7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336200016f565b6200010a336200017b565b60405180606001604052806038815260200162003d846038913980516200013a916008916020909101906200030f565b50600c805461ffff1916905562000150620001cd565b620003f2565b80516200016b9060029060208401906200030f565b5050565b6200016b82826200026b565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60045460ff1615620002185760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200024e3390565b6040516001600160a01b03909116815260200160405180910390a1565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff166200016b5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002cb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200031d90620003b5565b90600052602060002090601f0160209004810192826200034157600085556200038c565b82601f106200035c57805160ff19168380011785556200038c565b828001600101855582156200038c579182015b828111156200038c5782518255916020019190600101906200036f565b506200039a9291506200039e565b5090565b5b808211156200039a57600081556001016200039f565b600181811c90821680620003ca57607f821691505b60208210811415620003ec57634e487b7160e01b600052602260045260246000fd5b50919050565b61398280620004026000396000f3fe608060405234801561001057600080fd5b50600436106102475760003560e01c8063801bae611161013b578063c486e432116100b8578063f15ecc841161007c578063f15ecc84146105c5578063f242432a146105e9578063f2fde38b146105fc578063f5298aca1461060f578063f8fbdc7a1461062257600080fd5b8063c486e432146104f4578063d547741f14610550578063d75748c414610563578063e1272d3514610576578063e985e9c51461058957600080fd5b80639ef7fbe5116100ff5780639ef7fbe514610493578063a217fddf146104a6578063a22cb465146104ae578063bd85b039146104c1578063bdc8adff146104e157600080fd5b8063801bae61146104265780638456cb59146104395780638da5cb5b1461044157806391d148541461045c578063959ac5711461046f57600080fd5b80634e1273f4116101c95780636b20c4541161018d5780636b20c454146103cb5780636c0360eb146103de578063715018a6146103e657806375b238fc146103ee57806379cdab9e1461040357600080fd5b80634e1273f41461035d5780634f558e791461037d57806355f804b31461039f5780635c975abb146103b25780636430fa5d146103bd57600080fd5b80632eb2c2d6116102105780632eb2c2d6146103125780632f2ff15d1461032757806336568abe1461033a5780633ccfd60b1461034d5780633f4ba83a1461035557600080fd5b8062fdd58e1461024c57806301ffc9a714610272578063036cacfc146102955780630e89341c146102cf578063248a9ca3146102ef575b600080fd5b61025f61025a366004612a32565b610635565b6040519081526020015b60405180910390f35b610285610280366004612a72565b6106cc565b6040519015158152602001610269565b6102bc6102a3366004612aa1565b61ffff9081166000908152600a60205260409020541690565b60405161ffff9091168152602001610269565b6102e26102dd366004612abc565b6106dd565b6040516102699190612b2d565b61025f6102fd366004612abc565b60009081526006602052604090206001015490565b610325610320366004612c93565b610814565b005b610325610335366004612d3c565b6108ab565b610325610348366004612d3c565b6108d6565b610325610954565b610325610a16565b61037061036b366004612d68565b610a54565b6040516102699190612e6d565b61028561038b366004612abc565b600090815260036020526040902054151590565b6103256103ad366004612e80565b610b7d565b60045460ff16610285565b600c546102bc9061ffff1681565b6103256103d9366004612ec8565b610bc4565b6102e2610c07565b610325610c95565b61025f60008051602061392d83398151915281565b610416610411366004612aa1565b610cf9565b6040516102699493929190612f73565b610325610434366004612fa9565b610db0565b610325610ed0565b6007546040516001600160a01b039091168152602001610269565b61028561046a366004612d3c565b610f0c565b6102bc61047d366004612aa1565b60096020526000908152604090205461ffff1681565b6103256104a1366004612fec565b610f37565b61025f600081565b6103256104bc366004613026565b610f8f565b61025f6104cf366004612abc565b60009081526003602052604090205490565b6103256104ef36600461305f565b611066565b610540610502366004612aa1565b600b602052600090815260409020546001600160a01b0381169061ffff600160a01b820481169160ff600160b01b82041691600160b81b9091041684565b60405161026994939291906130c4565b61032561055e366004612d3c565b611133565b6102bc610571366004612aa1565b611159565b6103256105843660046130ff565b611189565b61028561059736600461312e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102bc6105d3366004612aa1565b600a6020526000908152604090205461ffff1681565b6103256105f7366004613158565b6112fc565b61032561060a3660046131bc565b611341565b61032561061d3660046131d7565b611409565b61032561063036600461320a565b61144c565b60006001600160a01b0383166106a65760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006106d782611996565b92915050565b60606000821180156106f1575061fde88211155b61073d5760405162461bcd60e51b815260206004820152601f60248201527f5552492072657175657374656420666f7220696e76616c696420746f6b656e00604482015260640161069d565b60006008805461074c906132a3565b9050116107e35760088054610760906132a3565b80601f016020809104026020016040519081016040528092919081815260200182805461078c906132a3565b80156107d95780601f106107ae576101008083540402835291602001916107d9565b820191906000526020600020905b8154815290600101906020018083116107bc57829003601f168201915b50505050506106d7565b60086107ee836119b3565b6040516020016107ff9291906132fa565b60405160208183030381529060405292915050565b6001600160a01b03851633148061083057506108308533610597565b6108975760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161069d565b6108a48585858585611ab8565b5050505050565b6000828152600660205260409020600101546108c78133611c62565b6108d18383611cc6565b505050565b6001600160a01b03811633146109465760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161069d565b6109508282611d4c565b5050565b61096c60008051602061392d83398151915233610f0c565b6109885760405162461bcd60e51b815260040161069d90613398565b604051600090339047908381818185875af1925050503d80600081146109ca576040519150601f19603f3d011682016040523d82523d6000602084013e6109cf565b606091505b5050905080610a135760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161069d565b50565b610a2e60008051602061392d83398151915233610f0c565b610a4a5760405162461bcd60e51b815260040161069d90613398565b610a52611db3565b565b60608151835114610ab95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161069d565b600083516001600160401b03811115610ad457610ad4612b40565b604051908082528060200260200182016040528015610afd578160200160208202803683370190505b50905060005b8451811015610b7557610b48858281518110610b2157610b216133c8565b6020026020010151858381518110610b3b57610b3b6133c8565b6020026020010151610635565b828281518110610b5a57610b5a6133c8565b6020908102919091010152610b6e816133f4565b9050610b03565b509392505050565b610b9560008051602061392d83398151915233610f0c565b610bb15760405162461bcd60e51b815260040161069d90613398565b805161095090600890602084019061297d565b6001600160a01b038316331480610be05750610be08333610597565b610bfc5760405162461bcd60e51b815260040161069d9061340f565b6108d1838383611e46565b60088054610c14906132a3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c40906132a3565b8015610c8d5780601f10610c6257610100808354040283529160200191610c8d565b820191906000526020600020905b815481529060010190602001808311610c7057829003601f168201915b505050505081565b6007546001600160a01b03163314610cef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161069d565b610a526000611e51565b61ffff8181166000908152600b60209081526040808320815160808101835281546001600160a01b0381168252600160a01b8104909616938101939093529293849384938493849391929190830190600160b01b900460ff166001811115610d6357610d63612f3b565b6001811115610d7457610d74612f3b565b81529054600160b81b900461ffff9081166020928301529082015160608301518351604090940151919092169991985091965090945092505050565b610dc860008051602061392d83398151915233610f0c565b610de45760405162461bcd60e51b815260040161069d90613398565b61ffff8083166000908152600a602090815260408083205460099092529091205490821691610e1591849116613458565b61ffff161115610e675760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820746f6b656e732072656d61696e696e670000000000604482015260640161069d565b610e8a838361ffff168361ffff1660405180602001604052806000815250611ea3565b61ffff808316600090815260096020526040812080548493919291610eb191859116613458565b92506101000a81548161ffff021916908361ffff160217905550505050565b610ee860008051602061392d83398151915233610f0c565b610f045760405162461bcd60e51b815260040161069d90613398565b610a52611eb5565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610f4f60008051602061392d83398151915233610f0c565b610f6b5760405162461bcd60e51b815260040161069d90613398565b61ffff9182166000908152600a60205260409020805461ffff191691909216179055565b336001600160a01b0383161415610ffa5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161069d565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61107e60008051602061392d83398151915233610f0c565b61109a5760405162461bcd60e51b815260040161069d90613398565b61ffff8086166000908152600b602052604090208054918516600160a01b026001600160b01b03199092166001600160a01b038716179190911780825582919060ff60b01b1916600160b01b8360018111156110f8576110f8612f3b565b02179055505061ffff9384166000908152600b60205260409020805494909116600160b81b0261ffff60b81b19909416939093179092555050565b60008281526006602052604090206001015461114f8133611c62565b6108d18383611d4c565b61ffff808216600090815260096020908152604080832054600a90925282205491926106d792918116911661347e565b6111a160008051602061392d83398151915233610f0c565b6111bd5760405162461bcd60e51b815260040161069d90613398565b600c546000906111d29061ffff166001613458565b90506040518060800160405280876001600160a01b031681526020018661ffff16815260200183600181111561120a5761120a612f3b565b815261ffff8087166020928301528381166000908152600b83526040908190208451815494860151909316600160a01b026001600160b01b03199094166001600160a01b039093169290921792909217808255918301519091829060ff60b01b1916600160b01b83600181111561128357611283612f3b565b021790555060609190910151815461ffff60b81b1916600160b81b61ffff92831602179091558481166000908152600a60205260408120805461ffff1916868416179055600c805490921691906112d9836134a1565b91906101000a81548161ffff021916908361ffff16021790555050505050505050565b6001600160a01b03851633148061131857506113188533610597565b6113345760405162461bcd60e51b815260040161069d9061340f565b6108a48585858585611f30565b6007546001600160a01b0316331461139b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161069d565b6001600160a01b0381166114005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161069d565b610a1381611e51565b6001600160a01b03831633148061142557506114258333610597565b6114415760405162461bcd60e51b815260040161069d9061340f565b6108d183838361205c565b60045460ff16156114925760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161069d565b600260055414156114e55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161069d565b6002600555600c5461ffff90811690841611156115385760405162461bcd60e51b815260206004820152601160248201527011591a5d1a5bdb881b9bdd08199bdd5b99607a1b604482015260640161069d565b836115795760405162461bcd60e51b81526020600482015260116024820152702737903a37b5b2b739903a3790313ab93760791b604482015260640161069d565b61ffff8381166000908152600b6020526040902080549091848116600160b81b90920416146115f85760405162461bcd60e51b815260206004820152602560248201527f546f6b656e204964206973206e6f7420737570706f7274656420666f7220656460448201526434ba34b7b760d91b606482015260840161069d565b805461160f90600160a01b900461ffff16866134d9565b1561166e5760405162461bcd60e51b815260206004820152602960248201527f5175616e74697479206d7573742062652061206d756c7469706c65206f6620746044820152681bdad95b8818dbdcdd60ba1b606482015260840161069d565b805460009061168890600160a01b900461ffff16876134ed565b61ffff80861660009081526009602052604081208054939450849390926116b191859116613458565b82546101009290920a61ffff8181021990931691831602179091558581166000908152600a602090815260408083205460099092529091205490821691161115905061173f5760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820746f6b656e732072656d61696e696e670000000000604482015260640161069d565b60008254600160b01b900460ff16600181111561175e5761175e612f3b565b14156118265781546001600160a01b031660005b61ffff811688111561181f57816001600160a01b03166342966c688a8a8461ffff168181106117a3576117a36133c8565b90506020020160208101906117b89190612aa1565b6040516001600160e01b031960e084901b16815261ffff9091166004820152602401600060405180830381600087803b1580156117f457600080fd5b505af1158015611808573d6000803e3d6000fd5b505050508080611817906134a1565b915050611772565b505061191f565b60018254600160b01b900460ff16600181111561184557611845612f3b565b141561191f5781546001600160a01b031660005b61ffff811688111561191c57816001600160a01b031663f5298aca338b8b8561ffff1681811061188b5761188b6133c8565b90506020020160208101906118a09190612aa1565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015261ffff16602482015260016044820152606401600060405180830381600087803b1580156118f157600080fd5b505af1158015611905573d6000803e3d6000fd5b505050508080611914906134a1565b915050611859565b50505b821561194857611948338561ffff168361ffff1660405180602001604052806000815250611ea3565b6040805161ffff80881682528616602082015233917fd5c7f0ca2cb5e2ff0dd1af33fd5aab7960597832097c3f2d45ac83b01d0cb67c910160405180910390a2505060016005555050505050565b60006001600160e01b0319821615806106d757506106d782612067565b6060816119d75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a0157806119eb816133f4565b91506119fa9050600a8361350e565b91506119db565b6000816001600160401b03811115611a1b57611a1b612b40565b6040519080825280601f01601f191660200182016040528015611a45576020820181803683370190505b5090505b8415611ab057611a5a600183613522565b9150611a67600a866134d9565b611a72906030613539565b60f81b818381518110611a8757611a876133c8565b60200101906001600160f81b031916908160001a905350611aa9600a8661350e565b9450611a49565b949350505050565b8151835114611ad95760405162461bcd60e51b815260040161069d90613551565b6001600160a01b038416611aff5760405162461bcd60e51b815260040161069d90613599565b33611b0e81878787878761208c565b60005b8451811015611bf4576000858281518110611b2e57611b2e6133c8565b602002602001015190506000858381518110611b4c57611b4c6133c8565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611b9c5760405162461bcd60e51b815260040161069d906135de565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611bd9908490613539565b9250508190555050505080611bed906133f4565b9050611b11565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611c44929190613628565b60405180910390a4611c5a818787878787612091565b505050505050565b611c6c8282610f0c565b61095057611c84816001600160a01b031660146121fc565b611c8f8360206121fc565b604051602001611ca092919061364d565b60408051601f198184030181529082905262461bcd60e51b825261069d91600401612b2d565b611cd08282610f0c565b6109505760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611d083390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611d568282610f0c565b156109505760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60045460ff16611dfc5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161069d565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6108d183838361239e565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611eaf84848484612420565b50505050565b60045460ff1615611efb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161069d565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e293390565b6001600160a01b038416611f565760405162461bcd60e51b815260040161069d90613599565b33611f75818787611f6688612455565b611f6f88612455565b8761208c565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611fb65760405162461bcd60e51b815260040161069d906135de565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611ff3908490613539565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46120538288888888886124a0565b50505050505050565b6108d183838361256a565b60006001600160e01b03198216637965db0b60e01b14806106d757506106d78261259d565b611c5a565b6001600160a01b0384163b15611c5a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906120d590899089908890889088906004016136c2565b602060405180830381600087803b1580156120ef57600080fd5b505af192505050801561211f575060408051601f3d908101601f1916820190925261211c91810190613720565b60015b6121cc5761212b61373d565b806308c379a014156121655750612140613759565b8061214b5750612167565b8060405162461bcd60e51b815260040161069d9190612b2d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161069d565b6001600160e01b0319811663bc197c8160e01b146120535760405162461bcd60e51b815260040161069d906137e2565b6060600061220b83600261382a565b612216906002613539565b6001600160401b0381111561222d5761222d612b40565b6040519080825280601f01601f191660200182016040528015612257576020820181803683370190505b509050600360fc1b81600081518110612272576122726133c8565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106122a1576122a16133c8565b60200101906001600160f81b031916908160001a90535060006122c584600261382a565b6122d0906001613539565b90505b6001811115612348576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612304576123046133c8565b1a60f81b82828151811061231a5761231a6133c8565b60200101906001600160f81b031916908160001a90535060049490941c9361234181613849565b90506122d3565b5083156123975760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161069d565b9392505050565b6123a98383836125ed565b60005b8251811015611eaf578181815181106123c7576123c76133c8565b6020026020010151600360008584815181106123e5576123e56133c8565b60200260200101518152602001908152602001600020600082825461240a9190613522565b909155506124199050816133f4565b90506123ac565b61242c8484848461277b565b6000838152600360205260408120805484929061244a908490613539565b909155505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061248f5761248f6133c8565b602090810291909101015292915050565b6001600160a01b0384163b15611c5a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906124e49089908990889088908890600401613860565b602060405180830381600087803b1580156124fe57600080fd5b505af192505050801561252e575060408051601f3d908101601f1916820190925261252b91810190613720565b60015b61253a5761212b61373d565b6001600160e01b0319811663f23a6e6160e01b146120535760405162461bcd60e51b815260040161069d906137e2565b61257583838361287c565b60008281526003602052604081208054839290612593908490613522565b9091555050505050565b60006001600160e01b03198216636cdb3d1360e11b14806125ce57506001600160e01b031982166303a24d0760e21b145b806106d757506301ffc9a760e01b6001600160e01b03198316146106d7565b6001600160a01b0383166126135760405162461bcd60e51b815260040161069d906138a5565b80518251146126345760405162461bcd60e51b815260040161069d90613551565b60003390506126578185600086866040518060200160405280600081525061208c565b60005b835181101561271c576000848281518110612677576126776133c8565b602002602001015190506000848381518110612695576126956133c8565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156126e55760405162461bcd60e51b815260040161069d906138e8565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580612714816133f4565b91505061265a565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161276d929190613628565b60405180910390a450505050565b6001600160a01b0384166127db5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161069d565b336127ec81600087611f6688612455565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061281c908490613539565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46108a4816000878787876124a0565b6001600160a01b0383166128a25760405162461bcd60e51b815260040161069d906138a5565b336128d1818560006128b387612455565b6128bc87612455565b6040518060200160405280600081525061208c565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156129125760405162461bcd60e51b815260040161069d906138e8565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b828054612989906132a3565b90600052602060002090601f0160209004810192826129ab57600085556129f1565b82601f106129c457805160ff19168380011785556129f1565b828001600101855582156129f1579182015b828111156129f15782518255916020019190600101906129d6565b506129fd929150612a01565b5090565b5b808211156129fd5760008155600101612a02565b80356001600160a01b0381168114612a2d57600080fd5b919050565b60008060408385031215612a4557600080fd5b612a4e83612a16565b946020939093013593505050565b6001600160e01b031981168114610a1357600080fd5b600060208284031215612a8457600080fd5b813561239781612a5c565b803561ffff81168114612a2d57600080fd5b600060208284031215612ab357600080fd5b61239782612a8f565b600060208284031215612ace57600080fd5b5035919050565b60005b83811015612af0578181015183820152602001612ad8565b83811115611eaf5750506000910152565b60008151808452612b19816020860160208601612ad5565b601f01601f19169290920160200192915050565b6020815260006123976020830184612b01565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612b7b57612b7b612b40565b6040525050565b60006001600160401b03821115612b9b57612b9b612b40565b5060051b60200190565b600082601f830112612bb657600080fd5b81356020612bc382612b82565b604051612bd08282612b56565b83815260059390931b8501820192828101915086841115612bf057600080fd5b8286015b84811015612c0b5780358352918301918301612bf4565b509695505050505050565b60006001600160401b03831115612c2f57612c2f612b40565b604051612c46601f8501601f191660200182612b56565b809150838152848484011115612c5b57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612c8457600080fd5b61239783833560208501612c16565b600080600080600060a08688031215612cab57600080fd5b612cb486612a16565b9450612cc260208701612a16565b935060408601356001600160401b0380821115612cde57600080fd5b612cea89838a01612ba5565b94506060880135915080821115612d0057600080fd5b612d0c89838a01612ba5565b93506080880135915080821115612d2257600080fd5b50612d2f88828901612c73565b9150509295509295909350565b60008060408385031215612d4f57600080fd5b82359150612d5f60208401612a16565b90509250929050565b60008060408385031215612d7b57600080fd5b82356001600160401b0380821115612d9257600080fd5b818501915085601f830112612da657600080fd5b81356020612db382612b82565b604051612dc08282612b56565b83815260059390931b8501820192828101915089841115612de057600080fd5b948201945b83861015612e0557612df686612a16565b82529482019490820190612de5565b96505086013592505080821115612e1b57600080fd5b50612e2885828601612ba5565b9150509250929050565b600081518084526020808501945080840160005b83811015612e6257815187529582019590820190600101612e46565b509495945050505050565b6020815260006123976020830184612e32565b600060208284031215612e9257600080fd5b81356001600160401b03811115612ea857600080fd5b8201601f81018413612eb957600080fd5b611ab084823560208401612c16565b600080600060608486031215612edd57600080fd5b612ee684612a16565b925060208401356001600160401b0380821115612f0257600080fd5b612f0e87838801612ba5565b93506040860135915080821115612f2457600080fd5b50612f3186828701612ba5565b9150509250925092565b634e487b7160e01b600052602160045260246000fd5b60028110612f6f57634e487b7160e01b600052602160045260246000fd5b9052565b84815261ffff841660208201526001600160a01b038316604082015260808101612fa06060830184612f51565b95945050505050565b600080600060608486031215612fbe57600080fd5b612fc784612a16565b9250612fd560208501612a8f565b9150612fe360408501612a8f565b90509250925092565b60008060408385031215612fff57600080fd5b61300883612a8f565b9150612d5f60208401612a8f565b80358015158114612a2d57600080fd5b6000806040838503121561303957600080fd5b61304283612a16565b9150612d5f60208401613016565b803560028110612a2d57600080fd5b600080600080600060a0868803121561307757600080fd5b61308086612a8f565b945061308e60208701612a16565b935061309c60408701612a8f565b92506130aa60608701612a8f565b91506130b860808701613050565b90509295509295909350565b6001600160a01b038516815261ffff848116602083015260808201906130ed6040840186612f51565b80841660608401525095945050505050565b600080600080600060a0868803121561311757600080fd5b61312086612a16565b945061308e60208701612a8f565b6000806040838503121561314157600080fd5b61314a83612a16565b9150612d5f60208401612a16565b600080600080600060a0868803121561317057600080fd5b61317986612a16565b945061318760208701612a16565b9350604086013592506060860135915060808601356001600160401b038111156131b057600080fd5b612d2f88828901612c73565b6000602082840312156131ce57600080fd5b61239782612a16565b6000806000606084860312156131ec57600080fd5b6131f584612a16565b95602085013595506040909401359392505050565b60008060008060006080868803121561322257600080fd5b85356001600160401b038082111561323957600080fd5b818801915088601f83011261324d57600080fd5b81358181111561325c57600080fd5b8960208260051b850101111561327157600080fd5b6020928301975095506132879188019050612a8f565b925061329560408701612a8f565b91506130b860608701613016565b600181811c908216806132b757607f821691505b602082108114156132d857634e487b7160e01b600052602260045260246000fd5b50919050565b600081516132f0818560208601612ad5565b9290920192915050565b600080845481600182811c91508083168061331657607f831692505b602080841082141561333657634e487b7160e01b86526022600452602486fd5b81801561334a576001811461335b57613388565b60ff19861689528489019650613388565b60008b81526020902060005b868110156133805781548b820152908501908301613367565b505084890196505b505050505050612fa081856132de565b60208082526016908201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613408576134086133de565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b600061ffff808316818516808303821115613475576134756133de565b01949350505050565b600061ffff83811690831681811015613499576134996133de565b039392505050565b600061ffff808316818114156134b9576134b96133de565b6001019392505050565b634e487b7160e01b600052601260045260246000fd5b6000826134e8576134e86134c3565b500690565b600061ffff80841680613502576135026134c3565b92169190910492915050565b60008261351d5761351d6134c3565b500490565b600082821015613534576135346133de565b500390565b6000821982111561354c5761354c6133de565b500190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061363b6040830185612e32565b8281036020840152612fa08185612e32565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613685816017850160208801612ad5565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516136b6816028840160208801612ad5565b01602801949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906136ee90830186612e32565b82810360608401526137008186612e32565b905082810360808401526137148185612b01565b98975050505050505050565b60006020828403121561373257600080fd5b815161239781612a5c565b600060033d11156137565760046000803e5060005160e01c5b90565b600060443d10156137675790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561379657505050505090565b82850191508151818111156137ae5750505050505090565b843d87010160208285010111156137c85750505050505090565b6137d760208286010187612b56565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6000816000190483118215151615613844576138446133de565b500290565b600081613858576138586133de565b506000190190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061389a90830184612b01565b979650505050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b60608201526080019056fea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a26469706673582212201c58d4dbad61cadac789d32fd915b77d6f50be26bb669130a91aec3ec102f91d64736f6c6343000809003368747470733a2f2f73746f726167656170692e666c65656b2e636f2f61706564616f2d6275636b65742f72656d69782d726577617264732f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102475760003560e01c8063801bae611161013b578063c486e432116100b8578063f15ecc841161007c578063f15ecc84146105c5578063f242432a146105e9578063f2fde38b146105fc578063f5298aca1461060f578063f8fbdc7a1461062257600080fd5b8063c486e432146104f4578063d547741f14610550578063d75748c414610563578063e1272d3514610576578063e985e9c51461058957600080fd5b80639ef7fbe5116100ff5780639ef7fbe514610493578063a217fddf146104a6578063a22cb465146104ae578063bd85b039146104c1578063bdc8adff146104e157600080fd5b8063801bae61146104265780638456cb59146104395780638da5cb5b1461044157806391d148541461045c578063959ac5711461046f57600080fd5b80634e1273f4116101c95780636b20c4541161018d5780636b20c454146103cb5780636c0360eb146103de578063715018a6146103e657806375b238fc146103ee57806379cdab9e1461040357600080fd5b80634e1273f41461035d5780634f558e791461037d57806355f804b31461039f5780635c975abb146103b25780636430fa5d146103bd57600080fd5b80632eb2c2d6116102105780632eb2c2d6146103125780632f2ff15d1461032757806336568abe1461033a5780633ccfd60b1461034d5780633f4ba83a1461035557600080fd5b8062fdd58e1461024c57806301ffc9a714610272578063036cacfc146102955780630e89341c146102cf578063248a9ca3146102ef575b600080fd5b61025f61025a366004612a32565b610635565b6040519081526020015b60405180910390f35b610285610280366004612a72565b6106cc565b6040519015158152602001610269565b6102bc6102a3366004612aa1565b61ffff9081166000908152600a60205260409020541690565b60405161ffff9091168152602001610269565b6102e26102dd366004612abc565b6106dd565b6040516102699190612b2d565b61025f6102fd366004612abc565b60009081526006602052604090206001015490565b610325610320366004612c93565b610814565b005b610325610335366004612d3c565b6108ab565b610325610348366004612d3c565b6108d6565b610325610954565b610325610a16565b61037061036b366004612d68565b610a54565b6040516102699190612e6d565b61028561038b366004612abc565b600090815260036020526040902054151590565b6103256103ad366004612e80565b610b7d565b60045460ff16610285565b600c546102bc9061ffff1681565b6103256103d9366004612ec8565b610bc4565b6102e2610c07565b610325610c95565b61025f60008051602061392d83398151915281565b610416610411366004612aa1565b610cf9565b6040516102699493929190612f73565b610325610434366004612fa9565b610db0565b610325610ed0565b6007546040516001600160a01b039091168152602001610269565b61028561046a366004612d3c565b610f0c565b6102bc61047d366004612aa1565b60096020526000908152604090205461ffff1681565b6103256104a1366004612fec565b610f37565b61025f600081565b6103256104bc366004613026565b610f8f565b61025f6104cf366004612abc565b60009081526003602052604090205490565b6103256104ef36600461305f565b611066565b610540610502366004612aa1565b600b602052600090815260409020546001600160a01b0381169061ffff600160a01b820481169160ff600160b01b82041691600160b81b9091041684565b60405161026994939291906130c4565b61032561055e366004612d3c565b611133565b6102bc610571366004612aa1565b611159565b6103256105843660046130ff565b611189565b61028561059736600461312e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102bc6105d3366004612aa1565b600a6020526000908152604090205461ffff1681565b6103256105f7366004613158565b6112fc565b61032561060a3660046131bc565b611341565b61032561061d3660046131d7565b611409565b61032561063036600461320a565b61144c565b60006001600160a01b0383166106a65760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006106d782611996565b92915050565b60606000821180156106f1575061fde88211155b61073d5760405162461bcd60e51b815260206004820152601f60248201527f5552492072657175657374656420666f7220696e76616c696420746f6b656e00604482015260640161069d565b60006008805461074c906132a3565b9050116107e35760088054610760906132a3565b80601f016020809104026020016040519081016040528092919081815260200182805461078c906132a3565b80156107d95780601f106107ae576101008083540402835291602001916107d9565b820191906000526020600020905b8154815290600101906020018083116107bc57829003601f168201915b50505050506106d7565b60086107ee836119b3565b6040516020016107ff9291906132fa565b60405160208183030381529060405292915050565b6001600160a01b03851633148061083057506108308533610597565b6108975760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161069d565b6108a48585858585611ab8565b5050505050565b6000828152600660205260409020600101546108c78133611c62565b6108d18383611cc6565b505050565b6001600160a01b03811633146109465760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161069d565b6109508282611d4c565b5050565b61096c60008051602061392d83398151915233610f0c565b6109885760405162461bcd60e51b815260040161069d90613398565b604051600090339047908381818185875af1925050503d80600081146109ca576040519150601f19603f3d011682016040523d82523d6000602084013e6109cf565b606091505b5050905080610a135760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161069d565b50565b610a2e60008051602061392d83398151915233610f0c565b610a4a5760405162461bcd60e51b815260040161069d90613398565b610a52611db3565b565b60608151835114610ab95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161069d565b600083516001600160401b03811115610ad457610ad4612b40565b604051908082528060200260200182016040528015610afd578160200160208202803683370190505b50905060005b8451811015610b7557610b48858281518110610b2157610b216133c8565b6020026020010151858381518110610b3b57610b3b6133c8565b6020026020010151610635565b828281518110610b5a57610b5a6133c8565b6020908102919091010152610b6e816133f4565b9050610b03565b509392505050565b610b9560008051602061392d83398151915233610f0c565b610bb15760405162461bcd60e51b815260040161069d90613398565b805161095090600890602084019061297d565b6001600160a01b038316331480610be05750610be08333610597565b610bfc5760405162461bcd60e51b815260040161069d9061340f565b6108d1838383611e46565b60088054610c14906132a3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c40906132a3565b8015610c8d5780601f10610c6257610100808354040283529160200191610c8d565b820191906000526020600020905b815481529060010190602001808311610c7057829003601f168201915b505050505081565b6007546001600160a01b03163314610cef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161069d565b610a526000611e51565b61ffff8181166000908152600b60209081526040808320815160808101835281546001600160a01b0381168252600160a01b8104909616938101939093529293849384938493849391929190830190600160b01b900460ff166001811115610d6357610d63612f3b565b6001811115610d7457610d74612f3b565b81529054600160b81b900461ffff9081166020928301529082015160608301518351604090940151919092169991985091965090945092505050565b610dc860008051602061392d83398151915233610f0c565b610de45760405162461bcd60e51b815260040161069d90613398565b61ffff8083166000908152600a602090815260408083205460099092529091205490821691610e1591849116613458565b61ffff161115610e675760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820746f6b656e732072656d61696e696e670000000000604482015260640161069d565b610e8a838361ffff168361ffff1660405180602001604052806000815250611ea3565b61ffff808316600090815260096020526040812080548493919291610eb191859116613458565b92506101000a81548161ffff021916908361ffff160217905550505050565b610ee860008051602061392d83398151915233610f0c565b610f045760405162461bcd60e51b815260040161069d90613398565b610a52611eb5565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610f4f60008051602061392d83398151915233610f0c565b610f6b5760405162461bcd60e51b815260040161069d90613398565b61ffff9182166000908152600a60205260409020805461ffff191691909216179055565b336001600160a01b0383161415610ffa5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161069d565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61107e60008051602061392d83398151915233610f0c565b61109a5760405162461bcd60e51b815260040161069d90613398565b61ffff8086166000908152600b602052604090208054918516600160a01b026001600160b01b03199092166001600160a01b038716179190911780825582919060ff60b01b1916600160b01b8360018111156110f8576110f8612f3b565b02179055505061ffff9384166000908152600b60205260409020805494909116600160b81b0261ffff60b81b19909416939093179092555050565b60008281526006602052604090206001015461114f8133611c62565b6108d18383611d4c565b61ffff808216600090815260096020908152604080832054600a90925282205491926106d792918116911661347e565b6111a160008051602061392d83398151915233610f0c565b6111bd5760405162461bcd60e51b815260040161069d90613398565b600c546000906111d29061ffff166001613458565b90506040518060800160405280876001600160a01b031681526020018661ffff16815260200183600181111561120a5761120a612f3b565b815261ffff8087166020928301528381166000908152600b83526040908190208451815494860151909316600160a01b026001600160b01b03199094166001600160a01b039093169290921792909217808255918301519091829060ff60b01b1916600160b01b83600181111561128357611283612f3b565b021790555060609190910151815461ffff60b81b1916600160b81b61ffff92831602179091558481166000908152600a60205260408120805461ffff1916868416179055600c805490921691906112d9836134a1565b91906101000a81548161ffff021916908361ffff16021790555050505050505050565b6001600160a01b03851633148061131857506113188533610597565b6113345760405162461bcd60e51b815260040161069d9061340f565b6108a48585858585611f30565b6007546001600160a01b0316331461139b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161069d565b6001600160a01b0381166114005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161069d565b610a1381611e51565b6001600160a01b03831633148061142557506114258333610597565b6114415760405162461bcd60e51b815260040161069d9061340f565b6108d183838361205c565b60045460ff16156114925760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161069d565b600260055414156114e55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161069d565b6002600555600c5461ffff90811690841611156115385760405162461bcd60e51b815260206004820152601160248201527011591a5d1a5bdb881b9bdd08199bdd5b99607a1b604482015260640161069d565b836115795760405162461bcd60e51b81526020600482015260116024820152702737903a37b5b2b739903a3790313ab93760791b604482015260640161069d565b61ffff8381166000908152600b6020526040902080549091848116600160b81b90920416146115f85760405162461bcd60e51b815260206004820152602560248201527f546f6b656e204964206973206e6f7420737570706f7274656420666f7220656460448201526434ba34b7b760d91b606482015260840161069d565b805461160f90600160a01b900461ffff16866134d9565b1561166e5760405162461bcd60e51b815260206004820152602960248201527f5175616e74697479206d7573742062652061206d756c7469706c65206f6620746044820152681bdad95b8818dbdcdd60ba1b606482015260840161069d565b805460009061168890600160a01b900461ffff16876134ed565b61ffff80861660009081526009602052604081208054939450849390926116b191859116613458565b82546101009290920a61ffff8181021990931691831602179091558581166000908152600a602090815260408083205460099092529091205490821691161115905061173f5760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820746f6b656e732072656d61696e696e670000000000604482015260640161069d565b60008254600160b01b900460ff16600181111561175e5761175e612f3b565b14156118265781546001600160a01b031660005b61ffff811688111561181f57816001600160a01b03166342966c688a8a8461ffff168181106117a3576117a36133c8565b90506020020160208101906117b89190612aa1565b6040516001600160e01b031960e084901b16815261ffff9091166004820152602401600060405180830381600087803b1580156117f457600080fd5b505af1158015611808573d6000803e3d6000fd5b505050508080611817906134a1565b915050611772565b505061191f565b60018254600160b01b900460ff16600181111561184557611845612f3b565b141561191f5781546001600160a01b031660005b61ffff811688111561191c57816001600160a01b031663f5298aca338b8b8561ffff1681811061188b5761188b6133c8565b90506020020160208101906118a09190612aa1565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015261ffff16602482015260016044820152606401600060405180830381600087803b1580156118f157600080fd5b505af1158015611905573d6000803e3d6000fd5b505050508080611914906134a1565b915050611859565b50505b821561194857611948338561ffff168361ffff1660405180602001604052806000815250611ea3565b6040805161ffff80881682528616602082015233917fd5c7f0ca2cb5e2ff0dd1af33fd5aab7960597832097c3f2d45ac83b01d0cb67c910160405180910390a2505060016005555050505050565b60006001600160e01b0319821615806106d757506106d782612067565b6060816119d75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a0157806119eb816133f4565b91506119fa9050600a8361350e565b91506119db565b6000816001600160401b03811115611a1b57611a1b612b40565b6040519080825280601f01601f191660200182016040528015611a45576020820181803683370190505b5090505b8415611ab057611a5a600183613522565b9150611a67600a866134d9565b611a72906030613539565b60f81b818381518110611a8757611a876133c8565b60200101906001600160f81b031916908160001a905350611aa9600a8661350e565b9450611a49565b949350505050565b8151835114611ad95760405162461bcd60e51b815260040161069d90613551565b6001600160a01b038416611aff5760405162461bcd60e51b815260040161069d90613599565b33611b0e81878787878761208c565b60005b8451811015611bf4576000858281518110611b2e57611b2e6133c8565b602002602001015190506000858381518110611b4c57611b4c6133c8565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611b9c5760405162461bcd60e51b815260040161069d906135de565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611bd9908490613539565b9250508190555050505080611bed906133f4565b9050611b11565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611c44929190613628565b60405180910390a4611c5a818787878787612091565b505050505050565b611c6c8282610f0c565b61095057611c84816001600160a01b031660146121fc565b611c8f8360206121fc565b604051602001611ca092919061364d565b60408051601f198184030181529082905262461bcd60e51b825261069d91600401612b2d565b611cd08282610f0c565b6109505760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611d083390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611d568282610f0c565b156109505760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60045460ff16611dfc5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161069d565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6108d183838361239e565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611eaf84848484612420565b50505050565b60045460ff1615611efb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161069d565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e293390565b6001600160a01b038416611f565760405162461bcd60e51b815260040161069d90613599565b33611f75818787611f6688612455565b611f6f88612455565b8761208c565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611fb65760405162461bcd60e51b815260040161069d906135de565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611ff3908490613539565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46120538288888888886124a0565b50505050505050565b6108d183838361256a565b60006001600160e01b03198216637965db0b60e01b14806106d757506106d78261259d565b611c5a565b6001600160a01b0384163b15611c5a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906120d590899089908890889088906004016136c2565b602060405180830381600087803b1580156120ef57600080fd5b505af192505050801561211f575060408051601f3d908101601f1916820190925261211c91810190613720565b60015b6121cc5761212b61373d565b806308c379a014156121655750612140613759565b8061214b5750612167565b8060405162461bcd60e51b815260040161069d9190612b2d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161069d565b6001600160e01b0319811663bc197c8160e01b146120535760405162461bcd60e51b815260040161069d906137e2565b6060600061220b83600261382a565b612216906002613539565b6001600160401b0381111561222d5761222d612b40565b6040519080825280601f01601f191660200182016040528015612257576020820181803683370190505b509050600360fc1b81600081518110612272576122726133c8565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106122a1576122a16133c8565b60200101906001600160f81b031916908160001a90535060006122c584600261382a565b6122d0906001613539565b90505b6001811115612348576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612304576123046133c8565b1a60f81b82828151811061231a5761231a6133c8565b60200101906001600160f81b031916908160001a90535060049490941c9361234181613849565b90506122d3565b5083156123975760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161069d565b9392505050565b6123a98383836125ed565b60005b8251811015611eaf578181815181106123c7576123c76133c8565b6020026020010151600360008584815181106123e5576123e56133c8565b60200260200101518152602001908152602001600020600082825461240a9190613522565b909155506124199050816133f4565b90506123ac565b61242c8484848461277b565b6000838152600360205260408120805484929061244a908490613539565b909155505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061248f5761248f6133c8565b602090810291909101015292915050565b6001600160a01b0384163b15611c5a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906124e49089908990889088908890600401613860565b602060405180830381600087803b1580156124fe57600080fd5b505af192505050801561252e575060408051601f3d908101601f1916820190925261252b91810190613720565b60015b61253a5761212b61373d565b6001600160e01b0319811663f23a6e6160e01b146120535760405162461bcd60e51b815260040161069d906137e2565b61257583838361287c565b60008281526003602052604081208054839290612593908490613522565b9091555050505050565b60006001600160e01b03198216636cdb3d1360e11b14806125ce57506001600160e01b031982166303a24d0760e21b145b806106d757506301ffc9a760e01b6001600160e01b03198316146106d7565b6001600160a01b0383166126135760405162461bcd60e51b815260040161069d906138a5565b80518251146126345760405162461bcd60e51b815260040161069d90613551565b60003390506126578185600086866040518060200160405280600081525061208c565b60005b835181101561271c576000848281518110612677576126776133c8565b602002602001015190506000848381518110612695576126956133c8565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156126e55760405162461bcd60e51b815260040161069d906138e8565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580612714816133f4565b91505061265a565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161276d929190613628565b60405180910390a450505050565b6001600160a01b0384166127db5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161069d565b336127ec81600087611f6688612455565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061281c908490613539565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46108a4816000878787876124a0565b6001600160a01b0383166128a25760405162461bcd60e51b815260040161069d906138a5565b336128d1818560006128b387612455565b6128bc87612455565b6040518060200160405280600081525061208c565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156129125760405162461bcd60e51b815260040161069d906138e8565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b828054612989906132a3565b90600052602060002090601f0160209004810192826129ab57600085556129f1565b82601f106129c457805160ff19168380011785556129f1565b828001600101855582156129f1579182015b828111156129f15782518255916020019190600101906129d6565b506129fd929150612a01565b5090565b5b808211156129fd5760008155600101612a02565b80356001600160a01b0381168114612a2d57600080fd5b919050565b60008060408385031215612a4557600080fd5b612a4e83612a16565b946020939093013593505050565b6001600160e01b031981168114610a1357600080fd5b600060208284031215612a8457600080fd5b813561239781612a5c565b803561ffff81168114612a2d57600080fd5b600060208284031215612ab357600080fd5b61239782612a8f565b600060208284031215612ace57600080fd5b5035919050565b60005b83811015612af0578181015183820152602001612ad8565b83811115611eaf5750506000910152565b60008151808452612b19816020860160208601612ad5565b601f01601f19169290920160200192915050565b6020815260006123976020830184612b01565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612b7b57612b7b612b40565b6040525050565b60006001600160401b03821115612b9b57612b9b612b40565b5060051b60200190565b600082601f830112612bb657600080fd5b81356020612bc382612b82565b604051612bd08282612b56565b83815260059390931b8501820192828101915086841115612bf057600080fd5b8286015b84811015612c0b5780358352918301918301612bf4565b509695505050505050565b60006001600160401b03831115612c2f57612c2f612b40565b604051612c46601f8501601f191660200182612b56565b809150838152848484011115612c5b57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612c8457600080fd5b61239783833560208501612c16565b600080600080600060a08688031215612cab57600080fd5b612cb486612a16565b9450612cc260208701612a16565b935060408601356001600160401b0380821115612cde57600080fd5b612cea89838a01612ba5565b94506060880135915080821115612d0057600080fd5b612d0c89838a01612ba5565b93506080880135915080821115612d2257600080fd5b50612d2f88828901612c73565b9150509295509295909350565b60008060408385031215612d4f57600080fd5b82359150612d5f60208401612a16565b90509250929050565b60008060408385031215612d7b57600080fd5b82356001600160401b0380821115612d9257600080fd5b818501915085601f830112612da657600080fd5b81356020612db382612b82565b604051612dc08282612b56565b83815260059390931b8501820192828101915089841115612de057600080fd5b948201945b83861015612e0557612df686612a16565b82529482019490820190612de5565b96505086013592505080821115612e1b57600080fd5b50612e2885828601612ba5565b9150509250929050565b600081518084526020808501945080840160005b83811015612e6257815187529582019590820190600101612e46565b509495945050505050565b6020815260006123976020830184612e32565b600060208284031215612e9257600080fd5b81356001600160401b03811115612ea857600080fd5b8201601f81018413612eb957600080fd5b611ab084823560208401612c16565b600080600060608486031215612edd57600080fd5b612ee684612a16565b925060208401356001600160401b0380821115612f0257600080fd5b612f0e87838801612ba5565b93506040860135915080821115612f2457600080fd5b50612f3186828701612ba5565b9150509250925092565b634e487b7160e01b600052602160045260246000fd5b60028110612f6f57634e487b7160e01b600052602160045260246000fd5b9052565b84815261ffff841660208201526001600160a01b038316604082015260808101612fa06060830184612f51565b95945050505050565b600080600060608486031215612fbe57600080fd5b612fc784612a16565b9250612fd560208501612a8f565b9150612fe360408501612a8f565b90509250925092565b60008060408385031215612fff57600080fd5b61300883612a8f565b9150612d5f60208401612a8f565b80358015158114612a2d57600080fd5b6000806040838503121561303957600080fd5b61304283612a16565b9150612d5f60208401613016565b803560028110612a2d57600080fd5b600080600080600060a0868803121561307757600080fd5b61308086612a8f565b945061308e60208701612a16565b935061309c60408701612a8f565b92506130aa60608701612a8f565b91506130b860808701613050565b90509295509295909350565b6001600160a01b038516815261ffff848116602083015260808201906130ed6040840186612f51565b80841660608401525095945050505050565b600080600080600060a0868803121561311757600080fd5b61312086612a16565b945061308e60208701612a8f565b6000806040838503121561314157600080fd5b61314a83612a16565b9150612d5f60208401612a16565b600080600080600060a0868803121561317057600080fd5b61317986612a16565b945061318760208701612a16565b9350604086013592506060860135915060808601356001600160401b038111156131b057600080fd5b612d2f88828901612c73565b6000602082840312156131ce57600080fd5b61239782612a16565b6000806000606084860312156131ec57600080fd5b6131f584612a16565b95602085013595506040909401359392505050565b60008060008060006080868803121561322257600080fd5b85356001600160401b038082111561323957600080fd5b818801915088601f83011261324d57600080fd5b81358181111561325c57600080fd5b8960208260051b850101111561327157600080fd5b6020928301975095506132879188019050612a8f565b925061329560408701612a8f565b91506130b860608701613016565b600181811c908216806132b757607f821691505b602082108114156132d857634e487b7160e01b600052602260045260246000fd5b50919050565b600081516132f0818560208601612ad5565b9290920192915050565b600080845481600182811c91508083168061331657607f831692505b602080841082141561333657634e487b7160e01b86526022600452602486fd5b81801561334a576001811461335b57613388565b60ff19861689528489019650613388565b60008b81526020902060005b868110156133805781548b820152908501908301613367565b505084890196505b505050505050612fa081856132de565b60208082526016908201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613408576134086133de565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b600061ffff808316818516808303821115613475576134756133de565b01949350505050565b600061ffff83811690831681811015613499576134996133de565b039392505050565b600061ffff808316818114156134b9576134b96133de565b6001019392505050565b634e487b7160e01b600052601260045260246000fd5b6000826134e8576134e86134c3565b500690565b600061ffff80841680613502576135026134c3565b92169190910492915050565b60008261351d5761351d6134c3565b500490565b600082821015613534576135346133de565b500390565b6000821982111561354c5761354c6133de565b500190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061363b6040830185612e32565b8281036020840152612fa08185612e32565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613685816017850160208801612ad5565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516136b6816028840160208801612ad5565b01602801949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906136ee90830186612e32565b82810360608401526137008186612e32565b905082810360808401526137148185612b01565b98975050505050505050565b60006020828403121561373257600080fd5b815161239781612a5c565b600060033d11156137565760046000803e5060005160e01c5b90565b600060443d10156137675790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561379657505050505090565b82850191508151818111156137ae5750505050505090565b843d87010160208285010111156137c85750505050505090565b6137d760208286010187612b56565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6000816000190483118215151615613844576138446133de565b500290565b600081613858576138586133de565b506000190190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061389a90830184612b01565b979650505050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b60608201526080019056fea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a26469706673582212201c58d4dbad61cadac789d32fd915b77d6f50be26bb669130a91aec3ec102f91d64736f6c63430008090033

Loading...
Loading
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.