ETH Price: $3,091.41 (-1.36%)

Token

 

Overview

Max Total Supply

29

Holders

27

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Null: 0x000...000
0x0000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Balladr

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 10000 runs

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

import "../node_modules/@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "../node_modules/@openzeppelin/contracts/access/Ownable.sol";

/**
 * @title Ballad(r)'s NFT Contract
 * @notice All Collections and NFTs from this contract are minted by artists.
 */

contract Balladr is ERC1155, Ownable {

    // List of authorized contracts allowed to interact with protected functions
    mapping(address => bool) public authorizedContracts;

    // Base Royalties in Basis Points
    uint256 public baseRoyaltiesInBasisPoints;

    // Store the Uri of the Token
    mapping(uint256 => string) private _tokenUris;

    //Store whether the Uri has been set as Frozen (not modifiable)
    mapping(uint256 => bool) private isTokenUriFrozen;

    // Store the maximum supply for a given token
    mapping(uint256 => uint256) private tokenMaxSupply;

    // Store the current minted supply for a given token
    mapping(uint256 => uint256) private tokenMinteds;

    // Store the address owning a given collection
    mapping(uint256 => address) private collectionOwner;

    // Store the collectionId that a given tokenId belongs to
    mapping(uint256 => uint256) private tokenIdToCollectionId;

    // Store whether a given collection is closed
    mapping(uint256 => bool) private isCollectionClosed;

    // Store an alternative payment address for a collection
    // The alternative payment address could be a contract
    mapping(uint256 => address) private collectionPaymentAddress;

    // Store a custom royalty percentage for a given collection
    // The percentage is store in Basis Points
    mapping(uint256 => uint256) private collectionRoyaltyPercentage;

    // Store the metadata of the contract
    string public contractUri;

    // Event fired when a token URI is frozen
    event PermanentURI(string uri, uint256 indexed tokenId);

    // Event fired when a collection is closed
    event CollectionClosed(uint256 indexed collectionId);

    // Event fired when a new token is minted
    event Minted(address indexed creator, uint256 indexed tokenId, uint256 amount);

    // Event fired when a payment address has been set for a specific CollectionId
    event CollectionPaymentAddressUpdated(uint256 indexed collectionId, address paymentAddress);

    // Event fired when royalties are updated for a collection
    event CollectionRoyaltiesUpdated(uint256 indexed collectionId, uint256 _royalties);

    // Event fired when collection owner is updated
    event CollectionOwnerUpdated(uint256 indexed collectionId, address newOwner);

    /**
    * @notice Only an Authorized Minter or Manager contract can use modified function
    */
    modifier onlyAuthorized() {
        require(authorizedContracts[msg.sender] == true, "Not authorized");
        _;
    }

    /**
    * @notice Overide default ERC-1155 URI
    */
    function uri(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        return _tokenUris[tokenId];
    }

    /**
    * @notice Set base royalties for Artists.
    * Maximum that could ever be set by Balladr is 10% (in Basis Points)
    */
    function setbaseRoyaltiesInBasisPoints(uint256 _baseRoyaltiesInBasisPoints) public onlyOwner {
        require(_baseRoyaltiesInBasisPoints <= 1000, "Royalties are too high");
        baseRoyaltiesInBasisPoints = _baseRoyaltiesInBasisPoints;
    }

    /**
    * @notice Add an Authorized Contract
    */
    function addAuthorizedContrat(address target) public onlyOwner {
        authorizedContracts[target] = true;
    }

    /**
    * @notice Revoke an Authorized contract
    */
    function removeAuthorizedContrat(address target) public onlyOwner {
        authorizedContracts[target] = false;
    }

    /**
    * @notice Change contract Uri
    */
    function setContractUri(string memory _contractUri) public onlyOwner {
        contractUri = _contractUri;
    }

    /**
    * @notice Retrieve contract Uri
    */
    function contractURI() public view returns (string memory) {
        return contractUri;
    }

    /**
    * @notice Retrieve Frozen status for a given tokenId
    */
    function getIsTokenUriFrozen(uint256 tokenId) public view returns (bool _isFrozen) {
        return isTokenUriFrozen[tokenId];
    }

    /**
    * @notice Retrieve owner's address for a given collectionId
    */
    function getCollectionOwner(uint256 collectionId) public view returns (address _owner) {
        return collectionOwner[collectionId];
    }

    /**
    * @notice Set a new collection Owner
    */
    function setCollectionOwner(uint256 collectionId, address newOwner) public onlyAuthorized {
        collectionOwner[collectionId] = newOwner;
        emit CollectionOwnerUpdated(collectionId, newOwner);
    }

    /**
    * @notice Retrieve collectionId for a given tokenId
    */
    function getTokenIdToCollectionId(uint256 tokenId) public view returns (uint256 _collectionId) {
        return tokenIdToCollectionId[tokenId];
    }

    /**
    * @notice Retrieve Collection status for a given collectionId
    */
    function getIsCollectionClosed(uint256 collectionId) public view returns (bool _isCollectionClosed) {
        return isCollectionClosed[collectionId];
    }

    /**
    * @notice Set the Uri for a given token
    * Only if token is not Frozen
    */
    function setTokenUri(uint256 tokenId, string memory newUri) public onlyAuthorized {
        require(isTokenUriFrozen[tokenId] == false, "Token is frozen");
        _tokenUris[tokenId] = newUri;
    }

    /**
    * @notice Freeze the Uri of a given token
    */
    function freezeTokenUri(uint256 tokenId) public onlyAuthorized {
        isTokenUriFrozen[tokenId] = true;
        emit PermanentURI(_tokenUris[tokenId], tokenId);
    }

    /**
    * @notice Retrieve the original creator for a given tokenId
    */
    function getTokenOriginalCreator(uint256 tokenId) public view returns (address creator) {
        return collectionOwner[tokenIdToCollectionId[tokenId]];
    }

    /**
    * @notice Retrieve Token Max Supply
    */
    function getTokenMaxSupply(uint256 tokenId) public view returns (uint256 maxSupply) {
        return tokenMaxSupply[tokenId];
    }

    /**
    * @notice Retrieve Token Minted amount
    */
    function getTokenMintedAmount(uint256 tokenId) public view returns (uint256 mintedAmount) {
        return tokenMinteds[tokenId];
    }

    /**
    * @notice Retrieve Royalties information for a given tokenId
    * If no custom royalties has been set, return base royalties (in Basis Points)
    */
    function getTokenRoyalties(uint256 tokenId) public view returns (uint256 royalties) {
        if (collectionRoyaltyPercentage[tokenIdToCollectionId[tokenId]] == 0) {
          return baseRoyaltiesInBasisPoints;
        }
        return collectionRoyaltyPercentage[tokenIdToCollectionId[tokenId]];
    }

    /**
    * @notice Retrieve paymentAddress for a given tokenId. If no alternative payment
    * address set, return the original creator's address
    */
    function getTokenRoyaltiesPaymentAddress(uint256 tokenId) public view returns (address creator) {
        if (collectionPaymentAddress[tokenIdToCollectionId[tokenId]] == address(0)) {
          return collectionOwner[tokenIdToCollectionId[tokenId]];
        }
        return collectionPaymentAddress[tokenIdToCollectionId[tokenId]];
    }

    /**
    * @notice Retrieve Royalty/Creator pair information for a given tokenId
    */
    function getRoyalties(uint256 tokenId) public view returns (address paymentAddress, uint256 royalties) {
        uint256 _royalties = getTokenRoyalties(tokenId);
        address _paymentAddress = getTokenRoyaltiesPaymentAddress(tokenId);
        return (_paymentAddress, _royalties);
    }

    /**
    * @notice Retrieve Royalties information for a given collectionId
    * If no custom royalties has been set, return base royalties (in Basis Points)
    */
    function getCollectionRoyalties(uint256 collectionId) public view returns (uint256 royalties) {
        if (collectionRoyaltyPercentage[collectionId] == 0) {
          return baseRoyaltiesInBasisPoints;
        }
        return collectionRoyaltyPercentage[collectionId];
    }

    /**
    * @notice Retrieve paymentAddress for a given collectionId. If no alternative payment
    * address set, return the original creator's address
    */
    function getCollectionRoyaltiesPaymentAddress(uint256 collectionId) public view returns (address creator) {
        if (collectionPaymentAddress[collectionId] == address(0)) {
          return collectionOwner[collectionId];
        }
        return collectionPaymentAddress[collectionId];
    }

    /**
    * @notice Retrieve Royalty/Creator pair information for a given collectionId
    */
    function getRoyaltiesPerCollection(uint256 collectionId) public view returns (address paymentAddress, uint256 royalties) {
        uint256 _royalties = getCollectionRoyalties(collectionId);
        address _paymentAddress = getCollectionRoyaltiesPaymentAddress(collectionId);
        return (_paymentAddress, _royalties);
    }

    /**
    * @notice Close a collection, no more token will are allowed to be minted
    */
    function setCloseCollection(uint256 collectionId) public onlyAuthorized {
        isCollectionClosed[collectionId] = true;
        emit CollectionClosed(collectionId);
    }

    /**
    * @notice Set an alternative payment address for a given collectionId
    * This address could be a contract address
    */
    function setCollectionPaymentAddress(uint256 collectionId, address _paymentAddress) public onlyAuthorized {
        collectionPaymentAddress[collectionId] = _paymentAddress;
        emit CollectionPaymentAddressUpdated(collectionId, _paymentAddress);
    }

    /**
    * @notice Set a custom Royalty fee, in basis points.
    * Maximum is 1000 (10%)
    * Custom Royalty can't be modified after a collection has been closed
    */
    function setCollectionRoyalties(uint256 collectionId, uint256 _royalties) public onlyAuthorized {
        require(_royalties <= 1000, "Royalties are too high");
        require(isCollectionClosed[collectionId] == false, "Collection is closed");
        collectionRoyaltyPercentage[collectionId] = _royalties;
        emit CollectionRoyaltiesUpdated(collectionId, _royalties);
    }

    /**
    * @notice Only an Authorized Contract can manage the Minting Function
    * The mintWrapper function is made to allow lazy minting
    * and lazy collection creation.
    *
    *
    * B A L L A D (R) *
    *
    */
    function mintWrapper(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        string memory targetUri,
        uint256 maxSupply,
        bool isFrozen,
        uint256 collectionId,
        bytes memory data
    ) public {
        // Only an Authorized Contract can use this function.
        require(authorizedContracts[msg.sender] == true, "Not Authorized");

        // Minting is only allowed in an opened collection
        require(isCollectionClosed[collectionId] == false, "Collection is closed");

        // If Collection Owner is set, only the owner should be able to mint.
        if (collectionOwner[collectionId] != address(0)) {
          require(from == collectionOwner[collectionId], "Minter is not the owner of the Collection");
        }

        // Froze the supply the first time a tokenId is minted
        if (tokenMaxSupply[id] == 0) {
            tokenMaxSupply[id] = maxSupply;
        }

        // The amount of token requested to be minted should be less than the total available supply
        require(
            (tokenMinteds[id] + amount) <= tokenMaxSupply[id],
            "Not enough supply"
        );

        // Minting process

        // The tokenUri is set the first time the minting function is called for a given tokenId.
        if (bytes(_tokenUris[id]).length == 0) {
            _tokenUris[id] = targetUri;
        }

        // Set whether the tokenUri is frozen or not
        if (isFrozen == true) {
            if (isTokenUriFrozen[id] == false) {
                isTokenUriFrozen[id] = true;
                emit PermanentURI(targetUri, id);
            }
        }

        // Assign every Token to a CollectionId - Once per Token
        if (tokenIdToCollectionId[id] == 0) {
          tokenIdToCollectionId[id] = collectionId;
          // The first minted token from a Collection should set the Collection Owner
          if (collectionOwner[collectionId] == address(0)) {
            collectionOwner[collectionId] = from;
          }
        }

        // Increment the current minted supply
        tokenMinteds[id] += amount;

        // Call original ERC1155 function from the original token creator
        _mint(from, id, amount, data);

        // Emit the minting event
        emit Minted(from, id, amount);

        // Transfer the token from the creator the buyer
        _safeTransferFrom(from, to, id, amount, data);
    }

    constructor(string memory _contractUri) ERC1155("") {
        baseRoyaltiesInBasisPoints = 500;
        contractUri = _contractUri;
    }
}

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

pragma solidity ^0.8.0;

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

File 3 of 10 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 4 of 10 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 10 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 7 of 10 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

File 8 of 10 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 9 of 10 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_contractUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"CollectionClosed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"collectionId","type":"uint256"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"CollectionOwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"collectionId","type":"uint256"},{"indexed":false,"internalType":"address","name":"paymentAddress","type":"address"}],"name":"CollectionPaymentAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"collectionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_royalties","type":"uint256"}],"name":"CollectionRoyaltiesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"PermanentURI","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"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"addAuthorizedContrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorizedContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"baseRoyaltiesInBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"freezeTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"getCollectionOwner","outputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"getCollectionRoyalties","outputs":[{"internalType":"uint256","name":"royalties","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"getCollectionRoyaltiesPaymentAddress","outputs":[{"internalType":"address","name":"creator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"getIsCollectionClosed","outputs":[{"internalType":"bool","name":"_isCollectionClosed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getIsTokenUriFrozen","outputs":[{"internalType":"bool","name":"_isFrozen","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address","name":"paymentAddress","type":"address"},{"internalType":"uint256","name":"royalties","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"getRoyaltiesPerCollection","outputs":[{"internalType":"address","name":"paymentAddress","type":"address"},{"internalType":"uint256","name":"royalties","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenIdToCollectionId","outputs":[{"internalType":"uint256","name":"_collectionId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenMaxSupply","outputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenMintedAmount","outputs":[{"internalType":"uint256","name":"mintedAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenOriginalCreator","outputs":[{"internalType":"address","name":"creator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenRoyalties","outputs":[{"internalType":"uint256","name":"royalties","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenRoyaltiesPaymentAddress","outputs":[{"internalType":"address","name":"creator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"targetUri","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"bool","name":"isFrozen","type":"bool"},{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintWrapper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"removeAuthorizedContrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"setCloseCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"address","name":"newOwner","type":"address"}],"name":"setCollectionOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"address","name":"_paymentAddress","type":"address"}],"name":"setCollectionPaymentAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"_royalties","type":"uint256"}],"name":"setCollectionRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractUri","type":"string"}],"name":"setContractUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newUri","type":"string"}],"name":"setTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_baseRoyaltiesInBasisPoints","type":"uint256"}],"name":"setbaseRoyaltiesInBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604051620033183803806200331883398101604081905262000034916200019b565b6040805160208101909152600081526200004e8162000086565b50620000636200005d6200009f565b620000a3565b6101f460055580516200007e90600f906020840190620000f5565b5050620002bd565b80516200009b906002906020840190620000f5565b5050565b3390565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000103906200026a565b90600052602060002090601f01602090048101928262000127576000855562000172565b82601f106200014257805160ff191683800117855562000172565b8280016001018555821562000172579182015b828111156200017257825182559160200191906001019062000155565b506200018092915062000184565b5090565b5b8082111562000180576000815560010162000185565b60006020808385031215620001ae578182fd5b82516001600160401b0380821115620001c5578384fd5b818501915085601f830112620001d9578384fd5b815181811115620001ee57620001ee620002a7565b604051601f8201601f1916810185018381118282101715620002145762000214620002a7565b60405281815283820185018810156200022b578586fd5b8592505b818310156200024e57838301850151818401860152918401916200022f565b818311156200025f57858583830101525b979650505050505050565b6002810460018216806200027f57607f821691505b60208210811415620002a157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61304b80620002cd6000396000f3fe608060405234801561001057600080fd5b50600436106102ac5760003560e01c806384d45cfc1161017b578063e1e9fce8116100d8578063ef84d4d21161008c578063f2fde38b11610071578063f2fde38b14610580578063fbe25d0e14610593578063fc16c40f146105a6576102ac565b8063ef84d4d21461055a578063f242432a1461056d576102ac565b8063e83ee806116100bd578063e83ee8061461052c578063e8a3d4851461053f578063e985e9c514610547576102ac565b8063e1e9fce814610506578063e2cc50a714610519576102ac565b8063bb3bafd61161012f578063ccb4807b11610114578063ccb4807b146104cd578063d3642971146104e0578063d5b9221b146104f3576102ac565b8063bb3bafd6146104b2578063c0e24d5e146104c5576102ac565b80639ba5c162116101605780639ba5c16214610479578063a22cb4651461048c578063ad9f2a6b1461049f576102ac565b806384d45cfc146104695780638da5cb5b14610471576102ac565b8063394120c011610229578063649b90fb116101dd57806370bb342b116101c257806370bb342b1461043b578063715018a61461044e578063753a672514610456576102ac565b8063649b90fb146104075780636fcca29c14610428576102ac565b80634e1273f41161020e5780634e1273f4146103c157806350703d5f146103e157806357f7789e146103f4576102ac565b8063394120c01461039b5780634c2cd34c146103ae576102ac565b80630a2f04ab116102805780631c3a221e116102655780631c3a221e146103555780632c04c3ef146103685780632eb2c2d614610388576102ac565b80630a2f04ab146103225780630e89341c14610335576102ac565b8062fdd58e146102b157806301ffc9a7146102da578063020cb1d3146102fa57806308d10e141461030f575b600080fd5b6102c46102bf3660046122d1565b6105b9565b6040516102d19190612d8c565b60405180910390f35b6102ed6102e83660046123b8565b610610565b6040516102d19190612673565b61030d610308366004612443565b6106ba565b005b6102c461031d36600461242b565b61076b565b6102ed61033036600461242b565b6107b4565b61034861034336600461242b565b6107c9565b6040516102d1919061267e565b6102c461036336600461242b565b61086b565b61037b61037636600461242b565b61087d565b6040516102d19190612564565b61030d6103963660046120e5565b6108a5565b61037b6103a936600461242b565b610903565b61037b6103bc36600461242b565b61091e565b6103d46103cf3660046122fa565b61099b565b6040516102d19190612632565b61030d6103ef3660046121ee565b610b1f565b61030d610402366004612465565b610e01565b61041a61041536600461242b565b610e88565b6040516102d1929190612619565b61030d610436366004612443565b610eae565b61030d610449366004612092565b610f53565b61030d610fb3565b61030d61046436600461242b565b610ffe565b6102c4611075565b61037b61107b565b61030d6104873660046124a0565b61108b565b61030d61049a3660046122a8565b611153565b6102c46104ad36600461242b565b611221565b61041a6104c036600461242b565b611233565b61034861124e565b61030d6104db3660046123f0565b6112dc565b61030d6104ee36600461242b565b611332565b6102ed610501366004612092565b611398565b6102c461051436600461242b565b6113ad565b6102ed61052736600461242b565b6113dc565b61037b61053a36600461242b565b6113f1565b610348611447565b6102ed6105553660046120b3565b6114d9565b61030d610568366004612092565b611507565b61030d61057b36600461218b565b61156a565b61030d61058e366004612092565b6115c1565b6102c46105a136600461242b565b611632565b61030d6105b436600461242b565b611644565b60006001600160a01b0383166105ea5760405162461bcd60e51b81526004016105e190612845565b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a260000000000000000000000000000000000000000000000000000000014806106a357507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806106b257506106b2826116d8565b90505b919050565b3360009081526004602052604090205460ff1615156001146106ee5760405162461bcd60e51b81526004016105e190612d1e565b6000828152600a60205260409081902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384161790555182907f7e684d0ff7a4194c380eb26db7244926635668ccd3eda4934445b808e1184d329061075f908490612564565b60405180910390a25050565b6000818152600b60209081526040808320548352600e90915281205461079457506005546106b5565b506000908152600b60209081526040808320548352600e90915290205490565b60009081526007602052604090205460ff1690565b60008181526006602052604090208054606091906107e690612e15565b80601f016020809104026020016040519081016040528092919081815260200182805461081290612e15565b801561085f5780601f106108345761010080835404028352916020019161085f565b820191906000526020600020905b81548152906001019060200180831161084257829003601f168201915b50505050509050919050565b6000908152600b602052604090205490565b6000908152600b60209081526040808320548352600a9091529020546001600160a01b031690565b6108ad611722565b6001600160a01b0316856001600160a01b031614806108d357506108d385610555611722565b6108ef5760405162461bcd60e51b81526004016105e1906129f0565b6108fc8585858585611726565b5050505050565b6000908152600a60205260409020546001600160a01b031690565b6000818152600b60209081526040808320548352600d9091528120546001600160a01b031661097257506000818152600b60209081526040808320548352600a9091529020546001600160a01b03166106b5565b506000908152600b60209081526040808320548352600d9091529020546001600160a01b031690565b606081518351146109be5760405162461bcd60e51b81526004016105e190612c07565b6000835167ffffffffffffffff811115610a01577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610a2a578160200160208202803683370190505b50905060005b8451811015610b1757610ac3858281518110610a75577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610ab6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516105b9565b828281518110610afc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010152610b1081612e69565b9050610a30565b509392505050565b3360009081526004602052604090205460ff161515600114610b535760405162461bcd60e51b81526004016105e19061295c565b6000828152600c602052604090205460ff1615610b825760405162461bcd60e51b81526004016105e190612b73565b6000828152600a60205260409020546001600160a01b031615610bd8576000828152600a60205260409020546001600160a01b038a8116911614610bd85760405162461bcd60e51b81526004016105e190612a4d565b600087815260086020526040902054610bfd5760008781526008602052604090208490555b600087815260086020908152604080832054600990925290912054610c23908890612dfd565b1115610c415760405162461bcd60e51b81526004016105e19061280e565b60008781526006602052604090208054610c5a90612e15565b15159050610c835760008781526006602090815260409091208651610c8192880190611edd565b505b60018315151415610cf85760008781526007602052604090205460ff16610cf85760008781526007602052604090819020805460ff191660011790555187907fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b5565720790610cef90889061267e565b60405180910390a25b6000878152600b6020526040902054610d77576000878152600b60209081526040808320859055848352600a9091529020546001600160a01b0316610d77576000828152600a6020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038b161790555b60008781526009602052604081208054889290610d95908490612dfd565b90915550610da7905089888884611929565b86896001600160a01b03167f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff88604051610de19190612d8c565b60405180910390a3610df68989898985611a18565b505050505050505050565b3360009081526004602052604090205460ff161515600114610e355760405162461bcd60e51b81526004016105e190612d1e565b60008281526007602052604090205460ff1615610e645760405162461bcd60e51b81526004016105e190612b3c565b60008281526006602090815260409091208251610e8392840190611edd565b505050565b6000806000610e96846113ad565b90506000610ea3856113f1565b935090915050915091565b3360009081526004602052604090205460ff161515600114610ee25760405162461bcd60e51b81526004016105e190612d1e565b6000828152600d60205260409081902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384161790555182907fad8144206e3399ce1a7a875159e2831d31f99baa450e21236cc8570badc4c6b99061075f908490612564565b610f5b611722565b6001600160a01b0316610f6c61107b565b6001600160a01b031614610f925760405162461bcd60e51b81526004016105e190612b07565b6001600160a01b03166000908152600460205260409020805460ff19169055565b610fbb611722565b6001600160a01b0316610fcc61107b565b6001600160a01b031614610ff25760405162461bcd60e51b81526004016105e190612b07565b610ffc6000611b4c565b565b3360009081526004602052604090205460ff1615156001146110325760405162461bcd60e51b81526004016105e190612d1e565b6000818152600c6020526040808220805460ff191660011790555182917fe765a9b05c5e211a82b6fcef301602e332cc301de88e5254860f2f760815fcd891a250565b60055481565b6003546001600160a01b03165b90565b3360009081526004602052604090205460ff1615156001146110bf5760405162461bcd60e51b81526004016105e190612d1e565b6103e88111156110e15760405162461bcd60e51b81526004016105e190612d55565b6000828152600c602052604090205460ff16156111105760405162461bcd60e51b81526004016105e190612b73565b6000828152600e6020526040908190208290555182907fe130e9093a14dfa53a2c4b3117c57ab1f7f922b036c0f767b083bc38edc7c8d99061075f908490612d8c565b816001600160a01b0316611165611722565b6001600160a01b0316141561118c5760405162461bcd60e51b81526004016105e190612baa565b8060016000611199611722565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111dd611722565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112159190612673565b60405180910390a35050565b60009081526009602052604090205490565b60008060006112418461076b565b90506000610ea38561091e565b600f805461125b90612e15565b80601f016020809104026020016040519081016040528092919081815260200182805461128790612e15565b80156112d45780601f106112a9576101008083540402835291602001916112d4565b820191906000526020600020905b8154815290600101906020018083116112b757829003601f168201915b505050505081565b6112e4611722565b6001600160a01b03166112f561107b565b6001600160a01b03161461131b5760405162461bcd60e51b81526004016105e190612b07565b805161132e90600f906020840190611edd565b5050565b61133a611722565b6001600160a01b031661134b61107b565b6001600160a01b0316146113715760405162461bcd60e51b81526004016105e190612b07565b6103e88111156113935760405162461bcd60e51b81526004016105e190612d55565b600555565b60046020526000908152604090205460ff1681565b6000818152600e60205260408120546113c957506005546106b5565b506000908152600e602052604090205490565b6000908152600c602052604090205460ff1690565b6000818152600d60205260408120546001600160a01b031661142b57506000818152600a60205260409020546001600160a01b03166106b5565b506000908152600d60205260409020546001600160a01b031690565b6060600f805461145690612e15565b80601f016020809104026020016040519081016040528092919081815260200182805461148290612e15565b80156114cf5780601f106114a4576101008083540402835291602001916114cf565b820191906000526020600020905b8154815290600101906020018083116114b257829003601f168201915b5050505050905090565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61150f611722565b6001600160a01b031661152061107b565b6001600160a01b0316146115465760405162461bcd60e51b81526004016105e190612b07565b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b611572611722565b6001600160a01b0316856001600160a01b03161480611598575061159885610555611722565b6115b45760405162461bcd60e51b81526004016105e1906128ff565b6108fc8585858585611a18565b6115c9611722565b6001600160a01b03166115da61107b565b6001600160a01b0316146116005760405162461bcd60e51b81526004016105e190612b07565b6001600160a01b0381166116265760405162461bcd60e51b81526004016105e1906128a2565b61162f81611b4c565b50565b60009081526008602052604090205490565b3360009081526004602052604090205460ff1615156001146116785760405162461bcd60e51b81526004016105e190612d1e565b6000818152600760209081526040808320805460ff19166001179055600690915290819020905182917fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207916116cd9190612691565b60405180910390a250565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b3390565b81518351146117475760405162461bcd60e51b81526004016105e190612c64565b6001600160a01b03841661176d5760405162461bcd60e51b81526004016105e190612993565b6000611777611722565b9050611787818787878787611921565b60005b84518110156118bb5760008582815181106117ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110611813577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156118635760405162461bcd60e51b81526004016105e190612aaa565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906118a0908490612dfd565b92505081905550505050806118b490612e69565b905061178a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161190b929190612645565b60405180910390a4611921818787878787611bb6565b505050505050565b6001600160a01b03841661194f5760405162461bcd60e51b81526004016105e190612cc1565b6000611959611722565b905061197a8160008761196b88611d2c565b61197488611d2c565b87611921565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906119aa908490612dfd565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611a01929190612d95565b60405180910390a46108fc81600087878787611d9e565b6001600160a01b038416611a3e5760405162461bcd60e51b81526004016105e190612993565b6000611a48611722565b9050611a5981878761196b88611d2c565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611a9a5760405162461bcd60e51b81526004016105e190612aaa565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611ad7908490612dfd565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051611b2d929190612d95565b60405180910390a4611b43828888888888611d9e565b50505050505050565b600380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611bc8846001600160a01b0316611ed7565b15611921576040517fbc197c810000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063bc197c8190611c1a9089908990889088908890600401612578565b602060405180830381600087803b158015611c3457600080fd5b505af1925050508015611c82575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252611c7f918101906123d4565b60015b611ccb57611c8e612f06565b80611c995750611cb3565b8060405162461bcd60e51b81526004016105e1919061267e565b60405162461bcd60e51b81526004016105e190612754565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014611b435760405162461bcd60e51b81526004016105e1906127b1565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611d8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602090810291909101015292915050565b611db0846001600160a01b0316611ed7565b15611921576040517ff23a6e610000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063f23a6e6190611e0290899089908890889088906004016125d6565b602060405180830381600087803b158015611e1c57600080fd5b505af1925050508015611e6a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252611e67918101906123d4565b60015b611e7657611c8e612f06565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014611b435760405162461bcd60e51b81526004016105e1906127b1565b3b151590565b828054611ee990612e15565b90600052602060002090601f016020900481019282611f0b5760008555611f51565b82601f10611f2457805160ff1916838001178555611f51565b82800160010185558215611f51579182015b82811115611f51578251825591602001919060010190611f36565b50611f5d929150611f61565b5090565b5b80821115611f5d5760008155600101611f62565b80356001600160a01b03811681146106b557600080fd5b600082601f830112611f9d578081fd5b81356020611fb2611fad83612dcd565b612da3565b8281528181019085830183850287018401881015611fce578586fd5b855b85811015611fec57813584529284019290840190600101611fd0565b5090979650505050505050565b803580151581146106b557600080fd5b600082601f830112612019578081fd5b813567ffffffffffffffff81111561203357612033612ed1565b61206460207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601612da3565b818152846020838601011115612078578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156120a3578081fd5b6120ac82611f76565b9392505050565b600080604083850312156120c5578081fd5b6120ce83611f76565b91506120dc60208401611f76565b90509250929050565b600080600080600060a086880312156120fc578081fd5b61210586611f76565b945061211360208701611f76565b9350604086013567ffffffffffffffff8082111561212f578283fd5b61213b89838a01611f8d565b94506060880135915080821115612150578283fd5b61215c89838a01611f8d565b93506080880135915080821115612171578283fd5b5061217e88828901612009565b9150509295509295909350565b600080600080600060a086880312156121a2578081fd5b6121ab86611f76565b94506121b960208701611f76565b93506040860135925060608601359150608086013567ffffffffffffffff8111156121e2578182fd5b61217e88828901612009565b60008060008060008060008060006101208a8c03121561220c578384fd5b6122158a611f76565b985061222360208b01611f76565b975060408a0135965060608a0135955060808a013567ffffffffffffffff8082111561224d578586fd5b6122598d838e01612009565b965060a08c0135955061226e60c08d01611ff9565b945060e08c013593506101008c013591508082111561228b578283fd5b506122988c828d01612009565b9150509295985092959850929598565b600080604083850312156122ba578182fd5b6122c383611f76565b91506120dc60208401611ff9565b600080604083850312156122e3578182fd5b6122ec83611f76565b946020939093013593505050565b6000806040838503121561230c578182fd5b823567ffffffffffffffff80821115612323578384fd5b818501915085601f830112612336578384fd5b81356020612346611fad83612dcd565b82815281810190858301838502870184018b1015612362578889fd5b8896505b8487101561238b5761237781611f76565b835260019690960195918301918301612366565b50965050860135925050808211156123a1578283fd5b506123ae85828601611f8d565b9150509250929050565b6000602082840312156123c9578081fd5b81356120ac81612fe7565b6000602082840312156123e5578081fd5b81516120ac81612fe7565b600060208284031215612401578081fd5b813567ffffffffffffffff811115612417578182fd5b61242384828501612009565b949350505050565b60006020828403121561243c578081fd5b5035919050565b60008060408385031215612455578182fd5b823591506120dc60208401611f76565b60008060408385031215612477578182fd5b82359150602083013567ffffffffffffffff811115612494578182fd5b6123ae85828601612009565b600080604083850312156124b2578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156124f0578151875295820195908201906001016124d4565b509495945050505050565b60008151808452815b8181101561252057602081850181015186830182015201612504565b818111156125315782602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6001600160a01b0391909116815260200190565b60006001600160a01b03808816835280871660208401525060a060408301526125a460a08301866124c1565b82810360608401526125b681866124c1565b905082810360808401526125ca81856124fb565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261260e60a08301846124fb565b979650505050505050565b6001600160a01b03929092168252602082015260400190565b6000602082526120ac60208301846124c1565b60006040825261265860408301856124c1565b828103602084015261266a81856124c1565b95945050505050565b901515815260200190565b6000602082526120ac60208301846124fb565b60006020808352818454836002820490506001808316806126b357607f831692505b8583108114156126ea577f4e487b710000000000000000000000000000000000000000000000000000000087526022600452602487fd5b6126f683878a01612d8c565b81801561270a576001811461271b57612745565b60ff19861682528782019650612745565b6127248b612df1565b895b8681101561273f57815484820152908501908901612726565b83019750505b50949998505050505050505050565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a6563746560408201527f6420746f6b656e73000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f4e6f7420656e6f75676820737570706c79000000000000000000000000000000604082015260600190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201527f20617070726f7665640000000000000000000000000000000000000000000000606082015260800190565b6020808252600e908201527f4e6f7420417574686f72697a6564000000000000000000000000000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b60208082526029908201527f4d696e746572206973206e6f7420746865206f776e6572206f6620746865204360408201527f6f6c6c656374696f6e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201527f72207472616e7366657200000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600f908201527f546f6b656e2069732066726f7a656e0000000000000000000000000000000000604082015260600190565b60208082526014908201527f436f6c6c656374696f6e20697320636c6f736564000000000000000000000000604082015260600190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360408201527f20666f722073656c660000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860408201527f206d69736d617463680000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060408201527f6d69736d61746368000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600e908201527f4e6f7420617574686f72697a6564000000000000000000000000000000000000604082015260600190565b60208082526016908201527f526f79616c746965732061726520746f6f206869676800000000000000000000604082015260600190565b90815260200190565b918252602082015260400190565b60405181810167ffffffffffffffff81118282101715612dc557612dc5612ed1565b604052919050565b600067ffffffffffffffff821115612de757612de7612ed1565b5060209081020190565b60009081526020902090565b60008219821115612e1057612e10612ea2565b500190565b600281046001821680612e2957607f821691505b60208210811415612e63577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612e9b57612e9b612ea2565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60e01c90565b600060443d1015612f1657611088565b600481823e6308c379a0612f2a8251612f00565b14612f3457611088565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3d016004823e80513d67ffffffffffffffff8160248401118184111715612f825750505050611088565b82840192508251915080821115612f9c5750505050611088565b503d83016020828401011115612fb457505050611088565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810160200160405291505090565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461162f57600080fdfea2646970667358221220a55360020a484777216edfdf03f83dd1b4c64a1dce18e276bab39cd19baf0bae64736f6c634300080000330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f62616c6c6164722e6d7970696e6174612e636c6f75642f697066732f516d58665331716e3732556d52446535746d6f6679796e627537574855485756526331754c4c597869664e76646a0000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102ac5760003560e01c806384d45cfc1161017b578063e1e9fce8116100d8578063ef84d4d21161008c578063f2fde38b11610071578063f2fde38b14610580578063fbe25d0e14610593578063fc16c40f146105a6576102ac565b8063ef84d4d21461055a578063f242432a1461056d576102ac565b8063e83ee806116100bd578063e83ee8061461052c578063e8a3d4851461053f578063e985e9c514610547576102ac565b8063e1e9fce814610506578063e2cc50a714610519576102ac565b8063bb3bafd61161012f578063ccb4807b11610114578063ccb4807b146104cd578063d3642971146104e0578063d5b9221b146104f3576102ac565b8063bb3bafd6146104b2578063c0e24d5e146104c5576102ac565b80639ba5c162116101605780639ba5c16214610479578063a22cb4651461048c578063ad9f2a6b1461049f576102ac565b806384d45cfc146104695780638da5cb5b14610471576102ac565b8063394120c011610229578063649b90fb116101dd57806370bb342b116101c257806370bb342b1461043b578063715018a61461044e578063753a672514610456576102ac565b8063649b90fb146104075780636fcca29c14610428576102ac565b80634e1273f41161020e5780634e1273f4146103c157806350703d5f146103e157806357f7789e146103f4576102ac565b8063394120c01461039b5780634c2cd34c146103ae576102ac565b80630a2f04ab116102805780631c3a221e116102655780631c3a221e146103555780632c04c3ef146103685780632eb2c2d614610388576102ac565b80630a2f04ab146103225780630e89341c14610335576102ac565b8062fdd58e146102b157806301ffc9a7146102da578063020cb1d3146102fa57806308d10e141461030f575b600080fd5b6102c46102bf3660046122d1565b6105b9565b6040516102d19190612d8c565b60405180910390f35b6102ed6102e83660046123b8565b610610565b6040516102d19190612673565b61030d610308366004612443565b6106ba565b005b6102c461031d36600461242b565b61076b565b6102ed61033036600461242b565b6107b4565b61034861034336600461242b565b6107c9565b6040516102d1919061267e565b6102c461036336600461242b565b61086b565b61037b61037636600461242b565b61087d565b6040516102d19190612564565b61030d6103963660046120e5565b6108a5565b61037b6103a936600461242b565b610903565b61037b6103bc36600461242b565b61091e565b6103d46103cf3660046122fa565b61099b565b6040516102d19190612632565b61030d6103ef3660046121ee565b610b1f565b61030d610402366004612465565b610e01565b61041a61041536600461242b565b610e88565b6040516102d1929190612619565b61030d610436366004612443565b610eae565b61030d610449366004612092565b610f53565b61030d610fb3565b61030d61046436600461242b565b610ffe565b6102c4611075565b61037b61107b565b61030d6104873660046124a0565b61108b565b61030d61049a3660046122a8565b611153565b6102c46104ad36600461242b565b611221565b61041a6104c036600461242b565b611233565b61034861124e565b61030d6104db3660046123f0565b6112dc565b61030d6104ee36600461242b565b611332565b6102ed610501366004612092565b611398565b6102c461051436600461242b565b6113ad565b6102ed61052736600461242b565b6113dc565b61037b61053a36600461242b565b6113f1565b610348611447565b6102ed6105553660046120b3565b6114d9565b61030d610568366004612092565b611507565b61030d61057b36600461218b565b61156a565b61030d61058e366004612092565b6115c1565b6102c46105a136600461242b565b611632565b61030d6105b436600461242b565b611644565b60006001600160a01b0383166105ea5760405162461bcd60e51b81526004016105e190612845565b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a260000000000000000000000000000000000000000000000000000000014806106a357507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806106b257506106b2826116d8565b90505b919050565b3360009081526004602052604090205460ff1615156001146106ee5760405162461bcd60e51b81526004016105e190612d1e565b6000828152600a60205260409081902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384161790555182907f7e684d0ff7a4194c380eb26db7244926635668ccd3eda4934445b808e1184d329061075f908490612564565b60405180910390a25050565b6000818152600b60209081526040808320548352600e90915281205461079457506005546106b5565b506000908152600b60209081526040808320548352600e90915290205490565b60009081526007602052604090205460ff1690565b60008181526006602052604090208054606091906107e690612e15565b80601f016020809104026020016040519081016040528092919081815260200182805461081290612e15565b801561085f5780601f106108345761010080835404028352916020019161085f565b820191906000526020600020905b81548152906001019060200180831161084257829003601f168201915b50505050509050919050565b6000908152600b602052604090205490565b6000908152600b60209081526040808320548352600a9091529020546001600160a01b031690565b6108ad611722565b6001600160a01b0316856001600160a01b031614806108d357506108d385610555611722565b6108ef5760405162461bcd60e51b81526004016105e1906129f0565b6108fc8585858585611726565b5050505050565b6000908152600a60205260409020546001600160a01b031690565b6000818152600b60209081526040808320548352600d9091528120546001600160a01b031661097257506000818152600b60209081526040808320548352600a9091529020546001600160a01b03166106b5565b506000908152600b60209081526040808320548352600d9091529020546001600160a01b031690565b606081518351146109be5760405162461bcd60e51b81526004016105e190612c07565b6000835167ffffffffffffffff811115610a01577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610a2a578160200160208202803683370190505b50905060005b8451811015610b1757610ac3858281518110610a75577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610ab6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516105b9565b828281518110610afc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010152610b1081612e69565b9050610a30565b509392505050565b3360009081526004602052604090205460ff161515600114610b535760405162461bcd60e51b81526004016105e19061295c565b6000828152600c602052604090205460ff1615610b825760405162461bcd60e51b81526004016105e190612b73565b6000828152600a60205260409020546001600160a01b031615610bd8576000828152600a60205260409020546001600160a01b038a8116911614610bd85760405162461bcd60e51b81526004016105e190612a4d565b600087815260086020526040902054610bfd5760008781526008602052604090208490555b600087815260086020908152604080832054600990925290912054610c23908890612dfd565b1115610c415760405162461bcd60e51b81526004016105e19061280e565b60008781526006602052604090208054610c5a90612e15565b15159050610c835760008781526006602090815260409091208651610c8192880190611edd565b505b60018315151415610cf85760008781526007602052604090205460ff16610cf85760008781526007602052604090819020805460ff191660011790555187907fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b5565720790610cef90889061267e565b60405180910390a25b6000878152600b6020526040902054610d77576000878152600b60209081526040808320859055848352600a9091529020546001600160a01b0316610d77576000828152600a6020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038b161790555b60008781526009602052604081208054889290610d95908490612dfd565b90915550610da7905089888884611929565b86896001600160a01b03167f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff88604051610de19190612d8c565b60405180910390a3610df68989898985611a18565b505050505050505050565b3360009081526004602052604090205460ff161515600114610e355760405162461bcd60e51b81526004016105e190612d1e565b60008281526007602052604090205460ff1615610e645760405162461bcd60e51b81526004016105e190612b3c565b60008281526006602090815260409091208251610e8392840190611edd565b505050565b6000806000610e96846113ad565b90506000610ea3856113f1565b935090915050915091565b3360009081526004602052604090205460ff161515600114610ee25760405162461bcd60e51b81526004016105e190612d1e565b6000828152600d60205260409081902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384161790555182907fad8144206e3399ce1a7a875159e2831d31f99baa450e21236cc8570badc4c6b99061075f908490612564565b610f5b611722565b6001600160a01b0316610f6c61107b565b6001600160a01b031614610f925760405162461bcd60e51b81526004016105e190612b07565b6001600160a01b03166000908152600460205260409020805460ff19169055565b610fbb611722565b6001600160a01b0316610fcc61107b565b6001600160a01b031614610ff25760405162461bcd60e51b81526004016105e190612b07565b610ffc6000611b4c565b565b3360009081526004602052604090205460ff1615156001146110325760405162461bcd60e51b81526004016105e190612d1e565b6000818152600c6020526040808220805460ff191660011790555182917fe765a9b05c5e211a82b6fcef301602e332cc301de88e5254860f2f760815fcd891a250565b60055481565b6003546001600160a01b03165b90565b3360009081526004602052604090205460ff1615156001146110bf5760405162461bcd60e51b81526004016105e190612d1e565b6103e88111156110e15760405162461bcd60e51b81526004016105e190612d55565b6000828152600c602052604090205460ff16156111105760405162461bcd60e51b81526004016105e190612b73565b6000828152600e6020526040908190208290555182907fe130e9093a14dfa53a2c4b3117c57ab1f7f922b036c0f767b083bc38edc7c8d99061075f908490612d8c565b816001600160a01b0316611165611722565b6001600160a01b0316141561118c5760405162461bcd60e51b81526004016105e190612baa565b8060016000611199611722565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111dd611722565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112159190612673565b60405180910390a35050565b60009081526009602052604090205490565b60008060006112418461076b565b90506000610ea38561091e565b600f805461125b90612e15565b80601f016020809104026020016040519081016040528092919081815260200182805461128790612e15565b80156112d45780601f106112a9576101008083540402835291602001916112d4565b820191906000526020600020905b8154815290600101906020018083116112b757829003601f168201915b505050505081565b6112e4611722565b6001600160a01b03166112f561107b565b6001600160a01b03161461131b5760405162461bcd60e51b81526004016105e190612b07565b805161132e90600f906020840190611edd565b5050565b61133a611722565b6001600160a01b031661134b61107b565b6001600160a01b0316146113715760405162461bcd60e51b81526004016105e190612b07565b6103e88111156113935760405162461bcd60e51b81526004016105e190612d55565b600555565b60046020526000908152604090205460ff1681565b6000818152600e60205260408120546113c957506005546106b5565b506000908152600e602052604090205490565b6000908152600c602052604090205460ff1690565b6000818152600d60205260408120546001600160a01b031661142b57506000818152600a60205260409020546001600160a01b03166106b5565b506000908152600d60205260409020546001600160a01b031690565b6060600f805461145690612e15565b80601f016020809104026020016040519081016040528092919081815260200182805461148290612e15565b80156114cf5780601f106114a4576101008083540402835291602001916114cf565b820191906000526020600020905b8154815290600101906020018083116114b257829003601f168201915b5050505050905090565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61150f611722565b6001600160a01b031661152061107b565b6001600160a01b0316146115465760405162461bcd60e51b81526004016105e190612b07565b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b611572611722565b6001600160a01b0316856001600160a01b03161480611598575061159885610555611722565b6115b45760405162461bcd60e51b81526004016105e1906128ff565b6108fc8585858585611a18565b6115c9611722565b6001600160a01b03166115da61107b565b6001600160a01b0316146116005760405162461bcd60e51b81526004016105e190612b07565b6001600160a01b0381166116265760405162461bcd60e51b81526004016105e1906128a2565b61162f81611b4c565b50565b60009081526008602052604090205490565b3360009081526004602052604090205460ff1615156001146116785760405162461bcd60e51b81526004016105e190612d1e565b6000818152600760209081526040808320805460ff19166001179055600690915290819020905182917fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207916116cd9190612691565b60405180910390a250565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b3390565b81518351146117475760405162461bcd60e51b81526004016105e190612c64565b6001600160a01b03841661176d5760405162461bcd60e51b81526004016105e190612993565b6000611777611722565b9050611787818787878787611921565b60005b84518110156118bb5760008582815181106117ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110611813577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156118635760405162461bcd60e51b81526004016105e190612aaa565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906118a0908490612dfd565b92505081905550505050806118b490612e69565b905061178a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161190b929190612645565b60405180910390a4611921818787878787611bb6565b505050505050565b6001600160a01b03841661194f5760405162461bcd60e51b81526004016105e190612cc1565b6000611959611722565b905061197a8160008761196b88611d2c565b61197488611d2c565b87611921565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906119aa908490612dfd565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611a01929190612d95565b60405180910390a46108fc81600087878787611d9e565b6001600160a01b038416611a3e5760405162461bcd60e51b81526004016105e190612993565b6000611a48611722565b9050611a5981878761196b88611d2c565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611a9a5760405162461bcd60e51b81526004016105e190612aaa565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611ad7908490612dfd565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051611b2d929190612d95565b60405180910390a4611b43828888888888611d9e565b50505050505050565b600380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611bc8846001600160a01b0316611ed7565b15611921576040517fbc197c810000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063bc197c8190611c1a9089908990889088908890600401612578565b602060405180830381600087803b158015611c3457600080fd5b505af1925050508015611c82575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252611c7f918101906123d4565b60015b611ccb57611c8e612f06565b80611c995750611cb3565b8060405162461bcd60e51b81526004016105e1919061267e565b60405162461bcd60e51b81526004016105e190612754565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014611b435760405162461bcd60e51b81526004016105e1906127b1565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611d8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602090810291909101015292915050565b611db0846001600160a01b0316611ed7565b15611921576040517ff23a6e610000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063f23a6e6190611e0290899089908890889088906004016125d6565b602060405180830381600087803b158015611e1c57600080fd5b505af1925050508015611e6a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252611e67918101906123d4565b60015b611e7657611c8e612f06565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014611b435760405162461bcd60e51b81526004016105e1906127b1565b3b151590565b828054611ee990612e15565b90600052602060002090601f016020900481019282611f0b5760008555611f51565b82601f10611f2457805160ff1916838001178555611f51565b82800160010185558215611f51579182015b82811115611f51578251825591602001919060010190611f36565b50611f5d929150611f61565b5090565b5b80821115611f5d5760008155600101611f62565b80356001600160a01b03811681146106b557600080fd5b600082601f830112611f9d578081fd5b81356020611fb2611fad83612dcd565b612da3565b8281528181019085830183850287018401881015611fce578586fd5b855b85811015611fec57813584529284019290840190600101611fd0565b5090979650505050505050565b803580151581146106b557600080fd5b600082601f830112612019578081fd5b813567ffffffffffffffff81111561203357612033612ed1565b61206460207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601612da3565b818152846020838601011115612078578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156120a3578081fd5b6120ac82611f76565b9392505050565b600080604083850312156120c5578081fd5b6120ce83611f76565b91506120dc60208401611f76565b90509250929050565b600080600080600060a086880312156120fc578081fd5b61210586611f76565b945061211360208701611f76565b9350604086013567ffffffffffffffff8082111561212f578283fd5b61213b89838a01611f8d565b94506060880135915080821115612150578283fd5b61215c89838a01611f8d565b93506080880135915080821115612171578283fd5b5061217e88828901612009565b9150509295509295909350565b600080600080600060a086880312156121a2578081fd5b6121ab86611f76565b94506121b960208701611f76565b93506040860135925060608601359150608086013567ffffffffffffffff8111156121e2578182fd5b61217e88828901612009565b60008060008060008060008060006101208a8c03121561220c578384fd5b6122158a611f76565b985061222360208b01611f76565b975060408a0135965060608a0135955060808a013567ffffffffffffffff8082111561224d578586fd5b6122598d838e01612009565b965060a08c0135955061226e60c08d01611ff9565b945060e08c013593506101008c013591508082111561228b578283fd5b506122988c828d01612009565b9150509295985092959850929598565b600080604083850312156122ba578182fd5b6122c383611f76565b91506120dc60208401611ff9565b600080604083850312156122e3578182fd5b6122ec83611f76565b946020939093013593505050565b6000806040838503121561230c578182fd5b823567ffffffffffffffff80821115612323578384fd5b818501915085601f830112612336578384fd5b81356020612346611fad83612dcd565b82815281810190858301838502870184018b1015612362578889fd5b8896505b8487101561238b5761237781611f76565b835260019690960195918301918301612366565b50965050860135925050808211156123a1578283fd5b506123ae85828601611f8d565b9150509250929050565b6000602082840312156123c9578081fd5b81356120ac81612fe7565b6000602082840312156123e5578081fd5b81516120ac81612fe7565b600060208284031215612401578081fd5b813567ffffffffffffffff811115612417578182fd5b61242384828501612009565b949350505050565b60006020828403121561243c578081fd5b5035919050565b60008060408385031215612455578182fd5b823591506120dc60208401611f76565b60008060408385031215612477578182fd5b82359150602083013567ffffffffffffffff811115612494578182fd5b6123ae85828601612009565b600080604083850312156124b2578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156124f0578151875295820195908201906001016124d4565b509495945050505050565b60008151808452815b8181101561252057602081850181015186830182015201612504565b818111156125315782602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6001600160a01b0391909116815260200190565b60006001600160a01b03808816835280871660208401525060a060408301526125a460a08301866124c1565b82810360608401526125b681866124c1565b905082810360808401526125ca81856124fb565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261260e60a08301846124fb565b979650505050505050565b6001600160a01b03929092168252602082015260400190565b6000602082526120ac60208301846124c1565b60006040825261265860408301856124c1565b828103602084015261266a81856124c1565b95945050505050565b901515815260200190565b6000602082526120ac60208301846124fb565b60006020808352818454836002820490506001808316806126b357607f831692505b8583108114156126ea577f4e487b710000000000000000000000000000000000000000000000000000000087526022600452602487fd5b6126f683878a01612d8c565b81801561270a576001811461271b57612745565b60ff19861682528782019650612745565b6127248b612df1565b895b8681101561273f57815484820152908501908901612726565b83019750505b50949998505050505050505050565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a6563746560408201527f6420746f6b656e73000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f4e6f7420656e6f75676820737570706c79000000000000000000000000000000604082015260600190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201527f20617070726f7665640000000000000000000000000000000000000000000000606082015260800190565b6020808252600e908201527f4e6f7420417574686f72697a6564000000000000000000000000000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b60208082526029908201527f4d696e746572206973206e6f7420746865206f776e6572206f6620746865204360408201527f6f6c6c656374696f6e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201527f72207472616e7366657200000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600f908201527f546f6b656e2069732066726f7a656e0000000000000000000000000000000000604082015260600190565b60208082526014908201527f436f6c6c656374696f6e20697320636c6f736564000000000000000000000000604082015260600190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360408201527f20666f722073656c660000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860408201527f206d69736d617463680000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060408201527f6d69736d61746368000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600e908201527f4e6f7420617574686f72697a6564000000000000000000000000000000000000604082015260600190565b60208082526016908201527f526f79616c746965732061726520746f6f206869676800000000000000000000604082015260600190565b90815260200190565b918252602082015260400190565b60405181810167ffffffffffffffff81118282101715612dc557612dc5612ed1565b604052919050565b600067ffffffffffffffff821115612de757612de7612ed1565b5060209081020190565b60009081526020902090565b60008219821115612e1057612e10612ea2565b500190565b600281046001821680612e2957607f821691505b60208210811415612e63577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612e9b57612e9b612ea2565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60e01c90565b600060443d1015612f1657611088565b600481823e6308c379a0612f2a8251612f00565b14612f3457611088565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3d016004823e80513d67ffffffffffffffff8160248401118184111715612f825750505050611088565b82840192508251915080821115612f9c5750505050611088565b503d83016020828401011115612fb457505050611088565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810160200160405291505090565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461162f57600080fdfea2646970667358221220a55360020a484777216edfdf03f83dd1b4c64a1dce18e276bab39cd19baf0bae64736f6c63430008000033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f62616c6c6164722e6d7970696e6174612e636c6f75642f697066732f516d58665331716e3732556d52446535746d6f6679796e627537574855485756526331754c4c597869664e76646a0000000000000000000000000000

-----Decoded View---------------
Arg [0] : _contractUri (string): https://balladr.mypinata.cloud/ipfs/QmXfS1qn72UmRDe5tmofyynbu7WHUHWVRc1uLLYxifNvdj

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000052
Arg [2] : 68747470733a2f2f62616c6c6164722e6d7970696e6174612e636c6f75642f69
Arg [3] : 7066732f516d58665331716e3732556d52446535746d6f6679796e6275375748
Arg [4] : 55485756526331754c4c597869664e76646a0000000000000000000000000000


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

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