ETH Price: $3,350.62 (-1.13%)

Token

 

Overview

Max Total Supply

0

Holders

3,971

Market

Volume (24H)

0.0362 ETH

Min Price (24H)

$8.71 @ 0.002600 ETH

Max Price (24H)

$112.58 @ 0.033600 ETH
Filtered by Token Holder
hamhead.eth
0x1ada64bd35545dac88503cc073012cdd9e149573
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x2b52b3F1...2800FBa8E
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Mint

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 100000 runs

Other Settings:
paris EvmVersion
File 1 of 21 : Mint.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import { ERC1155               } from "./ERC1155.sol";
import { IRenderer             } from "./interfaces/IRenderer.sol";
import { ContractMetadata      } from "./libraries/ContractMetadata.sol";
import { SSTORE2               } from "./libraries/SSTORE2.sol";
import { Token                 } from "./types/Token.sol";

/// @notice To mint is a human right.
/// @author Visualize Value
contract Mint is ERC1155 {

    /// @notice Inaugural.
    uint public constant version = 1;

    /// @notice Holds information about this collection.
    ContractMetadata.Data private metadata;

    /// @notice Holds the metadata for each token within this collection.
    mapping(uint => Token) private tokens;

    /// @notice The token metadata renderers registered with this collection.
    address[] public renderers;

    /// @notice The most recently minted token id.
    uint public latestTokenId;

    /// @notice Ethereum block height of when this collection was created.
    uint public initBlock;

    /// @notice Each mint is open for 24 hours.
    uint constant MINT_DURATION = 24 hours;

    /// @dev Emitted when a collector mints a token.
    event NewMint(uint indexed tokenId, uint unitPrice, uint amount, address minter);

    /// @dev Emitted when the artist registers a new Renderer contract.
    event NewRenderer(address indexed renderer, uint indexed index);

    /// @dev Emitted when the artist withdraws the contract balance.
    event Withdrawal(uint amount);

    /// @dev Thrown on the attempt to reinitialize the contract.
    error Initialized();

    /// @dev Thrown when trying to mint a piece after the mint window.
    error MintClosed();

    /// @dev Thrown when trying to mint a piece below its current price.
    error MintPriceNotMet();

    /// @dev Thrown when trying to mint a non existent token.
    error NonExistentToken();

    /// @dev Thrown when trying to change an existing token.
    error TokenAlreadyMinted();

    /// @dev Thrown when trying to create a token with a non existent renderer assigned.
    error NonExistentRenderer();

    /// @dev Thrown when the withdrawal fails.
    error WithdrawalFailed();

    /// @notice Initializes the collection contract.
    function init(
        string calldata contractName,
        string calldata contractSymbol,
        string calldata contractDescription,
        bytes[] calldata contractImage,
        address renderer,
        address owner
    ) external {
        if (initBlock > 0) revert Initialized();

        // Initialize with metadata.
        metadata.name        = contractName;
        metadata.symbol      = contractSymbol;
        metadata.description = contractDescription;

        // Write the contract image to storage.
        for (uint8 i = 0; i < contractImage.length; i++) {
            metadata.image.push(SSTORE2.write(contractImage[i]));
        }

        // Set the inial renderer
        renderers.push(renderer);

        // Setting the initialization block height prevents reinitialization
        initBlock = block.number;

        _transferOwnership(owner);
    }

    /// @notice Lets the artist create a new token.
    function create(
        string  calldata tokenName,
        string  calldata tokenDescription,
        bytes[] calldata tokenArtifact,
        uint32  tokenRenderer,
        uint128 tokenData
    ) public onlyOwner {
        if (renderers.length < tokenRenderer + 1) revert NonExistentRenderer();

        ++ latestTokenId;

        Token storage token = tokens[latestTokenId];

        token.name        = tokenName;
        token.description = tokenDescription;
        token.mintedBlock = uint32(block.number);
        token.closeAt     = uint64(block.timestamp + MINT_DURATION);
        token.renderer    = tokenRenderer;
        token.data        = tokenData;

        if (tokenArtifact.length > 0) {
            // Clear previously prepared artifact data.
            if (token.artifact.length > 0) {
                delete token.artifact;
            }

            // Write the token artifact to storage.
            for (uint8 i = 0; i < tokenArtifact.length; i++) {
                token.artifact.push(SSTORE2.write(tokenArtifact[i]));
            }
        }

        _mint(msg.sender, latestTokenId, 1, "");
    }

    /// @notice Lets the artist prepare artifacts that are too large to store in a single transaction.
    function prepareArtifact(uint tokenId, bytes[] calldata tokenArtifact, bool clear) external onlyOwner {
        if (tokenId <= latestTokenId) revert TokenAlreadyMinted();

        Token storage token = tokens[tokenId];

        if (token.artifact.length > 0 && clear) { delete token.artifact; }

        // Write the token artifact to storage.
        for (uint8 i = 0; i < tokenArtifact.length; i++) {
            token.artifact.push(SSTORE2.write(tokenArtifact[i]));
        }
    }

    /// @notice Get the bare token data for a given id.
    function get(uint tokenId) external view returns (
        string memory name,
        string memory description,
        address[] memory artifact,
        uint32 renderer,
        uint32 mintedBlock,
        uint64 closeAt,
        uint128 data
    ) {
        Token storage token = tokens[tokenId];

        return (
            token.name,
            token.description,
            token.artifact,
            token.renderer,
            token.mintedBlock,
            token.closeAt,
            token.data
        );
    }

    /// @notice Lets collectors purchase a token during its mint window.
    function mint(uint tokenId, uint amount) external payable {
        if (tokenId > latestTokenId) revert NonExistentToken();

        uint unitPrice = block.basefee * 60_000;
        uint mintPrice = unitPrice * amount;
        if (mintPrice > msg.value) revert MintPriceNotMet();

        if (mintOpenUntil(tokenId) < block.timestamp) revert MintClosed();

        _mint(msg.sender, tokenId, amount, "");

        emit NewMint(tokenId, unitPrice, amount, msg.sender);
    }

    /// @notice Check until when a mint is open.
    function mintOpenUntil(uint tokenId) public view returns (uint) {
        return tokens[tokenId].closeAt;
    }

    /// @notice Lets the artist register a new renderer to use for future mints.
    function registerRenderer(address renderer) external onlyOwner returns (uint) {
        renderers.push(renderer);
        uint index = renderers.length - 1;

        emit NewRenderer(renderer, index);

        return index;
    }

    /// @notice Lets the artist withdraw the contract balance.
    function withdraw() external onlyOwner {
        uint balance = address(this).balance;

        (bool success, ) = payable(owner()).call{value: balance}("");
        if (! success) revert WithdrawalFailed();

        emit Withdrawal(balance);
    }

    /// @notice Get the metadata for a given token id.
    function uri(uint tokenId) external override view returns (string memory) {
        if (tokenId > latestTokenId) revert NonExistentToken();

        Token memory token = tokens[tokenId];

        return IRenderer(renderers[token.renderer]).uri(tokenId, token);
    }

    /// @notice Get the metadata for this collection contract.
    function contractURI() public view returns (string memory) {
        return ContractMetadata.uri(metadata);
    }

    /// @notice Burn a given token & amount.
    function burn(address account, uint256 tokenId, uint256 amount) external {
        if (account != msg.sender && !isApprovedForAll(account, msg.sender)) {
            revert ERC1155MissingApprovalForAll(msg.sender, account);
        }

        _burn(account, tokenId, amount);
    }

}

File 2 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

File 3 of 21 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.20;

import {Ownable} from "./Ownable.sol";

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is specified at deployment time in the constructor for `Ownable`. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        if (pendingOwner() != sender) {
            revert OwnableUnauthorizedAccount(sender);
        }
        _transferOwnership(sender);
    }
}

File 4 of 21 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 5 of 21 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.20;

import {IERC1155} from "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 */
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 6 of 21 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` amount of tokens of 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 value 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 a `value` amount of tokens of type `id` from `from` to `to`.
     *
     * WARNING: This function can potentially allow a reentrancy attack when transferring tokens
     * to an untrusted contract, when invoking {onERC1155Received} on the receiver.
     * Ensure to follow the checks-effects-interactions pattern and consider employing
     * reentrancy guards when interacting with untrusted contracts.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `value` 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 value, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * WARNING: This function can potentially allow a reentrancy attack when transferring tokens
     * to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver.
     * Ensure to follow the checks-effects-interactions pattern and consider employing
     * reentrancy guards when interacting with untrusted contracts.
     *
     * Emits either a {TransferSingle} or a {TransferBatch} event, depending on the length of the array arguments.
     *
     * Requirements:
     *
     * - `ids` and `values` 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 values,
        bytes calldata data
    ) external;
}

File 7 of 21 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Interface that must be implemented by smart contracts in order to receive
 * ERC-1155 token transfers.
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

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

File 8 of 21 : Arrays.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Arrays.sol)

pragma solidity ^0.8.20;

import {StorageSlot} from "./StorageSlot.sol";
import {Math} from "./math/Math.sol";

/**
 * @dev Collection of functions related to array types.
 */
library Arrays {
    using StorageSlot for bytes32;

    /**
     * @dev Searches a sorted `array` and returns the first index that contains
     * a value greater or equal to `element`. If no such index exists (i.e. all
     * values in the array are strictly less than `element`), the array length is
     * returned. Time complexity O(log n).
     *
     * `array` is expected to be sorted in ascending order, and to contain no
     * repeated elements.
     */
    function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {
        uint256 low = 0;
        uint256 high = array.length;

        if (high == 0) {
            return 0;
        }

        while (low < high) {
            uint256 mid = Math.average(low, high);

            // Note that mid will always be strictly less than high (i.e. it will be a valid array index)
            // because Math.average rounds towards zero (it does integer division with truncation).
            if (unsafeAccess(array, mid).value > element) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.
        if (low > 0 && unsafeAccess(array, low - 1).value == element) {
            return low - 1;
        } else {
            return low;
        }
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(address[] storage arr, uint256 pos) internal pure returns (StorageSlot.AddressSlot storage) {
        bytes32 slot;
        // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
        // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.

        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getAddressSlot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(bytes32[] storage arr, uint256 pos) internal pure returns (StorageSlot.Bytes32Slot storage) {
        bytes32 slot;
        // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
        // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.

        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getBytes32Slot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeAccess(uint256[] storage arr, uint256 pos) internal pure returns (StorageSlot.Uint256Slot storage) {
        bytes32 slot;
        // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr`
        // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays.

        /// @solidity memory-safe-assembly
        assembly {
            mstore(0, arr.slot)
            slot := add(keccak256(0, 0x20), pos)
        }
        return slot.getUint256Slot();
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeMemoryAccess(uint256[] memory arr, uint256 pos) internal pure returns (uint256 res) {
        assembly {
            res := mload(add(add(arr, 0x20), mul(pos, 0x20)))
        }
    }

    /**
     * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check.
     *
     * WARNING: Only use if you are certain `pos` is lower than the array length.
     */
    function unsafeMemoryAccess(address[] memory arr, uint256 pos) internal pure returns (address res) {
        assembly {
            res := mload(add(add(arr, 0x20), mul(pos, 0x20)))
        }
    }
}

File 9 of 21 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.2) (utils/Base64.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 0x20)
            let dataPtr := data
            let endPtr := add(data, mload(data))

            // In some cases, the last iteration will read bytes after the end of the data. We cache the value, and
            // set it to zero to make sure no dirty bytes are read in that section.
            let afterPtr := add(endPtr, 0x20)
            let afterCache := mload(afterPtr)
            mstore(afterPtr, 0x00)

            // Run over the input, 3 bytes at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 byte (24 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F to bitmask the least significant 6 bits.
                // Use this as an index into the lookup table, mload an entire word
                // so the desired character is in the least significant byte, and
                // mstore8 this least significant byte into the result and continue.

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // Reset the value that was cached
            mstore(afterPtr, afterCache)

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 10 of 21 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 11 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 12 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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 13 of 21 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 14 of 21 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 15 of 21 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

File 16 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 17 of 21 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.24;

import { Ownable2Step, Ownable } from "@openzeppelin/contracts/access/Ownable2Step.sol";
import { IERC1155              } from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import { IERC1155Receiver      } from "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import { IERC1155MetadataURI   } from "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";
import { Context               } from "@openzeppelin/contracts/utils/Context.sol";
import { IERC165, ERC165       } from "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import { Arrays                } from "@openzeppelin/contracts/utils/Arrays.sol";
import { IERC1155Errors        } from "@openzeppelin/contracts/interfaces/draft-IERC6093.sol";

/**
 * @dev Minimal implementation of the basic standard multi-token based on the OpenZeppelin contracts.
 * See https://eips.ethereum.org/EIPS/eip-1155
 */
abstract contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, IERC1155Errors, Ownable2Step {
    using Arrays for uint256[];
    using Arrays for address[];

    mapping(uint256 id => mapping(address account => uint256)) private _balances;

    mapping(address account => mapping(address operator => bool)) private _operatorApprovals;

    constructor() Ownable(msg.sender) {}

    /**
     * @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 /* id */) external view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     */
    function balanceOf(address account, uint256 id) public view virtual returns (uint256) {
        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 returns (uint256[] memory) {
        if (accounts.length != ids.length) {
            revert ERC1155InvalidArrayLength(ids.length, accounts.length);
        }

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

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

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes memory data) public virtual {
        address sender = _msgSender();
        if (from != sender && !isApprovedForAll(from, sender)) {
            revert ERC1155MissingApprovalForAll(sender, from);
        }
        _safeTransferFrom(from, to, id, value, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) public virtual {
        address sender = _msgSender();
        if (from != sender && !isApprovedForAll(from, sender)) {
            revert ERC1155MissingApprovalForAll(sender, from);
        }
        _safeBatchTransferFrom(from, to, ids, values, data);
    }

    /**
     * @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`. Will mint (or burn) if `from`
     * (or `to`) is the zero address.
     *
     * Emits a {TransferSingle} event if the arrays contain one element, and {TransferBatch} otherwise.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement either {IERC1155Receiver-onERC1155Received}
     *   or {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value.
     * - `ids` and `values` must have the same length.
     *
     * NOTE: The ERC-1155 acceptance check is not performed in this function. See {_updateWithAcceptanceCheck} instead.
     */
    function _update(address from, address to, uint256[] memory ids, uint256[] memory values) internal virtual {
        if (ids.length != values.length) {
            revert ERC1155InvalidArrayLength(ids.length, values.length);
        }

        address operator = _msgSender();

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids.unsafeMemoryAccess(i);
            uint256 value = values.unsafeMemoryAccess(i);

            if (from != address(0)) {
                uint256 fromBalance = _balances[id][from];
                if (fromBalance < value) {
                    revert ERC1155InsufficientBalance(from, fromBalance, value, id);
                }
                unchecked {
                    // Overflow not possible: value <= fromBalance
                    _balances[id][from] = fromBalance - value;
                }
            }

            if (to != address(0)) {
                _balances[id][to] += value;
            }
        }

        if (ids.length == 1) {
            uint256 id = ids.unsafeMemoryAccess(0);
            uint256 value = values.unsafeMemoryAccess(0);
            emit TransferSingle(operator, from, to, id, value);
        } else {
            emit TransferBatch(operator, from, to, ids, values);
        }
    }

    /**
     * @dev Version of {_update} that performs the token acceptance check by calling
     * {IERC1155Receiver-onERC1155Received} or {IERC1155Receiver-onERC1155BatchReceived} on the receiver address if it
     * contains code (eg. is a smart contract at the moment of execution).
     *
     * IMPORTANT: Overriding this function is discouraged because it poses a reentrancy risk from the receiver. So any
     * update to the contract state after this function would break the check-effect-interaction pattern. Consider
     * overriding {_update} instead.
     */
    function _updateWithAcceptanceCheck(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) internal virtual {
        _update(from, to, ids, values);
        if (to != address(0)) {
            address operator = _msgSender();
            if (ids.length == 1) {
                uint256 id = ids.unsafeMemoryAccess(0);
                uint256 value = values.unsafeMemoryAccess(0);
                _doSafeTransferAcceptanceCheck(operator, from, to, id, value, data);
            } else {
                _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, values, data);
            }
        }
    }

    /**
     * @dev Transfers a `value` 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 `value` 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 value, bytes memory data) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value);
        _updateWithAcceptanceCheck(from, to, ids, values, 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.
     * - `ids` and `values` must have the same length.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        _updateWithAcceptanceCheck(from, to, ids, values, data);
    }

    /**
     * @dev Creates a `value` amount of tokens of type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(address to, uint256 id, uint256 value, bytes memory data) internal {
        if (to == address(0)) {
            revert ERC1155InvalidReceiver(address(0));
        }
        (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value);
        _updateWithAcceptanceCheck(address(0), to, ids, values, data);
    }

    /**
     * @dev Destroys a `value` amount of tokens of type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `value` amount of tokens of type `id`.
     */
    function _burn(address from, uint256 id, uint256 value) internal {
        if (from == address(0)) {
            revert ERC1155InvalidSender(address(0));
        }
        (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value);
        _updateWithAcceptanceCheck(from, address(0), ids, values, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the zero address.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (operator == address(0)) {
            revert ERC1155InvalidOperator(address(0));
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Performs an acceptance check by calling {IERC1155-onERC1155Received} on the `to` address
     * if it contains code at the moment of execution.
     */
    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 value,
        bytes memory data
    ) private {
        if (to.code.length > 0) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, value, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    // Tokens rejected
                    revert ERC1155InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    // non-ERC1155Receiver implementer
                    revert ERC1155InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }

    /**
     * @dev Performs a batch acceptance check by calling {IERC1155-onERC1155BatchReceived} on the `to` address
     * if it contains code at the moment of execution.
     */
    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) private {
        if (to.code.length > 0) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, values, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    // Tokens rejected
                    revert ERC1155InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    // non-ERC1155Receiver implementer
                    revert ERC1155InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }

    /**
     * @dev Creates an array in memory with only one value for each of the elements provided.
     */
    function _asSingletonArrays(
        uint256 element1,
        uint256 element2
    ) private pure returns (uint256[] memory array1, uint256[] memory array2) {
        /// @solidity memory-safe-assembly
        assembly {
            // Load the free memory pointer
            array1 := mload(0x40)
            // Set array length to 1
            mstore(array1, 1)
            // Store the single element at the next word after the length (where content starts)
            mstore(add(array1, 0x20), element1)

            // Repeat for next array locating it right after the first array
            array2 := add(array1, 0x40)
            mstore(array2, 1)
            mstore(add(array2, 0x20), element2)

            // Update the free memory pointer by pointing after the second array
            mstore(0x40, add(array2, 0x40))
        }
    }
}

File 18 of 21 : IRenderer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import { Token } from "../types/Token.sol";

interface IRenderer {
    function name () external pure returns (string memory);

    function version () external pure returns (uint version);

    function uri (uint tokenId, Token calldata token) external view returns (string memory);

    function imageURI (uint tokenId, Token calldata token) external view returns (string memory);

    function animationURI (uint tokenId, Token calldata token) external view returns (string memory);
}

File 19 of 21 : ContractMetadata.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import { Strings } from "@openzeppelin/contracts/utils/Strings.sol";
import { Base64  } from "@openzeppelin/contracts/utils/Base64.sol";
import { SSTORE2 } from "./SSTORE2.sol";

library ContractMetadata {

    struct Data {
        string name;
        string symbol;
        string description;
        address[] image;
    }

    function uri (Data memory data) external view returns (string memory) {
        bytes memory dataURI = abi.encodePacked(
            '{',
                '"name": "', data.name, '",',
                '"symbol": "', data.symbol, '",',
                '"description": "', data.description, '",',
                '"image": "', image(data), '"',
            '}'
        );

        return string(
            abi.encodePacked(
                "data:application/json;base64,",
                Base64.encode(dataURI)
            )
        );
    }

    function image (Data memory data) internal view returns (bytes memory content) {
        for (uint8 i = 0; i < data.image.length; i++) {
            content = abi.encodePacked(content, SSTORE2.read(data.image[i]));
        }
    }

}

File 20 of 21 : SSTORE2.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Read and write to persistent storage at a fraction of the cost.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SSTORE2.sol)
/// @author Modified from 0xSequence (https://github.com/0xSequence/sstore2/blob/master/contracts/SSTORE2.sol)
library SSTORE2 {
    uint256 internal constant DATA_OFFSET = 1; // We skip the first byte as it's a STOP opcode to ensure the contract can't be called.

    /*//////////////////////////////////////////////////////////////
                               WRITE LOGIC
    //////////////////////////////////////////////////////////////*/

    function write(bytes memory data) internal returns (address pointer) {
        // Prefix the bytecode with a STOP opcode to ensure it cannot be called.
        bytes memory runtimeCode = abi.encodePacked(hex"00", data);

        bytes memory creationCode = abi.encodePacked(
            //---------------------------------------------------------------------------------------------------------------//
            // Opcode  | Opcode + Arguments  | Description  | Stack View                                                     //
            //---------------------------------------------------------------------------------------------------------------//
            // 0x60    |  0x600B             | PUSH1 11     | codeOffset                                                     //
            // 0x59    |  0x59               | MSIZE        | 0 codeOffset                                                   //
            // 0x81    |  0x81               | DUP2         | codeOffset 0 codeOffset                                        //
            // 0x38    |  0x38               | CODESIZE     | codeSize codeOffset 0 codeOffset                               //
            // 0x03    |  0x03               | SUB          | (codeSize - codeOffset) 0 codeOffset                           //
            // 0x80    |  0x80               | DUP          | (codeSize - codeOffset) (codeSize - codeOffset) 0 codeOffset   //
            // 0x92    |  0x92               | SWAP3        | codeOffset (codeSize - codeOffset) 0 (codeSize - codeOffset)   //
            // 0x59    |  0x59               | MSIZE        | 0 codeOffset (codeSize - codeOffset) 0 (codeSize - codeOffset) //
            // 0x39    |  0x39               | CODECOPY     | 0 (codeSize - codeOffset)                                      //
            // 0xf3    |  0xf3               | RETURN       |                                                                //
            //---------------------------------------------------------------------------------------------------------------//
            hex"60_0B_59_81_38_03_80_92_59_39_F3", // Returns all code in the contract except for the first 11 (0B in hex) bytes.
            runtimeCode // The bytecode we want the contract to have after deployment. Capped at 1 byte less than the code size limit.
        );

        /// @solidity memory-safe-assembly
        assembly {
            // Deploy a new contract with the generated creation code.
            // We start 32 bytes into the code to avoid copying the byte length.
            pointer := create(0, add(creationCode, 32), mload(creationCode))
        }

        require(pointer != address(0), "DEPLOYMENT_FAILED");
    }

    /*//////////////////////////////////////////////////////////////
                               READ LOGIC
    //////////////////////////////////////////////////////////////*/

    function read(address pointer) internal view returns (bytes memory) {
        return readBytecode(pointer, DATA_OFFSET, pointer.code.length - DATA_OFFSET);
    }

    function read(address pointer, uint256 start) internal view returns (bytes memory) {
        start += DATA_OFFSET;

        return readBytecode(pointer, start, pointer.code.length - start);
    }

    function read(
        address pointer,
        uint256 start,
        uint256 end
    ) internal view returns (bytes memory) {
        start += DATA_OFFSET;
        end += DATA_OFFSET;

        require(pointer.code.length >= end, "OUT_OF_BOUNDS");

        return readBytecode(pointer, start, end - start);
    }

    /*//////////////////////////////////////////////////////////////
                          INTERNAL HELPER LOGIC
    //////////////////////////////////////////////////////////////*/

    function readBytecode(
        address pointer,
        uint256 start,
        uint256 size
    ) private view returns (bytes memory data) {
        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            data := mload(0x40)

            // Update the free memory pointer to prevent overriding our data.
            // We use and(x, not(31)) as a cheaper equivalent to sub(x, mod(x, 32)).
            // Adding 31 to size and running the result through the logic above ensures
            // the memory pointer remains word-aligned, following the Solidity convention.
            mstore(0x40, add(data, and(add(add(size, 32), 31), not(31))))

            // Store the size of the data in the first 32 byte chunk of free memory.
            mstore(data, size)

            // Copy the code into memory right after the 32 bytes we used to store the size.
            extcodecopy(pointer, add(data, 32), start, size)
        }
    }
}

File 21 of 21 : Token.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

struct Token {
    string  name;            // token name
    string  description;    // token description
    address[] artifact;    // artifact pointers (image/artwork) data
    uint32  renderer;     // index of renderer contract address
    uint32  mintedBlock; // creation block height of the token
    uint64  closeAt;    // timestamp of mint completion
    uint128 data;      // optional data for renderers
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 100000
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {
    "contracts/libraries/ContractMetadata.sol": {
      "ContractMetadata": "0xC1f6A976906283A6EF713aB4439C8E79Faf188A3"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC1155InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC1155InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"idsLength","type":"uint256"},{"internalType":"uint256","name":"valuesLength","type":"uint256"}],"name":"ERC1155InvalidArrayLength","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC1155InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC1155InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC1155InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC1155MissingApprovalForAll","type":"error"},{"inputs":[],"name":"Initialized","type":"error"},{"inputs":[],"name":"MintClosed","type":"error"},{"inputs":[],"name":"MintPriceNotMet","type":"error"},{"inputs":[],"name":"NonExistentRenderer","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"TokenAlreadyMinted","type":"error"},{"inputs":[],"name":"WithdrawalFailed","type":"error"},{"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":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unitPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"minter","type":"address"}],"name":"NewMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"renderer","type":"address"},{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"}],"name":"NewRenderer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenDescription","type":"string"},{"internalType":"bytes[]","name":"tokenArtifact","type":"bytes[]"},{"internalType":"uint32","name":"tokenRenderer","type":"uint32"},{"internalType":"uint128","name":"tokenData","type":"uint128"}],"name":"create","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"get","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"address[]","name":"artifact","type":"address[]"},{"internalType":"uint32","name":"renderer","type":"uint32"},{"internalType":"uint32","name":"mintedBlock","type":"uint32"},{"internalType":"uint64","name":"closeAt","type":"uint64"},{"internalType":"uint128","name":"data","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"contractName","type":"string"},{"internalType":"string","name":"contractSymbol","type":"string"},{"internalType":"string","name":"contractDescription","type":"string"},{"internalType":"bytes[]","name":"contractImage","type":"bytes[]"},{"internalType":"address","name":"renderer","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintOpenUntil","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes[]","name":"tokenArtifact","type":"bytes[]"},{"internalType":"bool","name":"clear","type":"bool"}],"name":"prepareArtifact","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"renderer","type":"address"}],"name":"registerRenderer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"renderers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"values","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":"value","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":"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"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5033806200003957604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b62000044816200004b565b50620000b9565b600180546001600160a01b0319169055620000668162000069565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6136df80620000c96000396000f3fe6080604052600436106101ab5760003560e01c806384252fb7116100ec578063c4a0d4651161008a578063e985e9c511610064578063e985e9c5146104eb578063f242432a14610541578063f2fde38b14610561578063f5298aca1461058157600080fd5b8063c4a0d4651461048b578063e30c3978146104ab578063e8a3d485146104d657600080fd5b80639507d39a116100c65780639507d39a146103d2578063a22cb46514610405578063b564434114610425578063b6cb8dfe1461046b57600080fd5b806384252fb7146103715780638c0e8349146103915780638da5cb5b146103a757600080fd5b80632eb2c2d61161015957806354fd4d501161013357806354fd4d501461031c5780635d05125b14610331578063715018a61461034757806379ba50971461035c57600080fd5b80632eb2c2d6146102ba5780633ccfd60b146102da5780634e1273f4146102ef57600080fd5b80630e89341c1161018a5780630e89341c146102355780631b2ef1ca146102625780631ffbee641461027557600080fd5b8062fdd58e146101b057806301ffc9a7146101e35780630bdbf6c214610213575b600080fd5b3480156101bc57600080fd5b506101d06101cb36600461261f565b6105a1565b6040519081526020015b60405180910390f35b3480156101ef57600080fd5b506102036101fe366004612677565b6105d8565b60405190151581526020016101da565b34801561021f57600080fd5b5061023361022e366004612722565b6106bb565b005b34801561024157600080fd5b50610255610250366004612800565b610935565b6040516101da9190612887565b61023361027036600461289a565b610c75565b34801561028157600080fd5b50610295610290366004612800565b610dce565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101da565b3480156102c657600080fd5b506102336102d5366004612a64565b610e05565b3480156102e657600080fd5b50610233610ed0565b3480156102fb57600080fd5b5061030f61030a366004612b0e565b610fc8565b6040516101da9190612c0a565b34801561032857600080fd5b506101d0600181565b34801561033d57600080fd5b506101d0600b5481565b34801561035357600080fd5b506102336110ae565b34801561036857600080fd5b506102336110c2565b34801561037d57600080fd5b5061023361038c366004612c1d565b611139565b34801561039d57600080fd5b506101d0600a5481565b3480156103b357600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610295565b3480156103de57600080fd5b506103f26103ed366004612800565b6112b8565b6040516101da9796959493929190612d49565b34801561041157600080fd5b50610233610420366004612ddb565b6114d7565b34801561043157600080fd5b506101d0610440366004612800565b60009081526008602052604090206003015468010000000000000000900467ffffffffffffffff1690565b34801561047757600080fd5b50610233610486366004612e0e565b6114e6565b34801561049757600080fd5b506101d06104a6366004612e6c565b6115ec565b3480156104b757600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff16610295565b3480156104e257600080fd5b506102556116c3565b3480156104f757600080fd5b50610203610506366004612e87565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260036020908152604080832093909416825291909152205460ff1690565b34801561054d57600080fd5b5061023361055c366004612eb1565b61177e565b34801561056d57600080fd5b5061023361057c366004612e6c565b61183c565b34801561058d57600080fd5b5061023361059c366004612f16565b6118ec565b600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff861684529091529020545b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a2600000000000000000000000000000000000000000000000000000000148061066b57507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806105d257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146105d2565b6106c36119a8565b6106ce826001612f78565b63ffffffff166009805490501015610712576040517fa9a25f6700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a6000815461072190612f9c565b90915550600a54600090815260086020526040902080610742898b8361306f565b506001810161075287898361306f565b506003810180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff166401000000004363ffffffff16021790556107996201518042613189565b6003820180546fffffffffffffffffffffffffffffffff8516700100000000000000000000000000000000026fffffffffffffffffffffffff0000000067ffffffffffffffff9490941668010000000000000000029390931667ffffffff000000009091161763ffffffff861617919091179055831561090c5760028101541561082b5761082b6002820160006125c9565b60005b60ff811685111561090a57816002016108a187878460ff168181106108555761085561319c565b905060200281019061086791906131cb565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506119fb92505050565b81546001810183556000928352602090922090910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790558061090281613230565b91505061082e565b505b61092a33600a54600160405180602001604052806000815250611ad3565b505050505050505050565b6060600a54821115610973576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260086020526040808220815160e0810190925280548290829061099a90612fd4565b80601f01602080910402602001604051908101604052809291908181526020018280546109c690612fd4565b8015610a135780601f106109e857610100808354040283529160200191610a13565b820191906000526020600020905b8154815290600101906020018083116109f657829003601f168201915b50505050508152602001600182018054610a2c90612fd4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5890612fd4565b8015610aa55780601f10610a7a57610100808354040283529160200191610aa5565b820191906000526020600020905b815481529060010190602001808311610a8857829003601f168201915b5050505050815260200160028201805480602002602001604051908101604052809291908181526020018280548015610b1457602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610ae9575b50505091835250506003919091015463ffffffff808216602084015264010000000082048116604084015268010000000000000000820467ffffffffffffffff166060808501919091527001000000000000000000000000000000009092046fffffffffffffffffffffffffffffffff1660809093019290925282015160098054939450929116908110610baa57610baa61319c565b6000918252602090912001546040517fa2f31bf300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063a2f31bf390610c0b908690859060040161324f565b600060405180830381865afa158015610c28573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610c6e9190810190613332565b9392505050565b600a54821115610cb1576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610cbf4861ea606133a9565b90506000610ccd83836133a9565b905034811115610d09576040517ff31a165400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084815260086020526040902060030154429068010000000000000000900467ffffffffffffffff161015610d6b576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d8633858560405180602001604052806000815250611ad3565b60408051838152602081018590523381830152905185917f160ecdf0b6c0a56992b4f6fad717f85f3b0bba236ec571bf26ca5cf4fe61101e919081900360600190a250505050565b60098181548110610dde57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b3373ffffffffffffffffffffffffffffffffffffffff86168114801590610e5f575073ffffffffffffffffffffffffffffffffffffffff80871660009081526003602090815260408083209385168352929052205460ff16155b15610ebb576040517fe237d92200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8083166004830152871660248201526044015b60405180910390fd5b610ec88686868686611b56565b505050505050565b610ed86119a8565b476000610efa60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114610f51576040519150601f19603f3d011682016040523d82523d6000602084013e610f56565b606091505b5050905080610f91576040517f27fcd9d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518281527f4e70a604b23a8edee2b1d0a656e9b9c00b73ad8bb1afc2c59381ee9f69197de79060200160405180910390a15050565b6060815183511461101257815183516040517f5b05999100000000000000000000000000000000000000000000000000000000815260048101929092526024820152604401610eb2565b6000835167ffffffffffffffff81111561102e5761102e6128bc565b604051908082528060200260200182016040528015611057578160200160208202803683370190505b50905060005b84518110156110a657602080820286010151611081906020808402870101516105a1565b8282815181106110935761109361319c565b602090810291909101015260010161105d565b509392505050565b6110b66119a8565b6110c06000611c0a565b565b600154339073ffffffffffffffffffffffffffffffffffffffff16811461112d576040517f118cdaa700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82166004820152602401610eb2565b61113681611c0a565b50565b600b5415611173576040517f5daa87a000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60046111808a8c8361306f565b50600561118e888a8361306f565b50600661119c86888361306f565b5060005b60ff811684111561122e5760076111c5868660ff85168181106108555761085561319c565b81546001810183556000928352602090922090910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790558061122681613230565b9150506111a0565b50600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff841617905543600b556112ac81611c0a565b50505050505050505050565b600081815260086020526040812060038101548154606093849384939192839283928392909182916001830191600284019163ffffffff8083169264010000000081049091169168010000000000000000820467ffffffffffffffff169170010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1690879061134890612fd4565b80601f016020809104026020016040519081016040528092919081815260200182805461137490612fd4565b80156113c15780601f10611396576101008083540402835291602001916113c1565b820191906000526020600020905b8154815290600101906020018083116113a457829003601f168201915b505050505096508580546113d490612fd4565b80601f016020809104026020016040519081016040528092919081815260200182805461140090612fd4565b801561144d5780601f106114225761010080835404028352916020019161144d565b820191906000526020600020905b81548152906001019060200180831161143057829003601f168201915b50505050509550848054806020026020016040519081016040528092919081815260200182805480156114b657602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff16815260019091019060200180831161148b575b50505050509450975097509750975097509750975050919395979092949650565b6114e2338383611c3b565b5050565b6114ee6119a8565b600a548411611528576040517ea5a1f500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008481526008602052604090206002810154158015906115465750815b15611559576115596002820160006125c9565b60005b60ff8116841115610ec8578160020161158386868460ff168181106108555761085561319c565b81546001810183556000928352602090922090910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055806115e481613230565b91505061155c565b60006115f66119a8565b600980546001808201835560008381527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af90920180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff871617905591549091611675916133c0565b9050808373ffffffffffffffffffffffffffffffffffffffff167fbe12a6cdcfa8711b87484030475533b479a18855d1d39eb97f1f0f3fd6e111ff60405160405180910390a390505b919050565b6040517f033918d300000000000000000000000000000000000000000000000000000000815260609073c1f6a976906283a6ef713ab4439c8e79faf188a39063033918d39061171690600490810161346e565b600060405180830381865af4158015611733573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526117799190810190613332565b905090565b3373ffffffffffffffffffffffffffffffffffffffff861681148015906117d8575073ffffffffffffffffffffffffffffffffffffffff80871660009081526003602090815260408083209385168352929052205460ff16155b1561182f576040517fe237d92200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff808316600483015287166024820152604401610eb2565b610ec88686868686611d23565b6118446119a8565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556118a760005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b73ffffffffffffffffffffffffffffffffffffffff83163314801590611943575073ffffffffffffffffffffffffffffffffffffffff8316600090815260036020908152604080832033845290915290205460ff16155b15611998576040517fe237d92200000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff84166024820152604401610eb2565b6119a3838383611dfe565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146110c0576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610eb2565b60008082604051602001611a0f9190613541565b6040516020818303038152906040529050600081604051602001611a339190613567565b60405160208183030381529060405290508051602082016000f0925073ffffffffffffffffffffffffffffffffffffffff8316611acc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4445504c4f594d454e545f4641494c45440000000000000000000000000000006044820152606401610eb2565b5050919050565b73ffffffffffffffffffffffffffffffffffffffff8416611b23576040517f57f447ce00000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b60408051600180825260208201869052818301908152606082018590526080820190925290610ec8600087848487611e89565b73ffffffffffffffffffffffffffffffffffffffff8416611ba6576040517f57f447ce00000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b73ffffffffffffffffffffffffffffffffffffffff8516611bf6576040517f01a8351400000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b611c038585858585611e89565b5050505050565b600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561113681611ee9565b73ffffffffffffffffffffffffffffffffffffffff8216611c8b576040517fced3e10000000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526003602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8416611d73576040517f57f447ce00000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b73ffffffffffffffffffffffffffffffffffffffff8516611dc3576040517f01a8351400000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b60408051600180825260208201869052818301908152606082018590526080820190925290611df58787848487611e89565b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff8316611e4e576040517f01a8351400000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b604080516001808252602082018590528183019081526060820184905260a08201909252600060808201818152919291611c03918791859085905b611e9585858585611f5e565b73ffffffffffffffffffffffffffffffffffffffff841615611c035782513390600103611edb5760208481015190840151611ed4838989858589612246565b5050610ec8565b610ec8818787878787612438565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051825114611fa657815181516040517f5b05999100000000000000000000000000000000000000000000000000000000815260048101929092526024820152604401610eb2565b3360005b83518110156121195760208181028581018201519085019091015173ffffffffffffffffffffffffffffffffffffffff8816156120ae57600082815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8c16845290915290205481811015612078576040517f03dee4c500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a166004820152602481018290526044810183905260648101849052608401610eb2565b600083815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8d16845290915290209082900390555b73ffffffffffffffffffffffffffffffffffffffff87161561210f57600082815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8b16845290915281208054839290612109908490613189565b90915550505b5050600101611faa565b5082516001036121c157602083015160009060208401519091508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6285856040516121b2929190918252602082015260400190565b60405180910390a45050611c03565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516122379291906135ac565b60405180910390a45050505050565b73ffffffffffffffffffffffffffffffffffffffff84163b15610ec8576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e61906122bd90899089908890889088906004016135d1565b6020604051808303816000875af1925050508015612316575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261231391810190613621565b60015b6123a5573d808015612344576040519150601f19603f3d011682016040523d82523d6000602084013e612349565b606091505b50805160000361239d576040517f57f447ce00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86166004820152602401610eb2565b805181602001fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014611df5576040517f57f447ce00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86166004820152602401610eb2565b73ffffffffffffffffffffffffffffffffffffffff84163b15610ec8576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c81906124af908990899088908890889060040161363e565b6020604051808303816000875af1925050508015612508575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261250591810190613621565b60015b612536573d808015612344576040519150601f19603f3d011682016040523d82523d6000602084013e612349565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014611df5576040517f57f447ce00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86166004820152602401610eb2565b508054600082559060005260206000209081019061113691905b808211156125f757600081556001016125e3565b5090565b803573ffffffffffffffffffffffffffffffffffffffff811681146116be57600080fd5b6000806040838503121561263257600080fd5b61263b836125fb565b946020939093013593505050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461113657600080fd5b60006020828403121561268957600080fd5b8135610c6e81612649565b60008083601f8401126126a657600080fd5b50813567ffffffffffffffff8111156126be57600080fd5b6020830191508360208285010111156126d657600080fd5b9250929050565b60008083601f8401126126ef57600080fd5b50813567ffffffffffffffff81111561270757600080fd5b6020830191508360208260051b85010111156126d657600080fd5b60008060008060008060008060a0898b03121561273e57600080fd5b883567ffffffffffffffff8082111561275657600080fd5b6127628c838d01612694565b909a50985060208b013591508082111561277b57600080fd5b6127878c838d01612694565b909850965060408b01359150808211156127a057600080fd5b506127ad8b828c016126dd565b909550935050606089013563ffffffff811681146127ca57600080fd5b915060808901356fffffffffffffffffffffffffffffffff811681146127ef57600080fd5b809150509295985092959890939650565b60006020828403121561281257600080fd5b5035919050565b60005b8381101561283457818101518382015260200161281c565b50506000910152565b60008151808452612855816020860160208601612819565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610c6e602083018461283d565b600080604083850312156128ad57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715612932576129326128bc565b604052919050565b600067ffffffffffffffff821115612954576129546128bc565b5060051b60200190565b600082601f83011261296f57600080fd5b8135602061298461297f8361293a565b6128eb565b8083825260208201915060208460051b8701019350868411156129a657600080fd5b602086015b848110156129c257803583529183019183016129ab565b509695505050505050565b600067ffffffffffffffff8211156129e7576129e76128bc565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600082601f830112612a2457600080fd5b8135612a3261297f826129cd565b818152846020838601011115612a4757600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612a7c57600080fd5b612a85866125fb565b9450612a93602087016125fb565b9350604086013567ffffffffffffffff80821115612ab057600080fd5b612abc89838a0161295e565b94506060880135915080821115612ad257600080fd5b612ade89838a0161295e565b93506080880135915080821115612af457600080fd5b50612b0188828901612a13565b9150509295509295909350565b60008060408385031215612b2157600080fd5b823567ffffffffffffffff80821115612b3957600080fd5b818501915085601f830112612b4d57600080fd5b81356020612b5d61297f8361293a565b82815260059290921b84018101918181019089841115612b7c57600080fd5b948201945b83861015612ba157612b92866125fb565b82529482019490820190612b81565b96505086013592505080821115612bb757600080fd5b50612bc48582860161295e565b9150509250929050565b60008151808452602080850194506020840160005b83811015612bff57815187529582019590820190600101612be3565b509495945050505050565b602081526000610c6e6020830184612bce565b60008060008060008060008060008060c08b8d031215612c3c57600080fd5b8a3567ffffffffffffffff80821115612c5457600080fd5b612c608e838f01612694565b909c509a5060208d0135915080821115612c7957600080fd5b612c858e838f01612694565b909a50985060408d0135915080821115612c9e57600080fd5b612caa8e838f01612694565b909850965060608d0135915080821115612cc357600080fd5b50612cd08d828e016126dd565b9095509350612ce3905060808c016125fb565b9150612cf160a08c016125fb565b90509295989b9194979a5092959850565b60008151808452602080850194506020840160005b83811015612bff57815173ffffffffffffffffffffffffffffffffffffffff1687529582019590820190600101612d17565b60e081526000612d5c60e083018a61283d565b8281036020840152612d6e818a61283d565b90508281036040840152612d828189612d02565b63ffffffff97881660608501529590961660808301525067ffffffffffffffff9290921660a08301526fffffffffffffffffffffffffffffffff1660c090910152949350505050565b803580151581146116be57600080fd5b60008060408385031215612dee57600080fd5b612df7836125fb565b9150612e0560208401612dcb565b90509250929050565b60008060008060608587031215612e2457600080fd5b84359350602085013567ffffffffffffffff811115612e4257600080fd5b612e4e878288016126dd565b9094509250612e61905060408601612dcb565b905092959194509250565b600060208284031215612e7e57600080fd5b610c6e826125fb565b60008060408385031215612e9a57600080fd5b612ea3836125fb565b9150612e05602084016125fb565b600080600080600060a08688031215612ec957600080fd5b612ed2866125fb565b9450612ee0602087016125fb565b93506040860135925060608601359150608086013567ffffffffffffffff811115612f0a57600080fd5b612b0188828901612a13565b600080600060608486031215612f2b57600080fd5b612f34846125fb565b95602085013595506040909401359392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b63ffffffff818116838216019080821115612f9557612f95612f49565b5092915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612fcd57612fcd612f49565b5060010190565b600181811c90821680612fe857607f821691505b602082108103613021577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f8211156119a3576000816000526020600020601f850160051c810160208610156130505750805b601f850160051c820191505b81811015610ec85782815560010161305c565b67ffffffffffffffff831115613087576130876128bc565b61309b836130958354612fd4565b83613027565b6000601f8411600181146130ed57600085156130b75750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355611c03565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b8281101561313c578685013582556020948501946001909201910161311c565b5086821015613177577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b808201808211156105d2576105d2612f49565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261320057600080fd5b83018035915067ffffffffffffffff82111561321b57600080fd5b6020019150368190038213156126d657600080fd5b600060ff821660ff810361324657613246612f49565b60010192915050565b828152604060208201526000825160e0604084015261327261012084018261283d565b905060208401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0808584030160608601526132ae838361283d565b92506040860151915080858403016080860152506132cc8282612d02565b915050606084015163ffffffff80821660a08601528060808701511660c0860152505060a084015161330a60e085018267ffffffffffffffff169052565b5060c08401516fffffffffffffffffffffffffffffffff811661010085015250949350505050565b60006020828403121561334457600080fd5b815167ffffffffffffffff81111561335b57600080fd5b8201601f8101841361336c57600080fd5b805161337a61297f826129cd565b81815285602083850101111561338f57600080fd5b6133a0826020830160208601612819565b95945050505050565b80820281158282048414176105d2576105d2612f49565b818103818111156105d2576105d2612f49565b600081546133e081612fd4565b8085526020600183811680156133fd576001811461343557613463565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008516838901528284151560051b8901019550613463565b866000528260002060005b8581101561345b5781548a8201860152908301908401613440565b890184019650505b505050505092915050565b600060208083526080602084015261348960a08401856133d3565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0808684030160408701526134c383600189016133d3565b9250808684030160608701526134dc83600289016133d3565b8681039091016080870152600387018054808352600091825260208083209550909201915b8082101561353457845473ffffffffffffffffffffffffffffffffffffffff168352938301939185019190830190613501565b5090979650505050505050565b600081526000825161355a816001850160208701612819565b9190910160010192915050565b7f600b5981380380925939f300000000000000000000000000000000000000000081526000825161359f81600b850160208701612819565b91909101600b0192915050565b6040815260006135bf6040830185612bce565b82810360208401526133a08185612bce565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a0608083015261361660a083018461283d565b979650505050505050565b60006020828403121561363357600080fd5b8151610c6e81612649565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a0604083015261367760a0830186612bce565b82810360608401526136898186612bce565b9050828103608084015261369d818561283d565b9897505050505050505056fea26469706673582212205d9c9c09f6d2f52c2fb180b9ad272b0c454d51c9baa0bdf9d7d59fa1d30f4ddb64736f6c63430008180033

Deployed Bytecode

0x6080604052600436106101ab5760003560e01c806384252fb7116100ec578063c4a0d4651161008a578063e985e9c511610064578063e985e9c5146104eb578063f242432a14610541578063f2fde38b14610561578063f5298aca1461058157600080fd5b8063c4a0d4651461048b578063e30c3978146104ab578063e8a3d485146104d657600080fd5b80639507d39a116100c65780639507d39a146103d2578063a22cb46514610405578063b564434114610425578063b6cb8dfe1461046b57600080fd5b806384252fb7146103715780638c0e8349146103915780638da5cb5b146103a757600080fd5b80632eb2c2d61161015957806354fd4d501161013357806354fd4d501461031c5780635d05125b14610331578063715018a61461034757806379ba50971461035c57600080fd5b80632eb2c2d6146102ba5780633ccfd60b146102da5780634e1273f4146102ef57600080fd5b80630e89341c1161018a5780630e89341c146102355780631b2ef1ca146102625780631ffbee641461027557600080fd5b8062fdd58e146101b057806301ffc9a7146101e35780630bdbf6c214610213575b600080fd5b3480156101bc57600080fd5b506101d06101cb36600461261f565b6105a1565b6040519081526020015b60405180910390f35b3480156101ef57600080fd5b506102036101fe366004612677565b6105d8565b60405190151581526020016101da565b34801561021f57600080fd5b5061023361022e366004612722565b6106bb565b005b34801561024157600080fd5b50610255610250366004612800565b610935565b6040516101da9190612887565b61023361027036600461289a565b610c75565b34801561028157600080fd5b50610295610290366004612800565b610dce565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101da565b3480156102c657600080fd5b506102336102d5366004612a64565b610e05565b3480156102e657600080fd5b50610233610ed0565b3480156102fb57600080fd5b5061030f61030a366004612b0e565b610fc8565b6040516101da9190612c0a565b34801561032857600080fd5b506101d0600181565b34801561033d57600080fd5b506101d0600b5481565b34801561035357600080fd5b506102336110ae565b34801561036857600080fd5b506102336110c2565b34801561037d57600080fd5b5061023361038c366004612c1d565b611139565b34801561039d57600080fd5b506101d0600a5481565b3480156103b357600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610295565b3480156103de57600080fd5b506103f26103ed366004612800565b6112b8565b6040516101da9796959493929190612d49565b34801561041157600080fd5b50610233610420366004612ddb565b6114d7565b34801561043157600080fd5b506101d0610440366004612800565b60009081526008602052604090206003015468010000000000000000900467ffffffffffffffff1690565b34801561047757600080fd5b50610233610486366004612e0e565b6114e6565b34801561049757600080fd5b506101d06104a6366004612e6c565b6115ec565b3480156104b757600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff16610295565b3480156104e257600080fd5b506102556116c3565b3480156104f757600080fd5b50610203610506366004612e87565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260036020908152604080832093909416825291909152205460ff1690565b34801561054d57600080fd5b5061023361055c366004612eb1565b61177e565b34801561056d57600080fd5b5061023361057c366004612e6c565b61183c565b34801561058d57600080fd5b5061023361059c366004612f16565b6118ec565b600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff861684529091529020545b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a2600000000000000000000000000000000000000000000000000000000148061066b57507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b806105d257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146105d2565b6106c36119a8565b6106ce826001612f78565b63ffffffff166009805490501015610712576040517fa9a25f6700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a6000815461072190612f9c565b90915550600a54600090815260086020526040902080610742898b8361306f565b506001810161075287898361306f565b506003810180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff166401000000004363ffffffff16021790556107996201518042613189565b6003820180546fffffffffffffffffffffffffffffffff8516700100000000000000000000000000000000026fffffffffffffffffffffffff0000000067ffffffffffffffff9490941668010000000000000000029390931667ffffffff000000009091161763ffffffff861617919091179055831561090c5760028101541561082b5761082b6002820160006125c9565b60005b60ff811685111561090a57816002016108a187878460ff168181106108555761085561319c565b905060200281019061086791906131cb565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506119fb92505050565b81546001810183556000928352602090922090910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790558061090281613230565b91505061082e565b505b61092a33600a54600160405180602001604052806000815250611ad3565b505050505050505050565b6060600a54821115610973576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260086020526040808220815160e0810190925280548290829061099a90612fd4565b80601f01602080910402602001604051908101604052809291908181526020018280546109c690612fd4565b8015610a135780601f106109e857610100808354040283529160200191610a13565b820191906000526020600020905b8154815290600101906020018083116109f657829003601f168201915b50505050508152602001600182018054610a2c90612fd4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5890612fd4565b8015610aa55780601f10610a7a57610100808354040283529160200191610aa5565b820191906000526020600020905b815481529060010190602001808311610a8857829003601f168201915b5050505050815260200160028201805480602002602001604051908101604052809291908181526020018280548015610b1457602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610ae9575b50505091835250506003919091015463ffffffff808216602084015264010000000082048116604084015268010000000000000000820467ffffffffffffffff166060808501919091527001000000000000000000000000000000009092046fffffffffffffffffffffffffffffffff1660809093019290925282015160098054939450929116908110610baa57610baa61319c565b6000918252602090912001546040517fa2f31bf300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063a2f31bf390610c0b908690859060040161324f565b600060405180830381865afa158015610c28573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610c6e9190810190613332565b9392505050565b600a54821115610cb1576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610cbf4861ea606133a9565b90506000610ccd83836133a9565b905034811115610d09576040517ff31a165400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084815260086020526040902060030154429068010000000000000000900467ffffffffffffffff161015610d6b576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d8633858560405180602001604052806000815250611ad3565b60408051838152602081018590523381830152905185917f160ecdf0b6c0a56992b4f6fad717f85f3b0bba236ec571bf26ca5cf4fe61101e919081900360600190a250505050565b60098181548110610dde57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b3373ffffffffffffffffffffffffffffffffffffffff86168114801590610e5f575073ffffffffffffffffffffffffffffffffffffffff80871660009081526003602090815260408083209385168352929052205460ff16155b15610ebb576040517fe237d92200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8083166004830152871660248201526044015b60405180910390fd5b610ec88686868686611b56565b505050505050565b610ed86119a8565b476000610efa60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114610f51576040519150601f19603f3d011682016040523d82523d6000602084013e610f56565b606091505b5050905080610f91576040517f27fcd9d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518281527f4e70a604b23a8edee2b1d0a656e9b9c00b73ad8bb1afc2c59381ee9f69197de79060200160405180910390a15050565b6060815183511461101257815183516040517f5b05999100000000000000000000000000000000000000000000000000000000815260048101929092526024820152604401610eb2565b6000835167ffffffffffffffff81111561102e5761102e6128bc565b604051908082528060200260200182016040528015611057578160200160208202803683370190505b50905060005b84518110156110a657602080820286010151611081906020808402870101516105a1565b8282815181106110935761109361319c565b602090810291909101015260010161105d565b509392505050565b6110b66119a8565b6110c06000611c0a565b565b600154339073ffffffffffffffffffffffffffffffffffffffff16811461112d576040517f118cdaa700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82166004820152602401610eb2565b61113681611c0a565b50565b600b5415611173576040517f5daa87a000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60046111808a8c8361306f565b50600561118e888a8361306f565b50600661119c86888361306f565b5060005b60ff811684111561122e5760076111c5868660ff85168181106108555761085561319c565b81546001810183556000928352602090922090910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790558061122681613230565b9150506111a0565b50600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff841617905543600b556112ac81611c0a565b50505050505050505050565b600081815260086020526040812060038101548154606093849384939192839283928392909182916001830191600284019163ffffffff8083169264010000000081049091169168010000000000000000820467ffffffffffffffff169170010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1690879061134890612fd4565b80601f016020809104026020016040519081016040528092919081815260200182805461137490612fd4565b80156113c15780601f10611396576101008083540402835291602001916113c1565b820191906000526020600020905b8154815290600101906020018083116113a457829003601f168201915b505050505096508580546113d490612fd4565b80601f016020809104026020016040519081016040528092919081815260200182805461140090612fd4565b801561144d5780601f106114225761010080835404028352916020019161144d565b820191906000526020600020905b81548152906001019060200180831161143057829003601f168201915b50505050509550848054806020026020016040519081016040528092919081815260200182805480156114b657602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff16815260019091019060200180831161148b575b50505050509450975097509750975097509750975050919395979092949650565b6114e2338383611c3b565b5050565b6114ee6119a8565b600a548411611528576040517ea5a1f500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008481526008602052604090206002810154158015906115465750815b15611559576115596002820160006125c9565b60005b60ff8116841115610ec8578160020161158386868460ff168181106108555761085561319c565b81546001810183556000928352602090922090910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055806115e481613230565b91505061155c565b60006115f66119a8565b600980546001808201835560008381527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af90920180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff871617905591549091611675916133c0565b9050808373ffffffffffffffffffffffffffffffffffffffff167fbe12a6cdcfa8711b87484030475533b479a18855d1d39eb97f1f0f3fd6e111ff60405160405180910390a390505b919050565b6040517f033918d300000000000000000000000000000000000000000000000000000000815260609073c1f6a976906283a6ef713ab4439c8e79faf188a39063033918d39061171690600490810161346e565b600060405180830381865af4158015611733573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526117799190810190613332565b905090565b3373ffffffffffffffffffffffffffffffffffffffff861681148015906117d8575073ffffffffffffffffffffffffffffffffffffffff80871660009081526003602090815260408083209385168352929052205460ff16155b1561182f576040517fe237d92200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff808316600483015287166024820152604401610eb2565b610ec88686868686611d23565b6118446119a8565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556118a760005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b73ffffffffffffffffffffffffffffffffffffffff83163314801590611943575073ffffffffffffffffffffffffffffffffffffffff8316600090815260036020908152604080832033845290915290205460ff16155b15611998576040517fe237d92200000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff84166024820152604401610eb2565b6119a3838383611dfe565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146110c0576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610eb2565b60008082604051602001611a0f9190613541565b6040516020818303038152906040529050600081604051602001611a339190613567565b60405160208183030381529060405290508051602082016000f0925073ffffffffffffffffffffffffffffffffffffffff8316611acc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4445504c4f594d454e545f4641494c45440000000000000000000000000000006044820152606401610eb2565b5050919050565b73ffffffffffffffffffffffffffffffffffffffff8416611b23576040517f57f447ce00000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b60408051600180825260208201869052818301908152606082018590526080820190925290610ec8600087848487611e89565b73ffffffffffffffffffffffffffffffffffffffff8416611ba6576040517f57f447ce00000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b73ffffffffffffffffffffffffffffffffffffffff8516611bf6576040517f01a8351400000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b611c038585858585611e89565b5050505050565b600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561113681611ee9565b73ffffffffffffffffffffffffffffffffffffffff8216611c8b576040517fced3e10000000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526003602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8416611d73576040517f57f447ce00000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b73ffffffffffffffffffffffffffffffffffffffff8516611dc3576040517f01a8351400000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b60408051600180825260208201869052818301908152606082018590526080820190925290611df58787848487611e89565b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff8316611e4e576040517f01a8351400000000000000000000000000000000000000000000000000000000815260006004820152602401610eb2565b604080516001808252602082018590528183019081526060820184905260a08201909252600060808201818152919291611c03918791859085905b611e9585858585611f5e565b73ffffffffffffffffffffffffffffffffffffffff841615611c035782513390600103611edb5760208481015190840151611ed4838989858589612246565b5050610ec8565b610ec8818787878787612438565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051825114611fa657815181516040517f5b05999100000000000000000000000000000000000000000000000000000000815260048101929092526024820152604401610eb2565b3360005b83518110156121195760208181028581018201519085019091015173ffffffffffffffffffffffffffffffffffffffff8816156120ae57600082815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8c16845290915290205481811015612078576040517f03dee4c500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a166004820152602481018290526044810183905260648101849052608401610eb2565b600083815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8d16845290915290209082900390555b73ffffffffffffffffffffffffffffffffffffffff87161561210f57600082815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8b16845290915281208054839290612109908490613189565b90915550505b5050600101611faa565b5082516001036121c157602083015160009060208401519091508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6285856040516121b2929190918252602082015260400190565b60405180910390a45050611c03565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516122379291906135ac565b60405180910390a45050505050565b73ffffffffffffffffffffffffffffffffffffffff84163b15610ec8576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e61906122bd90899089908890889088906004016135d1565b6020604051808303816000875af1925050508015612316575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261231391810190613621565b60015b6123a5573d808015612344576040519150601f19603f3d011682016040523d82523d6000602084013e612349565b606091505b50805160000361239d576040517f57f447ce00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86166004820152602401610eb2565b805181602001fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014611df5576040517f57f447ce00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86166004820152602401610eb2565b73ffffffffffffffffffffffffffffffffffffffff84163b15610ec8576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c81906124af908990899088908890889060040161363e565b6020604051808303816000875af1925050508015612508575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261250591810190613621565b60015b612536573d808015612344576040519150601f19603f3d011682016040523d82523d6000602084013e612349565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014611df5576040517f57f447ce00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86166004820152602401610eb2565b508054600082559060005260206000209081019061113691905b808211156125f757600081556001016125e3565b5090565b803573ffffffffffffffffffffffffffffffffffffffff811681146116be57600080fd5b6000806040838503121561263257600080fd5b61263b836125fb565b946020939093013593505050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461113657600080fd5b60006020828403121561268957600080fd5b8135610c6e81612649565b60008083601f8401126126a657600080fd5b50813567ffffffffffffffff8111156126be57600080fd5b6020830191508360208285010111156126d657600080fd5b9250929050565b60008083601f8401126126ef57600080fd5b50813567ffffffffffffffff81111561270757600080fd5b6020830191508360208260051b85010111156126d657600080fd5b60008060008060008060008060a0898b03121561273e57600080fd5b883567ffffffffffffffff8082111561275657600080fd5b6127628c838d01612694565b909a50985060208b013591508082111561277b57600080fd5b6127878c838d01612694565b909850965060408b01359150808211156127a057600080fd5b506127ad8b828c016126dd565b909550935050606089013563ffffffff811681146127ca57600080fd5b915060808901356fffffffffffffffffffffffffffffffff811681146127ef57600080fd5b809150509295985092959890939650565b60006020828403121561281257600080fd5b5035919050565b60005b8381101561283457818101518382015260200161281c565b50506000910152565b60008151808452612855816020860160208601612819565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610c6e602083018461283d565b600080604083850312156128ad57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715612932576129326128bc565b604052919050565b600067ffffffffffffffff821115612954576129546128bc565b5060051b60200190565b600082601f83011261296f57600080fd5b8135602061298461297f8361293a565b6128eb565b8083825260208201915060208460051b8701019350868411156129a657600080fd5b602086015b848110156129c257803583529183019183016129ab565b509695505050505050565b600067ffffffffffffffff8211156129e7576129e76128bc565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600082601f830112612a2457600080fd5b8135612a3261297f826129cd565b818152846020838601011115612a4757600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612a7c57600080fd5b612a85866125fb565b9450612a93602087016125fb565b9350604086013567ffffffffffffffff80821115612ab057600080fd5b612abc89838a0161295e565b94506060880135915080821115612ad257600080fd5b612ade89838a0161295e565b93506080880135915080821115612af457600080fd5b50612b0188828901612a13565b9150509295509295909350565b60008060408385031215612b2157600080fd5b823567ffffffffffffffff80821115612b3957600080fd5b818501915085601f830112612b4d57600080fd5b81356020612b5d61297f8361293a565b82815260059290921b84018101918181019089841115612b7c57600080fd5b948201945b83861015612ba157612b92866125fb565b82529482019490820190612b81565b96505086013592505080821115612bb757600080fd5b50612bc48582860161295e565b9150509250929050565b60008151808452602080850194506020840160005b83811015612bff57815187529582019590820190600101612be3565b509495945050505050565b602081526000610c6e6020830184612bce565b60008060008060008060008060008060c08b8d031215612c3c57600080fd5b8a3567ffffffffffffffff80821115612c5457600080fd5b612c608e838f01612694565b909c509a5060208d0135915080821115612c7957600080fd5b612c858e838f01612694565b909a50985060408d0135915080821115612c9e57600080fd5b612caa8e838f01612694565b909850965060608d0135915080821115612cc357600080fd5b50612cd08d828e016126dd565b9095509350612ce3905060808c016125fb565b9150612cf160a08c016125fb565b90509295989b9194979a5092959850565b60008151808452602080850194506020840160005b83811015612bff57815173ffffffffffffffffffffffffffffffffffffffff1687529582019590820190600101612d17565b60e081526000612d5c60e083018a61283d565b8281036020840152612d6e818a61283d565b90508281036040840152612d828189612d02565b63ffffffff97881660608501529590961660808301525067ffffffffffffffff9290921660a08301526fffffffffffffffffffffffffffffffff1660c090910152949350505050565b803580151581146116be57600080fd5b60008060408385031215612dee57600080fd5b612df7836125fb565b9150612e0560208401612dcb565b90509250929050565b60008060008060608587031215612e2457600080fd5b84359350602085013567ffffffffffffffff811115612e4257600080fd5b612e4e878288016126dd565b9094509250612e61905060408601612dcb565b905092959194509250565b600060208284031215612e7e57600080fd5b610c6e826125fb565b60008060408385031215612e9a57600080fd5b612ea3836125fb565b9150612e05602084016125fb565b600080600080600060a08688031215612ec957600080fd5b612ed2866125fb565b9450612ee0602087016125fb565b93506040860135925060608601359150608086013567ffffffffffffffff811115612f0a57600080fd5b612b0188828901612a13565b600080600060608486031215612f2b57600080fd5b612f34846125fb565b95602085013595506040909401359392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b63ffffffff818116838216019080821115612f9557612f95612f49565b5092915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612fcd57612fcd612f49565b5060010190565b600181811c90821680612fe857607f821691505b602082108103613021577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f8211156119a3576000816000526020600020601f850160051c810160208610156130505750805b601f850160051c820191505b81811015610ec85782815560010161305c565b67ffffffffffffffff831115613087576130876128bc565b61309b836130958354612fd4565b83613027565b6000601f8411600181146130ed57600085156130b75750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355611c03565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b8281101561313c578685013582556020948501946001909201910161311c565b5086821015613177577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b808201808211156105d2576105d2612f49565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261320057600080fd5b83018035915067ffffffffffffffff82111561321b57600080fd5b6020019150368190038213156126d657600080fd5b600060ff821660ff810361324657613246612f49565b60010192915050565b828152604060208201526000825160e0604084015261327261012084018261283d565b905060208401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0808584030160608601526132ae838361283d565b92506040860151915080858403016080860152506132cc8282612d02565b915050606084015163ffffffff80821660a08601528060808701511660c0860152505060a084015161330a60e085018267ffffffffffffffff169052565b5060c08401516fffffffffffffffffffffffffffffffff811661010085015250949350505050565b60006020828403121561334457600080fd5b815167ffffffffffffffff81111561335b57600080fd5b8201601f8101841361336c57600080fd5b805161337a61297f826129cd565b81815285602083850101111561338f57600080fd5b6133a0826020830160208601612819565b95945050505050565b80820281158282048414176105d2576105d2612f49565b818103818111156105d2576105d2612f49565b600081546133e081612fd4565b8085526020600183811680156133fd576001811461343557613463565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008516838901528284151560051b8901019550613463565b866000528260002060005b8581101561345b5781548a8201860152908301908401613440565b890184019650505b505050505092915050565b600060208083526080602084015261348960a08401856133d3565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0808684030160408701526134c383600189016133d3565b9250808684030160608701526134dc83600289016133d3565b8681039091016080870152600387018054808352600091825260208083209550909201915b8082101561353457845473ffffffffffffffffffffffffffffffffffffffff168352938301939185019190830190613501565b5090979650505050505050565b600081526000825161355a816001850160208701612819565b9190910160010192915050565b7f600b5981380380925939f300000000000000000000000000000000000000000081526000825161359f81600b850160208701612819565b91909101600b0192915050565b6040815260006135bf6040830185612bce565b82810360208401526133a08185612bce565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a0608083015261361660a083018461283d565b979650505050505050565b60006020828403121561363357600080fd5b8151610c6e81612649565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a0604083015261367760a0830186612bce565b82810360608401526136898186612bce565b9050828103608084015261369d818561283d565b9897505050505050505056fea26469706673582212205d9c9c09f6d2f52c2fb180b9ad272b0c454d51c9baa0bdf9d7d59fa1d30f4ddb64736f6c63430008180033

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.