ETH Price: $2,436.69 (-2.09%)

Contract

0x42E4bD0a367ADAf84E75DEE4467F8d94caD3dfbE
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Summon The Phoen...199300432024-05-23 3:57:47137 days ago1716436667IN
0x42E4bD0a...4caD3dfbE
0 ETH0.000560784.58266358
Safe Transfer Fr...195369102024-03-29 3:13:23192 days ago1711682003IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0008067123.04377199
Safe Transfer Fr...195368912024-03-29 3:09:35192 days ago1711681775IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0011150821.40437142
Safe Transfer Fr...187886082023-12-15 2:41:47297 days ago1702608107IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0015364129.49205179
Safe Transfer Fr...187885942023-12-15 2:38:59297 days ago1702607939IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0015572929.88586399
Set Approval For...187716932023-12-12 17:48:35300 days ago1702403315IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0023679651.20598963
Summon The Phoen...187716802023-12-12 17:45:59300 days ago1702403159IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0062625251.17650485
Summon The Phoen...187687422023-12-12 7:53:35300 days ago1702367615IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0030832525.19595064
Summon The Phoen...187631982023-12-11 13:15:23301 days ago1702300523IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0033508327.38256435
Set Approval For...187619882023-12-11 9:11:47301 days ago1702285907IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0014635331.64811284
Summon The Phoen...187593492023-12-11 0:20:35302 days ago1702254035IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0024436119.96888087
Set Approval For...187561282023-12-10 13:32:47302 days ago1702215167IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0011966925.87781246
Summon The Phoen...187558822023-12-10 12:42:47302 days ago1702212167IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0028104122.96637709
Summon The Phoen...187542172023-12-10 7:07:47302 days ago1702192067IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0027825122.73837081
Summon The Phoen...187518282023-12-09 23:05:59303 days ago1702163159IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0031909926.07638881
Summon The Phoen...187516012023-12-09 22:20:23303 days ago1702160423IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0045309237.02611078
Summon The Phoen...187512732023-12-09 21:14:11303 days ago1702156451IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0032007126.15579802
Summon The Phoen...187511592023-12-09 20:51:23303 days ago1702155083IN
0x42E4bD0a...4caD3dfbE
0 ETH0.003427128.00586236
Summon The Phoen...187510392023-12-09 20:27:11303 days ago1702153631IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0032487326.54827963
Summon The Phoen...187504902023-12-09 18:36:23303 days ago1702146983IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0041459833.88046467
Summon The Phoen...187482562023-12-09 11:05:35303 days ago1702119935IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0019557336.84714216
Summon The Phoen...187480422023-12-09 10:21:47303 days ago1702117307IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0045916937.52271917
Summon The Phoen...187479712023-12-09 10:07:11303 days ago1702116431IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0040689533.25096611
Summon The Phoen...187479592023-12-09 10:04:47303 days ago1702116287IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0046735438.19159279
Set Approval For...187470902023-12-09 7:09:23303 days ago1702105763IN
0x42E4bD0a...4caD3dfbE
0 ETH0.0013675729.57293736
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ElementalPhoenixes

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-11-19
*/

// SPDX-License-Identifier: MIT

/*

███╗░░░███╗░█████╗░░██████╗░██╗░█████╗░██╗░░░██╗███████╗██████╗░░██████╗███████╗
████╗░████║██╔══██╗██╔════╝░██║██╔══██╗██║░░░██║██╔════╝██╔══██╗██╔════╝██╔════╝
██╔████╔██║███████║██║░░██╗░██║██║░░╚═╝╚██╗░██╔╝█████╗░░██████╔╝╚█████╗░█████╗░░
██║╚██╔╝██║██╔══██║██║░░╚██╗██║██║░░██╗░╚████╔╝░██╔══╝░░██╔══██╗░╚═══██╗██╔══╝░░
██║░╚═╝░██║██║░░██║╚██████╔╝██║╚█████╔╝░░╚██╔╝░░███████╗██║░░██║██████╔╝███████╗
╚═╝░░░░░╚═╝╚═╝░░╚═╝░╚═════╝░╚═╝░╚════╝░░░░╚═╝░░░╚══════╝╚═╝░░╚═╝╚═════╝░╚══════╝

*/

pragma solidity ^0.8.18;



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

/**
 * @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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

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

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

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}
/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

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

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

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

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

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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


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


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

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

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

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

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

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

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

/**
 * @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 owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

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

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

        address operator = _msgSender();
        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;
    }
}

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

        _burn(account, id, value);
    }

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

        _burnBatch(account, ids, values);
    }
}

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


contract MagicFarm is Ownable,ReentrancyGuard {
  using SafeERC20 for IERC20;
  IERC1155 public MagicAssets;
  ERC1155Burnable public BMagicAssets;
  IERC20 public Orb;
  uint256 public price = 20*10**18;

 address payable private Wallet_Burn = payable(0x000000000000000000000000000000000000dEaD); 

  constructor(address _MagicAssets, address _Orb) {
     MagicAssets = IERC1155(_MagicAssets);
     BMagicAssets = ERC1155Burnable(_MagicAssets);
     Orb = IERC20(_Orb);
 }
  receive() external payable{}
  
  uint256 public AccumulatedRewardsPerShare;
  uint256 public TotalRewardsHarvested;
  uint256 public OldBalance;
  uint256 public StakingSlotPrice = 1000000*1e18;
  uint256 public TotalMintingPower;
  uint256 public TotalNFTStaked;
  bool public FarmStarted;
  mapping(address => mapping(uint256 => uint256)) public StakeSlot;


  struct Staker {
      uint256 MintingPower;
      uint256 totalRewards;
      uint256 totalstaked;
      uint256 rewardDebt;
      uint256 RewardsToHarvest;
      uint256 Ultimum;
      uint BirthRuneSlot;
      uint PowerRuneSlot;
      uint HarvestRuneSlot;
      uint WealthRuneSlot;
      uint SunRuneSlot;
  }
  
   mapping (address => Staker) public Stakers;
   
   function stakeNFT(address _Staker,uint256 [] memory nftids) public nonReentrant{

        Staker storage staker = Stakers[_Staker];

        for(uint i=0;i<nftids.length;i++){
         require (nftids[i]<5);
         require (MagicAssets.balanceOf(_Staker,nftids[i])>0);
        }

        ClaimRewards();  
        
        uint256[] memory Idamounts = new uint256[](nftids.length);
        uint256 addedMintingPower;
        for(uint y=0;y<nftids.length;y++){
           require (StakeSlot[_Staker][nftids[y]]<1, "NFT Asset already staked");    
           StakeSlot[_Staker][nftids[y]] = 1;
           Idamounts[y] = 1;
           if(nftids[y] == 0){
               require(staker.BirthRuneSlot>0);
               addedMintingPower = addedMintingPower + (staker.BirthRuneSlot*100);
           }
           if(nftids[y] == 1){
               require(staker.PowerRuneSlot>0);
               addedMintingPower = addedMintingPower + (staker.PowerRuneSlot*300);
           }
           if(nftids[y] == 2){
               require(staker.HarvestRuneSlot>0);
               addedMintingPower = addedMintingPower + (staker.HarvestRuneSlot*600);
           }
           if(nftids[y] == 3){
               require(staker.WealthRuneSlot>0);
               addedMintingPower = addedMintingPower + (staker.WealthRuneSlot*1500);
           }
           if(nftids[y] == 4){
               require(staker.SunRuneSlot>0);
               addedMintingPower = addedMintingPower + (staker.SunRuneSlot*5000);
           }
          }
        
        if (staker.Ultimum < 1){
            if (StakeSlot[_Staker][0]>0 && StakeSlot[_Staker][1]>0 && StakeSlot[_Staker][2]>0 && StakeSlot[_Staker][3]>0 && StakeSlot[_Staker][4]>0){
                staker.Ultimum = 1;
                addedMintingPower = addedMintingPower + 2500;
            }
        }

         for(uint k=0;k<nftids.length;k++){
         MagicAssets.safeTransferFrom(msg.sender, address(this), nftids[k], 1, "");
        }
        
        uint Current_MintingPower = staker.MintingPower + addedMintingPower;

        staker.rewardDebt = Current_MintingPower*AccumulatedRewardsPerShare;    

        staker.MintingPower = Current_MintingPower;
        TotalMintingPower = TotalMintingPower + addedMintingPower;

        staker.totalstaked = staker.totalstaked + nftids.length;
        TotalNFTStaked = TotalNFTStaked + nftids.length;

          
       
   }

   function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4) {
        return bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"));
    }
   
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4){
        return bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"));
    }
    
   function unstake(address _Staker,uint256 [] memory nftids) public nonReentrant{
        Staker storage staker = Stakers[_Staker];
        
         for(uint i=0;i<nftids.length;i++){
         require (nftids[i]<5);
        }

        ClaimRewards();
        
        uint256[] memory Idamounts = new uint256[](nftids.length);
        uint256 removedMintingPower;
        
        for(uint y=0;y<nftids.length;y++){
        require (StakeSlot[_Staker][nftids[y]]>0, "NFT Asset is not staked"); 
        StakeSlot[_Staker][nftids[y]] = 0;   
        Idamounts[y] = 1;
           nftids[y] == 0 ? removedMintingPower = removedMintingPower + (staker.BirthRuneSlot*100) :
           nftids[y] == 1 ? removedMintingPower = removedMintingPower + (staker.PowerRuneSlot*300) :
           nftids[y] == 2 ? removedMintingPower = removedMintingPower + (staker.HarvestRuneSlot*600) :
           nftids[y] == 3 ? removedMintingPower = removedMintingPower + (staker.WealthRuneSlot*1500) :
           nftids[y] == 4 ? removedMintingPower = removedMintingPower + (staker.SunRuneSlot*5000) : 0;
         }
        if (staker.Ultimum > 0){
            if (StakeSlot[_Staker][0] < 1 || StakeSlot[_Staker][1] < 1 || StakeSlot[_Staker][2] < 1 || StakeSlot[_Staker][3] < 1 || StakeSlot[_Staker][4] < 1){
                staker.Ultimum = 0;
                removedMintingPower = removedMintingPower + 2500;
            }
        }

        
        staker.MintingPower = staker.MintingPower - removedMintingPower;
        TotalMintingPower = TotalMintingPower - removedMintingPower;
        
        staker.totalstaked = staker.totalstaked - nftids.length;
        TotalNFTStaked = TotalNFTStaked - nftids.length;
        
        staker.rewardDebt = staker.MintingPower*AccumulatedRewardsPerShare;  
        
        for(uint k=0;k<nftids.length;k++){
         MagicAssets.safeTransferFrom(address(this), msg.sender, nftids[k], 1, "");
        }
   }

   function StakingSlot_Price (uint256 newStakingSlotPrice) public onlyOwner{
         StakingSlotPrice = newStakingSlotPrice;
   }

   //Unlocking stakingslots
   function UnlockAccessorySlot (uint256[] memory slotnumbers) public nonReentrant{
       require (slotnumbers.length<=5, "5 slots");
       uint256 priceToUnlock;
       Staker storage staker = Stakers[msg.sender];
       for(uint i=0;i<slotnumbers.length;i++){ 

        if (slotnumbers[i] == 1){
         require (staker.BirthRuneSlot == 0);
         priceToUnlock = priceToUnlock + (StakingSlotPrice*slotnumbers[i]);  
         staker.BirthRuneSlot = 1;  
        }
        if (slotnumbers[i] == 2){
         require (staker.PowerRuneSlot == 0);
         priceToUnlock = priceToUnlock + (StakingSlotPrice*slotnumbers[i]); 
         staker.PowerRuneSlot = 1;
        }
        if (slotnumbers[i] == 3){
         require (staker.HarvestRuneSlot == 0);
         priceToUnlock = priceToUnlock + (StakingSlotPrice*slotnumbers[i]); 
         staker.HarvestRuneSlot = 1;
        }
        if (slotnumbers[i] == 4){
         require (staker.WealthRuneSlot == 0);
         priceToUnlock = priceToUnlock + (StakingSlotPrice*slotnumbers[i]); 
         staker.WealthRuneSlot = 1;
        }
        if (slotnumbers[i] == 5){
         require (staker.SunRuneSlot == 0);
         priceToUnlock = priceToUnlock + (StakingSlotPrice*slotnumbers[i]);
         staker.SunRuneSlot = 1;
        }
     }
     require(Orb.balanceOf(msg.sender) >= priceToUnlock, "Not enough Orb tokens");
     Orb.safeTransferFrom(msg.sender,Wallet_Burn, priceToUnlock);
   }
   //boosting Accessory Slots with Magic Shards
   function boostAccessorySlot (uint256[] memory slotnumbers,uint256[] memory boostTimes) public nonReentrant{
       
       Staker storage staker = Stakers[msg.sender];

       ClaimRewards(); 
       
       uint shardsToBurn;
       uint addedMintingPower;
       for (uint i=0;i<slotnumbers.length;i++){
       if (slotnumbers[i] == 1){
           require(staker.BirthRuneSlot>0,"Slot is locked");
           require((staker.BirthRuneSlot+boostTimes[i]) <= 5);
           shardsToBurn = shardsToBurn + 10*boostTimes[i];
           if (StakeSlot[msg.sender][0]>0){
           addedMintingPower = addedMintingPower + (100*boostTimes[i]);
           }
           staker.BirthRuneSlot = staker.BirthRuneSlot + boostTimes[i];
       }
       if (slotnumbers[i] == 2){
           require(staker.PowerRuneSlot>0,"Slot is locked");
           require((staker.PowerRuneSlot+boostTimes[i]) <= 5);
           shardsToBurn = shardsToBurn + 30*boostTimes[i];
           if (StakeSlot[msg.sender][1]>0){
            addedMintingPower = addedMintingPower + (300*boostTimes[i]);
           }  
        staker.PowerRuneSlot = staker.PowerRuneSlot + boostTimes[i];
       }
       if (slotnumbers[i] == 3){
           require(staker.HarvestRuneSlot>0,"Slot is locked");
           require((staker.HarvestRuneSlot+boostTimes[i]) <= 5);
           shardsToBurn = shardsToBurn + 60*boostTimes[i];
           if (StakeSlot[msg.sender][2]>0){
             addedMintingPower = addedMintingPower + (600*boostTimes[i]);
           }  
           staker.HarvestRuneSlot = staker.HarvestRuneSlot + boostTimes[i];
       }
       if (slotnumbers[i] == 4){
           require(staker.WealthRuneSlot>0,"Slot is locked");
           require((staker.WealthRuneSlot+boostTimes[i]) <= 5);
           shardsToBurn = shardsToBurn + 150*boostTimes[i];
           if (StakeSlot[msg.sender][3]>0){
             addedMintingPower = addedMintingPower + (1500*boostTimes[i]);
           }   
           staker.WealthRuneSlot = staker.WealthRuneSlot + boostTimes[i];
       }
       if (slotnumbers[i] == 5){
           require(staker.SunRuneSlot>0,"Slot is locked");
           require((staker.SunRuneSlot+boostTimes[i]) <= 5);
           shardsToBurn = shardsToBurn + 500*boostTimes[i];
           if (StakeSlot[msg.sender][4]>0){
           addedMintingPower = addedMintingPower + (5000*boostTimes[i]);
        }  
        staker.SunRuneSlot = staker.SunRuneSlot + boostTimes[i];
       }
    }

    require (MagicAssets.balanceOf(msg.sender,5)>=shardsToBurn);

    BMagicAssets.burn(msg.sender,5,shardsToBurn);
    
    uint Current_MintingPower = staker.MintingPower + addedMintingPower;

    staker.rewardDebt = Current_MintingPower*AccumulatedRewardsPerShare;    

    staker.MintingPower = Current_MintingPower;
    TotalMintingPower = TotalMintingPower + addedMintingPower;
       
   }

   //User can claim his rewards
   function ClaimRewards() public payable {
      updatepoolbalance();
      Staker storage staker = Stakers[msg.sender];
      uint256 RewardsToHarvest = (staker.MintingPower*AccumulatedRewardsPerShare) - staker.rewardDebt;
       if (RewardsToHarvest == 0) {
            staker.rewardDebt = staker.MintingPower*AccumulatedRewardsPerShare;  
            return;
        }
      staker.rewardDebt = staker.MintingPower*AccumulatedRewardsPerShare;    
      TotalRewardsHarvested = TotalRewardsHarvested + RewardsToHarvest;
      staker.totalRewards = staker.totalRewards + RewardsToHarvest;
      payable(msg.sender).transfer(RewardsToHarvest);
   }

   //checking caller's rewards
   function CheckRewards() public view returns(uint256) {
      Staker storage staker = Stakers[msg.sender];
      uint256 newrewards = address(this).balance + TotalRewardsHarvested - OldBalance;
      uint256 newAccRewardsPerShare;
      if(TotalMintingPower>0 && FarmStarted == true){
        newAccRewardsPerShare = AccumulatedRewardsPerShare + (newrewards/TotalMintingPower);
      }
      uint256 RewardsToHarvest = (staker.MintingPower*newAccRewardsPerShare) - staker.rewardDebt;
      return RewardsToHarvest;     
   }
   
   function startTheFarm() public onlyOwner{
     FarmStarted = true;
   }

   //updates the pool prize balance and adds the claimable rewards
   function updatepoolbalance() private {
         if (TotalNFTStaked < 1 || FarmStarted == false) {
              return;
         }
         uint256 newrewards = address(this).balance + TotalRewardsHarvested - OldBalance;
         AccumulatedRewardsPerShare = AccumulatedRewardsPerShare + (newrewards/TotalMintingPower);
         OldBalance = OldBalance + newrewards;    
   }

}

contract Oracle {
    address admin;
    uint public rand;
    constructor(uint _rand)  {
        admin = msg.sender;
        rand = _rand;
    }

    function createrandomness(uint _rand) external {
        require(msg.sender == admin);
        rand = _rand;
    }
}

contract ElementalPhoenixes is ERC1155,ERC1155Burnable,ERC1155Supply, AccessControl {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

string public name = "ElementalPhoenixes";
string public symbol = "EP";
uint256 public TotalPhoenixesSummoned;
uint256 nonce;
Oracle private oracle;
MagicFarm public MFContract;

constructor(address payable _magicfarm, address _oracle) ERC1155("https://gateway.pinata.cloud/ipfs/QmbpjDFKUCHJfNgfLwBaScvTuyr8jsKYvgAftEdnohNz6Y/{id}.json") {
  _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
  _grantRole(MINTER_ROLE, msg.sender);
  MFContract = MagicFarm(_magicfarm);
  oracle = Oracle(_oracle);
}

mapping(address => bool) public Summoned;

function setURI(string memory newuri) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _setURI(newuri);
    }

function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC1155, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

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

    function mintPhoenix(address account, uint256 id, uint256 amount) external onlyRole(MINTER_ROLE) {
        _mint(account, id, amount, "");
    }   
    
    function mintPhoenixBanch(address account, uint256[] memory ids, uint256[] memory amounts) external onlyRole(MINTER_ROLE) {
       for(uint i=0;i<ids.length;i++){
        _mint(account, ids[i], amounts[i], "");
       }
    }   
    
    function burnPhoenixBanch(address account, uint256[] memory ids, uint256[] memory amounts) external onlyRole(MINTER_ROLE) {
       for(uint i=0;i<ids.length;i++){
       _burn(account,ids[i],amounts[i]);
       }
    }   

function SummonThePhoenix() public {
    require(Summoned[msg.sender] == false,"Already Summoned");
    (, , , , , uint256 Ultimum, uint256 BirthRuneSlot, uint256 PowerRuneSlot, uint256 HarvestRuneSlot, uint256 WealthRuneSlot, uint256 SunRuneSlot) = readStaker(msg.sender);
    if (Ultimum<1 || BirthRuneSlot<5 || PowerRuneSlot<5 || HarvestRuneSlot<5 || WealthRuneSlot<5 || SunRuneSlot<5) 
    {
       return;
    }
    uint256 index = uint256 (keccak256(abi.encodePacked(nonce, oracle.rand(), block.timestamp, msg.sender)))%100;
    nonce ++;
    Summoned[msg.sender] = true;
    TotalPhoenixesSummoned ++;
    if (index<=49) {
       _mint(msg.sender, 0, 1, "");
    }
    if (index>=50) {
       _mint(msg.sender, 1, 1, "");
    }
 }

 function readStaker (address Staker) public view returns (uint256, uint256, uint256,uint256, uint256, uint256,uint256, uint256, uint256,uint256, uint256) {
        return MFContract.Stakers(Staker);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_magicfarm","type":"address"},{"internalType":"address","name":"_oracle","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MFContract","outputs":[{"internalType":"contract MagicFarm","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SummonThePhoenix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"Summoned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TotalPhoenixesSummoned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"burnPhoenixBanch","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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintPhoenix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mintPhoenixBanch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Staker","type":"address"}],"name":"readStaker","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60c06040526012608090815271456c656d656e74616c50686f656e6978657360701b60a05260059062000033908262000279565b50604080518082019091526002815261045560f41b60208201526006906200005c908262000279565b503480156200006a57600080fd5b5060405162002e5138038062002e518339810160408190526200008d916200035e565b6040518060800160405280605a815260200162002df7605a9139620000b2816200011e565b50620000c060003362000130565b620000ec7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000130565b600a80546001600160a01b039384166001600160a01b031991821617909155600980549290931691161790556200039d565b60026200012c828262000279565b5050565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff166200012c5760008281526004602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001903390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001ff57607f821691505b6020821081036200022057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200027457600081815260208120601f850160051c810160208610156200024f5750805b601f850160051c820191505b8181101562000270578281556001016200025b565b5050505b505050565b81516001600160401b03811115620002955762000295620001d4565b620002ad81620002a68454620001ea565b8462000226565b602080601f831160018114620002e55760008415620002cc5750858301515b600019600386901b1c1916600185901b17855562000270565b600085815260208120601f198616915b828110156200031657888601518255948401946001909101908401620002f5565b5085821015620003355787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03811681146200035b57600080fd5b50565b600080604083850312156200037257600080fd5b82516200037f8162000345565b6020840151909250620003928162000345565b809150509250929050565b612a4a80620003ad6000396000f3fe608060405234801561001057600080fd5b50600436106101d95760003560e01c806375c3cc0d11610104578063cfd7921a116100a2578063e985e9c511610071578063e985e9c51461047e578063efe8f191146104ba578063f242432a146104cd578063f5298aca146104e057600080fd5b8063cfd7921a14610445578063d53913931461044e578063d547741f14610463578063e337c4361461047657600080fd5b80639f273ab8116100de5780639f273ab8146103f7578063a217fddf1461040a578063a22cb46514610412578063bd85b0391461042557600080fd5b806375c3cc0d146103c957806391d14854146103dc57806395d89b41146103ef57600080fd5b80632f2ff15d1161017c5780635c0c18531161014b5780635c0c1853146103025780636b20c454146103255780636b523a53146103385780636b5f2fc71461036357600080fd5b80632f2ff15d1461029a57806336568abe146102ad5780634e1273f4146102c05780634f558e79146102e057600080fd5b806306fdde03116101b857806306fdde031461023c5780630e89341c14610251578063248a9ca3146102645780632eb2c2d61461028757600080fd5b8062fdd58e146101de57806301ffc9a71461020457806302fe530514610227575b600080fd5b6101f16101ec366004611d80565b6104f3565b6040519081526020015b60405180910390f35b610217610212366004611dc0565b61058c565b60405190151581526020016101fb565b61023a610235366004611e7e565b610597565b005b6102446105af565b6040516101fb9190611f1f565b61024461025f366004611f32565b61063d565b6101f1610272366004611f32565b60009081526004602052604090206001015490565b61023a610295366004612000565b6106d1565b61023a6102a83660046120aa565b610768565b61023a6102bb3660046120aa565b610792565b6102d36102ce3660046120d6565b61080c565b6040516101fb91906121dc565b6102176102ee366004611f32565b600090815260036020526040902054151590565b6102176103103660046121ef565b600b6020526000908152604090205460ff1681565b61023a61033336600461220a565b610936565b600a5461034b906001600160a01b031681565b6040516001600160a01b0390911681526020016101fb565b6103766103713660046121ef565b610979565b604080519b8c5260208c019a909a52988a01979097526060890195909552608088019390935260a087019190915260c086015260e0850152610100840152610120830152610140820152610160016101fb565b61023a6103d736600461220a565b610a23565b6102176103ea3660046120aa565b610aa6565b610244610ad1565b61023a61040536600461227e565b610ade565b6101f1600081565b61023a6104203660046122b1565b610b17565b6101f1610433366004611f32565b60009081526003602052604090205490565b6101f160075481565b6101f16000805160206129f583398151915281565b61023a6104713660046120aa565b610b22565b61023a610b47565b61021761048c3660046122ed565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61023a6104c836600461220a565b610d6f565b61023a6104db366004612317565b610de2565b61023a6104ee36600461227e565b610e27565b60006001600160a01b0383166105635760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b600061058682610e6a565b60006105a281610e8f565b6105ab82610e9c565b5050565b600580546105bc9061237c565b80601f01602080910402602001604051908101604052809291908181526020018280546105e89061237c565b80156106355780601f1061060a57610100808354040283529160200191610635565b820191906000526020600020905b81548152906001019060200180831161061857829003601f168201915b505050505081565b60606002805461064c9061237c565b80601f01602080910402602001604051908101604052809291908181526020018280546106789061237c565b80156106c55780601f1061069a576101008083540402835291602001916106c5565b820191906000526020600020905b8154815290600101906020018083116106a857829003601f168201915b50505050509050919050565b6001600160a01b0385163314806106ed57506106ed853361048c565b6107545760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161055a565b6107618585858585610ea8565b5050505050565b60008281526004602052604090206001015461078381610e8f565b61078d8383611052565b505050565b6001600160a01b03811633146108025760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161055a565b6105ab82826110d8565b606081518351146108715760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161055a565b6000835167ffffffffffffffff81111561088d5761088d611ddd565b6040519080825280602002602001820160405280156108b6578160200160208202803683370190505b50905060005b845181101561092e576109018582815181106108da576108da6123b6565b60200260200101518583815181106108f4576108f46123b6565b60200260200101516104f3565b828281518110610913576109136123b6565b6020908102919091010152610927816123e2565b90506108bc565b509392505050565b6001600160a01b0383163314806109525750610952833361048c565b61096e5760405162461bcd60e51b815260040161055a906123fb565b61078d83838361113f565b600a5460405163ede85eb760e01b81526001600160a01b038381166004830152600092839283928392839283928392839283928392839291169063ede85eb79060240161016060405180830381865afa1580156109da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fe9190612444565b9a509a509a509a509a509a509a509a509a509a509a5091939597999b90929496989a50565b6000805160206129f5833981519152610a3b81610e8f565b60005b835181101561076157610a9485858381518110610a5d57610a5d6123b6565b6020026020010151858481518110610a7757610a776123b6565b6020026020010151604051806020016040528060008152506112db565b80610a9e816123e2565b915050610a3e565b60009182526004602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600680546105bc9061237c565b6000805160206129f5833981519152610af681610e8f565b610b11848484604051806020016040528060008152506112db565b50505050565b6105ab3383836113f5565b600082815260046020526040902060010154610b3d81610e8f565b61078d83836110d8565b336000908152600b602052604090205460ff1615610b9a5760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e4814dd5b5b5bdb995960821b604482015260640161055a565b600080600080600080610bac33610979565b9a509a509a509a509a509a5050505050506001861080610bcc5750600585105b80610bd75750600584105b80610be25750600583105b80610bed5750600582105b80610bf85750600581105b15610c0557505050505050565b60006064600854600960009054906101000a90046001600160a01b03166001600160a01b0316633b3dca766040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8391906124c3565b6040805160208101939093528201524260608083019190915233901b6bffffffffffffffffffffffff191660808201526094016040516020818303038152906040528051906020012060001c610cd991906124dc565b600880549192506000610ceb836123e2565b9091555050336000908152600b60205260408120805460ff191660011790556007805491610d18836123e2565b919050555060318111610d4257610d423360006001604051806020016040528060008152506112db565b60328110610d6657610d6633600180604051806020016040528060008152506112db565b50505050505050565b6000805160206129f5833981519152610d8781610e8f565b60005b835181101561076157610dd085858381518110610da957610da96123b6565b6020026020010151858481518110610dc357610dc36123b6565b60200260200101516114d5565b80610dda816123e2565b915050610d8a565b6001600160a01b038516331480610dfe5750610dfe853361048c565b610e1a5760405162461bcd60e51b815260040161055a906123fb565b61076185858585856115ed565b6001600160a01b038316331480610e435750610e43833361048c565b610e5f5760405162461bcd60e51b815260040161055a906123fb565b61078d8383836114d5565b60006001600160e01b03198216637965db0b60e01b1480610586575061058682611725565b610e998133611775565b50565b60026105ab8282612544565b8151835114610ec95760405162461bcd60e51b815260040161055a90612604565b6001600160a01b038416610eef5760405162461bcd60e51b815260040161055a9061264c565b33610efe8187878787876117d9565b60005b8451811015610fe4576000858281518110610f1e57610f1e6123b6565b602002602001015190506000858381518110610f3c57610f3c6123b6565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610f8c5760405162461bcd60e51b815260040161055a90612691565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610fc99084906126db565b9250508190555050505080610fdd906123e2565b9050610f01565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516110349291906126ee565b60405180910390a461104a8187878787876117e7565b505050505050565b61105c8282610aa6565b6105ab5760008281526004602090815260408083206001600160a01b03851684529091529020805460ff191660011790556110943390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6110e28282610aa6565b156105ab5760008281526004602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0383166111655760405162461bcd60e51b815260040161055a9061271c565b80518251146111865760405162461bcd60e51b815260040161055a90612604565b60003390506111a9818560008686604051806020016040528060008152506117d9565b60005b835181101561126e5760008482815181106111c9576111c96123b6565b6020026020010151905060008483815181106111e7576111e76123b6565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156112375760405162461bcd60e51b815260040161055a9061275f565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611266816123e2565b9150506111ac565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516112bf9291906126ee565b60405180910390a4604080516020810190915260009052610b11565b6001600160a01b03841661133b5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161055a565b33600061134785611942565b9050600061135485611942565b9050611365836000898585896117d9565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906113959084906126db565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610d668360008989898961198d565b816001600160a01b0316836001600160a01b0316036114685760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161055a565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166114fb5760405162461bcd60e51b815260040161055a9061271c565b33600061150784611942565b9050600061151484611942565b9050611534838760008585604051806020016040528060008152506117d9565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156115755760405162461bcd60e51b815260040161055a9061275f565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052610d66565b6001600160a01b0384166116135760405162461bcd60e51b815260040161055a9061264c565b33600061161f85611942565b9050600061162c85611942565b905061163c8389898585896117d9565b6000868152602081815260408083206001600160a01b038c1684529091529020548581101561167d5760405162461bcd60e51b815260040161055a90612691565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906116ba9084906126db565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461171a848a8a8a8a8a61198d565b505050505050505050565b60006001600160e01b03198216636cdb3d1360e11b148061175657506001600160e01b031982166303a24d0760e21b145b8061058657506301ffc9a760e01b6001600160e01b0319831614610586565b61177f8282610aa6565b6105ab57611797816001600160a01b03166014611a48565b6117a2836020611a48565b6040516020016117b39291906127a3565b60408051601f198184030181529082905262461bcd60e51b825261055a91600401611f1f565b61104a868686868686611beb565b6001600160a01b0384163b1561104a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061182b9089908990889088908890600401612818565b6020604051808303816000875af1925050508015611866575060408051601f3d908101601f1916820190925261186391810190612876565b60015b61191257611872612893565b806308c379a0036118ab57506118866128af565b8061189157506118ad565b8060405162461bcd60e51b815260040161055a9190611f1f565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161055a565b6001600160e01b0319811663bc197c8160e01b14610d665760405162461bcd60e51b815260040161055a90612939565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061197c5761197c6123b6565b602090810291909101015292915050565b6001600160a01b0384163b1561104a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906119d19089908990889088908890600401612981565b6020604051808303816000875af1925050508015611a0c575060408051601f3d908101601f19168201909252611a0991810190612876565b60015b611a1857611872612893565b6001600160e01b0319811663f23a6e6160e01b14610d665760405162461bcd60e51b815260040161055a90612939565b60606000611a578360026129c6565b611a629060026126db565b67ffffffffffffffff811115611a7a57611a7a611ddd565b6040519080825280601f01601f191660200182016040528015611aa4576020820181803683370190505b509050600360fc1b81600081518110611abf57611abf6123b6565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611aee57611aee6123b6565b60200101906001600160f81b031916908160001a9053506000611b128460026129c6565b611b1d9060016126db565b90505b6001811115611b95576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611b5157611b516123b6565b1a60f81b828281518110611b6757611b676123b6565b60200101906001600160f81b031916908160001a90535060049490941c93611b8e816129dd565b9050611b20565b508315611be45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161055a565b9392505050565b6001600160a01b038516611c725760005b8351811015611c7057828181518110611c1757611c176123b6565b602002602001015160036000868481518110611c3557611c356123b6565b602002602001015181526020019081526020016000206000828254611c5a91906126db565b90915550611c699050816123e2565b9050611bfc565b505b6001600160a01b03841661104a5760005b8351811015610d66576000848281518110611ca057611ca06123b6565b602002602001015190506000848381518110611cbe57611cbe6123b6565b6020026020010151905060006003600084815260200190815260200160002054905081811015611d415760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b606482015260840161055a565b60009283526003602052604090922091039055611d5d816123e2565b9050611c83565b80356001600160a01b0381168114611d7b57600080fd5b919050565b60008060408385031215611d9357600080fd5b611d9c83611d64565b946020939093013593505050565b6001600160e01b031981168114610e9957600080fd5b600060208284031215611dd257600080fd5b8135611be481611daa565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611e1957611e19611ddd565b6040525050565b600067ffffffffffffffff831115611e3a57611e3a611ddd565b604051611e51601f8501601f191660200182611df3565b809150838152848484011115611e6657600080fd5b83836020830137600060208583010152509392505050565b600060208284031215611e9057600080fd5b813567ffffffffffffffff811115611ea757600080fd5b8201601f81018413611eb857600080fd5b611ec784823560208401611e20565b949350505050565b60005b83811015611eea578181015183820152602001611ed2565b50506000910152565b60008151808452611f0b816020860160208601611ecf565b601f01601f19169290920160200192915050565b602081526000611be46020830184611ef3565b600060208284031215611f4457600080fd5b5035919050565b600067ffffffffffffffff821115611f6557611f65611ddd565b5060051b60200190565b600082601f830112611f8057600080fd5b81356020611f8d82611f4b565b604051611f9a8282611df3565b83815260059390931b8501820192828101915086841115611fba57600080fd5b8286015b84811015611fd55780358352918301918301611fbe565b509695505050505050565b600082601f830112611ff157600080fd5b611be483833560208501611e20565b600080600080600060a0868803121561201857600080fd5b61202186611d64565b945061202f60208701611d64565b9350604086013567ffffffffffffffff8082111561204c57600080fd5b61205889838a01611f6f565b9450606088013591508082111561206e57600080fd5b61207a89838a01611f6f565b9350608088013591508082111561209057600080fd5b5061209d88828901611fe0565b9150509295509295909350565b600080604083850312156120bd57600080fd5b823591506120cd60208401611d64565b90509250929050565b600080604083850312156120e957600080fd5b823567ffffffffffffffff8082111561210157600080fd5b818501915085601f83011261211557600080fd5b8135602061212282611f4b565b60405161212f8282611df3565b83815260059390931b850182019282810191508984111561214f57600080fd5b948201945b838610156121745761216586611d64565b82529482019490820190612154565b9650508601359250508082111561218a57600080fd5b5061219785828601611f6f565b9150509250929050565b600081518084526020808501945080840160005b838110156121d1578151875295820195908201906001016121b5565b509495945050505050565b602081526000611be460208301846121a1565b60006020828403121561220157600080fd5b611be482611d64565b60008060006060848603121561221f57600080fd5b61222884611d64565b9250602084013567ffffffffffffffff8082111561224557600080fd5b61225187838801611f6f565b9350604086013591508082111561226757600080fd5b5061227486828701611f6f565b9150509250925092565b60008060006060848603121561229357600080fd5b61229c84611d64565b95602085013595506040909401359392505050565b600080604083850312156122c457600080fd5b6122cd83611d64565b9150602083013580151581146122e257600080fd5b809150509250929050565b6000806040838503121561230057600080fd5b61230983611d64565b91506120cd60208401611d64565b600080600080600060a0868803121561232f57600080fd5b61233886611d64565b945061234660208701611d64565b93506040860135925060608601359150608086013567ffffffffffffffff81111561237057600080fd5b61209d88828901611fe0565b600181811c9082168061239057607f821691505b6020821081036123b057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016123f4576123f46123cc565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60008060008060008060008060008060006101608c8e03121561246657600080fd5b8b519a5060208c0151995060408c0151985060608c0151975060808c0151965060a08c0151955060c08c0151945060e08c015193506101008c015192506101208c015191506101408c015190509295989b509295989b9093969950565b6000602082840312156124d557600080fd5b5051919050565b6000826124f957634e487b7160e01b600052601260045260246000fd5b500690565b601f82111561078d57600081815260208120601f850160051c810160208610156125255750805b601f850160051c820191505b8181101561104a57828155600101612531565b815167ffffffffffffffff81111561255e5761255e611ddd565b6125728161256c845461237c565b846124fe565b602080601f8311600181146125a7576000841561258f5750858301515b600019600386901b1c1916600185901b17855561104a565b600085815260208120601f198616915b828110156125d6578886015182559484019460019091019084016125b7565b50858210156125f45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b80820180821115610586576105866123cc565b60408152600061270160408301856121a1565b828103602084015261271381856121a1565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516127db816017850160208801611ecf565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161280c816028840160208801611ecf565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612844908301866121a1565b828103606084015261285681866121a1565b9050828103608084015261286a8185611ef3565b98975050505050505050565b60006020828403121561288857600080fd5b8151611be481611daa565b600060033d11156128ac5760046000803e5060005160e01c5b90565b600060443d10156128bd5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156128ed57505050505090565b82850191508151818111156129055750505050505090565b843d870101602082850101111561291f5750505050505090565b61292e60208286010187611df3565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906129bb90830184611ef3565b979650505050505050565b8082028115828204841417610586576105866123cc565b6000816129ec576129ec6123cc565b50600019019056fe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a26469706673582212209663c352ef23f56256ee394bd685e2e9b4167a57dc2cb887545961bda460e59664736f6c6343000812003368747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d62706a44464b5543484a664e67664c77426153637654757972386a734b59766741667445646e6f684e7a36592f7b69647d2e6a736f6e00000000000000000000000060abad422bed8a46d7a320d90eb0ec2110034e5c000000000000000000000000bc0b857f05445404308417533bd1dff9d165c344

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101d95760003560e01c806375c3cc0d11610104578063cfd7921a116100a2578063e985e9c511610071578063e985e9c51461047e578063efe8f191146104ba578063f242432a146104cd578063f5298aca146104e057600080fd5b8063cfd7921a14610445578063d53913931461044e578063d547741f14610463578063e337c4361461047657600080fd5b80639f273ab8116100de5780639f273ab8146103f7578063a217fddf1461040a578063a22cb46514610412578063bd85b0391461042557600080fd5b806375c3cc0d146103c957806391d14854146103dc57806395d89b41146103ef57600080fd5b80632f2ff15d1161017c5780635c0c18531161014b5780635c0c1853146103025780636b20c454146103255780636b523a53146103385780636b5f2fc71461036357600080fd5b80632f2ff15d1461029a57806336568abe146102ad5780634e1273f4146102c05780634f558e79146102e057600080fd5b806306fdde03116101b857806306fdde031461023c5780630e89341c14610251578063248a9ca3146102645780632eb2c2d61461028757600080fd5b8062fdd58e146101de57806301ffc9a71461020457806302fe530514610227575b600080fd5b6101f16101ec366004611d80565b6104f3565b6040519081526020015b60405180910390f35b610217610212366004611dc0565b61058c565b60405190151581526020016101fb565b61023a610235366004611e7e565b610597565b005b6102446105af565b6040516101fb9190611f1f565b61024461025f366004611f32565b61063d565b6101f1610272366004611f32565b60009081526004602052604090206001015490565b61023a610295366004612000565b6106d1565b61023a6102a83660046120aa565b610768565b61023a6102bb3660046120aa565b610792565b6102d36102ce3660046120d6565b61080c565b6040516101fb91906121dc565b6102176102ee366004611f32565b600090815260036020526040902054151590565b6102176103103660046121ef565b600b6020526000908152604090205460ff1681565b61023a61033336600461220a565b610936565b600a5461034b906001600160a01b031681565b6040516001600160a01b0390911681526020016101fb565b6103766103713660046121ef565b610979565b604080519b8c5260208c019a909a52988a01979097526060890195909552608088019390935260a087019190915260c086015260e0850152610100840152610120830152610140820152610160016101fb565b61023a6103d736600461220a565b610a23565b6102176103ea3660046120aa565b610aa6565b610244610ad1565b61023a61040536600461227e565b610ade565b6101f1600081565b61023a6104203660046122b1565b610b17565b6101f1610433366004611f32565b60009081526003602052604090205490565b6101f160075481565b6101f16000805160206129f583398151915281565b61023a6104713660046120aa565b610b22565b61023a610b47565b61021761048c3660046122ed565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61023a6104c836600461220a565b610d6f565b61023a6104db366004612317565b610de2565b61023a6104ee36600461227e565b610e27565b60006001600160a01b0383166105635760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b600061058682610e6a565b60006105a281610e8f565b6105ab82610e9c565b5050565b600580546105bc9061237c565b80601f01602080910402602001604051908101604052809291908181526020018280546105e89061237c565b80156106355780601f1061060a57610100808354040283529160200191610635565b820191906000526020600020905b81548152906001019060200180831161061857829003601f168201915b505050505081565b60606002805461064c9061237c565b80601f01602080910402602001604051908101604052809291908181526020018280546106789061237c565b80156106c55780601f1061069a576101008083540402835291602001916106c5565b820191906000526020600020905b8154815290600101906020018083116106a857829003601f168201915b50505050509050919050565b6001600160a01b0385163314806106ed57506106ed853361048c565b6107545760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161055a565b6107618585858585610ea8565b5050505050565b60008281526004602052604090206001015461078381610e8f565b61078d8383611052565b505050565b6001600160a01b03811633146108025760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161055a565b6105ab82826110d8565b606081518351146108715760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161055a565b6000835167ffffffffffffffff81111561088d5761088d611ddd565b6040519080825280602002602001820160405280156108b6578160200160208202803683370190505b50905060005b845181101561092e576109018582815181106108da576108da6123b6565b60200260200101518583815181106108f4576108f46123b6565b60200260200101516104f3565b828281518110610913576109136123b6565b6020908102919091010152610927816123e2565b90506108bc565b509392505050565b6001600160a01b0383163314806109525750610952833361048c565b61096e5760405162461bcd60e51b815260040161055a906123fb565b61078d83838361113f565b600a5460405163ede85eb760e01b81526001600160a01b038381166004830152600092839283928392839283928392839283928392839291169063ede85eb79060240161016060405180830381865afa1580156109da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fe9190612444565b9a509a509a509a509a509a509a509a509a509a509a5091939597999b90929496989a50565b6000805160206129f5833981519152610a3b81610e8f565b60005b835181101561076157610a9485858381518110610a5d57610a5d6123b6565b6020026020010151858481518110610a7757610a776123b6565b6020026020010151604051806020016040528060008152506112db565b80610a9e816123e2565b915050610a3e565b60009182526004602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600680546105bc9061237c565b6000805160206129f5833981519152610af681610e8f565b610b11848484604051806020016040528060008152506112db565b50505050565b6105ab3383836113f5565b600082815260046020526040902060010154610b3d81610e8f565b61078d83836110d8565b336000908152600b602052604090205460ff1615610b9a5760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e4814dd5b5b5bdb995960821b604482015260640161055a565b600080600080600080610bac33610979565b9a509a509a509a509a509a5050505050506001861080610bcc5750600585105b80610bd75750600584105b80610be25750600583105b80610bed5750600582105b80610bf85750600581105b15610c0557505050505050565b60006064600854600960009054906101000a90046001600160a01b03166001600160a01b0316633b3dca766040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8391906124c3565b6040805160208101939093528201524260608083019190915233901b6bffffffffffffffffffffffff191660808201526094016040516020818303038152906040528051906020012060001c610cd991906124dc565b600880549192506000610ceb836123e2565b9091555050336000908152600b60205260408120805460ff191660011790556007805491610d18836123e2565b919050555060318111610d4257610d423360006001604051806020016040528060008152506112db565b60328110610d6657610d6633600180604051806020016040528060008152506112db565b50505050505050565b6000805160206129f5833981519152610d8781610e8f565b60005b835181101561076157610dd085858381518110610da957610da96123b6565b6020026020010151858481518110610dc357610dc36123b6565b60200260200101516114d5565b80610dda816123e2565b915050610d8a565b6001600160a01b038516331480610dfe5750610dfe853361048c565b610e1a5760405162461bcd60e51b815260040161055a906123fb565b61076185858585856115ed565b6001600160a01b038316331480610e435750610e43833361048c565b610e5f5760405162461bcd60e51b815260040161055a906123fb565b61078d8383836114d5565b60006001600160e01b03198216637965db0b60e01b1480610586575061058682611725565b610e998133611775565b50565b60026105ab8282612544565b8151835114610ec95760405162461bcd60e51b815260040161055a90612604565b6001600160a01b038416610eef5760405162461bcd60e51b815260040161055a9061264c565b33610efe8187878787876117d9565b60005b8451811015610fe4576000858281518110610f1e57610f1e6123b6565b602002602001015190506000858381518110610f3c57610f3c6123b6565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610f8c5760405162461bcd60e51b815260040161055a90612691565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610fc99084906126db565b9250508190555050505080610fdd906123e2565b9050610f01565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516110349291906126ee565b60405180910390a461104a8187878787876117e7565b505050505050565b61105c8282610aa6565b6105ab5760008281526004602090815260408083206001600160a01b03851684529091529020805460ff191660011790556110943390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6110e28282610aa6565b156105ab5760008281526004602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0383166111655760405162461bcd60e51b815260040161055a9061271c565b80518251146111865760405162461bcd60e51b815260040161055a90612604565b60003390506111a9818560008686604051806020016040528060008152506117d9565b60005b835181101561126e5760008482815181106111c9576111c96123b6565b6020026020010151905060008483815181106111e7576111e76123b6565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156112375760405162461bcd60e51b815260040161055a9061275f565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611266816123e2565b9150506111ac565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516112bf9291906126ee565b60405180910390a4604080516020810190915260009052610b11565b6001600160a01b03841661133b5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161055a565b33600061134785611942565b9050600061135485611942565b9050611365836000898585896117d9565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906113959084906126db565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610d668360008989898961198d565b816001600160a01b0316836001600160a01b0316036114685760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161055a565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166114fb5760405162461bcd60e51b815260040161055a9061271c565b33600061150784611942565b9050600061151484611942565b9050611534838760008585604051806020016040528060008152506117d9565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156115755760405162461bcd60e51b815260040161055a9061275f565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052610d66565b6001600160a01b0384166116135760405162461bcd60e51b815260040161055a9061264c565b33600061161f85611942565b9050600061162c85611942565b905061163c8389898585896117d9565b6000868152602081815260408083206001600160a01b038c1684529091529020548581101561167d5760405162461bcd60e51b815260040161055a90612691565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906116ba9084906126db565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461171a848a8a8a8a8a61198d565b505050505050505050565b60006001600160e01b03198216636cdb3d1360e11b148061175657506001600160e01b031982166303a24d0760e21b145b8061058657506301ffc9a760e01b6001600160e01b0319831614610586565b61177f8282610aa6565b6105ab57611797816001600160a01b03166014611a48565b6117a2836020611a48565b6040516020016117b39291906127a3565b60408051601f198184030181529082905262461bcd60e51b825261055a91600401611f1f565b61104a868686868686611beb565b6001600160a01b0384163b1561104a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061182b9089908990889088908890600401612818565b6020604051808303816000875af1925050508015611866575060408051601f3d908101601f1916820190925261186391810190612876565b60015b61191257611872612893565b806308c379a0036118ab57506118866128af565b8061189157506118ad565b8060405162461bcd60e51b815260040161055a9190611f1f565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161055a565b6001600160e01b0319811663bc197c8160e01b14610d665760405162461bcd60e51b815260040161055a90612939565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061197c5761197c6123b6565b602090810291909101015292915050565b6001600160a01b0384163b1561104a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906119d19089908990889088908890600401612981565b6020604051808303816000875af1925050508015611a0c575060408051601f3d908101601f19168201909252611a0991810190612876565b60015b611a1857611872612893565b6001600160e01b0319811663f23a6e6160e01b14610d665760405162461bcd60e51b815260040161055a90612939565b60606000611a578360026129c6565b611a629060026126db565b67ffffffffffffffff811115611a7a57611a7a611ddd565b6040519080825280601f01601f191660200182016040528015611aa4576020820181803683370190505b509050600360fc1b81600081518110611abf57611abf6123b6565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611aee57611aee6123b6565b60200101906001600160f81b031916908160001a9053506000611b128460026129c6565b611b1d9060016126db565b90505b6001811115611b95576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611b5157611b516123b6565b1a60f81b828281518110611b6757611b676123b6565b60200101906001600160f81b031916908160001a90535060049490941c93611b8e816129dd565b9050611b20565b508315611be45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161055a565b9392505050565b6001600160a01b038516611c725760005b8351811015611c7057828181518110611c1757611c176123b6565b602002602001015160036000868481518110611c3557611c356123b6565b602002602001015181526020019081526020016000206000828254611c5a91906126db565b90915550611c699050816123e2565b9050611bfc565b505b6001600160a01b03841661104a5760005b8351811015610d66576000848281518110611ca057611ca06123b6565b602002602001015190506000848381518110611cbe57611cbe6123b6565b6020026020010151905060006003600084815260200190815260200160002054905081811015611d415760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b606482015260840161055a565b60009283526003602052604090922091039055611d5d816123e2565b9050611c83565b80356001600160a01b0381168114611d7b57600080fd5b919050565b60008060408385031215611d9357600080fd5b611d9c83611d64565b946020939093013593505050565b6001600160e01b031981168114610e9957600080fd5b600060208284031215611dd257600080fd5b8135611be481611daa565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611e1957611e19611ddd565b6040525050565b600067ffffffffffffffff831115611e3a57611e3a611ddd565b604051611e51601f8501601f191660200182611df3565b809150838152848484011115611e6657600080fd5b83836020830137600060208583010152509392505050565b600060208284031215611e9057600080fd5b813567ffffffffffffffff811115611ea757600080fd5b8201601f81018413611eb857600080fd5b611ec784823560208401611e20565b949350505050565b60005b83811015611eea578181015183820152602001611ed2565b50506000910152565b60008151808452611f0b816020860160208601611ecf565b601f01601f19169290920160200192915050565b602081526000611be46020830184611ef3565b600060208284031215611f4457600080fd5b5035919050565b600067ffffffffffffffff821115611f6557611f65611ddd565b5060051b60200190565b600082601f830112611f8057600080fd5b81356020611f8d82611f4b565b604051611f9a8282611df3565b83815260059390931b8501820192828101915086841115611fba57600080fd5b8286015b84811015611fd55780358352918301918301611fbe565b509695505050505050565b600082601f830112611ff157600080fd5b611be483833560208501611e20565b600080600080600060a0868803121561201857600080fd5b61202186611d64565b945061202f60208701611d64565b9350604086013567ffffffffffffffff8082111561204c57600080fd5b61205889838a01611f6f565b9450606088013591508082111561206e57600080fd5b61207a89838a01611f6f565b9350608088013591508082111561209057600080fd5b5061209d88828901611fe0565b9150509295509295909350565b600080604083850312156120bd57600080fd5b823591506120cd60208401611d64565b90509250929050565b600080604083850312156120e957600080fd5b823567ffffffffffffffff8082111561210157600080fd5b818501915085601f83011261211557600080fd5b8135602061212282611f4b565b60405161212f8282611df3565b83815260059390931b850182019282810191508984111561214f57600080fd5b948201945b838610156121745761216586611d64565b82529482019490820190612154565b9650508601359250508082111561218a57600080fd5b5061219785828601611f6f565b9150509250929050565b600081518084526020808501945080840160005b838110156121d1578151875295820195908201906001016121b5565b509495945050505050565b602081526000611be460208301846121a1565b60006020828403121561220157600080fd5b611be482611d64565b60008060006060848603121561221f57600080fd5b61222884611d64565b9250602084013567ffffffffffffffff8082111561224557600080fd5b61225187838801611f6f565b9350604086013591508082111561226757600080fd5b5061227486828701611f6f565b9150509250925092565b60008060006060848603121561229357600080fd5b61229c84611d64565b95602085013595506040909401359392505050565b600080604083850312156122c457600080fd5b6122cd83611d64565b9150602083013580151581146122e257600080fd5b809150509250929050565b6000806040838503121561230057600080fd5b61230983611d64565b91506120cd60208401611d64565b600080600080600060a0868803121561232f57600080fd5b61233886611d64565b945061234660208701611d64565b93506040860135925060608601359150608086013567ffffffffffffffff81111561237057600080fd5b61209d88828901611fe0565b600181811c9082168061239057607f821691505b6020821081036123b057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016123f4576123f46123cc565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60008060008060008060008060008060006101608c8e03121561246657600080fd5b8b519a5060208c0151995060408c0151985060608c0151975060808c0151965060a08c0151955060c08c0151945060e08c015193506101008c015192506101208c015191506101408c015190509295989b509295989b9093969950565b6000602082840312156124d557600080fd5b5051919050565b6000826124f957634e487b7160e01b600052601260045260246000fd5b500690565b601f82111561078d57600081815260208120601f850160051c810160208610156125255750805b601f850160051c820191505b8181101561104a57828155600101612531565b815167ffffffffffffffff81111561255e5761255e611ddd565b6125728161256c845461237c565b846124fe565b602080601f8311600181146125a7576000841561258f5750858301515b600019600386901b1c1916600185901b17855561104a565b600085815260208120601f198616915b828110156125d6578886015182559484019460019091019084016125b7565b50858210156125f45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b80820180821115610586576105866123cc565b60408152600061270160408301856121a1565b828103602084015261271381856121a1565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516127db816017850160208801611ecf565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161280c816028840160208801611ecf565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612844908301866121a1565b828103606084015261285681866121a1565b9050828103608084015261286a8185611ef3565b98975050505050505050565b60006020828403121561288857600080fd5b8151611be481611daa565b600060033d11156128ac5760046000803e5060005160e01c5b90565b600060443d10156128bd5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156128ed57505050505090565b82850191508151818111156129055750505050505090565b843d870101602082850101111561291f5750505050505090565b61292e60208286010187611df3565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906129bb90830184611ef3565b979650505050505050565b8082028115828204841417610586576105866123cc565b6000816129ec576129ec6123cc565b50600019019056fe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a26469706673582212209663c352ef23f56256ee394bd685e2e9b4167a57dc2cb887545961bda460e59664736f6c63430008120033

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

00000000000000000000000060abad422bed8a46d7a320d90eb0ec2110034e5c000000000000000000000000bc0b857f05445404308417533bd1dff9d165c344

-----Decoded View---------------
Arg [0] : _magicfarm (address): 0x60abAD422BEd8a46D7a320d90Eb0EC2110034E5c
Arg [1] : _oracle (address): 0xbC0b857F05445404308417533Bd1dff9d165c344

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000060abad422bed8a46d7a320d90eb0ec2110034e5c
Arg [1] : 000000000000000000000000bc0b857f05445404308417533bd1dff9d165c344


Deployed Bytecode Sourcemap

96817:2935:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65440:230;;;;;;:::i;:::-;;:::i;:::-;;;597:25:1;;;585:2;570:18;65440:230:0;;;;;;;;97636:210;;;;;;:::i;:::-;;:::i;:::-;;;1184:14:1;;1177:22;1159:41;;1147:2;1132:18;97636:210:0;1019:187:1;97524:108:0;;;;;;:::i;:::-;;:::i;:::-;;96971:41;;;:::i;:::-;;;;;;;:::i;65184:105::-;;;;;;:::i;:::-;;:::i;57109:131::-;;;;;;:::i;:::-;57183:7;57210:12;;;:6;:12;;;;;:22;;;;57109:131;67378:442;;;;;;:::i;:::-;;:::i;57502:147::-;;;;;;:::i;:::-;;:::i;58550:218::-;;;;;;:::i;:::-;;:::i;65836:524::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;82634:122::-;;;;;;:::i;:::-;82691:4;82512:16;;;:12;:16;;;;;;-1:-1:-1;;;82634:122:0;97479:40;;;;;;:::i;:::-;;;;;;;;;;;;;;;;81529:353;;;;;;:::i;:::-;;:::i;97125:27::-;;;;;-1:-1:-1;;;;;97125:27:0;;;;;;-1:-1:-1;;;;;9159:32:1;;;9141:51;;9129:2;9114:18;97125:27:0;8969:229:1;99543:206:0;;;;;;:::i;:::-;;:::i;:::-;;;;9631:25:1;;;9687:2;9672:18;;9665:34;;;;9715:18;;;9708:34;;;;9773:2;9758:18;;9751:34;;;;9816:3;9801:19;;9794:35;;;;9860:3;9845:19;;9838:35;;;;9904:3;9889:19;;9882:35;9948:3;9933:19;;9926:35;9992:3;9977:19;;9970:35;10036:3;10021:19;;10014:35;10080:3;10065:19;;10058:36;9618:3;9603:19;99543:206:0;9203:897:1;98311:229:0;;;;;;:::i;:::-;;:::i;55569:147::-;;;;;;:::i;:::-;;:::i;97015:27::-;;;:::i;98150:146::-;;;;;;:::i;:::-;;:::i;54674:49::-;;54719:4;54674:49;;66433:155;;;;;;:::i;:::-;;:::i;82423:113::-;;;;;;:::i;:::-;82485:7;82512:16;;;:12;:16;;;;;;;82423:113;97045:37;;;;;;96904:62;;-1:-1:-1;;;;;;;;;;;96904:62:0;;57894:149;;;;;;:::i;:::-;;:::i;98784:754::-;;;:::i;66660:168::-;;;;;;:::i;:::-;-1:-1:-1;;;;;66783:27:0;;;66759:4;66783:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;66660:168;98555:222;;;;;;:::i;:::-;;:::i;66900:401::-;;;;;;:::i;:::-;;:::i;81200:321::-;;;;;;:::i;:::-;;:::i;65440:230::-;65526:7;-1:-1:-1;;;;;65554:21:0;;65546:76;;;;-1:-1:-1;;;65546:76:0;;11862:2:1;65546:76:0;;;11844:21:1;11901:2;11881:18;;;11874:30;11940:34;11920:18;;;11913:62;-1:-1:-1;;;11991:18:1;;;11984:40;12041:19;;65546:76:0;;;;;;;;;-1:-1:-1;65640:9:0;:13;;;;;;;;;;;-1:-1:-1;;;;;65640:22:0;;;;;;;;;;65440:230;;;;;:::o;97636:210::-;97773:4;97802:36;97826:11;97802:23;:36::i;97524:108::-;54719:4;55165:16;54719:4;55165:10;:16::i;:::-;97609:15:::1;97617:6;97609:7;:15::i;:::-;97524:108:::0;;:::o;96971:41::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;65184:105::-;65244:13;65277:4;65270:11;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65184:105;;;:::o;67378:442::-;-1:-1:-1;;;;;67611:20:0;;2153:10;67611:20;;:60;;-1:-1:-1;67635:36:0;67652:4;2153:10;66660:168;:::i;67635:36::-;67589:160;;;;-1:-1:-1;;;67589:160:0;;12658:2:1;67589:160:0;;;12640:21:1;12697:2;12677:18;;;12670:30;12736:34;12716:18;;;12709:62;-1:-1:-1;;;12787:18:1;;;12780:48;12845:19;;67589:160:0;12456:414:1;67589:160:0;67760:52;67783:4;67789:2;67793:3;67798:7;67807:4;67760:22;:52::i;:::-;67378:442;;;;;:::o;57502:147::-;57183:7;57210:12;;;:6;:12;;;;;:22;;;55165:16;55176:4;55165:10;:16::i;:::-;57616:25:::1;57627:4;57633:7;57616:10;:25::i;:::-;57502:147:::0;;;:::o;58550:218::-;-1:-1:-1;;;;;58646:23:0;;2153:10;58646:23;58638:83;;;;-1:-1:-1;;;58638:83:0;;13077:2:1;58638:83:0;;;13059:21:1;13116:2;13096:18;;;13089:30;13155:34;13135:18;;;13128:62;-1:-1:-1;;;13206:18:1;;;13199:45;13261:19;;58638:83:0;12875:411:1;58638:83:0;58734:26;58746:4;58752:7;58734:11;:26::i;65836:524::-;65992:16;66053:3;:10;66034:8;:15;:29;66026:83;;;;-1:-1:-1;;;66026:83:0;;13493:2:1;66026:83:0;;;13475:21:1;13532:2;13512:18;;;13505:30;13571:34;13551:18;;;13544:62;-1:-1:-1;;;13622:18:1;;;13615:39;13671:19;;66026:83:0;13291:405:1;66026:83:0;66122:30;66169:8;:15;66155:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66155:30:0;;66122:63;;66203:9;66198:122;66222:8;:15;66218:1;:19;66198:122;;;66278:30;66288:8;66297:1;66288:11;;;;;;;;:::i;:::-;;;;;;;66301:3;66305:1;66301:6;;;;;;;;:::i;:::-;;;;;;;66278:9;:30::i;:::-;66259:13;66273:1;66259:16;;;;;;;;:::i;:::-;;;;;;;;;;:49;66239:3;;;:::i;:::-;;;66198:122;;;-1:-1:-1;66339:13:0;65836:524;-1:-1:-1;;;65836:524:0:o;81529:353::-;-1:-1:-1;;;;;81694:23:0;;2153:10;81694:23;;:66;;-1:-1:-1;81721:39:0;81738:7;2153:10;66660:168;:::i;81721:39::-;81672:157;;;;-1:-1:-1;;;81672:157:0;;;;;;;:::i;:::-;81842:32;81853:7;81862:3;81867:6;81842:10;:32::i;99543:206::-;99715:10;;:26;;-1:-1:-1;;;99715:26:0;;-1:-1:-1;;;;;9159:32:1;;;99715:26:0;;;9141:51:1;99601:7:0;;;;;;;;;;;;;;;;;;;;;;99715:10;;;:18;;9114::1;;99715:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;99708:33;;;;;;;;;;;;;;;;;;;;;;99543:206;;;;;;;;;;;;;:::o;98311:229::-;-1:-1:-1;;;;;;;;;;;55165:16:0;55176:4;55165:10;:16::i;:::-;98447:6:::1;98443:90;98458:3;:10;98456:1;:12;98443:90;;;98484:38;98490:7;98499:3;98503:1;98499:6;;;;;;;;:::i;:::-;;;;;;;98507:7;98515:1;98507:10;;;;;;;;:::i;:::-;;;;;;;98484:38;;;;;;;;;;;::::0;:5:::1;:38::i;:::-;98469:3:::0;::::1;::::0;::::1;:::i;:::-;;;;98443:90;;55569:147:::0;55655:4;55679:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;55679:29:0;;;;;;;;;;;;;;;55569:147::o;97015:27::-;;;;;;;:::i;98150:146::-;-1:-1:-1;;;;;;;;;;;55165:16:0;55176:4;55165:10;:16::i;:::-;98258:30:::1;98264:7;98273:2;98277:6;98258:30;;;;;;;;;;;::::0;:5:::1;:30::i;:::-;98150:146:::0;;;;:::o;66433:155::-;66528:52;2153:10;66561:8;66571;66528:18;:52::i;57894:149::-;57183:7;57210:12;;;:6;:12;;;;;:22;;;55165:16;55176:4;55165:10;:16::i;:::-;58009:26:::1;58021:4;58027:7;58009:11;:26::i;98784:754::-:0;98843:10;98834:20;;;;:8;:20;;;;;;;;:29;98826:57;;;;-1:-1:-1;;;98826:57:0;;15734:2:1;98826:57:0;;;15716:21:1;15773:2;15753:18;;;15746:30;-1:-1:-1;;;15792:18:1;;;15785:46;15848:18;;98826:57:0;15532:340:1;98826:57:0;98901:15;98918:21;98941;98964:23;98989:22;99013:19;99036:22;99047:10;99036;:22::i;:::-;98890:168;;;;;;;;;;;;;;;;;99077:1;99069:7;:9;:28;;;;99096:1;99082:13;:15;99069:28;:47;;;;99115:1;99101:13;:15;99069:47;:68;;;;99136:1;99120:15;:17;99069:68;:88;;;;99156:1;99141:14;:16;99069:88;:105;;;;99173:1;99161:11;:13;99069:105;99065:141;;;99192:7;;;;;;98784:754::o;99065:141::-;99212:13;99317:3;99264:5;;99271:6;;;;;;;;;-1:-1:-1;;;;;99271:6:0;-1:-1:-1;;;;;99271:11:0;;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;99247:67;;;;;;16279:19:1;;;;16314:12;;16307:28;99286:15:0;16351:12:1;;;;16344:28;;;;99303:10:0;16406:15:1;;-1:-1:-1;;16402:53:1;16388:12;;;16381:75;16472:13;;99247:67:0;;;;;;;;;;;;99237:78;;;;;;99228:88;;:92;;;;:::i;:::-;99327:5;:8;;99212:108;;-1:-1:-1;99327:5:0;:8;;;:::i;:::-;;;;-1:-1:-1;;99351:10:0;99342:20;;;;:8;:20;;;;;:27;;-1:-1:-1;;99342:27:0;99365:4;99342:27;;;99376:22;:25;;;;;;:::i;:::-;;;;;;99419:2;99412:5;:9;99408:60;;99433:27;99439:10;99451:1;99454;99433:27;;;;;;;;;;;;:5;:27::i;:::-;99485:2;99478:5;:9;99474:60;;99499:27;99505:10;99517:1;99520;99499:27;;;;;;;;;;;;:5;:27::i;:::-;98819:719;;;;;;;98784:754::o;98555:222::-;-1:-1:-1;;;;;;;;;;;55165:16:0;55176:4;55165:10;:16::i;:::-;98691:6:::1;98687:83;98702:3;:10;98700:1;:12;98687:83;;;98727:32;98733:7;98741:3;98745:1;98741:6;;;;;;;;:::i;:::-;;;;;;;98748:7;98756:1;98748:10;;;;;;;;:::i;:::-;;;;;;;98727:5;:32::i;:::-;98713:3:::0;::::1;::::0;::::1;:::i;:::-;;;;98687:83;;66900:401:::0;-1:-1:-1;;;;;67108:20:0;;2153:10;67108:20;;:60;;-1:-1:-1;67132:36:0;67149:4;2153:10;66660:168;:::i;67132:36::-;67086:151;;;;-1:-1:-1;;;67086:151:0;;;;;;;:::i;:::-;67248:45;67266:4;67272:2;67276;67280:6;67288:4;67248:17;:45::i;81200:321::-;-1:-1:-1;;;;;81340:23:0;;2153:10;81340:23;;:66;;-1:-1:-1;81367:39:0;81384:7;2153:10;66660:168;:::i;81367:39::-;81318:157;;;;-1:-1:-1;;;81318:157:0;;;;;;;:::i;:::-;81488:25;81494:7;81503:2;81507:5;81488;:25::i;55273:204::-;55358:4;-1:-1:-1;;;;;;55382:47:0;;-1:-1:-1;;;55382:47:0;;:87;;;55433:36;55457:11;55433:23;:36::i;56020:105::-;56087:30;56098:4;2153:10;56087;:30::i;:::-;56020:105;:::o;71606:88::-;71673:4;:13;71680:6;71673:4;:13;:::i;69616:1146::-;69843:7;:14;69829:3;:10;:28;69821:81;;;;-1:-1:-1;;;69821:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;69921:16:0;;69913:66;;;;-1:-1:-1;;;69913:66:0;;;;;;;:::i;:::-;2153:10;70036:60;2153:10;70067:4;70073:2;70077:3;70082:7;70091:4;70036:20;:60::i;:::-;70114:9;70109:421;70133:3;:10;70129:1;:14;70109:421;;;70165:10;70178:3;70182:1;70178:6;;;;;;;;:::i;:::-;;;;;;;70165:19;;70199:14;70216:7;70224:1;70216:10;;;;;;;;:::i;:::-;;;;;;;;;;;;70243:19;70265:13;;;;;;;;;;-1:-1:-1;;;;;70265:19:0;;;;;;;;;;;;70216:10;;-1:-1:-1;70307:21:0;;;;70299:76;;;;-1:-1:-1;;;70299:76:0;;;;;;;:::i;:::-;70419:9;:13;;;;;;;;;;;-1:-1:-1;;;;;70419:19:0;;;;;;;;;;70441:20;;;70419:42;;70491:17;;;;;;;:27;;70441:20;;70419:9;70491:27;;70441:20;;70491:27;:::i;:::-;;;;;;;;70150:380;;;70145:3;;;;:::i;:::-;;;70109:421;;;;70577:2;-1:-1:-1;;;;;70547:47:0;70571:4;-1:-1:-1;;;;;70547:47:0;70561:8;-1:-1:-1;;;;;70547:47:0;;70581:3;70586:7;70547:47;;;;;;;:::i;:::-;;;;;;;;70679:75;70715:8;70725:4;70731:2;70735:3;70740:7;70749:4;70679:35;:75::i;:::-;69810:952;69616:1146;;;;;:::o;60051:238::-;60135:22;60143:4;60149:7;60135;:22::i;:::-;60130:152;;60174:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;60174:29:0;;;;;;;;;:36;;-1:-1:-1;;60174:36:0;60206:4;60174:36;;;60257:12;2153:10;;2073:98;60257:12;-1:-1:-1;;;;;60230:40:0;60248:7;-1:-1:-1;;;;;60230:40:0;60242:4;60230:40;;;;;;;;;;60051:238;;:::o;60421:239::-;60505:22;60513:4;60519:7;60505;:22::i;:::-;60501:152;;;60576:5;60544:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;60544:29:0;;;;;;;;;;:37;;-1:-1:-1;;60544:37:0;;;60601:40;2153:10;;60544:12;;60601:40;;60576:5;60601:40;60421:239;;:::o;75381:969::-;-1:-1:-1;;;;;75533:18:0;;75525:66;;;;-1:-1:-1;;;75525:66:0;;;;;;;:::i;:::-;75624:7;:14;75610:3;:10;:28;75602:81;;;;-1:-1:-1;;;75602:81:0;;;;;;;:::i;:::-;75696:16;2153:10;75696:31;;75740:66;75761:8;75771:4;75785:1;75789:3;75794:7;75740:66;;;;;;;;;;;;:20;:66::i;:::-;75824:9;75819:373;75843:3;:10;75839:1;:14;75819:373;;;75875:10;75888:3;75892:1;75888:6;;;;;;;;:::i;:::-;;;;;;;75875:19;;75909:14;75926:7;75934:1;75926:10;;;;;;;;:::i;:::-;;;;;;;;;;;;75953:19;75975:13;;;;;;;;;;-1:-1:-1;;;;;75975:19:0;;;;;;;;;;;;75926:10;;-1:-1:-1;76017:21:0;;;;76009:70;;;;-1:-1:-1;;;76009:70:0;;;;;;;:::i;:::-;76123:9;:13;;;;;;;;;;;-1:-1:-1;;;;;76123:19:0;;;;;;;;;;76145:20;;76123:42;;75855:3;;;;:::i;:::-;;;;75819:373;;;;76247:1;-1:-1:-1;;;;;76209:55:0;76233:4;-1:-1:-1;;;;;76209:55:0;76223:8;-1:-1:-1;;;;;76209:55:0;;76251:3;76256:7;76209:55;;;;;;;:::i;:::-;;;;;;;;76277:65;;;;;;;;;76321:1;76277:65;;;69616:1146;72080:729;-1:-1:-1;;;;;72233:16:0;;72225:62;;;;-1:-1:-1;;;72225:62:0;;21751:2:1;72225:62:0;;;21733:21:1;21790:2;21770:18;;;21763:30;21829:34;21809:18;;;21802:62;-1:-1:-1;;;21880:18:1;;;21873:31;21921:19;;72225:62:0;21549:397:1;72225:62:0;2153:10;72300:16;72365:21;72383:2;72365:17;:21::i;:::-;72342:44;;72397:24;72424:25;72442:6;72424:17;:25::i;:::-;72397:52;;72462:66;72483:8;72501:1;72505:2;72509:3;72514:7;72523:4;72462:20;:66::i;:::-;72541:9;:13;;;;;;;;;;;-1:-1:-1;;;;;72541:17:0;;;;;;;;;:27;;72562:6;;72541:9;:27;;72562:6;;72541:27;:::i;:::-;;;;-1:-1:-1;;72584:52:0;;;22125:25:1;;;22181:2;22166:18;;22159:34;;;-1:-1:-1;;;;;72584:52:0;;;;72617:1;;72584:52;;;;;;22098:18:1;72584:52:0;;;;;;;72727:74;72758:8;72776:1;72780:2;72784;72788:6;72796:4;72727:30;:74::i;76493:331::-;76648:8;-1:-1:-1;;;;;76639:17:0;:5;-1:-1:-1;;;;;76639:17:0;;76631:71;;;;-1:-1:-1;;;76631:71:0;;22406:2:1;76631:71:0;;;22388:21:1;22445:2;22425:18;;;22418:30;22484:34;22464:18;;;22457:62;-1:-1:-1;;;22535:18:1;;;22528:39;22584:19;;76631:71:0;22204:405:1;76631:71:0;-1:-1:-1;;;;;76713:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;76713:46:0;;;;;;;;;;76775:41;;1159::1;;;76775::0;;1132:18:1;76775:41:0;;;;;;;76493:331;;;:::o;74323:808::-;-1:-1:-1;;;;;74450:18:0;;74442:66;;;;-1:-1:-1;;;74442:66:0;;;;;;;:::i;:::-;2153:10;74521:16;74586:21;74604:2;74586:17;:21::i;:::-;74563:44;;74618:24;74645:25;74663:6;74645:17;:25::i;:::-;74618:52;;74683:66;74704:8;74714:4;74728:1;74732:3;74737:7;74683:66;;;;;;;;;;;;:20;:66::i;:::-;74762:19;74784:13;;;;;;;;;;;-1:-1:-1;;;;;74784:19:0;;;;;;;;;;74822:21;;;;74814:70;;;;-1:-1:-1;;;74814:70:0;;;;;;;:::i;:::-;74920:9;:13;;;;;;;;;;;-1:-1:-1;;;;;74920:19:0;;;;;;;;;;;;74942:20;;;74920:42;;74991:54;;22125:25:1;;;22166:18;;;22159:34;;;74920:19:0;;74991:54;;;;;;22098:18:1;74991:54:0;;;;;;;75058:65;;;;;;;;;75102:1;75058:65;;;69616:1146;68284:974;-1:-1:-1;;;;;68472:16:0;;68464:66;;;;-1:-1:-1;;;68464:66:0;;;;;;;:::i;:::-;2153:10;68543:16;68608:21;68626:2;68608:17;:21::i;:::-;68585:44;;68640:24;68667:25;68685:6;68667:17;:25::i;:::-;68640:52;;68705:60;68726:8;68736:4;68742:2;68746:3;68751:7;68760:4;68705:20;:60::i;:::-;68778:19;68800:13;;;;;;;;;;;-1:-1:-1;;;;;68800:19:0;;;;;;;;;;68838:21;;;;68830:76;;;;-1:-1:-1;;;68830:76:0;;;;;;;:::i;:::-;68942:9;:13;;;;;;;;;;;-1:-1:-1;;;;;68942:19:0;;;;;;;;;;68964:20;;;68942:42;;69006:17;;;;;;;:27;;68964:20;;68942:9;69006:27;;68964:20;;69006:27;:::i;:::-;;;;-1:-1:-1;;69051:46:0;;;22125:25:1;;;22181:2;22166:18;;22159:34;;;-1:-1:-1;;;;;69051:46:0;;;;;;;;;;;;;;22098:18:1;69051:46:0;;;;;;;69182:68;69213:8;69223:4;69229:2;69233;69237:6;69245:4;69182:30;:68::i;:::-;68453:805;;;;68284:974;;;;;:::o;64463:310::-;64565:4;-1:-1:-1;;;;;;64602:41:0;;-1:-1:-1;;;64602:41:0;;:110;;-1:-1:-1;;;;;;;64660:52:0;;-1:-1:-1;;;64660:52:0;64602:110;:163;;;-1:-1:-1;;;;;;;;;;49931:40:0;;;64729:36;49822:157;56415:505;56504:22;56512:4;56518:7;56504;:22::i;:::-;56499:414;;56692:41;56720:7;-1:-1:-1;;;;;56692:41:0;56730:2;56692:19;:41::i;:::-;56806:38;56834:4;56841:2;56806:19;:38::i;:::-;56597:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;56597:270:0;;;;;;;;;;-1:-1:-1;;;56543:358:0;;;;;;;:::i;97851:291::-;98068:66;98095:8;98105:4;98111:2;98115:3;98120:7;98129:4;98068:26;:66::i;79938:813::-;-1:-1:-1;;;;;80178:13:0;;8031:19;:23;80174:570;;80214:79;;-1:-1:-1;;;80214:79:0;;-1:-1:-1;;;;;80214:43:0;;;;;:79;;80258:8;;80268:4;;80274:3;;80279:7;;80288:4;;80214:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80214:79:0;;;;;;;;-1:-1:-1;;80214:79:0;;;;;;;;;;;;:::i;:::-;;;80210:523;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;80606:6;80599:14;;-1:-1:-1;;;80599:14:0;;;;;;;;:::i;80210:523::-;;;80655:62;;-1:-1:-1;;;80655:62:0;;25579:2:1;80655:62:0;;;25561:21:1;25618:2;25598:18;;;25591:30;25657:34;25637:18;;;25630:62;-1:-1:-1;;;25708:18:1;;;25701:50;25768:19;;80655:62:0;25377:416:1;80210:523:0;-1:-1:-1;;;;;;80375:60:0;;-1:-1:-1;;;80375:60:0;80371:159;;80460:50;;-1:-1:-1;;;80460:50:0;;;;;;;:::i;80759:198::-;80879:16;;;80893:1;80879:16;;;;;;;;;80825;;80854:22;;80879:16;;;;;;;;;;;;-1:-1:-1;80879:16:0;80854:41;;80917:7;80906:5;80912:1;80906:8;;;;;;;;:::i;:::-;;;;;;;;;;:18;80944:5;80759:198;-1:-1:-1;;80759:198:0:o;79186:744::-;-1:-1:-1;;;;;79401:13:0;;8031:19;:23;79397:526;;79437:72;;-1:-1:-1;;;79437:72:0;;-1:-1:-1;;;;;79437:38:0;;;;;:72;;79476:8;;79486:4;;79492:2;;79496:6;;79504:4;;79437:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79437:72:0;;;;;;;;-1:-1:-1;;79437:72:0;;;;;;;;;;;;:::i;:::-;;;79433:479;;;;:::i;:::-;-1:-1:-1;;;;;;79559:55:0;;-1:-1:-1;;;79559:55:0;79555:154;;79639:50;;-1:-1:-1;;;79639:50:0;;;;;;;:::i;6201:451::-;6276:13;6302:19;6334:10;6338:6;6334:1;:10;:::i;:::-;:14;;6347:1;6334:14;:::i;:::-;6324:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6324:25:0;;6302:47;;-1:-1:-1;;;6360:6:0;6367:1;6360:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;6360:15:0;;;;;;;;;-1:-1:-1;;;6386:6:0;6393:1;6386:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;6386:15:0;;;;;;;;-1:-1:-1;6417:9:0;6429:10;6433:6;6429:1;:10;:::i;:::-;:14;;6442:1;6429:14;:::i;:::-;6417:26;;6412:135;6449:1;6445;:5;6412:135;;;-1:-1:-1;;;6497:5:0;6505:3;6497:11;6484:25;;;;;;;:::i;:::-;;;;6472:6;6479:1;6472:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;6472:37:0;;;;;;;;-1:-1:-1;6534:1:0;6524:11;;;;;6452:3;;;:::i;:::-;;;6412:135;;;-1:-1:-1;6565:10:0;;6557:55;;;;-1:-1:-1;;;6557:55:0;;27289:2:1;6557:55:0;;;27271:21:1;;;27308:18;;;27301:30;27367:34;27347:18;;;27340:62;27419:18;;6557:55:0;27087:356:1;6557:55:0;6637:6;6201:451;-1:-1:-1;;;6201:451:0:o;82831:931::-;-1:-1:-1;;;;;83153:18:0;;83149:160;;83193:9;83188:110;83212:3;:10;83208:1;:14;83188:110;;;83272:7;83280:1;83272:10;;;;;;;;:::i;:::-;;;;;;;83248:12;:20;83261:3;83265:1;83261:6;;;;;;;;:::i;:::-;;;;;;;83248:20;;;;;;;;;;;;:34;;;;;;;:::i;:::-;;;;-1:-1:-1;83224:3:0;;-1:-1:-1;83224:3:0;;:::i;:::-;;;83188:110;;;;83149:160;-1:-1:-1;;;;;83325:16:0;;83321:434;;83363:9;83358:386;83382:3;:10;83378:1;:14;83358:386;;;83418:10;83431:3;83435:1;83431:6;;;;;;;;:::i;:::-;;;;;;;83418:19;;83456:14;83473:7;83481:1;83473:10;;;;;;;;:::i;:::-;;;;;;;83456:27;;83502:14;83519:12;:16;83532:2;83519:16;;;;;;;;;;;;83502:33;;83572:6;83562;:16;;83554:69;;;;-1:-1:-1;;;83554:69:0;;27650:2:1;83554:69:0;;;27632:21:1;27689:2;27669:18;;;27662:30;27728:34;27708:18;;;27701:62;-1:-1:-1;;;27779:18:1;;;27772:38;27827:19;;83554:69:0;27448:404:1;83554:69:0;83675:16;;;;:12;:16;;;;;;83694:15;;83675:34;;83394:3;;;:::i;:::-;;;83358: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;1211:127::-;1272:10;1267:3;1263:20;1260:1;1253:31;1303:4;1300:1;1293:15;1327:4;1324:1;1317:15;1343:249;1453:2;1434:13;;-1:-1:-1;;1430:27:1;1418:40;;1488:18;1473:34;;1509:22;;;1470:62;1467:88;;;1535:18;;:::i;:::-;1571:2;1564:22;-1:-1:-1;;1343:249:1:o;1597:469::-;1662:5;1696:18;1688:6;1685:30;1682:56;;;1718:18;;:::i;:::-;1767:2;1761:9;1779:69;1836:2;1815:15;;-1:-1:-1;;1811:29:1;1842:4;1807:40;1761:9;1779:69;:::i;:::-;1866:6;1857:15;;1896:6;1888;1881:22;1936:3;1927:6;1922:3;1918:16;1915:25;1912:45;;;1953:1;1950;1943:12;1912:45;2003:6;1998:3;1991:4;1983:6;1979:17;1966:44;2058:1;2051:4;2042:6;2034;2030:19;2026:30;2019:41;;1597:469;;;;;:::o;2071:451::-;2140:6;2193:2;2181:9;2172:7;2168:23;2164:32;2161:52;;;2209:1;2206;2199:12;2161:52;2249:9;2236:23;2282:18;2274:6;2271:30;2268:50;;;2314:1;2311;2304:12;2268:50;2337:22;;2390:4;2382:13;;2378:27;-1:-1:-1;2368:55:1;;2419:1;2416;2409:12;2368:55;2442:74;2508:7;2503:2;2490:16;2485:2;2481;2477:11;2442:74;:::i;:::-;2432:84;2071:451;-1:-1:-1;;;;2071:451:1:o;2527:250::-;2612:1;2622:113;2636:6;2633:1;2630:13;2622:113;;;2712:11;;;2706:18;2693:11;;;2686:39;2658:2;2651:10;2622:113;;;-1:-1:-1;;2769:1:1;2751:16;;2744:27;2527:250::o;2782:271::-;2824:3;2862:5;2856:12;2889:6;2884:3;2877:19;2905:76;2974:6;2967:4;2962:3;2958:14;2951:4;2944:5;2940:16;2905:76;:::i;:::-;3035:2;3014:15;-1:-1:-1;;3010:29:1;3001:39;;;;3042:4;2997:50;;2782:271;-1:-1:-1;;2782:271:1:o;3058:220::-;3207:2;3196:9;3189:21;3170:4;3227:45;3268:2;3257:9;3253:18;3245:6;3227:45;:::i;3283:180::-;3342:6;3395:2;3383:9;3374:7;3370:23;3366:32;3363:52;;;3411:1;3408;3401:12;3363:52;-1:-1:-1;3434:23:1;;3283:180;-1:-1:-1;3283:180:1:o;3835:183::-;3895:4;3928:18;3920:6;3917:30;3914:56;;;3950:18;;:::i;:::-;-1:-1:-1;3995:1:1;3991:14;4007:4;3987:25;;3835:183::o;4023:724::-;4077:5;4130:3;4123:4;4115:6;4111:17;4107:27;4097:55;;4148:1;4145;4138:12;4097:55;4184:6;4171:20;4210:4;4233:43;4273:2;4233:43;:::i;:::-;4305:2;4299:9;4317:31;4345:2;4337:6;4317:31;:::i;:::-;4383:18;;;4475:1;4471:10;;;;4459:23;;4455:32;;;4417:15;;;;-1:-1:-1;4499:15:1;;;4496:35;;;4527:1;4524;4517:12;4496:35;4563:2;4555:6;4551:15;4575:142;4591:6;4586:3;4583:15;4575:142;;;4657:17;;4645:30;;4695:12;;;;4608;;4575:142;;;-1:-1:-1;4735:6:1;4023:724;-1:-1:-1;;;;;;4023:724:1:o;4752:221::-;4794:5;4847:3;4840:4;4832:6;4828:17;4824:27;4814:55;;4865:1;4862;4855:12;4814:55;4887:80;4963:3;4954:6;4941:20;4934:4;4926:6;4922:17;4887:80;:::i;4978:943::-;5132:6;5140;5148;5156;5164;5217:3;5205:9;5196:7;5192:23;5188:33;5185:53;;;5234:1;5231;5224:12;5185:53;5257:29;5276:9;5257:29;:::i;:::-;5247:39;;5305:38;5339:2;5328:9;5324:18;5305:38;:::i;:::-;5295:48;;5394:2;5383:9;5379:18;5366:32;5417:18;5458:2;5450:6;5447:14;5444:34;;;5474:1;5471;5464:12;5444:34;5497:61;5550:7;5541:6;5530:9;5526:22;5497:61;:::i;:::-;5487:71;;5611:2;5600:9;5596:18;5583:32;5567:48;;5640:2;5630:8;5627:16;5624:36;;;5656:1;5653;5646:12;5624:36;5679:63;5734:7;5723:8;5712:9;5708:24;5679:63;:::i;:::-;5669:73;;5795:3;5784:9;5780:19;5767:33;5751:49;;5825:2;5815:8;5812:16;5809:36;;;5841:1;5838;5831:12;5809:36;;5864:51;5907:7;5896:8;5885:9;5881:24;5864:51;:::i;:::-;5854:61;;;4978:943;;;;;;;;:::o;5926:254::-;5994:6;6002;6055:2;6043:9;6034:7;6030:23;6026:32;6023:52;;;6071:1;6068;6061:12;6023:52;6107:9;6094:23;6084:33;;6136:38;6170:2;6159:9;6155:18;6136:38;:::i;:::-;6126:48;;5926:254;;;;;:::o;6185:1208::-;6303:6;6311;6364:2;6352:9;6343:7;6339:23;6335:32;6332:52;;;6380:1;6377;6370:12;6332:52;6420:9;6407:23;6449:18;6490:2;6482:6;6479:14;6476:34;;;6506:1;6503;6496:12;6476:34;6544:6;6533:9;6529:22;6519:32;;6589:7;6582:4;6578:2;6574:13;6570:27;6560:55;;6611:1;6608;6601:12;6560:55;6647:2;6634:16;6669:4;6692:43;6732:2;6692:43;:::i;:::-;6764:2;6758:9;6776:31;6804:2;6796:6;6776:31;:::i;:::-;6842:18;;;6930:1;6926:10;;;;6918:19;;6914:28;;;6876:15;;;;-1:-1:-1;6954:19:1;;;6951:39;;;6986:1;6983;6976:12;6951:39;7010:11;;;;7030:148;7046:6;7041:3;7038:15;7030:148;;;7112:23;7131:3;7112:23;:::i;:::-;7100:36;;7063:12;;;;7156;;;;7030:148;;;7197:6;-1:-1:-1;;7241:18:1;;7228:32;;-1:-1:-1;;7272:16:1;;;7269:36;;;7301:1;7298;7291:12;7269:36;;7324:63;7379:7;7368:8;7357:9;7353:24;7324:63;:::i;:::-;7314:73;;;6185:1208;;;;;:::o;7398:435::-;7451:3;7489:5;7483:12;7516:6;7511:3;7504:19;7542:4;7571:2;7566:3;7562:12;7555:19;;7608:2;7601:5;7597:14;7629:1;7639:169;7653:6;7650:1;7647:13;7639:169;;;7714:13;;7702:26;;7748:12;;;;7783:15;;;;7675:1;7668:9;7639:169;;;-1:-1:-1;7824:3:1;;7398:435;-1:-1:-1;;;;;7398:435:1:o;7838:261::-;8017:2;8006:9;7999:21;7980:4;8037:56;8089:2;8078:9;8074:18;8066:6;8037:56;:::i;8104:186::-;8163:6;8216:2;8204:9;8195:7;8191:23;8187:32;8184:52;;;8232:1;8229;8222:12;8184:52;8255:29;8274:9;8255:29;:::i;8295:669::-;8422:6;8430;8438;8491:2;8479:9;8470:7;8466:23;8462:32;8459:52;;;8507:1;8504;8497:12;8459:52;8530:29;8549:9;8530:29;:::i;:::-;8520:39;;8610:2;8599:9;8595:18;8582:32;8633:18;8674:2;8666:6;8663:14;8660:34;;;8690:1;8687;8680:12;8660:34;8713:61;8766:7;8757:6;8746:9;8742:22;8713:61;:::i;:::-;8703:71;;8827:2;8816:9;8812:18;8799:32;8783:48;;8856:2;8846:8;8843:16;8840:36;;;8872:1;8869;8862:12;8840:36;;8895:63;8950:7;8939:8;8928:9;8924:24;8895:63;:::i;:::-;8885:73;;;8295:669;;;;;:::o;10105:322::-;10182:6;10190;10198;10251:2;10239:9;10230:7;10226:23;10222:32;10219:52;;;10267:1;10264;10257:12;10219:52;10290:29;10309:9;10290:29;:::i;:::-;10280:39;10366:2;10351:18;;10338:32;;-1:-1:-1;10417:2:1;10402:18;;;10389:32;;10105:322;-1:-1:-1;;;10105:322:1:o;10432:347::-;10497:6;10505;10558:2;10546:9;10537:7;10533:23;10529:32;10526:52;;;10574:1;10571;10564:12;10526:52;10597:29;10616:9;10597:29;:::i;:::-;10587:39;;10676:2;10665:9;10661:18;10648:32;10723:5;10716:13;10709:21;10702:5;10699:32;10689:60;;10745:1;10742;10735:12;10689:60;10768:5;10758:15;;;10432:347;;;;;:::o;10784:260::-;10852:6;10860;10913:2;10901:9;10892:7;10888:23;10884:32;10881:52;;;10929:1;10926;10919:12;10881:52;10952:29;10971:9;10952:29;:::i;:::-;10942:39;;11000:38;11034:2;11023:9;11019:18;11000:38;:::i;11049:606::-;11153:6;11161;11169;11177;11185;11238:3;11226:9;11217:7;11213:23;11209:33;11206:53;;;11255:1;11252;11245:12;11206:53;11278:29;11297:9;11278:29;:::i;:::-;11268:39;;11326:38;11360:2;11349:9;11345:18;11326:38;:::i;:::-;11316:48;;11411:2;11400:9;11396:18;11383:32;11373:42;;11462:2;11451:9;11447:18;11434:32;11424:42;;11517:3;11506:9;11502:19;11489:33;11545:18;11537:6;11534:30;11531:50;;;11577:1;11574;11567:12;11531:50;11600:49;11641:7;11632:6;11621:9;11617:22;11600:49;:::i;12071:380::-;12150:1;12146:12;;;;12193;;;12214:61;;12268:4;12260:6;12256:17;12246:27;;12214:61;12321:2;12313:6;12310:14;12290:18;12287:38;12284:161;;12367:10;12362:3;12358:20;12355:1;12348:31;12402:4;12399:1;12392:15;12430:4;12427:1;12420:15;12284:161;;12071:380;;;:::o;13701:127::-;13762:10;13757:3;13753:20;13750:1;13743:31;13793:4;13790:1;13783:15;13817:4;13814:1;13807:15;13833:127;13894:10;13889:3;13885:20;13882:1;13875:31;13925:4;13922:1;13915:15;13949:4;13946:1;13939:15;13965:135;14004:3;14025:17;;;14022:43;;14045:18;;:::i;:::-;-1:-1:-1;14092:1:1;14081:13;;13965:135::o;14105:405::-;14307:2;14289:21;;;14346:2;14326:18;;;14319:30;14385:34;14380:2;14365:18;;14358:62;-1:-1:-1;;;14451:2:1;14436:18;;14429:39;14500:3;14485:19;;14105:405::o;14723:804::-;14883:6;14891;14899;14907;14915;14923;14931;14939;14947;14955;14963:7;15017:3;15005:9;14996:7;14992:23;14988:33;14985:53;;;15034:1;15031;15024:12;14985:53;15063:9;15057:16;15047:26;;15113:2;15102:9;15098:18;15092:25;15082:35;;15157:2;15146:9;15142:18;15136:25;15126:35;;15201:2;15190:9;15186:18;15180:25;15170:35;;15245:3;15234:9;15230:19;15224:26;15214:36;;15290:3;15279:9;15275:19;15269:26;15259:36;;15335:3;15324:9;15320:19;15314:26;15304:36;;15380:3;15369:9;15365:19;15359:26;15349:36;;15425:3;15414:9;15410:19;15404:26;15394:36;;15470:3;15459:9;15455:19;15449:26;15439:36;;15516:3;15505:9;15501:19;15495:26;15484:37;;14723:804;;;;;;;;;;;;;;:::o;15877:184::-;15947:6;16000:2;15988:9;15979:7;15975:23;15971:32;15968:52;;;16016:1;16013;16006:12;15968:52;-1:-1:-1;16039:16:1;;15877:184;-1:-1:-1;15877:184:1:o;16496:209::-;16528:1;16554;16544:132;;16598:10;16593:3;16589:20;16586:1;16579:31;16633:4;16630:1;16623:15;16661:4;16658:1;16651:15;16544:132;-1:-1:-1;16690:9:1;;16496:209::o;16836:545::-;16938:2;16933:3;16930:11;16927:448;;;16974:1;16999:5;16995:2;16988:17;17044:4;17040:2;17030:19;17114:2;17102:10;17098:19;17095:1;17091:27;17085:4;17081:38;17150:4;17138:10;17135:20;17132:47;;;-1:-1:-1;17173:4:1;17132:47;17228:2;17223:3;17219:12;17216:1;17212:20;17206:4;17202:31;17192:41;;17283:82;17301:2;17294:5;17291:13;17283:82;;;17346:17;;;17327:1;17316:13;17283:82;;17557:1352;17683:3;17677:10;17710:18;17702:6;17699:30;17696:56;;;17732:18;;:::i;:::-;17761:97;17851:6;17811:38;17843:4;17837:11;17811:38;:::i;:::-;17805:4;17761:97;:::i;:::-;17913:4;;17977:2;17966:14;;17994:1;17989:663;;;;18696:1;18713:6;18710:89;;;-1:-1:-1;18765:19:1;;;18759:26;18710:89;-1:-1:-1;;17514:1:1;17510:11;;;17506:24;17502:29;17492:40;17538:1;17534:11;;;17489:57;18812:81;;17959:944;;17989:663;16783:1;16776:14;;;16820:4;16807:18;;-1:-1:-1;;18025:20:1;;;18143:236;18157:7;18154:1;18151:14;18143:236;;;18246:19;;;18240:26;18225:42;;18338:27;;;;18306:1;18294:14;;;;18173:19;;18143:236;;;18147:3;18407:6;18398:7;18395:19;18392:201;;;18468:19;;;18462:26;-1:-1:-1;;18551:1:1;18547:14;;;18563:3;18543:24;18539:37;18535:42;18520:58;18505:74;;18392:201;-1:-1:-1;;;;;18639:1:1;18623:14;;;18619:22;18606:36;;-1:-1:-1;17557:1352:1:o;18914:404::-;19116:2;19098:21;;;19155:2;19135:18;;;19128:30;19194:34;19189:2;19174:18;;19167:62;-1:-1:-1;;;19260:2:1;19245:18;;19238:38;19308:3;19293:19;;18914:404::o;19323:401::-;19525:2;19507:21;;;19564:2;19544:18;;;19537:30;19603:34;19598:2;19583:18;;19576:62;-1:-1:-1;;;19669:2:1;19654:18;;19647:35;19714:3;19699:19;;19323:401::o;19729:406::-;19931:2;19913:21;;;19970:2;19950:18;;;19943:30;20009:34;20004:2;19989:18;;19982:62;-1:-1:-1;;;20075:2:1;20060:18;;20053:40;20125:3;20110:19;;19729:406::o;20140:125::-;20205:9;;;20226:10;;;20223:36;;;20239:18;;:::i;20270:465::-;20527:2;20516:9;20509:21;20490:4;20553:56;20605:2;20594:9;20590:18;20582:6;20553:56;:::i;:::-;20657:9;20649:6;20645:22;20640:2;20629:9;20625:18;20618:50;20685:44;20722:6;20714;20685:44;:::i;:::-;20677:52;20270:465;-1:-1:-1;;;;;20270:465:1:o;20740:399::-;20942:2;20924:21;;;20981:2;20961:18;;;20954:30;21020:34;21015:2;21000:18;;20993:62;-1:-1:-1;;;21086:2:1;21071:18;;21064:33;21129:3;21114:19;;20740:399::o;21144:400::-;21346:2;21328:21;;;21385:2;21365:18;;;21358:30;21424:34;21419:2;21404:18;;21397:62;-1:-1:-1;;;21490:2:1;21475:18;;21468:34;21534:3;21519:19;;21144:400::o;22614:812::-;23025:25;23020:3;23013:38;22995:3;23080:6;23074:13;23096:75;23164:6;23159:2;23154:3;23150:12;23143:4;23135:6;23131:17;23096:75;:::i;:::-;-1:-1:-1;;;23230:2:1;23190:16;;;23222:11;;;23215:40;23280:13;;23302:76;23280:13;23364:2;23356:11;;23349:4;23337:17;;23302:76;:::i;:::-;23398:17;23417:2;23394:26;;22614:812;-1:-1:-1;;;;22614:812:1:o;23431:827::-;-1:-1:-1;;;;;23828:15:1;;;23810:34;;23880:15;;23875:2;23860:18;;23853:43;23790:3;23927:2;23912:18;;23905:31;;;23753:4;;23959:57;;23996:19;;23988:6;23959:57;:::i;:::-;24064:9;24056:6;24052:22;24047:2;24036:9;24032:18;24025:50;24098:44;24135:6;24127;24098:44;:::i;:::-;24084:58;;24191:9;24183:6;24179:22;24173:3;24162:9;24158:19;24151:51;24219:33;24245:6;24237;24219:33;:::i;:::-;24211:41;23431:827;-1:-1:-1;;;;;;;;23431:827:1:o;24263:249::-;24332:6;24385:2;24373:9;24364:7;24360:23;24356:32;24353:52;;;24401:1;24398;24391:12;24353:52;24433:9;24427:16;24452:30;24476:5;24452:30;:::i;24517:179::-;24552:3;24594:1;24576:16;24573:23;24570:120;;;24640:1;24637;24634;24619:23;-1:-1:-1;24677:1:1;24671:8;24666:3;24662:18;24570:120;24517:179;:::o;24701:671::-;24740:3;24782:4;24764:16;24761:26;24758:39;;;24701:671;:::o;24758:39::-;24824:2;24818:9;-1:-1:-1;;24889:16:1;24885:25;;24882:1;24818:9;24861:50;24940:4;24934:11;24964:16;24999:18;25070:2;25063:4;25055:6;25051:17;25048:25;25043:2;25035:6;25032:14;25029:45;25026:58;;;25077:5;;;;;24701:671;:::o;25026:58::-;25114:6;25108:4;25104:17;25093:28;;25150:3;25144:10;25177:2;25169:6;25166:14;25163:27;;;25183:5;;;;;;24701:671;:::o;25163:27::-;25267:2;25248:16;25242:4;25238:27;25234:36;25227:4;25218:6;25213:3;25209:16;25205:27;25202:69;25199:82;;;25274:5;;;;;;24701:671;:::o;25199:82::-;25290:57;25341:4;25332:6;25324;25320:19;25316:30;25310:4;25290:57;:::i;:::-;-1:-1:-1;25363:3:1;;24701:671;-1:-1:-1;;;;;24701:671:1:o;25798:404::-;26000:2;25982:21;;;26039:2;26019:18;;;26012:30;26078:34;26073:2;26058:18;;26051:62;-1:-1:-1;;;26144:2:1;26129:18;;26122:38;26192:3;26177:19;;25798:404::o;26207:561::-;-1:-1:-1;;;;;26504:15:1;;;26486:34;;26556:15;;26551:2;26536:18;;26529:43;26603:2;26588:18;;26581:34;;;26646:2;26631:18;;26624:34;;;26466:3;26689;26674:19;;26667:32;;;26429:4;;26716:46;;26742:19;;26734:6;26716:46;:::i;:::-;26708:54;26207:561;-1:-1:-1;;;;;;;26207:561:1:o;26773:168::-;26846:9;;;26877;;26894:15;;;26888:22;;26874:37;26864:71;;26915:18;;:::i;26946:136::-;26985:3;27013:5;27003:39;;27022:18;;:::i;:::-;-1:-1:-1;;;27058:18:1;;26946:136::o

Swarm Source

ipfs://9663c352ef23f56256ee394bd685e2e9b4167a57dc2cb887545961bda460e596

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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.