Mumbai Testnet

Contract

0xa88d8C1854152882A4F487423d75a361D6a07E5C

Overview

MATIC Balance

Token Holdings

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Mint368688142023-06-15 6:46:26341 days ago1686811586IN
0xa88d8C18...1D6a07E5C
0 MATIC0.00009171.00000001
Mint368484482023-06-14 18:43:24341 days ago1686768204IN
0xa88d8C18...1D6a07E5C
0 MATIC0.00009171.00000001
Mint368484012023-06-14 18:41:44341 days ago1686768104IN
0xa88d8C18...1D6a07E5C
0 MATIC0.0082536390.00000001
Mint368482632023-06-14 18:36:50341 days ago1686767810IN
0xa88d8C18...1D6a07E5C
0 MATIC0.0082536390.00000001
Mint368481622023-06-14 18:33:16341 days ago1686767596IN
0xa88d8C18...1D6a07E5C
0 MATIC0.000183412.00000001
Mint368481332023-06-14 18:32:14341 days ago1686767534IN
0xa88d8C18...1D6a07E5C
0 MATIC0.0082536390.00000001
0x61014060368454662023-06-14 16:57:44341 days ago1686761864IN
 Create: PatrickInTheGym
0 MATIC0.004191082

Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PatrickInTheGym

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at mumbai.polygonscan.com on 2023-06-14
*/

// File: @chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol


pragma solidity ^0.8.15;

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness. It ensures 2 things:
 * @dev 1. The fulfillment came from the VRFCoordinator
 * @dev 2. The consumer contract implements fulfillRandomWords.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constructor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash). Create subscription, fund it
 * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface
 * @dev subscription management functions).
 * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations,
 * @dev callbackGasLimit, numWords),
 * @dev see (VRFCoordinatorInterface for a description of the arguments).
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomWords method.
 *
 * @dev The randomness argument to fulfillRandomWords is a set of random words
 * @dev generated from your requestId and the blockHash of the request.
 *
 * @dev If your contract could have concurrent requests open, you can use the
 * @dev requestId returned from requestRandomWords to track which response is associated
 * @dev with which randomness request.
 * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ.
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request. It is for this reason that
 * @dev that you can signal to an oracle you'd like them to wait longer before
 * @dev responding to the request (however this is not enforced in the contract
 * @dev and so remains effective only in the case of unmodified oracle software).
 */
abstract contract VRFConsumerBaseV2 {
  error OnlyCoordinatorCanFulfill(address have, address want);
  address private immutable vrfCoordinator;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   */
  constructor(address _vrfCoordinator) {
    vrfCoordinator = _vrfCoordinator;
  }

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomWords the VRF output expanded to the requested number of words
   */
  function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual;

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external {
    if (msg.sender != vrfCoordinator) {
      revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator);
    }
    fulfillRandomWords(requestId, randomWords);
  }
}

// File: @chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol


pragma solidity ^0.8.0;

interface VRFCoordinatorV2Interface {
  /**
   * @notice Get configuration relevant for making requests
   * @return minimumRequestConfirmations global min for request confirmations
   * @return maxGasLimit global max for request gas limit
   * @return s_provingKeyHashes list of registered key hashes
   */
  function getRequestConfig()
    external
    view
    returns (
      uint16,
      uint32,
      bytes32[] memory
    );

  /**
   * @notice Request a set of random words.
   * @param keyHash - Corresponds to a particular oracle job which uses
   * that key for generating the VRF proof. Different keyHash's have different gas price
   * ceilings, so you can select a specific one to bound your maximum per request cost.
   * @param subId  - The ID of the VRF subscription. Must be funded
   * with the minimum subscription balance required for the selected keyHash.
   * @param minimumRequestConfirmations - How many blocks you'd like the
   * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS
   * for why you may want to request more. The acceptable range is
   * [minimumRequestBlockConfirmations, 200].
   * @param callbackGasLimit - How much gas you'd like to receive in your
   * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords
   * may be slightly less than this amount because of gas used calling the function
   * (argument decoding etc.), so you may need to request slightly more than you expect
   * to have inside fulfillRandomWords. The acceptable range is
   * [0, maxGasLimit]
   * @param numWords - The number of uint256 random values you'd like to receive
   * in your fulfillRandomWords callback. Note these numbers are expanded in a
   * secure way by the VRFCoordinator from a single random value supplied by the oracle.
   * @return requestId - A unique identifier of the request. Can be used to match
   * a request to a response in fulfillRandomWords.
   */
  function requestRandomWords(
    bytes32 keyHash,
    uint64 subId,
    uint16 minimumRequestConfirmations,
    uint32 callbackGasLimit,
    uint32 numWords
  ) external returns (uint256 requestId);

  /**
   * @notice Create a VRF subscription.
   * @return subId - A unique subscription id.
   * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer.
   * @dev Note to fund the subscription, use transferAndCall. For example
   * @dev  LINKTOKEN.transferAndCall(
   * @dev    address(COORDINATOR),
   * @dev    amount,
   * @dev    abi.encode(subId));
   */
  function createSubscription() external returns (uint64 subId);

  /**
   * @notice Get a VRF subscription.
   * @param subId - ID of the subscription
   * @return balance - LINK balance of the subscription in juels.
   * @return reqCount - number of requests for this subscription, determines fee tier.
   * @return owner - owner of the subscription.
   * @return consumers - list of consumer address which are able to use this subscription.
   */
  function getSubscription(uint64 subId)
    external
    view
    returns (
      uint96 balance,
      uint64 reqCount,
      address owner,
      address[] memory consumers
    );

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @param newOwner - proposed new owner of the subscription
   */
  function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external;

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @dev will revert if original owner of subId has
   * not requested that msg.sender become the new owner.
   */
  function acceptSubscriptionOwnerTransfer(uint64 subId) external;

  /**
   * @notice Add a consumer to a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - New consumer which can use the subscription
   */
  function addConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Remove a consumer from a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - Consumer to remove from the subscription
   */
  function removeConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Cancel a subscription
   * @param subId - ID of the subscription
   * @param to - Where to send the remaining LINK to
   */
  function cancelSubscription(uint64 subId, address to) external;

  /*
   * @notice Check to see if there exists a request commitment consumers
   * for all consumers and keyhashes for a given sub.
   * @param subId - ID of the subscription
   * @return true if there exists at least one unfulfilled request for the subscription, false
   * otherwise.
   */
  function pendingRequestExists(uint64 subId) external view returns (bool);
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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/IERC1155Receiver.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

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.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

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

// File: @openzeppelin/contracts/token/ERC1155/IERC1155.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol)

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 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/IERC1155MetadataURI.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

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/token/ERC1155/ERC1155.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/ERC1155.sol)

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: address zero is not a valid owner");
        return _balances[id][account];
    }

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

// File: @openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;


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

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

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

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    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);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/extensions/ERC1155Burnable.sol)

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 token owner or 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 token owner or approved"
        );

        _burnBatch(account, ids, values);
    }
}

// File: contracts/nftvrf.sol


pragma solidity ^0.8.15;





//Chainlink VRF imports



contract PatrickInTheGym is
    ERC1155,
    ERC1155Burnable,
    Ownable,
    ERC1155Supply,
    VRFConsumerBaseV2
{
    //Contract Variables and events
    mapping(address => bool) public _minted;
    string public name = "Patrick Through VRF";
    mapping(uint256 => address) public _requestIdToMinter;
    event RequestInitalized(uint256 indexed requestId, address indexed minter);
    event NftMinted(uint256 indexed tokenID, address indexed minter);

    //Chainlink Variables
    VRFCoordinatorV2Interface private immutable CoordinatorInterface;
    uint64 private immutable _subscriptionId;
    address private immutable _vrfCoordinatorV2Address;
    bytes32 keyHash = 0x4b09e658ed251bcafeebbc69400383d49f344ace09b9576fe248bb02c003fe9f;
    uint32 callbackGasLimit = 200000;
    uint16 blockConfirmations = 10;
    uint32 numWords = 1;

    constructor(
        uint64 subscriptionId,
        address vrfCoordinatorV2Address
    )
        ERC1155("ipfs://QmXN7twhiJF7pSttkvqxfok9o5p1QWJeCbwRTZvZ5RCzvz/{id}.json")
        VRFConsumerBaseV2(vrfCoordinatorV2Address)
    {
        _subscriptionId = subscriptionId;
        _vrfCoordinatorV2Address= vrfCoordinatorV2Address;
        CoordinatorInterface = VRFCoordinatorV2Interface(vrfCoordinatorV2Address);
    }

    function mint() public returns (uint256 requestId) {
        require(!_minted[msg.sender], "You can only mint once");

        //Calling requestRandomWords from the coordinator contract
        requestId = CoordinatorInterface.requestRandomWords(
            keyHash,
            _subscriptionId,
            blockConfirmations,
            callbackGasLimit,
            numWords
        );

        // map the caller to their respective requestIDs.
        _requestIdToMinter[requestId] = msg.sender;

        // emit an event
        emit RequestInitalized(requestId, msg.sender);
    }

    function fulfillRandomWords(
        uint256 requestId,
        uint256[] memory randomWords
    ) internal override {
        // get the minter address
        address minter = _requestIdToMinter[requestId];

        // To generate a random number between 1 and 100 inclusive
        uint256 randomNumber = (randomWords[0] % 100) + 1;

        uint256 tokenId;

        //manipulate the random number to get the tokenId with a variable probability
        if(randomNumber == 100){
            tokenId = 1;
        } else if(randomNumber % 3 == 0) {
            tokenId = 2;
        } else {
            tokenId = 3;
        }
        
        // Updating the mapping
        _minted[minter] = true;

        // Finally mint the token
        _mint(minter, tokenId, 1, "");

        // emit an event
        emit NftMinted(tokenId, minter);
    }

    // The following functions are overrides required by Solidity.

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

Contract ABI

[{"inputs":[{"internalType":"uint64","name":"subscriptionId","type":"uint64"},{"internalType":"address","name":"vrfCoordinatorV2Address","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":true,"internalType":"address","name":"minter","type":"address"}],"name":"NftMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":true,"internalType":"address","name":"minter","type":"address"}],"name":"RequestInitalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_minted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_requestIdToMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"requestId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

61014060405260136101009081527f5061747269636b205468726f75676820565246000000000000000000000000006101205260069062000041908262000215565b507f4b09e658ed251bcafeebbc69400383d49f344ace09b9576fe248bb02c003fe9f600855600980546001600160501b0319166601000a00030d401790553480156200008c57600080fd5b506040516200258d3803806200258d833981016040819052620000af91620002e1565b806040518060600160405280603f81526020016200254e603f9139620000d5816200010c565b50620000e1336200011e565b6001600160a01b039081166080526001600160401b0390921660c0521660e081905260a05262000336565b60026200011a828262000215565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200019b57607f821691505b602082108103620001bc57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021057600081815260208120601f850160051c81016020861015620001eb5750805b601f850160051c820191505b818110156200020c57828155600101620001f7565b5050505b505050565b81516001600160401b0381111562000231576200023162000170565b620002498162000242845462000186565b84620001c2565b602080601f831160018114620002815760008415620002685750858301515b600019600386901b1c1916600185901b1785556200020c565b600085815260208120601f198616915b82811015620002b25788860151825594840194600190910190840162000291565b5085821015620002d15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008060408385031215620002f557600080fd5b82516001600160401b03811681146200030d57600080fd5b60208401519092506001600160a01b03811681146200032b57600080fd5b809150509250929050565b60805160a05160c05160e0516121da620003746000396000505060006105d1015260006106270152600081816106f7015261073901526121da6000f3fe608060405234801561001057600080fd5b506004361061012b5760003560e01c8063715018a6116100ad578063bd85b03911610071578063bd85b039146102b2578063e985e9c5146102d2578063f242432a1461030e578063f2fde38b14610321578063f5298aca1461033457600080fd5b8063715018a6146102265780637de77ecc1461022e5780638da5cb5b14610251578063a22cb46514610276578063a6ed53be1461028957600080fd5b80631fe543e3116100f45780631fe543e3146101a95780632eb2c2d6146101be5780634e1273f4146101d15780634f558e79146101f15780636b20c4541461021357600080fd5b8062fdd58e1461013057806301ffc9a71461015657806306fdde03146101795780630e89341c1461018e5780631249c58b146101a1575b600080fd5b61014361013e366004611797565b610347565b6040519081526020015b60405180910390f35b6101696101643660046117d7565b6103e0565b604051901515815260200161014d565b610181610430565b60405161014d9190611841565b61018161019c366004611854565b6104be565b610143610552565b6101bc6101b7366004611945565b6106ec565b005b6101bc6101cc366004611a00565b610774565b6101e46101df366004611aaa565b6107c0565b60405161014d9190611ba6565b6101696101ff366004611854565b600090815260046020526040902054151590565b6101bc610221366004611bb9565b6108ea565b6101bc610932565b61016961023c366004611c2d565b60056020526000908152604090205460ff1681565b6003546001600160a01b03165b6040516001600160a01b03909116815260200161014d565b6101bc610284366004611c48565b610946565b61025e610297366004611854565b6007602052600090815260409020546001600160a01b031681565b6101436102c0366004611854565b60009081526004602052604090205490565b6101696102e0366004611c84565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6101bc61031c366004611cb7565b610951565b6101bc61032f366004611c2d565b610996565b6101bc610342366004611d1c565b610a0f565b60006001600160a01b0383166103b75760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061041157506001600160e01b031982166303a24d0760e21b145b806103da57506301ffc9a760e01b6001600160e01b03198316146103da565b6006805461043d90611d4f565b80601f016020809104026020016040519081016040528092919081815260200182805461046990611d4f565b80156104b65780601f1061048b576101008083540402835291602001916104b6565b820191906000526020600020905b81548152906001019060200180831161049957829003601f168201915b505050505081565b6060600280546104cd90611d4f565b80601f01602080910402602001604051908101604052809291908181526020018280546104f990611d4f565b80156105465780601f1061051b57610100808354040283529160200191610546565b820191906000526020600020905b81548152906001019060200180831161052957829003601f168201915b50505050509050919050565b3360009081526005602052604081205460ff16156105ab5760405162461bcd60e51b8152602060048201526016602482015275596f752063616e206f6e6c79206d696e74206f6e636560501b60448201526064016103ae565b6008546009546040516305d3b1d360e41b8152600481019290925267ffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000166024830152640100000000810461ffff16604483015263ffffffff808216606484015266010000000000009091041660848201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690635d3b1d309060a4016020604051808303816000875af1158015610678573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069c9190611d89565b60008181526007602052604080822080546001600160a01b0319163390811790915590519293509183917f852da21b7a2e77c5c9947379e09de40f832f6c84d9263e9424a26db296c2c0e291a390565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107665760405163073e64fd60e21b81523360048201526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001660248201526044016103ae565b6107708282610a52565b5050565b6001600160a01b038516331480610790575061079085336102e0565b6107ac5760405162461bcd60e51b81526004016103ae90611da2565b6107b98585858585610b51565b5050505050565b606081518351146108255760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016103ae565b6000835167ffffffffffffffff8111156108415761084161186d565b60405190808252806020026020018201604052801561086a578160200160208202803683370190505b50905060005b84518110156108e2576108b585828151811061088e5761088e611df0565b60200260200101518583815181106108a8576108a8611df0565b6020026020010151610347565b8282815181106108c7576108c7611df0565b60209081029190910101526108db81611e1c565b9050610870565b509392505050565b6001600160a01b038316331480610906575061090683336102e0565b6109225760405162461bcd60e51b81526004016103ae90611da2565b61092d838383610cfb565b505050565b61093a610e98565b6109446000610ef2565b565b610770338383610f44565b6001600160a01b03851633148061096d575061096d85336102e0565b6109895760405162461bcd60e51b81526004016103ae90611da2565b6107b98585858585611024565b61099e610e98565b6001600160a01b038116610a035760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103ae565b610a0c81610ef2565b50565b6001600160a01b038316331480610a2b5750610a2b83336102e0565b610a475760405162461bcd60e51b81526004016103ae90611da2565b61092d83838361115c565b60008281526007602052604081205482516001600160a01b03909116919060649084908390610a8357610a83611df0565b6020026020010151610a959190611e35565b610aa0906001611e57565b9050600081606403610ab457506001610ad2565b610abf600383611e35565b600003610ace57506002610ad2565b5060035b6001600160a01b0383166000908152600560209081526040808320805460ff191660019081179091558151928301909152918152610b14918591849190611279565b6040516001600160a01b0384169082907f769eff512f395b679667e0062a0e31dad5d22dbc7e6b87f16c3de7e85e66346090600090a35050505050565b8151835114610b725760405162461bcd60e51b81526004016103ae90611e6a565b6001600160a01b038416610b985760405162461bcd60e51b81526004016103ae90611eb2565b33610ba7818787878787611393565b60005b8451811015610c8d576000858281518110610bc757610bc7611df0565b602002602001015190506000858381518110610be557610be5611df0565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610c355760405162461bcd60e51b81526004016103ae90611ef7565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610c72908490611e57565b9250508190555050505080610c8690611e1c565b9050610baa565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610cdd929190611f41565b60405180910390a4610cf38187878787876113a1565b505050505050565b6001600160a01b038316610d215760405162461bcd60e51b81526004016103ae90611f6f565b8051825114610d425760405162461bcd60e51b81526004016103ae90611e6a565b6000339050610d6581856000868660405180602001604052806000815250611393565b60005b8351811015610e2a576000848281518110610d8557610d85611df0565b602002602001015190506000848381518110610da357610da3611df0565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015610df35760405162461bcd60e51b81526004016103ae90611fb2565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580610e2281611e1c565b915050610d68565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051610e7b929190611f41565b60405180910390a460408051602081019091526000905250505050565b6003546001600160a01b031633146109445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103ae565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603610fb75760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016103ae565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03841661104a5760405162461bcd60e51b81526004016103ae90611eb2565b336000611056856114fc565b90506000611063856114fc565b9050611073838989858589611393565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156110b45760405162461bcd60e51b81526004016103ae90611ef7565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906110f1908490611e57565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611151848a8a8a8a8a611547565b505050505050505050565b6001600160a01b0383166111825760405162461bcd60e51b81526004016103ae90611f6f565b33600061118e846114fc565b9050600061119b846114fc565b90506111bb83876000858560405180602001604052806000815250611393565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156111fc5760405162461bcd60e51b81526004016103ae90611fb2565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090525b50505050505050565b6001600160a01b0384166112d95760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016103ae565b3360006112e5856114fc565b905060006112f2856114fc565b905061130383600089858589611393565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290611333908490611e57565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461127083600089898989611547565b610cf3868686868686611602565b6001600160a01b0384163b15610cf35760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906113e59089908990889088908890600401611ff6565b6020604051808303816000875af1925050508015611420575060408051601f3d908101601f1916820190925261141d91810190612054565b60015b6114cc5761142c612071565b806308c379a003611465575061144061208d565b8061144b5750611467565b8060405162461bcd60e51b81526004016103ae9190611841565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016103ae565b6001600160e01b0319811663bc197c8160e01b146112705760405162461bcd60e51b81526004016103ae90612117565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061153657611536611df0565b602090810291909101015292915050565b6001600160a01b0384163b15610cf35760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061158b908990899088908890889060040161215f565b6020604051808303816000875af19250505080156115c6575060408051601f3d908101601f191682019092526115c391810190612054565b60015b6115d25761142c612071565b6001600160e01b0319811663f23a6e6160e01b146112705760405162461bcd60e51b81526004016103ae90612117565b6001600160a01b0385166116895760005b83518110156116875782818151811061162e5761162e611df0565b60200260200101516004600086848151811061164c5761164c611df0565b6020026020010151815260200190815260200160002060008282546116719190611e57565b90915550611680905081611e1c565b9050611613565b505b6001600160a01b038416610cf35760005b83518110156112705760008482815181106116b7576116b7611df0565b6020026020010151905060008483815181106116d5576116d5611df0565b60200260200101519050600060046000848152602001908152602001600020549050818110156117585760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b60648201526084016103ae565b6000928352600460205260409092209103905561177481611e1c565b905061169a565b80356001600160a01b038116811461179257600080fd5b919050565b600080604083850312156117aa57600080fd5b6117b38361177b565b946020939093013593505050565b6001600160e01b031981168114610a0c57600080fd5b6000602082840312156117e957600080fd5b81356117f4816117c1565b9392505050565b6000815180845260005b8181101561182157602081850181015186830182015201611805565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006117f460208301846117fb565b60006020828403121561186657600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156118a9576118a961186d565b6040525050565b600067ffffffffffffffff8211156118ca576118ca61186d565b5060051b60200190565b600082601f8301126118e557600080fd5b813560206118f2826118b0565b6040516118ff8282611883565b83815260059390931b850182019282810191508684111561191f57600080fd5b8286015b8481101561193a5780358352918301918301611923565b509695505050505050565b6000806040838503121561195857600080fd5b82359150602083013567ffffffffffffffff81111561197657600080fd5b611982858286016118d4565b9150509250929050565b600082601f83011261199d57600080fd5b813567ffffffffffffffff8111156119b7576119b761186d565b6040516119ce601f8301601f191660200182611883565b8181528460208386010111156119e357600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215611a1857600080fd5b611a218661177b565b9450611a2f6020870161177b565b9350604086013567ffffffffffffffff80821115611a4c57600080fd5b611a5889838a016118d4565b94506060880135915080821115611a6e57600080fd5b611a7a89838a016118d4565b93506080880135915080821115611a9057600080fd5b50611a9d8882890161198c565b9150509295509295909350565b60008060408385031215611abd57600080fd5b823567ffffffffffffffff80821115611ad557600080fd5b818501915085601f830112611ae957600080fd5b81356020611af6826118b0565b604051611b038282611883565b83815260059390931b8501820192828101915089841115611b2357600080fd5b948201945b83861015611b4857611b398661177b565b82529482019490820190611b28565b96505086013592505080821115611b5e57600080fd5b50611982858286016118d4565b600081518084526020808501945080840160005b83811015611b9b57815187529582019590820190600101611b7f565b509495945050505050565b6020815260006117f46020830184611b6b565b600080600060608486031215611bce57600080fd5b611bd78461177b565b9250602084013567ffffffffffffffff80821115611bf457600080fd5b611c00878388016118d4565b93506040860135915080821115611c1657600080fd5b50611c23868287016118d4565b9150509250925092565b600060208284031215611c3f57600080fd5b6117f48261177b565b60008060408385031215611c5b57600080fd5b611c648361177b565b915060208301358015158114611c7957600080fd5b809150509250929050565b60008060408385031215611c9757600080fd5b611ca08361177b565b9150611cae6020840161177b565b90509250929050565b600080600080600060a08688031215611ccf57600080fd5b611cd88661177b565b9450611ce66020870161177b565b93506040860135925060608601359150608086013567ffffffffffffffff811115611d1057600080fd5b611a9d8882890161198c565b600080600060608486031215611d3157600080fd5b611d3a8461177b565b95602085013595506040909401359392505050565b600181811c90821680611d6357607f821691505b602082108103611d8357634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611d9b57600080fd5b5051919050565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611e2e57611e2e611e06565b5060010190565b600082611e5257634e487b7160e01b600052601260045260246000fd5b500690565b808201808211156103da576103da611e06565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000611f546040830185611b6b565b8281036020840152611f668185611b6b565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061202290830186611b6b565b82810360608401526120348186611b6b565b9050828103608084015261204881856117fb565b98975050505050505050565b60006020828403121561206657600080fd5b81516117f4816117c1565b600060033d111561208a5760046000803e5060005160e01c5b90565b600060443d101561209b5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156120cb57505050505090565b82850191508151818111156120e35750505050505090565b843d87010160208285010111156120fd5750505050505090565b61210c60208286010187611883565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612199908301846117fb565b97965050505050505056fea264697066735822122069f0e8a3ac7e6c1023ed27b7c6b85f583bcf2d2c5bec728b688c9d57a37ba83b64736f6c63430008110033697066733a2f2f516d584e37747768694a4637705374746b767178666f6b396f35703151574a6543627752545a765a3552437a767a2f7b69647d2e6a736f6e00000000000000000000000000000000000000000000000000000000000014050000000000000000000000007a1bac17ccc5b313516c5e16fb24f7659aa5ebed

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012b5760003560e01c8063715018a6116100ad578063bd85b03911610071578063bd85b039146102b2578063e985e9c5146102d2578063f242432a1461030e578063f2fde38b14610321578063f5298aca1461033457600080fd5b8063715018a6146102265780637de77ecc1461022e5780638da5cb5b14610251578063a22cb46514610276578063a6ed53be1461028957600080fd5b80631fe543e3116100f45780631fe543e3146101a95780632eb2c2d6146101be5780634e1273f4146101d15780634f558e79146101f15780636b20c4541461021357600080fd5b8062fdd58e1461013057806301ffc9a71461015657806306fdde03146101795780630e89341c1461018e5780631249c58b146101a1575b600080fd5b61014361013e366004611797565b610347565b6040519081526020015b60405180910390f35b6101696101643660046117d7565b6103e0565b604051901515815260200161014d565b610181610430565b60405161014d9190611841565b61018161019c366004611854565b6104be565b610143610552565b6101bc6101b7366004611945565b6106ec565b005b6101bc6101cc366004611a00565b610774565b6101e46101df366004611aaa565b6107c0565b60405161014d9190611ba6565b6101696101ff366004611854565b600090815260046020526040902054151590565b6101bc610221366004611bb9565b6108ea565b6101bc610932565b61016961023c366004611c2d565b60056020526000908152604090205460ff1681565b6003546001600160a01b03165b6040516001600160a01b03909116815260200161014d565b6101bc610284366004611c48565b610946565b61025e610297366004611854565b6007602052600090815260409020546001600160a01b031681565b6101436102c0366004611854565b60009081526004602052604090205490565b6101696102e0366004611c84565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6101bc61031c366004611cb7565b610951565b6101bc61032f366004611c2d565b610996565b6101bc610342366004611d1c565b610a0f565b60006001600160a01b0383166103b75760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061041157506001600160e01b031982166303a24d0760e21b145b806103da57506301ffc9a760e01b6001600160e01b03198316146103da565b6006805461043d90611d4f565b80601f016020809104026020016040519081016040528092919081815260200182805461046990611d4f565b80156104b65780601f1061048b576101008083540402835291602001916104b6565b820191906000526020600020905b81548152906001019060200180831161049957829003601f168201915b505050505081565b6060600280546104cd90611d4f565b80601f01602080910402602001604051908101604052809291908181526020018280546104f990611d4f565b80156105465780601f1061051b57610100808354040283529160200191610546565b820191906000526020600020905b81548152906001019060200180831161052957829003601f168201915b50505050509050919050565b3360009081526005602052604081205460ff16156105ab5760405162461bcd60e51b8152602060048201526016602482015275596f752063616e206f6e6c79206d696e74206f6e636560501b60448201526064016103ae565b6008546009546040516305d3b1d360e41b8152600481019290925267ffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000001405166024830152640100000000810461ffff16604483015263ffffffff808216606484015266010000000000009091041660848201527f0000000000000000000000007a1bac17ccc5b313516c5e16fb24f7659aa5ebed6001600160a01b031690635d3b1d309060a4016020604051808303816000875af1158015610678573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069c9190611d89565b60008181526007602052604080822080546001600160a01b0319163390811790915590519293509183917f852da21b7a2e77c5c9947379e09de40f832f6c84d9263e9424a26db296c2c0e291a390565b336001600160a01b037f0000000000000000000000007a1bac17ccc5b313516c5e16fb24f7659aa5ebed16146107665760405163073e64fd60e21b81523360048201526001600160a01b037f0000000000000000000000007a1bac17ccc5b313516c5e16fb24f7659aa5ebed1660248201526044016103ae565b6107708282610a52565b5050565b6001600160a01b038516331480610790575061079085336102e0565b6107ac5760405162461bcd60e51b81526004016103ae90611da2565b6107b98585858585610b51565b5050505050565b606081518351146108255760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016103ae565b6000835167ffffffffffffffff8111156108415761084161186d565b60405190808252806020026020018201604052801561086a578160200160208202803683370190505b50905060005b84518110156108e2576108b585828151811061088e5761088e611df0565b60200260200101518583815181106108a8576108a8611df0565b6020026020010151610347565b8282815181106108c7576108c7611df0565b60209081029190910101526108db81611e1c565b9050610870565b509392505050565b6001600160a01b038316331480610906575061090683336102e0565b6109225760405162461bcd60e51b81526004016103ae90611da2565b61092d838383610cfb565b505050565b61093a610e98565b6109446000610ef2565b565b610770338383610f44565b6001600160a01b03851633148061096d575061096d85336102e0565b6109895760405162461bcd60e51b81526004016103ae90611da2565b6107b98585858585611024565b61099e610e98565b6001600160a01b038116610a035760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103ae565b610a0c81610ef2565b50565b6001600160a01b038316331480610a2b5750610a2b83336102e0565b610a475760405162461bcd60e51b81526004016103ae90611da2565b61092d83838361115c565b60008281526007602052604081205482516001600160a01b03909116919060649084908390610a8357610a83611df0565b6020026020010151610a959190611e35565b610aa0906001611e57565b9050600081606403610ab457506001610ad2565b610abf600383611e35565b600003610ace57506002610ad2565b5060035b6001600160a01b0383166000908152600560209081526040808320805460ff191660019081179091558151928301909152918152610b14918591849190611279565b6040516001600160a01b0384169082907f769eff512f395b679667e0062a0e31dad5d22dbc7e6b87f16c3de7e85e66346090600090a35050505050565b8151835114610b725760405162461bcd60e51b81526004016103ae90611e6a565b6001600160a01b038416610b985760405162461bcd60e51b81526004016103ae90611eb2565b33610ba7818787878787611393565b60005b8451811015610c8d576000858281518110610bc757610bc7611df0565b602002602001015190506000858381518110610be557610be5611df0565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610c355760405162461bcd60e51b81526004016103ae90611ef7565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610c72908490611e57565b9250508190555050505080610c8690611e1c565b9050610baa565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610cdd929190611f41565b60405180910390a4610cf38187878787876113a1565b505050505050565b6001600160a01b038316610d215760405162461bcd60e51b81526004016103ae90611f6f565b8051825114610d425760405162461bcd60e51b81526004016103ae90611e6a565b6000339050610d6581856000868660405180602001604052806000815250611393565b60005b8351811015610e2a576000848281518110610d8557610d85611df0565b602002602001015190506000848381518110610da357610da3611df0565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015610df35760405162461bcd60e51b81526004016103ae90611fb2565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580610e2281611e1c565b915050610d68565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051610e7b929190611f41565b60405180910390a460408051602081019091526000905250505050565b6003546001600160a01b031633146109445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103ae565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603610fb75760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016103ae565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03841661104a5760405162461bcd60e51b81526004016103ae90611eb2565b336000611056856114fc565b90506000611063856114fc565b9050611073838989858589611393565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156110b45760405162461bcd60e51b81526004016103ae90611ef7565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906110f1908490611e57565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611151848a8a8a8a8a611547565b505050505050505050565b6001600160a01b0383166111825760405162461bcd60e51b81526004016103ae90611f6f565b33600061118e846114fc565b9050600061119b846114fc565b90506111bb83876000858560405180602001604052806000815250611393565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156111fc5760405162461bcd60e51b81526004016103ae90611fb2565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090525b50505050505050565b6001600160a01b0384166112d95760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016103ae565b3360006112e5856114fc565b905060006112f2856114fc565b905061130383600089858589611393565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290611333908490611e57565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461127083600089898989611547565b610cf3868686868686611602565b6001600160a01b0384163b15610cf35760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906113e59089908990889088908890600401611ff6565b6020604051808303816000875af1925050508015611420575060408051601f3d908101601f1916820190925261141d91810190612054565b60015b6114cc5761142c612071565b806308c379a003611465575061144061208d565b8061144b5750611467565b8060405162461bcd60e51b81526004016103ae9190611841565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016103ae565b6001600160e01b0319811663bc197c8160e01b146112705760405162461bcd60e51b81526004016103ae90612117565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061153657611536611df0565b602090810291909101015292915050565b6001600160a01b0384163b15610cf35760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061158b908990899088908890889060040161215f565b6020604051808303816000875af19250505080156115c6575060408051601f3d908101601f191682019092526115c391810190612054565b60015b6115d25761142c612071565b6001600160e01b0319811663f23a6e6160e01b146112705760405162461bcd60e51b81526004016103ae90612117565b6001600160a01b0385166116895760005b83518110156116875782818151811061162e5761162e611df0565b60200260200101516004600086848151811061164c5761164c611df0565b6020026020010151815260200190815260200160002060008282546116719190611e57565b90915550611680905081611e1c565b9050611613565b505b6001600160a01b038416610cf35760005b83518110156112705760008482815181106116b7576116b7611df0565b6020026020010151905060008483815181106116d5576116d5611df0565b60200260200101519050600060046000848152602001908152602001600020549050818110156117585760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b60648201526084016103ae565b6000928352600460205260409092209103905561177481611e1c565b905061169a565b80356001600160a01b038116811461179257600080fd5b919050565b600080604083850312156117aa57600080fd5b6117b38361177b565b946020939093013593505050565b6001600160e01b031981168114610a0c57600080fd5b6000602082840312156117e957600080fd5b81356117f4816117c1565b9392505050565b6000815180845260005b8181101561182157602081850181015186830182015201611805565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006117f460208301846117fb565b60006020828403121561186657600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156118a9576118a961186d565b6040525050565b600067ffffffffffffffff8211156118ca576118ca61186d565b5060051b60200190565b600082601f8301126118e557600080fd5b813560206118f2826118b0565b6040516118ff8282611883565b83815260059390931b850182019282810191508684111561191f57600080fd5b8286015b8481101561193a5780358352918301918301611923565b509695505050505050565b6000806040838503121561195857600080fd5b82359150602083013567ffffffffffffffff81111561197657600080fd5b611982858286016118d4565b9150509250929050565b600082601f83011261199d57600080fd5b813567ffffffffffffffff8111156119b7576119b761186d565b6040516119ce601f8301601f191660200182611883565b8181528460208386010111156119e357600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215611a1857600080fd5b611a218661177b565b9450611a2f6020870161177b565b9350604086013567ffffffffffffffff80821115611a4c57600080fd5b611a5889838a016118d4565b94506060880135915080821115611a6e57600080fd5b611a7a89838a016118d4565b93506080880135915080821115611a9057600080fd5b50611a9d8882890161198c565b9150509295509295909350565b60008060408385031215611abd57600080fd5b823567ffffffffffffffff80821115611ad557600080fd5b818501915085601f830112611ae957600080fd5b81356020611af6826118b0565b604051611b038282611883565b83815260059390931b8501820192828101915089841115611b2357600080fd5b948201945b83861015611b4857611b398661177b565b82529482019490820190611b28565b96505086013592505080821115611b5e57600080fd5b50611982858286016118d4565b600081518084526020808501945080840160005b83811015611b9b57815187529582019590820190600101611b7f565b509495945050505050565b6020815260006117f46020830184611b6b565b600080600060608486031215611bce57600080fd5b611bd78461177b565b9250602084013567ffffffffffffffff80821115611bf457600080fd5b611c00878388016118d4565b93506040860135915080821115611c1657600080fd5b50611c23868287016118d4565b9150509250925092565b600060208284031215611c3f57600080fd5b6117f48261177b565b60008060408385031215611c5b57600080fd5b611c648361177b565b915060208301358015158114611c7957600080fd5b809150509250929050565b60008060408385031215611c9757600080fd5b611ca08361177b565b9150611cae6020840161177b565b90509250929050565b600080600080600060a08688031215611ccf57600080fd5b611cd88661177b565b9450611ce66020870161177b565b93506040860135925060608601359150608086013567ffffffffffffffff811115611d1057600080fd5b611a9d8882890161198c565b600080600060608486031215611d3157600080fd5b611d3a8461177b565b95602085013595506040909401359392505050565b600181811c90821680611d6357607f821691505b602082108103611d8357634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611d9b57600080fd5b5051919050565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611e2e57611e2e611e06565b5060010190565b600082611e5257634e487b7160e01b600052601260045260246000fd5b500690565b808201808211156103da576103da611e06565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000611f546040830185611b6b565b8281036020840152611f668185611b6b565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061202290830186611b6b565b82810360608401526120348186611b6b565b9050828103608084015261204881856117fb565b98975050505050505050565b60006020828403121561206657600080fd5b81516117f4816117c1565b600060033d111561208a5760046000803e5060005160e01c5b90565b600060443d101561209b5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156120cb57505050505090565b82850191508151818111156120e35750505050505090565b843d87010160208285010111156120fd5750505050505090565b61210c60208286010187611883565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612199908301846117fb565b97965050505050505056fea264697066735822122069f0e8a3ac7e6c1023ed27b7c6b85f583bcf2d2c5bec728b688c9d57a37ba83b64736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000014050000000000000000000000007a1bac17ccc5b313516c5e16fb24f7659aa5ebed

-----Decoded View---------------
Arg [0] : subscriptionId (uint64): 5125
Arg [1] : vrfCoordinatorV2Address (address): 0x7a1BaC17Ccc5b313516C5E16fb24f7659aA5ebed

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000001405
Arg [1] : 0000000000000000000000007a1bac17ccc5b313516c5e16fb24f7659aa5ebed


Deployed Bytecode Sourcemap

55315:3207:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36695:230;;;;;;:::i;:::-;;:::i;:::-;;;597:25:1;;;585:2;570:18;36695:230:0;;;;;;;;35718:310;;;;;;:::i;:::-;;:::i;:::-;;;1184:14:1;;1177:22;1159:41;;1147:2;1132:18;35718:310:0;1019:187:1;55527:42:0;;;:::i;:::-;;;;;;;:::i;36439:105::-;;;;;;:::i;:::-;;:::i;56624:605::-;;;:::i;6778:261::-;;;;;;:::i;:::-;;:::i;:::-;;38613:438;;;;;;:::i;:::-;;:::i;37091:499::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;53001:122::-;;;;;;:::i;:::-;53058:4;52879:16;;;:12;:16;;;;;;-1:-1:-1;;;53001:122:0;54882:324;;;;;;:::i;:::-;;:::i;14821:103::-;;;:::i;55481:39::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;14180:87;14253:6;;-1:-1:-1;;;;;14253:6:0;14180:87;;;-1:-1:-1;;;;;8229:32:1;;;8211:51;;8199:2;8184:18;14180:87:0;8065:203:1;37663:155:0;;;;;;:::i;:::-;;:::i;55576:53::-;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;55576:53:0;;;52790:113;;;;;;:::i;:::-;52852:7;52879:16;;;:12;:16;;;;;;;52790:113;37890:168;;;;;;:::i;:::-;-1:-1:-1;;;;;38013:27:0;;;37989:4;38013:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;37890:168;38130:406;;;;;;:::i;:::-;;:::i;15079:201::-;;;;;;:::i;:::-;;:::i;54582:292::-;;;;;;:::i;:::-;;:::i;36695:230::-;36781:7;-1:-1:-1;;;;;36809:21:0;;36801:76;;;;-1:-1:-1;;;36801:76:0;;10030:2:1;36801:76:0;;;10012:21:1;10069:2;10049:18;;;10042:30;10108:34;10088:18;;;10081:62;-1:-1:-1;;;10159:18:1;;;10152:40;10209:19;;36801:76:0;;;;;;;;;-1:-1:-1;36895:9:0;:13;;;;;;;;;;;-1:-1:-1;;;;;36895:22:0;;;;;;;;;;36695:230;;;;;:::o;35718:310::-;35820:4;-1:-1:-1;;;;;;35857:41:0;;-1:-1:-1;;;35857:41:0;;:110;;-1:-1:-1;;;;;;;35915:52:0;;-1:-1:-1;;;35915:52:0;35857:110;:163;;;-1:-1:-1;;;;;;;;;;27162:40:0;;;35984:36;27053:157;55527:42;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;36439:105::-;36499:13;36532:4;36525:11;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36439:105;;;:::o;56624:605::-;56703:10;56656:17;56695:19;;;:7;:19;;;;;;;;56694:20;56686:55;;;;-1:-1:-1;;;56686:55:0;;10826:2:1;56686:55:0;;;10808:21:1;10865:2;10845:18;;;10838:30;-1:-1:-1;;;10884:18:1;;;10877:52;10946:18;;56686:55:0;10624:346:1;56686:55:0;56888:7;;56940:18;;56834:189;;-1:-1:-1;;;56834:189:0;;56940:18;56834:189;;11226:25:1;;;;11299:18;56910:15:0;11287:31:1;11267:18;;;11260:59;56940:18:0;;;;;11335::1;;;11328:47;56973:16:0;;;;11420:18:1;;;11413:43;57004:8:0;;;;;11472:19:1;;;11465:44;56834:20:0;-1:-1:-1;;;;;56834:39:0;;;;11198:19:1;;56834:189:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57095:29;;;;:18;:29;;;;;;:42;;-1:-1:-1;;;;;;57095:42:0;57127:10;57095:42;;;;;;57181:40;;56822:201;;-1:-1:-1;57127:10:0;56822:201;;57181:40;;;56624:605;:::o;6778:261::-;6878:10;-1:-1:-1;;;;;6892:14:0;6878:28;;6874:111;;6924:53;;-1:-1:-1;;;6924:53:0;;6950:10;6924:53;;;11921:34:1;-1:-1:-1;;;;;6962:14:0;11991:15:1;11971:18;;;11964:43;11856:18;;6924:53:0;11709:304:1;6874:111:0;6991:42;7010:9;7021:11;6991:18;:42::i;:::-;6778:261;;:::o;38613:438::-;-1:-1:-1;;;;;38846:20:0;;12811:10;38846:20;;:60;;-1:-1:-1;38870:36:0;38887:4;12811:10;37890:168;:::i;38870:36::-;38824:156;;;;-1:-1:-1;;;38824:156:0;;;;;;;:::i;:::-;38991:52;39014:4;39020:2;39024:3;39029:7;39038:4;38991:22;:52::i;:::-;38613:438;;;;;:::o;37091:499::-;37227:16;37283:3;:10;37264:8;:15;:29;37256:83;;;;-1:-1:-1;;;37256:83:0;;12635:2:1;37256:83:0;;;12617:21:1;12674:2;12654:18;;;12647:30;12713:34;12693:18;;;12686:62;-1:-1:-1;;;12764:18:1;;;12757:39;12813:19;;37256:83:0;12433:405:1;37256:83:0;37352:30;37399:8;:15;37385:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37385:30:0;;37352:63;;37433:9;37428:122;37452:8;:15;37448:1;:19;37428:122;;;37508:30;37518:8;37527:1;37518:11;;;;;;;;:::i;:::-;;;;;;;37531:3;37535:1;37531:6;;;;;;;;:::i;:::-;;;;;;;37508:9;:30::i;:::-;37489:13;37503:1;37489:16;;;;;;;;:::i;:::-;;;;;;;;;;:49;37469:3;;;:::i;:::-;;;37428:122;;;-1:-1:-1;37569:13:0;37091:499;-1:-1:-1;;;37091:499:0:o;54882:324::-;-1:-1:-1;;;;;55013:23:0;;12811:10;55013:23;;:66;;-1:-1:-1;55040:39:0;55057:7;12811:10;37890:168;:::i;55040:39::-;54991:162;;;;-1:-1:-1;;;54991:162:0;;;;;;;:::i;:::-;55166:32;55177:7;55186:3;55191:6;55166:10;:32::i;:::-;54882:324;;;:::o;14821:103::-;14066:13;:11;:13::i;:::-;14886:30:::1;14913:1;14886:18;:30::i;:::-;14821:103::o:0;37663:155::-;37758:52;12811:10;37791:8;37801;37758:18;:52::i;38130:406::-;-1:-1:-1;;;;;38338:20:0;;12811:10;38338:20;;:60;;-1:-1:-1;38362:36:0;38379:4;12811:10;37890:168;:::i;38362:36::-;38316:156;;;;-1:-1:-1;;;38316:156:0;;;;;;;:::i;:::-;38483:45;38501:4;38507:2;38511;38515:6;38523:4;38483:17;:45::i;15079:201::-;14066:13;:11;:13::i;:::-;-1:-1:-1;;;;;15168:22:0;::::1;15160:73;;;::::0;-1:-1:-1;;;15160:73:0;;13449:2:1;15160:73:0::1;::::0;::::1;13431:21:1::0;13488:2;13468:18;;;13461:30;13527:34;13507:18;;;13500:62;-1:-1:-1;;;13578:18:1;;;13571:36;13624:19;;15160:73:0::1;13247:402:1::0;15160:73:0::1;15244:28;15263:8;15244:18;:28::i;:::-;15079:201:::0;:::o;54582:292::-;-1:-1:-1;;;;;54688:23:0;;12811:10;54688:23;;:66;;-1:-1:-1;54715:39:0;54732:7;12811:10;37890:168;:::i;54715:39::-;54666:162;;;;-1:-1:-1;;;54666:162:0;;;;;;;:::i;:::-;54841:25;54847:7;54856:2;54860:5;54841;:25::i;57237:875::-;57403:14;57420:29;;;:18;:29;;;;;;57554:14;;-1:-1:-1;;;;;57420:29:0;;;;57403:14;57571:3;;57554:11;;57403:14;;57554;;;;:::i;:::-;;;;;;;:20;;;;:::i;:::-;57553:26;;57578:1;57553:26;:::i;:::-;57530:49;;57592:15;57710:12;57726:3;57710:19;57707:175;;-1:-1:-1;57755:1:0;57707:175;;;57777:16;57792:1;57777:12;:16;:::i;:::-;57797:1;57777:21;57774:108;;-1:-1:-1;57825:1:0;57774:108;;;-1:-1:-1;57869:1:0;57774:108;-1:-1:-1;;;;;57935:15:0;;;;;;:7;:15;;;;;;;;:22;;-1:-1:-1;;57935:22:0;57953:4;57935:22;;;;;;58005:29;;;;;;;;;;;;;57943:6;;58019:7;;57953:4;58005:5;:29::i;:::-;58078:26;;-1:-1:-1;;;;;58078:26:0;;;58088:7;;58078:26;;;;;57357:755;;;57237:875;;:::o;40847:1146::-;41074:7;:14;41060:3;:10;:28;41052:81;;;;-1:-1:-1;;;41052:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;41152:16:0;;41144:66;;;;-1:-1:-1;;;41144:66:0;;;;;;;:::i;:::-;12811:10;41267:60;12811:10;41298:4;41304:2;41308:3;41313:7;41322:4;41267:20;:60::i;:::-;41345:9;41340:421;41364:3;:10;41360:1;:14;41340:421;;;41396:10;41409:3;41413:1;41409:6;;;;;;;;:::i;:::-;;;;;;;41396:19;;41430:14;41447:7;41455:1;41447:10;;;;;;;;:::i;:::-;;;;;;;;;;;;41474:19;41496:13;;;;;;;;;;-1:-1:-1;;;;;41496:19:0;;;;;;;;;;;;41447:10;;-1:-1:-1;41538:21:0;;;;41530:76;;;;-1:-1:-1;;;41530:76:0;;;;;;;:::i;:::-;41650:9;:13;;;;;;;;;;;-1:-1:-1;;;;;41650:19:0;;;;;;;;;;41672:20;;;41650:42;;41722:17;;;;;;;:27;;41672:20;;41650:9;41722:27;;41672:20;;41722:27;:::i;:::-;;;;;;;;41381:380;;;41376:3;;;;:::i;:::-;;;41340:421;;;;41808:2;-1:-1:-1;;;;;41778:47:0;41802:4;-1:-1:-1;;;;;41778:47:0;41792:8;-1:-1:-1;;;;;41778:47:0;;41812:3;41817:7;41778:47;;;;;;;:::i;:::-;;;;;;;;41910:75;41946:8;41956:4;41962:2;41966:3;41971:7;41980:4;41910:35;:75::i;:::-;41041:952;40847:1146;;;;;:::o;46535:935::-;-1:-1:-1;;;;;46653:18:0;;46645:66;;;;-1:-1:-1;;;46645:66:0;;;;;;;:::i;:::-;46744:7;:14;46730:3;:10;:28;46722:81;;;;-1:-1:-1;;;46722:81:0;;;;;;;:::i;:::-;46816:16;12811:10;46816:31;;46860:66;46881:8;46891:4;46905:1;46909:3;46914:7;46860:66;;;;;;;;;;;;:20;:66::i;:::-;46944:9;46939:373;46963:3;:10;46959:1;:14;46939:373;;;46995:10;47008:3;47012:1;47008:6;;;;;;;;:::i;:::-;;;;;;;46995:19;;47029:14;47046:7;47054:1;47046:10;;;;;;;;:::i;:::-;;;;;;;;;;;;47073:19;47095:13;;;;;;;;;;-1:-1:-1;;;;;47095:19:0;;;;;;;;;;;;47046:10;;-1:-1:-1;47137:21:0;;;;47129:70;;;;-1:-1:-1;;;47129:70:0;;;;;;;:::i;:::-;47243:9;:13;;;;;;;;;;;-1:-1:-1;;;;;47243:19:0;;;;;;;;;;47265:20;;47243:42;;46975:3;;;;:::i;:::-;;;;46939:373;;;;47367:1;-1:-1:-1;;;;;47329:55:0;47353:4;-1:-1:-1;;;;;47329:55:0;47343:8;-1:-1:-1;;;;;47329:55:0;;47371:3;47376:7;47329:55;;;;;;;:::i;:::-;;;;;;;;47397:65;;;;;;;;;47441:1;47397:65;;46634:836;46535:935;;;:::o;14345:132::-;14253:6;;-1:-1:-1;;;;;14253:6:0;12811:10;14409:23;14401:68;;;;-1:-1:-1;;;14401:68:0;;16705:2:1;14401:68:0;;;16687:21:1;;;16724:18;;;16717:30;16783:34;16763:18;;;16756:62;16835:18;;14401:68:0;16503:356:1;15440:191:0;15533:6;;;-1:-1:-1;;;;;15550:17:0;;;-1:-1:-1;;;;;;15550:17:0;;;;;;;15583:40;;15533:6;;;15550:17;15533:6;;15583:40;;15514:16;;15583:40;15503:128;15440:191;:::o;47613:297::-;47734:8;-1:-1:-1;;;;;47725:17:0;:5;-1:-1:-1;;;;;47725:17:0;;47717:71;;;;-1:-1:-1;;;47717:71:0;;17066:2:1;47717:71:0;;;17048:21:1;17105:2;17085:18;;;17078:30;17144:34;17124:18;;;17117:62;-1:-1:-1;;;17195:18:1;;;17188:39;17244:19;;47717:71:0;16864:405:1;47717:71:0;-1:-1:-1;;;;;47799:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;47799:46:0;;;;;;;;;;47861:41;;1159::1;;;47861::0;;1132:18:1;47861:41:0;;;;;;;47613:297;;;:::o;39515:974::-;-1:-1:-1;;;;;39703:16:0;;39695:66;;;;-1:-1:-1;;;39695:66:0;;;;;;;:::i;:::-;12811:10;39774:16;39839:21;39857:2;39839:17;:21::i;:::-;39816:44;;39871:24;39898:25;39916:6;39898:17;:25::i;:::-;39871:52;;39936:60;39957:8;39967:4;39973:2;39977:3;39982:7;39991:4;39936:20;:60::i;:::-;40009:19;40031:13;;;;;;;;;;;-1:-1:-1;;;;;40031:19:0;;;;;;;;;;40069:21;;;;40061:76;;;;-1:-1:-1;;;40061:76:0;;;;;;;:::i;:::-;40173:9;:13;;;;;;;;;;;-1:-1:-1;;;;;40173:19:0;;;;;;;;;;40195:20;;;40173:42;;40237:17;;;;;;;:27;;40195:20;;40173:9;40237:27;;40195:20;;40237:27;:::i;:::-;;;;-1:-1:-1;;40282:46:0;;;17448:25:1;;;17504:2;17489:18;;17482:34;;;-1:-1:-1;;;;;40282:46:0;;;;;;;;;;;;;;17421:18:1;40282:46:0;;;;;;;40413:68;40444:8;40454:4;40460:2;40464;40468:6;40476:4;40413:30;:68::i;:::-;39684:805;;;;39515:974;;;;;:::o;45511:774::-;-1:-1:-1;;;;;45604:18:0;;45596:66;;;;-1:-1:-1;;;45596:66:0;;;;;;;:::i;:::-;12811:10;45675:16;45740:21;45758:2;45740:17;:21::i;:::-;45717:44;;45772:24;45799:25;45817:6;45799:17;:25::i;:::-;45772:52;;45837:66;45858:8;45868:4;45882:1;45886:3;45891:7;45837:66;;;;;;;;;;;;:20;:66::i;:::-;45916:19;45938:13;;;;;;;;;;;-1:-1:-1;;;;;45938:19:0;;;;;;;;;;45976:21;;;;45968:70;;;;-1:-1:-1;;;45968:70:0;;;;;;;:::i;:::-;46074:9;:13;;;;;;;;;;;-1:-1:-1;;;;;46074:19:0;;;;;;;;;;;;46096:20;;;46074:42;;46145:54;;17448:25:1;;;17489:18;;;17482:34;;;46074:19:0;;46145:54;;;;;;17421:18:1;46145:54:0;;;;;;;46212:65;;;;;;;;;46256:1;46212:65;;;45585:700;;;;45511:774;;;:::o;43311:686::-;-1:-1:-1;;;;;43421:16:0;;43413:62;;;;-1:-1:-1;;;43413:62:0;;17729:2:1;43413:62:0;;;17711:21:1;17768:2;17748:18;;;17741:30;17807:34;17787:18;;;17780:62;-1:-1:-1;;;17858:18:1;;;17851:31;17899:19;;43413:62:0;17527:397:1;43413:62:0;12811:10;43488:16;43553:21;43571:2;43553:17;:21::i;:::-;43530:44;;43585:24;43612:25;43630:6;43612:17;:25::i;:::-;43585:52;;43650:66;43671:8;43689:1;43693:2;43697:3;43702:7;43711:4;43650:20;:66::i;:::-;43729:9;:13;;;;;;;;;;;-1:-1:-1;;;;;43729:17:0;;;;;;;;;:27;;43750:6;;43729:9;:27;;43750:6;;43729:27;:::i;:::-;;;;-1:-1:-1;;43772:52:0;;;17448:25:1;;;17504:2;17489:18;;17482:34;;;-1:-1:-1;;;;;43772:52:0;;;;43805:1;;43772:52;;;;;;17421:18:1;43772:52:0;;;;;;;43915:74;43946:8;43964:1;43968:2;43972;43976:6;43984:4;43915:30;:74::i;58190:329::-;58445:66;58472:8;58482:4;58488:2;58492:3;58497:7;58506:4;58445:26;:66::i;51024:813::-;-1:-1:-1;;;;;51264:13:0;;17407:19;:23;51260:570;;51300:79;;-1:-1:-1;;;51300:79:0;;-1:-1:-1;;;;;51300:43:0;;;;;:79;;51344:8;;51354:4;;51360:3;;51365:7;;51374:4;;51300:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51300:79:0;;;;;;;;-1:-1:-1;;51300:79:0;;;;;;;;;;;;:::i;:::-;;;51296:523;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;51692:6;51685:14;;-1:-1:-1;;;51685:14:0;;;;;;;;:::i;51296:523::-;;;51741:62;;-1:-1:-1;;;51741:62:0;;20077:2:1;51741:62:0;;;20059:21:1;20116:2;20096:18;;;20089:30;20155:34;20135:18;;;20128:62;-1:-1:-1;;;20206:18:1;;;20199:50;20266:19;;51741:62:0;19875:416:1;51296:523:0;-1:-1:-1;;;;;;51461:60:0;;-1:-1:-1;;;51461:60:0;51457:159;;51546:50;;-1:-1:-1;;;51546:50:0;;;;;;;:::i;51845:198::-;51965:16;;;51979:1;51965:16;;;;;;;;;51911;;51940:22;;51965:16;;;;;;;;;;;;-1:-1:-1;51965:16:0;51940:41;;52003:7;51992:5;51998:1;51992:8;;;;;;;;:::i;:::-;;;;;;;;;;:18;52030:5;51845:198;-1:-1:-1;;51845:198:0:o;50272:744::-;-1:-1:-1;;;;;50487:13:0;;17407:19;:23;50483:526;;50523:72;;-1:-1:-1;;;50523:72:0;;-1:-1:-1;;;;;50523:38:0;;;;;:72;;50562:8;;50572:4;;50578:2;;50582:6;;50590:4;;50523:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50523:72:0;;;;;;;;-1:-1:-1;;50523:72:0;;;;;;;;;;;;:::i;:::-;;;50519:479;;;;:::i;:::-;-1:-1:-1;;;;;;50645:55:0;;-1:-1:-1;;;50645:55:0;50641:154;;50725:50;;-1:-1:-1;;;50725:50:0;;;;;;;:::i;53198:931::-;-1:-1:-1;;;;;53520:18:0;;53516:160;;53560:9;53555:110;53579:3;:10;53575:1;:14;53555:110;;;53639:7;53647:1;53639:10;;;;;;;;:::i;:::-;;;;;;;53615:12;:20;53628:3;53632:1;53628:6;;;;;;;;:::i;:::-;;;;;;;53615:20;;;;;;;;;;;;:34;;;;;;;:::i;:::-;;;;-1:-1:-1;53591:3:0;;-1:-1:-1;53591:3:0;;:::i;:::-;;;53555:110;;;;53516:160;-1:-1:-1;;;;;53692:16:0;;53688:434;;53730:9;53725:386;53749:3;:10;53745:1;:14;53725:386;;;53785:10;53798:3;53802:1;53798:6;;;;;;;;:::i;:::-;;;;;;;53785:19;;53823:14;53840:7;53848:1;53840:10;;;;;;;;:::i;:::-;;;;;;;53823:27;;53869:14;53886:12;:16;53899:2;53886:16;;;;;;;;;;;;53869:33;;53939:6;53929;:16;;53921:69;;;;-1:-1:-1;;;53921:69:0;;21473:2:1;53921:69:0;;;21455:21:1;21512:2;21492:18;;;21485:30;21551:34;21531:18;;;21524:62;-1:-1:-1;;;21602:18:1;;;21595:38;21650:19;;53921:69:0;21271:404:1;53921:69:0;54042:16;;;;:12;:16;;;;;;54061:15;;54042:34;;53761:3;;;:::i;:::-;;;53725:386;;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:254::-;260:6;268;321:2;309:9;300:7;296:23;292:32;289:52;;;337:1;334;327:12;289:52;360:29;379:9;360:29;:::i;:::-;350:39;436:2;421:18;;;;408:32;;-1:-1:-1;;;192:254:1:o;633:131::-;-1:-1:-1;;;;;;707:32:1;;697:43;;687:71;;754:1;751;744:12;769:245;827:6;880:2;868:9;859:7;855:23;851:32;848:52;;;896:1;893;886:12;848:52;935:9;922:23;954:30;978:5;954:30;:::i;:::-;1003:5;769:245;-1:-1:-1;;;769:245:1:o;1211:423::-;1253:3;1291:5;1285:12;1318:6;1313:3;1306:19;1343:1;1353:162;1367:6;1364:1;1361:13;1353:162;;;1429:4;1485:13;;;1481:22;;1475:29;1457:11;;;1453:20;;1446:59;1382:12;1353:162;;;1357:3;1560:1;1553:4;1544:6;1539:3;1535:16;1531:27;1524:38;1623:4;1616:2;1612:7;1607:2;1599:6;1595:15;1591:29;1586:3;1582:39;1578:50;1571:57;;;1211:423;;;;:::o;1639:220::-;1788:2;1777:9;1770:21;1751:4;1808:45;1849:2;1838:9;1834:18;1826:6;1808:45;:::i;1864:180::-;1923:6;1976:2;1964:9;1955:7;1951:23;1947:32;1944:52;;;1992:1;1989;1982:12;1944:52;-1:-1:-1;2015:23:1;;1864:180;-1:-1:-1;1864:180:1:o;2049:127::-;2110:10;2105:3;2101:20;2098:1;2091:31;2141:4;2138:1;2131:15;2165:4;2162:1;2155:15;2181:249;2291:2;2272:13;;-1:-1:-1;;2268:27:1;2256:40;;2326:18;2311:34;;2347:22;;;2308:62;2305:88;;;2373:18;;:::i;:::-;2409:2;2402:22;-1:-1:-1;;2181:249:1:o;2435:183::-;2495:4;2528:18;2520:6;2517:30;2514:56;;;2550:18;;:::i;:::-;-1:-1:-1;2595:1:1;2591:14;2607:4;2587:25;;2435:183::o;2623:724::-;2677:5;2730:3;2723:4;2715:6;2711:17;2707:27;2697:55;;2748:1;2745;2738:12;2697:55;2784:6;2771:20;2810:4;2833:43;2873:2;2833:43;:::i;:::-;2905:2;2899:9;2917:31;2945:2;2937:6;2917:31;:::i;:::-;2983:18;;;3075:1;3071:10;;;;3059:23;;3055:32;;;3017:15;;;;-1:-1:-1;3099:15:1;;;3096:35;;;3127:1;3124;3117:12;3096:35;3163:2;3155:6;3151:15;3175:142;3191:6;3186:3;3183:15;3175:142;;;3257:17;;3245:30;;3295:12;;;;3208;;3175:142;;;-1:-1:-1;3335:6:1;2623:724;-1:-1:-1;;;;;;2623:724:1:o;3352:416::-;3445:6;3453;3506:2;3494:9;3485:7;3481:23;3477:32;3474:52;;;3522:1;3519;3512:12;3474:52;3558:9;3545:23;3535:33;;3619:2;3608:9;3604:18;3591:32;3646:18;3638:6;3635:30;3632:50;;;3678:1;3675;3668:12;3632:50;3701:61;3754:7;3745:6;3734:9;3730:22;3701:61;:::i;:::-;3691:71;;;3352:416;;;;;:::o;3773:555::-;3815:5;3868:3;3861:4;3853:6;3849:17;3845:27;3835:55;;3886:1;3883;3876:12;3835:55;3922:6;3909:20;3948:18;3944:2;3941:26;3938:52;;;3970:18;;:::i;:::-;4019:2;4013:9;4031:67;4086:2;4067:13;;-1:-1:-1;;4063:27:1;4092:4;4059:38;4013:9;4031:67;:::i;:::-;4122:2;4114:6;4107:18;4168:3;4161:4;4156:2;4148:6;4144:15;4140:26;4137:35;4134:55;;;4185:1;4182;4175:12;4134:55;4249:2;4242:4;4234:6;4230:17;4223:4;4215:6;4211:17;4198:54;4296:1;4272:15;;;4289:4;4268:26;4261:37;;;;4276:6;3773:555;-1:-1:-1;;;3773:555:1:o;4333:943::-;4487:6;4495;4503;4511;4519;4572:3;4560:9;4551:7;4547:23;4543:33;4540:53;;;4589:1;4586;4579:12;4540:53;4612:29;4631:9;4612:29;:::i;:::-;4602:39;;4660:38;4694:2;4683:9;4679:18;4660:38;:::i;:::-;4650:48;;4749:2;4738:9;4734:18;4721:32;4772:18;4813:2;4805:6;4802:14;4799:34;;;4829:1;4826;4819:12;4799:34;4852:61;4905:7;4896:6;4885:9;4881:22;4852:61;:::i;:::-;4842:71;;4966:2;4955:9;4951:18;4938:32;4922:48;;4995:2;4985:8;4982:16;4979:36;;;5011:1;5008;5001:12;4979:36;5034:63;5089:7;5078:8;5067:9;5063:24;5034:63;:::i;:::-;5024:73;;5150:3;5139:9;5135:19;5122:33;5106:49;;5180:2;5170:8;5167:16;5164:36;;;5196:1;5193;5186:12;5164:36;;5219:51;5262:7;5251:8;5240:9;5236:24;5219:51;:::i;:::-;5209:61;;;4333:943;;;;;;;;:::o;5281:1208::-;5399:6;5407;5460:2;5448:9;5439:7;5435:23;5431:32;5428:52;;;5476:1;5473;5466:12;5428:52;5516:9;5503:23;5545:18;5586:2;5578:6;5575:14;5572:34;;;5602:1;5599;5592:12;5572:34;5640:6;5629:9;5625:22;5615:32;;5685:7;5678:4;5674:2;5670:13;5666:27;5656:55;;5707:1;5704;5697:12;5656:55;5743:2;5730:16;5765:4;5788:43;5828:2;5788:43;:::i;:::-;5860:2;5854:9;5872:31;5900:2;5892:6;5872:31;:::i;:::-;5938:18;;;6026:1;6022:10;;;;6014:19;;6010:28;;;5972:15;;;;-1:-1:-1;6050:19:1;;;6047:39;;;6082:1;6079;6072:12;6047:39;6106:11;;;;6126:148;6142:6;6137:3;6134:15;6126:148;;;6208:23;6227:3;6208:23;:::i;:::-;6196:36;;6159:12;;;;6252;;;;6126:148;;;6293:6;-1:-1:-1;;6337:18:1;;6324:32;;-1:-1:-1;;6368:16:1;;;6365:36;;;6397:1;6394;6387:12;6365:36;;6420:63;6475:7;6464:8;6453:9;6449:24;6420:63;:::i;6494:435::-;6547:3;6585:5;6579:12;6612:6;6607:3;6600:19;6638:4;6667:2;6662:3;6658:12;6651:19;;6704:2;6697:5;6693:14;6725:1;6735:169;6749:6;6746:1;6743:13;6735:169;;;6810:13;;6798:26;;6844:12;;;;6879:15;;;;6771:1;6764:9;6735:169;;;-1:-1:-1;6920:3:1;;6494:435;-1:-1:-1;;;;;6494:435:1:o;6934:261::-;7113:2;7102:9;7095:21;7076:4;7133:56;7185:2;7174:9;7170:18;7162:6;7133:56;:::i;7200:669::-;7327:6;7335;7343;7396:2;7384:9;7375:7;7371:23;7367:32;7364:52;;;7412:1;7409;7402:12;7364:52;7435:29;7454:9;7435:29;:::i;:::-;7425:39;;7515:2;7504:9;7500:18;7487:32;7538:18;7579:2;7571:6;7568:14;7565:34;;;7595:1;7592;7585:12;7565:34;7618:61;7671:7;7662:6;7651:9;7647:22;7618:61;:::i;:::-;7608:71;;7732:2;7721:9;7717:18;7704:32;7688:48;;7761:2;7751:8;7748:16;7745:36;;;7777:1;7774;7767:12;7745:36;;7800:63;7855:7;7844:8;7833:9;7829:24;7800:63;:::i;:::-;7790:73;;;7200:669;;;;;:::o;7874:186::-;7933:6;7986:2;7974:9;7965:7;7961:23;7957:32;7954:52;;;8002:1;7999;7992:12;7954:52;8025:29;8044:9;8025:29;:::i;8273:347::-;8338:6;8346;8399:2;8387:9;8378:7;8374:23;8370:32;8367:52;;;8415:1;8412;8405:12;8367:52;8438:29;8457:9;8438:29;:::i;:::-;8428:39;;8517:2;8506:9;8502:18;8489:32;8564:5;8557:13;8550:21;8543:5;8540:32;8530:60;;8586:1;8583;8576:12;8530:60;8609:5;8599:15;;;8273:347;;;;;:::o;8625:260::-;8693:6;8701;8754:2;8742:9;8733:7;8729:23;8725:32;8722:52;;;8770:1;8767;8760:12;8722:52;8793:29;8812:9;8793:29;:::i;:::-;8783:39;;8841:38;8875:2;8864:9;8860:18;8841:38;:::i;:::-;8831:48;;8625:260;;;;;:::o;8890:606::-;8994:6;9002;9010;9018;9026;9079:3;9067:9;9058:7;9054:23;9050:33;9047:53;;;9096:1;9093;9086:12;9047:53;9119:29;9138:9;9119:29;:::i;:::-;9109:39;;9167:38;9201:2;9190:9;9186:18;9167:38;:::i;:::-;9157:48;;9252:2;9241:9;9237:18;9224:32;9214:42;;9303:2;9292:9;9288:18;9275:32;9265:42;;9358:3;9347:9;9343:19;9330:33;9386:18;9378:6;9375:30;9372:50;;;9418:1;9415;9408:12;9372:50;9441:49;9482:7;9473:6;9462:9;9458:22;9441:49;:::i;9501:322::-;9578:6;9586;9594;9647:2;9635:9;9626:7;9622:23;9618:32;9615:52;;;9663:1;9660;9653:12;9615:52;9686:29;9705:9;9686:29;:::i;:::-;9676:39;9762:2;9747:18;;9734:32;;-1:-1:-1;9813:2:1;9798:18;;;9785:32;;9501:322;-1:-1:-1;;;9501:322:1:o;10239:380::-;10318:1;10314:12;;;;10361;;;10382:61;;10436:4;10428:6;10424:17;10414:27;;10382:61;10489:2;10481:6;10478:14;10458:18;10455:38;10452:161;;10535:10;10530:3;10526:20;10523:1;10516:31;10570:4;10567:1;10560:15;10598:4;10595:1;10588:15;10452:161;;10239:380;;;:::o;11520:184::-;11590:6;11643:2;11631:9;11622:7;11618:23;11614:32;11611:52;;;11659:1;11656;11649:12;11611:52;-1:-1:-1;11682:16:1;;11520:184;-1:-1:-1;11520:184:1:o;12018:410::-;12220:2;12202:21;;;12259:2;12239:18;;;12232:30;12298:34;12293:2;12278:18;;12271:62;-1:-1:-1;;;12364:2:1;12349:18;;12342:44;12418:3;12403:19;;12018:410::o;12843:127::-;12904:10;12899:3;12895:20;12892:1;12885:31;12935:4;12932:1;12925:15;12959:4;12956:1;12949:15;12975:127;13036:10;13031:3;13027:20;13024:1;13017:31;13067:4;13064:1;13057:15;13091:4;13088:1;13081:15;13107:135;13146:3;13167:17;;;13164:43;;13187:18;;:::i;:::-;-1:-1:-1;13234:1:1;13223:13;;13107:135::o;13654:209::-;13686:1;13712;13702:132;;13756:10;13751:3;13747:20;13744:1;13737:31;13791:4;13788:1;13781:15;13819:4;13816:1;13809:15;13702:132;-1:-1:-1;13848:9:1;;13654:209::o;13868:125::-;13933:9;;;13954:10;;;13951:36;;;13967:18;;:::i;13998:404::-;14200:2;14182:21;;;14239:2;14219:18;;;14212:30;14278:34;14273:2;14258:18;;14251:62;-1:-1:-1;;;14344:2:1;14329:18;;14322:38;14392:3;14377:19;;13998:404::o;14407:401::-;14609:2;14591:21;;;14648:2;14628:18;;;14621:30;14687:34;14682:2;14667:18;;14660:62;-1:-1:-1;;;14753:2:1;14738:18;;14731:35;14798:3;14783:19;;14407:401::o;14813:406::-;15015:2;14997:21;;;15054:2;15034:18;;;15027:30;15093:34;15088:2;15073:18;;15066:62;-1:-1:-1;;;15159:2:1;15144:18;;15137:40;15209:3;15194:19;;14813:406::o;15224:465::-;15481:2;15470:9;15463:21;15444:4;15507:56;15559:2;15548:9;15544:18;15536:6;15507:56;:::i;:::-;15611:9;15603:6;15599:22;15594:2;15583:9;15579:18;15572:50;15639:44;15676:6;15668;15639:44;:::i;:::-;15631:52;15224:465;-1:-1:-1;;;;;15224:465:1:o;15694:399::-;15896:2;15878:21;;;15935:2;15915:18;;;15908:30;15974:34;15969:2;15954:18;;15947:62;-1:-1:-1;;;16040:2:1;16025:18;;16018:33;16083:3;16068:19;;15694:399::o;16098:400::-;16300:2;16282:21;;;16339:2;16319:18;;;16312:30;16378:34;16373:2;16358:18;;16351:62;-1:-1:-1;;;16444:2:1;16429:18;;16422:34;16488:3;16473:19;;16098:400::o;17929:827::-;-1:-1:-1;;;;;18326:15:1;;;18308:34;;18378:15;;18373:2;18358:18;;18351:43;18288:3;18425:2;18410:18;;18403:31;;;18251:4;;18457:57;;18494:19;;18486:6;18457:57;:::i;:::-;18562:9;18554:6;18550:22;18545:2;18534:9;18530:18;18523:50;18596:44;18633:6;18625;18596:44;:::i;:::-;18582:58;;18689:9;18681:6;18677:22;18671:3;18660:9;18656:19;18649:51;18717:33;18743:6;18735;18717:33;:::i;:::-;18709:41;17929:827;-1:-1:-1;;;;;;;;17929:827:1:o;18761:249::-;18830:6;18883:2;18871:9;18862:7;18858:23;18854:32;18851:52;;;18899:1;18896;18889:12;18851:52;18931:9;18925:16;18950:30;18974:5;18950:30;:::i;19015:179::-;19050:3;19092:1;19074:16;19071:23;19068:120;;;19138:1;19135;19132;19117:23;-1:-1:-1;19175:1:1;19169:8;19164:3;19160:18;19068:120;19015:179;:::o;19199:671::-;19238:3;19280:4;19262:16;19259:26;19256:39;;;19199:671;:::o;19256:39::-;19322:2;19316:9;-1:-1:-1;;19387:16:1;19383:25;;19380:1;19316:9;19359:50;19438:4;19432:11;19462:16;19497:18;19568:2;19561:4;19553:6;19549:17;19546:25;19541:2;19533:6;19530:14;19527:45;19524:58;;;19575:5;;;;;19199:671;:::o;19524:58::-;19612:6;19606:4;19602:17;19591:28;;19648:3;19642:10;19675:2;19667:6;19664:14;19661:27;;;19681:5;;;;;;19199:671;:::o;19661:27::-;19765:2;19746:16;19740:4;19736:27;19732:36;19725:4;19716:6;19711:3;19707:16;19703:27;19700:69;19697:82;;;19772:5;;;;;;19199:671;:::o;19697:82::-;19788:57;19839:4;19830:6;19822;19818:19;19814:30;19808:4;19788:57;:::i;:::-;-1:-1:-1;19861:3:1;;19199:671;-1:-1:-1;;;;;19199:671:1:o;20296:404::-;20498:2;20480:21;;;20537:2;20517:18;;;20510:30;20576:34;20571:2;20556:18;;20549:62;-1:-1:-1;;;20642:2:1;20627:18;;20620:38;20690:3;20675:19;;20296:404::o;20705:561::-;-1:-1:-1;;;;;21002:15:1;;;20984:34;;21054:15;;21049:2;21034:18;;21027:43;21101:2;21086:18;;21079:34;;;21144:2;21129:18;;21122:34;;;20964:3;21187;21172:19;;21165:32;;;20927:4;;21214:46;;21240:19;;21232:6;21214:46;:::i;:::-;21206:54;20705:561;-1:-1:-1;;;;;;;20705:561:1:o

Swarm Source

ipfs://69f0e8a3ac7e6c1023ed27b7c6b85f583bcf2d2c5bec728b688c9d57a37ba83b

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

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