Contract 0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f 1

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
Ad
Ad
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc22266b93c933e54163ca7345401bb2dcf4d422fe9269aba0336e1b2c962201eCancel207554352021-10-29 22:00:5733 days 14 hrs ago0x7758a346a1716ea1d18c0835d01ff656b2e7a97b IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.00786384
0x3e3e60d38cdaa361cddeacd30575445db58d9a60d3896618bd1247870a120f78Cancel207481562021-10-29 17:38:3333 days 19 hrs ago0x6db19b5134d447e1ea595cb4ad7db70069463839 IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.00772104
0xf20ecee89bdcbad29ca0cf8e2aee9d1a18bc1572ce96d1eb1ad6a6077497cdf3Cancel204931922021-10-22 16:41:0540 days 20 hrs ago0xf909bcf80d60010bc078986f525ab63c13497a8f IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.007707744
0xfccffba7e7a1773fdcfc7605a55c3d87406505309c28c044c9606b2b96b7d8b3Update Price200157852021-10-09 8:14:2754 days 4 hrs ago0x5b64c627d375d2cc3bcc1acd3e88bb3de437a5d6 IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.00091401
0x70363f30a1d067f5b4fc8852d50fa7b63c26ac56ea783536c6e323a1b5435105Update Price200157722021-10-09 8:14:0154 days 4 hrs ago0x5b64c627d375d2cc3bcc1acd3e88bb3de437a5d6 IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.00159501
0x0556843502fb9104ac2826cdd6d36ec8f8593513c604342418c3c4b6711cbb0eUpdate Price195800542021-09-27 17:01:1365 days 19 hrs ago0x6db19b5134d447e1ea595cb4ad7db70069463839 IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.0000944477
0xad701add1e622a43ea6acf9c5f8b87f814339e3bf4f88374230fb9f029c7460fUpdate Price195799762021-09-27 16:58:3365 days 19 hrs ago0x6db19b5134d447e1ea595cb4ad7db70069463839 IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.00018463185
0xf3923752815bedb56e8cc2182c7a3997abefd416f1a12ce46654fc0bb619ca3aUpdate Price194090572021-09-23 5:12:1270 days 7 hrs ago0x25389544c94cdade9d6f28b46f3b0e6ff2a23bfa IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.0053155
0xe520b40c603aa25a2fc23b76215cc9152992e5ca9f1b3d0517dc228d35c76e57Update Price193706952021-09-22 3:12:1471 days 9 hrs ago0xf909bcf80d60010bc078986f525ab63c13497a8f IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.00005901537
0xf7eda558b5e809b7b2f1b80b9d81f80675a793bd591e98c77273701f958c0a3eUpdate Price193695562021-09-22 2:29:4171 days 10 hrs ago0xf909bcf80d60010bc078986f525ab63c13497a8f IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.000161422515
0xcd9ae77132500aa09e3b74b541b23a88b8d7d477b056be1cd9dad47c9b419ca6Update Price193002322021-09-20 5:22:1073 days 7 hrs ago0xceafb20801d5d065a11e7393d5ce767d63385e2f IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.0000335137
0xa8ddd3afa9d597e42363027324c4fb370038c1b6a1f3adb83ec8c347b02c11c3Update Price193002192021-09-20 5:21:4073 days 7 hrs ago0xceafb20801d5d065a11e7393d5ce767d63385e2f IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.000037200207
0x31598f7aa98739d8c2b8cfbb8dc111e174a26914cbd64da1fc962ea5c7097959Update Price193001352021-09-20 5:18:4873 days 7 hrs ago0xceafb20801d5d065a11e7393d5ce767d63385e2f IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.00003686507
0x0b9b1176f13f43e997c013bc81c92f22354a9f1673eb383022d1a049ac4cf9b8Update Price193001202021-09-20 5:18:1873 days 7 hrs ago0xceafb20801d5d065a11e7393d5ce767d63385e2f IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.00006433207
0x25fa5f5dc34af609bdf3d3ad45ef18173708319641b472302bbef428f3ba93c8Update Price191936202021-09-17 5:21:2276 days 7 hrs ago0xd13ee409696b77be22945b03a38b101b41671dbd IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.0001198044
0xcfab00cfea63b8f1b3420a54bb86d2976fa671f81937f59b287f56d31be929d5Update Price191936182021-09-17 5:21:1876 days 7 hrs ago0xd13ee409696b77be22945b03a38b101b41671dbd IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.000091401
0xc6542fe93dd87f4bf269523f4b4f0eefadfd8b5ef70e90f83b000f93f0d1c548Update Price191794862021-09-16 19:04:1376 days 17 hrs ago0xd13ee409696b77be22945b03a38b101b41671dbd IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.000403556247
0x9eb88d5e8d21b3cf4626b7be574e3b5aa1efa7ad865a3941a08d4b3b6ab54df5Cancel190532882021-09-13 7:38:5080 days 5 hrs ago0x5b64c627d375d2cc3bcc1acd3e88bb3de437a5d6 IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.000078696
0x0cf23dc2548546207e750702f99ac108700cef823c33a6eef6589231f203d1beCancel190532872021-09-13 7:38:4880 days 5 hrs ago0x5b64c627d375d2cc3bcc1acd3e88bb3de437a5d6 IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.000254988
0x58837644ff4ce0ad64beb1dd7b134463ee3d0998b0009a36d93b9f4545fc56cfBuy187758692021-09-05 13:53:3487 days 22 hrs ago0x4ee62df8dc94ad5c9439b58a96c3828ef704b9cb IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.0003046318
0xf2e5b251428d05b81ccc122980e831177b64afe7bd3856e8d9f6a6b6ac816647Update Price187515632021-09-04 21:21:0788 days 15 hrs ago0x6db19b5134d447e1ea595cb4ad7db70069463839 IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.000033267
0x4de12680a6427c4570e622118ea354915dc61cbbc9c357e7e963637f92fed548Buy187475192021-09-04 18:47:0488 days 17 hrs ago0xee26d5312dd4f0062ba73c004a7e4118cdae115b IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.000211958
0xb960a4555714f3f81b35f9ac128a2ca794484a9ea95d4b1441f68256ee1caa66Update Price187416922021-09-04 14:48:3188 days 21 hrs ago0xc9bd40e99113bc5ae51b05d087fe9d6519c04b12 IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.002755671849
0x0b75c3a322f2f23c256a45d6e5628de6019cee1bca9360f934a76e903613b08cCancel187411822021-09-04 14:26:3588 days 22 hrs ago0xc9bd40e99113bc5ae51b05d087fe9d6519c04b12 IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.00139327422
0x45e27ab78765336c908055ef24281bea3843b61061629d8629cb5c710106e906Update Price187037582021-09-03 14:07:1489 days 22 hrs ago0xc9bd40e99113bc5ae51b05d087fe9d6519c04b12 IN  0xa558bf7a440ce4f872a0f0b479546ecdb2e7a81f0 MATIC0.000030467
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NFTSellingERC1155

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-08-29
*/

// File @openzeppelin/contracts/utils/introspection/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

// File @openzeppelin/contracts/token/ERC1155/[email protected]

pragma solidity ^0.8.0;

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

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

// File @openzeppelin/contracts/utils/introspection/[email protected]

pragma solidity ^0.8.0;

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

// File @openzeppelin/contracts/token/ERC1155/utils/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC1155Receiver).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

// File @openzeppelin/contracts/token/ERC1155/utils/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev _Available since v3.1._
 */
contract ERC1155Holder is ERC1155Receiver {
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] memory,
        uint256[] memory,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

// File @openzeppelin/contracts/token/ERC20/[email protected]

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File @openzeppelin/contracts/token/ERC1155/[email protected]

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

// File @openzeppelin/contracts/token/ERC1155/extensions/[email protected]

pragma solidity ^0.8.0;

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

// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{value: amount}("");
        require(
            success,
            "Address: unable to send value, recipient may have reverted"
        );
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: value}(
            data
        );
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File @openzeppelin/contracts/token/ERC1155/[email protected]

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

        return array;
    }
}

// File @openzeppelin/contracts/token/ERC1155/extensions/[email protected]

pragma solidity ^0.8.0;

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

        _burn(account, id, value);
    }

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

        _burnBatch(account, ids, values);
    }
}

// File @openzeppelin/contracts/security/[email protected]

pragma solidity ^0.8.0;

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

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

    bool private _paused;

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

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

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

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

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

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

// File @openzeppelin/contracts/token/ERC1155/extensions/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev ERC1155 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Pausable is ERC1155, Pausable {
    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        require(!paused(), "ERC1155Pausable: token transfer while paused");
    }
}

// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

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

// File @openzeppelin/contracts/access/[email protected]

pragma solidity ^0.8.0;

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

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

    function grantRole(bytes32 role, address account) external;

    function revokeRole(bytes32 role, address account) external;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

// File @openzeppelin/contracts/utils/structs/[email protected]

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

// File @openzeppelin/contracts/access/[email protected]

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

// File @openzeppelin/contracts/token/ERC1155/presets/[email protected]

pragma solidity ^0.8.0;

/**
 * @dev {ERC1155} token, including:
 *
 *  - ability for holders to burn (destroy) their tokens
 *  - a minter role that allows for token minting (creation)
 *  - a pauser role that allows to stop all token transfers
 *
 * This contract uses {AccessControl} to lock permissioned functions using the
 * different roles - head to its documentation for details.
 *
 * The account that deploys the contract will be granted the minter and pauser
 * roles, as well as the default admin role, which will let it grant both minter
 * and pauser roles to other accounts.
 */
contract ERC1155PresetMinterPauser is
    Context,
    AccessControlEnumerable,
    ERC1155Burnable,
    ERC1155Pausable
{
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");

    /**
     * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, and `PAUSER_ROLE` to the account that
     * deploys the contract.
     */
    constructor(string memory uri) ERC1155(uri) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());

        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(PAUSER_ROLE, _msgSender());
    }

    /**
     * @dev Creates `amount` new tokens for `to`, of token type `id`.
     *
     * See {ERC1155-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the `MINTER_ROLE`.
     */
    function mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual {
        require(
            hasRole(MINTER_ROLE, _msgSender()),
            "ERC1155PresetMinterPauser: must have minter role to mint"
        );

        _mint(to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}.
     */
    function mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual {
        require(
            hasRole(MINTER_ROLE, _msgSender()),
            "ERC1155PresetMinterPauser: must have minter role to mint"
        );

        _mintBatch(to, ids, amounts, data);
    }

    /**
     * @dev Pauses all token transfers.
     *
     * See {ERC1155Pausable} and {Pausable-_pause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function pause() public virtual {
        require(
            hasRole(PAUSER_ROLE, _msgSender()),
            "ERC1155PresetMinterPauser: must have pauser role to pause"
        );
        _pause();
    }

    /**
     * @dev Unpauses all token transfers.
     *
     * See {ERC1155Pausable} and {Pausable-_unpause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function unpause() public virtual {
        require(
            hasRole(PAUSER_ROLE, _msgSender()),
            "ERC1155PresetMinterPauser: must have pauser role to unpause"
        );
        _unpause();
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(AccessControlEnumerable, ERC1155)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

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

// File @openzeppelin/contracts/metatx/[email protected]

pragma solidity ^0.8.0;

/*
 * @dev Context variant with ERC2771 support.
 */
abstract contract ERC2771Context is Context {
    address immutable _trustedForwarder;

    constructor(address trustedForwarder) {
        _trustedForwarder = trustedForwarder;
    }

    function isTrustedForwarder(address forwarder)
        public
        view
        virtual
        returns (bool)
    {
        return forwarder == _trustedForwarder;
    }

    function _msgSender()
        internal
        view
        virtual
        override
        returns (address sender)
    {
        if (isTrustedForwarder(msg.sender)) {
            // The assembly code is more direct than the Solidity version using `abi.decode`.
            assembly {
                sender := shr(96, calldataload(sub(calldatasize(), 20)))
            }
        } else {
            return super._msgSender();
        }
    }

    function _msgData()
        internal
        view
        virtual
        override
        returns (bytes calldata)
    {
        if (isTrustedForwarder(msg.sender)) {
            return msg.data[:msg.data.length - 20];
        } else {
            return super._msgData();
        }
    }
}

// File @openzeppelin/contracts/utils/math/[email protected]

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File contracts/ArtisLifeNFT.sol

pragma solidity ^0.8.0;

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

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

contract ArtisLifeNFT is
    ERC1155PresetMinterPauser,
    ContextMixin,
    ERC2771Context
{
    using SafeMath for uint256;
    bytes32 public constant OWNER_ROLE = keccak256("OWNER_ROLE");
    uint256 public totalSupply;
    string public name;
    string public symbol;
    string public tokenURI;
    mapping(uint256 => address) public creators;
    string public uri;
    address proxyRegistryAddress;
    event NFTCreated(uint256 nftID);
    event TransferSingleEdition(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 edition,
        uint256 value
    );
    mapping(uint256 => nft_data) nftData;
    struct nft_data {
        uint256 TOTAL_SUPPLY;
        string name;
        string symbol;
        address payable creator;
        uint256 royalty;
        mapping(address => uint256) balanceOf;
        mapping(uint256 => bool) editionsMinted;
        mapping(uint256 => address) editionOwnerships;
    }

    constructor()
        ERC1155PresetMinterPauser(
            "https://us-central1-artis-life-network.cloudfunctions.net/tokenURI?id={id}"
        )
        ERC2771Context(0x207Fa8Df3a17D96Ca7EA4f2893fcdCb78a304101)
    {
        _setupRole(OWNER_ROLE, msgSender());
        tokenURI = "https://us-central1-artis-life-network.cloudfunctions.net/tokenURI?id={id}";
        uri = "https://us-central1-artis-life-network.cloudfunctions.net/tokenURI?id={id}";
        name = "ArtisLife Network";
        symbol = "ARTISNFT";
        proxyRegistryAddress = 0x207Fa8Df3a17D96Ca7EA4f2893fcdCb78a304101;
    }

    function contractURI() public pure returns (string memory) {
        return
            "https://us-central1-artis-life-network.cloudfunctions.net/contractURI";
    }

    /*
        balanceOfEdition

        Preferred balanceOf function. Returns the balance of total NFTs 
        owned by the provided account address. 
        Edition numbers are preserved.
    */
    function balanceOfEdition(
        address account,
        uint256 id,
        uint256 edition
    ) public view returns (bool) {
        return nftData[id].editionOwnerships[edition] == account;
    }

    /*
        balanceOfEditionBatch

        Preferred balanceOfBatch function. Returns a batch of the balances
        of total NFTs owned by the provide account addresses. 
        Edition numbers are preserved.
    */
    function balanceOfEditionBatch(
        address[] calldata accounts,
        uint256[] calldata ids,
        uint256[] calldata editions
    ) public view returns (bool[] memory) {
        require(
            ids.length == accounts.length,
            "ERC1155: ids and amounts length mismatch"
        );
        bool[] memory batchBalances = new bool[](accounts.length);
        for (uint256 i = 0; i < ids.length; i++) {
            batchBalances[i] = this.balanceOfEdition(
                accounts[i],
                ids[i],
                editions[i]
            );
        }
        return batchBalances;
    }

    /*
        balanceOf

        Returns the balance of total NFTs owned by the provided
        account address. Edition numbers are not returned.
    */
    function balanceOf(address account, uint256 id)
        public
        view
        override
        returns (uint256)
    {
        return nftData[id].balanceOf[account];
    }

    /*
        balanceOfBatch

        Returns a batch of the balances of total NFTs owned by the provided
        account addresses. Edition numbers are not returned.
    */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        public
        view
        override
        returns (uint256[] memory)
    {
        require(
            ids.length == accounts.length,
            "ERC1155: ids and amounts length mismatch"
        );
        uint256[] memory batchBalances = new uint256[](accounts.length);
        for (uint256 i = 0; i < ids.length; i++) {
            batchBalances[i] = this.balanceOf(accounts[i], ids[i]);
        }
        return batchBalances;
    }

    /*
        highestEdition

        Looks for the highest edition number of NFT id owned
        by the sender's address.
    */
    function highestEdition(address sender, uint256 id)
        private
        view
        returns (uint256)
    {
        for (uint256 i = nftData[id].TOTAL_SUPPLY - 1; i >= 0; i--) {
            if (nftData[id].editionOwnerships[i] == sender) return i;
        }
        revert("No editions");
    }

    /*
        createNewNFT

        Creates an NFT entry without minting any NFTs.
        Establishes name, symbol, totalSupply and creator.
    */
    function createNewNFT(
        string calldata nftName,
        string calldata nftSymbol,
        uint256 totalNFTSupply,
        address payable creator,
        uint256 royalty
    ) public virtual onlyOwner {
        nftData[totalSupply].name = nftName;
        nftData[totalSupply].symbol = nftSymbol;
        nftData[totalSupply].TOTAL_SUPPLY = totalNFTSupply;
        nftData[totalSupply].creator = creator;
        creators[totalSupply] = creator;
        nftData[totalSupply].royalty = royalty;
        emit NFTCreated(totalSupply);
        totalSupply = totalSupply.add(1);
    }

    /*
        mintFor
        
        Default mint function that requires the edition as a
        parameter. Only one address is allowed to call
        this function. Checks to see if the edition can or has
        been minted.
    */
    function mintFor(
        address to,
        uint256 id,
        uint256 amount,
        uint256 edition,
        bytes memory /*data*/
    ) public virtual onlyMinter {
        require(nftData[id].TOTAL_SUPPLY != 0, "NFT doesn't exist");
        require(nftData[id].TOTAL_SUPPLY > edition, "Edition not availble");
        require(nftData[id].editionsMinted[edition] == false, "Edition minted");
        nftData[id].editionsMinted[edition] = true;
        nftData[id].editionOwnerships[edition] = to;
        nftData[id].balanceOf[to] = nftData[id].balanceOf[to].add(1);
        emit TransferSingleEdition(msgSender(), address(0), to, id, edition, 1);
        _mint(to, id, amount, abi.encode(edition));
    }

    /*
        mintEditionBatch

        Default mintBatch function that requires the edition as
        a parameter. Only one address is allowed to call this
        function. Calls mintFor function for the entire batch.
    */
    function mintEditionBatch(
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        uint256[] calldata editions,
        bytes memory /*data*/
    ) public onlyMinter {
        for (uint256 i = 0; i < ids.length; i++) {
            mintFor(to, ids[i], amounts[i], editions[i], abi.encode(i));
        }
    }

    /*
        mint

        DISABLED. We only allowing minting through mintFor and
        mintEditionBatch.
    */
    function mint(
        address, /*to*/
        uint256, /*id*/
        uint256, /*amount*/
        bytes memory /*data*/
    ) public pure override {
        require(false, "Use 5 arg mintFor");
    }

    /*
        mintBatch

        DISABLED. We only allowing minting through mintFor and
        mintEditionBatch.
    */
    function mintBatch(
        address, /*to*/
        uint256[] calldata, /*ids*/
        uint256[] calldata, /*amounts*/
        bytes memory /*data*/
    ) public pure override {
        require(false, "Use 5 arg mintEditionBatch");
    }

    function msgValue() internal returns (uint256) {
        return msg.value;
    }

    /*
        safeEditionTransferFrom

        The prefered transfer method. If a user owns
        more than one edition, they can specify which
        edition they would like to send. Even if the user
        owns one edition, this transfer method will use
        less gas than safeTransferFrom()
    */
    function safeEditionTransferFrom(
        address sender,
        address receiver,
        uint256 id,
        uint256 amount,
        uint256 edition,
        bytes calldata data
    ) public hasBalance(id, sender) {
        require(nftData[id].editionOwnerships[edition] == sender, "Not Owner");
        emit TransferSingleEdition(
            msgSender(),
            sender,
            receiver,
            id,
            edition,
            msgValue()
        );
        nftData[id].editionOwnerships[edition] = receiver;
        nftData[id].balanceOf[sender] = nftData[id].balanceOf[sender].sub(1);
        nftData[id].balanceOf[receiver] = nftData[id].balanceOf[receiver].add(
            1
        );
        super.safeTransferFrom(sender, receiver, id, amount, data);
    }

    /*
        safeTransferFrom

        Override existing transfer function to add functionality of
        preserving edition numbers. If multiple editions are owned, the
        highest edition will be sent
    */
    function safeTransferFrom(
        address sender,
        address receiver,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) public override hasBalance(id, sender) {
        uint256 edition = highestEdition(sender, id);
        require(nftData[id].editionOwnerships[edition] == sender, "Not Owner");
        safeEditionTransferFrom(sender, receiver, id, amount, edition, data);
    }

    /*
        safeBatchEditionTransferFrom

        The prefered batchTransfer method. If a user owns
        more than one edition, they can specify which
        edition they would like to send. Even if the user
        owns one edition, this transfer method will use
        less gas than safeBatchTransferFrom()
    */
    function safeBatchEditionTransferFrom(
        address sender,
        address receiver,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        uint256[] calldata editions,
        bytes calldata data
    ) public {
        require(
            ids.length == amounts.length,
            "ERC1155: ids and amounts length mismatch"
        );
        for (uint256 i = 0; i < ids.length; i++) {
            this.safeEditionTransferFrom(
                sender,
                receiver,
                ids[i],
                amounts[i],
                editions[i],
                data
            );
        }
    }

    /*
        safeBatchTransferFrom

        Override existing batchTransfer function to add functionality of
        preserving edition numbers. If multiple editions are owned, the
        highest edition will be sent
    */
    function safeBatchTransferFrom(
        address sender,
        address receiver,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) public override {
        require(
            ids.length == amounts.length,
            "ERC1155: ids and amounts length mismatch"
        );
        for (uint256 i = 0; i < ids.length; i++) {
            this.safeTransferFrom(sender, receiver, ids[i], amounts[i], data);
        }
    }

    function burnEdition(
        address account,
        uint256 id,
        uint256 edition
    ) public {
        address operator = _msgSender();
        require(nftData[id].editionOwnerships[edition] == account, "Not owner");
        nftData[id].editionOwnerships[edition] = address(0);
        nftData[id].balanceOf[account] = nftData[id].balanceOf[account].sub(1);
        nftData[id].editionsMinted[edition] = false;
        emit TransferSingleEdition(
            operator,
            account,
            address(0),
            id,
            edition,
            1
        );
        _burn(account, id, 1);
    }

    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public override {
        require(value == 1, "ERC1155: Can only burn one at a time.");
        uint256 edition = highestEdition(account, id);
        burnEdition(account, id, edition);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public override {
        require(ids.length == values.length, "ids and values legth must match");
        for (uint256 i = 0; i < ids.length; i++) {
            burn(account, ids[i], values[i]);
        }
    }

    /*
        pause

        DISABLED. Reason: reduce contract size
    */
    function pause() public pure override {
        require(false);
    }

    /*
        unpause

        DISABLED. Reason: reduce contract size
    */
    function unpause() public pure override {
        require(false);
    }

    /*
        onlyOwner

        Function to check if the sender of the transaction is
        the owner of this contract.
    */
    modifier onlyOwner() {
        require(hasRole(OWNER_ROLE, msgSender()), "Sender not Govern");
        _;
    }

    /*
        onlyMinter

        Function to check if the sender of the transaction has
        minting priviledges.
    */
    modifier onlyMinter() {
        require(hasRole(MINTER_ROLE, msgSender()), "Sender not minter");
        _;
    }

    /*
        giveRole

        Admin function to give the farming contract minting
        rights to all NFTs. If contract is updated, admin will
        use this function to update accordingly.
    */
    function giveRole(address account) public onlyOwner {
        grantRole(MINTER_ROLE, account);
    }

    /*
        hasBalance

        Function to check if the requested account address has an
        NFT balance of the provided NFT id.
    */
    modifier hasBalance(uint256 id, address sender) {
        require(nftData[id].balanceOf[sender] > 0, "No NFTs");
        _;
    }

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-free listings.
     */
    function isApprovedForAll(address _owner, address _operator)
        public
        view
        override
        returns (bool isOperator)
    {
        // Whitelist OpenSea proxy contract for easy trading.\
        if (proxyRegistryAddress == _operator) {
            return true;
        }

        return ERC1155.isApprovedForAll(_owner, _operator);
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender()
        internal
        view
        override(ERC2771Context, Context)
        returns (address sender)
    {
        return ContextMixin.msgSender();
    }
    /**
     * This is used instead of msg.data as transactions won't be sent by the original token owner, but by OpenSea.
     */

    function _msgData()
        internal
        view
        override(ERC2771Context, Context)
        returns (bytes calldata)
    {
        return super._msgData();
    }
}

// File contracts/NFTSellingERC1155.sol

contract NFTSellingERC1155 is ERC1155Holder {
    using SafeMath for uint256;
    ArtisLifeNFT public nftObject;
    IERC20 public WETH;
    uint256 public saleID;
    bool feesActive;
    address public admin;

    // NFT ID to Sale Count
    mapping(uint256 => uint256) public currentSaleCount;

    struct nftInfo {
        bool created;
        bool active;
        bool completed;
        bool canceled;
        uint256 nftID;
        uint256 price_in_eth;
        address owner;
        uint256 fee;
    }
    mapping(uint256 => nftInfo) public nftsForSale;
    event SalePriceUpdated(uint256 saleId, uint256 price);
    event SaleCanceled(uint256 saleId);
    event NFTBought(
        uint256 saleId,
        address buyer,
        uint256 price,
        uint256 feesPaid
    );
    event NewSaleCreated(address owner, uint256 saleID, uint256 nftID);
    event SaleFeeUpdated(uint256 saleId, uint256 fee);

    constructor() {
        nftObject = ArtisLifeNFT(0xa79dF500990cBEf47c4b0b7B8c70666bd2fe389b);
        WETH = IERC20(0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619);
        admin = msg.sender;
    }

    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes memory data
    ) public override returns (bytes4) {
        require(
            nftObject.balanceOf(address(this), id) > currentSaleCount[id],
            "Only ARTISNFT Accepted."
        );
        currentSaleCount[id] = currentSaleCount[id].add(1);
        nftsForSale[saleID] = nftInfo(
            true,
            false,
            false,
            false,
            id,
            0,
            from,
            0
        );
        emit NewSaleCreated(from, saleID, id);
        saleID = saleID.add(1);
        return
            bytes4(
                keccak256(
                    "onERC1155Received(address,address,uint256,uint256,bytes)"
                )
            );
    }

    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] memory ids,
        uint256[] memory values,
        bytes memory data
    ) public override returns (bytes4) {
        require(false, "Please send one at a time.");
    }

    function buy(uint256 saleId)
        external
        saleExists(saleId)
        saleIsActive(saleId)
        saleIsNotCanceled(saleId)
    {
        uint256 salePrice = nftsForSale[saleId].price_in_eth;
        uint256 fee = nftsForSale[saleId].fee.div(100).mul(salePrice);
        salePrice = salePrice.sub(fee);
        uint256 nftID = nftsForSale[saleId].nftID;
        WETH.transferFrom(msg.sender, nftsForSale[saleId].owner, salePrice);
        nftObject.safeTransferFrom(address(this), msg.sender, nftID, 1, "0x3");
        nftsForSale[saleId].active = false;
        nftsForSale[saleId].completed = true;
        currentSaleCount[nftID] = currentSaleCount[nftID].sub(1);
        emit NFTBought(saleId, msg.sender, salePrice, fee);
    }

    function cancel(uint256 saleId)
        external
        onlySaleOwner(saleId)
        saleExists(saleId)
        saleIsNotCanceled(saleId)
    {
        uint256 nftID = nftsForSale[saleId].nftID;
        nftObject.safeTransferFrom(address(this), msg.sender, nftID, 1, "0x4");
        nftsForSale[saleId].canceled = true;
        currentSaleCount[nftID] = currentSaleCount[nftID].sub(1);
        emit SaleCanceled(saleId);
    }

    function updatePrice(uint256 saleId, uint256 price)
        external
        onlySaleOwner(saleId)
        saleExists(saleId)
        saleIsNotCompleted(saleId)
        saleIsNotCanceled(saleId)
    {
        nftsForSale[saleId].active = true;
        nftsForSale[saleId].price_in_eth = price;
        emit SalePriceUpdated(saleId, price);
    }

    function updateFee(uint256 saleId, uint256 fee)
        external
        onlyAdmin
        feesActivated
        saleExists(saleId)
        saleIsNotCanceled(saleId)
    {
        require(fee < 100, "Fee cannot be 100% or higher.");
        nftsForSale[saleId].fee = fee;
        emit SaleFeeUpdated(saleId, fee);
    }

    function collectFees() external onlyAdmin {
        WETH.transferFrom(
            address(this),
            msg.sender,
            WETH.balanceOf(address(this))
        );
    }

    function activateFees() external onlyAdmin {
        feesActive = true;
    }

    modifier onlyAdmin() {
        require(msg.sender == admin, "Not Admin.");
        _;
    }

    modifier onlySaleOwner(uint256 saleId) {
        require(msg.sender == nftsForSale[saleId].owner, "Not Owner.");
        _;
    }

    modifier saleIsActive(uint256 saleId) {
        require(nftsForSale[saleId].active == true, "Sale not active.");
        _;
    }

    modifier saleIsNotCanceled(uint256 saleId) {
        require(
            nftsForSale[saleId].canceled == false,
            "Sale has been canceled."
        );
        _;
    }

    modifier saleExists(uint256 saleId) {
        require(nftsForSale[saleId].created == true, "Sale ID not valid.");
        _;
    }

    modifier saleIsNotCompleted(uint256 saleId) {
        require(nftsForSale[saleId].completed == false, "Sale has concluded.");
        _;
    }

    modifier feesActivated() {
        require(feesActive == true, "Fees not active.");
        _;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesPaid","type":"uint256"}],"name":"NFTBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"saleID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nftID","type":"uint256"}],"name":"NewSaleCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"SaleCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"SaleFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"SalePriceUpdated","type":"event"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activateFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"currentSaleCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftObject","outputs":[{"internalType":"contract ArtisLifeNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftsForSale","outputs":[{"internalType":"bool","name":"created","type":"bool"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"bool","name":"completed","type":"bool"},{"internalType":"bool","name":"canceled","type":"bool"},{"internalType":"uint256","name":"nftID","type":"uint256"},{"internalType":"uint256","name":"price_in_eth","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"fee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"updateFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b031990811673a79df500990cbef47c4b0b7b8c70666bd2fe389b1790915560018054909116737ceb23fd6bc0add59e62ac25578270cff1b9f619179055600380543361010002610100600160a81b0319909116179055611513806100816000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806384b5978611610097578063c879657211610066578063c8796572146101f2578063d96a094a146101fa578063f23a6e611461020d578063f851a44014610220576100f5565b806384b59786146101ad578063ad5c4648146101c2578063bc197c81146101ca578063c0c09df6146101ea576100f5565b8063407d791c116100d3578063407d791c1461015f57806340e58ee514610174578063423563c81461018757806382367b2d1461019a576100f5565b806301ffc9a7146100fa5780632740c1971461012357806337d327a114610138575b600080fd5b61010d610108366004611039565b610228565b60405161011a91906111ac565b60405180910390f35b610136610131366004611091565b610255565b005b61014b610146366004611061565b610395565b60405161011a9897969594939291906111b7565b6101676103ee565b60405161011a91906113de565b610136610182366004611061565b6103f4565b610167610195366004611061565b61059f565b6101366101a8366004611091565b6105b1565b6101b56106f3565b60405161011a91906110b2565b6101b5610702565b6101dd6101d8366004610f10565b610711565b60405161011a91906111f8565b61013661072b565b610136610769565b610136610208366004611061565b610897565b6101dd61021b366004610fb6565b610b1d565b6101b5610da8565b60006001600160e01b03198216630271189760e51b148061024d575061024d82610dbc565b90505b919050565b60035461010090046001600160a01b0316331461028d5760405162461bcd60e51b815260040161028490611306565b60405180910390fd5b60035460ff1615156001146102b45760405162461bcd60e51b815260040161028490611244565b600082815260056020526040902054829060ff1615156001146102e95760405162461bcd60e51b81526004016102849061132a565b60008381526005602052604090205483906301000000900460ff16156103215760405162461bcd60e51b81526004016102849061120d565b606483106103415760405162461bcd60e51b8152600401610284906112cf565b60008481526005602052604090819020600401849055517fc1990e461c862d0f130619e2010621437b7c3c5aef23c1231fa4484dbbc4b6b890610387908690869061140b565b60405180910390a150505050565b6005602052600090815260409020805460018201546002830154600384015460049094015460ff80851695610100860482169562010000810483169563010000009091049092169391926001600160a01b039091169088565b60025481565b60008181526005602052604090206003015481906001600160a01b0316331461042f5760405162461bcd60e51b8152600401610284906113ba565b600082815260056020526040902054829060ff1615156001146104645760405162461bcd60e51b81526004016102849061132a565b60008381526005602052604090205483906301000000900460ff161561049c5760405162461bcd60e51b81526004016102849061120d565b60008481526005602052604080822060019081015492549151637921219560e11b81526001600160a01b039092169163f242432a916104e4913091339187919060040161112e565b600060405180830381600087803b1580156104fe57600080fd5b505af1158015610512573d6000803e3d6000fd5b5050506000868152600560209081526040808320805463ff00000019166301000000179055848352600490915290205461054e91506001610dd5565b6000828152600460205260409081902091909155517fbc3d8540adfcf6600ea8f790c6ed415a6aa7a1219d45ecefc5bdff014348a8b0906105909087906113de565b60405180910390a15050505050565b60046020526000908152604090205481565b60008281526005602052604090206003015482906001600160a01b031633146105ec5760405162461bcd60e51b8152600401610284906113ba565b600083815260056020526040902054839060ff1615156001146106215760405162461bcd60e51b81526004016102849061132a565b600084815260056020526040902054849062010000900460ff16156106585760405162461bcd60e51b81526004016102849061138d565b60008581526005602052604090205485906301000000900460ff16156106905760405162461bcd60e51b81526004016102849061120d565b60008681526005602052604090819020805461ff001916610100178155600201869055517fd006c5031840180875671abf2f693e0e435af57e95db66c1edbab17d0e097732906106e3908890889061140b565b60405180910390a1505050505050565b6000546001600160a01b031681565b6001546001600160a01b031681565b600060405162461bcd60e51b815260040161028490611356565b60035461010090046001600160a01b0316331461075a5760405162461bcd60e51b815260040161028490611306565b6003805460ff19166001179055565b60035461010090046001600160a01b031633146107985760405162461bcd60e51b815260040161028490611306565b6001546040516370a0823160e01b81526001600160a01b03909116906323b872dd903090339084906370a08231906107d49085906004016110b2565b60206040518083038186803b1580156107ec57600080fd5b505afa158015610800573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108249190611079565b6040518463ffffffff1660e01b8152600401610842939291906110c6565b602060405180830381600087803b15801561085c57600080fd5b505af1158015610870573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108949190611019565b50565b600081815260056020526040902054819060ff1615156001146108cc5760405162461bcd60e51b81526004016102849061132a565b600082815260056020526040902054829060ff6101009091041615156001146109075760405162461bcd60e51b81526004016102849061126e565b60008381526005602052604090205483906301000000900460ff161561093f5760405162461bcd60e51b81526004016102849061120d565b6000848152600560205260408120600281015460049091015490919061097290839061096c906064610de8565b90610df4565b905061097e8282610dd5565b60008781526005602052604090819020600180820154905460039092015492516323b872dd60e01b8152939550926001600160a01b03918216926323b872dd926109d29233929091169088906004016110c6565b602060405180830381600087803b1580156109ec57600080fd5b505af1158015610a00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a249190611019565b50600054604051637921219560e11b81526001600160a01b039091169063f242432a90610a5c903090339086906001906004016110ea565b600060405180830381600087803b158015610a7657600080fd5b505af1158015610a8a573d6000803e3d6000fd5b5050506000888152600560209081526040808320805462ffff001916620100001790558483526004909152902054610ac491506001610dd5565b6000828152600460205260409081902091909155517f91eb978bee389413e604e8d376c186389b50bd623b6f380a36527976d618bd3790610b0c9089903390879087906113e7565b60405180910390a150505050505050565b60008381526004602081905260408083205483549151627eeac760e11b815290926001600160a01b039092169162fdd58e91610b5d9130918a9101611172565b60206040518083038186803b158015610b7557600080fd5b505afa158015610b89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bad9190611079565b11610bca5760405162461bcd60e51b815260040161028490611298565b600084815260046020526040902054610be4906001610e00565b600460008681526020019081526020016000208190555060405180610100016040528060011515815260200160001515815260200160001515815260200160001515815260200185815260200160008152602001866001600160a01b03168152602001600081525060056000600254815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff02191690831515021790555060608201518160000160036101000a81548160ff0219169083151502179055506080820151816001015560a0820151816002015560c08201518160030160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060e082015181600401559050507f53d30d6806bb62668b7c318a8ddf2adcfe9dd49967a8aa2ba4a1ad0c1fe4e7fd8560025486604051610d649392919061118b565b60405180910390a1600254610d7a906001610e00565b600255507ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf9795945050505050565b60035461010090046001600160a01b031681565b6001600160e01b031981166301ffc9a760e01b14919050565b6000610de1828461149a565b9392505050565b6000610de1828461145b565b6000610de1828461147b565b6000610de18284611443565b80356001600160a01b038116811461025057600080fd5b600082601f830112610e33578081fd5b8135602067ffffffffffffffff821115610e4f57610e4f6114c7565b808202610e5d828201611419565b838152828101908684018388018501891015610e77578687fd5b8693505b85841015610e99578035835260019390930192918401918401610e7b565b50979650505050505050565b600082601f830112610eb5578081fd5b813567ffffffffffffffff811115610ecf57610ecf6114c7565b610ee2601f8201601f1916602001611419565b818152846020838601011115610ef6578283fd5b816020850160208301379081016020019190915292915050565b600080600080600060a08688031215610f27578081fd5b610f3086610e0c565b9450610f3e60208701610e0c565b9350604086013567ffffffffffffffff80821115610f5a578283fd5b610f6689838a01610e23565b94506060880135915080821115610f7b578283fd5b610f8789838a01610e23565b93506080880135915080821115610f9c578283fd5b50610fa988828901610ea5565b9150509295509295909350565b600080600080600060a08688031215610fcd578081fd5b610fd686610e0c565b9450610fe460208701610e0c565b93506040860135925060608601359150608086013567ffffffffffffffff81111561100d578182fd5b610fa988828901610ea5565b60006020828403121561102a578081fd5b81518015158114610de1578182fd5b60006020828403121561104a578081fd5b81356001600160e01b031981168114610de1578182fd5b600060208284031215611072578081fd5b5035919050565b60006020828403121561108a578081fd5b5051919050565b600080604083850312156110a3578182fd5b50508035926020909101359150565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a0608082018190526003908201526230783360e81b60c082015260e00190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a060808201819052600390820152620c1e0d60ea1b60c082015260e00190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b9715158852951515602088015293151560408701529115156060860152608085015260a08401526001600160a01b031660c083015260e08201526101000190565b6001600160e01b031991909116815260200190565b60208082526017908201527f53616c6520686173206265656e2063616e63656c65642e000000000000000000604082015260600190565b60208082526010908201526f2332b2b9903737ba1030b1ba34bb329760811b604082015260600190565b60208082526010908201526f29b0b632903737ba1030b1ba34bb329760811b604082015260600190565b60208082526017908201527f4f6e6c792041525449534e46542041636365707465642e000000000000000000604082015260600190565b6020808252601d908201527f4665652063616e6e6f742062652031303025206f72206869676865722e000000604082015260600190565b6020808252600a90820152692737ba1020b236b4b71760b11b604082015260600190565b60208082526012908201527129b0b6329024a2103737ba103b30b634b21760711b604082015260600190565b6020808252601a908201527f506c656173652073656e64206f6e6520617420612074696d652e000000000000604082015260600190565b60208082526013908201527229b0b632903430b99031b7b731b63ab232b21760691b604082015260600190565b6020808252600a90820152692737ba1027bbb732b91760b11b604082015260600190565b90815260200190565b9384526001600160a01b039290921660208401526040830152606082015260800190565b918252602082015260400190565b60405181810167ffffffffffffffff8111828210171561143b5761143b6114c7565b604052919050565b60008219821115611456576114566114b1565b500190565b60008261147657634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611495576114956114b1565b500290565b6000828210156114ac576114ac6114b1565b500390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220db5f077f2b92bdce05337e614cfd91b3958caa638524bef2dbdd2f8b7aa3d6f264736f6c63430008000033

Deployed ByteCode Sourcemap

96171:5484:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4618:299;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;100063:329;;;;;;:::i;:::-;;:::i;:::-;;96708:46;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;:::i;96316:21::-;;;:::i;:::-;;;;;;;:::i;99253:439::-;;;;;;:::i;:::-;;:::i;96424:51::-;;;;;;:::i;:::-;;:::i;99700:355::-;;;;;;:::i;:::-;;:::i;96255:29::-;;;:::i;:::-;;;;;;;:::i;96291:18::-;;;:::i;98199:278::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;100594:79::-;;;:::i;100400:186::-;;;:::i;98485:760::-;;;;;;:::i;:::-;;:::i;97328:863::-;;;;;;:::i;:::-;;:::i;96366:20::-;;;:::i;4618:299::-;4765:4;-1:-1:-1;;;;;;4807:49:0;;-1:-1:-1;;;4807:49:0;;:102;;;4873:36;4897:11;4873:23;:36::i;:::-;4787:122;;4618:299;;;;:::o;100063:329::-;100735:5;;;;;-1:-1:-1;;;;;100735:5:0;100721:10;:19;100713:42;;;;-1:-1:-1;;;100713:42:0;;;;;;;:::i;:::-;;;;;;;;;101593:10:::1;::::0;::::1;;:18;;:10:::0;:18:::1;101585:47;;;;-1:-1:-1::0;;;101585:47:0::1;;;;;;;:::i;:::-;101310:19:::2;::::0;;;:11:::2;:19;::::0;;;;:27;100191:6;;101310:27:::2;;:35;;:27:::0;:35:::2;101302:66;;;;-1:-1:-1::0;;;101302:66:0::2;;;;;;;:::i;:::-;101139:19:::3;::::0;;;:11:::3;:19;::::0;;;;:28;:19;;:28;;::::3;;;:37;101117:110;;;;-1:-1:-1::0;;;101117:110:0::3;;;;;;;:::i;:::-;100264:3:::4;100258;:9;100250:51;;;;-1:-1:-1::0;;;100250:51:0::4;;;;;;;:::i;:::-;100312:19;::::0;;;:11:::4;:19;::::0;;;;;;:23:::4;;:29:::0;;;100357:27;::::4;::::0;::::4;::::0;100324:6;;100338:3;;100357:27:::4;:::i;:::-;;;;;;;;101379:1:::3;101643::::2;100063:329:::0;;:::o;96708:46::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;96708:46:0;;;;;:::o;96316:21::-;;;;:::o;99253:439::-;100855:19;;;;:11;:19;;;;;:25;;;:19;;-1:-1:-1;;;;;100855:25:0;100841:10;:39;100833:62;;;;-1:-1:-1;;;100833:62:0;;;;;;;:::i;:::-;101310:19:::1;::::0;;;:11:::1;:19;::::0;;;;:27;99354:6;;101310:27:::1;;:35;;:27:::0;:35:::1;101302:66;;;;-1:-1:-1::0;;;101302:66:0::1;;;;;;;:::i;:::-;101139:19:::2;::::0;;;:11:::2;:19;::::0;;;;:28;:19;;:28;;::::2;;;:37;101117:110;;;;-1:-1:-1::0;;;101117:110:0::2;;;;;;;:::i;:::-;99413:13:::3;99429:19:::0;;;:11:::3;:19;::::0;;;;;:25:::3;::::0;;::::3;::::0;99465:9;;:70;;-1:-1:-1;;;99465:70:0;;-1:-1:-1;;;;;99465:9:0;;::::3;::::0;:26:::3;::::0;:70:::3;::::0;99500:4:::3;::::0;99507:10:::3;::::0;99429:25;;;99465:70:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;-1:-1:-1::0;;;99546:19:0::3;::::0;;;:11:::3;:19;::::0;;;;;;;:35;;-1:-1:-1;;99546:35:0::3;::::0;::::3;::::0;;99618:23;;;:16:::3;:23:::0;;;;;;:30:::3;::::0;-1:-1:-1;99577:4:0::3;99618:27;:30::i;:::-;99592:23;::::0;;;:16:::3;:23;::::0;;;;;;:56;;;;99664:20;::::3;::::0;::::3;::::0;99677:6;;99664:20:::3;:::i;:::-;;;;;;;;101238:1;101379::::2;100906::::1;99253:439:::0;;:::o;96424:51::-;;;;;;;;;;;;;:::o;99700:355::-;100855:19;;;;:11;:19;;;;;:25;;;:19;;-1:-1:-1;;;;;100855:25:0;100841:10;:39;100833:62;;;;-1:-1:-1;;;100833:62:0;;;;;;;:::i;:::-;101310:19:::1;::::0;;;:11:::1;:19;::::0;;;;:27;99821:6;;101310:27:::1;;:35;;:27:::0;:35:::1;101302:66;;;;-1:-1:-1::0;;;101302:66:0::1;;;;;;;:::i;:::-;101459:19:::2;::::0;;;:11:::2;:19;::::0;;;;:29;:19;;:29;;::::2;;;:38;101451:70;;;;-1:-1:-1::0;;;101451:70:0::2;;;;;;;:::i;:::-;101139:19:::3;::::0;;;:11:::3;:19;::::0;;;;:28;:19;;:28;;::::3;;;:37;101117:110;;;;-1:-1:-1::0;;;101117:110:0::3;;;;;;;:::i;:::-;99916:19:::4;::::0;;;:11:::4;:19;::::0;;;;;;:33;;-1:-1:-1;;99916:33:0::4;;;::::0;;99960:32:::4;;:40:::0;;;100016:31;::::4;::::0;::::4;::::0;99928:6;;99995:5;;100016:31:::4;:::i;:::-;;;;;;;;101532:1:::3;101379::::2;100906::::1;99700:355:::0;;;:::o;96255:29::-;;;-1:-1:-1;;;;;96255:29:0;;:::o;96291:18::-;;;-1:-1:-1;;;;;96291:18:0;;:::o;98199:278::-;98406:6;98425:44;;-1:-1:-1;;;98425:44:0;;;;;;;:::i;100594:79::-;100735:5;;;;;-1:-1:-1;;;;;100735:5:0;100721:10;:19;100713:42;;;;-1:-1:-1;;;100713:42:0;;;;;;;:::i;:::-;100648:10:::1;:17:::0;;-1:-1:-1;;100648:17:0::1;100661:4;100648:17;::::0;;100594:79::o;100400:186::-;100735:5;;;;;-1:-1:-1;;;;;100735:5:0;100721:10;:19;100713:42;;;;-1:-1:-1;;;100713:42:0;;;;;;;:::i;:::-;100453:4:::1;::::0;100538:29:::1;::::0;-1:-1:-1;;;100538:29:0;;-1:-1:-1;;;;;100453:4:0;;::::1;::::0;:17:::1;::::0;100493:4:::1;::::0;100513:10:::1;::::0;100453:4;;100538:14:::1;::::0;:29:::1;::::0;100493:4;;100538:29:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100453:125;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;100400:186::o:0;98485:760::-;101310:19;;;;:11;:19;;;;;:27;98552:6;;101310:27;;:35;;:27;:35;101302:66;;;;-1:-1:-1;;;101302:66:0;;;;;;;:::i;:::-;100980:19:::1;::::0;;;:11:::1;:19;::::0;;;;:26;98582:6;;100980:26:::1;;::::0;;::::1;;:34;;:26;:34;100972:63;;;;-1:-1:-1::0;;;100972:63:0::1;;;;;;;:::i;:::-;101139:19:::2;::::0;;;:11:::2;:19;::::0;;;;:28;:19;;:28;;::::2;;;:37;101117:110;;;;-1:-1:-1::0;;;101117:110:0::2;;;;;;;:::i;:::-;98641:17:::3;98661:19:::0;;;:11:::3;:19;::::0;;;;:32:::3;::::0;::::3;::::0;98718:23:::3;::::0;;::::3;::::0;98661:32;;98641:17;98718:47:::3;::::0;98661:32;;98718::::3;::::0;98746:3:::3;98718:27;:32::i;:::-;:36:::0;::::3;:47::i;:::-;98704:61:::0;-1:-1:-1;98788:18:0::3;:9:::0;98704:61;98788:13:::3;:18::i;:::-;98817:13;98833:19:::0;;;:11:::3;:19;::::0;;;;;;:25:::3;::::0;;::::3;::::0;98869:4;;98899:25:::3;::::0;;::::3;::::0;98869:67;;-1:-1:-1;;;98869:67:0;;98776:30;;-1:-1:-1;98833:25:0;-1:-1:-1;;;;;98869:4:0;;::::3;::::0;:17:::3;::::0;:67:::3;::::0;98887:10:::3;::::0;98899:25;;::::3;::::0;98776:30;;98869:67:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;98947:9:0::3;::::0;:70:::3;::::0;-1:-1:-1;;;98947:70:0;;-1:-1:-1;;;;;98947:9:0;;::::3;::::0;:26:::3;::::0;:70:::3;::::0;98982:4:::3;::::0;98989:10:::3;::::0;99001:5;;98947:9;;:70:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;-1:-1:-1::0;;;99057:5:0::3;99028:19:::0;;;:11:::3;:19;::::0;;;;;;;:34;;-1:-1:-1;;99073:36:0;;::::3;::::0;;99146:23;;;:16:::3;:23:::0;;;;;;:30:::3;::::0;-1:-1:-1;99028:26:0::3;99146:27;:30::i;:::-;99120:23;::::0;;;:16:::3;:23;::::0;;;;;;:56;;;;99192:45;::::3;::::0;::::3;::::0;99202:6;;99210:10:::3;::::0;99222:9;;99233:3;;99192:45:::3;:::i;:::-;;;;;;;;101238:1;;;101046::::2;101379::::1;98485:760:::0;;:::o;97328:863::-;97510:6;97592:20;;;:16;:20;;;;;;;;;97551:9;;:38;;-1:-1:-1;;;97551:38:0;;97592:20;;-1:-1:-1;;;;;97551:9:0;;;;:19;;:38;;97579:4;;97609:2;;97551:38;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:61;97529:134;;;;-1:-1:-1;;;97529:134:0;;;;;;;:::i;:::-;97697:20;;;;:16;:20;;;;;;:27;;97722:1;97697:24;:27::i;:::-;97674:16;:20;97691:2;97674:20;;;;;;;;;;;:50;;;;97757:165;;;;;;;;97779:4;97757:165;;;;;;97798:5;97757:165;;;;;;97818:5;97757:165;;;;;;97838:5;97757:165;;;;;;97858:2;97757:165;;;;97875:1;97757:165;;;;97891:4;-1:-1:-1;;;;;97757:165:0;;;;;97910:1;97757:165;;;97735:11;:19;97747:6;;97735:19;;;;;;;;;;;:187;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;97735:187:0;;;;;-1:-1:-1;;;;;97735:187:0;;;;;;;;;;;;;;;;;97938:32;97953:4;97959:6;;97967:2;97938:32;;;;;;;;:::i;:::-;;;;;;;;97990:6;;:13;;98001:1;97990:10;:13::i;:::-;97981:6;:22;-1:-1:-1;98059:109:0;97328:863;;;;;;;:::o;96366:20::-;;;;;;-1:-1:-1;;;;;96366:20:0;;:::o;4119:207::-;-1:-1:-1;;;;;;4278:40:0;;-1:-1:-1;;;4278:40:0;4119:207;;;:::o;76049:98::-;76107:7;76134:5;76138:1;76134;:5;:::i;:::-;76127:12;76049:98;-1:-1:-1;;;76049:98:0:o;76805:::-;76863:7;76890:5;76894:1;76890;:5;:::i;76406:98::-;76464:7;76491:5;76495:1;76491;:5;:::i;75668:98::-;75726:7;75753:5;75757:1;75753;:5;:::i;14:175:1:-;84:20;;-1:-1:-1;;;;;133:31:1;;123:42;;113:2;;179:1;176;169:12;194:749;;307:3;300:4;292:6;288:17;284:27;274:2;;329:5;322;315:20;274:2;369:6;356:20;395:4;418:18;414:2;411:26;408:2;;;440:18;;:::i;:::-;487:2;483;479:11;510:27;533:2;529;525:11;510:27;:::i;:::-;571:15;;;602:12;;;;634:15;;;668;;;664:24;;661:33;-1:-1:-1;658:2:1;;;711:5;704;697:20;658:2;737:5;728:14;;751:163;765:2;762:1;759:9;751:163;;;822:17;;810:30;;783:1;776:9;;;;;860:12;;;;892;;751:163;;;-1:-1:-1;932:5:1;264:679;-1:-1:-1;;;;;;;264:679:1:o;948:551::-;;1045:3;1038:4;1030:6;1026:17;1022:27;1012:2;;1067:5;1060;1053:20;1012:2;1107:6;1094:20;1133:18;1129:2;1126:26;1123:2;;;1155:18;;:::i;:::-;1199:54;1241:2;1222:13;;-1:-1:-1;;1218:27:1;1247:4;1214:38;1199:54;:::i;:::-;1278:2;1269:7;1262:19;1324:3;1317:4;1312:2;1304:6;1300:15;1296:26;1293:35;1290:2;;;1345:5;1338;1331:20;1290:2;1414;1407:4;1399:6;1395:17;1388:4;1379:7;1375:18;1362:55;1437:16;;;1455:4;1433:27;1426:42;;;;1441:7;1002:497;-1:-1:-1;;1002:497:1:o;1504:1001::-;;;;;;1743:3;1731:9;1722:7;1718:23;1714:33;1711:2;;;1765:6;1757;1750:22;1711:2;1793:31;1814:9;1793:31;:::i;:::-;1783:41;;1843:40;1879:2;1868:9;1864:18;1843:40;:::i;:::-;1833:50;;1934:2;1923:9;1919:18;1906:32;1957:18;1998:2;1990:6;1987:14;1984:2;;;2019:6;2011;2004:22;1984:2;2047:67;2106:7;2097:6;2086:9;2082:22;2047:67;:::i;:::-;2037:77;;2167:2;2156:9;2152:18;2139:32;2123:48;;2196:2;2186:8;2183:16;2180:2;;;2217:6;2209;2202:22;2180:2;2245:69;2306:7;2295:8;2284:9;2280:24;2245:69;:::i;:::-;2235:79;;2367:3;2356:9;2352:19;2339:33;2323:49;;2397:2;2387:8;2384:16;2381:2;;;2418:6;2410;2403:22;2381:2;;2446:53;2491:7;2480:8;2469:9;2465:24;2446:53;:::i;:::-;2436:63;;;1701:804;;;;;;;;:::o;2510:632::-;;;;;;2699:3;2687:9;2678:7;2674:23;2670:33;2667:2;;;2721:6;2713;2706:22;2667:2;2749:31;2770:9;2749:31;:::i;:::-;2739:41;;2799:40;2835:2;2824:9;2820:18;2799:40;:::i;:::-;2789:50;;2886:2;2875:9;2871:18;2858:32;2848:42;;2937:2;2926:9;2922:18;2909:32;2899:42;;2992:3;2981:9;2977:19;2964:33;3020:18;3012:6;3009:30;3006:2;;;3057:6;3049;3042:22;3006:2;3085:51;3128:7;3119:6;3108:9;3104:22;3085:51;:::i;3147:297::-;;3267:2;3255:9;3246:7;3242:23;3238:32;3235:2;;;3288:6;3280;3273:22;3235:2;3325:9;3319:16;3378:5;3371:13;3364:21;3357:5;3354:32;3344:2;;3405:6;3397;3390:22;3449:306;;3560:2;3548:9;3539:7;3535:23;3531:32;3528:2;;;3581:6;3573;3566:22;3528:2;3612:23;;-1:-1:-1;;;;;;3664:32:1;;3654:43;;3644:2;;3716:6;3708;3701:22;3760:190;;3872:2;3860:9;3851:7;3847:23;3843:32;3840:2;;;3893:6;3885;3878:22;3840:2;-1:-1:-1;3921:23:1;;3830:120;-1:-1:-1;3830:120:1:o;3955:194::-;;4078:2;4066:9;4057:7;4053:23;4049:32;4046:2;;;4099:6;4091;4084:22;4046:2;-1:-1:-1;4127:16:1;;4036:113;-1:-1:-1;4036:113:1:o;4154:258::-;;;4283:2;4271:9;4262:7;4258:23;4254:32;4251:2;;;4304:6;4296;4289:22;4251:2;-1:-1:-1;;4332:23:1;;;4402:2;4387:18;;;4374:32;;-1:-1:-1;4241:171:1:o;4417:203::-;-1:-1:-1;;;;;4581:32:1;;;;4563:51;;4551:2;4536:18;;4518:102::o;4625:375::-;-1:-1:-1;;;;;4883:15:1;;;4865:34;;4935:15;;;;4930:2;4915:18;;4908:43;4982:2;4967:18;;4960:34;;;;4815:2;4800:18;;4782:218::o;5005:678::-;-1:-1:-1;;;;;5364:15:1;;;5346:34;;5416:15;;;;5411:2;5396:18;;5389:43;5463:2;5448:18;;5441:34;5506:2;5491:18;;5484:34;;;;5326:3;5549;5534:19;;5527:32;;;5596:1;5575:19;;;5568:30;-1:-1:-1;;;5629:3:1;5614:19;;5607:34;5673:3;5658:19;;5298:385::o;5688:678::-;-1:-1:-1;;;;;6047:15:1;;;6029:34;;6099:15;;;;6094:2;6079:18;;6072:43;6146:2;6131:18;;6124:34;6189:2;6174:18;;6167:34;;;;6009:3;6232;6217:19;;6210:32;;;6279:1;6258:19;;;6251:30;-1:-1:-1;;;6312:3:1;6297:19;;6290:34;6356:3;6341:19;;5981:385::o;6371:274::-;-1:-1:-1;;;;;6563:32:1;;;;6545:51;;6627:2;6612:18;;6605:34;6533:2;6518:18;;6500:145::o;6650:345::-;-1:-1:-1;;;;;6870:32:1;;;;6852:51;;6934:2;6919:18;;6912:34;;;;6977:2;6962:18;;6955:34;6840:2;6825:18;;6807:188::o;7000:187::-;7165:14;;7158:22;7140:41;;7128:2;7113:18;;7095:92::o;7192:745::-;7536:14;;7529:22;7511:41;;7595:14;;7588:22;7583:2;7568:18;;7561:50;7654:14;;7647:22;7642:2;7627:18;;7620:50;7713:14;;7706:22;7701:2;7686:18;;7679:50;7760:3;7745:19;;7738:35;7804:3;7789:19;;7782:35;-1:-1:-1;;;;;7854:32:1;7848:3;7833:19;;7826:61;7918:3;7903:19;;7896:35;7498:3;7483:19;;7465:472::o;7942:202::-;-1:-1:-1;;;;;;8104:33:1;;;;8086:52;;8074:2;8059:18;;8041:103::o;8600:347::-;8802:2;8784:21;;;8841:2;8821:18;;;8814:30;8880:25;8875:2;8860:18;;8853:53;8938:2;8923:18;;8774:173::o;8952:340::-;9154:2;9136:21;;;9193:2;9173:18;;;9166:30;-1:-1:-1;;;9227:2:1;9212:18;;9205:46;9283:2;9268:18;;9126:166::o;9297:340::-;9499:2;9481:21;;;9538:2;9518:18;;;9511:30;-1:-1:-1;;;9572:2:1;9557:18;;9550:46;9628:2;9613:18;;9471:166::o;9642:347::-;9844:2;9826:21;;;9883:2;9863:18;;;9856:30;9922:25;9917:2;9902:18;;9895:53;9980:2;9965:18;;9816:173::o;9994:353::-;10196:2;10178:21;;;10235:2;10215:18;;;10208:30;10274:31;10269:2;10254:18;;10247:59;10338:2;10323:18;;10168:179::o;10352:334::-;10554:2;10536:21;;;10593:2;10573:18;;;10566:30;-1:-1:-1;;;10627:2:1;10612:18;;10605:40;10677:2;10662:18;;10526:160::o;10691:342::-;10893:2;10875:21;;;10932:2;10912:18;;;10905:30;-1:-1:-1;;;10966:2:1;10951:18;;10944:48;11024:2;11009:18;;10865:168::o;11038:350::-;11240:2;11222:21;;;11279:2;11259:18;;;11252:30;11318:28;11313:2;11298:18;;11291:56;11379:2;11364:18;;11212:176::o;11393:343::-;11595:2;11577:21;;;11634:2;11614:18;;;11607:30;-1:-1:-1;;;11668:2:1;11653:18;;11646:49;11727:2;11712:18;;11567:169::o;11741:334::-;11943:2;11925:21;;;11982:2;11962:18;;;11955:30;-1:-1:-1;;;12016:2:1;12001:18;;11994:40;12066:2;12051:18;;11915:160::o;12080:177::-;12226:25;;;12214:2;12199:18;;12181:76::o;12262:417::-;12493:25;;;-1:-1:-1;;;;;12554:32:1;;;;12549:2;12534:18;;12527:60;12618:2;12603:18;;12596:34;12661:2;12646:18;;12639:34;12480:3;12465:19;;12447:232::o;12684:248::-;12858:25;;;12914:2;12899:18;;12892:34;12846:2;12831:18;;12813:119::o;12937:251::-;13007:2;13001:9;13037:17;;;13084:18;13069:34;;13105:22;;;13066:62;13063:2;;;13131:18;;:::i;:::-;13167:2;13160:22;12981:207;;-1:-1:-1;12981:207:1:o;13193:128::-;;13264:1;13260:6;13257:1;13254:13;13251:2;;;13270:18;;:::i;:::-;-1:-1:-1;13306:9:1;;13241:80::o;13326:217::-;;13392:1;13382:2;;-1:-1:-1;;;13417:31:1;;13471:4;13468:1;13461:15;13499:4;13424:1;13489:15;13382:2;-1:-1:-1;13528:9:1;;13372:171::o;13548:168::-;;13654:1;13650;13646:6;13642:14;13639:1;13636:21;13631:1;13624:9;13617:17;13613:45;13610:2;;;13661:18;;:::i;:::-;-1:-1:-1;13701:9:1;;13600:116::o;13721:125::-;;13789:1;13786;13783:8;13780:2;;;13794:18;;:::i;:::-;-1:-1:-1;13831:9:1;;13770:76::o;13851:127::-;13912:10;13907:3;13903:20;13900:1;13893:31;13943:4;13940:1;13933:15;13967:4;13964:1;13957:15;13983:127;14044:10;14039:3;14035:20;14032:1;14025:31;14075:4;14072:1;14065:15;14099:4;14096:1;14089:15

Swarm Source

ipfs://db5f077f2b92bdce05337e614cfd91b3958caa638524bef2dbdd2f8b7aa3d6f2
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.