ETH Price: $3,116.64 (-0.55%)

Token

Quil QAT (QAT)
 

Overview

Max Total Supply

100,002,299,999,999 QAT

Holders

4,717

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 8 Decimals)

Filtered by Token Holder
nftcrypto3.eth
Balance
86,206.89647 QAT

Value
$0.00
0x00EB9616b9c51FC42D5783713C4e447E56dc6e72
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
QAT

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
No with 200 runs

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

import "@thirdweb-dev/contracts/base/ERC20SignatureMint.sol";

contract QAT is ERC20SignatureMint {
      constructor(
        address _defaultAdmin,
        string memory _name,
        string memory _symbol,
        address _primarySaleRecipient
    )
        ERC20SignatureMint(
            _defaultAdmin,
            _name,
            _symbol,
            _primarySaleRecipient
        )
    {}

    function decimals() public view override returns (uint8) {
        return 8;
    }

}

File 2 of 30 : ERC20SignatureMint.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./ERC20Base.sol";

import "../extension/PrimarySale.sol";
import { SignatureMintERC20 } from "../extension/SignatureMintERC20.sol";
import { ReentrancyGuard } from "../extension/upgradeable/ReentrancyGuard.sol";
import { CurrencyTransferLib } from "../lib/CurrencyTransferLib.sol";

/**
 *      BASE:      ERC20
 *      EXTENSION: SignatureMintERC20
 *
 *  The `ERC20SignatureMint` contract uses the `ERC20Base` contract, along with the `SignatureMintERC20` extension.
 *
 *  The 'signature minting' mechanism in the `SignatureMintERC20` extension uses EIP 712, and is a way for a contract
 *  admin to authorize an external party's request to mint tokens on the admin's contract. At a high level, this means
 *  you can authorize some external party to mint tokens on your contract, and specify what exactly will be minted by
 *  that external party.
 *
 */

contract ERC20SignatureMint is ERC20Base, PrimarySale, SignatureMintERC20, ReentrancyGuard {
    /*//////////////////////////////////////////////////////////////
                            Constructor
    //////////////////////////////////////////////////////////////*/

    constructor(
        address _defaultAdmin,
        string memory _name,
        string memory _symbol,
        address _primarySaleRecipient
    ) ERC20Base(_defaultAdmin, _name, _symbol) {
        _setupPrimarySaleRecipient(_primarySaleRecipient);
    }

    /*//////////////////////////////////////////////////////////////
                        Signature minting logic
    //////////////////////////////////////////////////////////////*/

    /**
     *  @notice           Mints tokens according to the provided mint request.
     *
     *  @param _req       The payload / mint request.
     *  @param _signature The signature produced by an account signing the mint request.
     */
    function mintWithSignature(
        MintRequest calldata _req,
        bytes calldata _signature
    ) external payable virtual nonReentrant returns (address signer) {
        require(_req.quantity > 0, "Minting zero tokens.");

        // Verify and process payload.
        signer = _processRequest(_req, _signature);

        address receiver = _req.to;

        // Collect price
        _collectPriceOnClaim(_req.primarySaleRecipient, _req.currency, _req.price);

        // Mint tokens.
        _mint(receiver, _req.quantity);

        emit TokensMintedWithSignature(signer, receiver, _req);
    }

    /*//////////////////////////////////////////////////////////////
                            Internal functions
    //////////////////////////////////////////////////////////////*/

    /// @dev Returns whether a given address is authorized to sign mint requests.
    function _canSignMintRequest(address _signer) internal view virtual override returns (bool) {
        return _signer == owner();
    }

    /// @dev Returns whether primary sale recipient can be set in the given execution context.
    function _canSetPrimarySaleRecipient() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Collects and distributes the primary sale value of tokens being claimed.
    function _collectPriceOnClaim(address _primarySaleRecipient, address _currency, uint256 _price) internal virtual {
        if (_price == 0) {
            require(msg.value == 0, "!Value");
            return;
        }

        if (_currency == CurrencyTransferLib.NATIVE_TOKEN) {
            require(msg.value == _price, "Must send total price.");
        } else {
            require(msg.value == 0, "msg value not zero");
        }

        address saleRecipient = _primarySaleRecipient == address(0) ? primarySaleRecipient() : _primarySaleRecipient;
        CurrencyTransferLib.transferCurrency(_currency, msg.sender, saleRecipient, _price);
    }
}

File 3 of 30 : CurrencyTransferLib.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

// Helper interfaces
import { IWETH } from "../infra/interface/IWETH.sol";
import { SafeERC20, IERC20 } from "../external-deps/openzeppelin/token/ERC20/utils/SafeERC20.sol";

library CurrencyTransferLib {
    using SafeERC20 for IERC20;

    error CurrencyTransferLibMismatchedValue(uint256 expected, uint256 actual);
    error CurrencyTransferLibFailedNativeTransfer(address recipient, uint256 value);

    /// @dev The address interpreted as native token of the chain.
    address public constant NATIVE_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    /// @dev Transfers a given amount of currency.
    function transferCurrency(address _currency, address _from, address _to, uint256 _amount) internal {
        if (_amount == 0) {
            return;
        }

        if (_currency == NATIVE_TOKEN) {
            safeTransferNativeToken(_to, _amount);
        } else {
            safeTransferERC20(_currency, _from, _to, _amount);
        }
    }

    /// @dev Transfers a given amount of currency. (With native token wrapping)
    function transferCurrencyWithWrapper(
        address _currency,
        address _from,
        address _to,
        uint256 _amount,
        address _nativeTokenWrapper
    ) internal {
        if (_amount == 0) {
            return;
        }

        if (_currency == NATIVE_TOKEN) {
            if (_from == address(this)) {
                // withdraw from weth then transfer withdrawn native token to recipient
                IWETH(_nativeTokenWrapper).withdraw(_amount);
                safeTransferNativeTokenWithWrapper(_to, _amount, _nativeTokenWrapper);
            } else if (_to == address(this)) {
                // store native currency in weth
                if (_amount != msg.value) {
                    revert CurrencyTransferLibMismatchedValue(msg.value, _amount);
                }
                IWETH(_nativeTokenWrapper).deposit{ value: _amount }();
            } else {
                safeTransferNativeTokenWithWrapper(_to, _amount, _nativeTokenWrapper);
            }
        } else {
            safeTransferERC20(_currency, _from, _to, _amount);
        }
    }

    /// @dev Transfer `amount` of ERC20 token from `from` to `to`.
    function safeTransferERC20(address _currency, address _from, address _to, uint256 _amount) internal {
        if (_from == _to) {
            return;
        }

        if (_from == address(this)) {
            IERC20(_currency).safeTransfer(_to, _amount);
        } else {
            IERC20(_currency).safeTransferFrom(_from, _to, _amount);
        }
    }

    /// @dev Transfers `amount` of native token to `to`.
    function safeTransferNativeToken(address to, uint256 value) internal {
        // solhint-disable avoid-low-level-calls
        // slither-disable-next-line low-level-calls
        (bool success, ) = to.call{ value: value }("");
        if (!success) {
            revert CurrencyTransferLibFailedNativeTransfer(to, value);
        }
    }

    /// @dev Transfers `amount` of native token to `to`. (With native token wrapping)
    function safeTransferNativeTokenWithWrapper(address to, uint256 value, address _nativeTokenWrapper) internal {
        // solhint-disable avoid-low-level-calls
        // slither-disable-next-line low-level-calls
        (bool success, ) = to.call{ value: value }("");
        if (!success) {
            IWETH(_nativeTokenWrapper).deposit{ value: value }();
            IERC20(_nativeTokenWrapper).safeTransfer(to, value);
        }
    }
}

File 4 of 30 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

library ReentrancyGuardStorage {
    /// @custom:storage-location erc7201:reentrancy.guard.storage
    /// @dev keccak256(abi.encode(uint256(keccak256("reentrancy.guard.storage")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 public constant REENTRANCY_GUARD_STORAGE_POSITION =
        0x1d281c488dae143b6ea4122e80c65059929950b9c32f17fc57be22089d9c3b00;

    struct Data {
        uint256 _status;
    }

    function data() internal pure returns (Data storage data_) {
        bytes32 position = REENTRANCY_GUARD_STORAGE_POSITION;
        assembly {
            data_.slot := position
        }
    }
}

abstract contract ReentrancyGuard {
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    constructor() {
        _reentrancyGuardStorage()._status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_reentrancyGuardStorage()._status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _reentrancyGuardStorage()._status = _ENTERED;

        _;

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

    /// @dev Returns the ReentrancyGuard storage.
    function _reentrancyGuardStorage() internal pure returns (ReentrancyGuardStorage.Data storage data) {
        data = ReentrancyGuardStorage.data();
    }
}

File 5 of 30 : SignatureMintERC20.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/ISignatureMintERC20.sol";
import "../external-deps/openzeppelin/utils/cryptography/EIP712.sol";

abstract contract SignatureMintERC20 is EIP712, ISignatureMintERC20 {
    using ECDSA for bytes32;

    bytes32 private constant TYPEHASH =
        keccak256(
            "MintRequest(address to,address primarySaleRecipient,uint256 quantity,uint256 price,address currency,uint128 validityStartTimestamp,uint128 validityEndTimestamp,bytes32 uid)"
        );

    /// @dev Mapping from mint request UID => whether the mint request is processed.
    mapping(bytes32 => bool) private minted;

    constructor() EIP712("SignatureMintERC20", "1") {}

    /// @dev Verifies that a mint request is signed by an account holding MINTER_ROLE (at the time of the function call).
    function verify(
        MintRequest calldata _req,
        bytes calldata _signature
    ) public view override returns (bool success, address signer) {
        signer = _recoverAddress(_req, _signature);
        success = !minted[_req.uid] && _canSignMintRequest(signer);
    }

    /// @dev Returns whether a given address is authorized to sign mint requests.
    function _canSignMintRequest(address _signer) internal view virtual returns (bool);

    /// @dev Verifies a mint request and marks the request as minted.
    function _processRequest(MintRequest calldata _req, bytes calldata _signature) internal returns (address signer) {
        bool success;
        (success, signer) = verify(_req, _signature);

        require(success, "Invalid request");
        require(
            _req.validityStartTimestamp <= block.timestamp && block.timestamp <= _req.validityEndTimestamp,
            "Request expired"
        );
        require(_req.to != address(0), "recipient undefined");
        require(_req.quantity > 0, "0 qty");

        minted[_req.uid] = true;
    }

    /// @dev Returns the address of the signer of the mint request.
    function _recoverAddress(MintRequest calldata _req, bytes calldata _signature) internal view returns (address) {
        return _hashTypedDataV4(keccak256(_encodeRequest(_req))).recover(_signature);
    }

    /// @dev Resolves 'stack too deep' error in `recoverAddress`.
    function _encodeRequest(MintRequest calldata _req) internal pure returns (bytes memory) {
        return
            abi.encode(
                TYPEHASH,
                _req.to,
                _req.primarySaleRecipient,
                _req.quantity,
                _req.price,
                _req.currency,
                _req.validityStartTimestamp,
                _req.validityEndTimestamp,
                _req.uid
            );
    }
}

File 6 of 30 : PrimarySale.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IPrimarySale.sol";

/**
 *  @title   Primary Sale
 *  @notice  Thirdweb's `PrimarySale` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *           the recipient of primary sales, and lets the inheriting contract perform conditional logic that uses information about
 *           primary sales, if desired.
 */

abstract contract PrimarySale is IPrimarySale {
    /// @dev The sender is not authorized to perform the action
    error PrimarySaleUnauthorized();

    /// @dev The recipient is invalid
    error PrimarySaleInvalidRecipient(address recipient);

    /// @dev The address that receives all primary sales value.
    address private recipient;

    /// @dev Returns primary sale recipient address.
    function primarySaleRecipient() public view override returns (address) {
        return recipient;
    }

    /**
     *  @notice         Updates primary sale recipient.
     *  @dev            Caller should be authorized to set primary sales info.
     *                  See {_canSetPrimarySaleRecipient}.
     *                  Emits {PrimarySaleRecipientUpdated Event}; See {_setupPrimarySaleRecipient}.
     *
     *  @param _saleRecipient   Address to be set as new recipient of primary sales.
     */
    function setPrimarySaleRecipient(address _saleRecipient) external override {
        if (!_canSetPrimarySaleRecipient()) {
            revert PrimarySaleUnauthorized();
        }
        _setupPrimarySaleRecipient(_saleRecipient);
    }

    /// @dev Lets a contract admin set the recipient for all primary sales.
    function _setupPrimarySaleRecipient(address _saleRecipient) internal {
        if (_saleRecipient == address(0)) {
            revert PrimarySaleInvalidRecipient(_saleRecipient);
        }

        recipient = _saleRecipient;
        emit PrimarySaleRecipientUpdated(_saleRecipient);
    }

    /// @dev Returns whether primary sale recipient can be set in the given execution context.
    function _canSetPrimarySaleRecipient() internal view virtual returns (bool);
}

File 7 of 30 : ERC20Base.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "../external-deps/openzeppelin/token/ERC20/extensions/ERC20Permit.sol";

import "../extension/ContractMetadata.sol";
import "../extension/Multicall.sol";
import "../extension/Ownable.sol";
import "../extension/interface/IMintableERC20.sol";
import "../extension/interface/IBurnableERC20.sol";

/**
 *  The `ERC20Base` smart contract implements the ERC20 standard.
 *  It includes the following additions to standard ERC20 logic:
 *
 *      - Ability to mint & burn tokens via the provided `mint` & `burn` functions.
 *
 *      - Ownership of the contract, with the ability to restrict certain functions to
 *        only be called by the contract's owner.
 *
 *      - Multicall capability to perform multiple actions atomically
 *
 *      - EIP 2612 compliance: See {ERC20-permit} method, which can be used to change an account's ERC20 allowance by
 *                             presenting a message signed by the account.
 */

contract ERC20Base is ContractMetadata, Multicall, Ownable, ERC20Permit, IMintableERC20, IBurnableERC20 {
    /*//////////////////////////////////////////////////////////////
                            Constructor
    //////////////////////////////////////////////////////////////*/

    constructor(address _defaultAdmin, string memory _name, string memory _symbol) ERC20Permit(_name, _symbol) {
        _setupOwner(_defaultAdmin);
    }

    /*//////////////////////////////////////////////////////////////
                            Minting logic
    //////////////////////////////////////////////////////////////*/

    /**
     *  @notice          Lets an authorized address mint tokens to a recipient.
     *  @dev             The logic in the `_canMint` function determines whether the caller is authorized to mint tokens.
     *
     *  @param _to       The recipient of the tokens to mint.
     *  @param _amount   Quantity of tokens to mint.
     */
    function mintTo(address _to, uint256 _amount) public virtual {
        require(_canMint(), "Not authorized to mint.");
        require(_amount != 0, "Minting zero tokens.");

        _mint(_to, _amount);
    }

    /**
     *  @notice          Lets an owner a given amount of their tokens.
     *  @dev             Caller should own the `_amount` of tokens.
     *
     *  @param _amount   The number of tokens to burn.
     */
    function burn(uint256 _amount) external virtual {
        require(balanceOf(msg.sender) >= _amount, "not enough balance");
        _burn(msg.sender, _amount);
    }

    /**
     *  @notice          Lets an owner burn a given amount of an account's tokens.
     *  @dev             `_account` should own the `_amount` of tokens.
     *
     *  @param _account  The account to burn tokens from.
     *  @param _amount   The number of tokens to burn.
     */
    function burnFrom(address _account, uint256 _amount) external virtual override {
        require(_canBurn(), "Not authorized to burn.");
        require(balanceOf(_account) >= _amount, "not enough balance");
        uint256 decreasedAllowance = allowance(_account, msg.sender) - _amount;
        _approve(_account, msg.sender, 0);
        _approve(_account, msg.sender, decreasedAllowance);
        _burn(_account, _amount);
    }

    /*//////////////////////////////////////////////////////////////
                        Internal (overrideable) functions
    //////////////////////////////////////////////////////////////*/

    /// @dev Returns whether contract metadata can be set in the given execution context.
    function _canSetContractURI() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Returns whether tokens can be minted in the given execution context.
    function _canMint() internal view virtual returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Returns whether tokens can be burned in the given execution context.
    function _canBurn() internal view virtual returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Returns whether owner can be set in the given execution context.
    function _canSetOwner() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @notice Returns the sender in the given execution context.
    function _msgSender() internal view override(Multicall, Context) returns (address) {
        return msg.sender;
    }
}

File 8 of 30 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../../../../../eip/interface/IERC20.sol";
import { Address } from "../../../../../lib/Address.sol";

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

File 9 of 30 : IWETH.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

interface IWETH {
    function deposit() external payable;

    function withdraw(uint256 amount) external;

    function transfer(address to, uint256 value) external returns (bool);
}

File 10 of 30 : EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 11 of 30 : ISignatureMintERC20.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  The 'signature minting' mechanism used in thirdweb Token smart contracts is a way for a contract admin to authorize an external party's
 *  request to mint tokens on the admin's contract.
 *
 *  At a high level, this means you can authorize some external party to mint tokens on your contract, and specify what exactly will be
 *  minted by that external party.
 */
interface ISignatureMintERC20 {
    /**
     *  @notice The body of a request to mint tokens.
     *
     *  @param to The receiver of the tokens to mint.
     *  @param primarySaleRecipient The recipient of the minted token's primary sales proceeds.
     *  @param quantity The quantity of tokens to mint.
     *  @param pricePerToken The price to pay per quantity of tokens minted.
     *  @param currency The currency in which to pay the price per token minted.
     *  @param validityStartTimestamp The unix timestamp after which the payload is valid.
     *  @param validityEndTimestamp The unix timestamp at which the payload expires.
     *  @param uid A unique identifier for the payload.
     */
    struct MintRequest {
        address to;
        address primarySaleRecipient;
        uint256 quantity;
        uint256 price;
        address currency;
        uint128 validityStartTimestamp;
        uint128 validityEndTimestamp;
        bytes32 uid;
    }

    /// @dev Emitted when tokens are minted.
    event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, MintRequest mintRequest);

    /**
     *  @notice Verifies that a mint request is signed by an account holding
     *          MINTER_ROLE (at the time of the function call).
     *
     *  @param req The payload / mint request.
     *  @param signature The signature produced by an account signing the mint request.
     *
     *  returns (success, signer) Result of verification and the recovered address.
     */
    function verify(
        MintRequest calldata req,
        bytes calldata signature
    ) external view returns (bool success, address signer);

    /**
     *  @notice Mints tokens according to the provided mint request.
     *
     *  @param req The payload / mint request.
     *  @param signature The signature produced by an account signing the mint request.
     */
    function mintWithSignature(
        MintRequest calldata req,
        bytes calldata signature
    ) external payable returns (address signer);
}

File 12 of 30 : IPrimarySale.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  Thirdweb's `Primary` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *  the recipient of primary sales, and lets the inheriting contract perform conditional logic that uses information about
 *  primary sales, if desired.
 */

interface IPrimarySale {
    /// @dev The adress that receives all primary sales value.
    function primarySaleRecipient() external view returns (address);

    /// @dev Lets a module admin set the default recipient of all primary sales.
    function setPrimarySaleRecipient(address _saleRecipient) external;

    /// @dev Emitted when a new sale recipient is set.
    event PrimarySaleRecipientUpdated(address indexed recipient);
}

File 13 of 30 : IBurnableERC20.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

interface IBurnableERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) external;

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

File 14 of 30 : IMintableERC20.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

interface IMintableERC20 {
    /// @dev Emitted when tokens are minted with `mintTo`
    event TokensMinted(address indexed mintedTo, uint256 quantityMinted);

    /**
     * @dev Creates `amount` new tokens for `to`.
     *
     * See {ERC20-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the `MINTER_ROLE`.
     */
    function mintTo(address to, uint256 amount) external;
}

File 15 of 30 : Ownable.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IOwnable.sol";

/**
 *  @title   Ownable
 *  @notice  Thirdweb's `Ownable` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *           who the 'owner' of the inheriting smart contract is, and lets the inheriting contract perform conditional logic that uses
 *           information about who the contract's owner is.
 */

abstract contract Ownable is IOwnable {
    /// @dev The sender is not authorized to perform the action
    error OwnableUnauthorized();

    /// @dev Owner of the contract (purpose: OpenSea compatibility)
    address private _owner;

    /// @dev Reverts if caller is not the owner.
    modifier onlyOwner() {
        if (msg.sender != _owner) {
            revert OwnableUnauthorized();
        }
        _;
    }

    /**
     *  @notice Returns the owner of the contract.
     */
    function owner() public view override returns (address) {
        return _owner;
    }

    /**
     *  @notice Lets an authorized wallet set a new owner for the contract.
     *  @param _newOwner The address to set as the new owner of the contract.
     */
    function setOwner(address _newOwner) external override {
        if (!_canSetOwner()) {
            revert OwnableUnauthorized();
        }
        _setupOwner(_newOwner);
    }

    /// @dev Lets a contract admin set a new owner for the contract. The new owner must be a contract admin.
    function _setupOwner(address _newOwner) internal {
        address _prevOwner = _owner;
        _owner = _newOwner;

        emit OwnerUpdated(_prevOwner, _newOwner);
    }

    /// @dev Returns whether owner can be set in the given execution context.
    function _canSetOwner() internal view virtual returns (bool);
}

File 16 of 30 : Multicall.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "../lib/Address.sol";
import "./interface/IMulticall.sol";

/**
 * @dev Provides a function to batch together multiple calls in a single external call.
 *
 * _Available since v4.1._
 */
contract Multicall is IMulticall {
    /**
     *  @notice Receives and executes a batch of function calls on this contract.
     *  @dev Receives and executes a batch of function calls on this contract.
     *
     *  @param data The bytes data that makes up the batch of function calls to execute.
     *  @return results The bytes data that makes up the result of the batch of function calls executed.
     */
    function multicall(bytes[] calldata data) external returns (bytes[] memory results) {
        results = new bytes[](data.length);
        address sender = _msgSender();
        bool isForwarder = msg.sender != sender;
        for (uint256 i = 0; i < data.length; i++) {
            if (isForwarder) {
                results[i] = Address.functionDelegateCall(address(this), abi.encodePacked(data[i], sender));
            } else {
                results[i] = Address.functionDelegateCall(address(this), data[i]);
            }
        }
        return results;
    }

    /// @notice Returns the sender in the given execution context.
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }
}

File 17 of 30 : ContractMetadata.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IContractMetadata.sol";

/**
 *  @title   Contract Metadata
 *  @notice  Thirdweb's `ContractMetadata` is a contract extension for any base contracts. It lets you set a metadata URI
 *           for you contract.
 *           Additionally, `ContractMetadata` is necessary for NFT contracts that want royalties to get distributed on OpenSea.
 */

abstract contract ContractMetadata is IContractMetadata {
    /// @dev The sender is not authorized to perform the action
    error ContractMetadataUnauthorized();

    /// @notice Returns the contract metadata URI.
    string public override contractURI;

    /**
     *  @notice         Lets a contract admin set the URI for contract-level metadata.
     *  @dev            Caller should be authorized to setup contractURI, e.g. contract admin.
     *                  See {_canSetContractURI}.
     *                  Emits {ContractURIUpdated Event}.
     *
     *  @param _uri     keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
     */
    function setContractURI(string memory _uri) external override {
        if (!_canSetContractURI()) {
            revert ContractMetadataUnauthorized();
        }

        _setupContractURI(_uri);
    }

    /// @dev Lets a contract admin set the URI for contract-level metadata.
    function _setupContractURI(string memory _uri) internal {
        string memory prevURI = contractURI;
        contractURI = _uri;

        emit ContractURIUpdated(prevURI, _uri);
    }

    /// @dev Returns whether contract metadata can be set in the given execution context.
    function _canSetContractURI() internal view virtual returns (bool);
}

File 18 of 30 : ERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-ERC20Permit.sol)

pragma solidity ^0.8.0;

import "../../../../../eip/interface/IERC20Permit.sol";
import "../ERC20.sol";
import "../../../utils/cryptography/EIP712.sol";
import "../../../utils/cryptography/ECDSA.sol";
import "../../../utils/Counters.sol";

/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;

    // solhint-disable-next-line var-name-mixedcase
    uint256 private immutable _CACHED_CHAIN_ID;

    // solhint-disable-next-line var-name-mixedcase
    address private immutable _CACHED_THIS;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_) {
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_THIS = address(this);
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator();
    }

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));

        bytes32 hash = ECDSA.toTypedDataHash(DOMAIN_SEPARATOR(), structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() public view override returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator();
        }
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name())),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        Counters.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
}

File 19 of 30 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../../../../lib/Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

File 20 of 30 : Address.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.1;

/// @author thirdweb, OpenZeppelin Contracts (v4.9.0)

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

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

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

File 21 of 30 : IERC20.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
interface IERC20 {
    function totalSupply() external view returns (uint256);

    function balanceOf(address who) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    function transfer(address to, uint256 value) external returns (bool);

    function approve(address spender, uint256 value) external returns (bool);

    function transferFrom(address from, address to, uint256 value) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 22 of 30 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 23 of 30 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "../../../../eip/interface/IERC20.sol";
import "../../../../eip/interface/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @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, _allowances[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 = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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 Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * 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 {}
}

File 24 of 30 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 25 of 30 : IOwnable.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  Thirdweb's `Ownable` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *  who the 'owner' of the inheriting smart contract is, and lets the inheriting contract perform conditional logic that uses
 *  information about who the contract's owner is.
 */

interface IOwnable {
    /// @dev Returns the owner of the contract.
    function owner() external view returns (address);

    /// @dev Lets a module admin set a new owner for the contract. The new owner must be a module admin.
    function setOwner(address _newOwner) external;

    /// @dev Emitted when a new Owner is set.
    event OwnerUpdated(address indexed prevOwner, address indexed newOwner);
}

File 26 of 30 : IMulticall.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 * @dev Provides a function to batch together multiple calls in a single external call.
 *
 * _Available since v4.1._
 */
interface IMulticall {
    /**
     * @dev Receives and executes a batch of function calls on this contract.
     */
    function multicall(bytes[] calldata data) external returns (bytes[] memory results);
}

File 27 of 30 : IContractMetadata.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  Thirdweb's `ContractMetadata` is a contract extension for any base contracts. It lets you set a metadata URI
 *  for you contract.
 *
 *  Additionally, `ContractMetadata` is necessary for NFT contracts that want royalties to get distributed on OpenSea.
 */

interface IContractMetadata {
    /// @dev Returns the metadata URI of the contract.
    function contractURI() external view returns (string memory);

    /**
     *  @dev Sets contract URI for the storefront-level metadata of the contract.
     *       Only module admin can call this function.
     */
    function setContractURI(string calldata _uri) external;

    /// @dev Emitted when the contract URI is updated.
    event ContractURIUpdated(string prevURI, string newURI);
}

File 28 of 30 : Strings.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 * @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 Returns the hexadecimal representation of `value`.
    /// The output is prefixed with "0x", encoded using 2 hexadecimal digits per byte,
    /// and the alphabets are capitalized conditionally according to
    /// https://eips.ethereum.org/EIPS/eip-55
    function toHexStringChecksummed(address value) internal pure returns (string memory str) {
        str = toHexString(value);
        /// @solidity memory-safe-assembly
        assembly {
            let mask := shl(6, div(not(0), 255)) // `0b010000000100000000 ...`
            let o := add(str, 0x22)
            let hashed := and(keccak256(o, 40), mul(34, mask)) // `0b10001000 ... `
            let t := shl(240, 136) // `0b10001000 << 240`
            for {
                let i := 0
            } 1 {

            } {
                mstore(add(i, i), mul(t, byte(i, hashed)))
                i := add(i, 1)
                if eq(i, 20) {
                    break
                }
            }
            mstore(o, xor(mload(o), shr(1, and(mload(0x00), and(mload(o), mask)))))
            o := add(o, 0x20)
            mstore(o, xor(mload(o), shr(1, and(mload(0x20), and(mload(o), mask)))))
        }
    }

    /// @dev Returns the hexadecimal representation of `value`.
    /// The output is prefixed with "0x" and encoded using 2 hexadecimal digits per byte.
    function toHexString(address value) internal pure returns (string memory str) {
        str = toHexStringNoPrefix(value);
        /// @solidity memory-safe-assembly
        assembly {
            let strLength := add(mload(str), 2) // Compute the length.
            mstore(str, 0x3078) // Write the "0x" prefix.
            str := sub(str, 2) // Move the pointer.
            mstore(str, strLength) // Write the length.
        }
    }

    /// @dev Returns the hexadecimal representation of `value`.
    /// The output is encoded using 2 hexadecimal digits per byte.
    function toHexStringNoPrefix(address value) internal pure returns (string memory str) {
        /// @solidity memory-safe-assembly
        assembly {
            str := mload(0x40)

            // Allocate the memory.
            // We need 0x20 bytes for the trailing zeros padding, 0x20 bytes for the length,
            // 0x02 bytes for the prefix, and 0x28 bytes for the digits.
            // The next multiple of 0x20 above (0x20 + 0x20 + 0x02 + 0x28) is 0x80.
            mstore(0x40, add(str, 0x80))

            // Store "0123456789abcdef" in scratch space.
            mstore(0x0f, 0x30313233343536373839616263646566)

            str := add(str, 2)
            mstore(str, 40)

            let o := add(str, 0x20)
            mstore(add(o, 40), 0)

            value := shl(96, value)

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            for {
                let i := 0
            } 1 {

            } {
                let p := add(o, add(i, i))
                let temp := byte(i, value)
                mstore8(add(p, 1), mload(and(temp, 15)))
                mstore8(p, mload(shr(4, temp)))
                i := add(i, 1)
                if eq(i, 20) {
                    break
                }
            }
        }
    }

    /// @dev Returns the hex encoded string from the raw bytes.
    /// The output is encoded using 2 hexadecimal digits per byte.
    function toHexString(bytes memory raw) internal pure returns (string memory str) {
        str = toHexStringNoPrefix(raw);
        /// @solidity memory-safe-assembly
        assembly {
            let strLength := add(mload(str), 2) // Compute the length.
            mstore(str, 0x3078) // Write the "0x" prefix.
            str := sub(str, 2) // Move the pointer.
            mstore(str, strLength) // Write the length.
        }
    }

    /// @dev Returns the hex encoded string from the raw bytes.
    /// The output is encoded using 2 hexadecimal digits per byte.
    function toHexStringNoPrefix(bytes memory raw) internal pure returns (string memory str) {
        /// @solidity memory-safe-assembly
        assembly {
            let length := mload(raw)
            str := add(mload(0x40), 2) // Skip 2 bytes for the optional prefix.
            mstore(str, add(length, length)) // Store the length of the output.

            // Store "0123456789abcdef" in scratch space.
            mstore(0x0f, 0x30313233343536373839616263646566)

            let o := add(str, 0x20)
            let end := add(raw, length)

            for {

            } iszero(eq(raw, end)) {

            } {
                raw := add(raw, 1)
                mstore8(add(o, 1), mload(and(mload(raw), 15)))
                mstore8(o, mload(and(shr(4, mload(raw)), 15)))
                o := add(o, 2)
            }
            mstore(o, 0) // Zeroize the slot after the string.
            mstore(0x40, add(o, 0x20)) // Allocate the memory.
        }
    }
}

File 29 of 30 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 30 of 30 : IERC20Metadata.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/**
 * @title ERC20Metadata interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
interface IERC20Metadata {
    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_defaultAdmin","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_primarySaleRecipient","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ContractMetadataUnauthorized","type":"error"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"CurrencyTransferLibFailedNativeTransfer","type":"error"},{"inputs":[],"name":"OwnableUnauthorized","type":"error"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"PrimarySaleInvalidRecipient","type":"error"},{"inputs":[],"name":"PrimarySaleUnauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"prevURI","type":"string"},{"indexed":false,"internalType":"string","name":"newURI","type":"string"}],"name":"ContractURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"prevOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"}],"name":"PrimarySaleRecipientUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mintedTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantityMinted","type":"uint256"}],"name":"TokensMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signer","type":"address"},{"indexed":true,"internalType":"address","name":"mintedTo","type":"address"},{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"primarySaleRecipient","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"uint128","name":"validityStartTimestamp","type":"uint128"},{"internalType":"uint128","name":"validityEndTimestamp","type":"uint128"},{"internalType":"bytes32","name":"uid","type":"bytes32"}],"indexed":false,"internalType":"struct ISignatureMintERC20.MintRequest","name":"mintRequest","type":"tuple"}],"name":"TokensMintedWithSignature","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"primarySaleRecipient","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"uint128","name":"validityStartTimestamp","type":"uint128"},{"internalType":"uint128","name":"validityEndTimestamp","type":"uint128"},{"internalType":"bytes32","name":"uid","type":"bytes32"}],"internalType":"struct ISignatureMintERC20.MintRequest","name":"_req","type":"tuple"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintWithSignature","outputs":[{"internalType":"address","name":"signer","type":"address"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"primarySaleRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_saleRecipient","type":"address"}],"name":"setPrimarySaleRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"primarySaleRecipient","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"uint128","name":"validityStartTimestamp","type":"uint128"},{"internalType":"uint128","name":"validityEndTimestamp","type":"uint128"},{"internalType":"bytes32","name":"uid","type":"bytes32"}],"internalType":"struct ISignatureMintERC20.MintRequest","name":"_req","type":"tuple"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"address","name":"signer","type":"address"}],"stateMutability":"view","type":"function"}]

6101c06040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960e090815250348015610037575f80fd5b50604051615c36380380615c368339818101604052810190610059919061072e565b838383836040518060400160405280601281526020017f5369676e61747572654d696e74455243323000000000000000000000000000008152506040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152508585858181818181600590816100df91906109d7565b5080600690816100ef91906109d7565b5050504660a081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff168152505061013c61023a60201b60201c565b608081815250505050610154836102c360201b60201c565b5050505f828051906020012090505f828051906020012090505f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f90508261016081815250508161018081815250504661012081815250506101bd81848461038660201b60201c565b61010081815250503073ffffffffffffffffffffffffffffffffffffffff166101408173ffffffffffffffffffffffffffffffffffffffff1681525050806101a08181525050505050505060016102186103bf60201b60201c565b5f018190555061022d816103d360201b60201c565b5050505050505050610b46565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61026a6104c960201b60201c565b805190602001207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc646306040516020016102a8959493929190610adc565b60405160208183030381529060405280519060200120905090565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a35050565b5f83838346306040516020016103a0959493929190610adc565b6040516020818303038152906040528051906020012090509392505050565b5f6103ce61055960201b60201c565b905090565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361044357806040517f3df2b0dc00000000000000000000000000000000000000000000000000000000815260040161043a9190610b2d565b60405180910390fd5b8060085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f299d17e95023f496e0ffc4909cff1a61f74bb5eb18de6f900f4155bfa1b3b33360405160405180910390a250565b6060600580546104d890610801565b80601f016020809104026020016040519081016040528092919081815260200182805461050490610801565b801561054f5780601f106105265761010080835404028352916020019161054f565b820191905f5260205f20905b81548152906001019060200180831161053257829003601f168201915b5050505050905090565b5f807f1d281c488dae143b6ea4122e80c65059929950b9c32f17fc57be22089d9c3b005f1b90508091505090565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6105c182610598565b9050919050565b6105d1816105b7565b81146105db575f80fd5b50565b5f815190506105ec816105c8565b92915050565b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610640826105fa565b810181811067ffffffffffffffff8211171561065f5761065e61060a565b5b80604052505050565b5f610671610587565b905061067d8282610637565b919050565b5f67ffffffffffffffff82111561069c5761069b61060a565b5b6106a5826105fa565b9050602081019050919050565b8281835e5f83830152505050565b5f6106d26106cd84610682565b610668565b9050828152602081018484840111156106ee576106ed6105f6565b5b6106f98482856106b2565b509392505050565b5f82601f830112610715576107146105f2565b5b81516107258482602086016106c0565b91505092915050565b5f805f806080858703121561074657610745610590565b5b5f610753878288016105de565b945050602085015167ffffffffffffffff81111561077457610773610594565b5b61078087828801610701565b935050604085015167ffffffffffffffff8111156107a1576107a0610594565b5b6107ad87828801610701565b92505060606107be878288016105de565b91505092959194509250565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061081857607f821691505b60208210810361082b5761082a6107d4565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261088d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610852565b6108978683610852565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6108db6108d66108d1846108af565b6108b8565b6108af565b9050919050565b5f819050919050565b6108f4836108c1565b610908610900826108e2565b84845461085e565b825550505050565b5f90565b61091c610910565b6109278184846108eb565b505050565b5b8181101561094a5761093f5f82610914565b60018101905061092d565b5050565b601f82111561098f5761096081610831565b61096984610843565b81016020851015610978578190505b61098c61098485610843565b83018261092c565b50505b505050565b5f82821c905092915050565b5f6109af5f1984600802610994565b1980831691505092915050565b5f6109c783836109a0565b9150826002028217905092915050565b6109e0826107ca565b67ffffffffffffffff8111156109f9576109f861060a565b5b610a038254610801565b610a0e82828561094e565b5f60209050601f831160018114610a3f575f8415610a2d578287015190505b610a3785826109bc565b865550610a9e565b601f198416610a4d86610831565b5f5b82811015610a7457848901518255600182019150602085019450602081019050610a4f565b86831015610a915784890151610a8d601f8916826109a0565b8355505b6001600288020188555050505b505050505050565b5f819050919050565b610ab881610aa6565b82525050565b610ac7816108af565b82525050565b610ad6816105b7565b82525050565b5f60a082019050610aef5f830188610aaf565b610afc6020830187610aaf565b610b096040830186610aaf565b610b166060830185610abe565b610b236080830184610acd565b9695505050505050565b5f602082019050610b405f830184610acd565b92915050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a051615081610bb55f395f612c1f01525f612c6101525f612c4001525f612b7501525f612bcb01525f612bf401525f6111ab01525f6107db01525f61083101525f61085a01526150815ff3fe608060405260043610610180575f3560e01c806379cc6790116100d0578063a457c2d711610089578063c1b606e211610063578063c1b606e2146105aa578063d505accf146105e7578063dd62ed3e1461060f578063e8a3d4851461064b57610180565b8063a457c2d7146104f6578063a9059cbb14610532578063ac9650d81461056e57610180565b806379cc6790146103e65780637ecebe001461040e5780638da5cb5b1461044a5780638f0fefbb14610474578063938e3d7b146104a457806395d89b41146104cc57610180565b8063313ce5671161013d57806342966c681161011757806342966c6814610332578063449a52f81461035a5780636f4f28371461038257806370a08231146103aa57610180565b8063313ce567146102a25780633644e515146102cc57806339509351146102f657610180565b806306fdde0314610184578063079fe40e146101ae578063095ea7b3146101d857806313af40351461021457806318160ddd1461023c57806323b872dd14610266575b5f80fd5b34801561018f575f80fd5b50610198610675565b6040516101a591906130a5565b60405180910390f35b3480156101b9575f80fd5b506101c2610705565b6040516101cf9190613104565b60405180910390f35b3480156101e3575f80fd5b506101fe60048036038101906101f9919061318b565b61072d565b60405161020b91906131e3565b60405180910390f35b34801561021f575f80fd5b5061023a600480360381019061023591906131fc565b61074f565b005b348015610247575f80fd5b50610250610799565b60405161025d9190613236565b60405180910390f35b348015610271575f80fd5b5061028c6004803603810190610287919061324f565b6107a2565b60405161029991906131e3565b60405180910390f35b3480156102ad575f80fd5b506102b66107d0565b6040516102c391906132ba565b60405180910390f35b3480156102d7575f80fd5b506102e06107d8565b6040516102ed91906132eb565b60405180910390f35b348015610301575f80fd5b5061031c6004803603810190610317919061318b565b61088e565b60405161032991906131e3565b60405180910390f35b34801561033d575f80fd5b5061035860048036038101906103539190613304565b610933565b005b348015610365575f80fd5b50610380600480360381019061037b919061318b565b61098b565b005b34801561038d575f80fd5b506103a860048036038101906103a391906131fc565b610a22565b005b3480156103b5575f80fd5b506103d060048036038101906103cb91906131fc565b610a6c565b6040516103dd9190613236565b60405180910390f35b3480156103f1575f80fd5b5061040c6004803603810190610407919061318b565b610ab2565b005b348015610419575f80fd5b50610434600480360381019061042f91906131fc565b610b81565b6040516104419190613236565b60405180910390f35b348015610455575f80fd5b5061045e610bce565b60405161046b9190613104565b60405180910390f35b61048e600480360381019061048991906133b3565b610bf6565b60405161049b9190613104565b60405180910390f35b3480156104af575f80fd5b506104ca60048036038101906104c5919061353a565b610d7a565b005b3480156104d7575f80fd5b506104e0610dc4565b6040516104ed91906130a5565b60405180910390f35b348015610501575f80fd5b5061051c6004803603810190610517919061318b565b610e54565b60405161052991906131e3565b60405180910390f35b34801561053d575f80fd5b506105586004803603810190610553919061318b565b610f38565b60405161056591906131e3565b60405180910390f35b348015610579575f80fd5b50610594600480360381019061058f91906135d6565b610f5a565b6040516105a1919061372e565b60405180910390f35b3480156105b5575f80fd5b506105d060048036038101906105cb91906133b3565b611118565b6040516105de92919061374e565b60405180910390f35b3480156105f2575f80fd5b5061060d600480360381019061060891906137c9565b611165565b005b34801561061a575f80fd5b5061063560048036038101906106309190613866565b6112ac565b6040516106429190613236565b60405180910390f35b348015610656575f80fd5b5061065f61132e565b60405161066c91906130a5565b60405180910390f35b606060058054610684906138d1565b80601f01602080910402602001604051908101604052809291908181526020018280546106b0906138d1565b80156106fb5780601f106106d2576101008083540402835291602001916106fb565b820191905f5260205f20905b8154815290600101906020018083116106de57829003601f168201915b5050505050905090565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f806107376113b9565b90506107448185856113c0565b600191505092915050565b610757611583565b61078d576040517f2d99739600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610796816115bf565b50565b5f600454905090565b5f806107ac6113b9565b90506107b9858285611682565b6107c485858561170d565b60019150509392505050565b5f6008905090565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614801561085357507f000000000000000000000000000000000000000000000000000000000000000046145b15610880577f0000000000000000000000000000000000000000000000000000000000000000905061088b565b610888611985565b90505b90565b5f806108986113b9565b905061092881858560035f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610923919061392e565b6113c0565b600191505092915050565b8061093d33610a6c565b101561097e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610975906139ab565b60405180910390fd5b6109883382611a08565b50565b610993611bd6565b6109d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c990613a13565b60405180910390fd5b5f8103610a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0b90613a7b565b60405180910390fd5b610a1e8282611c12565b5050565b610a2a611d6a565b610a60576040517f7260843c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a6981611da6565b50565b5f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610aba611e9c565b610af9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af090613ae3565b60405180910390fd5b80610b0383610a6c565b1015610b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3b906139ab565b60405180910390fd5b5f81610b5084336112ac565b610b5a9190613b01565b9050610b6783335f6113c0565b610b728333836113c0565b610b7c8383611a08565b505050565b5f610bc760075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20611ed8565b9050919050565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f6002610c01611ee4565b5f015403610c44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3b90613b7e565b60405180910390fd5b6002610c4e611ee4565b5f01819055505f846040013511610c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9190613a7b565b60405180910390fd5b610ca5848484611ef2565b90505f845f016020810190610cba91906131fc565b9050610cef856020016020810190610cd291906131fc565b866080016020810190610ce591906131fc565b87606001356120d8565b610cfd818660400135611c12565b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc4d88b1adde72eb5acf63f3e219ef5b223262233acf507c3b171277c91973c6787604051610d5a9190613d55565b60405180910390a3506001610d6d611ee4565b5f01819055509392505050565b610d8261224f565b610db8576040517f9f7f092500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dc18161228b565b50565b606060068054610dd3906138d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610dff906138d1565b8015610e4a5780601f10610e2157610100808354040283529160200191610e4a565b820191905f5260205f20905b815481529060010190602001808311610e2d57829003601f168201915b5050505050905090565b5f80610e5e6113b9565b90505f60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905083811015610f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1690613ddf565b60405180910390fd5b610f2c82868684036113c0565b60019250505092915050565b5f80610f426113b9565b9050610f4f81858561170d565b600191505092915050565b60608282905067ffffffffffffffff811115610f7957610f78613416565b5b604051908082528060200260200182016040528015610fac57816020015b6060815260200190600190039081610f975790505b5090505f610fb86113b9565b90505f8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141590505f5b8585905081101561110f578115611073576110503087878481811061101757611016613dfd565b5b90506020028101906110299190613e36565b8660405160200161103c93929190613f0b565b604051602081830303815290604052612362565b84828151811061106357611062613dfd565b5b6020026020010181905250611102565b6110e33087878481811061108a57611089613dfd565b5b905060200281019061109c9190613e36565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f82011690508083019250505050505050612362565b8482815181106110f6576110f5613dfd565b5b60200260200101819052505b8080600101915050610fef565b50505092915050565b5f8061112585858561238f565b905060095f8660e0013581526020019081526020015f205f9054906101000a900460ff1615801561115b575061115a81612406565b5b9150935093915050565b834211156111a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119f90613f7e565b60405180910390fd5b5f7f00000000000000000000000000000000000000000000000000000000000000008888886111d68c612444565b896040516020016111ec96959493929190613f9c565b6040516020818303038152906040528051906020012090505f6112166112106107d8565b8361249f565b90505f611225828787876124df565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611295576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128c90614045565b60405180910390fd5b6112a08a8a8a6113c0565b50505050505050505050565b5f60035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f805461133a906138d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611366906138d1565b80156113b15780601f10611388576101008083540402835291602001916113b1565b820191905f5260205f20905b81548152906001019060200180831161139457829003601f168201915b505050505081565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361142e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611425906140d3565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361149c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149390614161565b60405180910390fd5b8060035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516115769190613236565b60405180910390a3505050565b5f61158c610bce565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a35050565b5f61168d84846112ac565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461170757818110156116f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f0906141c9565b60405180910390fd5b61170684848484036113c0565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361177b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177290614257565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e0906142e5565b60405180910390fd5b6117f4838383612508565b5f60025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186f90614373565b60405180910390fd5b81810360025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611908919061392e565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161196c9190613236565b60405180910390a361197f84848461250d565b50505050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6119af610675565b805190602001207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc646306040516020016119ed959493929190614391565b60405160208183030381529060405280519060200120905090565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6d90614452565b60405180910390fd5b611a81825f83612508565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611b05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afc906144e0565b60405180910390fd5b81810360025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160045f828254611b5a9190613b01565b925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611bbe9190613236565b60405180910390a3611bd1835f8461250d565b505050565b5f611bdf610bce565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7790614548565b60405180910390fd5b611c8b5f8383612508565b8060045f828254611c9c919061392e565b925050819055508060025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611cef919061392e565b925050819055508173ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611d539190613236565b60405180910390a3611d665f838361250d565b5050565b5f611d73610bce565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e1657806040517f3df2b0dc000000000000000000000000000000000000000000000000000000008152600401611e0d9190613104565b60405180910390fd5b8060085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f299d17e95023f496e0ffc4909cff1a61f74bb5eb18de6f900f4155bfa1b3b33360405160405180910390a250565b5f611ea5610bce565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f815f01549050919050565b5f611eed612512565b905090565b5f80611eff858585611118565b809350819250505080611f47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3e906145b0565b60405180910390fd5b428560a0016020810190611f5b91906145ce565b6fffffffffffffffffffffffffffffffff1611158015611f9f57508460c0016020810190611f8991906145ce565b6fffffffffffffffffffffffffffffffff164211155b611fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd590614643565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff16855f01602081019061200791906131fc565b73ffffffffffffffffffffffffffffffffffffffff160361205d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612054906146ab565b60405180910390fd5b5f8560400135116120a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209a90614713565b60405180910390fd5b600160095f8760e0013581526020019081526020015f205f6101000a81548160ff021916908315150217905550509392505050565b5f8103612126575f3414612121576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121189061477b565b60405180910390fd5b61224a565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036121b4578034146121af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a6906147e3565b60405180910390fd5b6121f7565b5f34146121f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ed9061484b565b60405180910390fd5b5b5f8073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612231578361223a565b612239610705565b5b905061224883338385612540565b505b505050565b5f612258610bce565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f808054612298906138d1565b80601f01602080910402602001604051908101604052809291908181526020018280546122c4906138d1565b801561230f5780601f106122e65761010080835404028352916020019161230f565b820191905f5260205f20905b8154815290600101906020018083116122f257829003601f168201915b50505050509050815f90816123249190614a06565b507fc9c7c3fe08b88b4df9d4d47ef47d2c43d55c025a0ba88ca442580ed9e7348a168183604051612356929190614ad5565b60405180910390a15050565b60606123878383604051806060016040528060278152602001615025602791396125b2565b905092915050565b5f6123fd83838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f820116905080830192505050505050506123ef6123e387612634565b805190602001206126f2565b61270b90919063ffffffff16565b90509392505050565b5f61240f610bce565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b5f8060075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20905061248e81611ed8565b915061249981612730565b50919050565b5f6040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b5f805f6124ee87878787612744565b915091506124fb8161281c565b8192505050949350505050565b505050565b505050565b5f807f1d281c488dae143b6ea4122e80c65059929950b9c32f17fc57be22089d9c3b005f1b90508091505090565b5f8103156125ac5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361259e576125998282612981565b6125ab565b6125aa84848484612a32565b5b5b50505050565b60605f808573ffffffffffffffffffffffffffffffffffffffff16856040516125db9190614b3a565b5f60405180830381855af49150503d805f8114612613576040519150601f19603f3d011682016040523d82523d5f602084013e612618565b606091505b509150915061262986838387612afe565b925050509392505050565b60607fbac245dbd9b8b2bb334c0675db20a7a7a8506de563990c4ce3207f4c3c5b75e1825f01602081019061266991906131fc565b83602001602081019061267c91906131fc565b8460400135856060013586608001602081019061269991906131fc565b8760a00160208101906126ac91906145ce565b8860c00160208101906126bf91906145ce565b8960e001356040516020016126dc99989796959493929190614b5f565b6040516020818303038152906040529050919050565b5f6127046126fe612b72565b8361249f565b9050919050565b5f805f6127188585612c8b565b915091506127258161281c565b819250505092915050565b6001815f015f828254019250508190555050565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0835f1c111561277c575f600391509150612813565b5f6001878787876040515f815260200160405260405161279f9493929190614bea565b6020604051602081039080840390855afa1580156127bf573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361280b575f60019250925050612813565b805f92509250505b94509492505050565b5f600481111561282f5761282e614c2d565b5b81600481111561284257612841614c2d565b5b031561297e576001600481111561285c5761285b614c2d565b5b81600481111561286f5761286e614c2d565b5b036128af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a690614ca4565b60405180910390fd5b600260048111156128c3576128c2614c2d565b5b8160048111156128d6576128d5614c2d565b5b03612916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290d90614d0c565b60405180910390fd5b6003600481111561292a57612929614c2d565b5b81600481111561293d5761293c614c2d565b5b0361297d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297490614d9a565b60405180910390fd5b5b50565b5f8273ffffffffffffffffffffffffffffffffffffffff16826040516129a690614ddb565b5f6040518083038185875af1925050503d805f81146129e0576040519150601f19603f3d011682016040523d82523d5f602084013e6129e5565b606091505b5050905080612a2d5782826040517fbfb89d82000000000000000000000000000000000000000000000000000000008152600401612a24929190614def565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160315612af8573073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612ac957612ac482828673ffffffffffffffffffffffffffffffffffffffff16612cd79092919063ffffffff16565b612af7565b612af68383838773ffffffffffffffffffffffffffffffffffffffff16612d5d909392919063ffffffff16565b5b5b50505050565b60608315612b5f575f835103612b5757612b1785612de6565b612b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4d90614e60565b60405180910390fd5b5b829050612b6a565b612b698383612e08565b5b949350505050565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148015612bed57507f000000000000000000000000000000000000000000000000000000000000000046145b15612c1a577f00000000000000000000000000000000000000000000000000000000000000009050612c88565b612c857f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612e57565b90505b90565b5f806041835103612cc8575f805f602086015192506040860151915060608601515f1a9050612cbc87828585612744565b94509450505050612cd0565b5f6002915091505b9250929050565b612d588363a9059cbb60e01b8484604051602401612cf6929190614def565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612e90565b505050565b612de0846323b872dd60e01b858585604051602401612d7e93929190614e7e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612e90565b50505050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f82511115612e1a5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e4e91906130a5565b60405180910390fd5b5f8383834630604051602001612e71959493929190614391565b6040516020818303038152906040528051906020012090509392505050565b5f612ef1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612f559092919063ffffffff16565b90505f81511115612f505780806020019051810190612f109190614edd565b612f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4690614f78565b60405180910390fd5b5b505050565b6060612f6384845f85612f6c565b90509392505050565b606082471015612fb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa890615006565b60405180910390fd5b5f808673ffffffffffffffffffffffffffffffffffffffff168587604051612fd99190614b3a565b5f6040518083038185875af1925050503d805f8114613013576040519150601f19603f3d011682016040523d82523d5f602084013e613018565b606091505b509150915061302987838387612afe565b92505050949350505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61307782613035565b613081818561303f565b935061309181856020860161304f565b61309a8161305d565b840191505092915050565b5f6020820190508181035f8301526130bd818461306d565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6130ee826130c5565b9050919050565b6130fe816130e4565b82525050565b5f6020820190506131175f8301846130f5565b92915050565b5f604051905090565b5f80fd5b5f80fd5b613137816130e4565b8114613141575f80fd5b50565b5f813590506131528161312e565b92915050565b5f819050919050565b61316a81613158565b8114613174575f80fd5b50565b5f8135905061318581613161565b92915050565b5f80604083850312156131a1576131a0613126565b5b5f6131ae85828601613144565b92505060206131bf85828601613177565b9150509250929050565b5f8115159050919050565b6131dd816131c9565b82525050565b5f6020820190506131f65f8301846131d4565b92915050565b5f6020828403121561321157613210613126565b5b5f61321e84828501613144565b91505092915050565b61323081613158565b82525050565b5f6020820190506132495f830184613227565b92915050565b5f805f6060848603121561326657613265613126565b5b5f61327386828701613144565b935050602061328486828701613144565b925050604061329586828701613177565b9150509250925092565b5f60ff82169050919050565b6132b48161329f565b82525050565b5f6020820190506132cd5f8301846132ab565b92915050565b5f819050919050565b6132e5816132d3565b82525050565b5f6020820190506132fe5f8301846132dc565b92915050565b5f6020828403121561331957613318613126565b5b5f61332684828501613177565b91505092915050565b5f80fd5b5f61010082840312156133495761334861332f565b5b81905092915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261337357613372613352565b5b8235905067ffffffffffffffff8111156133905761338f613356565b5b6020830191508360018202830111156133ac576133ab61335a565b5b9250929050565b5f805f61012084860312156133cb576133ca613126565b5b5f6133d886828701613333565b93505061010084013567ffffffffffffffff8111156133fa576133f961312a565b5b6134068682870161335e565b92509250509250925092565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61344c8261305d565b810181811067ffffffffffffffff8211171561346b5761346a613416565b5b80604052505050565b5f61347d61311d565b90506134898282613443565b919050565b5f67ffffffffffffffff8211156134a8576134a7613416565b5b6134b18261305d565b9050602081019050919050565b828183375f83830152505050565b5f6134de6134d98461348e565b613474565b9050828152602081018484840111156134fa576134f9613412565b5b6135058482856134be565b509392505050565b5f82601f83011261352157613520613352565b5b81356135318482602086016134cc565b91505092915050565b5f6020828403121561354f5761354e613126565b5b5f82013567ffffffffffffffff81111561356c5761356b61312a565b5b6135788482850161350d565b91505092915050565b5f8083601f84011261359657613595613352565b5b8235905067ffffffffffffffff8111156135b3576135b2613356565b5b6020830191508360208202830111156135cf576135ce61335a565b5b9250929050565b5f80602083850312156135ec576135eb613126565b5b5f83013567ffffffffffffffff8111156136095761360861312a565b5b61361585828601613581565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f81519050919050565b5f82825260208201905092915050565b5f61366e8261364a565b6136788185613654565b935061368881856020860161304f565b6136918161305d565b840191505092915050565b5f6136a78383613664565b905092915050565b5f602082019050919050565b5f6136c582613621565b6136cf818561362b565b9350836020820285016136e18561363b565b805f5b8581101561371c57848403895281516136fd858261369c565b9450613708836136af565b925060208a019950506001810190506136e4565b50829750879550505050505092915050565b5f6020820190508181035f83015261374681846136bb565b905092915050565b5f6040820190506137615f8301856131d4565b61376e60208301846130f5565b9392505050565b61377e8161329f565b8114613788575f80fd5b50565b5f8135905061379981613775565b92915050565b6137a8816132d3565b81146137b2575f80fd5b50565b5f813590506137c38161379f565b92915050565b5f805f805f805f60e0888a0312156137e4576137e3613126565b5b5f6137f18a828b01613144565b97505060206138028a828b01613144565b96505060406138138a828b01613177565b95505060606138248a828b01613177565b94505060806138358a828b0161378b565b93505060a06138468a828b016137b5565b92505060c06138578a828b016137b5565b91505092959891949750929550565b5f806040838503121561387c5761387b613126565b5b5f61388985828601613144565b925050602061389a85828601613144565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806138e857607f821691505b6020821081036138fb576138fa6138a4565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61393882613158565b915061394383613158565b925082820190508082111561395b5761395a613901565b5b92915050565b7f6e6f7420656e6f7567682062616c616e636500000000000000000000000000005f82015250565b5f61399560128361303f565b91506139a082613961565b602082019050919050565b5f6020820190508181035f8301526139c281613989565b9050919050565b7f4e6f7420617574686f72697a656420746f206d696e742e0000000000000000005f82015250565b5f6139fd60178361303f565b9150613a08826139c9565b602082019050919050565b5f6020820190508181035f830152613a2a816139f1565b9050919050565b7f4d696e74696e67207a65726f20746f6b656e732e0000000000000000000000005f82015250565b5f613a6560148361303f565b9150613a7082613a31565b602082019050919050565b5f6020820190508181035f830152613a9281613a59565b9050919050565b7f4e6f7420617574686f72697a656420746f206275726e2e0000000000000000005f82015250565b5f613acd60178361303f565b9150613ad882613a99565b602082019050919050565b5f6020820190508181035f830152613afa81613ac1565b9050919050565b5f613b0b82613158565b9150613b1683613158565b9250828203905081811115613b2e57613b2d613901565b5b92915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f613b68601f8361303f565b9150613b7382613b34565b602082019050919050565b5f6020820190508181035f830152613b9581613b5c565b9050919050565b5f613baa6020840184613144565b905092915050565b613bbb816130e4565b82525050565b5f613bcf6020840184613177565b905092915050565b613be081613158565b82525050565b5f6fffffffffffffffffffffffffffffffff82169050919050565b613c0a81613be6565b8114613c14575f80fd5b50565b5f81359050613c2581613c01565b92915050565b5f613c396020840184613c17565b905092915050565b613c4a81613be6565b82525050565b5f613c5e60208401846137b5565b905092915050565b613c6f816132d3565b82525050565b6101008201613c865f830183613b9c565b613c925f850182613bb2565b50613ca06020830183613b9c565b613cad6020850182613bb2565b50613cbb6040830183613bc1565b613cc86040850182613bd7565b50613cd66060830183613bc1565b613ce36060850182613bd7565b50613cf16080830183613b9c565b613cfe6080850182613bb2565b50613d0c60a0830183613c2b565b613d1960a0850182613c41565b50613d2760c0830183613c2b565b613d3460c0850182613c41565b50613d4260e0830183613c50565b613d4f60e0850182613c66565b50505050565b5f61010082019050613d695f830184613c75565b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f613dc960258361303f565b9150613dd482613d6f565b604082019050919050565b5f6020820190508181035f830152613df681613dbd565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f80fd5b5f80fd5b5f80fd5b5f8083356001602003843603038112613e5257613e51613e2a565b5b80840192508235915067ffffffffffffffff821115613e7457613e73613e2e565b5b602083019250600182023603831315613e9057613e8f613e32565b5b509250929050565b5f81905092915050565b5f613ead8385613e98565b9350613eba8385846134be565b82840190509392505050565b5f8160601b9050919050565b5f613edc82613ec6565b9050919050565b5f613eed82613ed2565b9050919050565b613f05613f00826130e4565b613ee3565b82525050565b5f613f17828587613ea2565b9150613f238284613ef4565b601482019150819050949350505050565b7f45524332305065726d69743a206578706972656420646561646c696e650000005f82015250565b5f613f68601d8361303f565b9150613f7382613f34565b602082019050919050565b5f6020820190508181035f830152613f9581613f5c565b9050919050565b5f60c082019050613faf5f8301896132dc565b613fbc60208301886130f5565b613fc960408301876130f5565b613fd66060830186613227565b613fe36080830185613227565b613ff060a0830184613227565b979650505050505050565b7f45524332305065726d69743a20696e76616c6964207369676e617475726500005f82015250565b5f61402f601e8361303f565b915061403a82613ffb565b602082019050919050565b5f6020820190508181035f83015261405c81614023565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6140bd60248361303f565b91506140c882614063565b604082019050919050565b5f6020820190508181035f8301526140ea816140b1565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f61414b60228361303f565b9150614156826140f1565b604082019050919050565b5f6020820190508181035f8301526141788161413f565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f6141b3601d8361303f565b91506141be8261417f565b602082019050919050565b5f6020820190508181035f8301526141e0816141a7565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f61424160258361303f565b915061424c826141e7565b604082019050919050565b5f6020820190508181035f83015261426e81614235565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6142cf60238361303f565b91506142da82614275565b604082019050919050565b5f6020820190508181035f8301526142fc816142c3565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f61435d60268361303f565b915061436882614303565b604082019050919050565b5f6020820190508181035f83015261438a81614351565b9050919050565b5f60a0820190506143a45f8301886132dc565b6143b160208301876132dc565b6143be60408301866132dc565b6143cb6060830185613227565b6143d860808301846130f5565b9695505050505050565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f61443c60218361303f565b9150614447826143e2565b604082019050919050565b5f6020820190508181035f83015261446981614430565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e5f8201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b5f6144ca60228361303f565b91506144d582614470565b604082019050919050565b5f6020820190508181035f8301526144f7816144be565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f2061646472657373005f82015250565b5f614532601f8361303f565b915061453d826144fe565b602082019050919050565b5f6020820190508181035f83015261455f81614526565b9050919050565b7f496e76616c6964207265717565737400000000000000000000000000000000005f82015250565b5f61459a600f8361303f565b91506145a582614566565b602082019050919050565b5f6020820190508181035f8301526145c78161458e565b9050919050565b5f602082840312156145e3576145e2613126565b5b5f6145f084828501613c17565b91505092915050565b7f52657175657374206578706972656400000000000000000000000000000000005f82015250565b5f61462d600f8361303f565b9150614638826145f9565b602082019050919050565b5f6020820190508181035f83015261465a81614621565b9050919050565b7f726563697069656e7420756e646566696e6564000000000000000000000000005f82015250565b5f61469560138361303f565b91506146a082614661565b602082019050919050565b5f6020820190508181035f8301526146c281614689565b9050919050565b7f30207174790000000000000000000000000000000000000000000000000000005f82015250565b5f6146fd60058361303f565b9150614708826146c9565b602082019050919050565b5f6020820190508181035f83015261472a816146f1565b9050919050565b7f2156616c756500000000000000000000000000000000000000000000000000005f82015250565b5f61476560068361303f565b915061477082614731565b602082019050919050565b5f6020820190508181035f83015261479281614759565b9050919050565b7f4d7573742073656e6420746f74616c2070726963652e000000000000000000005f82015250565b5f6147cd60168361303f565b91506147d882614799565b602082019050919050565b5f6020820190508181035f8301526147fa816147c1565b9050919050565b7f6d73672076616c7565206e6f74207a65726f00000000000000000000000000005f82015250565b5f61483560128361303f565b915061484082614801565b602082019050919050565b5f6020820190508181035f83015261486281614829565b9050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026148c57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261488a565b6148cf868361488a565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61490a61490561490084613158565b6148e7565b613158565b9050919050565b5f819050919050565b614923836148f0565b61493761492f82614911565b848454614896565b825550505050565b5f90565b61494b61493f565b61495681848461491a565b505050565b5b818110156149795761496e5f82614943565b60018101905061495c565b5050565b601f8211156149be5761498f81614869565b6149988461487b565b810160208510156149a7578190505b6149bb6149b38561487b565b83018261495b565b50505b505050565b5f82821c905092915050565b5f6149de5f19846008026149c3565b1980831691505092915050565b5f6149f683836149cf565b9150826002028217905092915050565b614a0f82613035565b67ffffffffffffffff811115614a2857614a27613416565b5b614a3282546138d1565b614a3d82828561497d565b5f60209050601f831160018114614a6e575f8415614a5c578287015190505b614a6685826149eb565b865550614acd565b601f198416614a7c86614869565b5f5b82811015614aa357848901518255600182019150602085019450602081019050614a7e565b86831015614ac05784890151614abc601f8916826149cf565b8355505b6001600288020188555050505b505050505050565b5f6040820190508181035f830152614aed818561306d565b90508181036020830152614b01818461306d565b90509392505050565b5f614b148261364a565b614b1e8185613e98565b9350614b2e81856020860161304f565b80840191505092915050565b5f614b458284614b0a565b915081905092915050565b614b5981613be6565b82525050565b5f61012082019050614b735f83018c6132dc565b614b80602083018b6130f5565b614b8d604083018a6130f5565b614b9a6060830189613227565b614ba76080830188613227565b614bb460a08301876130f5565b614bc160c0830186614b50565b614bce60e0830185614b50565b614bdc6101008301846132dc565b9a9950505050505050505050565b5f608082019050614bfd5f8301876132dc565b614c0a60208301866132ab565b614c1760408301856132dc565b614c2460608301846132dc565b95945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b7f45434453413a20696e76616c6964207369676e617475726500000000000000005f82015250565b5f614c8e60188361303f565b9150614c9982614c5a565b602082019050919050565b5f6020820190508181035f830152614cbb81614c82565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e677468005f82015250565b5f614cf6601f8361303f565b9150614d0182614cc2565b602082019050919050565b5f6020820190508181035f830152614d2381614cea565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c5f8201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b5f614d8460228361303f565b9150614d8f82614d2a565b604082019050919050565b5f6020820190508181035f830152614db181614d78565b9050919050565b50565b5f614dc65f83613e98565b9150614dd182614db8565b5f82019050919050565b5f614de582614dbb565b9150819050919050565b5f604082019050614e025f8301856130f5565b614e0f6020830184613227565b9392505050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000005f82015250565b5f614e4a601d8361303f565b9150614e5582614e16565b602082019050919050565b5f6020820190508181035f830152614e7781614e3e565b9050919050565b5f606082019050614e915f8301866130f5565b614e9e60208301856130f5565b614eab6040830184613227565b949350505050565b614ebc816131c9565b8114614ec6575f80fd5b50565b5f81519050614ed781614eb3565b92915050565b5f60208284031215614ef257614ef1613126565b5b5f614eff84828501614ec9565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e5f8201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b5f614f62602a8361303f565b9150614f6d82614f08565b604082019050919050565b5f6020820190508181035f830152614f8f81614f56565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f5f8201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b5f614ff060268361303f565b9150614ffb82614f96565b604082019050919050565b5f6020820190508181035f83015261501d81614fe4565b905091905056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122056a789dd3762caa4f3a786a35ab29c5dded74c6d156f68cf60e737fa9824d7c564736f6c634300081a0033000000000000000000000000f579bec5b198340f285b8f749b2d051f779faaa7000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f579bec5b198340f285b8f749b2d051f779faaa700000000000000000000000000000000000000000000000000000000000000085175696c2051415400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035141540000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405260043610610180575f3560e01c806379cc6790116100d0578063a457c2d711610089578063c1b606e211610063578063c1b606e2146105aa578063d505accf146105e7578063dd62ed3e1461060f578063e8a3d4851461064b57610180565b8063a457c2d7146104f6578063a9059cbb14610532578063ac9650d81461056e57610180565b806379cc6790146103e65780637ecebe001461040e5780638da5cb5b1461044a5780638f0fefbb14610474578063938e3d7b146104a457806395d89b41146104cc57610180565b8063313ce5671161013d57806342966c681161011757806342966c6814610332578063449a52f81461035a5780636f4f28371461038257806370a08231146103aa57610180565b8063313ce567146102a25780633644e515146102cc57806339509351146102f657610180565b806306fdde0314610184578063079fe40e146101ae578063095ea7b3146101d857806313af40351461021457806318160ddd1461023c57806323b872dd14610266575b5f80fd5b34801561018f575f80fd5b50610198610675565b6040516101a591906130a5565b60405180910390f35b3480156101b9575f80fd5b506101c2610705565b6040516101cf9190613104565b60405180910390f35b3480156101e3575f80fd5b506101fe60048036038101906101f9919061318b565b61072d565b60405161020b91906131e3565b60405180910390f35b34801561021f575f80fd5b5061023a600480360381019061023591906131fc565b61074f565b005b348015610247575f80fd5b50610250610799565b60405161025d9190613236565b60405180910390f35b348015610271575f80fd5b5061028c6004803603810190610287919061324f565b6107a2565b60405161029991906131e3565b60405180910390f35b3480156102ad575f80fd5b506102b66107d0565b6040516102c391906132ba565b60405180910390f35b3480156102d7575f80fd5b506102e06107d8565b6040516102ed91906132eb565b60405180910390f35b348015610301575f80fd5b5061031c6004803603810190610317919061318b565b61088e565b60405161032991906131e3565b60405180910390f35b34801561033d575f80fd5b5061035860048036038101906103539190613304565b610933565b005b348015610365575f80fd5b50610380600480360381019061037b919061318b565b61098b565b005b34801561038d575f80fd5b506103a860048036038101906103a391906131fc565b610a22565b005b3480156103b5575f80fd5b506103d060048036038101906103cb91906131fc565b610a6c565b6040516103dd9190613236565b60405180910390f35b3480156103f1575f80fd5b5061040c6004803603810190610407919061318b565b610ab2565b005b348015610419575f80fd5b50610434600480360381019061042f91906131fc565b610b81565b6040516104419190613236565b60405180910390f35b348015610455575f80fd5b5061045e610bce565b60405161046b9190613104565b60405180910390f35b61048e600480360381019061048991906133b3565b610bf6565b60405161049b9190613104565b60405180910390f35b3480156104af575f80fd5b506104ca60048036038101906104c5919061353a565b610d7a565b005b3480156104d7575f80fd5b506104e0610dc4565b6040516104ed91906130a5565b60405180910390f35b348015610501575f80fd5b5061051c6004803603810190610517919061318b565b610e54565b60405161052991906131e3565b60405180910390f35b34801561053d575f80fd5b506105586004803603810190610553919061318b565b610f38565b60405161056591906131e3565b60405180910390f35b348015610579575f80fd5b50610594600480360381019061058f91906135d6565b610f5a565b6040516105a1919061372e565b60405180910390f35b3480156105b5575f80fd5b506105d060048036038101906105cb91906133b3565b611118565b6040516105de92919061374e565b60405180910390f35b3480156105f2575f80fd5b5061060d600480360381019061060891906137c9565b611165565b005b34801561061a575f80fd5b5061063560048036038101906106309190613866565b6112ac565b6040516106429190613236565b60405180910390f35b348015610656575f80fd5b5061065f61132e565b60405161066c91906130a5565b60405180910390f35b606060058054610684906138d1565b80601f01602080910402602001604051908101604052809291908181526020018280546106b0906138d1565b80156106fb5780601f106106d2576101008083540402835291602001916106fb565b820191905f5260205f20905b8154815290600101906020018083116106de57829003601f168201915b5050505050905090565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f806107376113b9565b90506107448185856113c0565b600191505092915050565b610757611583565b61078d576040517f2d99739600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610796816115bf565b50565b5f600454905090565b5f806107ac6113b9565b90506107b9858285611682565b6107c485858561170d565b60019150509392505050565b5f6008905090565b5f7f0000000000000000000000002109b908e006c2365ce3373987c164a15dcef69d73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614801561085357507f000000000000000000000000000000000000000000000000000000000000000146145b15610880577f821a0fdfa11dcc61208b3dcdc318167fb721f9ce48811ab30c9631d60768a724905061088b565b610888611985565b90505b90565b5f806108986113b9565b905061092881858560035f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610923919061392e565b6113c0565b600191505092915050565b8061093d33610a6c565b101561097e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610975906139ab565b60405180910390fd5b6109883382611a08565b50565b610993611bd6565b6109d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c990613a13565b60405180910390fd5b5f8103610a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0b90613a7b565b60405180910390fd5b610a1e8282611c12565b5050565b610a2a611d6a565b610a60576040517f7260843c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a6981611da6565b50565b5f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610aba611e9c565b610af9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af090613ae3565b60405180910390fd5b80610b0383610a6c565b1015610b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3b906139ab565b60405180910390fd5b5f81610b5084336112ac565b610b5a9190613b01565b9050610b6783335f6113c0565b610b728333836113c0565b610b7c8383611a08565b505050565b5f610bc760075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20611ed8565b9050919050565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f6002610c01611ee4565b5f015403610c44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3b90613b7e565b60405180910390fd5b6002610c4e611ee4565b5f01819055505f846040013511610c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9190613a7b565b60405180910390fd5b610ca5848484611ef2565b90505f845f016020810190610cba91906131fc565b9050610cef856020016020810190610cd291906131fc565b866080016020810190610ce591906131fc565b87606001356120d8565b610cfd818660400135611c12565b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc4d88b1adde72eb5acf63f3e219ef5b223262233acf507c3b171277c91973c6787604051610d5a9190613d55565b60405180910390a3506001610d6d611ee4565b5f01819055509392505050565b610d8261224f565b610db8576040517f9f7f092500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dc18161228b565b50565b606060068054610dd3906138d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610dff906138d1565b8015610e4a5780601f10610e2157610100808354040283529160200191610e4a565b820191905f5260205f20905b815481529060010190602001808311610e2d57829003601f168201915b5050505050905090565b5f80610e5e6113b9565b90505f60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905083811015610f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1690613ddf565b60405180910390fd5b610f2c82868684036113c0565b60019250505092915050565b5f80610f426113b9565b9050610f4f81858561170d565b600191505092915050565b60608282905067ffffffffffffffff811115610f7957610f78613416565b5b604051908082528060200260200182016040528015610fac57816020015b6060815260200190600190039081610f975790505b5090505f610fb86113b9565b90505f8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141590505f5b8585905081101561110f578115611073576110503087878481811061101757611016613dfd565b5b90506020028101906110299190613e36565b8660405160200161103c93929190613f0b565b604051602081830303815290604052612362565b84828151811061106357611062613dfd565b5b6020026020010181905250611102565b6110e33087878481811061108a57611089613dfd565b5b905060200281019061109c9190613e36565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f82011690508083019250505050505050612362565b8482815181106110f6576110f5613dfd565b5b60200260200101819052505b8080600101915050610fef565b50505092915050565b5f8061112585858561238f565b905060095f8660e0013581526020019081526020015f205f9054906101000a900460ff1615801561115b575061115a81612406565b5b9150935093915050565b834211156111a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119f90613f7e565b60405180910390fd5b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886111d68c612444565b896040516020016111ec96959493929190613f9c565b6040516020818303038152906040528051906020012090505f6112166112106107d8565b8361249f565b90505f611225828787876124df565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611295576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128c90614045565b60405180910390fd5b6112a08a8a8a6113c0565b50505050505050505050565b5f60035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f805461133a906138d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611366906138d1565b80156113b15780601f10611388576101008083540402835291602001916113b1565b820191905f5260205f20905b81548152906001019060200180831161139457829003601f168201915b505050505081565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361142e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611425906140d3565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361149c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149390614161565b60405180910390fd5b8060035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516115769190613236565b60405180910390a3505050565b5f61158c610bce565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a35050565b5f61168d84846112ac565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461170757818110156116f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f0906141c9565b60405180910390fd5b61170684848484036113c0565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361177b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177290614257565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e0906142e5565b60405180910390fd5b6117f4838383612508565b5f60025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186f90614373565b60405180910390fd5b81810360025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611908919061392e565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161196c9190613236565b60405180910390a361197f84848461250d565b50505050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6119af610675565b805190602001207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc646306040516020016119ed959493929190614391565b60405160208183030381529060405280519060200120905090565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6d90614452565b60405180910390fd5b611a81825f83612508565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611b05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afc906144e0565b60405180910390fd5b81810360025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160045f828254611b5a9190613b01565b925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611bbe9190613236565b60405180910390a3611bd1835f8461250d565b505050565b5f611bdf610bce565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7790614548565b60405180910390fd5b611c8b5f8383612508565b8060045f828254611c9c919061392e565b925050819055508060025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611cef919061392e565b925050819055508173ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611d539190613236565b60405180910390a3611d665f838361250d565b5050565b5f611d73610bce565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e1657806040517f3df2b0dc000000000000000000000000000000000000000000000000000000008152600401611e0d9190613104565b60405180910390fd5b8060085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f299d17e95023f496e0ffc4909cff1a61f74bb5eb18de6f900f4155bfa1b3b33360405160405180910390a250565b5f611ea5610bce565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f815f01549050919050565b5f611eed612512565b905090565b5f80611eff858585611118565b809350819250505080611f47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3e906145b0565b60405180910390fd5b428560a0016020810190611f5b91906145ce565b6fffffffffffffffffffffffffffffffff1611158015611f9f57508460c0016020810190611f8991906145ce565b6fffffffffffffffffffffffffffffffff164211155b611fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd590614643565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff16855f01602081019061200791906131fc565b73ffffffffffffffffffffffffffffffffffffffff160361205d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612054906146ab565b60405180910390fd5b5f8560400135116120a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209a90614713565b60405180910390fd5b600160095f8760e0013581526020019081526020015f205f6101000a81548160ff021916908315150217905550509392505050565b5f8103612126575f3414612121576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121189061477b565b60405180910390fd5b61224a565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036121b4578034146121af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a6906147e3565b60405180910390fd5b6121f7565b5f34146121f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ed9061484b565b60405180910390fd5b5b5f8073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612231578361223a565b612239610705565b5b905061224883338385612540565b505b505050565b5f612258610bce565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f808054612298906138d1565b80601f01602080910402602001604051908101604052809291908181526020018280546122c4906138d1565b801561230f5780601f106122e65761010080835404028352916020019161230f565b820191905f5260205f20905b8154815290600101906020018083116122f257829003601f168201915b50505050509050815f90816123249190614a06565b507fc9c7c3fe08b88b4df9d4d47ef47d2c43d55c025a0ba88ca442580ed9e7348a168183604051612356929190614ad5565b60405180910390a15050565b60606123878383604051806060016040528060278152602001615025602791396125b2565b905092915050565b5f6123fd83838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f820116905080830192505050505050506123ef6123e387612634565b805190602001206126f2565b61270b90919063ffffffff16565b90509392505050565b5f61240f610bce565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b5f8060075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20905061248e81611ed8565b915061249981612730565b50919050565b5f6040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b5f805f6124ee87878787612744565b915091506124fb8161281c565b8192505050949350505050565b505050565b505050565b5f807f1d281c488dae143b6ea4122e80c65059929950b9c32f17fc57be22089d9c3b005f1b90508091505090565b5f8103156125ac5773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361259e576125998282612981565b6125ab565b6125aa84848484612a32565b5b5b50505050565b60605f808573ffffffffffffffffffffffffffffffffffffffff16856040516125db9190614b3a565b5f60405180830381855af49150503d805f8114612613576040519150601f19603f3d011682016040523d82523d5f602084013e612618565b606091505b509150915061262986838387612afe565b925050509392505050565b60607fbac245dbd9b8b2bb334c0675db20a7a7a8506de563990c4ce3207f4c3c5b75e1825f01602081019061266991906131fc565b83602001602081019061267c91906131fc565b8460400135856060013586608001602081019061269991906131fc565b8760a00160208101906126ac91906145ce565b8860c00160208101906126bf91906145ce565b8960e001356040516020016126dc99989796959493929190614b5f565b6040516020818303038152906040529050919050565b5f6127046126fe612b72565b8361249f565b9050919050565b5f805f6127188585612c8b565b915091506127258161281c565b819250505092915050565b6001815f015f828254019250508190555050565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0835f1c111561277c575f600391509150612813565b5f6001878787876040515f815260200160405260405161279f9493929190614bea565b6020604051602081039080840390855afa1580156127bf573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361280b575f60019250925050612813565b805f92509250505b94509492505050565b5f600481111561282f5761282e614c2d565b5b81600481111561284257612841614c2d565b5b031561297e576001600481111561285c5761285b614c2d565b5b81600481111561286f5761286e614c2d565b5b036128af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a690614ca4565b60405180910390fd5b600260048111156128c3576128c2614c2d565b5b8160048111156128d6576128d5614c2d565b5b03612916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290d90614d0c565b60405180910390fd5b6003600481111561292a57612929614c2d565b5b81600481111561293d5761293c614c2d565b5b0361297d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297490614d9a565b60405180910390fd5b5b50565b5f8273ffffffffffffffffffffffffffffffffffffffff16826040516129a690614ddb565b5f6040518083038185875af1925050503d805f81146129e0576040519150601f19603f3d011682016040523d82523d5f602084013e6129e5565b606091505b5050905080612a2d5782826040517fbfb89d82000000000000000000000000000000000000000000000000000000008152600401612a24929190614def565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160315612af8573073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612ac957612ac482828673ffffffffffffffffffffffffffffffffffffffff16612cd79092919063ffffffff16565b612af7565b612af68383838773ffffffffffffffffffffffffffffffffffffffff16612d5d909392919063ffffffff16565b5b5b50505050565b60608315612b5f575f835103612b5757612b1785612de6565b612b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4d90614e60565b60405180910390fd5b5b829050612b6a565b612b698383612e08565b5b949350505050565b5f7f0000000000000000000000002109b908e006c2365ce3373987c164a15dcef69d73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148015612bed57507f000000000000000000000000000000000000000000000000000000000000000146145b15612c1a577faedbeb57f81a57c8fa3519e9b19093ee4085bbc71ae8247eb074ff58df8086ee9050612c88565b612c857f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f7c2e7daf790c3eacbf539a2e0f4a7d8ccbd8864a7ceaa0f02d937758cb1d57c97fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6612e57565b90505b90565b5f806041835103612cc8575f805f602086015192506040860151915060608601515f1a9050612cbc87828585612744565b94509450505050612cd0565b5f6002915091505b9250929050565b612d588363a9059cbb60e01b8484604051602401612cf6929190614def565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612e90565b505050565b612de0846323b872dd60e01b858585604051602401612d7e93929190614e7e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612e90565b50505050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f82511115612e1a5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e4e91906130a5565b60405180910390fd5b5f8383834630604051602001612e71959493929190614391565b6040516020818303038152906040528051906020012090509392505050565b5f612ef1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612f559092919063ffffffff16565b90505f81511115612f505780806020019051810190612f109190614edd565b612f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4690614f78565b60405180910390fd5b5b505050565b6060612f6384845f85612f6c565b90509392505050565b606082471015612fb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa890615006565b60405180910390fd5b5f808673ffffffffffffffffffffffffffffffffffffffff168587604051612fd99190614b3a565b5f6040518083038185875af1925050503d805f8114613013576040519150601f19603f3d011682016040523d82523d5f602084013e613018565b606091505b509150915061302987838387612afe565b92505050949350505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61307782613035565b613081818561303f565b935061309181856020860161304f565b61309a8161305d565b840191505092915050565b5f6020820190508181035f8301526130bd818461306d565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6130ee826130c5565b9050919050565b6130fe816130e4565b82525050565b5f6020820190506131175f8301846130f5565b92915050565b5f604051905090565b5f80fd5b5f80fd5b613137816130e4565b8114613141575f80fd5b50565b5f813590506131528161312e565b92915050565b5f819050919050565b61316a81613158565b8114613174575f80fd5b50565b5f8135905061318581613161565b92915050565b5f80604083850312156131a1576131a0613126565b5b5f6131ae85828601613144565b92505060206131bf85828601613177565b9150509250929050565b5f8115159050919050565b6131dd816131c9565b82525050565b5f6020820190506131f65f8301846131d4565b92915050565b5f6020828403121561321157613210613126565b5b5f61321e84828501613144565b91505092915050565b61323081613158565b82525050565b5f6020820190506132495f830184613227565b92915050565b5f805f6060848603121561326657613265613126565b5b5f61327386828701613144565b935050602061328486828701613144565b925050604061329586828701613177565b9150509250925092565b5f60ff82169050919050565b6132b48161329f565b82525050565b5f6020820190506132cd5f8301846132ab565b92915050565b5f819050919050565b6132e5816132d3565b82525050565b5f6020820190506132fe5f8301846132dc565b92915050565b5f6020828403121561331957613318613126565b5b5f61332684828501613177565b91505092915050565b5f80fd5b5f61010082840312156133495761334861332f565b5b81905092915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261337357613372613352565b5b8235905067ffffffffffffffff8111156133905761338f613356565b5b6020830191508360018202830111156133ac576133ab61335a565b5b9250929050565b5f805f61012084860312156133cb576133ca613126565b5b5f6133d886828701613333565b93505061010084013567ffffffffffffffff8111156133fa576133f961312a565b5b6134068682870161335e565b92509250509250925092565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61344c8261305d565b810181811067ffffffffffffffff8211171561346b5761346a613416565b5b80604052505050565b5f61347d61311d565b90506134898282613443565b919050565b5f67ffffffffffffffff8211156134a8576134a7613416565b5b6134b18261305d565b9050602081019050919050565b828183375f83830152505050565b5f6134de6134d98461348e565b613474565b9050828152602081018484840111156134fa576134f9613412565b5b6135058482856134be565b509392505050565b5f82601f83011261352157613520613352565b5b81356135318482602086016134cc565b91505092915050565b5f6020828403121561354f5761354e613126565b5b5f82013567ffffffffffffffff81111561356c5761356b61312a565b5b6135788482850161350d565b91505092915050565b5f8083601f84011261359657613595613352565b5b8235905067ffffffffffffffff8111156135b3576135b2613356565b5b6020830191508360208202830111156135cf576135ce61335a565b5b9250929050565b5f80602083850312156135ec576135eb613126565b5b5f83013567ffffffffffffffff8111156136095761360861312a565b5b61361585828601613581565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f81519050919050565b5f82825260208201905092915050565b5f61366e8261364a565b6136788185613654565b935061368881856020860161304f565b6136918161305d565b840191505092915050565b5f6136a78383613664565b905092915050565b5f602082019050919050565b5f6136c582613621565b6136cf818561362b565b9350836020820285016136e18561363b565b805f5b8581101561371c57848403895281516136fd858261369c565b9450613708836136af565b925060208a019950506001810190506136e4565b50829750879550505050505092915050565b5f6020820190508181035f83015261374681846136bb565b905092915050565b5f6040820190506137615f8301856131d4565b61376e60208301846130f5565b9392505050565b61377e8161329f565b8114613788575f80fd5b50565b5f8135905061379981613775565b92915050565b6137a8816132d3565b81146137b2575f80fd5b50565b5f813590506137c38161379f565b92915050565b5f805f805f805f60e0888a0312156137e4576137e3613126565b5b5f6137f18a828b01613144565b97505060206138028a828b01613144565b96505060406138138a828b01613177565b95505060606138248a828b01613177565b94505060806138358a828b0161378b565b93505060a06138468a828b016137b5565b92505060c06138578a828b016137b5565b91505092959891949750929550565b5f806040838503121561387c5761387b613126565b5b5f61388985828601613144565b925050602061389a85828601613144565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806138e857607f821691505b6020821081036138fb576138fa6138a4565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61393882613158565b915061394383613158565b925082820190508082111561395b5761395a613901565b5b92915050565b7f6e6f7420656e6f7567682062616c616e636500000000000000000000000000005f82015250565b5f61399560128361303f565b91506139a082613961565b602082019050919050565b5f6020820190508181035f8301526139c281613989565b9050919050565b7f4e6f7420617574686f72697a656420746f206d696e742e0000000000000000005f82015250565b5f6139fd60178361303f565b9150613a08826139c9565b602082019050919050565b5f6020820190508181035f830152613a2a816139f1565b9050919050565b7f4d696e74696e67207a65726f20746f6b656e732e0000000000000000000000005f82015250565b5f613a6560148361303f565b9150613a7082613a31565b602082019050919050565b5f6020820190508181035f830152613a9281613a59565b9050919050565b7f4e6f7420617574686f72697a656420746f206275726e2e0000000000000000005f82015250565b5f613acd60178361303f565b9150613ad882613a99565b602082019050919050565b5f6020820190508181035f830152613afa81613ac1565b9050919050565b5f613b0b82613158565b9150613b1683613158565b9250828203905081811115613b2e57613b2d613901565b5b92915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f613b68601f8361303f565b9150613b7382613b34565b602082019050919050565b5f6020820190508181035f830152613b9581613b5c565b9050919050565b5f613baa6020840184613144565b905092915050565b613bbb816130e4565b82525050565b5f613bcf6020840184613177565b905092915050565b613be081613158565b82525050565b5f6fffffffffffffffffffffffffffffffff82169050919050565b613c0a81613be6565b8114613c14575f80fd5b50565b5f81359050613c2581613c01565b92915050565b5f613c396020840184613c17565b905092915050565b613c4a81613be6565b82525050565b5f613c5e60208401846137b5565b905092915050565b613c6f816132d3565b82525050565b6101008201613c865f830183613b9c565b613c925f850182613bb2565b50613ca06020830183613b9c565b613cad6020850182613bb2565b50613cbb6040830183613bc1565b613cc86040850182613bd7565b50613cd66060830183613bc1565b613ce36060850182613bd7565b50613cf16080830183613b9c565b613cfe6080850182613bb2565b50613d0c60a0830183613c2b565b613d1960a0850182613c41565b50613d2760c0830183613c2b565b613d3460c0850182613c41565b50613d4260e0830183613c50565b613d4f60e0850182613c66565b50505050565b5f61010082019050613d695f830184613c75565b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f613dc960258361303f565b9150613dd482613d6f565b604082019050919050565b5f6020820190508181035f830152613df681613dbd565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f80fd5b5f80fd5b5f80fd5b5f8083356001602003843603038112613e5257613e51613e2a565b5b80840192508235915067ffffffffffffffff821115613e7457613e73613e2e565b5b602083019250600182023603831315613e9057613e8f613e32565b5b509250929050565b5f81905092915050565b5f613ead8385613e98565b9350613eba8385846134be565b82840190509392505050565b5f8160601b9050919050565b5f613edc82613ec6565b9050919050565b5f613eed82613ed2565b9050919050565b613f05613f00826130e4565b613ee3565b82525050565b5f613f17828587613ea2565b9150613f238284613ef4565b601482019150819050949350505050565b7f45524332305065726d69743a206578706972656420646561646c696e650000005f82015250565b5f613f68601d8361303f565b9150613f7382613f34565b602082019050919050565b5f6020820190508181035f830152613f9581613f5c565b9050919050565b5f60c082019050613faf5f8301896132dc565b613fbc60208301886130f5565b613fc960408301876130f5565b613fd66060830186613227565b613fe36080830185613227565b613ff060a0830184613227565b979650505050505050565b7f45524332305065726d69743a20696e76616c6964207369676e617475726500005f82015250565b5f61402f601e8361303f565b915061403a82613ffb565b602082019050919050565b5f6020820190508181035f83015261405c81614023565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6140bd60248361303f565b91506140c882614063565b604082019050919050565b5f6020820190508181035f8301526140ea816140b1565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f61414b60228361303f565b9150614156826140f1565b604082019050919050565b5f6020820190508181035f8301526141788161413f565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f6141b3601d8361303f565b91506141be8261417f565b602082019050919050565b5f6020820190508181035f8301526141e0816141a7565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f61424160258361303f565b915061424c826141e7565b604082019050919050565b5f6020820190508181035f83015261426e81614235565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6142cf60238361303f565b91506142da82614275565b604082019050919050565b5f6020820190508181035f8301526142fc816142c3565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f61435d60268361303f565b915061436882614303565b604082019050919050565b5f6020820190508181035f83015261438a81614351565b9050919050565b5f60a0820190506143a45f8301886132dc565b6143b160208301876132dc565b6143be60408301866132dc565b6143cb6060830185613227565b6143d860808301846130f5565b9695505050505050565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f61443c60218361303f565b9150614447826143e2565b604082019050919050565b5f6020820190508181035f83015261446981614430565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e5f8201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b5f6144ca60228361303f565b91506144d582614470565b604082019050919050565b5f6020820190508181035f8301526144f7816144be565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f2061646472657373005f82015250565b5f614532601f8361303f565b915061453d826144fe565b602082019050919050565b5f6020820190508181035f83015261455f81614526565b9050919050565b7f496e76616c6964207265717565737400000000000000000000000000000000005f82015250565b5f61459a600f8361303f565b91506145a582614566565b602082019050919050565b5f6020820190508181035f8301526145c78161458e565b9050919050565b5f602082840312156145e3576145e2613126565b5b5f6145f084828501613c17565b91505092915050565b7f52657175657374206578706972656400000000000000000000000000000000005f82015250565b5f61462d600f8361303f565b9150614638826145f9565b602082019050919050565b5f6020820190508181035f83015261465a81614621565b9050919050565b7f726563697069656e7420756e646566696e6564000000000000000000000000005f82015250565b5f61469560138361303f565b91506146a082614661565b602082019050919050565b5f6020820190508181035f8301526146c281614689565b9050919050565b7f30207174790000000000000000000000000000000000000000000000000000005f82015250565b5f6146fd60058361303f565b9150614708826146c9565b602082019050919050565b5f6020820190508181035f83015261472a816146f1565b9050919050565b7f2156616c756500000000000000000000000000000000000000000000000000005f82015250565b5f61476560068361303f565b915061477082614731565b602082019050919050565b5f6020820190508181035f83015261479281614759565b9050919050565b7f4d7573742073656e6420746f74616c2070726963652e000000000000000000005f82015250565b5f6147cd60168361303f565b91506147d882614799565b602082019050919050565b5f6020820190508181035f8301526147fa816147c1565b9050919050565b7f6d73672076616c7565206e6f74207a65726f00000000000000000000000000005f82015250565b5f61483560128361303f565b915061484082614801565b602082019050919050565b5f6020820190508181035f83015261486281614829565b9050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026148c57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261488a565b6148cf868361488a565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61490a61490561490084613158565b6148e7565b613158565b9050919050565b5f819050919050565b614923836148f0565b61493761492f82614911565b848454614896565b825550505050565b5f90565b61494b61493f565b61495681848461491a565b505050565b5b818110156149795761496e5f82614943565b60018101905061495c565b5050565b601f8211156149be5761498f81614869565b6149988461487b565b810160208510156149a7578190505b6149bb6149b38561487b565b83018261495b565b50505b505050565b5f82821c905092915050565b5f6149de5f19846008026149c3565b1980831691505092915050565b5f6149f683836149cf565b9150826002028217905092915050565b614a0f82613035565b67ffffffffffffffff811115614a2857614a27613416565b5b614a3282546138d1565b614a3d82828561497d565b5f60209050601f831160018114614a6e575f8415614a5c578287015190505b614a6685826149eb565b865550614acd565b601f198416614a7c86614869565b5f5b82811015614aa357848901518255600182019150602085019450602081019050614a7e565b86831015614ac05784890151614abc601f8916826149cf565b8355505b6001600288020188555050505b505050505050565b5f6040820190508181035f830152614aed818561306d565b90508181036020830152614b01818461306d565b90509392505050565b5f614b148261364a565b614b1e8185613e98565b9350614b2e81856020860161304f565b80840191505092915050565b5f614b458284614b0a565b915081905092915050565b614b5981613be6565b82525050565b5f61012082019050614b735f83018c6132dc565b614b80602083018b6130f5565b614b8d604083018a6130f5565b614b9a6060830189613227565b614ba76080830188613227565b614bb460a08301876130f5565b614bc160c0830186614b50565b614bce60e0830185614b50565b614bdc6101008301846132dc565b9a9950505050505050505050565b5f608082019050614bfd5f8301876132dc565b614c0a60208301866132ab565b614c1760408301856132dc565b614c2460608301846132dc565b95945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b7f45434453413a20696e76616c6964207369676e617475726500000000000000005f82015250565b5f614c8e60188361303f565b9150614c9982614c5a565b602082019050919050565b5f6020820190508181035f830152614cbb81614c82565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e677468005f82015250565b5f614cf6601f8361303f565b9150614d0182614cc2565b602082019050919050565b5f6020820190508181035f830152614d2381614cea565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c5f8201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b5f614d8460228361303f565b9150614d8f82614d2a565b604082019050919050565b5f6020820190508181035f830152614db181614d78565b9050919050565b50565b5f614dc65f83613e98565b9150614dd182614db8565b5f82019050919050565b5f614de582614dbb565b9150819050919050565b5f604082019050614e025f8301856130f5565b614e0f6020830184613227565b9392505050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000005f82015250565b5f614e4a601d8361303f565b9150614e5582614e16565b602082019050919050565b5f6020820190508181035f830152614e7781614e3e565b9050919050565b5f606082019050614e915f8301866130f5565b614e9e60208301856130f5565b614eab6040830184613227565b949350505050565b614ebc816131c9565b8114614ec6575f80fd5b50565b5f81519050614ed781614eb3565b92915050565b5f60208284031215614ef257614ef1613126565b5b5f614eff84828501614ec9565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e5f8201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b5f614f62602a8361303f565b9150614f6d82614f08565b604082019050919050565b5f6020820190508181035f830152614f8f81614f56565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f5f8201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b5f614ff060268361303f565b9150614ffb82614f96565b604082019050919050565b5f6020820190508181035f83015261501d81614fe4565b905091905056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122056a789dd3762caa4f3a786a35ab29c5dded74c6d156f68cf60e737fa9824d7c564736f6c634300081a0033

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

000000000000000000000000f579bec5b198340f285b8f749b2d051f779faaa7000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f579bec5b198340f285b8f749b2d051f779faaa700000000000000000000000000000000000000000000000000000000000000085175696c2051415400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035141540000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _defaultAdmin (address): 0xf579beC5B198340f285B8f749b2d051F779FAaA7
Arg [1] : _name (string): Quil QAT
Arg [2] : _symbol (string): QAT
Arg [3] : _primarySaleRecipient (address): 0xf579beC5B198340f285B8f749b2d051F779FAaA7

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000f579bec5b198340f285b8f749b2d051f779faaa7
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 000000000000000000000000f579bec5b198340f285b8f749b2d051f779faaa7
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 5175696c20514154000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 5141540000000000000000000000000000000000000000000000000000000000


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

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