Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x548bB4f3...B827c1B05 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
DeluxeGoatDimensions
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-05-26 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/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/contracts/token/ERC20/extensions/draft-IERC20Permit.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin/contracts/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/contracts/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/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: contracts/lib/Constants.sol pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; // File: contracts/IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); } // File: contracts/OperatorFilterer.sol pragma solidity ^0.8.13; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File: contracts/DefaultOperatorFilterer.sol pragma solidity ^0.8.13; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/finance/PaymentSplitter.sol // OpenZeppelin Contracts (last updated v4.8.0) (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. The distribution of shares is set at the * time of contract deployment and can't be updated thereafter. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Getter for the amount of payee's releasable Ether. */ function releasable(address account) public view returns (uint256) { uint256 totalReceived = address(this).balance + totalReleased(); return _pendingPayment(account, totalReceived, released(account)); } /** * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an * IERC20 contract. */ function releasable(IERC20 token, address account) public view returns (uint256) { uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); return _pendingPayment(account, totalReceived, released(token, account)); } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(account); require(payment != 0, "PaymentSplitter: account is not due payment"); // _totalReleased is the sum of all values in _released. // If "_totalReleased += payment" does not overflow, then "_released[account] += payment" cannot overflow. _totalReleased += payment; unchecked { _released[account] += payment; } Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(token, account); require(payment != 0, "PaymentSplitter: account is not due payment"); // _erc20TotalReleased[token] is the sum of all values in _erc20Released[token]. // If "_erc20TotalReleased[token] += payment" does not overflow, then "_erc20Released[token][account] += payment" // cannot overflow. _erc20TotalReleased[token] += payment; unchecked { _erc20Released[token][account] += payment; } SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } } // File: @openzeppelin/contracts/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/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/interfaces/IERC2981.sol // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // File: @openzeppelin/contracts/token/common/ERC2981.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } // File: contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @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`, * 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 be 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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * 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 payable; /** * @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 payable; /** * @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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool result) { if (_startTokenId() <= tokenId) { if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { _revert(TransferToNonERC721ReceiverImplementer.selector); } assembly { revert(add(32, reason), mload(reason)) } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) _revert(MintZeroQuantity.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; do { assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) _revert(MintToZeroAddress.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) _revert(bytes4(0)); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) _revert(OwnershipNotInitializedForExtraData.selector); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } } // File: contracts/DeluxeGoatDimensions.sol pragma solidity ^0.8.11; contract DeluxeGoatDimensions is ERC721A, ERC2981, Ownable, DefaultOperatorFilterer, PaymentSplitter, ReentrancyGuard { uint256 public maxSupply = 8888; uint256 public limit = 30; uint256 public price = 0.017 ether; bool public mintEnabled; bool public claimEnabled; bool public revealed; string public hiddenURI; string public baseURI; mapping(address => uint256) mintedWallets; mapping(address => uint256) claimableWallets; address[] private addressList = [ 0xf31288B4B62f8F1580adc4420285c3d62c61e5Bf, 0xf964d5F96542B35e5A253400E9B86F351cDEe842, 0xEa4A49571C621237938fd4d047cD334B90221429, 0x5c211ABd98b75a24FA25fB95fCa3beaad6F57329, 0xfBE1367340Bb85F75131dD3071430F7e2Bb73FBB, 0xA25434c366C45c1D490734eE4EA23e5915630044, 0x178cb7c511B557e413f03e9A8A6fA7243d96c436, 0xcFB3897bfcE32c20c291A360e83BBC0F2954FBd5, 0x478e1661b273E65ffF5170314bE7adE0A0eD3289 ]; uint256[] private shareList = [ 100, 60, 30, 25, 25, 10, 10, 590, 150 ]; constructor(address payable _royaltyReceiver) ERC721A("DeluxeGoat: Dimensions", "DGD") PaymentSplitter(addressList, shareList) { setDefaultRoyalty(_royaltyReceiver, 690); // 6.9% default royalty } function mint(uint256 numberOfTokens) external payable nonReentrant { uint256 amount = numberOfTokens * price; require(mintEnabled, "Mint disabled"); require(totalSupply() + numberOfTokens <= maxSupply, "We're sold out!"); require(mintedWallets[msg.sender] + numberOfTokens <= limit, "Too many per wallet"); require(msg.value >= amount, "Not enough Ether"); mintedWallets[msg.sender] += numberOfTokens; _mint(msg.sender, numberOfTokens); } function claim() external nonReentrant { uint256 numberOfTokens = claimableWallets[msg.sender]; require(claimEnabled, "Claim disabled"); require(numberOfTokens > 0, "You don't have anything to claim"); claimableWallets[msg.sender] = 0; _mint(msg.sender, numberOfTokens); } function teamMint(address to, uint256 numberOfTokens) external onlyOwner nonReentrant { require(totalSupply() + numberOfTokens <= maxSupply, "We're sold out!"); _mint(to, numberOfTokens); } function addClaimableWallets(address[] calldata owner, uint256[] calldata amount) external onlyOwner { for (uint256 i = 0; i < owner.length; i++) { claimableWallets[owner[i]] = amount[i]; } } function setMaxSupply(uint256 _maxSupply) external onlyOwner { maxSupply = _maxSupply; } function setLimit(uint256 _limit) external onlyOwner { limit = _limit; } function setPrice(uint256 _price) external onlyOwner { price = _price; } function toggleMinting() external onlyOwner { mintEnabled = !mintEnabled; } function toggleClaiming() external onlyOwner { claimEnabled = !claimEnabled; } function toggleRevealed() external onlyOwner { revealed = !revealed; } function setHiddenURI(string calldata hiddenURI_) external onlyOwner { hiddenURI = hiddenURI_; } function setBaseURI(string calldata baseURI_) external onlyOwner { baseURI = baseURI_; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "Goat does not exist"); if (revealed) { return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, Strings.toString(tokenId))) : ""; } return hiddenURI; } function emergencyWithdraw() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Withdraw eth failed!"); } function getMintedAmount(address _address) public view returns (uint256) { return mintedWallets[_address]; } function getClaimableAmount(address _address) public view returns (uint256) { return claimableWallets[_address]; } // ========================================================================= // Operator filtering // ========================================================================= function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } // ========================================================================= // ERC2891 // ========================================================================= function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function deleteDefaultRoyalty() public onlyOwner { _deleteDefaultRoyalty(); } // ========================================================================= // ERC165 // ========================================================================= function supportsInterface(bytes4 interfaceId) public view virtual override (ERC2981, ERC721A) returns (bool) { return super.supportsInterface(interfaceId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"_royaltyReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owner","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"addClaimableWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","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":"_address","type":"address"}],"name":"getClaimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getMintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"limit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hiddenURI_","type":"string"}],"name":"setHiddenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleClaiming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Deployed Bytecode
0x6080604052600436106103545760003560e01c80637d55094d116101c6578063add5a4fa116100f7578063d5abeb0111610095578063e12f3a611161006f578063e12f3a61146109f4578063e33b7de314610a2a578063e985e9c514610a3f578063f2fde38b14610a8857600080fd5b8063d5abeb0114610993578063d79779b2146109a9578063db2e21bc146109df57600080fd5b8063c45ac050116100d1578063c45ac05014610903578063c87b56dd14610923578063ce7c2ac214610943578063d12397301461097957600080fd5b8063add5a4fa146108b0578063b88d4fde146108d0578063bbaac02f146108e357600080fd5b80639852595c11610164578063a22cb4651161013e578063a22cb46514610845578063a3f8eace14610865578063a4d66daf14610885578063aa1b103f1461089b57600080fd5b80639852595c146107e6578063a035b1fe1461081c578063a0712d681461083257600080fd5b80638cc54e7f116101a05780638cc54e7f1461077e5780638da5cb5b1461079357806391b7f5ed146107b157806395d89b41146107d157600080fd5b80637d55094d146107345780638010fc45146107495780638b83209b1461075e57600080fd5b8063406072a9116102a05780635bc020bc1161023e5780636c0360eb116102185780636c0360eb146106ca5780636f8b44b0146106df57806370a08231146106ff578063715018a61461071f57600080fd5b80635bc020bc1461065f5780636352211e1461067457806363b266ba1461069457600080fd5b806348b750441161027a57806348b75044146105ea5780634e71d92d1461060a578063518302271461061f57806355f804b31461063f57600080fd5b8063406072a91461056f57806341f43434146105b557806342842e0e146105d757600080fd5b806318160ddd1161030d57806327ea6f2b116102e757806327ea6f2b146104dc5780632866ed21146104fc5780632a55205a1461051b5780633a98ef391461055a57600080fd5b806318160ddd1461048657806319165587146104a957806323b872dd146104c957600080fd5b806301ffc9a7146103a2578063028b86c5146103d757806304634d8d146103f957806306fdde0314610419578063081812fc1461043b578063095ea7b31461047357600080fd5b3661039d577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103ae57600080fd5b506103c26103bd36600461254f565b610aa8565b60405190151581526020015b60405180910390f35b3480156103e357600080fd5b506103f76103f23660046125b1565b610ab9565b005b34801561040557600080fd5b506103f7610414366004612632565b610b43565b34801561042557600080fd5b5061042e610b59565b6040516103ce91906126c7565b34801561044757600080fd5b5061045b6104563660046126da565b610beb565b6040516001600160a01b0390911681526020016103ce565b6103f76104813660046126f3565b610c26565b34801561049257600080fd5b50600154600054035b6040519081526020016103ce565b3480156104b557600080fd5b506103f76104c436600461271f565b610c3f565b6103f76104d736600461273c565b610d2f565b3480156104e857600080fd5b506103f76104f73660046126da565b610d5a565b34801561050857600080fd5b506016546103c290610100900460ff1681565b34801561052757600080fd5b5061053b61053636600461277d565b610d67565b604080516001600160a01b0390931683526020830191909152016103ce565b34801561056657600080fd5b50600b5461049b565b34801561057b57600080fd5b5061049b61058a36600461279f565b6001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b3480156105c157600080fd5b5061045b6daaeb6d7670e522a718067333cd4e81565b6103f76105e536600461273c565b610e15565b3480156105f657600080fd5b506103f761060536600461279f565b610e3a565b34801561061657600080fd5b506103f7610f4b565b34801561062b57600080fd5b506016546103c29062010000900460ff1681565b34801561064b57600080fd5b506103f761065a3660046127cd565b611022565b34801561066b57600080fd5b506103f7611037565b34801561068057600080fd5b5061045b61068f3660046126da565b61105e565b3480156106a057600080fd5b5061049b6106af36600461271f565b6001600160a01b031660009081526019602052604090205490565b3480156106d657600080fd5b5061042e611069565b3480156106eb57600080fd5b506103f76106fa3660046126da565b6110f7565b34801561070b57600080fd5b5061049b61071a36600461271f565b611104565b34801561072b57600080fd5b506103f761114a565b34801561074057600080fd5b506103f761115c565b34801561075557600080fd5b506103f7611178565b34801561076a57600080fd5b5061045b6107793660046126da565b61119d565b34801561078a57600080fd5b5061042e6111cd565b34801561079f57600080fd5b50600a546001600160a01b031661045b565b3480156107bd57600080fd5b506103f76107cc3660046126da565b6111da565b3480156107dd57600080fd5b5061042e6111e7565b3480156107f257600080fd5b5061049b61080136600461271f565b6001600160a01b03166000908152600e602052604090205490565b34801561082857600080fd5b5061049b60155481565b6103f76108403660046126da565b6111f6565b34801561085157600080fd5b506103f761086036600461284d565b611390565b34801561087157600080fd5b5061049b61088036600461271f565b6113a4565b34801561089157600080fd5b5061049b60145481565b3480156108a757600080fd5b506103f76113ec565b3480156108bc57600080fd5b506103f76108cb3660046126f3565b6113fe565b6103f76108de366004612891565b61147d565b3480156108ef57600080fd5b506103f76108fe3660046127cd565b6114a3565b34801561090f57600080fd5b5061049b61091e36600461279f565b6114b8565b34801561092f57600080fd5b5061042e61093e3660046126da565b611583565b34801561094f57600080fd5b5061049b61095e36600461271f565b6001600160a01b03166000908152600d602052604090205490565b34801561098557600080fd5b506016546103c29060ff1681565b34801561099f57600080fd5b5061049b60135481565b3480156109b557600080fd5b5061049b6109c436600461271f565b6001600160a01b031660009081526010602052604090205490565b3480156109eb57600080fd5b506103f76116cf565b348015610a0057600080fd5b5061049b610a0f36600461271f565b6001600160a01b03166000908152601a602052604090205490565b348015610a3657600080fd5b50600c5461049b565b348015610a4b57600080fd5b506103c2610a5a36600461279f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a9457600080fd5b506103f7610aa336600461271f565b61176e565b6000610ab3826117e4565b92915050565b610ac1611819565b60005b83811015610b3c57828282818110610ade57610ade612971565b90506020020135601a6000878785818110610afb57610afb612971565b9050602002016020810190610b10919061271f565b6001600160a01b0316815260208101919091526040016000205580610b348161299d565b915050610ac4565b5050505050565b610b4b611819565b610b558282611873565b5050565b606060028054610b68906129b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610b94906129b6565b8015610be15780601f10610bb657610100808354040283529160200191610be1565b820191906000526020600020905b815481529060010190602001808311610bc457829003601f168201915b5050505050905090565b6000610bf682611970565b610c0a57610c0a6333d1c03960e21b6119b5565b506000908152600660205260409020546001600160a01b031690565b81610c30816119bf565b610c3a8383611a78565b505050565b6001600160a01b0381166000908152600d6020526040902054610c7d5760405162461bcd60e51b8152600401610c74906129f0565b60405180910390fd5b6000610c88826113a4565b905080600003610caa5760405162461bcd60e51b8152600401610c7490612a36565b80600c6000828254610cbc9190612a81565b90915550506001600160a01b0382166000908152600e60205260409020805482019055610ce98282611a84565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b826001600160a01b0381163314610d4957610d49336119bf565b610d54848484611b9d565b50505050565b610d62611819565b601455565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610ddc5750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610dfb906001600160601b031687612a94565b610e059190612aab565b91519350909150505b9250929050565b826001600160a01b0381163314610e2f57610e2f336119bf565b610d54848484611d02565b6001600160a01b0381166000908152600d6020526040902054610e6f5760405162461bcd60e51b8152600401610c74906129f0565b6000610e7b83836114b8565b905080600003610e9d5760405162461bcd60e51b8152600401610c7490612a36565b6001600160a01b03831660009081526010602052604081208054839290610ec5908490612a81565b90915550506001600160a01b038084166000908152601160209081526040808320938616835292905220805482019055610f00838383611d1d565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b610f53611d6f565b336000908152601a6020526040902054601654610100900460ff16610fab5760405162461bcd60e51b815260206004820152600e60248201526d10db185a5b48191a5cd8589b195960921b6044820152606401610c74565b60008111610ffb5760405162461bcd60e51b815260206004820181905260248201527f596f7520646f6e2774206861766520616e797468696e6720746f20636c61696d6044820152606401610c74565b336000818152601a60205260408120556110159082611dc8565b506110206001601255565b565b61102a611819565b6018610c3a828483612b1b565b61103f611819565b6016805462ff0000198116620100009182900460ff1615909102179055565b6000610ab382611e87565b60188054611076906129b6565b80601f01602080910402602001604051908101604052809291908181526020018280546110a2906129b6565b80156110ef5780601f106110c4576101008083540402835291602001916110ef565b820191906000526020600020905b8154815290600101906020018083116110d257829003601f168201915b505050505081565b6110ff611819565b601355565b60006001600160a01b038216611124576111246323d3ad8160e21b6119b5565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b611152611819565b6110206000611f1d565b611164611819565b6016805460ff19811660ff90911615179055565b611180611819565b6016805461ff001981166101009182900460ff1615909102179055565b6000600f82815481106111b2576111b2612971565b6000918252602090912001546001600160a01b031692915050565b60178054611076906129b6565b6111e2611819565b601555565b606060038054610b68906129b6565b6111fe611d6f565b60006015548261120e9190612a94565b60165490915060ff166112535760405162461bcd60e51b815260206004820152600d60248201526c135a5b9d08191a5cd8589b1959609a1b6044820152606401610c74565b601354826112646001546000540390565b61126e9190612a81565b11156112ae5760405162461bcd60e51b815260206004820152600f60248201526e576527726520736f6c64206f75742160881b6044820152606401610c74565b601454336000908152601960205260409020546112cc908490612a81565b11156113105760405162461bcd60e51b8152602060048201526013602482015272151bdbc81b585b9e481c195c881dd85b1b195d606a1b6044820152606401610c74565b803410156113535760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41022ba3432b960811b6044820152606401610c74565b3360009081526019602052604081208054849290611372908490612a81565b9091555061138290503383611dc8565b5061138d6001601255565b50565b8161139a816119bf565b610c3a8383611f6f565b6000806113b0600c5490565b6113ba9047612a81565b90506113e583826113e0866001600160a01b03166000908152600e602052604090205490565b611fdb565b9392505050565b6113f4611819565b6110206000600855565b611406611819565b61140e611d6f565b6013548161141f6001546000540390565b6114299190612a81565b11156114695760405162461bcd60e51b815260206004820152600f60248201526e576527726520736f6c64206f75742160881b6044820152606401610c74565b6114738282611dc8565b610b556001601255565b836001600160a01b038116331461149757611497336119bf565b610b3c85858585612019565b6114ab611819565b6017610c3a828483612b1b565b6001600160a01b03821660009081526010602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015611517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153b9190612bdb565b6115459190612a81565b6001600160a01b0380861660009081526011602090815260408083209388168352929052205490915061157b9084908390611fdb565b949350505050565b606061158e82611970565b6115d05760405162461bcd60e51b815260206004820152601360248201527211dbd85d08191bd95cc81b9bdd08195e1a5cdd606a1b6044820152606401610c74565b60165462010000900460ff161561163d57601880546115ee906129b6565b905060000361160c5760405180602001604052806000815250610ab3565b601861161783612054565b604051602001611628929190612bf4565b60405160208183030381529060405292915050565b6017805461164a906129b6565b80601f0160208091040260200160405190810160405280929190818152602001828054611676906129b6565b80156116c35780601f10611698576101008083540402835291602001916116c3565b820191906000526020600020905b8154815290600101906020018083116116a657829003601f168201915b50505050509050919050565b6116d7611819565b6116df611d6f565b604051600090339047908381818185875af1925050503d8060008114611721576040519150601f19603f3d011682016040523d82523d6000602084013e611726565b606091505b50509050806110155760405162461bcd60e51b8152602060048201526014602482015273576974686472617720657468206661696c65642160601b6044820152606401610c74565b611776611819565b6001600160a01b0381166117db5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c74565b61138d81611f1d565b60006001600160e01b0319821663152a902d60e11b1480610ab357506301ffc9a760e01b6001600160e01b0319831614610ab3565b600a546001600160a01b031633146110205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c74565b6127106001600160601b03821611156118e15760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610c74565b6001600160a01b0382166119375760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610c74565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b600080548210156119b05760005b50600082815260046020526040812054908190036119a65761199f83612c7b565b925061197e565b600160e01b161590505b919050565b8060005260046000fd5b6daaeb6d7670e522a718067333cd4e3b1561138d57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611a2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a509190612c92565b61138d57604051633b79c77360e21b81526001600160a01b0382166004820152602401610c74565b610b55828260016120e7565b80471015611ad45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c74565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611b21576040519150601f19603f3d011682016040523d82523d6000602084013e611b26565b606091505b5050905080610c3a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c74565b6000611ba882611e87565b6001600160a01b039485169490915081168414611bce57611bce62a1148160e81b6119b5565b60008281526006602052604090208054338082146001600160a01b03881690911417611c1257611bfe8633610a5a565b611c1257611c12632ce44b5f60e11b6119b5565b8015611c1d57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003611caf57600184016000818152600460205260408120549003611cad576000548114611cad5760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a480600003611cf957611cf9633a954ecd60e21b6119b5565b50505050505050565b610c3a8383836040518060200160405280600081525061147d565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610c3a90849061218a565b600260125403611dc15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c74565b6002601255565b6000805490829003611de457611de463b562e8dd60e01b6119b5565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b17811790915580845260059092528220805468010000000000000001860201905590819003611e4257611e42622e076360e81b6119b5565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103611e47575060005550505050565b60008181526004602052604081205490819003611efa576000548210611eb757611eb7636f96cda160e11b6119b5565b5b50600019016000818152600460205260409020548015611eb857600160e01b8116600003611ee557919050565b611ef5636f96cda160e11b6119b5565b611eb8565b600160e01b8116600003611f0d57919050565b6119b0636f96cda160e11b6119b5565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b546001600160a01b0384166000908152600d6020526040812054909183916120059086612a94565b61200f9190612aab565b61157b9190612caf565b612024848484610d2f565b6001600160a01b0383163b15610d54576120408484848461225c565b610d5457610d546368d2bf6b60e11b6119b5565b606060006120618361233e565b600101905060008167ffffffffffffffff8111156120815761208161287b565b6040519080825280601f01601f1916602001820160405280156120ab576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846120b557509392505050565b60006120f28361105e565b905081801561210a5750336001600160a01b03821614155b1561212d576121198133610a5a565b61212d5761212d6367d9dca160e11b6119b5565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b60006121df826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124169092919063ffffffff16565b805190915015610c3a57808060200190518101906121fd9190612c92565b610c3a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610c74565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612291903390899088908890600401612cc2565b6020604051808303816000875af19250505080156122cc575060408051601f3d908101601f191682019092526122c991810190612cff565b60015b612321573d8080156122fa576040519150601f19603f3d011682016040523d82523d6000602084013e6122ff565b606091505b508051600003612319576123196368d2bf6b60e11b6119b5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061237d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106123a9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106123c757662386f26fc10000830492506010015b6305f5e10083106123df576305f5e100830492506008015b61271083106123f357612710830492506004015b60648310612405576064830492506002015b600a8310610ab35760010192915050565b606061157b848460008585600080866001600160a01b0316858760405161243d9190612d1c565b60006040518083038185875af1925050503d806000811461247a576040519150601f19603f3d011682016040523d82523d6000602084013e61247f565b606091505b50915091506124908783838761249b565b979650505050505050565b6060831561250a578251600003612503576001600160a01b0385163b6125035760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c74565b508161157b565b61157b838381511561251f5781518083602001fd5b8060405162461bcd60e51b8152600401610c7491906126c7565b6001600160e01b03198116811461138d57600080fd5b60006020828403121561256157600080fd5b81356113e581612539565b60008083601f84011261257e57600080fd5b50813567ffffffffffffffff81111561259657600080fd5b6020830191508360208260051b8501011115610e0e57600080fd5b600080600080604085870312156125c757600080fd5b843567ffffffffffffffff808211156125df57600080fd5b6125eb8883890161256c565b9096509450602087013591508082111561260457600080fd5b506126118782880161256c565b95989497509550505050565b6001600160a01b038116811461138d57600080fd5b6000806040838503121561264557600080fd5b82356126508161261d565b915060208301356001600160601b038116811461266c57600080fd5b809150509250929050565b60005b8381101561269257818101518382015260200161267a565b50506000910152565b600081518084526126b3816020860160208601612677565b601f01601f19169290920160200192915050565b6020815260006113e5602083018461269b565b6000602082840312156126ec57600080fd5b5035919050565b6000806040838503121561270657600080fd5b82356127118161261d565b946020939093013593505050565b60006020828403121561273157600080fd5b81356113e58161261d565b60008060006060848603121561275157600080fd5b833561275c8161261d565b9250602084013561276c8161261d565b929592945050506040919091013590565b6000806040838503121561279057600080fd5b50508035926020909101359150565b600080604083850312156127b257600080fd5b82356127bd8161261d565b9150602083013561266c8161261d565b600080602083850312156127e057600080fd5b823567ffffffffffffffff808211156127f857600080fd5b818501915085601f83011261280c57600080fd5b81358181111561281b57600080fd5b86602082850101111561282d57600080fd5b60209290920196919550909350505050565b801515811461138d57600080fd5b6000806040838503121561286057600080fd5b823561286b8161261d565b9150602083013561266c8161283f565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156128a757600080fd5b84356128b28161261d565b935060208501356128c28161261d565b925060408501359150606085013567ffffffffffffffff808211156128e657600080fd5b818701915087601f8301126128fa57600080fd5b81358181111561290c5761290c61287b565b604051601f8201601f19908116603f011681019083821181831017156129345761293461287b565b816040528281528a602084870101111561294d57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016129af576129af612987565b5060010190565b600181811c908216806129ca57607f821691505b6020821081036129ea57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b80820180821115610ab357610ab3612987565b8082028115828204841417610ab357610ab3612987565b600082612ac857634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610c3a57600081815260208120601f850160051c81016020861015612af45750805b601f850160051c820191505b81811015612b1357828155600101612b00565b505050505050565b67ffffffffffffffff831115612b3357612b3361287b565b612b4783612b4183546129b6565b83612acd565b6000601f841160018114612b7b5760008515612b635750838201355b600019600387901b1c1916600186901b178355610b3c565b600083815260209020601f19861690835b82811015612bac5786850135825560209485019460019092019101612b8c565b5086821015612bc95760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600060208284031215612bed57600080fd5b5051919050565b6000808454612c02816129b6565b60018281168015612c1a5760018114612c2f57612c5e565b60ff1984168752821515830287019450612c5e565b8860005260208060002060005b85811015612c555781548a820152908401908201612c3c565b50505082870194505b505050508351612c72818360208801612677565b01949350505050565b600081612c8a57612c8a612987565b506000190190565b600060208284031215612ca457600080fd5b81516113e58161283f565b81810381811115610ab357610ab3612987565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612cf59083018461269b565b9695505050505050565b600060208284031215612d1157600080fd5b81516113e581612539565b60008251612d2e818460208701612677565b919091019291505056fea2646970667358221220a464cbac888f643d42349cc006a5fa2931ef205ecc4d00b9d6883dfaa340a25164736f6c63430008120033
Deployed Bytecode Sourcemap
121413:6497:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52616:40;49117:10;52616:40;;;-1:-1:-1;;;;;206:32:1;;;188:51;;52646:9:0;270:2:1;255:18;;248:34;161:18;52616:40:0;;;;;;;121413:6497;;;;;127735:172;;;;;;;;;;-1:-1:-1;127735:172:0;;;;;:::i;:::-;;:::i;:::-;;;844:14:1;;837:22;819:41;;807:2;792:18;127735:172:0;;;;;;;;123884:227;;;;;;;;;;-1:-1:-1;123884:227:0;;;;;:::i;:::-;;:::i;:::-;;127270:144;;;;;;;;;;-1:-1:-1;127270:144:0;;;;;:::i;:::-;;:::i;86960:100::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;93994:227::-;;;;;;;;;;-1:-1:-1;93994:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;3702:32:1;;;3684:51;;3672:2;3657:18;93994:227:0;3538:203:1;126264:165:0;;;;;;:::i;:::-;;:::i;82702:323::-;;;;;;;;;;-1:-1:-1;82976:12:0;;82763:7;82960:13;:28;82702:323;;;4212:25:1;;;4200:2;4185:18;82702:323:0;4066:177:1;55137:671:0;;;;;;;;;;-1:-1:-1;55137:671:0;;;;;:::i;:::-;;:::i;126437:171::-;;;;;;:::i;:::-;;:::i;124229:86::-;;;;;;;;;;-1:-1:-1;124229:86:0;;;;;:::i;:::-;;:::i;121681:24::-;;;;;;;;;;-1:-1:-1;121681:24:0;;;;;;;;;;;65166:442;;;;;;;;;;-1:-1:-1;65166:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;206:32:1;;;188:51;;270:2;255:18;;248:34;;;;161:18;65166:442:0;14:274:1;52747:91:0;;;;;;;;;;-1:-1:-1;52818:12:0;;52747:91;;53876:135;;;;;;;;;;-1:-1:-1;53876:135:0;;;;;:::i;:::-;-1:-1:-1;;;;;53973:21:0;;;53946:7;53973:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;;;;53876:135;45028:143;;;;;;;;;;;;37486:42;45028:143;;126616:179;;;;;;:::i;:::-;;:::i;56076:792::-;;;;;;;;;;-1:-1:-1;56076:792:0;;;;;:::i;:::-;;:::i;123330:324::-;;;;;;;;;;;;;:::i;121712:20::-;;;;;;;;;;-1:-1:-1;121712:20:0;;;;;;;;;;;124824:102;;;;;;;;;;-1:-1:-1;124824:102:0;;;;;:::i;:::-;;:::i;124614:84::-;;;;;;;;;;;;;:::i;88362:152::-;;;;;;;;;;-1:-1:-1;88362:152:0;;;;;:::i;:::-;;:::i;125595:122::-;;;;;;;;;;-1:-1:-1;125595:122:0;;;;;:::i;:::-;-1:-1:-1;;;;;125686:23:0;125659:7;125686:23;;;:13;:23;;;;;;;125595:122;121769:21;;;;;;;;;;;;;:::i;124119:102::-;;;;;;;;;;-1:-1:-1;124119:102:0;;;;;:::i;:::-;;:::i;83886:242::-;;;;;;;;;;-1:-1:-1;83886:242:0;;;;;:::i;:::-;;:::i;59849:103::-;;;;;;;;;;;;;:::i;124417:89::-;;;;;;;;;;;;;:::i;124514:92::-;;;;;;;;;;;;;:::i;54102:100::-;;;;;;;;;;-1:-1:-1;54102:100:0;;;;;:::i;:::-;;:::i;121739:23::-;;;;;;;;;;;;;:::i;59201:87::-;;;;;;;;;;-1:-1:-1;59274:6:0;;-1:-1:-1;;;;;59274:6:0;59201:87;;124323:86;;;;;;;;;;-1:-1:-1;124323:86:0;;;;;:::i;:::-;;:::i;87136:104::-;;;;;;;;;;;;;:::i;53598:109::-;;;;;;;;;;-1:-1:-1;53598:109:0;;;;;:::i;:::-;-1:-1:-1;;;;;53681:18:0;53654:7;53681:18;;;:9;:18;;;;;;;53598:109;121610:34;;;;;;;;;;;;;;;;122813:509;;;;;;:::i;:::-;;:::i;126080:176::-;;;;;;;;;;-1:-1:-1;126080:176:0;;;;;:::i;:::-;;:::i;54292:225::-;;;;;;;;;;-1:-1:-1;54292:225:0;;;;;:::i;:::-;;:::i;121578:25::-;;;;;;;;;;;;;;;;127422:91;;;;;;;;;;;;;:::i;123662:214::-;;;;;;;;;;-1:-1:-1;123662:214:0;;;;;:::i;:::-;;:::i;126803:245::-;;;;;;:::i;:::-;;:::i;124706:110::-;;;;;;;;;;-1:-1:-1;124706:110:0;;;;;:::i;:::-;;:::i;54677:260::-;;;;;;;;;;-1:-1:-1;54677:260:0;;;;;:::i;:::-;;:::i;125050:330::-;;;;;;;;;;-1:-1:-1;125050:330:0;;;;;:::i;:::-;;:::i;53394:105::-;;;;;;;;;;-1:-1:-1;53394:105:0;;;;;:::i;:::-;-1:-1:-1;;;;;53475:16:0;53448:7;53475:16;;;:7;:16;;;;;;;53394:105;121651:23;;;;;;;;;;-1:-1:-1;121651:23:0;;;;;;;;121540:31;;;;;;;;;;;;;;;;53184:119;;;;;;;;;;-1:-1:-1;53184:119:0;;;;;:::i;:::-;-1:-1:-1;;;;;53269:26:0;53242:7;53269:26;;;:19;:26;;;;;;;53184:119;125388:199;;;;;;;;;;;;;:::i;125725:128::-;;;;;;;;;;-1:-1:-1;125725:128:0;;;;;:::i;:::-;-1:-1:-1;;;;;125819:26:0;125792:7;125819:26;;;:16;:26;;;;;;;125725:128;52932:95;;;;;;;;;;-1:-1:-1;53005:14:0;;52932:95;;94952:164;;;;;;;;;;-1:-1:-1;94952:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;95073:25:0;;;95049:4;95073:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;94952:164;60107:201;;;;;;;;;;-1:-1:-1;60107:201:0;;;;;:::i;:::-;;:::i;127735:172::-;127839:4;127863:36;127887:11;127863:23;:36::i;:::-;127856:43;127735:172;-1:-1:-1;;127735:172:0:o;123884:227::-;59087:13;:11;:13::i;:::-;124001:9:::1;123996:108;124016:16:::0;;::::1;123996:108;;;124083:6;;124090:1;124083:9;;;;;;;:::i;:::-;;;;;;;124054:16;:26;124071:5;;124077:1;124071:8;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;124054:26:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;124054:26:0;:38;124034:3;::::1;::::0;::::1;:::i;:::-;;;;123996:108;;;;123884:227:::0;;;;:::o;127270:144::-;59087:13;:11;:13::i;:::-;127364:42:::1;127383:8;127393:12;127364:18;:42::i;:::-;127270:144:::0;;:::o;86960:100::-;87014:13;87047:5;87040:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86960:100;:::o;93994:227::-;94070:7;94095:16;94103:7;94095;:16::i;:::-;94090:73;;94113:50;-1:-1:-1;;;94113:7:0;:50::i;:::-;-1:-1:-1;94183:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;94183:30:0;;93994:227::o;126264:165::-;126368:8;46810:30;46831:8;46810:20;:30::i;:::-;126389:32:::1;126403:8;126413:7;126389:13;:32::i;:::-;126264:165:::0;;;:::o;55137:671::-;-1:-1:-1;;;;;55213:16:0;;55232:1;55213:16;;;:7;:16;;;;;;55205:71;;;;-1:-1:-1;;;55205:71:0;;;;;;;:::i;:::-;;;;;;;;;55289:15;55307:19;55318:7;55307:10;:19::i;:::-;55289:37;;55347:7;55358:1;55347:12;55339:68;;;;-1:-1:-1;;;55339:68:0;;;;;;;:::i;:::-;55620:7;55602:14;;:25;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;55663:18:0;;;;;;:9;:18;;;;;:29;;;;;;55716:35;55673:7;55685;55716:17;:35::i;:::-;55767:33;;;-1:-1:-1;;;;;206:32:1;;188:51;;270:2;255:18;;248:34;;;55767:33:0;;161:18:1;55767:33:0;;;;;;;55194:614;55137:671;:::o;126437:171::-;126546:4;-1:-1:-1;;;;;46536:18:0;;46544:10;46536:18;46532:83;;46571:32;46592:10;46571:20;:32::i;:::-;126563:37:::1;126582:4;126588:2;126592:7;126563:18;:37::i;:::-;126437:171:::0;;;;:::o;124229:86::-;59087:13;:11;:13::i;:::-;124293:5:::1;:14:::0;124229:86::o;65166:442::-;65263:7;65321:27;;;:17;:27;;;;;;;;65292:56;;;;;;;;;-1:-1:-1;;;;;65292:56:0;;;;;-1:-1:-1;;;65292:56:0;;;-1:-1:-1;;;;;65292:56:0;;;;;;;;65263:7;;65361:92;;-1:-1:-1;65412:29:0;;;;;;;;;65422:19;65412:29;-1:-1:-1;;;;;65412:29:0;;;;-1:-1:-1;;;65412:29:0;;-1:-1:-1;;;;;65412:29:0;;;;;65361:92;65503:23;;;;65465:21;;65974:5;;65490:36;;-1:-1:-1;;;;;65490:36:0;:10;:36;:::i;:::-;65489:58;;;;:::i;:::-;65568:16;;;-1:-1:-1;65465:82:0;;-1:-1:-1;;65166:442:0;;;;;;:::o;126616:179::-;126729:4;-1:-1:-1;;;;;46536:18:0;;46544:10;46536:18;46532:83;;46571:32;46592:10;46571:20;:32::i;:::-;126746:41:::1;126769:4;126775:2;126779:7;126746:22;:41::i;56076:792::-:0;-1:-1:-1;;;;;56158:16:0;;56177:1;56158:16;;;:7;:16;;;;;;56150:71;;;;-1:-1:-1;;;56150:71:0;;;;;;;:::i;:::-;56234:15;56252:26;56263:5;56270:7;56252:10;:26::i;:::-;56234:44;;56299:7;56310:1;56299:12;56291:68;;;;-1:-1:-1;;;56291:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;56614:26:0;;;;;;:19;:26;;;;;:37;;56644:7;;56614:26;:37;;56644:7;;56614:37;:::i;:::-;;;;-1:-1:-1;;;;;;;56687:21:0;;;;;;;:14;:21;;;;;;;;:30;;;;;;;;;:41;;;;;;56752:47;56702:5;56709:7;56721;56752:22;:47::i;:::-;56815:45;;;-1:-1:-1;;;;;206:32:1;;;188:51;;270:2;255:18;;248:34;;;56815:45:0;;;;;161:18:1;56815:45:0;;;;;;;56139:729;56076:792;;:::o;123330:324::-;36753:21;:19;:21::i;:::-;123422:10:::1;123380:22;123405:28:::0;;;:16:::1;:28;::::0;;;;;123452:12:::1;::::0;::::1;::::0;::::1;;;123444:39;;;::::0;-1:-1:-1;;;123444:39:0;;12044:2:1;123444:39:0::1;::::0;::::1;12026:21:1::0;12083:2;12063:18;;;12056:30;-1:-1:-1;;;12102:18:1;;;12095:44;12156:18;;123444:39:0::1;11842:338:1::0;123444:39:0::1;123519:1;123502:14;:18;123494:63;;;::::0;-1:-1:-1;;;123494:63:0;;12387:2:1;123494:63:0::1;::::0;::::1;12369:21:1::0;;;12406:18;;;12399:30;12465:34;12445:18;;;12438:62;12517:18;;123494:63:0::1;12185:356:1::0;123494:63:0::1;123587:10;123601:1;123570:28:::0;;;:16:::1;:28;::::0;;;;:32;123613:33:::1;::::0;123631:14;123613:5:::1;:33::i;:::-;123369:285;36797:20:::0;36191:1;37317:7;:22;37134:213;36797:20;123330:324::o;124824:102::-;59087:13;:11;:13::i;:::-;124900:7:::1;:18;124910:8:::0;;124900:7;:18:::1;:::i;124614:84::-:0;59087:13;:11;:13::i;:::-;124682:8:::1;::::0;;-1:-1:-1;;124670:20:0;::::1;124682:8:::0;;;;::::1;;;124681:9;124670:20:::0;;::::1;;::::0;;124614:84::o;88362:152::-;88434:7;88477:27;88496:7;88477:18;:27::i;121769:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;124119:102::-;59087:13;:11;:13::i;:::-;124191:9:::1;:22:::0;124119:102::o;83886:242::-;83958:7;-1:-1:-1;;;;;83982:19:0;;83978:69;;84003:44;-1:-1:-1;;;84003:7:0;:44::i;:::-;-1:-1:-1;;;;;;84065:25:0;;;;;:18;:25;;;;;;78045:13;84065:55;;83886:242::o;59849:103::-;59087:13;:11;:13::i;:::-;59914:30:::1;59941:1;59914:18;:30::i;124417:89::-:0;59087:13;:11;:13::i;:::-;124487:11:::1;::::0;;-1:-1:-1;;124472:26:0;::::1;124487:11;::::0;;::::1;124486:12;124472:26;::::0;;124417:89::o;124514:92::-;59087:13;:11;:13::i;:::-;124586:12:::1;::::0;;-1:-1:-1;;124570:28:0;::::1;124586:12;::::0;;;::::1;;;124585:13;124570:28:::0;;::::1;;::::0;;124514:92::o;54102:100::-;54153:7;54180;54188:5;54180:14;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;54180:14:0;;54102:100;-1:-1:-1;;54102:100:0:o;121739:23::-;;;;;;;:::i;124323:86::-;59087:13;:11;:13::i;:::-;124387:5:::1;:14:::0;124323:86::o;87136:104::-;87192:13;87225:7;87218:14;;;;;:::i;122813:509::-;36753:21;:19;:21::i;:::-;122892:14:::1;122926:5;;122909:14;:22;;;;:::i;:::-;122950:11;::::0;122892:39;;-1:-1:-1;122950:11:0::1;;122942:37;;;::::0;-1:-1:-1;;;122942:37:0;;14806:2:1;122942:37:0::1;::::0;::::1;14788:21:1::0;14845:2;14825:18;;;14818:30;-1:-1:-1;;;14864:18:1;;;14857:43;14917:18;;122942:37:0::1;14604:337:1::0;122942:37:0::1;123032:9;;123014:14;122998:13;82976:12:::0;;82763:7;82960:13;:28;;82702:323;122998:13:::1;:30;;;;:::i;:::-;:43;;122990:71;;;::::0;-1:-1:-1;;;122990:71:0;;15148:2:1;122990:71:0::1;::::0;::::1;15130:21:1::0;15187:2;15167:18;;;15160:30;-1:-1:-1;;;15206:18:1;;;15199:45;15261:18;;122990:71:0::1;14946:339:1::0;122990:71:0::1;123126:5;::::0;123094:10:::1;123080:25;::::0;;;:13:::1;:25;::::0;;;;;:42:::1;::::0;123108:14;;123080:42:::1;:::i;:::-;:51;;123072:83;;;::::0;-1:-1:-1;;;123072:83:0;;15492:2:1;123072:83:0::1;::::0;::::1;15474:21:1::0;15531:2;15511:18;;;15504:30;-1:-1:-1;;;15550:18:1;;;15543:49;15609:18;;123072:83:0::1;15290:343:1::0;123072:83:0::1;123187:6;123174:9;:19;;123166:48;;;::::0;-1:-1:-1;;;123166:48:0;;15840:2:1;123166:48:0::1;::::0;::::1;15822:21:1::0;15879:2;15859:18;;;15852:30;-1:-1:-1;;;15898:18:1;;;15891:46;15954:18;;123166:48:0::1;15638:340:1::0;123166:48:0::1;123241:10;123227:25;::::0;;;:13:::1;:25;::::0;;;;:43;;123256:14;;123227:25;:43:::1;::::0;123256:14;;123227:43:::1;:::i;:::-;::::0;;;-1:-1:-1;123281:33:0::1;::::0;-1:-1:-1;123287:10:0::1;123299:14:::0;123281:5:::1;:33::i;:::-;122881:441;36797:20:::0;36191:1;37317:7;:22;37134:213;36797:20;122813:509;:::o;126080:176::-;126184:8;46810:30;46831:8;46810:20;:30::i;:::-;126205:43:::1;126229:8;126239;126205:23;:43::i;54292:225::-:0;54350:7;54370:21;54418:15;53005:14;;;52932:95;54418:15;54394:39;;:21;:39;:::i;:::-;54370:63;;54451:58;54467:7;54476:13;54491:17;54500:7;-1:-1:-1;;;;;53681:18:0;53654:7;53681:18;;;:9;:18;;;;;;;53598:109;54491:17;54451:15;:58::i;:::-;54444:65;54292:225;-1:-1:-1;;;54292:225:0:o;127422:91::-;59087:13;:11;:13::i;:::-;127482:23:::1;66734:19:::0;;66727:26;66666:95;123662:214;59087:13;:11;:13::i;:::-;36753:21:::1;:19;:21::i;:::-;123801:9:::2;;123783:14;123767:13;82976:12:::0;;82763:7;82960:13;:28;;82702:323;123767:13:::2;:30;;;;:::i;:::-;:43;;123759:71;;;::::0;-1:-1:-1;;;123759:71:0;;15148:2:1;123759:71:0::2;::::0;::::2;15130:21:1::0;15187:2;15167:18;;;15160:30;-1:-1:-1;;;15206:18:1;;;15199:45;15261:18;;123759:71:0::2;14946:339:1::0;123759:71:0::2;123843:25;123849:2;123853:14;123843:5;:25::i;:::-;36797:20:::1;36191:1:::0;37317:7;:22;37134:213;126803:245;126971:4;-1:-1:-1;;;;;46536:18:0;;46544:10;46536:18;46532:83;;46571:32;46592:10;46571:20;:32::i;:::-;126993:47:::1;127016:4;127022:2;127026:7;127035:4;126993:22;:47::i;124706:110::-:0;59087:13;:11;:13::i;:::-;124786:9:::1;:22;124798:10:::0;;124786:9;:22:::1;:::i;54677:260::-:0;-1:-1:-1;;;;;53269:26:0;;54749:7;53269:26;;;:19;:26;;;;;;54749:7;;54793:30;;-1:-1:-1;;;54793:30:0;;54817:4;54793:30;;;3684:51:1;-1:-1:-1;;;;;54793:15:0;;;;;3657:18:1;;54793:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;;;;:::i;:::-;-1:-1:-1;;;;;53973:21:0;;;53946:7;53973:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;54769:77;;-1:-1:-1;54864:65:0;;54880:7;;54769:77;;54451:15;:58::i;54864:65::-;54857:72;54677:260;-1:-1:-1;;;;54677:260:0:o;125050:330::-;125115:13;125149:16;125157:7;125149;:16::i;:::-;125141:48;;;;-1:-1:-1;;;125141:48:0;;16374:2:1;125141:48:0;;;16356:21:1;16413:2;16393:18;;;16386:30;-1:-1:-1;;;16432:18:1;;;16425:49;16491:18;;125141:48:0;16172:343:1;125141:48:0;125206:8;;;;;;;125202:142;;;125244:7;125238:21;;;;;:::i;:::-;;;125263:1;125238:26;:94;;;;;;;;;;;;;;;;;125291:7;125300:25;125317:7;125300:16;:25::i;:::-;125274:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;125231:101;125050:330;-1:-1:-1;;125050:330:0:o;125202:142::-;125363:9;125356:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125050:330;;;:::o;125388:199::-;59087:13;:11;:13::i;:::-;36753:21:::1;:19;:21::i;:::-;125479:49:::2;::::0;125461:12:::2;::::0;125479:10:::2;::::0;125502:21:::2;::::0;125461:12;125479:49;125461:12;125479:49;125502:21;125479:10;:49:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125460:68;;;125547:7;125539:40;;;::::0;-1:-1:-1;;;125539:40:0;;17957:2:1;125539:40:0::2;::::0;::::2;17939:21:1::0;17996:2;17976:18;;;17969:30;-1:-1:-1;;;18015:18:1;;;18008:50;18075:18;;125539:40:0::2;17755:344:1::0;60107:201:0;59087:13;:11;:13::i;:::-;-1:-1:-1;;;;;60196:22:0;::::1;60188:73;;;::::0;-1:-1:-1;;;60188:73:0;;18306:2:1;60188:73:0::1;::::0;::::1;18288:21:1::0;18345:2;18325:18;;;18318:30;18384:34;18364:18;;;18357:62;-1:-1:-1;;;18435:18:1;;;18428:36;18481:19;;60188:73:0::1;18104:402:1::0;60188:73:0::1;60272:28;60291:8;60272:18;:28::i;64896:215::-:0;64998:4;-1:-1:-1;;;;;;65022:41:0;;-1:-1:-1;;;65022:41:0;;:81;;-1:-1:-1;;;;;;;;;;62557:40:0;;;65067:36;62448:157;59366:132;59274:6;;-1:-1:-1;;;;;59274:6:0;49117:10;59430:23;59422:68;;;;-1:-1:-1;;;59422:68:0;;18713:2:1;59422:68:0;;;18695:21:1;;;18732:18;;;18725:30;18791:34;18771:18;;;18764:62;18843:18;;59422:68:0;18511:356:1;66258:332:0;65974:5;-1:-1:-1;;;;;66361:33:0;;;;66353:88;;;;-1:-1:-1;;;66353:88:0;;19074:2:1;66353:88:0;;;19056:21:1;19113:2;19093:18;;;19086:30;19152:34;19132:18;;;19125:62;-1:-1:-1;;;19203:18:1;;;19196:40;19253:19;;66353:88:0;18872:406:1;66353:88:0;-1:-1:-1;;;;;66460:22:0;;66452:60;;;;-1:-1:-1;;;66452:60:0;;19485:2:1;66452:60:0;;;19467:21:1;19524:2;19504:18;;;19497:30;19563:27;19543:18;;;19536:55;19608:18;;66452:60:0;19283:349:1;66452:60:0;66547:35;;;;;;;;;-1:-1:-1;;;;;66547:35:0;;;;;;-1:-1:-1;;;;;66547:35:0;;;;;;;;;;-1:-1:-1;;;66525:57:0;;;;:19;:57;66258:332::o;95374:368::-;95439:11;95524:13;;95514:7;:23;95510:214;;;95558:14;95591:60;-1:-1:-1;95608:26:0;;;;:17;:26;;;;;;;95598:42;;;95591:60;;95642:9;;;:::i;:::-;;;95591:60;;;-1:-1:-1;;;95679:24:0;:29;;-1:-1:-1;95510:214:0;95374:368;;;:::o;121152:165::-;121253:13;121247:4;121240:27;121294:4;121288;121281:18;46953:647;37486:42;47144:45;:49;47140:453;;47443:67;;-1:-1:-1;;;47443:67:0;;47494:4;47443:67;;;19990:34:1;-1:-1:-1;;;;;20060:15:1;;20040:18;;;20033:43;37486:42:0;;47443;;19925:18:1;;47443:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;47438:144;;47538:28;;-1:-1:-1;;;47538:28:0;;-1:-1:-1;;;;;3702:32:1;;47538:28:0;;;3684:51:1;3657:18;;47538:28:0;3538:203:1;93711:124:0;93800:27;93809:2;93813:7;93822:4;93800:8;:27::i;2527:317::-;2642:6;2617:21;:31;;2609:73;;;;-1:-1:-1;;;2609:73:0;;20539:2:1;2609:73:0;;;20521:21:1;20578:2;20558:18;;;20551:30;20617:31;20597:18;;;20590:59;20666:18;;2609:73:0;20337:353:1;2609:73:0;2696:12;2714:9;-1:-1:-1;;;;;2714:14:0;2736:6;2714:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2695:52;;;2766:7;2758:78;;;;-1:-1:-1;;;2758:78:0;;20897:2:1;2758:78:0;;;20879:21:1;20936:2;20916:18;;;20909:30;20975:34;20955:18;;;20948:62;21046:28;21026:18;;;21019:56;21092:19;;2758:78:0;20695:422:1;97728:3523:0;97870:27;97900;97919:7;97900:18;:27::i;:::-;-1:-1:-1;;;;;98055:22:0;;;;97870:57;;-1:-1:-1;98115:45:0;;;;98111:95;;98162:44;-1:-1:-1;;;98162:7:0;:44::i;:::-;98220:27;96836:24;;;:15;:24;;;;;97064:26;;49117:10;96461:30;;;-1:-1:-1;;;;;96154:28:0;;96439:20;;;96436:56;98406:189;;98499:43;98516:4;49117:10;94952:164;:::i;98499:43::-;98494:101;;98544:51;-1:-1:-1;;;98544:7:0;:51::i;:::-;98744:15;98741:160;;;98884:1;98863:19;98856:30;98741:160;-1:-1:-1;;;;;99281:24:0;;;;;;;:18;:24;;;;;;99279:26;;-1:-1:-1;;99279:26:0;;;99350:22;;;;;;;;;99348:24;;-1:-1:-1;99348:24:0;;;92813:11;92788:23;92784:41;92771:63;-1:-1:-1;;;92771:63:0;99643:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;99938:47:0;;:52;;99934:627;;100043:1;100033:11;;100011:19;100166:30;;;:17;:30;;;;;;:35;;100162:384;;100304:13;;100289:11;:28;100285:242;;100451:30;;;;:17;:30;;;;;:52;;;100285:242;99992:569;99934:627;-1:-1:-1;;;;;100693:20:0;;101073:7;100693:20;101003:4;100945:25;100674:16;;100810:299;101134:8;101146:1;101134:13;101130:58;;101149:39;-1:-1:-1;;;101149:7:0;:39::i;:::-;97859:3392;;;;97728:3523;;;:::o;101347:193::-;101493:39;101510:4;101516:2;101520:7;101493:39;;;;;;;;;;;;:16;:39::i;15419:211::-;15563:58;;;-1:-1:-1;;;;;206:32:1;;15563:58:0;;;188:51:1;255:18;;;;248:34;;;15563:58:0;;;;;;;;;;161:18:1;;;;15563:58:0;;;;;;;;-1:-1:-1;;;;;15563:58:0;-1:-1:-1;;;15563:58:0;;;15536:86;;15556:5;;15536:19;:86::i;36833:293::-;36235:1;36967:7;;:19;36959:63;;;;-1:-1:-1;;;36959:63:0;;21324:2:1;36959:63:0;;;21306:21:1;21363:2;21343:18;;;21336:30;21402:33;21382:18;;;21375:61;21453:18;;36959:63:0;21122:355:1;36959:63:0;36235:1;37100:7;:18;36833:293::o;105791:2305::-;105864:20;105887:13;;;105915;;;105911:53;;105930:34;-1:-1:-1;;;105930:7:0;:34::i;:::-;106477:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;92639:28:0;;92813:11;92788:23;92784:41;93257:1;93244:15;;93218:24;93214:46;92781:52;92771:63;;106477:173;;;106868:22;;;:18;:22;;;;;:71;;106906:32;106894:45;;106868:71;;;92639:28;107129:13;;;107125:54;;107144:35;-1:-1:-1;;;107144:7:0;:35::i;:::-;107210:23;;;:12;107295:676;107714:7;107670:8;107625:1;107559:25;107496:1;107431;107400:358;107966:3;107953:9;;;;;;:16;107295:676;;-1:-1:-1;107987:13:0;:19;-1:-1:-1;126264:165:0;;;:::o;89842:2012::-;89992:26;;;;:17;:26;;;;;;;90118:11;;;90114:1292;;90165:13;;90154:7;:24;90150:77;;90180:47;-1:-1:-1;;;90180:7:0;:47::i;:::-;90784:607;-1:-1:-1;;;90880:9:0;90862:28;;;;:17;:28;;;;;;90936:25;;90784:607;90936:25;-1:-1:-1;;;90988:6:0;:24;91016:1;90988:29;90984:48;;89842:2012;;;:::o;90984:48::-;91324:47;-1:-1:-1;;;91324:7:0;:47::i;:::-;90784:607;;90114:1292;-1:-1:-1;;;91733:6:0;:24;91761:1;91733:29;91729:48;;89842:2012;;;:::o;91729:48::-;91799:47;-1:-1:-1;;;91799:7:0;:47::i;60468:191::-;60561:6;;;-1:-1:-1;;;;;60578:17:0;;;-1:-1:-1;;;;;;60578:17:0;;;;;;;60611:40;;60561:6;;;60578:17;60561:6;;60611:40;;60542:16;;60611:40;60531:128;60468:191;:::o;94561:234::-;49117:10;94656:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;94656:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;94656:60:0;;;;;;;;;;94732:55;;819:41:1;;;94656:49:0;;49117:10;94732:55;;792:18:1;94732:55:0;;;;;;;94561:234;;:::o;57046:248::-;57256:12;;-1:-1:-1;;;;;57236:16:0;;57192:7;57236:16;;;:7;:16;;;;;;57192:7;;57271:15;;57220:32;;:13;:32;:::i;:::-;57219:49;;;;:::i;:::-;:67;;;;:::i;102138:416::-;102313:31;102326:4;102332:2;102336:7;102313:12;:31::i;:::-;-1:-1:-1;;;;;102359:14:0;;;:19;102355:192;;102398:56;102429:4;102435:2;102439:7;102448:5;102398:30;:56::i;:::-;102393:154;;102475:56;-1:-1:-1;;;102475:7:0;:56::i;32514:716::-;32570:13;32621:14;32638:17;32649:5;32638:10;:17::i;:::-;32658:1;32638:21;32621:38;;32674:20;32708:6;32697:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32697:18:0;-1:-1:-1;32674:41:0;-1:-1:-1;32839:28:0;;;32855:2;32839:28;32896:288;-1:-1:-1;;32928:5:0;-1:-1:-1;;;33065:2:0;33054:14;;33049:30;32928:5;33036:44;33126:2;33117:11;;;-1:-1:-1;33147:21:0;32896:288;33147:21;-1:-1:-1;33205:6:0;32514:716;-1:-1:-1;;;32514:716:0:o;112585:474::-;112714:13;112730:16;112738:7;112730;:16::i;:::-;112714:32;;112763:13;:45;;;;-1:-1:-1;49117:10:0;-1:-1:-1;;;;;112780:28:0;;;;112763:45;112759:201;;;112828:44;112845:5;49117:10;94952:164;:::i;112828:44::-;112823:137;;112893:51;-1:-1:-1;;;112893:7:0;:51::i;:::-;112972:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;112972:35:0;-1:-1:-1;;;;;112972:35:0;;;;;;;;;113023:28;;112972:24;;113023:28;;;;;;;112703:356;112585:474;;;:::o;18486:716::-;18910:23;18936:69;18964:4;18936:69;;;;;;;;;;;;;;;;;18944:5;-1:-1:-1;;;;;18936:27:0;;;:69;;;;;:::i;:::-;19020:17;;18910:95;;-1:-1:-1;19020:21:0;19016:179;;19117:10;19106:30;;;;;;;;;;;;:::i;:::-;19098:85;;;;-1:-1:-1;;;19098:85:0;;21817:2:1;19098:85:0;;;21799:21:1;21856:2;21836:18;;;21829:30;21895:34;21875:18;;;21868:62;-1:-1:-1;;;21946:18:1;;;21939:40;21996:19;;19098:85:0;21615:406:1;104638:691:0;104822:88;;-1:-1:-1;;;104822:88:0;;104801:4;;-1:-1:-1;;;;;104822:45:0;;;;;:88;;49117:10;;104889:4;;104895:7;;104904:5;;104822:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;104822:88:0;;;;;;;;-1:-1:-1;;104822:88:0;;;;;;;;;;;;:::i;:::-;;;104818:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;105105:6;:13;105122:1;105105:18;105101:115;;105144:56;-1:-1:-1;;;105144:7:0;:56::i;:::-;105288:6;105282:13;105273:6;105269:2;105265:15;105258:38;104818:504;-1:-1:-1;;;;;;104981:64:0;-1:-1:-1;;;104981:64:0;;-1:-1:-1;104638:691:0;;;;;;:::o;29380:922::-;29433:7;;-1:-1:-1;;;29511:15:0;;29507:102;;-1:-1:-1;;;29547:15:0;;;-1:-1:-1;29591:2:0;29581:12;29507:102;29636:6;29627:5;:15;29623:102;;29672:6;29663:15;;;-1:-1:-1;29707:2:0;29697:12;29623:102;29752:6;29743:5;:15;29739:102;;29788:6;29779:15;;;-1:-1:-1;29823:2:0;29813:12;29739:102;29868:5;29859;:14;29855:99;;29903:5;29894:14;;;-1:-1:-1;29937:1:0;29927:11;29855:99;29981:5;29972;:14;29968:99;;30016:5;30007:14;;;-1:-1:-1;30050:1:0;30040:11;29968:99;30094:5;30085;:14;30081:99;;30129:5;30120:14;;;-1:-1:-1;30163:1:0;30153:11;30081:99;30207:5;30198;:14;30194:66;;30243:1;30233:11;30288:6;29380:922;-1:-1:-1;;29380:922:0:o;4023:229::-;4160:12;4192:52;4214:6;4222:4;4228:1;4231:12;4160;5431;5445:23;5472:6;-1:-1:-1;;;;;5472:11:0;5491:5;5498:4;5472:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5430:73;;;;5521:69;5548:6;5556:7;5565:10;5577:12;5521:26;:69::i;:::-;5514:76;5143:455;-1:-1:-1;;;;;;;5143:455:0:o;7716:644::-;7901:12;7930:7;7926:427;;;7958:10;:17;7979:1;7958:22;7954:290;;-1:-1:-1;;;;;1561:19:0;;;8168:60;;;;-1:-1:-1;;;8168:60:0;;23675:2:1;8168:60:0;;;23657:21:1;23714:2;23694:18;;;23687:30;23753:31;23733:18;;;23726:59;23802:18;;8168:60:0;23473:353:1;8168:60:0;-1:-1:-1;8265:10:0;8258:17;;7926:427;8308:33;8316:10;8328:12;9063:17;;:21;9059:388;;9295:10;9289:17;9352:15;9339:10;9335:2;9331:19;9324:44;9059:388;9422:12;9415:20;;-1:-1:-1;;;9415:20:0;;;;;;;;:::i;293:131:1:-;-1:-1:-1;;;;;;367:32:1;;357:43;;347:71;;414:1;411;404:12;429:245;487:6;540:2;528:9;519:7;515:23;511:32;508:52;;;556:1;553;546:12;508:52;595:9;582:23;614:30;638:5;614:30;:::i;871:367::-;934:8;944:6;998:3;991:4;983:6;979:17;975:27;965:55;;1016:1;1013;1006:12;965:55;-1:-1:-1;1039:20:1;;1082:18;1071:30;;1068:50;;;1114:1;1111;1104:12;1068:50;1151:4;1143:6;1139:17;1127:29;;1211:3;1204:4;1194:6;1191:1;1187:14;1179:6;1175:27;1171:38;1168:47;1165:67;;;1228:1;1225;1218:12;1243:773;1365:6;1373;1381;1389;1442:2;1430:9;1421:7;1417:23;1413:32;1410:52;;;1458:1;1455;1448:12;1410:52;1498:9;1485:23;1527:18;1568:2;1560:6;1557:14;1554:34;;;1584:1;1581;1574:12;1554:34;1623:70;1685:7;1676:6;1665:9;1661:22;1623:70;:::i;:::-;1712:8;;-1:-1:-1;1597:96:1;-1:-1:-1;1800:2:1;1785:18;;1772:32;;-1:-1:-1;1816:16:1;;;1813:36;;;1845:1;1842;1835:12;1813:36;;1884:72;1948:7;1937:8;1926:9;1922:24;1884:72;:::i;:::-;1243:773;;;;-1:-1:-1;1975:8:1;-1:-1:-1;;;;1243:773:1:o;2021:131::-;-1:-1:-1;;;;;2096:31:1;;2086:42;;2076:70;;2142:1;2139;2132:12;2157:435;2224:6;2232;2285:2;2273:9;2264:7;2260:23;2256:32;2253:52;;;2301:1;2298;2291:12;2253:52;2340:9;2327:23;2359:31;2384:5;2359:31;:::i;:::-;2409:5;-1:-1:-1;2466:2:1;2451:18;;2438:32;-1:-1:-1;;;;;2501:40:1;;2489:53;;2479:81;;2556:1;2553;2546:12;2479:81;2579:7;2569:17;;;2157:435;;;;;:::o;2597:250::-;2682:1;2692:113;2706:6;2703:1;2700:13;2692:113;;;2782:11;;;2776:18;2763:11;;;2756:39;2728:2;2721:10;2692:113;;;-1:-1:-1;;2839:1:1;2821:16;;2814:27;2597:250::o;2852:271::-;2894:3;2932:5;2926:12;2959:6;2954:3;2947:19;2975:76;3044:6;3037:4;3032:3;3028:14;3021:4;3014:5;3010:16;2975:76;:::i;:::-;3105:2;3084:15;-1:-1:-1;;3080:29:1;3071:39;;;;3112:4;3067:50;;2852:271;-1:-1:-1;;2852:271:1:o;3128:220::-;3277:2;3266:9;3259:21;3240:4;3297:45;3338:2;3327:9;3323:18;3315:6;3297:45;:::i;3353:180::-;3412:6;3465:2;3453:9;3444:7;3440:23;3436:32;3433:52;;;3481:1;3478;3471:12;3433:52;-1:-1:-1;3504:23:1;;3353:180;-1:-1:-1;3353:180:1:o;3746:315::-;3814:6;3822;3875:2;3863:9;3854:7;3850:23;3846:32;3843:52;;;3891:1;3888;3881:12;3843:52;3930:9;3917:23;3949:31;3974:5;3949:31;:::i;:::-;3999:5;4051:2;4036:18;;;;4023:32;;-1:-1:-1;;;3746:315:1:o;4248:255::-;4315:6;4368:2;4356:9;4347:7;4343:23;4339:32;4336:52;;;4384:1;4381;4374:12;4336:52;4423:9;4410:23;4442:31;4467:5;4442:31;:::i;4508:456::-;4585:6;4593;4601;4654:2;4642:9;4633:7;4629:23;4625:32;4622:52;;;4670:1;4667;4660:12;4622:52;4709:9;4696:23;4728:31;4753:5;4728:31;:::i;:::-;4778:5;-1:-1:-1;4835:2:1;4820:18;;4807:32;4848:33;4807:32;4848:33;:::i;:::-;4508:456;;4900:7;;-1:-1:-1;;;4954:2:1;4939:18;;;;4926:32;;4508:456::o;4969:248::-;5037:6;5045;5098:2;5086:9;5077:7;5073:23;5069:32;5066:52;;;5114:1;5111;5104:12;5066:52;-1:-1:-1;;5137:23:1;;;5207:2;5192:18;;;5179:32;;-1:-1:-1;4969:248:1:o;5222:402::-;5304:6;5312;5365:2;5353:9;5344:7;5340:23;5336:32;5333:52;;;5381:1;5378;5371:12;5333:52;5420:9;5407:23;5439:31;5464:5;5439:31;:::i;:::-;5489:5;-1:-1:-1;5546:2:1;5531:18;;5518:32;5559:33;5518:32;5559:33;:::i;5869:592::-;5940:6;5948;6001:2;5989:9;5980:7;5976:23;5972:32;5969:52;;;6017:1;6014;6007:12;5969:52;6057:9;6044:23;6086:18;6127:2;6119:6;6116:14;6113:34;;;6143:1;6140;6133:12;6113:34;6181:6;6170:9;6166:22;6156:32;;6226:7;6219:4;6215:2;6211:13;6207:27;6197:55;;6248:1;6245;6238:12;6197:55;6288:2;6275:16;6314:2;6306:6;6303:14;6300:34;;;6330:1;6327;6320:12;6300:34;6375:7;6370:2;6361:6;6357:2;6353:15;6349:24;6346:37;6343:57;;;6396:1;6393;6386:12;6343:57;6427:2;6419:11;;;;;6449:6;;-1:-1:-1;5869:592:1;;-1:-1:-1;;;;5869:592:1:o;6718:118::-;6804:5;6797:13;6790:21;6783:5;6780:32;6770:60;;6826:1;6823;6816:12;6841:382;6906:6;6914;6967:2;6955:9;6946:7;6942:23;6938:32;6935:52;;;6983:1;6980;6973:12;6935:52;7022:9;7009:23;7041:31;7066:5;7041:31;:::i;:::-;7091:5;-1:-1:-1;7148:2:1;7133:18;;7120:32;7161:30;7120:32;7161:30;:::i;7228:127::-;7289:10;7284:3;7280:20;7277:1;7270:31;7320:4;7317:1;7310:15;7344:4;7341:1;7334:15;7360:1266;7455:6;7463;7471;7479;7532:3;7520:9;7511:7;7507:23;7503:33;7500:53;;;7549:1;7546;7539:12;7500:53;7588:9;7575:23;7607:31;7632:5;7607:31;:::i;:::-;7657:5;-1:-1:-1;7714:2:1;7699:18;;7686:32;7727:33;7686:32;7727:33;:::i;:::-;7779:7;-1:-1:-1;7833:2:1;7818:18;;7805:32;;-1:-1:-1;7888:2:1;7873:18;;7860:32;7911:18;7941:14;;;7938:34;;;7968:1;7965;7958:12;7938:34;8006:6;7995:9;7991:22;7981:32;;8051:7;8044:4;8040:2;8036:13;8032:27;8022:55;;8073:1;8070;8063:12;8022:55;8109:2;8096:16;8131:2;8127;8124:10;8121:36;;;8137:18;;:::i;:::-;8212:2;8206:9;8180:2;8266:13;;-1:-1:-1;;8262:22:1;;;8286:2;8258:31;8254:40;8242:53;;;8310:18;;;8330:22;;;8307:46;8304:72;;;8356:18;;:::i;:::-;8396:10;8392:2;8385:22;8431:2;8423:6;8416:18;8471:7;8466:2;8461;8457;8453:11;8449:20;8446:33;8443:53;;;8492:1;8489;8482:12;8443:53;8548:2;8543;8539;8535:11;8530:2;8522:6;8518:15;8505:46;8593:1;8588:2;8583;8575:6;8571:15;8567:24;8560:35;8614:6;8604:16;;;;;;;7360:1266;;;;;;;:::o;9290:127::-;9351:10;9346:3;9342:20;9339:1;9332:31;9382:4;9379:1;9372:15;9406:4;9403:1;9396:15;9422:127;9483:10;9478:3;9474:20;9471:1;9464:31;9514:4;9511:1;9504:15;9538:4;9535:1;9528:15;9554:135;9593:3;9614:17;;;9611:43;;9634:18;;:::i;:::-;-1:-1:-1;9681:1:1;9670:13;;9554:135::o;9694:380::-;9773:1;9769:12;;;;9816;;;9837:61;;9891:4;9883:6;9879:17;9869:27;;9837:61;9944:2;9936:6;9933:14;9913:18;9910:38;9907:161;;9990:10;9985:3;9981:20;9978:1;9971:31;10025:4;10022:1;10015:15;10053:4;10050:1;10043:15;9907:161;;9694:380;;;:::o;10079:402::-;10281:2;10263:21;;;10320:2;10300:18;;;10293:30;10359:34;10354:2;10339:18;;10332:62;-1:-1:-1;;;10425:2:1;10410:18;;10403:36;10471:3;10456:19;;10079:402::o;10486:407::-;10688:2;10670:21;;;10727:2;10707:18;;;10700:30;10766:34;10761:2;10746:18;;10739:62;-1:-1:-1;;;10832:2:1;10817:18;;10810:41;10883:3;10868:19;;10486:407::o;10898:125::-;10963:9;;;10984:10;;;10981:36;;;10997:18;;:::i;11315:168::-;11388:9;;;11419;;11436:15;;;11430:22;;11416:37;11406:71;;11457:18;;:::i;11620:217::-;11660:1;11686;11676:132;;11730:10;11725:3;11721:20;11718:1;11711:31;11765:4;11762:1;11755:15;11793:4;11790:1;11783:15;11676:132;-1:-1:-1;11822:9:1;;11620:217::o;12672:545::-;12774:2;12769:3;12766:11;12763:448;;;12810:1;12835:5;12831:2;12824:17;12880:4;12876:2;12866:19;12950:2;12938:10;12934:19;12931:1;12927:27;12921:4;12917:38;12986:4;12974:10;12971:20;12968:47;;;-1:-1:-1;13009:4:1;12968:47;13064:2;13059:3;13055:12;13052:1;13048:20;13042:4;13038:31;13028:41;;13119:82;13137:2;13130:5;13127:13;13119:82;;;13182:17;;;13163:1;13152:13;13119:82;;;13123:3;;;12672:545;;;:::o;13393:1206::-;13517:18;13512:3;13509:27;13506:53;;;13539:18;;:::i;:::-;13568:94;13658:3;13618:38;13650:4;13644:11;13618:38;:::i;:::-;13612:4;13568:94;:::i;:::-;13688:1;13713:2;13708:3;13705:11;13730:1;13725:616;;;;14385:1;14402:3;14399:93;;;-1:-1:-1;14458:19:1;;;14445:33;14399:93;-1:-1:-1;;13350:1:1;13346:11;;;13342:24;13338:29;13328:40;13374:1;13370:11;;;13325:57;14505:78;;13698:895;;13725:616;12619:1;12612:14;;;12656:4;12643:18;;-1:-1:-1;;13761:17:1;;;13862:9;13884:229;13898:7;13895:1;13892:14;13884:229;;;13987:19;;;13974:33;13959:49;;14094:4;14079:20;;;;14047:1;14035:14;;;;13914:12;13884:229;;;13888:3;14141;14132:7;14129:16;14126:159;;;14265:1;14261:6;14255:3;14249;14246:1;14242:11;14238:21;14234:34;14230:39;14217:9;14212:3;14208:19;14195:33;14191:79;14183:6;14176:95;14126:159;;;14328:1;14322:3;14319:1;14315:11;14311:19;14305:4;14298:33;13698:895;;13393:1206;;;:::o;15983:184::-;16053:6;16106:2;16094:9;16085:7;16081:23;16077:32;16074:52;;;16122:1;16119;16112:12;16074:52;-1:-1:-1;16145:16:1;;15983:184;-1:-1:-1;15983:184:1:o;16520:1020::-;16696:3;16725:1;16758:6;16752:13;16788:36;16814:9;16788:36;:::i;:::-;16843:1;16860:18;;;16887:133;;;;17034:1;17029:356;;;;16853:532;;16887:133;-1:-1:-1;;16920:24:1;;16908:37;;16993:14;;16986:22;16974:35;;16965:45;;;-1:-1:-1;16887:133:1;;17029:356;17060:6;17057:1;17050:17;17090:4;17135:2;17132:1;17122:16;17160:1;17174:165;17188:6;17185:1;17182:13;17174:165;;;17266:14;;17253:11;;;17246:35;17309:16;;;;17203:10;;17174:165;;;17178:3;;;17368:6;17363:3;17359:16;17352:23;;16853:532;;;;;17416:6;17410:13;17432:68;17491:8;17486:3;17479:4;17471:6;17467:17;17432:68;:::i;:::-;17516:18;;16520:1020;-1:-1:-1;;;;16520:1020:1:o;19637:136::-;19676:3;19704:5;19694:39;;19713:18;;:::i;:::-;-1:-1:-1;;;19749:18:1;;19637:136::o;20087:245::-;20154:6;20207:2;20195:9;20186:7;20182:23;20178:32;20175:52;;;20223:1;20220;20213:12;20175:52;20255:9;20249:16;20274:28;20296:5;20274:28;:::i;21482:128::-;21549:9;;;21570:11;;;21567:37;;;21584:18;;:::i;22026:489::-;-1:-1:-1;;;;;22295:15:1;;;22277:34;;22347:15;;22342:2;22327:18;;22320:43;22394:2;22379:18;;22372:34;;;22442:3;22437:2;22422:18;;22415:31;;;22220:4;;22463:46;;22489:19;;22481:6;22463:46;:::i;:::-;22455:54;22026:489;-1:-1:-1;;;;;;22026:489:1:o;22520:249::-;22589:6;22642:2;22630:9;22621:7;22617:23;22613:32;22610:52;;;22658:1;22655;22648:12;22610:52;22690:9;22684:16;22709:30;22733:5;22709:30;:::i;23181:287::-;23310:3;23348:6;23342:13;23364:66;23423:6;23418:3;23411:4;23403:6;23399:17;23364:66;:::i;:::-;23446:16;;;;;23181:287;-1:-1:-1;;23181:287:1:o
Swarm Source
ipfs://a464cbac888f643d42349cc006a5fa2931ef205ecc4d00b9d6883dfaa340a251
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.