ETH Price: $2,502.42 (-0.89%)

Token

Bi123 Community Pass (Bi123CommunityPass)
 

Overview

Max Total Supply

0 Bi123CommunityPass

Holders

13

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 Bi123CommunityPass
0xe2320de5d2dda68a9479e4271b704284679e49eb
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Bi123CommunityPass

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-04-24
*/

// File: @openzeppelin/[email protected]/utils/Counters.sol


// 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: @openzeppelin/[email protected]/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/[email protected]/utils/Strings.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;


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

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

// File: @openzeppelin/[email protected]/utils/Context.sol


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

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/[email protected]/access/Ownable.sol


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

// File: @openzeppelin/[email protected]/security/Pausable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;


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

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

    bool private _paused;

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

// File: @openzeppelin/[email protected]/utils/Address.sol


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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/[email protected]/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// File: @openzeppelin/[email protected]/utils/introspection/IERC165.sol


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

pragma solidity ^0.8.0;

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

// File: @openzeppelin/[email protected]/utils/introspection/ERC165.sol


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

pragma solidity ^0.8.0;


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

// File: @openzeppelin/[email protected]/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

// File: @openzeppelin/[email protected]/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// File: @openzeppelin/[email protected]/token/ERC721/ERC721.sol


// OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;








/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

// File: @openzeppelin/[email protected]/token/ERC721/extensions/ERC721Burnable.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;



/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _burn(tokenId);
    }
}

// File: contracts/Bi123.sol


pragma solidity ^0.8.9;






contract Bi123CommunityPass is ERC721, Pausable, Ownable, ERC721Burnable {
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdCounter;

    // Monthly Passcard Price
    uint256 public constant PRICE_MONTHLY = 0.1 ether;

    // Quarterly Passcard Price
    uint256 public constant PRICE_QUARTERLY = 0.25 ether;

    // Annually Passcard Price
    uint256 public constant PRICE_ANNUALLY = 0.8 ether;

    uint256 private constant _STEP = 1000000000000;

    /**
     * Store Passcard type and expirationTime
     * Monthly: 1 * _STEP + timestamp
     * Quarterly: 2 * _STEP + timestamp
     * Annually: 4 * _STEP + timestamp
     */
    mapping(uint256 => uint256) private _expirationTimestamps;

    /**
     * Store all tokens of address
     */
    mapping(address => uint256[]) private _ownedTokens;

    constructor() ERC721("Bi123 Community Pass", "Bi123CommunityPass") {}

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    function mintMonthly() public payable {
        require(msg.value == PRICE_MONTHLY, "Incorrect payment amount");

        uint256 expiration = 1 * _STEP + block.timestamp + 30 days;
        _mintWithExpiration(expiration, msg.sender);
    }

    function mintQuarterly() public payable {
        require(msg.value == PRICE_QUARTERLY, "Incorrect payment amount");

        uint256 expiration = 2 * _STEP + block.timestamp + 90 days;
        _mintWithExpiration(expiration, msg.sender);
    }

    function mintAnnually() public payable {
        require(msg.value == PRICE_ANNUALLY, "Incorrect payment amount");

        uint256 expiration = 4 * _STEP + block.timestamp + 365 days;
        _mintWithExpiration(expiration, msg.sender);
    }

    function safeMintMonthly(address to) public onlyOwner {
        uint256 expiration = 1 * _STEP + block.timestamp + 30 days;
        _mintWithExpiration(expiration, to);
    }

    function safeMintQuarterly(address to) public onlyOwner {
        uint256 expiration = 2 * _STEP + block.timestamp + 90 days;
        _mintWithExpiration(expiration, to);
    }

    function safeMintAnnually(address to) public onlyOwner {
        uint256 expiration = 4 * _STEP + block.timestamp + 365 days;
        _mintWithExpiration(expiration, to);
    }

    function _mintWithExpiration(uint256 expiration, address to) private {
        _tokenIdCounter.increment();
        uint256 tokenId = _tokenIdCounter.current();
        _safeMint(to, tokenId);
        _expirationTimestamps[tokenId] = expiration;
    }

    function isExpired(uint256 tokenId) public view returns (bool) {
        uint256 timestamp = _expirationTimestamps[tokenId];
        timestamp %= _STEP;
        return block.timestamp > timestamp;
    }

    function expirationTimestampOf(uint256 tokenId)
        public
        view
        returns (uint256)
    {
        uint256 timestamp = _expirationTimestamps[tokenId];
        timestamp %= _STEP;
        return timestamp;
    }

    function expirationOf(uint256 tokenId) public view returns (uint256) {
        return _expirationTimestamps[tokenId];
    }

    function current() public view returns (uint256) {
        return _tokenIdCounter.current();
    }

    function tokenIdsOf(address owner) public view returns (uint256[] memory) {
        require(
            owner != address(0),
            "ERC721: address zero is not a valid owner"
        );

        uint256 tokenIdsMaxLength = balanceOf(owner);
        uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
        if (tokenIdsMaxLength == 0) {
            return tokenIds;
        }

        uint256 tokenIdsIdx = 0;
        uint256 length = _ownedTokens[owner].length;
        for (uint256 i = 0; i < length; ++i) {
            uint256 tokenId = _ownedTokens[owner][i];
            if (owner == _ownerOf(tokenId)) {
                tokenIds[tokenIdsIdx++] = tokenId;
            }
        }
        return tokenIds;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        uint256 _current = _tokenIdCounter.current();
        if (tokenId > _current) {
            return "";
        }
        uint256 timestamp = _expirationTimestamps[tokenId];
        string memory url = "https://www.bi123.co/crypto-web/nft/metadata/";
        string memory time = Strings.toString(timestamp);
        string memory split = "/";
        string memory id = Strings.toString(tokenId);

        bytes memory _ba = bytes(url);
        bytes memory _bb = bytes(time);
        bytes memory _bc = bytes(split);
        bytes memory _bd = bytes(id);
        string memory ret = new string(
            _ba.length + _bb.length + _bc.length + _bd.length
        );
        bytes memory bret = bytes(ret);
        uint256 k = 0;
        for (uint256 i = 0; i < _ba.length; i++) bret[k++] = _ba[i];
        for (uint256 i = 0; i < _bb.length; i++) bret[k++] = _bb[i];
        for (uint256 i = 0; i < _bc.length; i++) bret[k++] = _bc[i];
        for (uint256 i = 0; i < _bd.length; i++) bret[k++] = _bd[i];
        return string(ret);
    }

    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        payable(owner()).transfer(balance);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId,
        uint256 batchSize
    ) internal override(ERC721) whenNotPaused {
        super._beforeTokenTransfer(from, to, tokenId, batchSize);
        _ownedTokens[to].push(tokenId);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"PRICE_ANNUALLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_MONTHLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_QUARTERLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"current","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"expirationOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"expirationTimestampOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isExpired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintAnnually","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintMonthly","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintQuarterly","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"safeMintAnnually","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"safeMintMonthly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"safeMintQuarterly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokenIdsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604080518082018252601481527f426931323320436f6d6d756e69747920506173730000000000000000000000006020808301918252835180850190945260128452714269313233436f6d6d756e6974795061737360701b90840152815191929162000081916000916200010f565b508051620000979060019060208401906200010f565b50506006805460ff1916905550620000af33620000b5565b620001f2565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011d90620001b5565b90600052602060002090601f0160209004810192826200014157600085556200018c565b82601f106200015c57805160ff19168380011785556200018c565b828001600101855582156200018c579182015b828111156200018c5782518255916020019190600101906200016f565b506200019a9291506200019e565b5090565b5b808211156200019a57600081556001016200019f565b600181811c90821680620001ca57607f821691505b60208210811415620001ec57634e487b7160e01b600052602260045260246000fd5b50919050565b61222780620002026000396000f3fe6080604052600436106102045760003560e01c80636653b93a11610118578063a22cb465116100a0578063cf0845281161006f578063cf0845281461058b578063d9548e53146105ab578063e985e9c5146105cb578063f2fde38b14610614578063f593520b1461063457600080fd5b8063a22cb465146104fe578063a3b261f21461051e578063b88d4fde1461054b578063c87b56dd1461056b57600080fd5b80638456cb59116100e75780638456cb59146104945780638da5cb5b146104a95780638e8846a1146104cc57806395d89b41146104d45780639fa6a6e3146104e957600080fd5b80636653b93a1461042a5780636cf0c2a81461045757806370a082311461045f578063715018a61461047f57600080fd5b80633ccfd60b1161019b57806342842e0e1161016a57806342842e0e1461039257806342966c68146103b2578063572ef48f146103d25780635c975abb146103f25780636352211e1461040a57600080fd5b80633ccfd60b1461032c5780633d3ce3dd146103415780633df8ca021461035d5780633f4ba83a1461037d57600080fd5b8063095ea7b3116101d7578063095ea7b3146102a257806318d56c1b146102c25780631d255999146102f057806323b872dd1461030c57600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc1461026057806308ba112a14610298575b600080fd5b34801561021557600080fd5b50610229610224366004611c53565b610650565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536106a2565b6040516102359190611cbd565b34801561026c57600080fd5b5061028061027b366004611cd0565b610734565b6040516001600160a01b039091168152602001610235565b6102a061075b565b005b3480156102ae57600080fd5b506102a06102bd366004611d05565b6107c5565b3480156102ce57600080fd5b506102e26102dd366004611cd0565b6108db565b604051908152602001610235565b3480156102fc57600080fd5b506102e26703782dace9d9000081565b34801561031857600080fd5b506102a0610327366004611d2f565b610900565b34801561033857600080fd5b506102a0610932565b34801561034d57600080fd5b506102e2670b1a2bc2ec50000081565b34801561036957600080fd5b506102a0610378366004611d6b565b61097d565b34801561038957600080fd5b506102a06109bb565b34801561039e57600080fd5b506102a06103ad366004611d2f565b6109cd565b3480156103be57600080fd5b506102a06103cd366004611cd0565b6109e8565b3480156103de57600080fd5b506102a06103ed366004611d6b565b610a16565b3480156103fe57600080fd5b5060065460ff16610229565b34801561041657600080fd5b50610280610425366004611cd0565b610a49565b34801561043657600080fd5b506102e2610445366004611cd0565b60009081526008602052604090205490565b6102a0610aa9565b34801561046b57600080fd5b506102e261047a366004611d6b565b610afa565b34801561048b57600080fd5b506102a0610b3e565b3480156104a057600080fd5b506102a0610b50565b3480156104b557600080fd5b5060065461010090046001600160a01b0316610280565b6102a0610b60565b3480156104e057600080fd5b50610253610bb1565b3480156104f557600080fd5b506102e2610bc0565b34801561050a57600080fd5b506102a0610519366004611d86565b610bd0565b34801561052a57600080fd5b5061053e610539366004611d6b565b610bdb565b6040516102359190611dc2565b34801561055757600080fd5b506102a0610566366004611e1c565b610d3c565b34801561057757600080fd5b50610253610586366004611cd0565b610d74565b34801561059757600080fd5b506102a06105a6366004611d6b565b61105c565b3480156105b757600080fd5b506102296105c6366004611cd0565b61108e565b3480156105d757600080fd5b506102296105e6366004611ef8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561062057600080fd5b506102a061062f366004611d6b565b6110b5565b34801561064057600080fd5b506102e267016345785d8a000081565b60006001600160e01b031982166380ac58cd60e01b148061068157506001600160e01b03198216635b5e139f60e01b145b8061069c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106b190611f2b565b80601f01602080910402602001604051908101604052809291908181526020018280546106dd90611f2b565b801561072a5780601f106106ff5761010080835404028352916020019161072a565b820191906000526020600020905b81548152906001019060200180831161070d57829003601f168201915b5050505050905090565b600061073f8261112b565b506000908152600460205260409020546001600160a01b031690565b670b1a2bc2ec500000341461078b5760405162461bcd60e51b815260040161078290611f66565b60405180910390fd5b60004261079e64e8d4a510006004611fb3565b6107a89190611fd2565b6107b6906301e13380611fd2565b90506107c2813361118a565b50565b60006107d082610a49565b9050806001600160a01b0316836001600160a01b0316141561083e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610782565b336001600160a01b038216148061085a575061085a81336105e6565b6108cc5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610782565b6108d683836111c4565b505050565b6000818152600860205260408120546108f964e8d4a5100082611fea565b9392505050565b61090b335b82611232565b6109275760405162461bcd60e51b81526004016107829061200c565b6108d68383836112b1565b61093a611422565b600654604051479161010090046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015610979573d6000803e3d6000fd5b5050565b610985611422565b60004261099864e8d4a510006002611fb3565b6109a29190611fd2565b6109af906276a700611fd2565b9050610979818361118a565b6109c3611422565b6109cb611482565b565b6108d683838360405180602001604052806000815250610d3c565b6109f133610905565b610a0d5760405162461bcd60e51b81526004016107829061200c565b6107c2816114d4565b610a1e611422565b600042610a3164e8d4a510006004611fb3565b610a3b9190611fd2565b6109af906301e13380611fd2565b6000818152600260205260408120546001600160a01b03168061069c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610782565b6703782dace9d900003414610ad05760405162461bcd60e51b815260040161078290611f66565b600042610ae364e8d4a510006002611fb3565b610aed9190611fd2565b6107b6906276a700611fd2565b60006001600160a01b038216610b225760405162461bcd60e51b815260040161078290612059565b506001600160a01b031660009081526003602052604090205490565b610b46611422565b6109cb6000611577565b610b58611422565b6109cb6115d1565b67016345785d8a00003414610b875760405162461bcd60e51b815260040161078290611f66565b600042610b9a64e8d4a510006001611fb3565b610ba49190611fd2565b6107b69062278d00611fd2565b6060600180546106b190611f2b565b6000610bcb60075490565b905090565b61097933838361160e565b60606001600160a01b038216610c035760405162461bcd60e51b815260040161078290612059565b6000610c0e83610afa565b905060008167ffffffffffffffff811115610c2b57610c2b611e06565b604051908082528060200260200182016040528015610c54578160200160208202803683370190505b50905081610c63579392505050565b6001600160a01b038416600090815260096020526040812054815b81811015610d31576001600160a01b0387166000908152600960205260408120805483908110610cb057610cb06120a2565b90600052602060002001549050610cdc816000908152600260205260409020546001600160a01b031690565b6001600160a01b0316886001600160a01b03161415610d2057808585610d01816120b8565b965081518110610d1357610d136120a2565b6020026020010181815250505b50610d2a816120b8565b9050610c7e565b509195945050505050565b610d463383611232565b610d625760405162461bcd60e51b81526004016107829061200c565b610d6e848484846116dd565b50505050565b60606000610d8160075490565b905080831115610da1575050604080516020810190915260008152919050565b600083815260086020908152604080832054815160608101909252602d8083529093926121c59083013990506000610dd883611710565b6040805180820190915260018152602f60f81b60208201529091506000610dfe88611710565b80518351855187519394508793879387938793600093610e1e9190611fd2565b610e289190611fd2565b610e329190611fd2565b67ffffffffffffffff811115610e4a57610e4a611e06565b6040519080825280601f01601f191660200182016040528015610e74576020820181803683370190505b509050806000805b8751811015610eec57878181518110610e9757610e976120a2565b01602001516001600160f81b0319168383610eb1816120b8565b945081518110610ec357610ec36120a2565b60200101906001600160f81b031916908160001a90535080610ee4816120b8565b915050610e7c565b5060005b8651811015610f6057868181518110610f0b57610f0b6120a2565b01602001516001600160f81b0319168383610f25816120b8565b945081518110610f3757610f376120a2565b60200101906001600160f81b031916908160001a90535080610f58816120b8565b915050610ef0565b5060005b8551811015610fd457858181518110610f7f57610f7f6120a2565b01602001516001600160f81b0319168383610f99816120b8565b945081518110610fab57610fab6120a2565b60200101906001600160f81b031916908160001a90535080610fcc816120b8565b915050610f64565b5060005b845181101561104857848181518110610ff357610ff36120a2565b01602001516001600160f81b031916838361100d816120b8565b94508151811061101f5761101f6120a2565b60200101906001600160f81b031916908160001a90535080611040816120b8565b915050610fd8565b50919e9d5050505050505050505050505050565b611064611422565b60004261107764e8d4a510006001611fb3565b6110819190611fd2565b6109af9062278d00611fd2565b6000818152600860205260408120546110ac64e8d4a5100082611fea565b42119392505050565b6110bd611422565b6001600160a01b0381166111225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610782565b6107c281611577565b6000818152600260205260409020546001600160a01b03166107c25760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610782565b611198600780546001019055565b60006111a360075490565b90506111af82826117ad565b60009081526008602052604090209190915550565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111f982610a49565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061123e83610a49565b9050806001600160a01b0316846001600160a01b0316148061128557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806112a95750836001600160a01b031661129e84610734565b6001600160a01b0316145b949350505050565b826001600160a01b03166112c482610a49565b6001600160a01b0316146112ea5760405162461bcd60e51b8152600401610782906120d3565b6001600160a01b03821661134c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610782565b61135983838360016117c7565b826001600160a01b031661136c82610a49565b6001600160a01b0316146113925760405162461bcd60e51b8152600401610782906120d3565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b036101009091041633146109cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610782565b61148a6117fd565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006114df82610a49565b90506114ef8160008460016117c7565b6114f882610a49565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6115d9611846565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114b73390565b816001600160a01b0316836001600160a01b031614156116705760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610782565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6116e88484846112b1565b6116f48484848461188c565b610d6e5760405162461bcd60e51b815260040161078290612118565b6060600061171d83611999565b600101905060008167ffffffffffffffff81111561173d5761173d611e06565b6040519080825280601f01601f191660200182016040528015611767576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846117a0576117a5565b611771565b509392505050565b610979828260405180602001604052806000815250611a71565b6117cf611846565b506001600160a01b039091166000908152600960209081526040822080546001810182559083529120015550565b60065460ff166109cb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610782565b60065460ff16156109cb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610782565b60006001600160a01b0384163b1561198e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118d090339089908890889060040161216a565b602060405180830381600087803b1580156118ea57600080fd5b505af192505050801561191a575060408051601f3d908101601f19168201909252611917918101906121a7565b60015b611974573d808015611948576040519150601f19603f3d011682016040523d82523d6000602084013e61194d565b606091505b50805161196c5760405162461bcd60e51b815260040161078290612118565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112a9565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106119d85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611a04576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611a2257662386f26fc10000830492506010015b6305f5e1008310611a3a576305f5e100830492506008015b6127108310611a4e57612710830492506004015b60648310611a60576064830492506002015b600a831061069c5760010192915050565b611a7b8383611aa4565b611a88600084848461188c565b6108d65760405162461bcd60e51b815260040161078290612118565b6001600160a01b038216611afa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610782565b6000818152600260205260409020546001600160a01b031615611b5f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610782565b611b6d6000838360016117c7565b6000818152600260205260409020546001600160a01b031615611bd25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610782565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146107c257600080fd5b600060208284031215611c6557600080fd5b81356108f981611c3d565b6000815180845260005b81811015611c9657602081850181015186830182015201611c7a565b81811115611ca8576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006108f96020830184611c70565b600060208284031215611ce257600080fd5b5035919050565b80356001600160a01b0381168114611d0057600080fd5b919050565b60008060408385031215611d1857600080fd5b611d2183611ce9565b946020939093013593505050565b600080600060608486031215611d4457600080fd5b611d4d84611ce9565b9250611d5b60208501611ce9565b9150604084013590509250925092565b600060208284031215611d7d57600080fd5b6108f982611ce9565b60008060408385031215611d9957600080fd5b611da283611ce9565b915060208301358015158114611db757600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015611dfa57835183529284019291840191600101611dde565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611e3257600080fd5b611e3b85611ce9565b9350611e4960208601611ce9565b925060408501359150606085013567ffffffffffffffff80821115611e6d57600080fd5b818701915087601f830112611e8157600080fd5b813581811115611e9357611e93611e06565b604051601f8201601f19908116603f01168101908382118183101715611ebb57611ebb611e06565b816040528281528a6020848701011115611ed457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611f0b57600080fd5b611f1483611ce9565b9150611f2260208401611ce9565b90509250929050565b600181811c90821680611f3f57607f821691505b60208210811415611f6057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f496e636f7272656374207061796d656e7420616d6f756e740000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611fcd57611fcd611f9d565b500290565b60008219821115611fe557611fe5611f9d565b500190565b60008261200757634e487b7160e01b600052601260045260246000fd5b500690565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526029908201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616040820152683634b21037bbb732b960b91b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156120cc576120cc611f9d565b5060010190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061219d90830184611c70565b9695505050505050565b6000602082840312156121b957600080fd5b81516108f981611c3d56fe68747470733a2f2f7777772e62693132332e636f2f63727970746f2d7765622f6e66742f6d657461646174612fa264697066735822122092ecb2ae697bffd848881357b74ccd5a5b6e3418d5788b8e0907365fc646fbf164736f6c63430008090033

Deployed Bytecode

0x6080604052600436106102045760003560e01c80636653b93a11610118578063a22cb465116100a0578063cf0845281161006f578063cf0845281461058b578063d9548e53146105ab578063e985e9c5146105cb578063f2fde38b14610614578063f593520b1461063457600080fd5b8063a22cb465146104fe578063a3b261f21461051e578063b88d4fde1461054b578063c87b56dd1461056b57600080fd5b80638456cb59116100e75780638456cb59146104945780638da5cb5b146104a95780638e8846a1146104cc57806395d89b41146104d45780639fa6a6e3146104e957600080fd5b80636653b93a1461042a5780636cf0c2a81461045757806370a082311461045f578063715018a61461047f57600080fd5b80633ccfd60b1161019b57806342842e0e1161016a57806342842e0e1461039257806342966c68146103b2578063572ef48f146103d25780635c975abb146103f25780636352211e1461040a57600080fd5b80633ccfd60b1461032c5780633d3ce3dd146103415780633df8ca021461035d5780633f4ba83a1461037d57600080fd5b8063095ea7b3116101d7578063095ea7b3146102a257806318d56c1b146102c25780631d255999146102f057806323b872dd1461030c57600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc1461026057806308ba112a14610298575b600080fd5b34801561021557600080fd5b50610229610224366004611c53565b610650565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536106a2565b6040516102359190611cbd565b34801561026c57600080fd5b5061028061027b366004611cd0565b610734565b6040516001600160a01b039091168152602001610235565b6102a061075b565b005b3480156102ae57600080fd5b506102a06102bd366004611d05565b6107c5565b3480156102ce57600080fd5b506102e26102dd366004611cd0565b6108db565b604051908152602001610235565b3480156102fc57600080fd5b506102e26703782dace9d9000081565b34801561031857600080fd5b506102a0610327366004611d2f565b610900565b34801561033857600080fd5b506102a0610932565b34801561034d57600080fd5b506102e2670b1a2bc2ec50000081565b34801561036957600080fd5b506102a0610378366004611d6b565b61097d565b34801561038957600080fd5b506102a06109bb565b34801561039e57600080fd5b506102a06103ad366004611d2f565b6109cd565b3480156103be57600080fd5b506102a06103cd366004611cd0565b6109e8565b3480156103de57600080fd5b506102a06103ed366004611d6b565b610a16565b3480156103fe57600080fd5b5060065460ff16610229565b34801561041657600080fd5b50610280610425366004611cd0565b610a49565b34801561043657600080fd5b506102e2610445366004611cd0565b60009081526008602052604090205490565b6102a0610aa9565b34801561046b57600080fd5b506102e261047a366004611d6b565b610afa565b34801561048b57600080fd5b506102a0610b3e565b3480156104a057600080fd5b506102a0610b50565b3480156104b557600080fd5b5060065461010090046001600160a01b0316610280565b6102a0610b60565b3480156104e057600080fd5b50610253610bb1565b3480156104f557600080fd5b506102e2610bc0565b34801561050a57600080fd5b506102a0610519366004611d86565b610bd0565b34801561052a57600080fd5b5061053e610539366004611d6b565b610bdb565b6040516102359190611dc2565b34801561055757600080fd5b506102a0610566366004611e1c565b610d3c565b34801561057757600080fd5b50610253610586366004611cd0565b610d74565b34801561059757600080fd5b506102a06105a6366004611d6b565b61105c565b3480156105b757600080fd5b506102296105c6366004611cd0565b61108e565b3480156105d757600080fd5b506102296105e6366004611ef8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561062057600080fd5b506102a061062f366004611d6b565b6110b5565b34801561064057600080fd5b506102e267016345785d8a000081565b60006001600160e01b031982166380ac58cd60e01b148061068157506001600160e01b03198216635b5e139f60e01b145b8061069c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106b190611f2b565b80601f01602080910402602001604051908101604052809291908181526020018280546106dd90611f2b565b801561072a5780601f106106ff5761010080835404028352916020019161072a565b820191906000526020600020905b81548152906001019060200180831161070d57829003601f168201915b5050505050905090565b600061073f8261112b565b506000908152600460205260409020546001600160a01b031690565b670b1a2bc2ec500000341461078b5760405162461bcd60e51b815260040161078290611f66565b60405180910390fd5b60004261079e64e8d4a510006004611fb3565b6107a89190611fd2565b6107b6906301e13380611fd2565b90506107c2813361118a565b50565b60006107d082610a49565b9050806001600160a01b0316836001600160a01b0316141561083e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610782565b336001600160a01b038216148061085a575061085a81336105e6565b6108cc5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610782565b6108d683836111c4565b505050565b6000818152600860205260408120546108f964e8d4a5100082611fea565b9392505050565b61090b335b82611232565b6109275760405162461bcd60e51b81526004016107829061200c565b6108d68383836112b1565b61093a611422565b600654604051479161010090046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015610979573d6000803e3d6000fd5b5050565b610985611422565b60004261099864e8d4a510006002611fb3565b6109a29190611fd2565b6109af906276a700611fd2565b9050610979818361118a565b6109c3611422565b6109cb611482565b565b6108d683838360405180602001604052806000815250610d3c565b6109f133610905565b610a0d5760405162461bcd60e51b81526004016107829061200c565b6107c2816114d4565b610a1e611422565b600042610a3164e8d4a510006004611fb3565b610a3b9190611fd2565b6109af906301e13380611fd2565b6000818152600260205260408120546001600160a01b03168061069c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610782565b6703782dace9d900003414610ad05760405162461bcd60e51b815260040161078290611f66565b600042610ae364e8d4a510006002611fb3565b610aed9190611fd2565b6107b6906276a700611fd2565b60006001600160a01b038216610b225760405162461bcd60e51b815260040161078290612059565b506001600160a01b031660009081526003602052604090205490565b610b46611422565b6109cb6000611577565b610b58611422565b6109cb6115d1565b67016345785d8a00003414610b875760405162461bcd60e51b815260040161078290611f66565b600042610b9a64e8d4a510006001611fb3565b610ba49190611fd2565b6107b69062278d00611fd2565b6060600180546106b190611f2b565b6000610bcb60075490565b905090565b61097933838361160e565b60606001600160a01b038216610c035760405162461bcd60e51b815260040161078290612059565b6000610c0e83610afa565b905060008167ffffffffffffffff811115610c2b57610c2b611e06565b604051908082528060200260200182016040528015610c54578160200160208202803683370190505b50905081610c63579392505050565b6001600160a01b038416600090815260096020526040812054815b81811015610d31576001600160a01b0387166000908152600960205260408120805483908110610cb057610cb06120a2565b90600052602060002001549050610cdc816000908152600260205260409020546001600160a01b031690565b6001600160a01b0316886001600160a01b03161415610d2057808585610d01816120b8565b965081518110610d1357610d136120a2565b6020026020010181815250505b50610d2a816120b8565b9050610c7e565b509195945050505050565b610d463383611232565b610d625760405162461bcd60e51b81526004016107829061200c565b610d6e848484846116dd565b50505050565b60606000610d8160075490565b905080831115610da1575050604080516020810190915260008152919050565b600083815260086020908152604080832054815160608101909252602d8083529093926121c59083013990506000610dd883611710565b6040805180820190915260018152602f60f81b60208201529091506000610dfe88611710565b80518351855187519394508793879387938793600093610e1e9190611fd2565b610e289190611fd2565b610e329190611fd2565b67ffffffffffffffff811115610e4a57610e4a611e06565b6040519080825280601f01601f191660200182016040528015610e74576020820181803683370190505b509050806000805b8751811015610eec57878181518110610e9757610e976120a2565b01602001516001600160f81b0319168383610eb1816120b8565b945081518110610ec357610ec36120a2565b60200101906001600160f81b031916908160001a90535080610ee4816120b8565b915050610e7c565b5060005b8651811015610f6057868181518110610f0b57610f0b6120a2565b01602001516001600160f81b0319168383610f25816120b8565b945081518110610f3757610f376120a2565b60200101906001600160f81b031916908160001a90535080610f58816120b8565b915050610ef0565b5060005b8551811015610fd457858181518110610f7f57610f7f6120a2565b01602001516001600160f81b0319168383610f99816120b8565b945081518110610fab57610fab6120a2565b60200101906001600160f81b031916908160001a90535080610fcc816120b8565b915050610f64565b5060005b845181101561104857848181518110610ff357610ff36120a2565b01602001516001600160f81b031916838361100d816120b8565b94508151811061101f5761101f6120a2565b60200101906001600160f81b031916908160001a90535080611040816120b8565b915050610fd8565b50919e9d5050505050505050505050505050565b611064611422565b60004261107764e8d4a510006001611fb3565b6110819190611fd2565b6109af9062278d00611fd2565b6000818152600860205260408120546110ac64e8d4a5100082611fea565b42119392505050565b6110bd611422565b6001600160a01b0381166111225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610782565b6107c281611577565b6000818152600260205260409020546001600160a01b03166107c25760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610782565b611198600780546001019055565b60006111a360075490565b90506111af82826117ad565b60009081526008602052604090209190915550565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111f982610a49565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061123e83610a49565b9050806001600160a01b0316846001600160a01b0316148061128557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806112a95750836001600160a01b031661129e84610734565b6001600160a01b0316145b949350505050565b826001600160a01b03166112c482610a49565b6001600160a01b0316146112ea5760405162461bcd60e51b8152600401610782906120d3565b6001600160a01b03821661134c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610782565b61135983838360016117c7565b826001600160a01b031661136c82610a49565b6001600160a01b0316146113925760405162461bcd60e51b8152600401610782906120d3565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b036101009091041633146109cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610782565b61148a6117fd565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006114df82610a49565b90506114ef8160008460016117c7565b6114f882610a49565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6115d9611846565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114b73390565b816001600160a01b0316836001600160a01b031614156116705760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610782565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6116e88484846112b1565b6116f48484848461188c565b610d6e5760405162461bcd60e51b815260040161078290612118565b6060600061171d83611999565b600101905060008167ffffffffffffffff81111561173d5761173d611e06565b6040519080825280601f01601f191660200182016040528015611767576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846117a0576117a5565b611771565b509392505050565b610979828260405180602001604052806000815250611a71565b6117cf611846565b506001600160a01b039091166000908152600960209081526040822080546001810182559083529120015550565b60065460ff166109cb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610782565b60065460ff16156109cb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610782565b60006001600160a01b0384163b1561198e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118d090339089908890889060040161216a565b602060405180830381600087803b1580156118ea57600080fd5b505af192505050801561191a575060408051601f3d908101601f19168201909252611917918101906121a7565b60015b611974573d808015611948576040519150601f19603f3d011682016040523d82523d6000602084013e61194d565b606091505b50805161196c5760405162461bcd60e51b815260040161078290612118565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112a9565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106119d85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611a04576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611a2257662386f26fc10000830492506010015b6305f5e1008310611a3a576305f5e100830492506008015b6127108310611a4e57612710830492506004015b60648310611a60576064830492506002015b600a831061069c5760010192915050565b611a7b8383611aa4565b611a88600084848461188c565b6108d65760405162461bcd60e51b815260040161078290612118565b6001600160a01b038216611afa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610782565b6000818152600260205260409020546001600160a01b031615611b5f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610782565b611b6d6000838360016117c7565b6000818152600260205260409020546001600160a01b031615611bd25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610782565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146107c257600080fd5b600060208284031215611c6557600080fd5b81356108f981611c3d565b6000815180845260005b81811015611c9657602081850181015186830182015201611c7a565b81811115611ca8576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006108f96020830184611c70565b600060208284031215611ce257600080fd5b5035919050565b80356001600160a01b0381168114611d0057600080fd5b919050565b60008060408385031215611d1857600080fd5b611d2183611ce9565b946020939093013593505050565b600080600060608486031215611d4457600080fd5b611d4d84611ce9565b9250611d5b60208501611ce9565b9150604084013590509250925092565b600060208284031215611d7d57600080fd5b6108f982611ce9565b60008060408385031215611d9957600080fd5b611da283611ce9565b915060208301358015158114611db757600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015611dfa57835183529284019291840191600101611dde565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611e3257600080fd5b611e3b85611ce9565b9350611e4960208601611ce9565b925060408501359150606085013567ffffffffffffffff80821115611e6d57600080fd5b818701915087601f830112611e8157600080fd5b813581811115611e9357611e93611e06565b604051601f8201601f19908116603f01168101908382118183101715611ebb57611ebb611e06565b816040528281528a6020848701011115611ed457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611f0b57600080fd5b611f1483611ce9565b9150611f2260208401611ce9565b90509250929050565b600181811c90821680611f3f57607f821691505b60208210811415611f6057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f496e636f7272656374207061796d656e7420616d6f756e740000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611fcd57611fcd611f9d565b500290565b60008219821115611fe557611fe5611f9d565b500190565b60008261200757634e487b7160e01b600052601260045260246000fd5b500690565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526029908201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616040820152683634b21037bbb732b960b91b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156120cc576120cc611f9d565b5060010190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061219d90830184611c70565b9695505050505050565b6000602082840312156121b957600080fd5b81516108f981611c3d56fe68747470733a2f2f7777772e62693132332e636f2f63727970746f2d7765622f6e66742f6d657461646174612fa264697066735822122092ecb2ae697bffd848881357b74ccd5a5b6e3418d5788b8e0907365fc646fbf164736f6c63430008090033

Deployed Bytecode Sourcemap

59801:5782:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42742:305;;;;;;;;;;-1:-1:-1;42742:305:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;42742:305:0;;;;;;;;43670:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;45182:171::-;;;;;;;;;;-1:-1:-1;45182:171:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1643:32:1;;;1625:51;;1613:2;1598:18;45182:171:0;1479:203:1;61396:248:0;;;:::i;:::-;;44700:416;;;;;;;;;;-1:-1:-1;44700:416:0;;;;;:::i;:::-;;:::i;62689:235::-;;;;;;;;;;-1:-1:-1;62689:235:0;;;;;:::i;:::-;;:::i;:::-;;;2270:25:1;;;2258:2;2243:18;62689:235:0;2124:177:1;60096:52:0;;;;;;;;;;;;60138:10;60096:52;;45882:335;;;;;;;;;;-1:-1:-1;45882:335:0;;;;;:::i;:::-;;:::i;65141:140::-;;;;;;;;;;;;;:::i;60189:50::-;;;;;;;;;;;;60230:9;60189:50;;61837:179;;;;;;;;;;-1:-1:-1;61837:179:0;;;;;:::i;:::-;;:::i;60813:65::-;;;;;;;;;;;;;:::i;46288:185::-;;;;;;;;;;-1:-1:-1;46288:185:0;;;;;:::i;:::-;;:::i;59481:242::-;;;;;;;;;;-1:-1:-1;59481:242:0;;;;;:::i;:::-;;:::i;62024:179::-;;;;;;;;;;-1:-1:-1;62024:179:0;;;;;:::i;:::-;;:::i;21966:86::-;;;;;;;;;;-1:-1:-1;22037:7:0;;;;21966:86;;43380:223;;;;;;;;;;-1:-1:-1;43380:223:0;;;;;:::i;:::-;;:::i;62932:125::-;;;;;;;;;;-1:-1:-1;62932:125:0;;;;;:::i;:::-;62992:7;63019:30;;;:21;:30;;;;;;;62932:125;61139:249;;;:::i;43111:207::-;;;;;;;;;;-1:-1:-1;43111:207:0;;;;;:::i;:::-;;:::i;19470:103::-;;;;;;;;;;;;;:::i;60744:61::-;;;;;;;;;;;;;:::i;18822:87::-;;;;;;;;;;-1:-1:-1;18895:6:0;;;;;-1:-1:-1;;;;;18895:6:0;18822:87;;60886:245;;;:::i;43839:104::-;;;;;;;;;;;;;:::i;63065:100::-;;;;;;;;;;;;;:::i;45425:155::-;;;;;;;;;;-1:-1:-1;45425:155:0;;;;;:::i;:::-;;:::i;63173:755::-;;;;;;;;;;-1:-1:-1;63173:755:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;46544:322::-;;;;;;;;;;-1:-1:-1;46544:322:0;;;;;:::i;:::-;;:::i;63936:1197::-;;;;;;;;;;-1:-1:-1;63936:1197:0;;;;;:::i;:::-;;:::i;61652:177::-;;;;;;;;;;-1:-1:-1;61652:177:0;;;;;:::i;:::-;;:::i;62475:206::-;;;;;;;;;;-1:-1:-1;62475:206:0;;;;;:::i;:::-;;:::i;45651:164::-;;;;;;;;;;-1:-1:-1;45651:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;45772:25:0;;;45748:4;45772:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;45651:164;19728:201;;;;;;;;;;-1:-1:-1;19728:201:0;;;;;:::i;:::-;;:::i;60005:49::-;;;;;;;;;;;;60045:9;60005:49;;42742:305;42844:4;-1:-1:-1;;;;;;42881:40:0;;-1:-1:-1;;;42881:40:0;;:105;;-1:-1:-1;;;;;;;42938:48:0;;-1:-1:-1;;;42938:48:0;42881:105;:158;;;-1:-1:-1;;;;;;;;;;35345:40:0;;;43003:36;42861:178;42742:305;-1:-1:-1;;42742:305:0:o;43670:100::-;43724:13;43757:5;43750:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43670:100;:::o;45182:171::-;45258:7;45278:23;45293:7;45278:14;:23::i;:::-;-1:-1:-1;45321:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;45321:24:0;;45182:171::o;61396:248::-;60230:9;61454;:27;61446:64;;;;-1:-1:-1;;;61446:64:0;;;;;;;:::i;:::-;;;;;;;;;61523:18;61556:15;61544:9;60281:13;61544:1;:9;:::i;:::-;:27;;;;:::i;:::-;:38;;61574:8;61544:38;:::i;:::-;61523:59;;61593:43;61613:10;61625;61593:19;:43::i;:::-;61435:209;61396:248::o;44700:416::-;44781:13;44797:23;44812:7;44797:14;:23::i;:::-;44781:39;;44845:5;-1:-1:-1;;;;;44839:11:0;:2;-1:-1:-1;;;;;44839:11:0;;;44831:57;;;;-1:-1:-1;;;44831:57:0;;6737:2:1;44831:57:0;;;6719:21:1;6776:2;6756:18;;;6749:30;6815:34;6795:18;;;6788:62;-1:-1:-1;;;6866:18:1;;;6859:31;6907:19;;44831:57:0;6535:397:1;44831:57:0;17447:10;-1:-1:-1;;;;;44923:21:0;;;;:62;;-1:-1:-1;44948:37:0;44965:5;17447:10;45651:164;:::i;44948:37::-;44901:173;;;;-1:-1:-1;;;44901:173:0;;7139:2:1;44901:173:0;;;7121:21:1;7178:2;7158:18;;;7151:30;7217:34;7197:18;;;7190:62;7288:31;7268:18;;;7261:59;7337:19;;44901:173:0;6937:425:1;44901:173:0;45087:21;45096:2;45100:7;45087:8;:21::i;:::-;44770:346;44700:416;;:::o;62689:235::-;62785:7;62830:30;;;:21;:30;;;;;;62871:18;60281:13;62830:30;62871:18;:::i;:::-;;62689:235;-1:-1:-1;;;62689:235:0:o;45882:335::-;46077:41;17447:10;46096:12;46110:7;46077:18;:41::i;:::-;46069:99;;;;-1:-1:-1;;;46069:99:0;;;;;;;:::i;:::-;46181:28;46191:4;46197:2;46201:7;46181:9;:28::i;65141:140::-;18708:13;:11;:13::i;:::-;18895:6;;65239:34:::1;::::0;65207:21:::1;::::0;18895:6;;;-1:-1:-1;;;;;18895:6:0;;65239:34:::1;::::0;::::1;;::::0;65207:21;;65239:34:::1;::::0;;;65207:21;18895:6;65239:34;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;65178:103;65141:140::o:0;61837:179::-;18708:13;:11;:13::i;:::-;61904:18:::1;61937:15;61925:9;60281:13;61925:1;:9;:::i;:::-;:27;;;;:::i;:::-;:37;::::0;61955:7:::1;61925:37;:::i;:::-;61904:58;;61973:35;61993:10;62005:2;61973:19;:35::i;60813:65::-:0;18708:13;:11;:13::i;:::-;60860:10:::1;:8;:10::i;:::-;60813:65::o:0;46288:185::-;46426:39;46443:4;46449:2;46453:7;46426:39;;;;;;;;;;;;:16;:39::i;59481:242::-;59599:41;17447:10;59618:12;17367:98;59599:41;59591:99;;;;-1:-1:-1;;;59591:99:0;;;;;;;:::i;:::-;59701:14;59707:7;59701:5;:14::i;62024:179::-;18708:13;:11;:13::i;:::-;62090:18:::1;62123:15;62111:9;60281:13;62111:1;:9;:::i;:::-;:27;;;;:::i;:::-;:38;::::0;62141:8:::1;62111:38;:::i;43380:223::-:0;43452:7;48267:16;;;:7;:16;;;;;;-1:-1:-1;;;;;48267:16:0;;43516:56;;;;-1:-1:-1;;;43516:56:0;;8329:2:1;43516:56:0;;;8311:21:1;8368:2;8348:18;;;8341:30;-1:-1:-1;;;8387:18:1;;;8380:54;8451:18;;43516:56:0;8127:348:1;61139:249:0;60138:10;61198:9;:28;61190:65;;;;-1:-1:-1;;;61190:65:0;;;;;;;:::i;:::-;61268:18;61301:15;61289:9;60281:13;61289:1;:9;:::i;:::-;:27;;;;:::i;:::-;:37;;61319:7;61289:37;:::i;43111:207::-;43183:7;-1:-1:-1;;;;;43211:19:0;;43203:73;;;;-1:-1:-1;;;43203:73:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;;43294:16:0;;;;;:9;:16;;;;;;;43111:207::o;19470:103::-;18708:13;:11;:13::i;:::-;19535:30:::1;19562:1;19535:18;:30::i;60744:61::-:0;18708:13;:11;:13::i;:::-;60789:8:::1;:6;:8::i;60886:245::-:0;60045:9;60943;:26;60935:63;;;;-1:-1:-1;;;60935:63:0;;;;;;;:::i;:::-;61011:18;61044:15;61032:9;60281:13;61032:1;:9;:::i;:::-;:27;;;;:::i;:::-;:37;;61062:7;61032:37;:::i;43839:104::-;43895:13;43928:7;43921:14;;;;;:::i;63065:100::-;63105:7;63132:25;:15;970:14;;878:114;63132:25;63125:32;;63065:100;:::o;45425:155::-;45520:52;17447:10;45553:8;45563;45520:18;:52::i;63173:755::-;63229:16;-1:-1:-1;;;;;63280:19:0;;63258:110;;;;-1:-1:-1;;;63258:110:0;;;;;;;:::i;:::-;63381:25;63409:16;63419:5;63409:9;:16::i;:::-;63381:44;;63436:25;63478:17;63464:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63464:32:0;-1:-1:-1;63436:60:0;-1:-1:-1;63511:22:0;63507:70;;63557:8;63173:755;-1:-1:-1;;;63173:755:0:o;63507:70::-;-1:-1:-1;;;;;63640:19:0;;63589;63640;;;:12;:19;;;;;:26;63589:19;63677:218;63701:6;63697:1;:10;63677:218;;;-1:-1:-1;;;;;63747:19:0;;63729:15;63747:19;;;:12;:19;;;;;:22;;63767:1;;63747:22;;;;;;:::i;:::-;;;;;;;;;63729:40;;63797:17;63806:7;48240;48267:16;;;:7;:16;;;;;;-1:-1:-1;;;;;48267:16:0;;48174:117;63797:17;-1:-1:-1;;;;;63788:26:0;:5;-1:-1:-1;;;;;63788:26:0;;63784:100;;;63861:7;63835:8;63844:13;;;;:::i;:::-;;;63835:23;;;;;;;;:::i;:::-;;;;;;:33;;;;;63784:100;-1:-1:-1;63709:3:0;;;:::i;:::-;;;63677:218;;;-1:-1:-1;63912:8:0;;63173:755;-1:-1:-1;;;;;63173:755:0:o;46544:322::-;46718:41;17447:10;46751:7;46718:18;:41::i;:::-;46710:99;;;;-1:-1:-1;;;46710:99:0;;;;;;;:::i;:::-;46820:38;46834:4;46840:2;46844:7;46853:4;46820:13;:38::i;:::-;46544:322;;;;:::o;63936:1197::-;64037:13;64068:16;64087:25;:15;970:14;;878:114;64087:25;64068:44;;64137:8;64127:7;:18;64123:60;;;-1:-1:-1;;64162:9:0;;;;;;;;;-1:-1:-1;64162:9:0;;;63936:1197;-1:-1:-1;63936:1197:0:o;64123:60::-;64193:17;64213:30;;;:21;:30;;;;;;;;;64254:67;;;;;;;;;;;;64213:30;;64193:17;64254:67;;;;;;;64332:18;64353:27;64370:9;64353:16;:27::i;:::-;64391:25;;;;;;;;;;;;-1:-1:-1;;;64391:25:0;;;;64332:48;;-1:-1:-1;64391:19:0;64446:25;64463:7;64446:16;:25::i;:::-;64730:10;;64717;;64704;;64691;;64427:44;;-1:-1:-1;64509:3:0;;64549:4;;64590:5;;64427:44;;64484:16;;64691:23;;64704:10;64691:23;:::i;:::-;:36;;;;:::i;:::-;:49;;;;:::i;:::-;64666:85;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64666:85:0;-1:-1:-1;64646:105:0;-1:-1:-1;64646:105:0;64762:17;;64827:59;64851:3;:10;64847:1;:14;64827:59;;;64880:3;64884:1;64880:6;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;;64880:6:0;64868:4;64873:3;;;;:::i;:::-;;;64868:9;;;;;;;;:::i;:::-;;;;:18;-1:-1:-1;;;;;64868:18:0;;;;;;;;-1:-1:-1;64863:3:0;;;;:::i;:::-;;;;64827:59;;;;64902:9;64897:59;64921:3;:10;64917:1;:14;64897:59;;;64950:3;64954:1;64950:6;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;;64950:6:0;64938:4;64943:3;;;;:::i;:::-;;;64938:9;;;;;;;;:::i;:::-;;;;:18;-1:-1:-1;;;;;64938:18:0;;;;;;;;-1:-1:-1;64933:3:0;;;;:::i;:::-;;;;64897:59;;;;64972:9;64967:59;64991:3;:10;64987:1;:14;64967:59;;;65020:3;65024:1;65020:6;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;;65020:6:0;65008:4;65013:3;;;;:::i;:::-;;;65008:9;;;;;;;;:::i;:::-;;;;:18;-1:-1:-1;;;;;65008:18:0;;;;;;;;-1:-1:-1;65003:3:0;;;;:::i;:::-;;;;64967:59;;;;65042:9;65037:59;65061:3;:10;65057:1;:14;65037:59;;;65090:3;65094:1;65090:6;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;;65090:6:0;65078:4;65083:3;;;;:::i;:::-;;;65078:9;;;;;;;;:::i;:::-;;;;:18;-1:-1:-1;;;;;65078:18:0;;;;;;;;-1:-1:-1;65073:3:0;;;;:::i;:::-;;;;65037:59;;;-1:-1:-1;65121:3:0;;63936:1197;-1:-1:-1;;;;;;;;;;;;;;63936:1197:0:o;61652:177::-;18708:13;:11;:13::i;:::-;61717:18:::1;61750:15;61738:9;60281:13;61738:1;:9;:::i;:::-;:27;;;;:::i;:::-;:37;::::0;61768:7:::1;61738:37;:::i;62475:206::-:0;62532:4;62569:30;;;:21;:30;;;;;;62610:18;60281:13;62569:30;62610:18;:::i;:::-;62646:15;:27;;62475:206;-1:-1:-1;;;62475:206:0:o;19728:201::-;18708:13;:11;:13::i;:::-;-1:-1:-1;;;;;19817:22:0;::::1;19809:73;;;::::0;-1:-1:-1;;;19809:73:0;;9364:2:1;19809:73:0::1;::::0;::::1;9346:21:1::0;9403:2;9383:18;;;9376:30;9442:34;9422:18;;;9415:62;-1:-1:-1;;;9493:18:1;;;9486:36;9539:19;;19809:73:0::1;9162:402:1::0;19809:73:0::1;19893:28;19912:8;19893:18;:28::i;55001:135::-:0;48669:4;48267:16;;;:7;:16;;;;;;-1:-1:-1;;;;;48267:16:0;55075:53;;;;-1:-1:-1;;;55075:53:0;;8329:2:1;55075:53:0;;;8311:21:1;8368:2;8348:18;;;8341:30;-1:-1:-1;;;8387:18:1;;;8380:54;8451:18;;55075:53:0;8127:348:1;62211:256:0;62291:27;:15;1089:19;;1107:1;1089:19;;;1000:127;62291:27;62329:15;62347:25;:15;970:14;;878:114;62347:25;62329:43;;62383:22;62393:2;62397:7;62383:9;:22::i;:::-;62416:30;;;;:21;:30;;;;;:43;;;;-1:-1:-1;62211:256:0:o;54280:174::-;54355:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;54355:29:0;-1:-1:-1;;;;;54355:29:0;;;;;;;;:24;;54409:23;54355:24;54409:14;:23::i;:::-;-1:-1:-1;;;;;54400:46:0;;;;;;;;;;;54280:174;;:::o;48899:264::-;48992:4;49009:13;49025:23;49040:7;49025:14;:23::i;:::-;49009:39;;49078:5;-1:-1:-1;;;;;49067:16:0;:7;-1:-1:-1;;;;;49067:16:0;;:52;;;-1:-1:-1;;;;;;45772:25:0;;;45748:4;45772:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;49087:32;49067:87;;;;49147:7;-1:-1:-1;;;;;49123:31:0;:20;49135:7;49123:11;:20::i;:::-;-1:-1:-1;;;;;49123:31:0;;49067:87;49059:96;48899:264;-1:-1:-1;;;;48899:264:0:o;52898:1263::-;53057:4;-1:-1:-1;;;;;53030:31:0;:23;53045:7;53030:14;:23::i;:::-;-1:-1:-1;;;;;53030:31:0;;53022:81;;;;-1:-1:-1;;;53022:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;53122:16:0;;53114:65;;;;-1:-1:-1;;;53114:65:0;;10177:2:1;53114:65:0;;;10159:21:1;10216:2;10196:18;;;10189:30;10255:34;10235:18;;;10228:62;-1:-1:-1;;;10306:18:1;;;10299:34;10350:19;;53114:65:0;9975:400:1;53114:65:0;53192:42;53213:4;53219:2;53223:7;53232:1;53192:20;:42::i;:::-;53364:4;-1:-1:-1;;;;;53337:31:0;:23;53352:7;53337:14;:23::i;:::-;-1:-1:-1;;;;;53337:31:0;;53329:81;;;;-1:-1:-1;;;53329:81:0;;;;;;;:::i;:::-;53482:24;;;;:15;:24;;;;;;;;53475:31;;-1:-1:-1;;;;;;53475:31:0;;;;;;-1:-1:-1;;;;;53958:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;53958:20:0;;;53993:13;;;;;;;;;:18;;53475:31;53993:18;;;54033:16;;;:7;:16;;;;;;:21;;;;;;;;;;54072:27;;53498:7;;54072:27;;;44770:346;44700:416;;:::o;18987:132::-;18895:6;;-1:-1:-1;;;;;18895:6:0;;;;;17447:10;19051:23;19043:68;;;;-1:-1:-1;;;19043:68:0;;10582:2:1;19043:68:0;;;10564:21:1;;;10601:18;;;10594:30;10660:34;10640:18;;;10633:62;10712:18;;19043:68:0;10380:356:1;22821:120:0;21830:16;:14;:16::i;:::-;22880:7:::1;:15:::0;;-1:-1:-1;;22880:15:0::1;::::0;;22911:22:::1;17447:10:::0;22920:12:::1;22911:22;::::0;-1:-1:-1;;;;;1643:32:1;;;1625:51;;1613:2;1598:18;22911:22:0::1;;;;;;;22821:120::o:0;51778:783::-;51838:13;51854:23;51869:7;51854:14;:23::i;:::-;51838:39;;51890:51;51911:5;51926:1;51930:7;51939:1;51890:20;:51::i;:::-;52054:23;52069:7;52054:14;:23::i;:::-;52125:24;;;;:15;:24;;;;;;;;52118:31;;-1:-1:-1;;;;;;52118:31:0;;;;;;-1:-1:-1;;;;;52370:16:0;;;;;:9;:16;;;;;:21;;-1:-1:-1;;52370:21:0;;;52420:16;;;:7;:16;;;;;;52413:23;;;;;;;52454:36;52046:31;;-1:-1:-1;52141:7:0;;52454:36;;52125:24;;52454:36;65239:34:::1;65178:103;65141:140::o:0;20089:191::-;20182:6;;;-1:-1:-1;;;;;20199:17:0;;;20182:6;20199:17;;;-1:-1:-1;;;;;;20199:17:0;;;;;;20232:40;;20182:6;;;;;;;;20232:40;;20163:16;;20232:40;20152:128;20089:191;:::o;22562:118::-;21571:19;:17;:19::i;:::-;22622:7:::1;:14:::0;;-1:-1:-1;;22622:14:0::1;22632:4;22622:14;::::0;;22652:20:::1;22659:12;17447:10:::0;;17367:98;54597:315;54752:8;-1:-1:-1;;;;;54743:17:0;:5;-1:-1:-1;;;;;54743:17:0;;;54735:55;;;;-1:-1:-1;;;54735:55:0;;10943:2:1;54735:55:0;;;10925:21:1;10982:2;10962:18;;;10955:30;11021:27;11001:18;;;10994:55;11066:18;;54735:55:0;10741:349:1;54735:55:0;-1:-1:-1;;;;;54801:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;54801:46:0;;;;;;;;;;54863:41;;540::1;;;54863::0;;513:18:1;54863:41:0;;;;;;;54597:315;;;:::o;47747:313::-;47903:28;47913:4;47919:2;47923:7;47903:9;:28::i;:::-;47950:47;47973:4;47979:2;47983:7;47992:4;47950:22;:47::i;:::-;47942:110;;;;-1:-1:-1;;;47942:110:0;;;;;;;:::i;14788:716::-;14844:13;14895:14;14912:17;14923:5;14912:10;:17::i;:::-;14932:1;14912:21;14895:38;;14948:20;14982:6;14971:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14971:18:0;-1:-1:-1;14948:41:0;-1:-1:-1;15113:28:0;;;15129:2;15113:28;15170:288;-1:-1:-1;;15202:5:0;-1:-1:-1;;;15339:2:0;15328:14;;15323:30;15202:5;15310:44;15400:2;15391:11;;;-1:-1:-1;15425:10:0;15421:21;;15437:5;;15421:21;15170:288;;;-1:-1:-1;15479:6:0;14788:716;-1:-1:-1;;;14788:716:0:o;49505:110::-;49581:26;49591:2;49595:7;49581:26;;;;;;;;;;;;:9;:26::i;65289:291::-;21571:19;:17;:19::i;:::-;-1:-1:-1;;;;;;65542:16:0;;::::1;;::::0;;;:12:::1;:16;::::0;;;;;;:30;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;-1:-1:-1;65289:291:0:o;22310:108::-;22037:7;;;;22369:41;;;;-1:-1:-1;;;22369:41:0;;11716:2:1;22369:41:0;;;11698:21:1;11755:2;11735:18;;;11728:30;-1:-1:-1;;;11774:18:1;;;11767:50;11834:18;;22369:41:0;11514:344:1;22125:108:0;22037:7;;;;22195:9;22187:38;;;;-1:-1:-1;;;22187:38:0;;12065:2:1;22187:38:0;;;12047:21:1;12104:2;12084:18;;;12077:30;-1:-1:-1;;;12123:18:1;;;12116:46;12179:18;;22187:38:0;11863:340:1;55700:853:0;55854:4;-1:-1:-1;;;;;55875:13:0;;24482:19;:23;55871:675;;55911:71;;-1:-1:-1;;;55911:71:0;;-1:-1:-1;;;;;55911:36:0;;;;;:71;;17447:10;;55962:4;;55968:7;;55977:4;;55911:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55911:71:0;;;;;;;;-1:-1:-1;;55911:71:0;;;;;;;;;;;;:::i;:::-;;;55907:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56152:13:0;;56148:328;;56195:60;;-1:-1:-1;;;56195:60:0;;;;;;;:::i;56148:328::-;56426:6;56420:13;56411:6;56407:2;56403:15;56396:38;55907:584;-1:-1:-1;;;;;;56033:51:0;-1:-1:-1;;;56033:51:0;;-1:-1:-1;56026:58:0;;55871:675;-1:-1:-1;56530:4:0;55700:853;;;;;;:::o;11648:922::-;11701:7;;-1:-1:-1;;;11779:15:0;;11775:102;;-1:-1:-1;;;11815:15:0;;;-1:-1:-1;11859:2:0;11849:12;11775:102;11904:6;11895:5;:15;11891:102;;11940:6;11931:15;;;-1:-1:-1;11975:2:0;11965:12;11891:102;12020:6;12011:5;:15;12007:102;;12056:6;12047:15;;;-1:-1:-1;12091:2:0;12081:12;12007:102;12136:5;12127;:14;12123:99;;12171:5;12162:14;;;-1:-1:-1;12205:1:0;12195:11;12123:99;12249:5;12240;:14;12236:99;;12284:5;12275:14;;;-1:-1:-1;12318:1:0;12308:11;12236:99;12362:5;12353;:14;12349:99;;12397:5;12388:14;;;-1:-1:-1;12431:1:0;12421:11;12349:99;12475:5;12466;:14;12462:66;;12511:1;12501:11;12556:6;11648:922;-1:-1:-1;;11648:922:0:o;49842:319::-;49971:18;49977:2;49981:7;49971:5;:18::i;:::-;50022:53;50053:1;50057:2;50061:7;50070:4;50022:22;:53::i;:::-;50000:153;;;;-1:-1:-1;;;50000:153:0;;;;;;;:::i;50497:942::-;-1:-1:-1;;;;;50577:16:0;;50569:61;;;;-1:-1:-1;;;50569:61:0;;13158:2:1;50569:61:0;;;13140:21:1;;;13177:18;;;13170:30;13236:34;13216:18;;;13209:62;13288:18;;50569:61:0;12956:356:1;50569:61:0;48669:4;48267:16;;;:7;:16;;;;;;-1:-1:-1;;;;;48267:16:0;48693:31;50641:58;;;;-1:-1:-1;;;50641:58:0;;13519:2:1;50641:58:0;;;13501:21:1;13558:2;13538:18;;;13531:30;13597;13577:18;;;13570:58;13645:18;;50641:58:0;13317:352:1;50641:58:0;50712:48;50741:1;50745:2;50749:7;50758:1;50712:20;:48::i;:::-;48669:4;48267:16;;;:7;:16;;;;;;-1:-1:-1;;;;;48267:16:0;48693:31;50850:58;;;;-1:-1:-1;;;50850:58:0;;13519:2:1;50850:58:0;;;13501:21:1;13558:2;13538:18;;;13531:30;13597;13577:18;;;13570:58;13645:18;;50850:58:0;13317:352:1;50850:58:0;-1:-1:-1;;;;;51257:13:0;;;;;;:9;:13;;;;;;;;:18;;51274:1;51257:18;;;51299:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;51299:21:0;;;;;51338:33;51307:7;;51257:13;;51338:33;;51257:13;;51338:33;65239:34:::1;65178:103;65141:140::o:0;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:472::-;634:3;672:5;666:12;699:6;694:3;687:19;724:1;734:162;748:6;745:1;742:13;734:162;;;810:4;866:13;;;862:22;;856:29;838:11;;;834:20;;827:59;763:12;734:162;;;914:6;911:1;908:13;905:87;;;980:1;973:4;964:6;959:3;955:16;951:27;944:38;905:87;-1:-1:-1;1046:2:1;1025:15;-1:-1:-1;;1021:29:1;1012:39;;;;1053:4;1008:50;;592:472;-1:-1:-1;;592:472:1:o;1069:220::-;1218:2;1207:9;1200:21;1181:4;1238:45;1279:2;1268:9;1264:18;1256:6;1238:45;:::i;1294:180::-;1353:6;1406:2;1394:9;1385:7;1381:23;1377:32;1374:52;;;1422:1;1419;1412:12;1374:52;-1:-1:-1;1445:23:1;;1294:180;-1:-1:-1;1294:180:1:o;1687:173::-;1755:20;;-1:-1:-1;;;;;1804:31:1;;1794:42;;1784:70;;1850:1;1847;1840:12;1784:70;1687:173;;;:::o;1865:254::-;1933:6;1941;1994:2;1982:9;1973:7;1969:23;1965:32;1962:52;;;2010:1;2007;2000:12;1962:52;2033:29;2052:9;2033:29;:::i;:::-;2023:39;2109:2;2094:18;;;;2081:32;;-1:-1:-1;;;1865:254:1:o;2306:328::-;2383:6;2391;2399;2452:2;2440:9;2431:7;2427:23;2423:32;2420:52;;;2468:1;2465;2458:12;2420:52;2491:29;2510:9;2491:29;:::i;:::-;2481:39;;2539:38;2573:2;2562:9;2558:18;2539:38;:::i;:::-;2529:48;;2624:2;2613:9;2609:18;2596:32;2586:42;;2306:328;;;;;:::o;2639:186::-;2698:6;2751:2;2739:9;2730:7;2726:23;2722:32;2719:52;;;2767:1;2764;2757:12;2719:52;2790:29;2809:9;2790:29;:::i;2830:347::-;2895:6;2903;2956:2;2944:9;2935:7;2931:23;2927:32;2924:52;;;2972:1;2969;2962:12;2924:52;2995:29;3014:9;2995:29;:::i;:::-;2985:39;;3074:2;3063:9;3059:18;3046:32;3121:5;3114:13;3107:21;3100:5;3097:32;3087:60;;3143:1;3140;3133:12;3087:60;3166:5;3156:15;;;2830:347;;;;;:::o;3182:632::-;3353:2;3405:21;;;3475:13;;3378:18;;;3497:22;;;3324:4;;3353:2;3576:15;;;;3550:2;3535:18;;;3324:4;3619:169;3633:6;3630:1;3627:13;3619:169;;;3694:13;;3682:26;;3763:15;;;;3728:12;;;;3655:1;3648:9;3619:169;;;-1:-1:-1;3805:3:1;;3182:632;-1:-1:-1;;;;;;3182:632:1:o;3819:127::-;3880:10;3875:3;3871:20;3868:1;3861:31;3911:4;3908:1;3901:15;3935:4;3932:1;3925:15;3951:1138;4046:6;4054;4062;4070;4123:3;4111:9;4102:7;4098:23;4094:33;4091:53;;;4140:1;4137;4130:12;4091:53;4163:29;4182:9;4163:29;:::i;:::-;4153:39;;4211:38;4245:2;4234:9;4230:18;4211:38;:::i;:::-;4201:48;;4296:2;4285:9;4281:18;4268:32;4258:42;;4351:2;4340:9;4336:18;4323:32;4374:18;4415:2;4407:6;4404:14;4401:34;;;4431:1;4428;4421:12;4401:34;4469:6;4458:9;4454:22;4444:32;;4514:7;4507:4;4503:2;4499:13;4495:27;4485:55;;4536:1;4533;4526:12;4485:55;4572:2;4559:16;4594:2;4590;4587:10;4584:36;;;4600:18;;:::i;:::-;4675:2;4669:9;4643:2;4729:13;;-1:-1:-1;;4725:22:1;;;4749:2;4721:31;4717:40;4705:53;;;4773:18;;;4793:22;;;4770:46;4767:72;;;4819:18;;:::i;:::-;4859:10;4855:2;4848:22;4894:2;4886:6;4879:18;4934:7;4929:2;4924;4920;4916:11;4912:20;4909:33;4906:53;;;4955:1;4952;4945:12;4906:53;5011:2;5006;5002;4998:11;4993:2;4985:6;4981:15;4968:46;5056:1;5051:2;5046;5038:6;5034:15;5030:24;5023:35;5077:6;5067:16;;;;;;;3951:1138;;;;;;;:::o;5094:260::-;5162:6;5170;5223:2;5211:9;5202:7;5198:23;5194:32;5191:52;;;5239:1;5236;5229:12;5191:52;5262:29;5281:9;5262:29;:::i;:::-;5252:39;;5310:38;5344:2;5333:9;5329:18;5310:38;:::i;:::-;5300:48;;5094:260;;;;;:::o;5359:380::-;5438:1;5434:12;;;;5481;;;5502:61;;5556:4;5548:6;5544:17;5534:27;;5502:61;5609:2;5601:6;5598:14;5578:18;5575:38;5572:161;;;5655:10;5650:3;5646:20;5643:1;5636:31;5690:4;5687:1;5680:15;5718:4;5715:1;5708:15;5572:161;;5359:380;;;:::o;5744:348::-;5946:2;5928:21;;;5985:2;5965:18;;;5958:30;6024:26;6019:2;6004:18;;5997:54;6083:2;6068:18;;5744:348::o;6097:127::-;6158:10;6153:3;6149:20;6146:1;6139:31;6189:4;6186:1;6179:15;6213:4;6210:1;6203:15;6229:168;6269:7;6335:1;6331;6327:6;6323:14;6320:1;6317:21;6312:1;6305:9;6298:17;6294:45;6291:71;;;6342:18;;:::i;:::-;-1:-1:-1;6382:9:1;;6229:168::o;6402:128::-;6442:3;6473:1;6469:6;6466:1;6463:13;6460:39;;;6479:18;;:::i;:::-;-1:-1:-1;6515:9:1;;6402:128::o;7499:209::-;7531:1;7557;7547:132;;7601:10;7596:3;7592:20;7589:1;7582:31;7636:4;7633:1;7626:15;7664:4;7661:1;7654:15;7547:132;-1:-1:-1;7693:9:1;;7499:209::o;7713:409::-;7915:2;7897:21;;;7954:2;7934:18;;;7927:30;7993:34;7988:2;7973:18;;7966:62;-1:-1:-1;;;8059:2:1;8044:18;;8037:43;8112:3;8097:19;;7713:409::o;8480:405::-;8682:2;8664:21;;;8721:2;8701:18;;;8694:30;8760:34;8755:2;8740:18;;8733:62;-1:-1:-1;;;8826:2:1;8811:18;;8804:39;8875:3;8860:19;;8480:405::o;8890:127::-;8951:10;8946:3;8942:20;8939:1;8932:31;8982:4;8979:1;8972:15;9006:4;9003:1;8996:15;9022:135;9061:3;-1:-1:-1;;9082:17:1;;9079:43;;;9102:18;;:::i;:::-;-1:-1:-1;9149:1:1;9138:13;;9022:135::o;9569:401::-;9771:2;9753:21;;;9810:2;9790:18;;;9783:30;9849:34;9844:2;9829:18;;9822:62;-1:-1:-1;;;9915:2:1;9900:18;;9893:35;9960:3;9945:19;;9569:401::o;11095:414::-;11297:2;11279:21;;;11336:2;11316:18;;;11309:30;11375:34;11370:2;11355:18;;11348:62;-1:-1:-1;;;11441:2:1;11426:18;;11419:48;11499:3;11484:19;;11095:414::o;12208:489::-;-1:-1:-1;;;;;12477:15:1;;;12459:34;;12529:15;;12524:2;12509:18;;12502:43;12576:2;12561:18;;12554:34;;;12624:3;12619:2;12604:18;;12597:31;;;12402:4;;12645:46;;12671:19;;12663:6;12645:46;:::i;:::-;12637:54;12208:489;-1:-1:-1;;;;;;12208:489:1:o;12702:249::-;12771:6;12824:2;12812:9;12803:7;12799:23;12795:32;12792:52;;;12840:1;12837;12830:12;12792:52;12872:9;12866:16;12891:30;12915:5;12891:30;:::i

Swarm Source

ipfs://92ecb2ae697bffd848881357b74ccd5a5b6e3418d5788b8e0907365fc646fbf1
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.