ETH Price: $3,256.66 (-0.83%)
Gas: 1 Gwei

Contract

0xdE483545b9fc7bF79B4bce207A7705745FeFF4fE
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Safe Transfer Fr...183926942023-10-20 16:21:59282 days ago1697818919IN
0xdE483545...45FeFF4fE
0 ETH0.0009266117.8033521
Safe Transfer Fr...162070692022-12-17 21:21:47588 days ago1671312107IN
0xdE483545...45FeFF4fE
0 ETH0.0007054413.52068163
Set Approval For...160195392022-11-21 16:19:47615 days ago1669047587IN
0xdE483545...45FeFF4fE
0 ETH0.0009227119.95610126
Set Approval For...160152132022-11-21 1:50:11615 days ago1668995411IN
0xdE483545...45FeFF4fE
0 ETH0.0004963410.73487143
Set Approval For...160139032022-11-20 21:26:47615 days ago1668979607IN
0xdE483545...45FeFF4fE
0 ETH0.0005748612.43303403
Withdraw159952632022-11-18 6:59:47618 days ago1668754787IN
0xdE483545...45FeFF4fE
0 ETH0.0005738513.7
Set Approval For...159951372022-11-18 6:34:35618 days ago1668753275IN
0xdE483545...45FeFF4fE
0 ETH0.0005918612.80077232
Public Mint159882772022-11-17 7:33:35619 days ago1668670415IN
0xdE483545...45FeFF4fE
0.08 ETH0.0009607515.06126806
Public Mint159780522022-11-15 21:15:59620 days ago1668546959IN
0xdE483545...45FeFF4fE
0.08 ETH0.0010841316.99536379
Set Approval For...159777132022-11-15 20:07:47621 days ago1668542867IN
0xdE483545...45FeFF4fE
0 ETH0.0010770823.29484385
Public Mint159774442022-11-15 19:13:11621 days ago1668539591IN
0xdE483545...45FeFF4fE
0.08 ETH0.0023899529.54579121
Public Mint159772782022-11-15 18:39:59621 days ago1668537599IN
0xdE483545...45FeFF4fE
0.08 ETH0.0020331431.87239927
Public Mint159763632022-11-15 15:34:47621 days ago1668526487IN
0xdE483545...45FeFF4fE
0.08 ETH0.0011594518.17606655
Grant Role159746412022-11-15 9:48:23621 days ago1668505703IN
0xdE483545...45FeFF4fE
0 ETH0.0007133513.84716607
Withdraw159745892022-11-15 9:37:59621 days ago1668505079IN
0xdE483545...45FeFF4fE
0 ETH0.0004567419.2
Withdraw159745872022-11-15 9:37:35621 days ago1668505055IN
0xdE483545...45FeFF4fE
0 ETH0.0006372214.35611656
Withdraw159745712022-11-15 9:34:23621 days ago1668504863IN
0xdE483545...45FeFF4fE
0 ETH0.0003673815.45
Grant Role159745172022-11-15 9:23:35621 days ago1668504215IN
0xdE483545...45FeFF4fE
0 ETH0.0007619614.79438413
Public Mint159733302022-11-15 5:24:59621 days ago1668489899IN
0xdE483545...45FeFF4fE
0.24 ETH0.0010189915.97414743
Public Mint159726872022-11-15 3:15:47621 days ago1668482147IN
0xdE483545...45FeFF4fE
0.24 ETH0.0040148285.989056
Public Mint159726832022-11-15 3:14:59621 days ago1668482099IN
0xdE483545...45FeFF4fE
0.08 ETH0.0059521393.30824984
Public Mint159725092022-11-15 2:39:47621 days ago1668479987IN
0xdE483545...45FeFF4fE
0.08 ETH0.0009546720.44711255
Public Mint159725042022-11-15 2:38:47621 days ago1668479927IN
0xdE483545...45FeFF4fE
0.08 ETH0.0016253220.09304812
Public Mint159724962022-11-15 2:37:11621 days ago1668479831IN
0xdE483545...45FeFF4fE
0.08 ETH0.0013715621.50118302
Public Mint159724392022-11-15 2:25:35621 days ago1668479135IN
0xdE483545...45FeFF4fE
0.16 ETH0.0008205417.57441353
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
159952632022-11-18 6:59:47618 days ago1668754787
0xdE483545...45FeFF4fE
0.4 ETH
159745872022-11-15 9:37:35621 days ago1668505055
0xdE483545...45FeFF4fE
2.96 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StormTrooper

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract StormTrooper is ERC1155, ERC2981, AccessControl {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;

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

    event CollectionCreated (
        uint256 indexed brand,
        uint256 indexed collectionId,
        uint256 indexed cap,
        uint256 mintPriceInWei,
        bool enabled,
        bool exist
    );

    event BrandCreated (
        uint256 collectionIds,
        bool enabled,
        bool exist
    );

    event UpdateCollectionMintPrice(
        uint256 indexed collectionId,
        uint256 indexed mintPriceInWei
    );

    struct StormTrooperItem {
        // categories collection
        uint256 brand; 
        uint256 cap;
        uint256 minted;
        uint256 mintPriceInWei;
        bool enabled;
        bool exist;
    }

    struct Brand {
        uint256[] collectionIds;
        bool enabled;
        bool exist;
    }

    // withdrawal variables
    address[] public wallets;
    uint256[] public walletsShares;
    uint256 public totalShares;

    // collectionId => StormTrooperItem
    mapping(uint256 => StormTrooperItem) private stormtroopers;
    // brandId => Brand
    mapping(uint256 => Brand) private brands;
    // track collection id => brand id
    mapping(uint256 => uint256) public collectionIdsBrand;

    // get all collectionIds
    uint256[] collectionIds;
    // get all brandIds
    uint256[] brandIds;
    // max mint per tx
    uint256 maxMintPerTx = 5;

    bytes32 public whitelistMerkleRoot;
    bool public isPremintOpen;
    bool public isPublicMintOpen;


    modifier onlyHasRole(bytes32 _role) {
        require(hasRole(_role, _msgSender()), "Caller does not have role");
        _;
    }

    constructor(
        string memory baseMetaURI, 
        uint96 _feeNumerator
    ) 
        ERC1155(baseMetaURI) 
    {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setDefaultRoyalty(_msgSender(), _feeNumerator);
        _tokenIds.increment();
    }
    // === Pre-Mint === //

    function premint(bytes32[] calldata _proof, uint256 _collectionId, uint256 _quantity) external payable {
        require(stormtroopers[_collectionId].mintPriceInWei * _quantity == msg.value, "Invalid eth price");
        _premint(_proof, _msgSender(), _collectionId, _quantity);
    }

    function premint(bytes32[] calldata _proof, address to, uint256 _collectionId, uint256 _quantity) external onlyHasRole(MINTER_ROLE) {
        _premint(_proof, to, _collectionId, _quantity);
    }

    function _premint(bytes32[] calldata _proof, address to, uint256 _collectionId, uint256 _quantity) internal {
        require(isPremintOpen, "Premint not yet opened.");

        require(
            _verifySenderProof(to, whitelistMerkleRoot, _proof),
            "Invalid proof"
        );

        _mintCollection(to, _collectionId, _quantity);
    }

    // == Public-Mint ===

    function publicMint(uint256 _collectionId, uint256 _quantity) external payable {
        require(stormtroopers[_collectionId].mintPriceInWei * _quantity == msg.value, "Invalid eth price");
        _publicMint(msg.sender, _collectionId, _quantity);
    }

    function publicMint(address _to, uint256 _collectionId, uint256 _quantity) external onlyHasRole(MINTER_ROLE) {
        _publicMint(_to, _collectionId, _quantity);
    }

    function _publicMint(address _to, uint256 _collectionId, uint256 _quantity) internal {
        require(!isPremintOpen, "Premint ongoing.");
        require(isPublicMintOpen, "PublicMint not yet started");
        _mintCollection(_to, _collectionId, _quantity);
    }

    function _mintCollection(address _to, uint256 _collectionId, uint256 _quantity) internal {
        require(_quantity > 0, "quantity cannot be zero");
        require(_quantity <= maxMintPerTx, "exceed max mint limit per tx.");

        require(stormtroopers[_collectionId].enabled, "Collection currently disabled.");
        require(stormtroopers[_collectionId].minted + _quantity <= stormtroopers[_collectionId].cap, "exceed max supply");
        stormtroopers[_collectionId].minted += _quantity;

        _mint(_to, _collectionId, _quantity, "");
    }

    function isWhitelistedAddressOnBrand(bytes32[] calldata _proof, address to) external view returns (bool) {
        return _verifySenderProof(to, whitelistMerkleRoot, _proof);
    }

    /// @dev Get next tokenId
    function nextTokenId() public view returns (uint256) {
        return _tokenIds.current();
    }

    /// @notice Return all brand ids
    function getAllBrands() external view returns (uint256[] memory) {
        return brandIds;
    }

    /// @notice Return Collection mint price
    /// @param _collectionId The CollectionID
    function getCollectionMintPrice(uint256 _collectionId) external view returns (uint256) {
        return stormtroopers[_collectionId].mintPriceInWei;
    }

    function getBrandInfo(uint256 brandId) external view returns (Brand memory) {
        return brands[brandId];
    }

    /// @dev Get all collectionIds by brand
    /// @param _brandId The brand id
    function getCollectionIdsByBrand(uint256 _brandId) public view returns (uint256[] memory) {
        return _getCollectionIdsByBrand(_brandId);
    }

    /// @dev Get token collection info by ID
    /// @param _tokenId The token collection info
    function getCollectionInfoById(uint256 _tokenId) public view returns (StormTrooperItem memory) {
        require(stormtroopers[_tokenId].exist, "Token does not exist.");
        return stormtroopers[_tokenId];
    }

    // === Admin === //

    /// @dev Set new base URI, kindly take a look on https://eips.ethereum.org/EIPS/eip-1155 for the format
    /// @param newuri The new URI to set
    function setURI(string memory newuri) public onlyHasRole(ADMIN_ROLE) {
        _setURI(newuri);
    }
    
    /// @dev Set the number mint per tx
    /// @param _maxMintPerTx The number of mint per tx
    function setMaxMintPerTx(uint256 _maxMintPerTx) public onlyHasRole(ADMIN_ROLE) {
        maxMintPerTx = _maxMintPerTx;
    }

    /// @dev Update Collection Mint Price
    /// @param _collectionId The CollectionID
    /// @param _mintPriceInWei The new Mint Price
    function updatCollectionMintPrice(uint256 _collectionId, uint256 _mintPriceInWei) external onlyHasRole(ADMIN_ROLE) {
        require(stormtroopers[_collectionId].exist, "Brand doesnt exist.");
        stormtroopers[_collectionId].mintPriceInWei = _mintPriceInWei;

        emit UpdateCollectionMintPrice({
            collectionId: _collectionId,
            mintPriceInWei: _mintPriceInWei
        });
    }

    /// @dev Set Brand 
    /// @param brandId The Brand ID
    function createBrand(uint256 brandId) public onlyHasRole(ADMIN_ROLE) {
        require(!brands[brandId].exist, "Brand already exist.");

        brands[brandId] = Brand({
            collectionIds: new uint256[](0),
            enabled: true,
            exist: true
        });

        brandIds.push(brandId);

        emit BrandCreated({
            collectionIds: 0,
            enabled: true,
            exist: true
        });
    }

    /// @dev Create collection
    /// @param cap The collection supply
    /// @param brand The brand to categories collection
    function createCollection(uint256 cap, uint256 brand, uint256 mintPriceInWei, bool isEnabled) external onlyHasRole(ADMIN_ROLE) {
        require(brands[brand].exist, "Brand doesnt exist.");
        require(cap > 0, "Collection supply cannot be zero");
        uint256 tokenId = nextTokenId();
        stormtroopers[tokenId] = StormTrooperItem(
            brand, // tag to categories collection
            cap, // token cap
            0, // mint count
            mintPriceInWei, // mint price
            isEnabled, // enabled
            true // exist
        );

        _tokenIds.increment();

        collectionIds.push(tokenId);
        collectionIdsBrand[tokenId] = brand;
        brands[brand].collectionIds.push(tokenId);

        emit CollectionCreated({
            brand: brand, 
            collectionId: tokenId, 
            mintPriceInWei: mintPriceInWei,
            cap: cap,
            enabled: isEnabled,
            exist: true
        });
    }

    /// @dev Get all collections by brand
    /// @param _brandId The brand id
    function _getCollectionIdsByBrand(uint256 _brandId) internal view returns (uint256[] memory) {
        return brands[_brandId].collectionIds;
    }

    function setWhitelistMerkleRoot(bytes32 _whitelistMerkleRoot) public onlyHasRole(ADMIN_ROLE) {
        whitelistMerkleRoot = _whitelistMerkleRoot;
    }

    function setIsPremintOpen(bool _isPremintOpen) public onlyHasRole(ADMIN_ROLE) {
        isPremintOpen = _isPremintOpen;
    }

    function setIsPublicMintOpen(bool _isPublicMintOpen) public onlyHasRole(ADMIN_ROLE) {
        isPublicMintOpen = _isPublicMintOpen;
    }

    /// @notice Enable Brand
    /// @param brandId The Brand to enable
    function enableBrand(uint256 brandId) public onlyHasRole(ADMIN_ROLE) {
        require(brands[brandId].exist, "Brand doesnt exist.");
        require(!brands[brandId].enabled, "Brand already enabled.");
        brands[brandId].enabled = true;
    }

    /// @notice Disable Brand
    /// @param brandId The Brand to disable
    function disableBrand(uint256 brandId) public onlyHasRole(ADMIN_ROLE) {
        require(brands[brandId].exist, "Brand doesnt exist.");
        require(brands[brandId].enabled, "Brand already disabled.");
        brands[brandId].enabled = false;
    }

    /// @notice Disable minting for this specific collection
    /// @param _id the collection id
    function enableCollection(uint256 _id) public onlyHasRole(ADMIN_ROLE) {
        require(stormtroopers[_id].exist, "Collection ID doesnt exist.");
        require(!stormtroopers[_id].enabled, "Collection already enabled.");
        stormtroopers[_id].enabled = true;
    }

    /// @notice Disable minting for this specific collection
    /// @param _id the collection id
    function disableCollection(uint256 _id) public onlyHasRole(ADMIN_ROLE) {
        require(stormtroopers[_id].exist, "Collection ID doesnt exist.");
        require(stormtroopers[_id].enabled, "Collection already disabled.");
        stormtroopers[_id].enabled = false;
    }

    /// @dev Update max supply of collection
    /// @param tokenId The collection id to update
    /// @param cap The collection supply
    function updateCapCollection(uint256 tokenId, uint256 cap) external onlyHasRole(ADMIN_ROLE) {
        require(cap > 0, "Collection supply cannot be zero");
        require(stormtroopers[tokenId].enabled, "Collection ID doesnt exist.");
        require(stormtroopers[tokenId].cap >= stormtroopers[tokenId].minted, "Cap cannot less than minted token.");
        StormTrooperItem storage item =  stormtroopers[tokenId];
        item.cap = cap;
    }

    // === Royalty === //

    /// @dev Set the royalty for all collection
    /// @param _feeNumerator The fee for collection
    function setDefaultRoyalty(address _receiver, uint96 _feeNumerator)
        public
        onlyHasRole(ADMIN_ROLE)
    {
        _setDefaultRoyalty(_receiver, _feeNumerator);
    }

    /// @dev Set royalty fee for specific token
    /// @param _tokenId The tokenId where to add the royalty
    /// @param _receiver The royalty receiver
    /// @param _feeNumerator the fee for specific tokenId
    function setTokenRoyalty(
        uint256 _tokenId,
        address _receiver,
        uint96 _feeNumerator
    ) public onlyHasRole(ADMIN_ROLE) {
        _setTokenRoyalty(_tokenId, _receiver, _feeNumerator);
    }

    /// @dev Allow owner to delete the default royalty for all collection
    function deleteDefaultRoyalty() external onlyHasRole(ADMIN_ROLE) {
        _deleteDefaultRoyalty();
    }

    /// @dev Reset specific royalty
    /// @param tokenId The token id where to reset the royalty
    function resetTokenRoyalty(uint256 tokenId)
        external
        onlyHasRole(ADMIN_ROLE)
    {
        _resetTokenRoyalty(tokenId);
    }

    // === Verify MerkleProof === //

    function _verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return MerkleProof.verify(proof, root, leaf);
    }

    function _verifySenderProof(
        address sender,
        bytes32 merkleRoot,
        bytes32[] calldata proof
    ) internal pure returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(sender));
        return _verify(proof, merkleRoot, leaf);
    }

    // === Withdrawal ===

    /// @dev Set wallets shares
    /// @param _wallets The wallets
    /// @param _walletsShares The wallets shares
    function setWithdrawalInfo(
        address[] memory _wallets,
        uint256[] memory _walletsShares
    ) public onlyHasRole(ADMIN_ROLE) {
        require(_wallets.length == _walletsShares.length, "not equal");
        wallets = _wallets;
        walletsShares = _walletsShares;

        totalShares = 0;
        for (uint256 i = 0; i < _walletsShares.length; i++) {
            totalShares += _walletsShares[i];
        }
    }

    /// @dev Withdraw contract native token balance
    function withdraw() external onlyHasRole(ADMIN_ROLE) {
        require(address(this).balance > 0, "no eth to withdraw");
        uint256 totalReceived = address(this).balance;
        for (uint256 i = 0; i < walletsShares.length; i++) {
            uint256 payment = (totalReceived * walletsShares[i]) / totalShares;
            Address.sendValue(payable(wallets[i]), payment);
        }
    }

    // === SupportInterface === //

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC1155, ERC2981, AccessControl)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981).interfaceId ||
            interfaceId == type(AccessControl).interfaceId ||
            super.supportsInterface(interfaceId);
    }

}

File 2 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 3 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 4 of 17 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol)

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: address zero is not a valid owner");
        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 {
        _setApprovalForAll(_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 token 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: caller is not token 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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, 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);

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

        _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);

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

        _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 `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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 _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);

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

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

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

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

        address operator = _msgSender();

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

        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: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

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

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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 `ids` and `amounts` 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 {}

    /**
     * @dev Hook that is called after 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 _afterTokenTransfer(
        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 5 of 17 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 6 of 17 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

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);
        _;
    }

    /**
     * @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 virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @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 virtual {
        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 virtual 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.
     *
     * May emit a {RoleGranted} event.
     */
    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.
     *
     * May emit a {RoleRevoked} event.
     */
    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 revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    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.
     *
     * May emit a {RoleGranted} event.
     *
     * [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}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    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);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 7 of 17 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 8 of 17 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 9 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 10 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 11 of 17 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

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 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 12 of 17 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

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.
     *
     * NOTE: 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.
     *
     * NOTE: 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 13 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 14 of 17 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

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 15 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 16 of 17 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 17 of 17 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

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;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseMetaURI","type":"string"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"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":false,"internalType":"uint256","name":"collectionIds","type":"uint256"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"},{"indexed":false,"internalType":"bool","name":"exist","type":"bool"}],"name":"BrandCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"brand","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"collectionId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"cap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintPriceInWei","type":"uint256"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"},{"indexed":false,"internalType":"bool","name":"exist","type":"bool"}],"name":"CollectionCreated","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":true,"internalType":"uint256","name":"collectionId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"mintPriceInWei","type":"uint256"}],"name":"UpdateCollectionMintPrice","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":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"collectionIdsBrand","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"brandId","type":"uint256"}],"name":"createBrand","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"},{"internalType":"uint256","name":"brand","type":"uint256"},{"internalType":"uint256","name":"mintPriceInWei","type":"uint256"},{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"createCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"brandId","type":"uint256"}],"name":"disableBrand","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"disableCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"brandId","type":"uint256"}],"name":"enableBrand","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"enableCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllBrands","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"brandId","type":"uint256"}],"name":"getBrandInfo","outputs":[{"components":[{"internalType":"uint256[]","name":"collectionIds","type":"uint256[]"},{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"bool","name":"exist","type":"bool"}],"internalType":"struct StormTrooper.Brand","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_brandId","type":"uint256"}],"name":"getCollectionIdsByBrand","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getCollectionInfoById","outputs":[{"components":[{"internalType":"uint256","name":"brand","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"mintPriceInWei","type":"uint256"},{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"bool","name":"exist","type":"bool"}],"internalType":"struct StormTrooper.StormTrooperItem","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionId","type":"uint256"}],"name":"getCollectionMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"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":[],"name":"isPremintOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicMintOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"address","name":"to","type":"address"}],"name":"isWhitelistedAddressOnBrand","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_collectionId","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"premint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"_collectionId","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"premint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionId","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_collectionId","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicMint","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":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPremintOpen","type":"bool"}],"name":"setIsPremintOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublicMintOpen","type":"bool"}],"name":"setIsPublicMintOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintPerTx","type":"uint256"}],"name":"setMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_whitelistMerkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_wallets","type":"address[]"},{"internalType":"uint256[]","name":"_walletsShares","type":"uint256[]"}],"name":"setWithdrawalInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionId","type":"uint256"},{"internalType":"uint256","name":"_mintPriceInWei","type":"uint256"}],"name":"updatCollectionMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"updateCapCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"wallets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"walletsShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526005600f553480156200001657600080fd5b506040516200463938038062004639833981016040819052620000399162000318565b8162000045816200007e565b506200005360003362000097565b6200005f3382620000a3565b620000766006620001a860201b620021041760201c565b50506200045c565b80516200009390600290602084019062000255565b5050565b620000938282620001b1565b6127106001600160601b0382161115620001175760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200016f5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200010e565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b80546001019055565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16620000935760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002113390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620002639062000409565b90600052602060002090601f016020900481019282620002875760008555620002d2565b82601f10620002a257805160ff1916838001178555620002d2565b82800160010185558215620002d2579182015b82811115620002d2578251825591602001919060010190620002b5565b50620002e0929150620002e4565b5090565b5b80821115620002e05760008155600101620002e5565b80516001600160601b03811681146200031357600080fd5b919050565b600080604083850312156200032c57600080fd5b82516001600160401b03808211156200034457600080fd5b818501915085601f8301126200035957600080fd5b8151818111156200036e576200036e62000446565b604051601f8201601f19908116603f0116810190838211818310171562000399576200039962000446565b81604052828152602093508884848701011115620003b657600080fd5b600091505b82821015620003da5784820184015181830185015290830190620003bb565b82821115620003ec5760008484830101525b9550620003fe915050858201620002fb565b925050509250929050565b600181811c908216806200041e57607f821691505b602082108114156200044057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6141cd806200046c6000396000f3fe6080604052600436106103345760003560e01c806375b238fc116101ab578063a4435dfd116100f7578063d539139311610095578063e4469dee1161006f578063e4469dee14610a23578063e985e9c514610a43578063f242432a14610a8c578063f7132b4714610aac57600080fd5b8063d5391393146109af578063d547741f146109e3578063dee2accc14610a0357600080fd5b8063aa1b103f116100d1578063aa1b103f14610944578063aa98e0c614610959578063b8cec4f81461096f578063bd32fb661461098f57600080fd5b8063a4435dfd146108e5578063a57fbd8514610904578063a83575cb1461092457600080fd5b80639213f8d3116101645780639c43dc3e1161013e5780639c43dc3e146108635780639f02c81e14610890578063a217fddf146108b0578063a22cb465146108c557600080fd5b80639213f8d31461081057806398ae99a8146108305780639b8bfe621461084357600080fd5b806375b238fc1461073c57806376906a4e1461075e5780637ad71f721461077e57806382288db8146107b65780638a616bc0146107d057806391d14854146107f057600080fd5b80632eb2c2d6116102855780635944c7531161022357806360e8ddb0116101fd57806360e8ddb014610682578063616cdb1e1461069757806361792124146106b757806375794a3c1461072757600080fd5b80635944c753146106225780635b04c0b6146106425780635f04c16d1461066257600080fd5b80633a98ef391161025f5780633a98ef39146105b75780633ccfd60b146105cd57806342d7af4a146105e25780634e1273f41461060257600080fd5b80632eb2c2d6146105575780632f2ff15d1461057757806336568abe1461059757600080fd5b80630bb48ed1116102f257806319dfe4bd116102cc57806319dfe4bd146104a857806320a19879146104bb578063248a9ca3146104e85780632a55205a1461051857600080fd5b80630bb48ed11461042e5780630e89341c1461045b5780630fc9a5041461048857600080fd5b8062fdd58e1461033957806301ffc9a71461036c57806302fe53051461039c57806304634d8d146103be5780630596705d146103de5780630808da041461040e575b600080fd5b34801561034557600080fd5b5061035961035436600461374f565b610acc565b6040519081526020015b60405180910390f35b34801561037857600080fd5b5061038c610387366004613a05565b610b62565b6040519015158152602001610363565b3480156103a857600080fd5b506103bc6103b7366004613a3f565b610ba8565b005b3480156103ca57600080fd5b506103bc6103d93660046137ac565b610bea565b3480156103ea57600080fd5b506103596103f93660046139c9565b6000908152600a602052604090206003015490565b34801561041a57600080fd5b506103bc6104293660046137d6565b610c2e565b34801561043a57600080fd5b506103596104493660046139c9565b600c6020526000908152604090205481565b34801561046757600080fd5b5061047b6104763660046139c9565b610d22565b6040516103639190613cdb565b34801561049457600080fd5b506103bc6104a33660046139c9565b610db6565b6103bc6104b636600461395e565b610f34565b3480156104c757600080fd5b506104db6104d63660046139c9565b610fa1565b6040516103639190613c9a565b3480156104f457600080fd5b506103596105033660046139c9565b60009081526005602052604090206001015490565b34801561052457600080fd5b50610538610533366004613aba565b610fac565b604080516001600160a01b039093168352602083019190915201610363565b34801561056357600080fd5b506103bc610572366004613618565b61105a565b34801561058357600080fd5b506103bc6105923660046139e2565b6110a6565b3480156105a357600080fd5b506103bc6105b23660046139e2565b6110cb565b3480156105c357600080fd5b5061035960095481565b3480156105d957600080fd5b506103bc611145565b3480156105ee57600080fd5b506103bc6105fd366004613adc565b61124b565b34801561060e57600080fd5b506104db61061d3660046137d6565b611444565b34801561062e57600080fd5b506103bc61063d366004613a87565b61156d565b34801561064e57600080fd5b506103bc61065d366004613aba565b6115ad565b34801561066e57600080fd5b506103bc61067d3660046139c9565b61165b565b34801561068e57600080fd5b506104db611742565b3480156106a357600080fd5b506103bc6106b23660046139c9565b61179a565b3480156106c357600080fd5b506106d76106d23660046139c9565b6117d5565b6040516103639190600060c0820190508251825260208301516020830152604083015160408301526060830151606083015260808301511515608083015260a0830151151560a083015292915050565b34801561073357600080fd5b506103596118d4565b34801561074857600080fd5b5061035960008051602061417883398151915281565b34801561076a57600080fd5b506103bc6107793660046139c9565b6118e4565b34801561078a57600080fd5b5061079e6107993660046139c9565b6119d0565b6040516001600160a01b039091168152602001610363565b3480156107c257600080fd5b5060115461038c9060ff1681565b3480156107dc57600080fd5b506103bc6107eb3660046139c9565b6119fa565b3480156107fc57600080fd5b5061038c61080b3660046139e2565b611a41565b34801561081c57600080fd5b506103bc61082b366004613aba565b611a6c565b6103bc61083e366004613aba565b611baa565b34801561084f57600080fd5b506103bc61085e3660046139c9565b611c15565b34801561086f57600080fd5b5061088361087e3660046139c9565b611cfd565b6040516103639190613ef9565b34801561089c57600080fd5b506103bc6108ab366004613779565b611daa565b3480156108bc57600080fd5b50610359600081565b3480156108d157600080fd5b506103bc6108e0366004613725565b611dfc565b3480156108f157600080fd5b5060115461038c90610100900460ff1681565b34801561091057600080fd5b5061038c61091f3660046138a6565b611e07565b34801561093057600080fd5b506103bc61093f3660046138f9565b611e1f565b34801561095057600080fd5b506103bc611e7b565b34801561096557600080fd5b5061035960105481565b34801561097b57600080fd5b506103bc61098a3660046139c9565b611ebd565b34801561099b57600080fd5b506103bc6109aa3660046139c9565b611fa5565b3480156109bb57600080fd5b506103597f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156109ef57600080fd5b506103bc6109fe3660046139e2565b611fe0565b348015610a0f57600080fd5b50610359610a1e3660046139c9565b612005565b348015610a2f57600080fd5b506103bc610a3e3660046139ae565b612026565b348015610a4f57600080fd5b5061038c610a5e3660046135e5565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610a9857600080fd5b506103bc610aa73660046136c1565b612076565b348015610ab857600080fd5b506103bc610ac73660046139ae565b6120bb565b60006001600160a01b038316610b3c5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b0319821663152a902d60e11b1480610b9357506001600160e01b0319821663da8def7360e01b145b80610ba25750610ba28261210d565b92915050565b600080516020614178833981519152610bc18133611a41565b610bdd5760405162461bcd60e51b8152600401610b3390613d85565b610be682612132565b5050565b600080516020614178833981519152610c038133611a41565b610c1f5760405162461bcd60e51b8152600401610b3390613d85565b610c298383612145565b505050565b600080516020614178833981519152610c478133611a41565b610c635760405162461bcd60e51b8152600401610b3390613d85565b8151835114610ca05760405162461bcd60e51b81526020600482015260096024820152681b9bdd08195c5d585b60ba1b6044820152606401610b33565b8251610cb3906007906020860190613342565b508151610cc79060089060208501906133a7565b50600060098190555b8251811015610d1c57828181518110610ceb57610ceb614090565b602002602001015160096000828254610d049190613f5c565b90915550819050610d148161405f565b915050610cd0565b50505050565b606060028054610d3190613ff8565b80601f0160208091040260200160405190810160405280929190818152602001828054610d5d90613ff8565b8015610daa5780601f10610d7f57610100808354040283529160200191610daa565b820191906000526020600020905b815481529060010190602001808311610d8d57829003601f168201915b50505050509050919050565b600080516020614178833981519152610dcf8133611a41565b610deb5760405162461bcd60e51b8152600401610b3390613d85565b6000828152600b6020526040902060010154610100900460ff1615610e495760405162461bcd60e51b8152602060048201526014602482015273213930b7321030b63932b0b23c9032bc34b9ba1760611b6044820152606401610b33565b6040805160006060820181815260808301845282526001602080840182905283850191909152858252600b81529290208151805192939192610e8e92849201906133a7565b506020828101516001928301805460409586015115156101000261ff00199315159390931661ffff1990911617919091179055600e8054808401825560009182527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd018690558351908152908101829052918201527f545a1eaaef89c26c8ce7959295df2695e31c5acc72fcd503f4ddb7147ce4e5a29060600160405180910390a15050565b6000828152600a60205260409020600301543490610f53908390613f96565b14610f945760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642065746820707269636560781b6044820152606401610b33565b610d1c84843385856121ff565b6060610ba2826122a6565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916110215750604080518082019091526003546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611040906001600160601b031687613f96565b61104a9190613f74565b91519350909150505b9250929050565b6001600160a01b03851633148061107657506110768533610a5e565b6110925760405162461bcd60e51b8152600401610b3390613cee565b61109f8585858585612307565b5050505050565b6000828152600560205260409020600101546110c1816124dc565b610c2983836124e6565b6001600160a01b038116331461113b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b33565b610be6828261256c565b60008051602061417883398151915261115e8133611a41565b61117a5760405162461bcd60e51b8152600401610b3390613d85565b600047116111bf5760405162461bcd60e51b81526020600482015260126024820152716e6f2065746820746f20776974686472617760701b6044820152606401610b33565b4760005b600854811015610c29576000600954600883815481106111e5576111e5614090565b9060005260206000200154846111fb9190613f96565b6112059190613f74565b90506112386007838154811061121d5761121d614090565b6000918252602090912001546001600160a01b0316826125d3565b50806112438161405f565b9150506111c3565b6000805160206141788339815191526112648133611a41565b6112805760405162461bcd60e51b8152600401610b3390613d85565b6000848152600b6020526040902060010154610100900460ff166112b65760405162461bcd60e51b8152600401610b3390613e4b565b600085116113065760405162461bcd60e51b815260206004820181905260248201527f436f6c6c656374696f6e20737570706c792063616e6e6f74206265207a65726f6044820152606401610b33565b60006113106118d4565b6040805160c08101825287815260208082018a8152600083850181815260608086018c81528b151560808801818152600160a08a018181528c8852600a8a528b88209a518b5597518a820155945160028a015591516003890155905160049097018054955161ffff1990961697151561ff0019169790971761010095151595909502949094179095556006805482019055600d80548083019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb501879055600c84528582208c90558b8252600b8452858220805480830182559083529184902090910186905584518a8152928301919091528184015291519293508892849289927fcc1c591b2ec7c4fdd04b985c8a1e93381b74dfe6b4e9d2c72e953bed969a896a92918290030190a4505050505050565b606081518351146114a95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610b33565b600083516001600160401b038111156114c4576114c46140a6565b6040519080825280602002602001820160405280156114ed578160200160208202803683370190505b50905060005b84518110156115655761153885828151811061151157611511614090565b602002602001015185838151811061152b5761152b614090565b6020026020010151610acc565b82828151811061154a5761154a614090565b602090810291909101015261155e8161405f565b90506114f3565b509392505050565b6000805160206141788339815191526115868133611a41565b6115a25760405162461bcd60e51b8152600401610b3390613d85565b610d1c8484846126ec565b6000805160206141788339815191526115c68133611a41565b6115e25760405162461bcd60e51b8152600401610b3390613d85565b6000838152600a6020526040902060040154610100900460ff166116185760405162461bcd60e51b8152600401610b3390613e4b565b6000838152600a602052604080822060030184905551839185917f03bcc580a7ea06c39dc63225dc70f5908fb3ce18d5488b33e605a010b4076d919190a3505050565b6000805160206141788339815191526116748133611a41565b6116905760405162461bcd60e51b8152600401610b3390613d85565b6000828152600b6020526040902060010154610100900460ff166116c65760405162461bcd60e51b8152600401610b3390613e4b565b6000828152600b602052604090206001015460ff16156117215760405162461bcd60e51b8152602060048201526016602482015275213930b7321030b63932b0b23c9032b730b13632b21760511b6044820152606401610b33565b506000908152600b602052604090206001908101805460ff19169091179055565b6060600e80548060200260200160405190810160405280929190818152602001828054801561179057602002820191906000526020600020905b81548152602001906001019080831161177c575b5050505050905090565b6000805160206141788339815191526117b38133611a41565b6117cf5760405162461bcd60e51b8152600401610b3390613d85565b50600f55565b6118126040518060c00160405280600081526020016000815260200160008152602001600081526020016000151581526020016000151581525090565b6000828152600a6020526040902060040154610100900460ff166118705760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b6044820152606401610b33565b506000908152600a6020908152604091829020825160c081018452815481526001820154928101929092526002810154928201929092526003820154606082015260049091015460ff8082161515608084015261010090910416151560a082015290565b60006118df60065490565b905090565b6000805160206141788339815191526118fd8133611a41565b6119195760405162461bcd60e51b8152600401610b3390613d85565b6000828152600a6020526040902060040154610100900460ff1661194f5760405162461bcd60e51b8152600401610b3390613e78565b6000828152600a602052604090206004015460ff16156119b15760405162461bcd60e51b815260206004820152601b60248201527f436f6c6c656374696f6e20616c726561647920656e61626c65642e00000000006044820152606401610b33565b506000908152600a60205260409020600401805460ff19166001179055565b600781815481106119e057600080fd5b6000918252602090912001546001600160a01b0316905081565b600080516020614178833981519152611a138133611a41565b611a2f5760405162461bcd60e51b8152600401610b3390613d85565b50600090815260046020526040812055565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080516020614178833981519152611a858133611a41565b611aa15760405162461bcd60e51b8152600401610b3390613d85565b60008211611af15760405162461bcd60e51b815260206004820181905260248201527f436f6c6c656374696f6e20737570706c792063616e6e6f74206265207a65726f6044820152606401610b33565b6000838152600a602052604090206004015460ff16611b225760405162461bcd60e51b8152600401610b3390613e78565b6000838152600a6020526040902060028101546001909101541015611b945760405162461bcd60e51b815260206004820152602260248201527f4361702063616e6e6f74206c657373207468616e206d696e74656420746f6b65604482015261371760f11b6064820152608401610b33565b506000918252600a602052604090912060010155565b6000828152600a60205260409020600301543490611bc9908390613f96565b14611c0a5760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642065746820707269636560781b6044820152606401610b33565b610be63383836127b7565b600080516020614178833981519152611c2e8133611a41565b611c4a5760405162461bcd60e51b8152600401610b3390613d85565b6000828152600b6020526040902060010154610100900460ff16611c805760405162461bcd60e51b8152600401610b3390613e4b565b6000828152600b602052604090206001015460ff16611ce15760405162461bcd60e51b815260206004820152601760248201527f4272616e6420616c72656164792064697361626c65642e0000000000000000006044820152606401610b33565b506000908152600b60205260409020600101805460ff19169055565b60408051606080820183528152600060208201819052918101919091526000828152600b602090815260409182902082518154608093810282018401909452606081018481529093919284928491840182828015611d7a57602002820191906000526020600020905b815481526020019060010190808311611d66575b50505091835250506001919091015460ff8082161515602084015261010090910416151560409091015292915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611dd58133611a41565b611df15760405162461bcd60e51b8152600401610b3390613d85565b610d1c8484846127b7565b610be633838361285f565b6000611e17826010548686612940565b949350505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611e4a8133611a41565b611e665760405162461bcd60e51b8152600401610b3390613d85565b611e7386868686866121ff565b505050505050565b600080516020614178833981519152611e948133611a41565b611eb05760405162461bcd60e51b8152600401610b3390613d85565b611eba6000600355565b50565b600080516020614178833981519152611ed68133611a41565b611ef25760405162461bcd60e51b8152600401610b3390613d85565b6000828152600a6020526040902060040154610100900460ff16611f285760405162461bcd60e51b8152600401610b3390613e78565b6000828152600a602052604090206004015460ff16611f895760405162461bcd60e51b815260206004820152601c60248201527f436f6c6c656374696f6e20616c72656164792064697361626c65642e000000006044820152606401610b33565b506000908152600a60205260409020600401805460ff19169055565b600080516020614178833981519152611fbe8133611a41565b611fda5760405162461bcd60e51b8152600401610b3390613d85565b50601055565b600082815260056020526040902060010154611ffb816124dc565b610c29838361256c565b6008818154811061201557600080fd5b600091825260209091200154905081565b60008051602061417883398151915261203f8133611a41565b61205b5760405162461bcd60e51b8152600401610b3390613d85565b50601180549115156101000261ff0019909216919091179055565b6001600160a01b03851633148061209257506120928533610a5e565b6120ae5760405162461bcd60e51b8152600401610b3390613cee565b61109f85858585856129c6565b6000805160206141788339815191526120d48133611a41565b6120f05760405162461bcd60e51b8152600401610b3390613d85565b506011805460ff1916911515919091179055565b80546001019055565b60006001600160e01b03198216637965db0b60e01b1480610ba25750610ba282612af0565b8051610be69060029060208401906133e2565b6127106001600160601b03821611156121705760405162461bcd60e51b8152600401610b3390613eaf565b6001600160a01b0382166121c65760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b33565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b60115460ff166122515760405162461bcd60e51b815260206004820152601760248201527f5072656d696e74206e6f7420796574206f70656e65642e0000000000000000006044820152606401610b33565b61225f836010548787612940565b61229b5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610b33565b61109f838383612b15565b6000818152600b6020908152604091829020805483518184028101840190945280845260609392830182828015610daa57602002820191906000526020600020905b8154815260200190600101908083116122e85750505050509050919050565b81518351146123695760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610b33565b6001600160a01b03841661238f5760405162461bcd60e51b8152600401610b3390613dbc565b3360005b84518110156124765760008582815181106123b0576123b0614090565b6020026020010151905060008583815181106123ce576123ce614090565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561241e5760405162461bcd60e51b8152600401610b3390613e01565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061245b908490613f5c565b925050819055505050508061246f9061405f565b9050612393565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124c6929190613cad565b60405180910390a4611e73818787878787612cc1565b611eba8133612e35565b6124f08282611a41565b610be65760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556125283390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6125768282611a41565b15610be65760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b804710156126235760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b33565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612670576040519150601f19603f3d011682016040523d82523d6000602084013e612675565b606091505b5050905080610c295760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b33565b6127106001600160601b03821611156127175760405162461bcd60e51b8152600401610b3390613eaf565b6001600160a01b03821661276d5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610b33565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600490529190942093519051909116600160a01b029116179055565b60115460ff16156127fd5760405162461bcd60e51b815260206004820152601060248201526f283932b6b4b73a1037b733b7b4b7339760811b6044820152606401610b33565b601154610100900460ff166128545760405162461bcd60e51b815260206004820152601a60248201527f5075626c69634d696e74206e6f742079657420737461727465640000000000006044820152606401610b33565b610c29838383612b15565b816001600160a01b0316836001600160a01b031614156128d35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610b33565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6040516bffffffffffffffffffffffff19606086901b16602082015260009081906034016040516020818303038152906040528051906020012090506129bc848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250859150612e999050565b9695505050505050565b6001600160a01b0384166129ec5760405162461bcd60e51b8152600401610b3390613dbc565b3360006129f885612ea6565b90506000612a0585612ea6565b90506000868152602081815260408083206001600160a01b038c16845290915290205485811015612a485760405162461bcd60e51b8152600401610b3390613e01565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612a85908490613f5c565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612ae5848a8a8a8a8a612ef1565b505050505050505050565b60006001600160e01b0319821663152a902d60e11b1480610ba25750610ba282612fbb565b60008111612b655760405162461bcd60e51b815260206004820152601760248201527f7175616e746974792063616e6e6f74206265207a65726f0000000000000000006044820152606401610b33565b600f54811115612bb75760405162461bcd60e51b815260206004820152601d60248201527f657863656564206d6178206d696e74206c696d6974207065722074782e0000006044820152606401610b33565b6000828152600a602052604090206004015460ff16612c185760405162461bcd60e51b815260206004820152601e60248201527f436f6c6c656374696f6e2063757272656e746c792064697361626c65642e00006044820152606401610b33565b6000828152600a602052604090206001810154600290910154612c3c908390613f5c565b1115612c7e5760405162461bcd60e51b8152602060048201526011602482015270657863656564206d617820737570706c7960781b6044820152606401610b33565b6000828152600a602052604081206002018054839290612c9f908490613f5c565b92505081905550610c298383836040518060200160405280600081525061300b565b6001600160a01b0384163b15611e735760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612d059089908990889088908890600401613bf7565b602060405180830381600087803b158015612d1f57600080fd5b505af1925050508015612d4f575060408051601f3d908101601f19168201909252612d4c91810190613a22565b60015b612dfc57612d5b6140bc565b806308c379a01415612d955750612d706140d8565b80612d7b5750612d97565b8060405162461bcd60e51b8152600401610b339190613cdb565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610b33565b6001600160e01b0319811663bc197c8160e01b14612e2c5760405162461bcd60e51b8152600401610b3390613d3d565b50505050505050565b612e3f8282611a41565b610be657612e57816001600160a01b03166014613116565b612e62836020613116565b604051602001612e73929190613b82565b60408051601f198184030181529082905262461bcd60e51b8252610b3391600401613cdb565b6000611e178484846132b8565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612ee057612ee0614090565b602090810291909101015292915050565b6001600160a01b0384163b15611e735760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612f359089908990889088908890600401613c55565b602060405180830381600087803b158015612f4f57600080fd5b505af1925050508015612f7f575060408051601f3d908101601f19168201909252612f7c91810190613a22565b60015b612f8b57612d5b6140bc565b6001600160e01b0319811663f23a6e6160e01b14612e2c5760405162461bcd60e51b8152600401610b3390613d3d565b60006001600160e01b03198216636cdb3d1360e11b1480612fec57506001600160e01b031982166303a24d0760e21b145b80610ba257506301ffc9a760e01b6001600160e01b0319831614610ba2565b6001600160a01b03841661306b5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b33565b33600061307785612ea6565b9050600061308485612ea6565b90506000868152602081815260408083206001600160a01b038b168452909152812080548792906130b6908490613f5c565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612e2c83600089898989612ef1565b60606000613125836002613f96565b613130906002613f5c565b6001600160401b03811115613147576131476140a6565b6040519080825280601f01601f191660200182016040528015613171576020820181803683370190505b509050600360fc1b8160008151811061318c5761318c614090565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106131bb576131bb614090565b60200101906001600160f81b031916908160001a90535060006131df846002613f96565b6131ea906001613f5c565b90505b6001811115613262576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061321e5761321e614090565b1a60f81b82828151811061323457613234614090565b60200101906001600160f81b031916908160001a90535060049490941c9361325b81613fe1565b90506131ed565b5083156132b15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b33565b9392505050565b6000826132c585846132ce565b14949350505050565b600081815b8451811015611565576132ff828683815181106132f2576132f2614090565b6020026020010151613313565b91508061330b8161405f565b9150506132d3565b600081831061332f5760008281526020849052604090206132b1565b60008381526020839052604090206132b1565b828054828255906000526020600020908101928215613397579160200282015b8281111561339757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190613362565b506133a3929150613455565b5090565b828054828255906000526020600020908101928215613397579160200282015b828111156133975782518255916020019190600101906133c7565b8280546133ee90613ff8565b90600052602060002090601f0160209004810192826134105760008555613397565b82601f1061342957805160ff1916838001178555613397565b8280016001018555821561339757918201828111156133975782518255916020019190600101906133c7565b5b808211156133a35760008155600101613456565b60006001600160401b03831115613483576134836140a6565b60405161349a601f8501601f191660200182614033565b8091508381528484840111156134af57600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b03811681146134de57600080fd5b919050565b60008083601f8401126134f557600080fd5b5081356001600160401b0381111561350c57600080fd5b6020830191508360208260051b850101111561105357600080fd5b600082601f83011261353857600080fd5b8135602061354582613f39565b6040516135528282614033565b8381528281019150858301600585901b8701840188101561357257600080fd5b60005b8581101561359157813584529284019290840190600101613575565b5090979650505050505050565b803580151581146134de57600080fd5b600082601f8301126135bf57600080fd5b6132b18383356020850161346a565b80356001600160601b03811681146134de57600080fd5b600080604083850312156135f857600080fd5b613601836134c7565b915061360f602084016134c7565b90509250929050565b600080600080600060a0868803121561363057600080fd5b613639866134c7565b9450613647602087016134c7565b935060408601356001600160401b038082111561366357600080fd5b61366f89838a01613527565b9450606088013591508082111561368557600080fd5b61369189838a01613527565b935060808801359150808211156136a757600080fd5b506136b4888289016135ae565b9150509295509295909350565b600080600080600060a086880312156136d957600080fd5b6136e2866134c7565b94506136f0602087016134c7565b9350604086013592506060860135915060808601356001600160401b0381111561371957600080fd5b6136b4888289016135ae565b6000806040838503121561373857600080fd5b613741836134c7565b915061360f6020840161359e565b6000806040838503121561376257600080fd5b61376b836134c7565b946020939093013593505050565b60008060006060848603121561378e57600080fd5b613797846134c7565b95602085013595506040909401359392505050565b600080604083850312156137bf57600080fd5b6137c8836134c7565b915061360f602084016135ce565b600080604083850312156137e957600080fd5b82356001600160401b038082111561380057600080fd5b818501915085601f83011261381457600080fd5b8135602061382182613f39565b60405161382e8282614033565b8381528281019150858301600585901b870184018b101561384e57600080fd5b600096505b8487101561387857613864816134c7565b835260019690960195918301918301613853565b509650508601359250508082111561388f57600080fd5b5061389c85828601613527565b9150509250929050565b6000806000604084860312156138bb57600080fd5b83356001600160401b038111156138d157600080fd5b6138dd868287016134e3565b90945092506138f09050602085016134c7565b90509250925092565b60008060008060006080868803121561391157600080fd5b85356001600160401b0381111561392757600080fd5b613933888289016134e3565b90965094506139469050602087016134c7565b94979396509394604081013594506060013592915050565b6000806000806060858703121561397457600080fd5b84356001600160401b0381111561398a57600080fd5b613996878288016134e3565b90989097506020870135966040013595509350505050565b6000602082840312156139c057600080fd5b6132b18261359e565b6000602082840312156139db57600080fd5b5035919050565b600080604083850312156139f557600080fd5b8235915061360f602084016134c7565b600060208284031215613a1757600080fd5b81356132b181614161565b600060208284031215613a3457600080fd5b81516132b181614161565b600060208284031215613a5157600080fd5b81356001600160401b03811115613a6757600080fd5b8201601f81018413613a7857600080fd5b611e178482356020840161346a565b600080600060608486031215613a9c57600080fd5b83359250613aac602085016134c7565b91506138f0604085016135ce565b60008060408385031215613acd57600080fd5b50508035926020909101359150565b60008060008060808587031215613af257600080fd5b843593506020850135925060408501359150613b106060860161359e565b905092959194509250565b600081518084526020808501945080840160005b83811015613b4b57815187529582019590820190600101613b2f565b509495945050505050565b60008151808452613b6e816020860160208601613fb5565b601f01601f19169290920160200192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613bba816017850160208801613fb5565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613beb816028840160208801613fb5565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613c2390830186613b1b565b8281036060840152613c358186613b1b565b90508281036080840152613c498185613b56565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613c8f90830184613b56565b979650505050505050565b6020815260006132b16020830184613b1b565b604081526000613cc06040830185613b1b565b8281036020840152613cd28185613b1b565b95945050505050565b6020815260006132b16020830184613b56565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526019908201527f43616c6c657220646f6573206e6f74206861766520726f6c6500000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b602080825260139082015272213930b732103237b2b9b73a1032bc34b9ba1760691b604082015260600190565b6020808252601b908201527f436f6c6c656374696f6e20494420646f65736e742065786973742e0000000000604082015260600190565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b602081526000825160606020840152613f156080840182613b1b565b90506020840151151560408401526040840151151560608401528091505092915050565b60006001600160401b03821115613f5257613f526140a6565b5060051b60200190565b60008219821115613f6f57613f6f61407a565b500190565b600082613f9157634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615613fb057613fb061407a565b500290565b60005b83811015613fd0578181015183820152602001613fb8565b83811115610d1c5750506000910152565b600081613ff057613ff061407a565b506000190190565b600181811c9082168061400c57607f821691505b6020821081141561402d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715614058576140586140a6565b6040525050565b60006000198214156140735761407361407a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156140d55760046000803e5060005160e01c5b90565b600060443d10156140e65790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561411557505050505090565b828501915081518181111561412d5750505050505090565b843d87010160208285010111156141475750505050505090565b61415660208286010187614033565b509095945050505050565b6001600160e01b031981168114611eba57600080fdfea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220810e42a8c39ab2f0e4dfc7a7c610645b3bc7d17d06055c10776db606a077058b64736f6c63430008070033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000000000000000000000000000000000000000003c68747470733a2f2f6261636b656e642e746f74656d2d756e6976657273652e696f2f6d7973746572792f6d657461696e666f2f7b69647d2e6a736f6e00000000

Deployed Bytecode

0x6080604052600436106103345760003560e01c806375b238fc116101ab578063a4435dfd116100f7578063d539139311610095578063e4469dee1161006f578063e4469dee14610a23578063e985e9c514610a43578063f242432a14610a8c578063f7132b4714610aac57600080fd5b8063d5391393146109af578063d547741f146109e3578063dee2accc14610a0357600080fd5b8063aa1b103f116100d1578063aa1b103f14610944578063aa98e0c614610959578063b8cec4f81461096f578063bd32fb661461098f57600080fd5b8063a4435dfd146108e5578063a57fbd8514610904578063a83575cb1461092457600080fd5b80639213f8d3116101645780639c43dc3e1161013e5780639c43dc3e146108635780639f02c81e14610890578063a217fddf146108b0578063a22cb465146108c557600080fd5b80639213f8d31461081057806398ae99a8146108305780639b8bfe621461084357600080fd5b806375b238fc1461073c57806376906a4e1461075e5780637ad71f721461077e57806382288db8146107b65780638a616bc0146107d057806391d14854146107f057600080fd5b80632eb2c2d6116102855780635944c7531161022357806360e8ddb0116101fd57806360e8ddb014610682578063616cdb1e1461069757806361792124146106b757806375794a3c1461072757600080fd5b80635944c753146106225780635b04c0b6146106425780635f04c16d1461066257600080fd5b80633a98ef391161025f5780633a98ef39146105b75780633ccfd60b146105cd57806342d7af4a146105e25780634e1273f41461060257600080fd5b80632eb2c2d6146105575780632f2ff15d1461057757806336568abe1461059757600080fd5b80630bb48ed1116102f257806319dfe4bd116102cc57806319dfe4bd146104a857806320a19879146104bb578063248a9ca3146104e85780632a55205a1461051857600080fd5b80630bb48ed11461042e5780630e89341c1461045b5780630fc9a5041461048857600080fd5b8062fdd58e1461033957806301ffc9a71461036c57806302fe53051461039c57806304634d8d146103be5780630596705d146103de5780630808da041461040e575b600080fd5b34801561034557600080fd5b5061035961035436600461374f565b610acc565b6040519081526020015b60405180910390f35b34801561037857600080fd5b5061038c610387366004613a05565b610b62565b6040519015158152602001610363565b3480156103a857600080fd5b506103bc6103b7366004613a3f565b610ba8565b005b3480156103ca57600080fd5b506103bc6103d93660046137ac565b610bea565b3480156103ea57600080fd5b506103596103f93660046139c9565b6000908152600a602052604090206003015490565b34801561041a57600080fd5b506103bc6104293660046137d6565b610c2e565b34801561043a57600080fd5b506103596104493660046139c9565b600c6020526000908152604090205481565b34801561046757600080fd5b5061047b6104763660046139c9565b610d22565b6040516103639190613cdb565b34801561049457600080fd5b506103bc6104a33660046139c9565b610db6565b6103bc6104b636600461395e565b610f34565b3480156104c757600080fd5b506104db6104d63660046139c9565b610fa1565b6040516103639190613c9a565b3480156104f457600080fd5b506103596105033660046139c9565b60009081526005602052604090206001015490565b34801561052457600080fd5b50610538610533366004613aba565b610fac565b604080516001600160a01b039093168352602083019190915201610363565b34801561056357600080fd5b506103bc610572366004613618565b61105a565b34801561058357600080fd5b506103bc6105923660046139e2565b6110a6565b3480156105a357600080fd5b506103bc6105b23660046139e2565b6110cb565b3480156105c357600080fd5b5061035960095481565b3480156105d957600080fd5b506103bc611145565b3480156105ee57600080fd5b506103bc6105fd366004613adc565b61124b565b34801561060e57600080fd5b506104db61061d3660046137d6565b611444565b34801561062e57600080fd5b506103bc61063d366004613a87565b61156d565b34801561064e57600080fd5b506103bc61065d366004613aba565b6115ad565b34801561066e57600080fd5b506103bc61067d3660046139c9565b61165b565b34801561068e57600080fd5b506104db611742565b3480156106a357600080fd5b506103bc6106b23660046139c9565b61179a565b3480156106c357600080fd5b506106d76106d23660046139c9565b6117d5565b6040516103639190600060c0820190508251825260208301516020830152604083015160408301526060830151606083015260808301511515608083015260a0830151151560a083015292915050565b34801561073357600080fd5b506103596118d4565b34801561074857600080fd5b5061035960008051602061417883398151915281565b34801561076a57600080fd5b506103bc6107793660046139c9565b6118e4565b34801561078a57600080fd5b5061079e6107993660046139c9565b6119d0565b6040516001600160a01b039091168152602001610363565b3480156107c257600080fd5b5060115461038c9060ff1681565b3480156107dc57600080fd5b506103bc6107eb3660046139c9565b6119fa565b3480156107fc57600080fd5b5061038c61080b3660046139e2565b611a41565b34801561081c57600080fd5b506103bc61082b366004613aba565b611a6c565b6103bc61083e366004613aba565b611baa565b34801561084f57600080fd5b506103bc61085e3660046139c9565b611c15565b34801561086f57600080fd5b5061088361087e3660046139c9565b611cfd565b6040516103639190613ef9565b34801561089c57600080fd5b506103bc6108ab366004613779565b611daa565b3480156108bc57600080fd5b50610359600081565b3480156108d157600080fd5b506103bc6108e0366004613725565b611dfc565b3480156108f157600080fd5b5060115461038c90610100900460ff1681565b34801561091057600080fd5b5061038c61091f3660046138a6565b611e07565b34801561093057600080fd5b506103bc61093f3660046138f9565b611e1f565b34801561095057600080fd5b506103bc611e7b565b34801561096557600080fd5b5061035960105481565b34801561097b57600080fd5b506103bc61098a3660046139c9565b611ebd565b34801561099b57600080fd5b506103bc6109aa3660046139c9565b611fa5565b3480156109bb57600080fd5b506103597f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156109ef57600080fd5b506103bc6109fe3660046139e2565b611fe0565b348015610a0f57600080fd5b50610359610a1e3660046139c9565b612005565b348015610a2f57600080fd5b506103bc610a3e3660046139ae565b612026565b348015610a4f57600080fd5b5061038c610a5e3660046135e5565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610a9857600080fd5b506103bc610aa73660046136c1565b612076565b348015610ab857600080fd5b506103bc610ac73660046139ae565b6120bb565b60006001600160a01b038316610b3c5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b0319821663152a902d60e11b1480610b9357506001600160e01b0319821663da8def7360e01b145b80610ba25750610ba28261210d565b92915050565b600080516020614178833981519152610bc18133611a41565b610bdd5760405162461bcd60e51b8152600401610b3390613d85565b610be682612132565b5050565b600080516020614178833981519152610c038133611a41565b610c1f5760405162461bcd60e51b8152600401610b3390613d85565b610c298383612145565b505050565b600080516020614178833981519152610c478133611a41565b610c635760405162461bcd60e51b8152600401610b3390613d85565b8151835114610ca05760405162461bcd60e51b81526020600482015260096024820152681b9bdd08195c5d585b60ba1b6044820152606401610b33565b8251610cb3906007906020860190613342565b508151610cc79060089060208501906133a7565b50600060098190555b8251811015610d1c57828181518110610ceb57610ceb614090565b602002602001015160096000828254610d049190613f5c565b90915550819050610d148161405f565b915050610cd0565b50505050565b606060028054610d3190613ff8565b80601f0160208091040260200160405190810160405280929190818152602001828054610d5d90613ff8565b8015610daa5780601f10610d7f57610100808354040283529160200191610daa565b820191906000526020600020905b815481529060010190602001808311610d8d57829003601f168201915b50505050509050919050565b600080516020614178833981519152610dcf8133611a41565b610deb5760405162461bcd60e51b8152600401610b3390613d85565b6000828152600b6020526040902060010154610100900460ff1615610e495760405162461bcd60e51b8152602060048201526014602482015273213930b7321030b63932b0b23c9032bc34b9ba1760611b6044820152606401610b33565b6040805160006060820181815260808301845282526001602080840182905283850191909152858252600b81529290208151805192939192610e8e92849201906133a7565b506020828101516001928301805460409586015115156101000261ff00199315159390931661ffff1990911617919091179055600e8054808401825560009182527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd018690558351908152908101829052918201527f545a1eaaef89c26c8ce7959295df2695e31c5acc72fcd503f4ddb7147ce4e5a29060600160405180910390a15050565b6000828152600a60205260409020600301543490610f53908390613f96565b14610f945760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642065746820707269636560781b6044820152606401610b33565b610d1c84843385856121ff565b6060610ba2826122a6565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916110215750604080518082019091526003546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611040906001600160601b031687613f96565b61104a9190613f74565b91519350909150505b9250929050565b6001600160a01b03851633148061107657506110768533610a5e565b6110925760405162461bcd60e51b8152600401610b3390613cee565b61109f8585858585612307565b5050505050565b6000828152600560205260409020600101546110c1816124dc565b610c2983836124e6565b6001600160a01b038116331461113b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b33565b610be6828261256c565b60008051602061417883398151915261115e8133611a41565b61117a5760405162461bcd60e51b8152600401610b3390613d85565b600047116111bf5760405162461bcd60e51b81526020600482015260126024820152716e6f2065746820746f20776974686472617760701b6044820152606401610b33565b4760005b600854811015610c29576000600954600883815481106111e5576111e5614090565b9060005260206000200154846111fb9190613f96565b6112059190613f74565b90506112386007838154811061121d5761121d614090565b6000918252602090912001546001600160a01b0316826125d3565b50806112438161405f565b9150506111c3565b6000805160206141788339815191526112648133611a41565b6112805760405162461bcd60e51b8152600401610b3390613d85565b6000848152600b6020526040902060010154610100900460ff166112b65760405162461bcd60e51b8152600401610b3390613e4b565b600085116113065760405162461bcd60e51b815260206004820181905260248201527f436f6c6c656374696f6e20737570706c792063616e6e6f74206265207a65726f6044820152606401610b33565b60006113106118d4565b6040805160c08101825287815260208082018a8152600083850181815260608086018c81528b151560808801818152600160a08a018181528c8852600a8a528b88209a518b5597518a820155945160028a015591516003890155905160049097018054955161ffff1990961697151561ff0019169790971761010095151595909502949094179095556006805482019055600d80548083019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb501879055600c84528582208c90558b8252600b8452858220805480830182559083529184902090910186905584518a8152928301919091528184015291519293508892849289927fcc1c591b2ec7c4fdd04b985c8a1e93381b74dfe6b4e9d2c72e953bed969a896a92918290030190a4505050505050565b606081518351146114a95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610b33565b600083516001600160401b038111156114c4576114c46140a6565b6040519080825280602002602001820160405280156114ed578160200160208202803683370190505b50905060005b84518110156115655761153885828151811061151157611511614090565b602002602001015185838151811061152b5761152b614090565b6020026020010151610acc565b82828151811061154a5761154a614090565b602090810291909101015261155e8161405f565b90506114f3565b509392505050565b6000805160206141788339815191526115868133611a41565b6115a25760405162461bcd60e51b8152600401610b3390613d85565b610d1c8484846126ec565b6000805160206141788339815191526115c68133611a41565b6115e25760405162461bcd60e51b8152600401610b3390613d85565b6000838152600a6020526040902060040154610100900460ff166116185760405162461bcd60e51b8152600401610b3390613e4b565b6000838152600a602052604080822060030184905551839185917f03bcc580a7ea06c39dc63225dc70f5908fb3ce18d5488b33e605a010b4076d919190a3505050565b6000805160206141788339815191526116748133611a41565b6116905760405162461bcd60e51b8152600401610b3390613d85565b6000828152600b6020526040902060010154610100900460ff166116c65760405162461bcd60e51b8152600401610b3390613e4b565b6000828152600b602052604090206001015460ff16156117215760405162461bcd60e51b8152602060048201526016602482015275213930b7321030b63932b0b23c9032b730b13632b21760511b6044820152606401610b33565b506000908152600b602052604090206001908101805460ff19169091179055565b6060600e80548060200260200160405190810160405280929190818152602001828054801561179057602002820191906000526020600020905b81548152602001906001019080831161177c575b5050505050905090565b6000805160206141788339815191526117b38133611a41565b6117cf5760405162461bcd60e51b8152600401610b3390613d85565b50600f55565b6118126040518060c00160405280600081526020016000815260200160008152602001600081526020016000151581526020016000151581525090565b6000828152600a6020526040902060040154610100900460ff166118705760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b6044820152606401610b33565b506000908152600a6020908152604091829020825160c081018452815481526001820154928101929092526002810154928201929092526003820154606082015260049091015460ff8082161515608084015261010090910416151560a082015290565b60006118df60065490565b905090565b6000805160206141788339815191526118fd8133611a41565b6119195760405162461bcd60e51b8152600401610b3390613d85565b6000828152600a6020526040902060040154610100900460ff1661194f5760405162461bcd60e51b8152600401610b3390613e78565b6000828152600a602052604090206004015460ff16156119b15760405162461bcd60e51b815260206004820152601b60248201527f436f6c6c656374696f6e20616c726561647920656e61626c65642e00000000006044820152606401610b33565b506000908152600a60205260409020600401805460ff19166001179055565b600781815481106119e057600080fd5b6000918252602090912001546001600160a01b0316905081565b600080516020614178833981519152611a138133611a41565b611a2f5760405162461bcd60e51b8152600401610b3390613d85565b50600090815260046020526040812055565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080516020614178833981519152611a858133611a41565b611aa15760405162461bcd60e51b8152600401610b3390613d85565b60008211611af15760405162461bcd60e51b815260206004820181905260248201527f436f6c6c656374696f6e20737570706c792063616e6e6f74206265207a65726f6044820152606401610b33565b6000838152600a602052604090206004015460ff16611b225760405162461bcd60e51b8152600401610b3390613e78565b6000838152600a6020526040902060028101546001909101541015611b945760405162461bcd60e51b815260206004820152602260248201527f4361702063616e6e6f74206c657373207468616e206d696e74656420746f6b65604482015261371760f11b6064820152608401610b33565b506000918252600a602052604090912060010155565b6000828152600a60205260409020600301543490611bc9908390613f96565b14611c0a5760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642065746820707269636560781b6044820152606401610b33565b610be63383836127b7565b600080516020614178833981519152611c2e8133611a41565b611c4a5760405162461bcd60e51b8152600401610b3390613d85565b6000828152600b6020526040902060010154610100900460ff16611c805760405162461bcd60e51b8152600401610b3390613e4b565b6000828152600b602052604090206001015460ff16611ce15760405162461bcd60e51b815260206004820152601760248201527f4272616e6420616c72656164792064697361626c65642e0000000000000000006044820152606401610b33565b506000908152600b60205260409020600101805460ff19169055565b60408051606080820183528152600060208201819052918101919091526000828152600b602090815260409182902082518154608093810282018401909452606081018481529093919284928491840182828015611d7a57602002820191906000526020600020905b815481526020019060010190808311611d66575b50505091835250506001919091015460ff8082161515602084015261010090910416151560409091015292915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611dd58133611a41565b611df15760405162461bcd60e51b8152600401610b3390613d85565b610d1c8484846127b7565b610be633838361285f565b6000611e17826010548686612940565b949350505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611e4a8133611a41565b611e665760405162461bcd60e51b8152600401610b3390613d85565b611e7386868686866121ff565b505050505050565b600080516020614178833981519152611e948133611a41565b611eb05760405162461bcd60e51b8152600401610b3390613d85565b611eba6000600355565b50565b600080516020614178833981519152611ed68133611a41565b611ef25760405162461bcd60e51b8152600401610b3390613d85565b6000828152600a6020526040902060040154610100900460ff16611f285760405162461bcd60e51b8152600401610b3390613e78565b6000828152600a602052604090206004015460ff16611f895760405162461bcd60e51b815260206004820152601c60248201527f436f6c6c656374696f6e20616c72656164792064697361626c65642e000000006044820152606401610b33565b506000908152600a60205260409020600401805460ff19169055565b600080516020614178833981519152611fbe8133611a41565b611fda5760405162461bcd60e51b8152600401610b3390613d85565b50601055565b600082815260056020526040902060010154611ffb816124dc565b610c29838361256c565b6008818154811061201557600080fd5b600091825260209091200154905081565b60008051602061417883398151915261203f8133611a41565b61205b5760405162461bcd60e51b8152600401610b3390613d85565b50601180549115156101000261ff0019909216919091179055565b6001600160a01b03851633148061209257506120928533610a5e565b6120ae5760405162461bcd60e51b8152600401610b3390613cee565b61109f85858585856129c6565b6000805160206141788339815191526120d48133611a41565b6120f05760405162461bcd60e51b8152600401610b3390613d85565b506011805460ff1916911515919091179055565b80546001019055565b60006001600160e01b03198216637965db0b60e01b1480610ba25750610ba282612af0565b8051610be69060029060208401906133e2565b6127106001600160601b03821611156121705760405162461bcd60e51b8152600401610b3390613eaf565b6001600160a01b0382166121c65760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b33565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b60115460ff166122515760405162461bcd60e51b815260206004820152601760248201527f5072656d696e74206e6f7420796574206f70656e65642e0000000000000000006044820152606401610b33565b61225f836010548787612940565b61229b5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610b33565b61109f838383612b15565b6000818152600b6020908152604091829020805483518184028101840190945280845260609392830182828015610daa57602002820191906000526020600020905b8154815260200190600101908083116122e85750505050509050919050565b81518351146123695760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610b33565b6001600160a01b03841661238f5760405162461bcd60e51b8152600401610b3390613dbc565b3360005b84518110156124765760008582815181106123b0576123b0614090565b6020026020010151905060008583815181106123ce576123ce614090565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561241e5760405162461bcd60e51b8152600401610b3390613e01565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061245b908490613f5c565b925050819055505050508061246f9061405f565b9050612393565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124c6929190613cad565b60405180910390a4611e73818787878787612cc1565b611eba8133612e35565b6124f08282611a41565b610be65760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556125283390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6125768282611a41565b15610be65760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b804710156126235760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b33565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612670576040519150601f19603f3d011682016040523d82523d6000602084013e612675565b606091505b5050905080610c295760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b33565b6127106001600160601b03821611156127175760405162461bcd60e51b8152600401610b3390613eaf565b6001600160a01b03821661276d5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610b33565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600490529190942093519051909116600160a01b029116179055565b60115460ff16156127fd5760405162461bcd60e51b815260206004820152601060248201526f283932b6b4b73a1037b733b7b4b7339760811b6044820152606401610b33565b601154610100900460ff166128545760405162461bcd60e51b815260206004820152601a60248201527f5075626c69634d696e74206e6f742079657420737461727465640000000000006044820152606401610b33565b610c29838383612b15565b816001600160a01b0316836001600160a01b031614156128d35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610b33565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6040516bffffffffffffffffffffffff19606086901b16602082015260009081906034016040516020818303038152906040528051906020012090506129bc848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250859150612e999050565b9695505050505050565b6001600160a01b0384166129ec5760405162461bcd60e51b8152600401610b3390613dbc565b3360006129f885612ea6565b90506000612a0585612ea6565b90506000868152602081815260408083206001600160a01b038c16845290915290205485811015612a485760405162461bcd60e51b8152600401610b3390613e01565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612a85908490613f5c565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612ae5848a8a8a8a8a612ef1565b505050505050505050565b60006001600160e01b0319821663152a902d60e11b1480610ba25750610ba282612fbb565b60008111612b655760405162461bcd60e51b815260206004820152601760248201527f7175616e746974792063616e6e6f74206265207a65726f0000000000000000006044820152606401610b33565b600f54811115612bb75760405162461bcd60e51b815260206004820152601d60248201527f657863656564206d6178206d696e74206c696d6974207065722074782e0000006044820152606401610b33565b6000828152600a602052604090206004015460ff16612c185760405162461bcd60e51b815260206004820152601e60248201527f436f6c6c656374696f6e2063757272656e746c792064697361626c65642e00006044820152606401610b33565b6000828152600a602052604090206001810154600290910154612c3c908390613f5c565b1115612c7e5760405162461bcd60e51b8152602060048201526011602482015270657863656564206d617820737570706c7960781b6044820152606401610b33565b6000828152600a602052604081206002018054839290612c9f908490613f5c565b92505081905550610c298383836040518060200160405280600081525061300b565b6001600160a01b0384163b15611e735760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612d059089908990889088908890600401613bf7565b602060405180830381600087803b158015612d1f57600080fd5b505af1925050508015612d4f575060408051601f3d908101601f19168201909252612d4c91810190613a22565b60015b612dfc57612d5b6140bc565b806308c379a01415612d955750612d706140d8565b80612d7b5750612d97565b8060405162461bcd60e51b8152600401610b339190613cdb565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610b33565b6001600160e01b0319811663bc197c8160e01b14612e2c5760405162461bcd60e51b8152600401610b3390613d3d565b50505050505050565b612e3f8282611a41565b610be657612e57816001600160a01b03166014613116565b612e62836020613116565b604051602001612e73929190613b82565b60408051601f198184030181529082905262461bcd60e51b8252610b3391600401613cdb565b6000611e178484846132b8565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612ee057612ee0614090565b602090810291909101015292915050565b6001600160a01b0384163b15611e735760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612f359089908990889088908890600401613c55565b602060405180830381600087803b158015612f4f57600080fd5b505af1925050508015612f7f575060408051601f3d908101601f19168201909252612f7c91810190613a22565b60015b612f8b57612d5b6140bc565b6001600160e01b0319811663f23a6e6160e01b14612e2c5760405162461bcd60e51b8152600401610b3390613d3d565b60006001600160e01b03198216636cdb3d1360e11b1480612fec57506001600160e01b031982166303a24d0760e21b145b80610ba257506301ffc9a760e01b6001600160e01b0319831614610ba2565b6001600160a01b03841661306b5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b33565b33600061307785612ea6565b9050600061308485612ea6565b90506000868152602081815260408083206001600160a01b038b168452909152812080548792906130b6908490613f5c565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612e2c83600089898989612ef1565b60606000613125836002613f96565b613130906002613f5c565b6001600160401b03811115613147576131476140a6565b6040519080825280601f01601f191660200182016040528015613171576020820181803683370190505b509050600360fc1b8160008151811061318c5761318c614090565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106131bb576131bb614090565b60200101906001600160f81b031916908160001a90535060006131df846002613f96565b6131ea906001613f5c565b90505b6001811115613262576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061321e5761321e614090565b1a60f81b82828151811061323457613234614090565b60200101906001600160f81b031916908160001a90535060049490941c9361325b81613fe1565b90506131ed565b5083156132b15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b33565b9392505050565b6000826132c585846132ce565b14949350505050565b600081815b8451811015611565576132ff828683815181106132f2576132f2614090565b6020026020010151613313565b91508061330b8161405f565b9150506132d3565b600081831061332f5760008281526020849052604090206132b1565b60008381526020839052604090206132b1565b828054828255906000526020600020908101928215613397579160200282015b8281111561339757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190613362565b506133a3929150613455565b5090565b828054828255906000526020600020908101928215613397579160200282015b828111156133975782518255916020019190600101906133c7565b8280546133ee90613ff8565b90600052602060002090601f0160209004810192826134105760008555613397565b82601f1061342957805160ff1916838001178555613397565b8280016001018555821561339757918201828111156133975782518255916020019190600101906133c7565b5b808211156133a35760008155600101613456565b60006001600160401b03831115613483576134836140a6565b60405161349a601f8501601f191660200182614033565b8091508381528484840111156134af57600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b03811681146134de57600080fd5b919050565b60008083601f8401126134f557600080fd5b5081356001600160401b0381111561350c57600080fd5b6020830191508360208260051b850101111561105357600080fd5b600082601f83011261353857600080fd5b8135602061354582613f39565b6040516135528282614033565b8381528281019150858301600585901b8701840188101561357257600080fd5b60005b8581101561359157813584529284019290840190600101613575565b5090979650505050505050565b803580151581146134de57600080fd5b600082601f8301126135bf57600080fd5b6132b18383356020850161346a565b80356001600160601b03811681146134de57600080fd5b600080604083850312156135f857600080fd5b613601836134c7565b915061360f602084016134c7565b90509250929050565b600080600080600060a0868803121561363057600080fd5b613639866134c7565b9450613647602087016134c7565b935060408601356001600160401b038082111561366357600080fd5b61366f89838a01613527565b9450606088013591508082111561368557600080fd5b61369189838a01613527565b935060808801359150808211156136a757600080fd5b506136b4888289016135ae565b9150509295509295909350565b600080600080600060a086880312156136d957600080fd5b6136e2866134c7565b94506136f0602087016134c7565b9350604086013592506060860135915060808601356001600160401b0381111561371957600080fd5b6136b4888289016135ae565b6000806040838503121561373857600080fd5b613741836134c7565b915061360f6020840161359e565b6000806040838503121561376257600080fd5b61376b836134c7565b946020939093013593505050565b60008060006060848603121561378e57600080fd5b613797846134c7565b95602085013595506040909401359392505050565b600080604083850312156137bf57600080fd5b6137c8836134c7565b915061360f602084016135ce565b600080604083850312156137e957600080fd5b82356001600160401b038082111561380057600080fd5b818501915085601f83011261381457600080fd5b8135602061382182613f39565b60405161382e8282614033565b8381528281019150858301600585901b870184018b101561384e57600080fd5b600096505b8487101561387857613864816134c7565b835260019690960195918301918301613853565b509650508601359250508082111561388f57600080fd5b5061389c85828601613527565b9150509250929050565b6000806000604084860312156138bb57600080fd5b83356001600160401b038111156138d157600080fd5b6138dd868287016134e3565b90945092506138f09050602085016134c7565b90509250925092565b60008060008060006080868803121561391157600080fd5b85356001600160401b0381111561392757600080fd5b613933888289016134e3565b90965094506139469050602087016134c7565b94979396509394604081013594506060013592915050565b6000806000806060858703121561397457600080fd5b84356001600160401b0381111561398a57600080fd5b613996878288016134e3565b90989097506020870135966040013595509350505050565b6000602082840312156139c057600080fd5b6132b18261359e565b6000602082840312156139db57600080fd5b5035919050565b600080604083850312156139f557600080fd5b8235915061360f602084016134c7565b600060208284031215613a1757600080fd5b81356132b181614161565b600060208284031215613a3457600080fd5b81516132b181614161565b600060208284031215613a5157600080fd5b81356001600160401b03811115613a6757600080fd5b8201601f81018413613a7857600080fd5b611e178482356020840161346a565b600080600060608486031215613a9c57600080fd5b83359250613aac602085016134c7565b91506138f0604085016135ce565b60008060408385031215613acd57600080fd5b50508035926020909101359150565b60008060008060808587031215613af257600080fd5b843593506020850135925060408501359150613b106060860161359e565b905092959194509250565b600081518084526020808501945080840160005b83811015613b4b57815187529582019590820190600101613b2f565b509495945050505050565b60008151808452613b6e816020860160208601613fb5565b601f01601f19169290920160200192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613bba816017850160208801613fb5565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613beb816028840160208801613fb5565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613c2390830186613b1b565b8281036060840152613c358186613b1b565b90508281036080840152613c498185613b56565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613c8f90830184613b56565b979650505050505050565b6020815260006132b16020830184613b1b565b604081526000613cc06040830185613b1b565b8281036020840152613cd28185613b1b565b95945050505050565b6020815260006132b16020830184613b56565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526019908201527f43616c6c657220646f6573206e6f74206861766520726f6c6500000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b602080825260139082015272213930b732103237b2b9b73a1032bc34b9ba1760691b604082015260600190565b6020808252601b908201527f436f6c6c656374696f6e20494420646f65736e742065786973742e0000000000604082015260600190565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b602081526000825160606020840152613f156080840182613b1b565b90506020840151151560408401526040840151151560608401528091505092915050565b60006001600160401b03821115613f5257613f526140a6565b5060051b60200190565b60008219821115613f6f57613f6f61407a565b500190565b600082613f9157634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615613fb057613fb061407a565b500290565b60005b83811015613fd0578181015183820152602001613fb8565b83811115610d1c5750506000910152565b600081613ff057613ff061407a565b506000190190565b600181811c9082168061400c57607f821691505b6020821081141561402d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715614058576140586140a6565b6040525050565b60006000198214156140735761407361407a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156140d55760046000803e5060005160e01c5b90565b600060443d10156140e65790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561411557505050505090565b828501915081518181111561412d5750505050505090565b843d87010160208285010111156141475750505050505090565b61415660208286010187614033565b509095945050505050565b6001600160e01b031981168114611eba57600080fdfea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220810e42a8c39ab2f0e4dfc7a7c610645b3bc7d17d06055c10776db606a077058b64736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000000000000000000000000000000000000000003c68747470733a2f2f6261636b656e642e746f74656d2d756e6976657273652e696f2f6d7973746572792f6d657461696e666f2f7b69647d2e6a736f6e00000000

-----Decoded View---------------
Arg [0] : baseMetaURI (string): https://backend.totem-universe.io/mystery/metainfo/{id}.json
Arg [1] : _feeNumerator (uint96): 250

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000fa
Arg [2] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [3] : 68747470733a2f2f6261636b656e642e746f74656d2d756e6976657273652e69
Arg [4] : 6f2f6d7973746572792f6d657461696e666f2f7b69647d2e6a736f6e00000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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