Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
500 FiveDeadlyRebels
Holders
229
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 FiveDeadlyRebelsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FiveDeadlyRebels
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-02-28 */ // 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/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: @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/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: operator-filter-registry/src/lib/Constants.sol pragma solidity ^0.8.17; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; // File: operator-filter-registry/src/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: operator-filter-registry/src/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: operator-filter-registry/src/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: contracts/extensions/MessageSigning.sol //SPDX-License-Identifier: MIT pragma solidity ^0.8.4; abstract contract MessageSigning { // Signer Address address internal signerAddress; constructor(address signerAddress_){ signerAddress = signerAddress_; } /************ * @dev message singing handling ************/ function isValidSignature(bytes memory message, bytes memory signature) public view returns (bool) { bytes32 _messageHash = keccak256(abi.encodePacked(message)); bytes32 ethSignedMessageHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", _messageHash)); return _recoverSigner(ethSignedMessageHash, signature) == signerAddress; } /** * @dev Set the _signerAddress just in case */ function _setSignerAddress(address newSignerAddress) internal virtual { require(newSignerAddress != signerAddress, "New Signer Address cannot be the same as current one"); signerAddress = newSignerAddress; } function _recoverSigner(bytes32 _ethSignedMessageHash, bytes memory _signature) private pure returns (address) { (bytes32 r, bytes32 s, uint8 v) = _splitSignature(_signature); return ecrecover(_ethSignedMessageHash, v, r, s); } function _splitSignature(bytes memory sig) private pure returns (bytes32 r, bytes32 s, uint8 v) { require(sig.length == 65, "invalid signature length"); assembly { r := mload(add(sig, 32)) s := mload(add(sig, 64)) v := byte(0, mload(add(sig, 96))) } } } // 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 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 not burned. if (packed & _BITMASK_BURNED == 0) { // 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; return packed; } } // Otherwise, the data exists and is not burned. 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. 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) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @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/extensions/IERC721AQueryable.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } // File: contracts/extensions/ERC721AQueryable.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory ownership) { if (tokenId >= _startTokenId()) { if (tokenId < _nextTokenId()) { ownership = _ownershipAt(tokenId); if (!ownership.burned) { ownership = _ownershipOf(tokenId); } } } } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { TokenOwnership[] memory ownerships; uint256 i = tokenIds.length; assembly { // Grab the free memory pointer. ownerships := mload(0x40) // Store the length. mstore(ownerships, i) // Allocate one word for the length, // `tokenIds.length` words for the pointers. i := shl(5, i) // Multiply `i` by 32. mstore(0x40, add(add(ownerships, 0x20), i)) } while (i != 0) { uint256 tokenId; assembly { i := sub(i, 0x20) tokenId := calldataload(add(tokenIds.offset, i)) } TokenOwnership memory ownership = explicitOwnershipOf(tokenId); assembly { // Store the pointer of `ownership` in the `ownerships` array. mstore(add(add(ownerships, 0x20), i), ownership) } } return ownerships; } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) _revert(InvalidQueryRange.selector); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } uint256 stopLimit = _nextTokenId(); // Set `stop = min(stop, stopLimit)`. if (stop >= stopLimit) { stop = stopLimit; } uint256[] memory tokenIds; uint256 tokenIdsMaxLength = balanceOf(owner); bool startLtStop = start < stop; assembly { // Set `tokenIdsMaxLength` to zero if `start` is less than `stop`. tokenIdsMaxLength := mul(tokenIdsMaxLength, startLtStop) } if (tokenIdsMaxLength != 0) { // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (stop - start <= tokenIdsMaxLength) { tokenIdsMaxLength = stop - start; } assembly { // Grab the free memory pointer. tokenIds := mload(0x40) // Allocate one word for the length, and `tokenIdsMaxLength` words // for the data. `shl(5, x)` is equivalent to `mul(32, x)`. mstore(0x40, add(tokenIds, shl(5, add(tokenIdsMaxLength, 1)))) } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), // initialize `currOwnershipAddr`. // `ownership.address` will not be zero, // as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } uint256 tokenIdsIdx; // Use a do-while, which is slightly more efficient for this case, // as the array will at least contain one element. do { ownership = _ownershipAt(start); assembly { // if `ownership.burned == false`. if iszero(mload(add(ownership, 0x40))) { // if `ownership.addr != address(0)`. // The `addr` already has it's upper 96 bits clearned, // since it is written to memory with regular Solidity. if mload(ownership) { currOwnershipAddr := mload(ownership) } // if `currOwnershipAddr == owner`. // The `shl(96, x)` is to make the comparison agnostic to any // dirty upper 96 bits in `owner`. if iszero(shl(96, xor(currOwnershipAddr, owner))) { tokenIdsIdx := add(tokenIdsIdx, 1) mstore(add(tokenIds, shl(5, tokenIdsIdx)), start) } } start := add(start, 1) } } while (!(start == stop || tokenIdsIdx == tokenIdsMaxLength)); // Store the length of the array. assembly { mstore(tokenIds, tokenIdsIdx) } } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds; assembly { // Grab the free memory pointer. tokenIds := mload(0x40) // Allocate one word for the length, and `tokenIdsMaxLength` words // for the data. `shl(5, x)` is equivalent to `mul(32, x)`. mstore(0x40, add(tokenIds, shl(5, add(tokenIdsLength, 1)))) // Store the length of `tokenIds`. mstore(tokenIds, tokenIdsLength) } address currOwnershipAddr; uint256 tokenIdsIdx; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ) { TokenOwnership memory ownership = _ownershipAt(i); assembly { // if `ownership.burned == false`. if iszero(mload(add(ownership, 0x40))) { // if `ownership.addr != address(0)`. // The `addr` already has it's upper 96 bits clearned, // since it is written to memory with regular Solidity. if mload(ownership) { currOwnershipAddr := mload(ownership) } // if `currOwnershipAddr == owner`. // The `shl(96, x)` is to make the comparison agnostic to any // dirty upper 96 bits in `owner`. if iszero(shl(96, xor(currOwnershipAddr, owner))) { tokenIdsIdx := add(tokenIdsIdx, 1) mstore(add(tokenIds, shl(5, tokenIdsIdx)), i) } } i := add(i, 1) } } return tokenIds; } } // File: contracts/5DeadlyRebelsNFT.sol // ERC721A Contracts v4.0.0 // Creators: Chiru Labs pragma solidity ^0.8.7; contract FiveDeadlyRebels is ERC721AQueryable, Ownable, MessageSigning, PaymentSplitter, DefaultOperatorFilterer, ERC2981 { using Strings for uint256; uint32 public maxSupply = 5555; uint32 public remainingReserves = 100; uint32 public maxBatchSize = 5; uint32 public maxWLmint = 5; uint32 public maxPublicMint = 5; uint256 public mintPrice = 0.0088 ether; uint256 public constant startTokenId = 1; bool public presale = true; bool public paused = false; bool public gatekeeperEnabled = true; string private _baseTokenURI; address[] private addressList = [ 0x8De469d08bb580Ab4355255929AdE18965E5C2aB, 0x00d0BC9a3DE7577b0B9f9663E7bAFB1E72bc9972, 0x571bf2d691De261a92f489a6F5B45766640F79Ba, 0x6492e91f192446C7Ab77F02104Dc92162f985c52 ]; uint256[] private shareList = [60, 25, 10, 5]; constructor() ERC721A("FiveDeadlyRebels", "FiveDeadlyRebels") MessageSigning(0x89c414614a488B929D081367B1B9a31bB1E04369) PaymentSplitter(addressList, shareList) { _setDefaultRoyalty(msg.sender, 750); // 7.5% setBaseURI("ipfs://QmZ11azwWPKMSY73RYKucoC2LxTsYQTVnbDViLEMhM2t9q/"); } function _startTokenId() internal pure override returns (uint256) { return startTokenId; } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721A, IERC721A, ERC2981) returns (bool) { // Supports the following `interfaceId`s: // - IERC165: 0x01ffc9a7 // - IERC721: 0x80ac58cd // - IERC721Metadata: 0x5b5e139f // - IERC2981: 0x2a55205a return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function setDefaultRoyalty(address _receiver, uint96 _feeNumerator) external onlyOwner { _setDefaultRoyalty(_receiver, _feeNumerator); } function setMaxWLmint(uint32 newMaxWLmint) external onlyOwner { maxWLmint = newMaxWLmint; } function setMaxPublicmint(uint32 newMaxPublicMint) external onlyOwner { maxPublicMint = newMaxPublicMint; } /** * @dev Switch the status of the gatekeeper */ function switchGatekeeer() external onlyOwner { gatekeeperEnabled = !gatekeeperEnabled; } /** * @dev change the signerAddress just in case */ function setSignerAddress(address newsignerAddress) external onlyOwner{ _setSignerAddress(newsignerAddress); } /** * @dev Switch the status of the contract */ function switchPauseStatus() external onlyOwner{ paused = !paused; } /** * @dev End the presale & sets the public Sales price */ function endPresale() external onlyOwner{ require(presale, "Presale already ended"); mintPrice = 0.01 ether; presale = false; } /** * @dev ERC721 standard * @return baseURI value */ function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } /** * @dev Set the base URI * * The style MUST BE as follow : "ipfs://QmdsaXXXXXXXXXXXXXXXXXXXX7epJF/" */ function setBaseURI(string memory newBaseTokenURI) public onlyOwner { _baseTokenURI = newBaseTokenURI; } /** * @dev Decreases the total supply */ function decreaseSupply(uint32 newSupply, uint32 newRemainingReserves) external onlyOwner { require(newSupply < maxSupply,"Maximum supply can only be decreased"); require(newRemainingReserves <= remainingReserves, "Reseves cannot be increased"); require(newSupply >= newRemainingReserves + totalSupply(), "Maximum supply cannot be lower than the current supply + reserves"); maxSupply = newSupply; remainingReserves = newRemainingReserves; } /** * @dev Decreases the total reserves */ function decreaseReserves(uint32 newRemainingReserves) external onlyOwner { require(newRemainingReserves < remainingReserves, "Reseves can only be decreased"); remainingReserves = newRemainingReserves; } // minting /** * @dev Admin Mint of reserves */ function AirDrop (address to, uint32 amountToMint) external onlyOwner{ require (amountToMint <= remainingReserves, "The requested amount is greater than the remaining reserves"); _mint(to, amountToMint); unchecked { remainingReserves -= amountToMint; } } /** * @dev Minting for whitelisted addresses */ function whitelistMinting(uint32 amountToMint, bytes calldata mintPass) external payable { require (presale, "Presale over!"); require (isValidSignature(abi.encodePacked(_msgSender(), "presale"), mintPass), "Wallet not whitelisted"); require (_numberMinted(msg.sender) + amountToMint <= maxWLmint, "Limit per address Reached"); _mintNFT(amountToMint); } /** * @dev Minting for the public sale */ function publicMint(uint32 amountToMint) external payable{ require (!presale, "Presale on"); require (!gatekeeperEnabled, "Direct minting is not allowed while gatekeeper is enable"); require (_numberMinted(msg.sender) + amountToMint <= maxPublicMint, "Limit per address Reached"); _mintNFT(amountToMint); } function gatedMint(uint32 amountToMint, bytes calldata mintPass) external payable{ require (!presale, "Presale on"); require (_numberMinted(msg.sender) + amountToMint <= maxPublicMint, "Limit per address Reached"); require (isValidSignature(abi.encodePacked(_msgSender(), "public"), mintPass), "Wrong mintPass"); _mintNFT(amountToMint); } /** * @dev Mint the amount of NFT requested */ function _mintNFT(uint32 _amountToMint) internal { require (!paused, "Contract paused"); require (tx.origin == msg.sender, "Caller not user"); require (msg.value >= mintPrice * _amountToMint, "Incorrect Payment Amount"); require (totalSupply() + _amountToMint <= maxSupply - remainingReserves, "Request superior max Supply"); require (_amountToMint <= maxBatchSize, "Quantity to mint too high"); _mint(msg.sender, _amountToMint); } function getNumberMinted(address wallet) external view returns(uint256) { return _numberMinted(wallet); } /** * @dev Return the URI of the NFT */ function tokenURI(uint256 tokenId) public view virtual override(ERC721A,IERC721A) returns (string memory) { require(_exists(tokenId),"ERC721Metadata: URI query for nonexistent token"); string memory URI = _baseURI(); return bytes(URI).length > 0 ? string(abi.encodePacked(URI, tokenId.toString(), ".json")) : ""; } /** * @dev Change the `maxBatchSize` */ function setNewMaxBatchSize(uint32 newMaxBatchSize) external onlyOwner{ require(newMaxBatchSize != maxBatchSize, "newMaxBatchSize cannot be equal to the current one"); maxBatchSize = newMaxBatchSize; } function setMintPrice(uint256 newMintPrice) external onlyOwner { require(newMintPrice != mintPrice, "newMintPrice cannot be equal to the current one"); mintPrice = newMintPrice; } /** * @dev OpenSea filters */ function setApprovalForAll(address operator, bool approved) public override(ERC721A,IERC721A) onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override(ERC721A,IERC721A) onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override(ERC721A,IERC721A) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override(ERC721A,IERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override(ERC721A,IERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint32","name":"amountToMint","type":"uint32"}],"name":"AirDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","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":[{"internalType":"uint32","name":"newRemainingReserves","type":"uint32"}],"name":"decreaseReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"newSupply","type":"uint32"},{"internalType":"uint32","name":"newRemainingReserves","type":"uint32"}],"name":"decreaseSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"ownership","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"amountToMint","type":"uint32"},{"internalType":"bytes","name":"mintPass","type":"bytes"}],"name":"gatedMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"gatekeeperEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getNumberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"isValidSignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatchSize","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicMint","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWLmint","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"presale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"amountToMint","type":"uint32"}],"name":"publicMint","outputs":[],"stateMutability":"payable","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":"remainingReserves","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"newBaseTokenURI","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":"uint32","name":"newMaxPublicMint","type":"uint32"}],"name":"setMaxPublicmint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"newMaxWLmint","type":"uint32"}],"name":"setMaxWLmint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"newMaxBatchSize","type":"uint32"}],"name":"setNewMaxBatchSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newsignerAddress","type":"address"}],"name":"setSignerAddress","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":[],"name":"startTokenId","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":"switchGatekeeer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchPauseStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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"},{"inputs":[{"internalType":"uint32","name":"amountToMint","type":"uint32"},{"internalType":"bytes","name":"mintPass","type":"bytes"}],"name":"whitelistMinting","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
601380546001600160a01b0319167005000000050000000500000064000015b3179055661f438daa0600006014556015805462ffffff191662010001179055610100604052738de469d08bb580ab4355255929ade18965e5c2ab608090815272d0bc9a3de7577b0b9f9663e7bafb1e72bc997260a05273571bf2d691de261a92f489a6f5b45766640f79ba60c052736492e91f192446c7ab77f02104dc92162f985c5260e052620000b5906017906004620008ea565b5060408051608081018252603c815260196020820152600a9181019190915260056060820152620000eb90601890600462000954565b50348015620000f957600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb6600160178054806020026020016040519081016040528092919081815260200182805480156200016957602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116200014a575b50505050506018805480602002602001604051908101604052809291908181526020018280548015620001bc57602002820191906000526020600020905b815481526020019060010190808311620001a7575b50505050507389c414614a488b929d081367b1b9a31bb1e043696040518060400160405280601081526020016f46697665446561646c79526562656c7360801b8152506040518060400160405280601081526020016f46697665446561646c79526562656c7360801b815250816002908162000239919062000a53565b50600362000248828262000a53565b50506001600055506200025b336200052f565b600980546001600160a01b0319166001600160a01b03929092169190911790558051825114620002ed5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620003405760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620002e4565b60005b8251811015620003ac576200039783828151811062000366576200036662000b1f565b602002602001015183838151811062000383576200038362000b1f565b60200260200101516200058160201b60201c565b80620003a38162000b4b565b91505062000343565b5050506daaeb6d7670e522a718067333cd4e3b15620004f45780156200044257604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200042357600080fd5b505af115801562000438573d6000803e3d6000fd5b50505050620004f4565b6001600160a01b03821615620004935760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000408565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620004da57600080fd5b505af1158015620004ef573d6000803e3d6000fd5b505050505b50620005059050336102ee6200076f565b62000529604051806060016040528060368152602001620046656036913962000870565b62000b83565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620005ee5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620002e4565b60008111620006405760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620002e4565b6001600160a01b0382166000908152600c602052604090205415620006bc5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620002e4565b600e8054600181019091557fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319166001600160a01b0384169081179091556000908152600c60205260409020819055600a546200072690829062000b67565b600a55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b6127106001600160601b0382161115620007df5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401620002e4565b6001600160a01b038216620008375760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620002e4565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217601155565b6200087a6200088c565b601662000888828262000a53565b5050565b6008546001600160a01b03163314620008e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620002e4565b565b82805482825590600052602060002090810192821562000942579160200282015b828111156200094257825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200090b565b506200095092915062000997565b5090565b82805482825590600052602060002090810192821562000942579160200282015b8281111562000942578251829060ff1690559160200191906001019062000975565b5b8082111562000950576000815560010162000998565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620009d957607f821691505b602082108103620009fa57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000a4e57600081815260208120601f850160051c8101602086101562000a295750805b601f850160051c820191505b8181101562000a4a5782815560010162000a35565b5050505b505050565b81516001600160401b0381111562000a6f5762000a6f620009ae565b62000a878162000a808454620009c4565b8462000a00565b602080601f83116001811462000abf576000841562000aa65750858301515b600019600386901b1c1916600185901b17855562000a4a565b600085815260208120601f198616915b8281101562000af05788860151825594840194600190910190840162000acf565b508582101562000b0f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820162000b605762000b6062000b35565b5060010190565b8082018082111562000b7d5762000b7d62000b35565b92915050565b613ad28062000b936000396000f3fe6080604052600436106103b15760003560e01c80638a59a7fd116101e7578063c87b56dd1161010d578063e985e9c5116100a0578063f2fde38b1161006f578063f2fde38b14610bb2578063f3d474cb14610bd2578063f4a0a52814610bf2578063fdea8e0b14610c1257600080fd5b8063e985e9c514610b16578063eaec253214610b5f578063ef3468b914610b7f578063f151d79114610b9f57600080fd5b8063d6bf8eeb116100dc578063d6bf8eeb14610a96578063d79779b214610ab6578063e33b7de314610aec578063e6798baa14610b0157600080fd5b8063c87b56dd146109ff578063cabadaa014610a1f578063ce7c2ac214610a43578063d5abeb0114610a7957600080fd5b8063a22cb46511610185578063aec4167411610154578063aec416741461097f578063b88d4fde1461099f578063c23dc68f146109b2578063c45ac050146109df57600080fd5b8063a22cb46514610915578063a3f8eace14610935578063a43be57b14610955578063aa8a31fb1461096a57600080fd5b806395d89b41116101c157806395d89b411461088a5780639852595c1461089f57806399a2557a146108d55780639e69787f146108f557600080fd5b80638a59a7fd1461082c5780638b83209b1461084c5780638da5cb5b1461086c57600080fd5b80632df2726f116102d75780635c975abb1161026a5780636817c76c116102395780636817c76c146107b457806370a08231146107ca578063715018a6146107ea5780638462151c146107ff57600080fd5b80635c975abb1461073e57806361d6a4ce1461075d5780636352211e14610781578063651b1817146107a157600080fd5b806342842e0e116102a657806342842e0e146106be57806348b75044146106d157806355f804b3146106f15780635bbb21771461071157600080fd5b80632df2726f146106215780633a98ef3914610641578063406072a91461065657806341f434341461069c57600080fd5b80630d1b64e31161034f57806320c13b0b1161031e57806320c13b0b1461058b57806323b872dd146105ab5780632913daa0146105be5780632a55205a146105e257600080fd5b80630d1b64e3146104f85780631091d62c1461050b57806318160ddd14610544578063191655871461056b57600080fd5b806306fdde031161038b57806306fdde031461047657806307c55ec214610498578063081812fc146104ad578063095ea7b3146104e557600080fd5b806301ffc9a7146103ff57806304634d8d14610434578063046dc1661461045657600080fd5b366103fa577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561040b57600080fd5b5061041f61041a3660046130b2565b610c2c565b60405190151581526020015b60405180910390f35b34801561044057600080fd5b5061045461044f3660046130e4565b610c4c565b005b34801561046257600080fd5b50610454610471366004613129565b610c62565b34801561048257600080fd5b5061048b610c76565b60405161042b9190613196565b3480156104a457600080fd5b50610454610d08565b3480156104b957600080fd5b506104cd6104c83660046131a9565b610d2f565b6040516001600160a01b03909116815260200161042b565b6104546104f33660046131c2565b610d6a565b610454610506366004613202565b610d83565b34801561051757600080fd5b5060135461052f90600160601b900463ffffffff1681565b60405163ffffffff909116815260200161042b565b34801561055057600080fd5b5060015460005403600019015b60405190815260200161042b565b34801561057757600080fd5b50610454610586366004613129565b610eca565b34801561059757600080fd5b5061041f6105a6366004613331565b610fb1565b6104546105b9366004613395565b611060565b3480156105ca57600080fd5b5060135461052f90600160401b900463ffffffff1681565b3480156105ee57600080fd5b506106026105fd3660046133d6565b61108b565b604080516001600160a01b03909316835260208301919091520161042b565b34801561062d57600080fd5b5061045461063c3660046133f8565b611137565b34801561064d57600080fd5b50600a5461055d565b34801561066257600080fd5b5061055d61067136600461342d565b6001600160a01b03918216600090815260106020908152604080832093909416825291909152205490565b3480156106a857600080fd5b506104cd6daaeb6d7670e522a718067333cd4e81565b6104546106cc366004613395565b611209565b3480156106dd57600080fd5b506104546106ec36600461342d565b61122e565b3480156106fd57600080fd5b5061045461070c36600461345b565b61133f565b34801561071d57600080fd5b5061073161072c3660046134a4565b611353565b60405161042b9190613556565b34801561074a57600080fd5b5060155461041f90610100900460ff1681565b34801561076957600080fd5b5060135461052f90600160201b900463ffffffff1681565b34801561078d57600080fd5b506104cd61079c3660046131a9565b61139f565b6104546107af366004613202565b6113aa565b3480156107c057600080fd5b5061055d60145481565b3480156107d657600080fd5b5061055d6107e5366004613129565b6114ae565b3480156107f657600080fd5b506104546114f4565b34801561080b57600080fd5b5061081f61081a366004613129565b611508565b60405161042b9190613598565b34801561083857600080fd5b5061055d610847366004613129565b611593565b34801561085857600080fd5b506104cd6108673660046131a9565b61159e565b34801561087857600080fd5b506008546001600160a01b03166104cd565b34801561089657600080fd5b5061048b6115ce565b3480156108ab57600080fd5b5061055d6108ba366004613129565b6001600160a01b03166000908152600d602052604090205490565b3480156108e157600080fd5b5061081f6108f03660046135d0565b6115dd565b34801561090157600080fd5b50610454610910366004613605565b6116cd565b34801561092157600080fd5b5061045461093036600461362e565b61177d565b34801561094157600080fd5b5061055d610950366004613129565b611791565b34801561096157600080fd5b506104546117d9565b34801561097657600080fd5b50610454611842565b34801561098b57600080fd5b5061045461099a366004613605565b611867565b6104546109ad36600461365c565b6118f8565b3480156109be57600080fd5b506109d26109cd3660046131a9565b611925565b60405161042b91906136c8565b3480156109eb57600080fd5b5061055d6109fa36600461342d565b61197d565b348015610a0b57600080fd5b5061048b610a1a3660046131a9565b611a48565b348015610a2b57600080fd5b5060135461052f90600160801b900463ffffffff1681565b348015610a4f57600080fd5b5061055d610a5e366004613129565b6001600160a01b03166000908152600c602052604090205490565b348015610a8557600080fd5b5060135461052f9063ffffffff1681565b348015610aa257600080fd5b50610454610ab13660046136d6565b611b12565b348015610ac257600080fd5b5061055d610ad1366004613129565b6001600160a01b03166000908152600f602052604090205490565b348015610af857600080fd5b50600b5461055d565b348015610b0d57600080fd5b5061055d600181565b348015610b2257600080fd5b5061041f610b3136600461342d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b6b57600080fd5b50610454610b7a366004613605565b611cb3565b348015610b8b57600080fd5b50610454610b9a366004613605565b611ce1565b610454610bad366004613605565b611d0f565b348015610bbe57600080fd5b50610454610bcd366004613129565b611e1d565b348015610bde57600080fd5b5060155461041f9062010000900460ff1681565b348015610bfe57600080fd5b50610454610c0d3660046131a9565b611e93565b348015610c1e57600080fd5b5060155461041f9060ff1681565b6000610c3782611f09565b80610c465750610c4682611f57565b92915050565b610c54611f8c565b610c5e8282611fe6565b5050565b610c6a611f8c565b610c73816120e3565b50565b606060028054610c85906136f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb1906136f2565b8015610cfe5780601f10610cd357610100808354040283529160200191610cfe565b820191906000526020600020905b815481529060010190602001808311610ce157829003601f168201915b5050505050905090565b610d10611f8c565b6015805462ff0000198116620100009182900460ff1615909102179055565b6000610d3a82612180565b610d4e57610d4e6333d1c03960e21b6121b5565b506000908152600660205260409020546001600160a01b031690565b81610d74816121bf565b610d7e8383612278565b505050565b60155460ff1615610dc85760405162461bcd60e51b815260206004820152600a602482015269283932b9b0b6329037b760b11b60448201526064015b60405180910390fd5b60135463ffffffff600160801b9091048116908416610de633612284565b610df09190613742565b1115610e0e5760405162461bcd60e51b8152600401610dbf90613755565b6040516bffffffffffffffffffffffff193360601b166020820152657075626c696360d01b6034820152610e8490603a015b60408051601f198184030181526020601f860181900481028401810190925284835291908590859081908401838280828437600092019190915250610fb192505050565b610ec15760405162461bcd60e51b815260206004820152600e60248201526d57726f6e67206d696e745061737360901b6044820152606401610dbf565b610d7e836122ad565b6001600160a01b0381166000908152600c6020526040902054610eff5760405162461bcd60e51b8152600401610dbf9061378c565b6000610f0a82611791565b905080600003610f2c5760405162461bcd60e51b8152600401610dbf906137d2565b80600b6000828254610f3e9190613742565b90915550506001600160a01b0382166000908152600d60205260409020805482019055610f6b82826124a2565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b60008083604051602001610fc5919061381d565b60405160208183030381529060405280519060200120905060008160405160200161101c91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f1981840301815291905280516020909101206009549091506001600160a01b031661104d82866125bb565b6001600160a01b03161495945050505050565b826001600160a01b038116331461107a5761107a336121bf565b61108584848461263a565b50505050565b60008281526012602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111005750604080518082019091526011546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061111f906001600160601b031687613839565b6111299190613850565b915196919550909350505050565b61113f611f8c565b60135463ffffffff600160201b909104811690821611156111c85760405162461bcd60e51b815260206004820152603b60248201527f5468652072657175657374656420616d6f756e7420697320677265617465722060448201527f7468616e207468652072656d61696e696e6720726573657276657300000000006064820152608401610dbf565b6111d8828263ffffffff1661279f565b6013805463ffffffff600160201b8083048216949094031690920267ffffffff000000001990921691909117905550565b826001600160a01b038116331461122357611223336121bf565b61108584848461285e565b6001600160a01b0381166000908152600c60205260409020546112635760405162461bcd60e51b8152600401610dbf9061378c565b600061126f838361197d565b9050806000036112915760405162461bcd60e51b8152600401610dbf906137d2565b6001600160a01b0383166000908152600f6020526040812080548392906112b9908490613742565b90915550506001600160a01b0380841660009081526010602090815260408083209386168352929052208054820190556112f4838383612879565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b611347611f8c565b6016610c5e82826138c0565b60408051828152600583901b8082016020019092526060915b801561139757601f198082019186010135600061138882611925565b848401602001525061136c9050565b509392505050565b6000610c46826128cb565b60155460ff166113ec5760405162461bcd60e51b815260206004820152600d60248201526c50726573616c65206f7665722160981b6044820152606401610dbf565b6040516bffffffffffffffffffffffff193360601b1660208201526670726573616c6560c81b603482015261142390603b01610e40565b6114685760405162461bcd60e51b815260206004820152601660248201527515d85b1b195d081b9bdd081dda1a5d195b1a5cdd195960521b6044820152606401610dbf565b60135463ffffffff600160601b909104811690841661148633612284565b6114909190613742565b1115610ec15760405162461bcd60e51b8152600401610dbf90613755565b60006001600160a01b0382166114ce576114ce6323d3ad8160e21b6121b5565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6114fc611f8c565b6115066000612944565b565b60606000611515836114ae565b9050606060405190506001820160051b8101604052818152600080600061153a600190565b90505b84821461158857600061154f82612996565b9050604081015161157f5780511561156657805193505b87841860601b61157f57600183019250818360051b8601525b5060010161153d565b509195945050505050565b6000610c4682612284565b6000600e82815481106115b3576115b3613980565b6000918252602090912001546001600160a01b031692915050565b606060038054610c85906136f2565b60608183106115f6576115f6631960ccad60e11b6121b5565b600183101561160457600192505b600054808310611612578092505b6060600061161f876114ae565b858710908102915081156116c157818787031161163c5786860391505b60405192506001820160051b8301604052600061165888611925565b905060008160400151611669575080515b60005b6116758a612996565b925060408301516116a45782511561168c57825191505b8a821860601b6116a457600101600581901b86018a90525b60018a019950888a14806116b757508481145b1561166c57855250505b50909695505050505050565b6116d5611f8c565b60135463ffffffff600160401b9091048116908216036117525760405162461bcd60e51b815260206004820152603260248201527f6e65774d6178426174636853697a652063616e6e6f7420626520657175616c20604482015271746f207468652063757272656e74206f6e6560701b6064820152608401610dbf565b6013805463ffffffff909216600160401b026bffffffff000000000000000019909216919091179055565b81611787816121bf565b610d7e83836129d2565b60008061179d600b5490565b6117a79047613742565b90506117d283826117cd866001600160a01b03166000908152600d602052604090205490565b612a3e565b9392505050565b6117e1611f8c565b60155460ff1661182b5760405162461bcd60e51b8152602060048201526015602482015274141c995cd85b1948185b1c9958591e48195b991959605a1b6044820152606401610dbf565b662386f26fc100006014556015805460ff19169055565b61184a611f8c565b6015805461ff001981166101009182900460ff1615909102179055565b61186f611f8c565b60135463ffffffff600160201b9091048116908216106118d15760405162461bcd60e51b815260206004820152601d60248201527f526573657665732063616e206f6e6c79206265206465637265617365640000006044820152606401610dbf565b6013805463ffffffff909216600160201b0267ffffffff0000000019909216919091179055565b836001600160a01b038116331461191257611912336121bf565b61191e85858585612a7c565b5050505050565b60408051608081018252600080825260208201819052918101829052606081019190915260018210611978576000548210156119785761196482612996565b9050806040015161197857610c4682612ab7565b919050565b6001600160a01b0382166000908152600f602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa1580156119dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a009190613996565b611a0a9190613742565b6001600160a01b03808616600090815260106020908152604080832093881683529290522054909150611a409084908390612a3e565b949350505050565b6060611a5382612180565b611ab75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610dbf565b6000611ac1612aec565b90506000815111611ae157604051806020016040528060008152506117d2565b80611aeb84612afb565b604051602001611afc9291906139af565b6040516020818303038152906040529392505050565b611b1a611f8c565b60135463ffffffff90811690831610611b815760405162461bcd60e51b8152602060048201526024808201527f4d6178696d756d20737570706c792063616e206f6e6c79206265206465637265604482015263185cd95960e21b6064820152608401610dbf565b60135463ffffffff600160201b90910481169082161115611be45760405162461bcd60e51b815260206004820152601b60248201527f526573657665732063616e6e6f7420626520696e6372656173656400000000006044820152606401610dbf565b6001546000540360001901611bff9063ffffffff8316613742565b8263ffffffff161015611c845760405162461bcd60e51b815260206004820152604160248201527f4d6178696d756d20737570706c792063616e6e6f74206265206c6f776572207460448201527f68616e207468652063757272656e7420737570706c79202b20726573657276656064820152607360f81b608482015260a401610dbf565b6013805463ffffffff928316600160201b0267ffffffffffffffff199091169290931691909117919091179055565b611cbb611f8c565b6013805463ffffffff909216600160601b0263ffffffff60601b19909216919091179055565b611ce9611f8c565b6013805463ffffffff909216600160801b0263ffffffff60801b19909216919091179055565b60155460ff1615611d4f5760405162461bcd60e51b815260206004820152600a602482015269283932b9b0b6329037b760b11b6044820152606401610dbf565b60155462010000900460ff1615611dce5760405162461bcd60e51b815260206004820152603860248201527f446972656374206d696e74696e67206973206e6f7420616c6c6f77656420776860448201527f696c6520676174656b656570657220697320656e61626c6500000000000000006064820152608401610dbf565b60135463ffffffff600160801b9091048116908216611dec33612284565b611df69190613742565b1115611e145760405162461bcd60e51b8152600401610dbf90613755565b610c73816122ad565b611e25611f8c565b6001600160a01b038116611e8a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dbf565b610c7381612944565b611e9b611f8c565b6014548103611f045760405162461bcd60e51b815260206004820152602f60248201527f6e65774d696e7450726963652063616e6e6f7420626520657175616c20746f2060448201526e7468652063757272656e74206f6e6560881b6064820152608401610dbf565b601455565b60006301ffc9a760e01b6001600160e01b031983161480611f3a57506380ac58cd60e01b6001600160e01b03198316145b80610c465750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b1480610c4657506301ffc9a760e01b6001600160e01b0319831614610c46565b6008546001600160a01b031633146115065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b6127106001600160601b03821611156120545760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610dbf565b6001600160a01b0382166120aa5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610dbf565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217601155565b6009546001600160a01b039081169082160361215e5760405162461bcd60e51b815260206004820152603460248201527f4e6577205369676e657220416464726573732063616e6e6f74206265207468656044820152732073616d652061732063757272656e74206f6e6560601b6064820152608401610dbf565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600081600111158015612194575060005482105b8015610c46575050600090815260046020526040902054600160e01b161590565b8060005260046000fd5b6daaeb6d7670e522a718067333cd4e3b15610c7357604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561222c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061225091906139ee565b610c7357604051633b79c77360e21b81526001600160a01b0382166004820152602401610dbf565b610c5e82826001612b8e565b6001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b601554610100900460ff16156122f75760405162461bcd60e51b815260206004820152600f60248201526e10dbdb9d1c9858dd081c185d5cd959608a1b6044820152606401610dbf565b3233146123385760405162461bcd60e51b815260206004820152600f60248201526e21b0b63632b9103737ba103ab9b2b960891b6044820152606401610dbf565b8063ffffffff1660145461234c9190613839565b34101561239b5760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374205061796d656e7420416d6f756e7400000000000000006044820152606401610dbf565b6013546123b79063ffffffff600160201b820481169116613a0b565b63ffffffff168163ffffffff166123d76001546000546000199190030190565b6123e19190613742565b111561242f5760405162461bcd60e51b815260206004820152601b60248201527f52657175657374207375706572696f72206d617820537570706c7900000000006044820152606401610dbf565b60135463ffffffff600160401b909104811690821611156124925760405162461bcd60e51b815260206004820152601960248201527f5175616e7469747920746f206d696e7420746f6f2068696768000000000000006044820152606401610dbf565b610c73338263ffffffff1661279f565b804710156124f25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610dbf565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461253f576040519150601f19603f3d011682016040523d82523d6000602084013e612544565b606091505b5050905080610d7e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610dbf565b6000806000806125ca85612c31565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015612625573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b6000612645826128cb565b6001600160a01b03948516949091508116841461266b5761266b62a1148160e81b6121b5565b60008281526006602052604090208054338082146001600160a01b038816909114176126af5761269b8633610b31565b6126af576126af632ce44b5f60e11b6121b5565b80156126ba57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361274c5760018401600081815260046020526040812054900361274a57600054811461274a5760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361279657612796633a954ecd60e21b6121b5565b50505050505050565b60008054908290036127bb576127bb63b562e8dd60e01b6121b5565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361281957612819622e076360e81b6121b5565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a481816001019150810361281e575060005550505050565b610d7e838383604051806020016040528060008152506118f8565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d7e908490612ca5565b600081600111612934575060008181526004602052604081205490600160e01b82169003612934578060000361197857600054821061291457612914636f96cda160e11b6121b5565b5b5060001901600081815260046020526040902054801561291557919050565b611978636f96cda160e11b6121b5565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610c4690612d77565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b0384166000908152600c602052604081205490918391612a689086613839565b612a729190613850565b611a409190613a2f565b612a87848484611060565b6001600160a01b0383163b1561108557612aa384848484612dbf565b611085576110856368d2bf6b60e11b6121b5565b604080516080810182526000808252602082018190529181018290526060810191909152610c46612ae7836128cb565b612d77565b606060168054610c85906136f2565b60606000612b0883612ea1565b600101905060008167ffffffffffffffff811115612b2857612b28613285565b6040519080825280601f01601f191660200182016040528015612b52576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612b5c57509392505050565b6000612b998361139f565b9050818015612bb15750336001600160a01b03821614155b15612bd457612bc08133610b31565b612bd457612bd46367d9dca160e11b6121b5565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b60008060008351604114612c875760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610dbf565b50505060208101516040820151606090920151909260009190911a90565b6000612cfa826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612f799092919063ffffffff16565b805190915015610d7e5780806020019051810190612d1891906139ee565b610d7e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610dbf565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612df4903390899088908890600401613a42565b6020604051808303816000875af1925050508015612e2f575060408051601f3d908101601f19168201909252612e2c91810190613a7f565b60015b612e84573d808015612e5d576040519150601f19603f3d011682016040523d82523d6000602084013e612e62565b606091505b508051600003612e7c57612e7c6368d2bf6b60e11b6121b5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612ee05772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612f0c576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612f2a57662386f26fc10000830492506010015b6305f5e1008310612f42576305f5e100830492506008015b6127108310612f5657612710830492506004015b60648310612f68576064830492506002015b600a8310610c465760010192915050565b6060611a40848460008585600080866001600160a01b03168587604051612fa0919061381d565b60006040518083038185875af1925050503d8060008114612fdd576040519150601f19603f3d011682016040523d82523d6000602084013e612fe2565b606091505b5091509150612ff387838387612ffe565b979650505050505050565b6060831561306d578251600003613066576001600160a01b0385163b6130665760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610dbf565b5081611a40565b611a4083838151156130825781518083602001fd5b8060405162461bcd60e51b8152600401610dbf9190613196565b6001600160e01b031981168114610c7357600080fd5b6000602082840312156130c457600080fd5b81356117d28161309c565b6001600160a01b0381168114610c7357600080fd5b600080604083850312156130f757600080fd5b8235613102816130cf565b915060208301356001600160601b038116811461311e57600080fd5b809150509250929050565b60006020828403121561313b57600080fd5b81356117d2816130cf565b60005b83811015613161578181015183820152602001613149565b50506000910152565b60008151808452613182816020860160208601613146565b601f01601f19169290920160200192915050565b6020815260006117d2602083018461316a565b6000602082840312156131bb57600080fd5b5035919050565b600080604083850312156131d557600080fd5b82356131e0816130cf565b946020939093013593505050565b803563ffffffff8116811461197857600080fd5b60008060006040848603121561321757600080fd5b613220846131ee565b9250602084013567ffffffffffffffff8082111561323d57600080fd5b818601915086601f83011261325157600080fd5b81358181111561326057600080fd5b87602082850101111561327257600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156132b6576132b6613285565b604051601f8501601f19908116603f011681019082821181831017156132de576132de613285565b816040528093508581528686860111156132f757600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261332257600080fd5b6117d28383356020850161329b565b6000806040838503121561334457600080fd5b823567ffffffffffffffff8082111561335c57600080fd5b61336886838701613311565b9350602085013591508082111561337e57600080fd5b5061338b85828601613311565b9150509250929050565b6000806000606084860312156133aa57600080fd5b83356133b5816130cf565b925060208401356133c5816130cf565b929592945050506040919091013590565b600080604083850312156133e957600080fd5b50508035926020909101359150565b6000806040838503121561340b57600080fd5b8235613416816130cf565b9150613424602084016131ee565b90509250929050565b6000806040838503121561344057600080fd5b823561344b816130cf565b9150602083013561311e816130cf565b60006020828403121561346d57600080fd5b813567ffffffffffffffff81111561348457600080fd5b8201601f8101841361349557600080fd5b611a408482356020840161329b565b600080602083850312156134b757600080fd5b823567ffffffffffffffff808211156134cf57600080fd5b818501915085601f8301126134e357600080fd5b8135818111156134f257600080fd5b8660208260051b850101111561350757600080fd5b60209290920196919550909350505050565b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b818110156116c157613585838551613519565b9284019260809290920191600101613572565b6020808252825182820181905260009190848201906040850190845b818110156116c1578351835292840192918401916001016135b4565b6000806000606084860312156135e557600080fd5b83356135f0816130cf565b95602085013595506040909401359392505050565b60006020828403121561361757600080fd5b6117d2826131ee565b8015158114610c7357600080fd5b6000806040838503121561364157600080fd5b823561364c816130cf565b9150602083013561311e81613620565b6000806000806080858703121561367257600080fd5b843561367d816130cf565b9350602085013561368d816130cf565b925060408501359150606085013567ffffffffffffffff8111156136b057600080fd5b6136bc87828801613311565b91505092959194509250565b60808101610c468284613519565b600080604083850312156136e957600080fd5b613416836131ee565b600181811c9082168061370657607f821691505b60208210810361372657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c4657610c4661372c565b60208082526019908201527f4c696d6974207065722061646472657373205265616368656400000000000000604082015260600190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6000825161382f818460208701613146565b9190910192915050565b8082028115828204841417610c4657610c4661372c565b60008261386d57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610d7e57600081815260208120601f850160051c810160208610156138995750805b601f850160051c820191505b818110156138b8578281556001016138a5565b505050505050565b815167ffffffffffffffff8111156138da576138da613285565b6138ee816138e884546136f2565b84613872565b602080601f831160018114613923576000841561390b5750858301515b600019600386901b1c1916600185901b1785556138b8565b600085815260208120601f198616915b8281101561395257888601518255948401946001909101908401613933565b50858210156139705787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156139a857600080fd5b5051919050565b600083516139c1818460208801613146565b8351908301906139d5818360208801613146565b64173539b7b760d91b9101908152600501949350505050565b600060208284031215613a0057600080fd5b81516117d281613620565b63ffffffff828116828216039080821115613a2857613a2861372c565b5092915050565b81810381811115610c4657610c4661372c565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a759083018461316a565b9695505050505050565b600060208284031215613a9157600080fd5b81516117d28161309c56fea2646970667358221220be2d1dc3527a4ab2e380f754ffde9902e5e94cf411a462351c805cc814fef90964736f6c63430008110033697066733a2f2f516d5a3131617a7757504b4d5359373352594b75636f43324c785473595154566e624456694c454d684d327439712f
Deployed Bytecode
0x6080604052600436106103b15760003560e01c80638a59a7fd116101e7578063c87b56dd1161010d578063e985e9c5116100a0578063f2fde38b1161006f578063f2fde38b14610bb2578063f3d474cb14610bd2578063f4a0a52814610bf2578063fdea8e0b14610c1257600080fd5b8063e985e9c514610b16578063eaec253214610b5f578063ef3468b914610b7f578063f151d79114610b9f57600080fd5b8063d6bf8eeb116100dc578063d6bf8eeb14610a96578063d79779b214610ab6578063e33b7de314610aec578063e6798baa14610b0157600080fd5b8063c87b56dd146109ff578063cabadaa014610a1f578063ce7c2ac214610a43578063d5abeb0114610a7957600080fd5b8063a22cb46511610185578063aec4167411610154578063aec416741461097f578063b88d4fde1461099f578063c23dc68f146109b2578063c45ac050146109df57600080fd5b8063a22cb46514610915578063a3f8eace14610935578063a43be57b14610955578063aa8a31fb1461096a57600080fd5b806395d89b41116101c157806395d89b411461088a5780639852595c1461089f57806399a2557a146108d55780639e69787f146108f557600080fd5b80638a59a7fd1461082c5780638b83209b1461084c5780638da5cb5b1461086c57600080fd5b80632df2726f116102d75780635c975abb1161026a5780636817c76c116102395780636817c76c146107b457806370a08231146107ca578063715018a6146107ea5780638462151c146107ff57600080fd5b80635c975abb1461073e57806361d6a4ce1461075d5780636352211e14610781578063651b1817146107a157600080fd5b806342842e0e116102a657806342842e0e146106be57806348b75044146106d157806355f804b3146106f15780635bbb21771461071157600080fd5b80632df2726f146106215780633a98ef3914610641578063406072a91461065657806341f434341461069c57600080fd5b80630d1b64e31161034f57806320c13b0b1161031e57806320c13b0b1461058b57806323b872dd146105ab5780632913daa0146105be5780632a55205a146105e257600080fd5b80630d1b64e3146104f85780631091d62c1461050b57806318160ddd14610544578063191655871461056b57600080fd5b806306fdde031161038b57806306fdde031461047657806307c55ec214610498578063081812fc146104ad578063095ea7b3146104e557600080fd5b806301ffc9a7146103ff57806304634d8d14610434578063046dc1661461045657600080fd5b366103fa577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561040b57600080fd5b5061041f61041a3660046130b2565b610c2c565b60405190151581526020015b60405180910390f35b34801561044057600080fd5b5061045461044f3660046130e4565b610c4c565b005b34801561046257600080fd5b50610454610471366004613129565b610c62565b34801561048257600080fd5b5061048b610c76565b60405161042b9190613196565b3480156104a457600080fd5b50610454610d08565b3480156104b957600080fd5b506104cd6104c83660046131a9565b610d2f565b6040516001600160a01b03909116815260200161042b565b6104546104f33660046131c2565b610d6a565b610454610506366004613202565b610d83565b34801561051757600080fd5b5060135461052f90600160601b900463ffffffff1681565b60405163ffffffff909116815260200161042b565b34801561055057600080fd5b5060015460005403600019015b60405190815260200161042b565b34801561057757600080fd5b50610454610586366004613129565b610eca565b34801561059757600080fd5b5061041f6105a6366004613331565b610fb1565b6104546105b9366004613395565b611060565b3480156105ca57600080fd5b5060135461052f90600160401b900463ffffffff1681565b3480156105ee57600080fd5b506106026105fd3660046133d6565b61108b565b604080516001600160a01b03909316835260208301919091520161042b565b34801561062d57600080fd5b5061045461063c3660046133f8565b611137565b34801561064d57600080fd5b50600a5461055d565b34801561066257600080fd5b5061055d61067136600461342d565b6001600160a01b03918216600090815260106020908152604080832093909416825291909152205490565b3480156106a857600080fd5b506104cd6daaeb6d7670e522a718067333cd4e81565b6104546106cc366004613395565b611209565b3480156106dd57600080fd5b506104546106ec36600461342d565b61122e565b3480156106fd57600080fd5b5061045461070c36600461345b565b61133f565b34801561071d57600080fd5b5061073161072c3660046134a4565b611353565b60405161042b9190613556565b34801561074a57600080fd5b5060155461041f90610100900460ff1681565b34801561076957600080fd5b5060135461052f90600160201b900463ffffffff1681565b34801561078d57600080fd5b506104cd61079c3660046131a9565b61139f565b6104546107af366004613202565b6113aa565b3480156107c057600080fd5b5061055d60145481565b3480156107d657600080fd5b5061055d6107e5366004613129565b6114ae565b3480156107f657600080fd5b506104546114f4565b34801561080b57600080fd5b5061081f61081a366004613129565b611508565b60405161042b9190613598565b34801561083857600080fd5b5061055d610847366004613129565b611593565b34801561085857600080fd5b506104cd6108673660046131a9565b61159e565b34801561087857600080fd5b506008546001600160a01b03166104cd565b34801561089657600080fd5b5061048b6115ce565b3480156108ab57600080fd5b5061055d6108ba366004613129565b6001600160a01b03166000908152600d602052604090205490565b3480156108e157600080fd5b5061081f6108f03660046135d0565b6115dd565b34801561090157600080fd5b50610454610910366004613605565b6116cd565b34801561092157600080fd5b5061045461093036600461362e565b61177d565b34801561094157600080fd5b5061055d610950366004613129565b611791565b34801561096157600080fd5b506104546117d9565b34801561097657600080fd5b50610454611842565b34801561098b57600080fd5b5061045461099a366004613605565b611867565b6104546109ad36600461365c565b6118f8565b3480156109be57600080fd5b506109d26109cd3660046131a9565b611925565b60405161042b91906136c8565b3480156109eb57600080fd5b5061055d6109fa36600461342d565b61197d565b348015610a0b57600080fd5b5061048b610a1a3660046131a9565b611a48565b348015610a2b57600080fd5b5060135461052f90600160801b900463ffffffff1681565b348015610a4f57600080fd5b5061055d610a5e366004613129565b6001600160a01b03166000908152600c602052604090205490565b348015610a8557600080fd5b5060135461052f9063ffffffff1681565b348015610aa257600080fd5b50610454610ab13660046136d6565b611b12565b348015610ac257600080fd5b5061055d610ad1366004613129565b6001600160a01b03166000908152600f602052604090205490565b348015610af857600080fd5b50600b5461055d565b348015610b0d57600080fd5b5061055d600181565b348015610b2257600080fd5b5061041f610b3136600461342d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b6b57600080fd5b50610454610b7a366004613605565b611cb3565b348015610b8b57600080fd5b50610454610b9a366004613605565b611ce1565b610454610bad366004613605565b611d0f565b348015610bbe57600080fd5b50610454610bcd366004613129565b611e1d565b348015610bde57600080fd5b5060155461041f9062010000900460ff1681565b348015610bfe57600080fd5b50610454610c0d3660046131a9565b611e93565b348015610c1e57600080fd5b5060155461041f9060ff1681565b6000610c3782611f09565b80610c465750610c4682611f57565b92915050565b610c54611f8c565b610c5e8282611fe6565b5050565b610c6a611f8c565b610c73816120e3565b50565b606060028054610c85906136f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb1906136f2565b8015610cfe5780601f10610cd357610100808354040283529160200191610cfe565b820191906000526020600020905b815481529060010190602001808311610ce157829003601f168201915b5050505050905090565b610d10611f8c565b6015805462ff0000198116620100009182900460ff1615909102179055565b6000610d3a82612180565b610d4e57610d4e6333d1c03960e21b6121b5565b506000908152600660205260409020546001600160a01b031690565b81610d74816121bf565b610d7e8383612278565b505050565b60155460ff1615610dc85760405162461bcd60e51b815260206004820152600a602482015269283932b9b0b6329037b760b11b60448201526064015b60405180910390fd5b60135463ffffffff600160801b9091048116908416610de633612284565b610df09190613742565b1115610e0e5760405162461bcd60e51b8152600401610dbf90613755565b6040516bffffffffffffffffffffffff193360601b166020820152657075626c696360d01b6034820152610e8490603a015b60408051601f198184030181526020601f860181900481028401810190925284835291908590859081908401838280828437600092019190915250610fb192505050565b610ec15760405162461bcd60e51b815260206004820152600e60248201526d57726f6e67206d696e745061737360901b6044820152606401610dbf565b610d7e836122ad565b6001600160a01b0381166000908152600c6020526040902054610eff5760405162461bcd60e51b8152600401610dbf9061378c565b6000610f0a82611791565b905080600003610f2c5760405162461bcd60e51b8152600401610dbf906137d2565b80600b6000828254610f3e9190613742565b90915550506001600160a01b0382166000908152600d60205260409020805482019055610f6b82826124a2565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b60008083604051602001610fc5919061381d565b60405160208183030381529060405280519060200120905060008160405160200161101c91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f1981840301815291905280516020909101206009549091506001600160a01b031661104d82866125bb565b6001600160a01b03161495945050505050565b826001600160a01b038116331461107a5761107a336121bf565b61108584848461263a565b50505050565b60008281526012602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111005750604080518082019091526011546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061111f906001600160601b031687613839565b6111299190613850565b915196919550909350505050565b61113f611f8c565b60135463ffffffff600160201b909104811690821611156111c85760405162461bcd60e51b815260206004820152603b60248201527f5468652072657175657374656420616d6f756e7420697320677265617465722060448201527f7468616e207468652072656d61696e696e6720726573657276657300000000006064820152608401610dbf565b6111d8828263ffffffff1661279f565b6013805463ffffffff600160201b8083048216949094031690920267ffffffff000000001990921691909117905550565b826001600160a01b038116331461122357611223336121bf565b61108584848461285e565b6001600160a01b0381166000908152600c60205260409020546112635760405162461bcd60e51b8152600401610dbf9061378c565b600061126f838361197d565b9050806000036112915760405162461bcd60e51b8152600401610dbf906137d2565b6001600160a01b0383166000908152600f6020526040812080548392906112b9908490613742565b90915550506001600160a01b0380841660009081526010602090815260408083209386168352929052208054820190556112f4838383612879565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b611347611f8c565b6016610c5e82826138c0565b60408051828152600583901b8082016020019092526060915b801561139757601f198082019186010135600061138882611925565b848401602001525061136c9050565b509392505050565b6000610c46826128cb565b60155460ff166113ec5760405162461bcd60e51b815260206004820152600d60248201526c50726573616c65206f7665722160981b6044820152606401610dbf565b6040516bffffffffffffffffffffffff193360601b1660208201526670726573616c6560c81b603482015261142390603b01610e40565b6114685760405162461bcd60e51b815260206004820152601660248201527515d85b1b195d081b9bdd081dda1a5d195b1a5cdd195960521b6044820152606401610dbf565b60135463ffffffff600160601b909104811690841661148633612284565b6114909190613742565b1115610ec15760405162461bcd60e51b8152600401610dbf90613755565b60006001600160a01b0382166114ce576114ce6323d3ad8160e21b6121b5565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6114fc611f8c565b6115066000612944565b565b60606000611515836114ae565b9050606060405190506001820160051b8101604052818152600080600061153a600190565b90505b84821461158857600061154f82612996565b9050604081015161157f5780511561156657805193505b87841860601b61157f57600183019250818360051b8601525b5060010161153d565b509195945050505050565b6000610c4682612284565b6000600e82815481106115b3576115b3613980565b6000918252602090912001546001600160a01b031692915050565b606060038054610c85906136f2565b60608183106115f6576115f6631960ccad60e11b6121b5565b600183101561160457600192505b600054808310611612578092505b6060600061161f876114ae565b858710908102915081156116c157818787031161163c5786860391505b60405192506001820160051b8301604052600061165888611925565b905060008160400151611669575080515b60005b6116758a612996565b925060408301516116a45782511561168c57825191505b8a821860601b6116a457600101600581901b86018a90525b60018a019950888a14806116b757508481145b1561166c57855250505b50909695505050505050565b6116d5611f8c565b60135463ffffffff600160401b9091048116908216036117525760405162461bcd60e51b815260206004820152603260248201527f6e65774d6178426174636853697a652063616e6e6f7420626520657175616c20604482015271746f207468652063757272656e74206f6e6560701b6064820152608401610dbf565b6013805463ffffffff909216600160401b026bffffffff000000000000000019909216919091179055565b81611787816121bf565b610d7e83836129d2565b60008061179d600b5490565b6117a79047613742565b90506117d283826117cd866001600160a01b03166000908152600d602052604090205490565b612a3e565b9392505050565b6117e1611f8c565b60155460ff1661182b5760405162461bcd60e51b8152602060048201526015602482015274141c995cd85b1948185b1c9958591e48195b991959605a1b6044820152606401610dbf565b662386f26fc100006014556015805460ff19169055565b61184a611f8c565b6015805461ff001981166101009182900460ff1615909102179055565b61186f611f8c565b60135463ffffffff600160201b9091048116908216106118d15760405162461bcd60e51b815260206004820152601d60248201527f526573657665732063616e206f6e6c79206265206465637265617365640000006044820152606401610dbf565b6013805463ffffffff909216600160201b0267ffffffff0000000019909216919091179055565b836001600160a01b038116331461191257611912336121bf565b61191e85858585612a7c565b5050505050565b60408051608081018252600080825260208201819052918101829052606081019190915260018210611978576000548210156119785761196482612996565b9050806040015161197857610c4682612ab7565b919050565b6001600160a01b0382166000908152600f602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa1580156119dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a009190613996565b611a0a9190613742565b6001600160a01b03808616600090815260106020908152604080832093881683529290522054909150611a409084908390612a3e565b949350505050565b6060611a5382612180565b611ab75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610dbf565b6000611ac1612aec565b90506000815111611ae157604051806020016040528060008152506117d2565b80611aeb84612afb565b604051602001611afc9291906139af565b6040516020818303038152906040529392505050565b611b1a611f8c565b60135463ffffffff90811690831610611b815760405162461bcd60e51b8152602060048201526024808201527f4d6178696d756d20737570706c792063616e206f6e6c79206265206465637265604482015263185cd95960e21b6064820152608401610dbf565b60135463ffffffff600160201b90910481169082161115611be45760405162461bcd60e51b815260206004820152601b60248201527f526573657665732063616e6e6f7420626520696e6372656173656400000000006044820152606401610dbf565b6001546000540360001901611bff9063ffffffff8316613742565b8263ffffffff161015611c845760405162461bcd60e51b815260206004820152604160248201527f4d6178696d756d20737570706c792063616e6e6f74206265206c6f776572207460448201527f68616e207468652063757272656e7420737570706c79202b20726573657276656064820152607360f81b608482015260a401610dbf565b6013805463ffffffff928316600160201b0267ffffffffffffffff199091169290931691909117919091179055565b611cbb611f8c565b6013805463ffffffff909216600160601b0263ffffffff60601b19909216919091179055565b611ce9611f8c565b6013805463ffffffff909216600160801b0263ffffffff60801b19909216919091179055565b60155460ff1615611d4f5760405162461bcd60e51b815260206004820152600a602482015269283932b9b0b6329037b760b11b6044820152606401610dbf565b60155462010000900460ff1615611dce5760405162461bcd60e51b815260206004820152603860248201527f446972656374206d696e74696e67206973206e6f7420616c6c6f77656420776860448201527f696c6520676174656b656570657220697320656e61626c6500000000000000006064820152608401610dbf565b60135463ffffffff600160801b9091048116908216611dec33612284565b611df69190613742565b1115611e145760405162461bcd60e51b8152600401610dbf90613755565b610c73816122ad565b611e25611f8c565b6001600160a01b038116611e8a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dbf565b610c7381612944565b611e9b611f8c565b6014548103611f045760405162461bcd60e51b815260206004820152602f60248201527f6e65774d696e7450726963652063616e6e6f7420626520657175616c20746f2060448201526e7468652063757272656e74206f6e6560881b6064820152608401610dbf565b601455565b60006301ffc9a760e01b6001600160e01b031983161480611f3a57506380ac58cd60e01b6001600160e01b03198316145b80610c465750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b1480610c4657506301ffc9a760e01b6001600160e01b0319831614610c46565b6008546001600160a01b031633146115065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b6127106001600160601b03821611156120545760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610dbf565b6001600160a01b0382166120aa5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610dbf565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217601155565b6009546001600160a01b039081169082160361215e5760405162461bcd60e51b815260206004820152603460248201527f4e6577205369676e657220416464726573732063616e6e6f74206265207468656044820152732073616d652061732063757272656e74206f6e6560601b6064820152608401610dbf565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600081600111158015612194575060005482105b8015610c46575050600090815260046020526040902054600160e01b161590565b8060005260046000fd5b6daaeb6d7670e522a718067333cd4e3b15610c7357604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561222c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061225091906139ee565b610c7357604051633b79c77360e21b81526001600160a01b0382166004820152602401610dbf565b610c5e82826001612b8e565b6001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b601554610100900460ff16156122f75760405162461bcd60e51b815260206004820152600f60248201526e10dbdb9d1c9858dd081c185d5cd959608a1b6044820152606401610dbf565b3233146123385760405162461bcd60e51b815260206004820152600f60248201526e21b0b63632b9103737ba103ab9b2b960891b6044820152606401610dbf565b8063ffffffff1660145461234c9190613839565b34101561239b5760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374205061796d656e7420416d6f756e7400000000000000006044820152606401610dbf565b6013546123b79063ffffffff600160201b820481169116613a0b565b63ffffffff168163ffffffff166123d76001546000546000199190030190565b6123e19190613742565b111561242f5760405162461bcd60e51b815260206004820152601b60248201527f52657175657374207375706572696f72206d617820537570706c7900000000006044820152606401610dbf565b60135463ffffffff600160401b909104811690821611156124925760405162461bcd60e51b815260206004820152601960248201527f5175616e7469747920746f206d696e7420746f6f2068696768000000000000006044820152606401610dbf565b610c73338263ffffffff1661279f565b804710156124f25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610dbf565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461253f576040519150601f19603f3d011682016040523d82523d6000602084013e612544565b606091505b5050905080610d7e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610dbf565b6000806000806125ca85612c31565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015612625573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b6000612645826128cb565b6001600160a01b03948516949091508116841461266b5761266b62a1148160e81b6121b5565b60008281526006602052604090208054338082146001600160a01b038816909114176126af5761269b8633610b31565b6126af576126af632ce44b5f60e11b6121b5565b80156126ba57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361274c5760018401600081815260046020526040812054900361274a57600054811461274a5760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361279657612796633a954ecd60e21b6121b5565b50505050505050565b60008054908290036127bb576127bb63b562e8dd60e01b6121b5565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361281957612819622e076360e81b6121b5565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a481816001019150810361281e575060005550505050565b610d7e838383604051806020016040528060008152506118f8565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d7e908490612ca5565b600081600111612934575060008181526004602052604081205490600160e01b82169003612934578060000361197857600054821061291457612914636f96cda160e11b6121b5565b5b5060001901600081815260046020526040902054801561291557919050565b611978636f96cda160e11b6121b5565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610c4690612d77565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b0384166000908152600c602052604081205490918391612a689086613839565b612a729190613850565b611a409190613a2f565b612a87848484611060565b6001600160a01b0383163b1561108557612aa384848484612dbf565b611085576110856368d2bf6b60e11b6121b5565b604080516080810182526000808252602082018190529181018290526060810191909152610c46612ae7836128cb565b612d77565b606060168054610c85906136f2565b60606000612b0883612ea1565b600101905060008167ffffffffffffffff811115612b2857612b28613285565b6040519080825280601f01601f191660200182016040528015612b52576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612b5c57509392505050565b6000612b998361139f565b9050818015612bb15750336001600160a01b03821614155b15612bd457612bc08133610b31565b612bd457612bd46367d9dca160e11b6121b5565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b60008060008351604114612c875760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610dbf565b50505060208101516040820151606090920151909260009190911a90565b6000612cfa826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612f799092919063ffffffff16565b805190915015610d7e5780806020019051810190612d1891906139ee565b610d7e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610dbf565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612df4903390899088908890600401613a42565b6020604051808303816000875af1925050508015612e2f575060408051601f3d908101601f19168201909252612e2c91810190613a7f565b60015b612e84573d808015612e5d576040519150601f19603f3d011682016040523d82523d6000602084013e612e62565b606091505b508051600003612e7c57612e7c6368d2bf6b60e11b6121b5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612ee05772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612f0c576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612f2a57662386f26fc10000830492506010015b6305f5e1008310612f42576305f5e100830492506008015b6127108310612f5657612710830492506004015b60648310612f68576064830492506002015b600a8310610c465760010192915050565b6060611a40848460008585600080866001600160a01b03168587604051612fa0919061381d565b60006040518083038185875af1925050503d8060008114612fdd576040519150601f19603f3d011682016040523d82523d6000602084013e612fe2565b606091505b5091509150612ff387838387612ffe565b979650505050505050565b6060831561306d578251600003613066576001600160a01b0385163b6130665760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610dbf565b5081611a40565b611a4083838151156130825781518083602001fd5b8060405162461bcd60e51b8152600401610dbf9190613196565b6001600160e01b031981168114610c7357600080fd5b6000602082840312156130c457600080fd5b81356117d28161309c565b6001600160a01b0381168114610c7357600080fd5b600080604083850312156130f757600080fd5b8235613102816130cf565b915060208301356001600160601b038116811461311e57600080fd5b809150509250929050565b60006020828403121561313b57600080fd5b81356117d2816130cf565b60005b83811015613161578181015183820152602001613149565b50506000910152565b60008151808452613182816020860160208601613146565b601f01601f19169290920160200192915050565b6020815260006117d2602083018461316a565b6000602082840312156131bb57600080fd5b5035919050565b600080604083850312156131d557600080fd5b82356131e0816130cf565b946020939093013593505050565b803563ffffffff8116811461197857600080fd5b60008060006040848603121561321757600080fd5b613220846131ee565b9250602084013567ffffffffffffffff8082111561323d57600080fd5b818601915086601f83011261325157600080fd5b81358181111561326057600080fd5b87602082850101111561327257600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156132b6576132b6613285565b604051601f8501601f19908116603f011681019082821181831017156132de576132de613285565b816040528093508581528686860111156132f757600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261332257600080fd5b6117d28383356020850161329b565b6000806040838503121561334457600080fd5b823567ffffffffffffffff8082111561335c57600080fd5b61336886838701613311565b9350602085013591508082111561337e57600080fd5b5061338b85828601613311565b9150509250929050565b6000806000606084860312156133aa57600080fd5b83356133b5816130cf565b925060208401356133c5816130cf565b929592945050506040919091013590565b600080604083850312156133e957600080fd5b50508035926020909101359150565b6000806040838503121561340b57600080fd5b8235613416816130cf565b9150613424602084016131ee565b90509250929050565b6000806040838503121561344057600080fd5b823561344b816130cf565b9150602083013561311e816130cf565b60006020828403121561346d57600080fd5b813567ffffffffffffffff81111561348457600080fd5b8201601f8101841361349557600080fd5b611a408482356020840161329b565b600080602083850312156134b757600080fd5b823567ffffffffffffffff808211156134cf57600080fd5b818501915085601f8301126134e357600080fd5b8135818111156134f257600080fd5b8660208260051b850101111561350757600080fd5b60209290920196919550909350505050565b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b818110156116c157613585838551613519565b9284019260809290920191600101613572565b6020808252825182820181905260009190848201906040850190845b818110156116c1578351835292840192918401916001016135b4565b6000806000606084860312156135e557600080fd5b83356135f0816130cf565b95602085013595506040909401359392505050565b60006020828403121561361757600080fd5b6117d2826131ee565b8015158114610c7357600080fd5b6000806040838503121561364157600080fd5b823561364c816130cf565b9150602083013561311e81613620565b6000806000806080858703121561367257600080fd5b843561367d816130cf565b9350602085013561368d816130cf565b925060408501359150606085013567ffffffffffffffff8111156136b057600080fd5b6136bc87828801613311565b91505092959194509250565b60808101610c468284613519565b600080604083850312156136e957600080fd5b613416836131ee565b600181811c9082168061370657607f821691505b60208210810361372657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c4657610c4661372c565b60208082526019908201527f4c696d6974207065722061646472657373205265616368656400000000000000604082015260600190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6000825161382f818460208701613146565b9190910192915050565b8082028115828204841417610c4657610c4661372c565b60008261386d57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610d7e57600081815260208120601f850160051c810160208610156138995750805b601f850160051c820191505b818110156138b8578281556001016138a5565b505050505050565b815167ffffffffffffffff8111156138da576138da613285565b6138ee816138e884546136f2565b84613872565b602080601f831160018114613923576000841561390b5750858301515b600019600386901b1c1916600185901b1785556138b8565b600085815260208120601f198616915b8281101561395257888601518255948401946001909101908401613933565b50858210156139705787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156139a857600080fd5b5051919050565b600083516139c1818460208801613146565b8351908301906139d5818360208801613146565b64173539b7b760d91b9101908152600501949350505050565b600060208284031215613a0057600080fd5b81516117d281613620565b63ffffffff828116828216039080821115613a2857613a2861372c565b5092915050565b81810381811115610c4657610c4661372c565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a759083018461316a565b9695505050505050565b600060208284031215613a9157600080fd5b81516117d28161309c56fea2646970667358221220be2d1dc3527a4ab2e380f754ffde9902e5e94cf411a462351c805cc814fef90964736f6c63430008110033
Deployed Bytecode Sourcemap
131581:8866:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45630:40;42131:10;45630:40;;;-1:-1:-1;;;;;206:32:1;;;188:51;;45660:9:0;270:2:1;255:18;;248:34;161:18;45630:40:0;;;;;;;131581:8866;;;;;132921:465;;;;;;;;;;-1:-1:-1;132921:465:0;;;;;:::i;:::-;;:::i;:::-;;;844:14:1;;837:22;819:41;;807:2;792:18;132921:465:0;;;;;;;;133394:150;;;;;;;;;;-1:-1:-1;133394:150:0;;;;;:::i;:::-;;:::i;:::-;;134048:124;;;;;;;;;;-1:-1:-1;134048:124:0;;;;;:::i;:::-;;:::i;85735:100::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;133866:103::-;;;;;;;;;;;;;:::i;92162:227::-;;;;;;;;;;-1:-1:-1;92162:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2804:32:1;;;2786:51;;2774:2;2759:18;92162:227:0;2640:203:1;139482:207:0;;;;;;:::i;:::-;;:::i;137197:397::-;;;;;;:::i;:::-;;:::i;131868:27::-;;;;;;;;;;-1:-1:-1;131868:27:0;;;;-1:-1:-1;;;131868:27:0;;;;;;;;;4178:10:1;4166:23;;;4148:42;;4136:2;4121:18;131868:27:0;4004:192:1;81477:323:0;;;;;;;;;;-1:-1:-1;132029:1:0;81751:12;81538:7;81735:13;:28;-1:-1:-1;;81735:46:0;81477:323;;;4347:25:1;;;4335:2;4320:18;81477:323:0;4201:177:1;48151:671:0;;;;;;;;;;-1:-1:-1;48151:671:0;;;;;:::i;:::-;;:::i;65156:380::-;;;;;;;;;;-1:-1:-1;65156:380:0;;;;;:::i;:::-;;:::i;139697:230::-;;;;;;:::i;:::-;;:::i;131829:30::-;;;;;;;;;;-1:-1:-1;131829:30:0;;;;-1:-1:-1;;;131829:30:0;;;;;;23676:442;;;;;;;;;;-1:-1:-1;23676:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;206:32:1;;;188:51;;270:2;255:18;;248:34;;;;161:18;23676:442:0;14:274:1;135955:314:0;;;;;;;;;;-1:-1:-1;135955:314:0;;;;;:::i;:::-;;:::i;45761:91::-;;;;;;;;;;-1:-1:-1;45832:12:0;;45761:91;;46890:135;;;;;;;;;;-1:-1:-1;46890:135:0;;;;;:::i;:::-;-1:-1:-1;;;;;46987:21:0;;;46960:7;46987:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;;;;46890:135;61415:143;;;;;;;;;;;;53831:42;61415:143;;139935:238;;;;;;:::i;:::-;;:::i;49090:792::-;;;;;;;;;;-1:-1:-1;49090:792:0;;;;;:::i;:::-;;:::i;134903:119::-;;;;;;;;;;-1:-1:-1;134903:119:0;;;;;:::i;:::-;;:::i;123610:1163::-;;;;;;;;;;-1:-1:-1;123610:1163:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;132073:27::-;;;;;;;;;;-1:-1:-1;132073:27:0;;;;;;;;;;;131784:38;;;;;;;;;;-1:-1:-1;131784:38:0;;;;-1:-1:-1;;;131784:38:0;;;;;;87137:152;;;;;;;;;;-1:-1:-1;87137:152:0;;;;;:::i;:::-;;:::i;136340:412::-;;;;;;:::i;:::-;;:::i;131942:39::-;;;;;;;;;;;;;;;;82661:242;;;;;;;;;;-1:-1:-1;82661:242:0;;;;;:::i;:::-;;:::i;52863:103::-;;;;;;;;;;;;;:::i;129597:1835::-;;;;;;;;;;-1:-1:-1;129597:1835:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;138166:119::-;;;;;;;;;;-1:-1:-1;138166:119:0;;;;;:::i;:::-;;:::i;47116:100::-;;;;;;;;;;-1:-1:-1;47116:100:0;;;;;:::i;:::-;;:::i;52215:87::-;;;;;;;;;;-1:-1:-1;52288:6:0;;-1:-1:-1;;;;;52288:6:0;52215:87;;85911:104;;;;;;;;;;;;;:::i;46612:109::-;;;;;;;;;;-1:-1:-1;46612:109:0;;;;;:::i;:::-;-1:-1:-1;;;;;46695:18:0;46668:7;46695:18;;;:9;:18;;;;;;;46612:109;125161:3989;;;;;;;;;;-1:-1:-1;125161:3989:0;;;;;:::i;:::-;;:::i;138772:226::-;;;;;;;;;;-1:-1:-1;138772:226:0;;;;;:::i;:::-;;:::i;139263:211::-;;;;;;;;;;-1:-1:-1;139263:211:0;;;;;:::i;:::-;;:::i;47306:225::-;;;;;;;;;;-1:-1:-1;47306:225:0;;;;;:::i;:::-;;:::i;134408:159::-;;;;;;;;;;;;;:::i;134243:82::-;;;;;;;;;;;;;:::i;135647:229::-;;;;;;;;;;-1:-1:-1;135647:229:0;;;;;:::i;:::-;;:::i;140181:263::-;;;;;;:::i;:::-;;:::i;122993:458::-;;;;;;;;;;-1:-1:-1;122993:458:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;47691:260::-;;;;;;;;;;-1:-1:-1;47691:260:0;;;;;:::i;:::-;;:::i;138348:356::-;;;;;;;;;;-1:-1:-1;138348:356:0;;;;;:::i;:::-;;:::i;131902:31::-;;;;;;;;;;-1:-1:-1;131902:31:0;;;;-1:-1:-1;;;131902:31:0;;;;;;46408:105;;;;;;;;;;-1:-1:-1;46408:105:0;;;;;:::i;:::-;-1:-1:-1;;;;;46489:16:0;46462:7;46489:16;;;:7;:16;;;;;;;46408:105;131746:30;;;;;;;;;;-1:-1:-1;131746:30:0;;;;;;;;135086:494;;;;;;;;;;-1:-1:-1;135086:494:0;;;;;:::i;:::-;;:::i;46198:119::-;;;;;;;;;;-1:-1:-1;46198:119:0;;;;;:::i;:::-;-1:-1:-1;;;;;46283:26:0;46256:7;46283:26;;;:19;:26;;;;;;;46198:119;45946:95;;;;;;;;;;-1:-1:-1;46019:14:0;;45946:95;;131990:40;;;;;;;;;;;;132029:1;131990:40;;93120:164;;;;;;;;;;-1:-1:-1;93120:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;93241:25:0;;;93217:4;93241:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;93120:164;133556:105;;;;;;;;;;-1:-1:-1;133556:105:0;;;;;:::i;:::-;;:::i;133669:121::-;;;;;;;;;;-1:-1:-1;133669:121:0;;;;;:::i;:::-;;:::i;136817:365::-;;;;;;:::i;:::-;;:::i;53121:201::-;;;;;;;;;;-1:-1:-1;53121:201:0;;;;;:::i;:::-;;:::i;132107:36::-;;;;;;;;;;-1:-1:-1;132107:36:0;;;;;;;;;;;139006:204;;;;;;;;;;-1:-1:-1;139006:204:0;;;;;:::i;:::-;;:::i;132040:26::-;;;;;;;;;;-1:-1:-1;132040:26:0;;;;;;;;132921:465;133050:4;133284:38;133310:11;133284:25;:38::i;:::-;:94;;;;133340:38;133366:11;133340:25;:38::i;:::-;133263:115;132921:465;-1:-1:-1;;132921:465:0:o;133394:150::-;52101:13;:11;:13::i;:::-;133492:44:::1;133511:9;133522:13;133492:18;:44::i;:::-;133394:150:::0;;:::o;134048:124::-;52101:13;:11;:13::i;:::-;134129:35:::1;134147:16;134129:17;:35::i;:::-;134048:124:::0;:::o;85735:100::-;85789:13;85822:5;85815:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85735:100;:::o;133866:103::-;52101:13;:11;:13::i;:::-;133944:17:::1;::::0;;-1:-1:-1;;133923:38:0;::::1;133944:17:::0;;;;::::1;;;133943:18;133923:38:::0;;::::1;;::::0;;133866:103::o;92162:227::-;92238:7;92263:16;92271:7;92263;:16::i;:::-;92258:73;;92281:50;-1:-1:-1;;;92281:7:0;:50::i;:::-;-1:-1:-1;92351:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;92351:30:0;;92162:227::o;139482:207::-;139628:8;63197:30;63218:8;63197:20;:30::i;:::-;139649:32:::1;139663:8;139673:7;139649:13;:32::i;:::-;139482:207:::0;;;:::o;137197:397::-;137299:7;;;;137298:8;137289:32;;;;-1:-1:-1;;;137289:32:0;;14197:2:1;137289:32:0;;;14179:21:1;14236:2;14216:18;;;14209:30;-1:-1:-1;;;14255:18:1;;;14248:40;14305:18;;137289:32:0;;;;;;;;;137385:13;;;-1:-1:-1;;;137385:13:0;;;;;;137341:40;;:25;137355:10;137341:13;:25::i;:::-;:40;;;;:::i;:::-;:57;;137332:96;;;;-1:-1:-1;;;137332:96:0;;;;;;;:::i;:::-;137465:40;;-1:-1:-1;;42131:10:0;15200:2:1;15196:15;15192:53;137465:40:0;;;15180:66:1;-1:-1:-1;;;15262:12:1;;;15255:30;137448:68:0;;15301:12:1;;137465:40:0;;;;-1:-1:-1;;137465:40:0;;;;;;;137448:68;;;;;;;;;;;;;;;;;;137465:40;;137507:8;;;;;;137448:68;;137507:8;;;;137448:68;;;;;;;;;-1:-1:-1;137448:16:0;;-1:-1:-1;;;137448:68:0:i;:::-;137439:96;;;;-1:-1:-1;;;137439:96:0;;15526:2:1;137439:96:0;;;15508:21:1;15565:2;15545:18;;;15538:30;-1:-1:-1;;;15584:18:1;;;15577:44;15638:18;;137439:96:0;15324:338:1;137439:96:0;137556:22;137565:12;137556:8;:22::i;48151:671::-;-1:-1:-1;;;;;48227:16:0;;48246:1;48227:16;;;:7;:16;;;;;;48219:71;;;;-1:-1:-1;;;48219:71:0;;;;;;;:::i;:::-;48303:15;48321:19;48332:7;48321:10;:19::i;:::-;48303:37;;48361:7;48372:1;48361:12;48353:68;;;;-1:-1:-1;;;48353:68:0;;;;;;;:::i;:::-;48634:7;48616:14;;:25;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;48677:18:0;;;;;;:9;:18;;;;;:29;;;;;;48730:35;48687:7;48699;48730:17;:35::i;:::-;48781:33;;;-1:-1:-1;;;;;206:32:1;;188:51;;270:2;255:18;;248:34;;;48781:33:0;;161:18:1;48781:33:0;;;;;;;48208:614;48151:671;:::o;65156:380::-;65249:4;65266:20;65316:7;65299:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;65289:36;;;;;;65266:59;;65336:28;65430:12;65377:66;;;;;;;17307::1;17295:79;;17399:2;17390:12;;17383:28;;;;17436:2;17427:12;;17065:380;65377:66:0;;;;-1:-1:-1;;65377:66:0;;;;;;;;;65367:77;;65377:66;65367:77;;;;65515:13;;65367:77;;-1:-1:-1;;;;;;65515:13:0;65464:47;65367:77;65501:9;65464:14;:47::i;:::-;-1:-1:-1;;;;;65464:64:0;;;65156:380;-1:-1:-1;;;;;65156:380:0:o;139697:230::-;139860:4;-1:-1:-1;;;;;62923:18:0;;62931:10;62923:18;62919:83;;62958:32;62979:10;62958:20;:32::i;:::-;139882:37:::1;139901:4;139907:2;139911:7;139882:18;:37::i;:::-;139697:230:::0;;;;:::o;23676:442::-;23773:7;23831:27;;;:17;:27;;;;;;;;23802:56;;;;;;;;;-1:-1:-1;;;;;23802:56:0;;;;;-1:-1:-1;;;23802:56:0;;;-1:-1:-1;;;;;23802:56:0;;;;;;;;23773:7;;23871:92;;-1:-1:-1;23922:29:0;;;;;;;;;23932:19;23922:29;-1:-1:-1;;;;;23922:29:0;;;;-1:-1:-1;;;23922:29:0;;-1:-1:-1;;;;;23922:29:0;;;;;23871:92;24013:23;;;;23975:21;;24484:5;;24000:36;;-1:-1:-1;;;;;24000:36:0;:10;:36;:::i;:::-;23999:58;;;;:::i;:::-;24078:16;;;;;-1:-1:-1;23676:442:0;;-1:-1:-1;;;;23676:442:0:o;135955:314::-;52101:13;:11;:13::i;:::-;136060:17:::1;::::0;::::1;-1:-1:-1::0;;;136060:17:0;;::::1;::::0;::::1;136044:33:::0;;::::1;;;136035:106;;;::::0;-1:-1:-1;;;136035:106:0;;18179:2:1;136035:106:0::1;::::0;::::1;18161:21:1::0;18218:2;18198:18;;;18191:30;18257:34;18237:18;;;18230:62;18328:29;18308:18;;;18301:57;18375:19;;136035:106:0::1;17977:423:1::0;136035:106:0::1;136154:23;136160:2;136164:12;136154:23;;:5;:23::i;:::-;136217:17;:33:::0;;::::1;-1:-1:-1::0;;;136217:33:0;;::::1;::::0;::::1;::::0;;;::::1;;::::0;;::::1;-1:-1:-1::0;;136217:33:0;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;135955:314:0:o;139935:238::-;140102:4;-1:-1:-1;;;;;62923:18:0;;62931:10;62923:18;62919:83;;62958:32;62979:10;62958:20;:32::i;:::-;140124:41:::1;140147:4;140153:2;140157:7;140124:22;:41::i;49090:792::-:0;-1:-1:-1;;;;;49172:16:0;;49191:1;49172:16;;;:7;:16;;;;;;49164:71;;;;-1:-1:-1;;;49164:71:0;;;;;;;:::i;:::-;49248:15;49266:26;49277:5;49284:7;49266:10;:26::i;:::-;49248:44;;49313:7;49324:1;49313:12;49305:68;;;;-1:-1:-1;;;49305:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;49628:26:0;;;;;;:19;:26;;;;;:37;;49658:7;;49628:26;:37;;49658:7;;49628:37;:::i;:::-;;;;-1:-1:-1;;;;;;;49701:21:0;;;;;;;:14;:21;;;;;;;;:30;;;;;;;;;:41;;;;;;49766:47;49716:5;49723:7;49735;49766:22;:47::i;:::-;49829:45;;;-1:-1:-1;;;;;206:32:1;;;188:51;;270:2;255:18;;248:34;;;49829:45:0;;;;;161:18:1;49829:45:0;;;;;;;49153:729;49090:792;;:::o;134903:119::-;52101:13;:11;:13::i;:::-;134983::::1;:31;134999:15:::0;134983:13;:31:::1;:::i;123610:1163::-:0;123968:4;123962:11;;124021:21;;;124173:1;124169:9;;;124228:29;;;124248:4;124228:29;124215:43;;;123754:23;;124279:459;124286:6;;124279:459;;-1:-1:-1;;124372:12:0;;;;124426:23;;;124413:37;124309:15;124513:28;124413:37;124513:19;:28::i;:::-;124671:29;;;124691:4;124671:29;124664:48;-1:-1:-1;124279:459:0;;-1:-1:-1;124279:459:0;;-1:-1:-1;124755:10:0;123610:1163;-1:-1:-1;;;123610:1163:0:o;87137:152::-;87209:7;87252:27;87271:7;87252:18;:27::i;136340:412::-;136449:7;;;;136440:34;;;;-1:-1:-1;;;136440:34:0;;20811:2:1;136440:34:0;;;20793:21:1;20850:2;20830:18;;;20823:30;-1:-1:-1;;;20869:18:1;;;20862:43;20922:18;;136440:34:0;20609:337:1;136440:34:0;136511:41;;-1:-1:-1;;42131:10:0;21201:2:1;21197:15;21193:53;136511:41:0;;;21181:66:1;-1:-1:-1;;;21263:12:1;;;21256:31;136494:69:0;;21303:12:1;;136511:41:0;20951:370:1;136494:69:0;136485:105;;;;-1:-1:-1;;;136485:105:0;;21528:2:1;136485:105:0;;;21510:21:1;21567:2;21547:18;;;21540:30;-1:-1:-1;;;21586:18:1;;;21579:52;21648:18;;136485:105:0;21326:346:1;136485:105:0;136654:9;;;-1:-1:-1;;;136654:9:0;;;;;;136610:40;;:25;136624:10;136610:13;:25::i;:::-;:40;;;;:::i;:::-;:53;;136601:92;;;;-1:-1:-1;;;136601:92:0;;;;;;;:::i;82661:242::-;82733:7;-1:-1:-1;;;;;82757:19:0;;82753:69;;82778:44;-1:-1:-1;;;82778:7:0;:44::i;:::-;-1:-1:-1;;;;;;82840:25:0;;;;;:18;:25;;;;;;76820:13;82840:55;;82661:242::o;52863:103::-;52101:13;:11;:13::i;:::-;52928:30:::1;52955:1;52928:18;:30::i;:::-;52863:103::o:0;129597:1835::-;129675:16;129704:22;129729:16;129739:5;129729:9;:16::i;:::-;129704:41;;129756:25;129880:4;129874:11;129862:23;;130106:1;130090:14;130086:22;130083:1;130079:30;130069:8;130065:45;130059:4;130052:59;130190:14;130180:8;130173:32;130226:25;130262:19;130297:9;130309:15;132029:1;;132807:104;130309:15;130297:27;;130292:1107;130341:14;130326:11;:29;130292:1107;;130374:31;130408:15;130421:1;130408:12;:15::i;:::-;130374:49;;130549:4;130538:9;130534:20;130528:27;130518:823;;130801:9;130795:16;130792:107;;;130866:9;130860:16;130839:37;;130792:107;131158:5;131139:17;131135:29;131131:2;131127:38;131117:205;;131226:1;131213:11;131209:19;131194:34;;131297:1;131282:11;131279:1;131275:19;131265:8;131261:34;131254:45;131117:205;-1:-1:-1;131371:1:0;131364:9;130292:1107;;;-1:-1:-1;131416:8:0;;129597:1835;-1:-1:-1;;;;;129597:1835:0:o;138166:119::-;138229:7;138256:21;138270:6;138256:13;:21::i;47116:100::-;47167:7;47194;47202:5;47194:14;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;47194:14:0;;47116:100;-1:-1:-1;;47116:100:0:o;85911:104::-;85967:13;86000:7;85993:14;;;;;:::i;125161:3989::-;125304:16;125371:4;125362:5;:13;125358:54;;125377:35;-1:-1:-1;;;125377:7:0;:35::i;:::-;132029:1;125490:5;:23;125486:87;;;132029:1;125534:23;;125486:87;125587:17;81246:13;125691:17;;;125687:74;;125736:9;125729:16;;125687:74;125775:25;125815;125843:16;125853:5;125843:9;:16::i;:::-;125893:12;;;126053:35;;;;-1:-1:-1;126121:22:0;;126117:2985;;126343:17;126334:5;126327:4;:12;:33;126323:114;;126412:5;126405:4;:12;126385:32;;126323:114;126559:4;126553:11;126541:23;;126812:1;126793:17;126789:25;126786:1;126782:33;126772:8;126768:48;126762:4;126755:62;126992:31;127026:26;127046:5;127026:19;:26::i;:::-;126992:60;;127071:25;127368:9;:16;;;127363:100;;-1:-1:-1;127429:14:0;;127363:100;127481:19;127671:1267;127709:19;127722:5;127709:12;:19::i;:::-;127697:31;;127878:4;127867:9;127863:20;127857:27;127847:939;;128162:9;128156:16;128153:123;;;128235:9;128229:16;128208:37;;128153:123;128567:5;128548:17;128544:29;128540:2;128536:38;128526:233;;128643:1;128626:19;128704:1;128700:19;;;128686:34;;128679:49;;;128526:233;128832:1;128825:5;128821:13;128812:22;;128895:4;128886:5;:13;:49;;;;128918:17;128903:11;:32;128886:49;128884:52;127671:1267;;129039:29;;-1:-1:-1;;126117:2985:0;-1:-1:-1;129123:8:0;;125161:3989;-1:-1:-1;;;;;;125161:3989:0:o;138772:226::-;52101:13;:11;:13::i;:::-;138880:12:::1;::::0;::::1;-1:-1:-1::0;;;138880:12:0;;::::1;::::0;::::1;138861:31:::0;;::::1;::::0;138853:94:::1;;;::::0;-1:-1:-1;;;138853:94:0;;22011:2:1;138853:94:0::1;::::0;::::1;21993:21:1::0;22050:2;22030:18;;;22023:30;22089:34;22069:18;;;22062:62;-1:-1:-1;;;22140:18:1;;;22133:48;22198:19;;138853:94:0::1;21809:414:1::0;138853:94:0::1;138960:12;:30:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;138960:30:0::1;-1:-1:-1::0;;138960:30:0;;::::1;::::0;;;::::1;::::0;;138772:226::o;139263:211::-;139402:8;63197:30;63218:8;63197:20;:30::i;:::-;139423:43:::1;139447:8;139457;139423:23;:43::i;47306:225::-:0;47364:7;47384:21;47432:15;46019:14;;;45946:95;47432:15;47408:39;;:21;:39;:::i;:::-;47384:63;;47465:58;47481:7;47490:13;47505:17;47514:7;-1:-1:-1;;;;;46695:18:0;46668:7;46695:18;;;:9;:18;;;;;;;46612:109;47505:17;47465:15;:58::i;:::-;47458:65;47306:225;-1:-1:-1;;;47306:225:0:o;134408:159::-;52101:13;:11;:13::i;:::-;134467:7:::1;::::0;::::1;;134459:41;;;::::0;-1:-1:-1;;;134459:41:0;;22430:2:1;134459:41:0::1;::::0;::::1;22412:21:1::0;22469:2;22449:18;;;22442:30;-1:-1:-1;;;22488:18:1;;;22481:51;22549:18;;134459:41:0::1;22228:345:1::0;134459:41:0::1;134523:10;134511:9;:22:::0;134544:7:::1;:15:::0;;-1:-1:-1;;134544:15:0::1;::::0;;134408:159::o;134243:82::-;52101:13;:11;:13::i;:::-;134311:6:::1;::::0;;-1:-1:-1;;134301:16:0;::::1;134311:6;::::0;;;::::1;;;134310:7;134301:16:::0;;::::1;;::::0;;134243:82::o;135647:229::-;52101:13;:11;:13::i;:::-;135763:17:::1;::::0;::::1;-1:-1:-1::0;;;135763:17:0;;::::1;::::0;::::1;135740:40:::0;;::::1;;135732:82;;;::::0;-1:-1:-1;;;135732:82:0;;22780:2:1;135732:82:0::1;::::0;::::1;22762:21:1::0;22819:2;22799:18;;;22792:30;22858:31;22838:18;;;22831:59;22907:18;;135732:82:0::1;22578:353:1::0;135732:82:0::1;135827:17;:41:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;135827:41:0::1;-1:-1:-1::0;;135827:41:0;;::::1;::::0;;;::::1;::::0;;135647:229::o;140181:263::-;140367:4;-1:-1:-1;;;;;62923:18:0;;62931:10;62923:18;62919:83;;62958:32;62979:10;62958:20;:32::i;:::-;140389:47:::1;140412:4;140418:2;140422:7;140431:4;140389:22;:47::i;:::-;140181:263:::0;;;;;:::o;122993:458::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;132029:1:0;123175:7;:26;123171:273;;81219:7;81246:13;123222:7;:24;123218:215;;;123279:21;123292:7;123279:12;:21::i;:::-;123267:33;;123324:9;:16;;;123319:99;;123377:21;123390:7;123377:12;:21::i;123319:99::-;122993:458;;;:::o;47691:260::-;-1:-1:-1;;;;;46283:26:0;;47763:7;46283:26;;;:19;:26;;;;;;47763:7;;47807:30;;-1:-1:-1;;;47807:30:0;;47831:4;47807:30;;;2786:51:1;-1:-1:-1;;;;;47807:15:0;;;;;2759:18:1;;47807:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;;;;:::i;:::-;-1:-1:-1;;;;;46987:21:0;;;46960:7;46987:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;47783:77;;-1:-1:-1;47878:65:0;;47894:7;;47783:77;;47465:15;:58::i;47878:65::-;47871:72;47691:260;-1:-1:-1;;;;47691:260:0:o;138348:356::-;138439:13;138473:16;138481:7;138473;:16::i;:::-;138465:75;;;;-1:-1:-1;;;138465:75:0;;23327:2:1;138465:75:0;;;23309:21:1;23366:2;23346:18;;;23339:30;23405:34;23385:18;;;23378:62;-1:-1:-1;;;23456:18:1;;;23449:45;23511:19;;138465:75:0;23125:411:1;138465:75:0;138561:17;138581:10;:8;:10::i;:::-;138561:30;;138629:1;138615:3;138609:17;:21;:87;;;;;;;;;;;;;;;;;138657:3;138662:18;:7;:16;:18::i;:::-;138640:50;;;;;;;;;:::i;:::-;;;;;;;;;;;;;138602:94;138348:356;-1:-1:-1;;;138348:356:0:o;135086:494::-;52101:13;:11;:13::i;:::-;135207:9:::1;::::0;::::1;::::0;;::::1;135195:21:::0;;::::1;;135187:69;;;::::0;-1:-1:-1;;;135187:69:0;;24411:2:1;135187:69:0::1;::::0;::::1;24393:21:1::0;24450:2;24430:18;;;24423:30;24489:34;24469:18;;;24462:62;-1:-1:-1;;;24540:18:1;;;24533:34;24584:19;;135187:69:0::1;24209:400:1::0;135187:69:0::1;135299:17;::::0;::::1;-1:-1:-1::0;;;135299:17:0;;::::1;::::0;::::1;135275:41:::0;;::::1;;;135267:81;;;::::0;-1:-1:-1;;;135267:81:0;;24816:2:1;135267:81:0::1;::::0;::::1;24798:21:1::0;24855:2;24835:18;;;24828:30;24894:29;24874:18;;;24867:57;24941:18;;135267:81:0::1;24614:351:1::0;135267:81:0::1;132029:1:::0;81751:12;81538:7;81735:13;:28;-1:-1:-1;;81735:46:0;135380:36:::1;::::0;::::1;::::0;::::1;;:::i;:::-;135367:9;:49;;;;135359:127;;;::::0;-1:-1:-1;;;135359:127:0;;25172:2:1;135359:127:0::1;::::0;::::1;25154:21:1::0;25211:2;25191:18;;;25184:30;25250:34;25230:18;;;25223:62;25321:34;25301:18;;;25294:62;-1:-1:-1;;;25372:19:1;;;25365:32;25414:19;;135359:127:0::1;24970:469:1::0;135359:127:0::1;135499:9;:21:::0;;::::1;135531:41:::0;;::::1;-1:-1:-1::0;;;135531:41:0::1;-1:-1:-1::0;;135531:41:0;;;135499:21;;;::::1;135531:41:::0;;;;;;;::::1;::::0;;135086:494::o;133556:105::-;52101:13;:11;:13::i;:::-;133629:9:::1;:24:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;133629:24:0::1;-1:-1:-1::0;;;;133629:24:0;;::::1;::::0;;;::::1;::::0;;133556:105::o;133669:121::-;52101:13;:11;:13::i;:::-;133750::::1;:32:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;133750:32:0::1;-1:-1:-1::0;;;;133750:32:0;;::::1;::::0;;;::::1;::::0;;133669:121::o;136817:365::-;136895:7;;;;136894:8;136885:32;;;;-1:-1:-1;;;136885:32:0;;14197:2:1;136885:32:0;;;14179:21:1;14236:2;14216:18;;;14209:30;-1:-1:-1;;;14255:18:1;;;14248:40;14305:18;;136885:32:0;13995:334:1;136885:32:0;136938:17;;;;;;;136937:18;136928:88;;;;-1:-1:-1;;;136928:88:0;;25646:2:1;136928:88:0;;;25628:21:1;25685:2;25665:18;;;25658:30;25724:34;25704:18;;;25697:62;25795:26;25775:18;;;25768:54;25839:19;;136928:88:0;25444:420:1;136928:88:0;137080:13;;;-1:-1:-1;;;137080:13:0;;;;;;137036:40;;:25;137050:10;137036:13;:25::i;:::-;:40;;;;:::i;:::-;:57;;137027:96;;;;-1:-1:-1;;;137027:96:0;;;;;;;:::i;:::-;137144:22;137153:12;137144:8;:22::i;53121:201::-;52101:13;:11;:13::i;:::-;-1:-1:-1;;;;;53210:22:0;::::1;53202:73;;;::::0;-1:-1:-1;;;53202:73:0;;26071:2:1;53202:73:0::1;::::0;::::1;26053:21:1::0;26110:2;26090:18;;;26083:30;26149:34;26129:18;;;26122:62;-1:-1:-1;;;26200:18:1;;;26193:36;26246:19;;53202:73:0::1;25869:402:1::0;53202:73:0::1;53286:28;53305:8;53286:18;:28::i;139006:204::-:0;52101:13;:11;:13::i;:::-;139104:9:::1;;139088:12;:25:::0;139080:85:::1;;;::::0;-1:-1:-1;;;139080:85:0;;26478:2:1;139080:85:0::1;::::0;::::1;26460:21:1::0;26517:2;26497:18;;;26490:30;26556:34;26536:18;;;26529:62;-1:-1:-1;;;26607:18:1;;;26600:45;26662:19;;139080:85:0::1;26276:411:1::0;139080:85:0::1;139178:9;:24:::0;139006:204::o;84833:639::-;84918:4;-1:-1:-1;;;;;;;;;85242:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;85319:25:0;;;85242:102;:179;;;-1:-1:-1;;;;;;;;85396:25:0;-1:-1:-1;;;85396:25:0;;84833:639::o;23406:215::-;23508:4;-1:-1:-1;;;;;;23532:41:0;;-1:-1:-1;;;23532:41:0;;:81;;-1:-1:-1;;;;;;;;;;21067:40:0;;;23577:36;20958:157;52380:132;52288:6;;-1:-1:-1;;;;;52288:6:0;42131:10;52444:23;52436:68;;;;-1:-1:-1;;;52436:68:0;;26894:2:1;52436:68:0;;;26876:21:1;;;26913:18;;;26906:30;26972:34;26952:18;;;26945:62;27024:18;;52436:68:0;26692:356:1;24768:332:0;24484:5;-1:-1:-1;;;;;24871:33:0;;;;24863:88;;;;-1:-1:-1;;;24863:88:0;;27255:2:1;24863:88:0;;;27237:21:1;27294:2;27274:18;;;27267:30;27333:34;27313:18;;;27306:62;-1:-1:-1;;;27384:18:1;;;27377:40;27434:19;;24863:88:0;27053:406:1;24863:88:0;-1:-1:-1;;;;;24970:22:0;;24962:60;;;;-1:-1:-1;;;24962:60:0;;27666:2:1;24962:60:0;;;27648:21:1;27705:2;27685:18;;;27678:30;27744:27;27724:18;;;27717:55;27789:18;;24962:60:0;27464:349:1;24962:60:0;25057:35;;;;;;;;;-1:-1:-1;;;;;25057:35:0;;;;;;-1:-1:-1;;;;;25057:35:0;;;;;;;;;;-1:-1:-1;;;25035:57:0;;;;:19;:57;24768:332::o;65609:230::-;65718:13;;-1:-1:-1;;;;;65718:13:0;;;65698:33;;;;65690:98;;;;-1:-1:-1;;;65690:98:0;;28020:2:1;65690:98:0;;;28002:21:1;28059:2;28039:18;;;28032:30;28098:34;28078:18;;;28071:62;-1:-1:-1;;;28149:18:1;;;28142:50;28209:19;;65690:98:0;27818:416:1;65690:98:0;65799:13;:32;;-1:-1:-1;;;;;;65799:32:0;-1:-1:-1;;;;;65799:32:0;;;;;;;;;;65609:230::o;93542:282::-;93607:4;93663:7;132029:1;93644:26;;:66;;;;;93697:13;;93687:7;:23;93644:66;:153;;;;-1:-1:-1;;93748:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;93748:44:0;:49;;93542:282::o;119234:165::-;119335:13;119329:4;119322:27;119376:4;119370;119363:18;63340:647;53831:42;63531:45;:49;63527:453;;63830:67;;-1:-1:-1;;;63830:67:0;;63881:4;63830:67;;;28451:34:1;-1:-1:-1;;;;;28521:15:1;;28501:18;;;28494:43;53831:42:0;;63830;;28386:18:1;;63830:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63825:144;;63925:28;;-1:-1:-1;;;63925:28:0;;-1:-1:-1;;;;;2804:32:1;;63925:28:0;;;2786:51:1;2759:18;;63925:28:0;2640:203:1;91879:124:0;91968:27;91977:2;91981:7;91990:4;91968:8;:27::i;82985:178::-;-1:-1:-1;;;;;83074:25:0;83046:7;83074:25;;;:18;:25;;76958:2;83074:25;;;;;:50;;76820:13;83073:82;;82985:178::o;137664:494::-;137734:6;;;;;;;137733:7;137724:36;;;;-1:-1:-1;;;137724:36:0;;29000:2:1;137724:36:0;;;28982:21:1;29039:2;29019:18;;;29012:30;-1:-1:-1;;;29058:18:1;;;29051:45;29113:18;;137724:36:0;28798:339:1;137724:36:0;137781:9;137794:10;137781:23;137772:52;;;;-1:-1:-1;;;137772:52:0;;29344:2:1;137772:52:0;;;29326:21:1;29383:2;29363:18;;;29356:30;-1:-1:-1;;;29402:18:1;;;29395:45;29457:18;;137772:52:0;29142:339:1;137772:52:0;137869:13;137857:25;;:9;;:25;;;;:::i;:::-;137844:9;:38;;137835:76;;;;-1:-1:-1;;;137835:76:0;;29688:2:1;137835:76:0;;;29670:21:1;29727:2;29707:18;;;29700:30;29766:26;29746:18;;;29739:54;29810:18;;137835:76:0;29486:348:1;137835:76:0;137976:17;;137964:29;;137976:17;-1:-1:-1;;;137976:17:0;;;;;137964:9;:29;:::i;:::-;137931:62;;137947:13;137931:29;;:13;132029:1;81751:12;81538:7;81735:13;-1:-1:-1;;81735:28:0;;;:46;;81477:323;137931:13;:29;;;;:::i;:::-;:62;;137922:103;;;;-1:-1:-1;;;137922:103:0;;30221:2:1;137922:103:0;;;30203:21:1;30260:2;30240:18;;;30233:30;30299:29;30279:18;;;30272:57;30346:18;;137922:103:0;30019:351:1;137922:103:0;138063:12;;;-1:-1:-1;;;138063:12:0;;;;;138046:29;;;;;138037:68;;;;-1:-1:-1;;;138037:68:0;;30577:2:1;138037:68:0;;;30559:21:1;30616:2;30596:18;;;30589:30;30655:27;30635:18;;;30628:55;30700:18;;138037:68:0;30375:349:1;138037:68:0;138118:32;138124:10;138136:13;138118:32;;:5;:32::i;2494:317::-;2609:6;2584:21;:31;;2576:73;;;;-1:-1:-1;;;2576:73:0;;30931:2:1;2576:73:0;;;30913:21:1;30970:2;30950:18;;;30943:30;31009:31;30989:18;;;30982:59;31058:18;;2576:73:0;30729:353:1;2576:73:0;2663:12;2681:9;-1:-1:-1;;;;;2681:14:0;2703:6;2681:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2662:52;;;2733:7;2725:78;;;;-1:-1:-1;;;2725:78:0;;31499:2:1;2725:78:0;;;31481:21:1;31538:2;31518:18;;;31511:30;31577:34;31557:18;;;31550:62;31648:28;31628:18;;;31621:56;31694:19;;2725:78:0;31297:422:1;65847:250:0;65949:7;65970:9;65981;65992:7;66003:27;66019:10;66003:15;:27::i;:::-;66048:41;;;;;;;;;;;;31951:25:1;;;32024:4;32012:17;;31992:18;;;31985:45;;;;32046:18;;;32039:34;;;32089:18;;;32082:34;;;65969:61:0;;-1:-1:-1;65969:61:0;;-1:-1:-1;65969:61:0;-1:-1:-1;66048:41:0;;31923:19:1;;66048:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;66048:41:0;;-1:-1:-1;;66048:41:0;;;65847:250;-1:-1:-1;;;;;;;65847:250:0:o;95810:3523::-;95952:27;95982;96001:7;95982:18;:27::i;:::-;-1:-1:-1;;;;;96137:22:0;;;;95952:57;;-1:-1:-1;96197:45:0;;;;96193:95;;96244:44;-1:-1:-1;;;96244:7:0;:44::i;:::-;96302:27;94918:24;;;:15;:24;;;;;95146:26;;42131:10;94543:30;;;-1:-1:-1;;;;;94236:28:0;;94521:20;;;94518:56;96488:189;;96581:43;96598:4;42131:10;93120:164;:::i;96581:43::-;96576:101;;96626:51;-1:-1:-1;;;96626:7:0;:51::i;:::-;96826:15;96823:160;;;96966:1;96945:19;96938:30;96823:160;-1:-1:-1;;;;;97363:24:0;;;;;;;:18;:24;;;;;;97361:26;;-1:-1:-1;;97361:26:0;;;97432:22;;;;;;;;;97430:24;;-1:-1:-1;97430:24:0;;;90981:11;90956:23;90952:41;90939:63;-1:-1:-1;;;90939:63:0;97725:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;98020:47:0;;:52;;98016:627;;98125:1;98115:11;;98093:19;98248:30;;;:17;:30;;;;;;:35;;98244:384;;98386:13;;98371:11;:28;98367:242;;98533:30;;;;:17;:30;;;;;:52;;;98367:242;98074:569;98016:627;-1:-1:-1;;;;;98775:20:0;;99155:7;98775:20;99085:4;99027:25;98756:16;;98892:299;99216:8;99228:1;99216:13;99212:58;;99231:39;-1:-1:-1;;;99231:7:0;:39::i;:::-;95941:3392;;;;95810:3523;;;:::o;103873:2305::-;103946:20;103969:13;;;103997;;;103993:53;;104012:34;-1:-1:-1;;;104012:7:0;:34::i;:::-;104559:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;90807:28:0;;90981:11;90956:23;90952:41;91425:1;91412:15;;91386:24;91382:46;90949:52;90939:63;;104559:173;;;104950:22;;;:18;:22;;;;;:71;;104988:32;104976:45;;104950:71;;;90807:28;105211:13;;;105207:54;;105226:35;-1:-1:-1;;;105226:7:0;:35::i;:::-;105292:23;;;:12;105377:676;105796:7;105752:8;105707:1;105641:25;105578:1;105513;105482:358;106048:3;106035:9;;;;;;:16;105377:676;;-1:-1:-1;106069:13:0;:19;-1:-1:-1;139482:207:0;;;:::o;99429:193::-;99575:39;99592:4;99598:2;99602:7;99575:39;;;;;;;;;;;;:16;:39::i;15386:211::-;15530:58;;;-1:-1:-1;;;;;206:32:1;;15530:58:0;;;188:51:1;255:18;;;;248:34;;;15530:58:0;;;;;;;;;;161:18:1;;;;15530:58:0;;;;;;;;-1:-1:-1;;;;;15530:58:0;-1:-1:-1;;;15530:58:0;;;15503:86;;15523:5;;15503:19;:86::i;88292:1730::-;88359:14;88409:7;132029:1;88390:26;88386:1571;;-1:-1:-1;88442:26:0;;;;:17;:26;;;;;;;-1:-1:-1;;;88518:24:0;;:29;;88514:1432;;88657:6;88667:1;88657:11;88653:990;;88708:13;;88697:7;:24;88693:77;;88723:47;-1:-1:-1;;;88723:7:0;:47::i;:::-;89367:257;-1:-1:-1;;;89471:9:0;89453:28;;;;:17;:28;;;;;;89535:25;;89367:257;89535:25;88292:1730;;;:::o;88514:1432::-;89967:47;-1:-1:-1;;;89967:7:0;:47::i;53482:191::-;53575:6;;;-1:-1:-1;;;;;53592:17:0;;;-1:-1:-1;;;;;;53592:17:0;;;;;;;53625:40;;53575:6;;;53592:17;53575:6;;53625:40;;53556:16;;53625:40;53545:128;53482:191;:::o;87740:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87868:24:0;;;;:17;:24;;;;;;87849:44;;:18;:44::i;92729:234::-;42131:10;92824:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;92824:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;92824:60:0;;;;;;;;;;92900:55;;819:41:1;;;92824:49:0;;42131:10;92900:55;;792:18:1;92900:55:0;;;;;;;92729:234;;:::o;50060:248::-;50270:12;;-1:-1:-1;;;;;50250:16:0;;50206:7;50250:16;;;:7;:16;;;;;;50206:7;;50285:15;;50234:32;;:13;:32;:::i;:::-;50233:49;;;;:::i;:::-;:67;;;;:::i;100220:416::-;100395:31;100408:4;100414:2;100418:7;100395:12;:31::i;:::-;-1:-1:-1;;;;;100441:14:0;;;:19;100437:192;;100480:56;100511:4;100517:2;100521:7;100530:5;100480:30;:56::i;:::-;100475:154;;100557:56;-1:-1:-1;;;100557:7:0;:56::i;87478:166::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87589:47:0;87608:27;87627:7;87608:18;:27::i;:::-;87589:18;:47::i;134649:114::-;134709:13;134742;134735:20;;;;;:::i;39478:716::-;39534:13;39585:14;39602:17;39613:5;39602:10;:17::i;:::-;39622:1;39602:21;39585:38;;39638:20;39672:6;39661:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39661:18:0;-1:-1:-1;39638:41:0;-1:-1:-1;39803:28:0;;;39819:2;39803:28;39860:288;-1:-1:-1;;39892:5:0;-1:-1:-1;;;40029:2:0;40018:14;;40013:30;39892:5;40000:44;40090:2;40081:11;;;-1:-1:-1;40111:21:0;39860:288;40111:21;-1:-1:-1;40169:6:0;39478:716;-1:-1:-1;;;39478:716:0:o;110667:474::-;110796:13;110812:16;110820:7;110812;:16::i;:::-;110796:32;;110845:13;:45;;;;-1:-1:-1;42131:10:0;-1:-1:-1;;;;;110862:28:0;;;;110845:45;110841:201;;;110910:44;110927:5;42131:10;93120:164;:::i;110910:44::-;110905:137;;110975:51;-1:-1:-1;;;110975:7:0;:51::i;:::-;111054:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;111054:35:0;-1:-1:-1;;;;;111054:35:0;;;;;;;;;111105:28;;111054:24;;111105:28;;;;;;;110785:356;110667:474;;;:::o;66105:324::-;66170:9;66181;66192:7;66220:3;:10;66234:2;66220:16;66212:53;;;;-1:-1:-1;;;66212:53:0;;32462:2:1;66212:53:0;;;32444:21:1;32501:2;32481:18;;;32474:30;32540:26;32520:18;;;32513:54;32584:18;;66212:53:0;32260:348:1;66212:53:0;-1:-1:-1;;;66322:2:0;66313:12;;66307:19;66360:2;66351:12;;66345:19;66406:2;66397:12;;;66391:19;66307;;66388:1;66383:28;;;;;66105:324::o;18453:716::-;18877:23;18903:69;18931:4;18903:69;;;;;;;;;;;;;;;;;18911:5;-1:-1:-1;;;;;18903:27:0;;;:69;;;;;:::i;:::-;18987:17;;18877:95;;-1:-1:-1;18987:21:0;18983:179;;19084:10;19073:30;;;;;;;;;;;;:::i;:::-;19065:85;;;;-1:-1:-1;;;19065:85:0;;32815:2:1;19065:85:0;;;32797:21:1;32854:2;32834:18;;;32827:30;32893:34;32873:18;;;32866:62;-1:-1:-1;;;32944:18:1;;;32937:40;32994:19;;19065:85:0;32613:406:1;90121:366:0;-1:-1:-1;;;;;;;;;;;;;90231:41:0;;;;77479:3;90317:33;;;90283:68;;-1:-1:-1;;;90283:68:0;-1:-1:-1;;;90381:24:0;;:29;;-1:-1:-1;;;90362:48:0;;;;78000:3;90450:28;;;;-1:-1:-1;;;90421:58:0;-1:-1:-1;90121:366:0:o;102720:691::-;102904:88;;-1:-1:-1;;;102904:88:0;;102883:4;;-1:-1:-1;;;;;102904:45:0;;;;;:88;;42131:10;;102971:4;;102977:7;;102986:5;;102904:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;102904:88:0;;;;;;;;-1:-1:-1;;102904:88:0;;;;;;;;;;;;:::i;:::-;;;102900:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103187:6;:13;103204:1;103187:18;103183:115;;103226:56;-1:-1:-1;;;103226:7:0;:56::i;:::-;103370:6;103364:13;103355:6;103351:2;103347:15;103340:38;102900:504;-1:-1:-1;;;;;;103063:64:0;-1:-1:-1;;;103063:64:0;;-1:-1:-1;102720:691:0;;;;;;:::o;36344:922::-;36397:7;;-1:-1:-1;;;36475:15:0;;36471:102;;-1:-1:-1;;;36511:15:0;;;-1:-1:-1;36555:2:0;36545:12;36471:102;36600:6;36591:5;:15;36587:102;;36636:6;36627:15;;;-1:-1:-1;36671:2:0;36661:12;36587:102;36716:6;36707:5;:15;36703:102;;36752:6;36743:15;;;-1:-1:-1;36787:2:0;36777:12;36703:102;36832:5;36823;:14;36819:99;;36867:5;36858:14;;;-1:-1:-1;36901:1:0;36891:11;36819:99;36945:5;36936;:14;36932:99;;36980:5;36971:14;;;-1:-1:-1;37014:1:0;37004:11;36932:99;37058:5;37049;:14;37045:99;;37093:5;37084:14;;;-1:-1:-1;37127:1:0;37117:11;37045:99;37171:5;37162;:14;37158:66;;37207:1;37197:11;37252:6;36344:922;-1:-1:-1;;36344:922:0:o;3990:229::-;4127:12;4159:52;4181:6;4189:4;4195:1;4198:12;4127;5398;5412:23;5439:6;-1:-1:-1;;;;;5439:11:0;5458:5;5465:4;5439:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5397:73;;;;5488:69;5515:6;5523:7;5532:10;5544:12;5488:26;:69::i;:::-;5481:76;5110:455;-1:-1:-1;;;;;;;5110:455:0:o;7683:644::-;7868:12;7897:7;7893:427;;;7925:10;:17;7946:1;7925:22;7921:290;;-1:-1:-1;;;;;1528:19:0;;;8135:60;;;;-1:-1:-1;;;8135:60:0;;34381:2:1;8135:60:0;;;34363:21:1;34420:2;34400:18;;;34393:30;34459:31;34439:18;;;34432:59;34508:18;;8135:60:0;34179:353:1;8135:60:0;-1:-1:-1;8232:10:0;8225:17;;7893:427;8275:33;8283:10;8295:12;9030:17;;:21;9026:388;;9262:10;9256:17;9319:15;9306:10;9302:2;9298:19;9291:44;9026:388;9389:12;9382:20;;-1:-1:-1;;;9382: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:131::-;-1:-1:-1;;;;;946:31:1;;936:42;;926:70;;992:1;989;982:12;1007:435;1074:6;1082;1135:2;1123:9;1114:7;1110:23;1106:32;1103:52;;;1151:1;1148;1141:12;1103:52;1190:9;1177:23;1209:31;1234:5;1209:31;:::i;:::-;1259:5;-1:-1:-1;1316:2:1;1301:18;;1288:32;-1:-1:-1;;;;;1351:40:1;;1339:53;;1329:81;;1406:1;1403;1396:12;1329:81;1429:7;1419:17;;;1007:435;;;;;:::o;1447:247::-;1506:6;1559:2;1547:9;1538:7;1534:23;1530:32;1527:52;;;1575:1;1572;1565:12;1527:52;1614:9;1601:23;1633:31;1658:5;1633:31;:::i;1699:250::-;1784:1;1794:113;1808:6;1805:1;1802:13;1794:113;;;1884:11;;;1878:18;1865:11;;;1858:39;1830:2;1823:10;1794:113;;;-1:-1:-1;;1941:1:1;1923:16;;1916:27;1699:250::o;1954:271::-;1996:3;2034:5;2028:12;2061:6;2056:3;2049:19;2077:76;2146:6;2139:4;2134:3;2130:14;2123:4;2116:5;2112:16;2077:76;:::i;:::-;2207:2;2186:15;-1:-1:-1;;2182:29:1;2173:39;;;;2214:4;2169:50;;1954:271;-1:-1:-1;;1954:271:1:o;2230:220::-;2379:2;2368:9;2361:21;2342:4;2399:45;2440:2;2429:9;2425:18;2417:6;2399:45;:::i;2455:180::-;2514:6;2567:2;2555:9;2546:7;2542:23;2538:32;2535:52;;;2583:1;2580;2573:12;2535:52;-1:-1:-1;2606:23:1;;2455:180;-1:-1:-1;2455:180:1:o;2848:315::-;2916:6;2924;2977:2;2965:9;2956:7;2952:23;2948:32;2945:52;;;2993:1;2990;2983:12;2945:52;3032:9;3019:23;3051:31;3076:5;3051:31;:::i;:::-;3101:5;3153:2;3138:18;;;;3125:32;;-1:-1:-1;;;2848:315:1:o;3168:163::-;3235:20;;3295:10;3284:22;;3274:33;;3264:61;;3321:1;3318;3311:12;3336:663;3414:6;3422;3430;3483:2;3471:9;3462:7;3458:23;3454:32;3451:52;;;3499:1;3496;3489:12;3451:52;3522:28;3540:9;3522:28;:::i;:::-;3512:38;;3601:2;3590:9;3586:18;3573:32;3624:18;3665:2;3657:6;3654:14;3651:34;;;3681:1;3678;3671:12;3651:34;3719:6;3708:9;3704:22;3694:32;;3764:7;3757:4;3753:2;3749:13;3745:27;3735:55;;3786:1;3783;3776:12;3735:55;3826:2;3813:16;3852:2;3844:6;3841:14;3838:34;;;3868:1;3865;3858:12;3838:34;3913:7;3908:2;3899:6;3895:2;3891:15;3887:24;3884:37;3881:57;;;3934:1;3931;3924:12;3881:57;3965:2;3961;3957:11;3947:21;;3987:6;3977:16;;;;;3336:663;;;;;:::o;4643:127::-;4704:10;4699:3;4695:20;4692:1;4685:31;4735:4;4732:1;4725:15;4759:4;4756:1;4749:15;4775:631;4839:5;4869:18;4910:2;4902:6;4899:14;4896:40;;;4916:18;;:::i;:::-;4991:2;4985:9;4959:2;5045:15;;-1:-1:-1;;5041:24:1;;;5067:2;5037:33;5033:42;5021:55;;;5091:18;;;5111:22;;;5088:46;5085:72;;;5137:18;;:::i;:::-;5177:10;5173:2;5166:22;5206:6;5197:15;;5236:6;5228;5221:22;5276:3;5267:6;5262:3;5258:16;5255:25;5252:45;;;5293:1;5290;5283:12;5252:45;5343:6;5338:3;5331:4;5323:6;5319:17;5306:44;5398:1;5391:4;5382:6;5374;5370:19;5366:30;5359:41;;;;4775:631;;;;;:::o;5411:220::-;5453:5;5506:3;5499:4;5491:6;5487:17;5483:27;5473:55;;5524:1;5521;5514:12;5473:55;5546:79;5621:3;5612:6;5599:20;5592:4;5584:6;5580:17;5546:79;:::i;5636:539::-;5722:6;5730;5783:2;5771:9;5762:7;5758:23;5754:32;5751:52;;;5799:1;5796;5789:12;5751:52;5839:9;5826:23;5868:18;5909:2;5901:6;5898:14;5895:34;;;5925:1;5922;5915:12;5895:34;5948:49;5989:7;5980:6;5969:9;5965:22;5948:49;:::i;:::-;5938:59;;6050:2;6039:9;6035:18;6022:32;6006:48;;6079:2;6069:8;6066:16;6063:36;;;6095:1;6092;6085:12;6063:36;;6118:51;6161:7;6150:8;6139:9;6135:24;6118:51;:::i;:::-;6108:61;;;5636:539;;;;;:::o;6180:456::-;6257:6;6265;6273;6326:2;6314:9;6305:7;6301:23;6297:32;6294:52;;;6342:1;6339;6332:12;6294:52;6381:9;6368:23;6400:31;6425:5;6400:31;:::i;:::-;6450:5;-1:-1:-1;6507:2:1;6492:18;;6479:32;6520:33;6479:32;6520:33;:::i;:::-;6180:456;;6572:7;;-1:-1:-1;;;6626:2:1;6611:18;;;;6598:32;;6180:456::o;6641:248::-;6709:6;6717;6770:2;6758:9;6749:7;6745:23;6741:32;6738:52;;;6786:1;6783;6776:12;6738:52;-1:-1:-1;;6809:23:1;;;6879:2;6864:18;;;6851:32;;-1:-1:-1;6641:248:1:o;6894:319::-;6961:6;6969;7022:2;7010:9;7001:7;6997:23;6993:32;6990:52;;;7038:1;7035;7028:12;6990:52;7077:9;7064:23;7096:31;7121:5;7096:31;:::i;:::-;7146:5;-1:-1:-1;7170:37:1;7203:2;7188:18;;7170:37;:::i;:::-;7160:47;;6894:319;;;;;:::o;7218:402::-;7300:6;7308;7361:2;7349:9;7340:7;7336:23;7332:32;7329:52;;;7377:1;7374;7367:12;7329:52;7416:9;7403:23;7435:31;7460:5;7435:31;:::i;:::-;7485:5;-1:-1:-1;7542:2:1;7527:18;;7514:32;7555:33;7514:32;7555:33;:::i;7865:450::-;7934:6;7987:2;7975:9;7966:7;7962:23;7958:32;7955:52;;;8003:1;8000;7993:12;7955:52;8043:9;8030:23;8076:18;8068:6;8065:30;8062:50;;;8108:1;8105;8098:12;8062:50;8131:22;;8184:4;8176:13;;8172:27;-1:-1:-1;8162:55:1;;8213:1;8210;8203:12;8162:55;8236:73;8301:7;8296:2;8283:16;8278:2;8274;8270:11;8236:73;:::i;8320:615::-;8406:6;8414;8467:2;8455:9;8446:7;8442:23;8438:32;8435:52;;;8483:1;8480;8473:12;8435:52;8523:9;8510:23;8552:18;8593:2;8585:6;8582:14;8579:34;;;8609:1;8606;8599:12;8579:34;8647:6;8636:9;8632:22;8622:32;;8692:7;8685:4;8681:2;8677:13;8673:27;8663:55;;8714:1;8711;8704:12;8663:55;8754:2;8741:16;8780:2;8772:6;8769:14;8766:34;;;8796:1;8793;8786:12;8766:34;8849:7;8844:2;8834:6;8831:1;8827:14;8823:2;8819:23;8815:32;8812:45;8809:65;;;8870:1;8867;8860:12;8809:65;8901:2;8893:11;;;;;8923:6;;-1:-1:-1;8320:615:1;;-1:-1:-1;;;;8320:615:1:o;8940:349::-;9024:12;;-1:-1:-1;;;;;9020:38:1;9008:51;;9112:4;9101:16;;;9095:23;9120:18;9091:48;9075:14;;;9068:72;9203:4;9192:16;;;9186:23;9179:31;9172:39;9156:14;;;9149:63;9265:4;9254:16;;;9248:23;9273:8;9244:38;9228:14;;9221:62;8940:349::o;9294:724::-;9529:2;9581:21;;;9651:13;;9554:18;;;9673:22;;;9500:4;;9529:2;9752:15;;;;9726:2;9711:18;;;9500:4;9795:197;9809:6;9806:1;9803:13;9795:197;;;9858:52;9906:3;9897:6;9891:13;9858:52;:::i;:::-;9967:15;;;;9939:4;9930:14;;;;;9831:1;9824:9;9795:197;;10023:632;10194:2;10246:21;;;10316:13;;10219:18;;;10338:22;;;10165:4;;10194:2;10417:15;;;;10391:2;10376:18;;;10165:4;10460:169;10474:6;10471:1;10468:13;10460:169;;;10535:13;;10523:26;;10604:15;;;;10569:12;;;;10496:1;10489:9;10460:169;;10660:383;10737:6;10745;10753;10806:2;10794:9;10785:7;10781:23;10777:32;10774:52;;;10822:1;10819;10812:12;10774:52;10861:9;10848:23;10880:31;10905:5;10880:31;:::i;:::-;10930:5;10982:2;10967:18;;10954:32;;-1:-1:-1;11033:2:1;11018:18;;;11005:32;;10660:383;-1:-1:-1;;;10660:383:1:o;11048:184::-;11106:6;11159:2;11147:9;11138:7;11134:23;11130:32;11127:52;;;11175:1;11172;11165:12;11127:52;11198:28;11216:9;11198:28;:::i;11237:118::-;11323:5;11316:13;11309:21;11302:5;11299:32;11289:60;;11345:1;11342;11335:12;11360:382;11425:6;11433;11486:2;11474:9;11465:7;11461:23;11457:32;11454:52;;;11502:1;11499;11492:12;11454:52;11541:9;11528:23;11560:31;11585:5;11560:31;:::i;:::-;11610:5;-1:-1:-1;11667:2:1;11652:18;;11639:32;11680:30;11639:32;11680:30;:::i;11747:665::-;11842:6;11850;11858;11866;11919:3;11907:9;11898:7;11894:23;11890:33;11887:53;;;11936:1;11933;11926:12;11887:53;11975:9;11962:23;11994:31;12019:5;11994:31;:::i;:::-;12044:5;-1:-1:-1;12101:2:1;12086:18;;12073:32;12114:33;12073:32;12114:33;:::i;:::-;12166:7;-1:-1:-1;12220:2:1;12205:18;;12192:32;;-1:-1:-1;12275:2:1;12260:18;;12247:32;12302:18;12291:30;;12288:50;;;12334:1;12331;12324:12;12288:50;12357:49;12398:7;12389:6;12378:9;12374:22;12357:49;:::i;:::-;12347:59;;;11747:665;;;;;;;:::o;12417:268::-;12615:3;12600:19;;12628:51;12604:9;12661:6;12628:51;:::i;12690:256::-;12756:6;12764;12817:2;12805:9;12796:7;12792:23;12788:32;12785:52;;;12833:1;12830;12823:12;12785:52;12856:28;12874:9;12856:28;:::i;13610:380::-;13689:1;13685:12;;;;13732;;;13753:61;;13807:4;13799:6;13795:17;13785:27;;13753:61;13860:2;13852:6;13849:14;13829:18;13826:38;13823:161;;13906:10;13901:3;13897:20;13894:1;13887:31;13941:4;13938:1;13931:15;13969:4;13966:1;13959:15;13823:161;;13610:380;;;:::o;14334:127::-;14395:10;14390:3;14386:20;14383:1;14376:31;14426:4;14423:1;14416:15;14450:4;14447:1;14440:15;14466:125;14531:9;;;14552:10;;;14549:36;;;14565:18;;:::i;14596:349::-;14798:2;14780:21;;;14837:2;14817:18;;;14810:30;14876:27;14871:2;14856:18;;14849:55;14936:2;14921:18;;14596:349::o;15667:402::-;15869:2;15851:21;;;15908:2;15888:18;;;15881:30;15947:34;15942:2;15927:18;;15920:62;-1:-1:-1;;;16013:2:1;15998:18;;15991:36;16059:3;16044:19;;15667:402::o;16074:407::-;16276:2;16258:21;;;16315:2;16295:18;;;16288:30;16354:34;16349:2;16334:18;;16327:62;-1:-1:-1;;;16420:2:1;16405:18;;16398:41;16471:3;16456:19;;16074:407::o;16773:287::-;16902:3;16940:6;16934:13;16956:66;17015:6;17010:3;17003:4;16995:6;16991:17;16956:66;:::i;:::-;17038:16;;;;;16773:287;-1:-1:-1;;16773:287:1:o;17450:168::-;17523:9;;;17554;;17571:15;;;17565:22;;17551:37;17541:71;;17592:18;;:::i;17755:217::-;17795:1;17821;17811:132;;17865:10;17860:3;17856:20;17853:1;17846:31;17900:4;17897:1;17890:15;17928:4;17925:1;17918:15;17811:132;-1:-1:-1;17957:9:1;;17755:217::o;18531:545::-;18633:2;18628:3;18625:11;18622:448;;;18669:1;18694:5;18690:2;18683:17;18739:4;18735:2;18725:19;18809:2;18797:10;18793:19;18790:1;18786:27;18780:4;18776:38;18845:4;18833:10;18830:20;18827:47;;;-1:-1:-1;18868:4:1;18827:47;18923:2;18918:3;18914:12;18911:1;18907:20;18901:4;18897:31;18887:41;;18978:82;18996:2;18989:5;18986:13;18978:82;;;19041:17;;;19022:1;19011:13;18978:82;;;18982:3;;;18531:545;;;:::o;19252:1352::-;19378:3;19372:10;19405:18;19397:6;19394:30;19391:56;;;19427:18;;:::i;:::-;19456:97;19546:6;19506:38;19538:4;19532:11;19506:38;:::i;:::-;19500:4;19456:97;:::i;:::-;19608:4;;19672:2;19661:14;;19689:1;19684:663;;;;20391:1;20408:6;20405:89;;;-1:-1:-1;20460:19:1;;;20454:26;20405:89;-1:-1:-1;;19209:1:1;19205:11;;;19201:24;19197:29;19187:40;19233:1;19229:11;;;19184:57;20507:81;;19654:944;;19684:663;18478:1;18471:14;;;18515:4;18502:18;;-1:-1:-1;;19720:20:1;;;19838:236;19852:7;19849:1;19846:14;19838:236;;;19941:19;;;19935:26;19920:42;;20033:27;;;;20001:1;19989:14;;;;19868:19;;19838:236;;;19842:3;20102:6;20093:7;20090:19;20087:201;;;20163:19;;;20157:26;-1:-1:-1;;20246:1:1;20242:14;;;20258:3;20238:24;20234:37;20230:42;20215:58;20200:74;;20087:201;-1:-1:-1;;;;;20334:1:1;20318:14;;;20314:22;20301:36;;-1:-1:-1;19252:1352:1:o;21677:127::-;21738:10;21733:3;21729:20;21726:1;21719:31;21769:4;21766:1;21759:15;21793:4;21790:1;21783:15;22936:184;23006:6;23059:2;23047:9;23038:7;23034:23;23030:32;23027:52;;;23075:1;23072;23065:12;23027:52;-1:-1:-1;23098:16:1;;22936:184;-1:-1:-1;22936:184:1:o;23541:663::-;23821:3;23859:6;23853:13;23875:66;23934:6;23929:3;23922:4;23914:6;23910:17;23875:66;:::i;:::-;24004:13;;23963:16;;;;24026:70;24004:13;23963:16;24073:4;24061:17;;24026:70;:::i;:::-;-1:-1:-1;;;24118:20:1;;24147:22;;;24196:1;24185:13;;23541:663;-1:-1:-1;;;;23541:663:1:o;28548:245::-;28615:6;28668:2;28656:9;28647:7;28643:23;28639:32;28636:52;;;28684:1;28681;28674:12;28636:52;28716:9;28710:16;28735:28;28757:5;28735:28;:::i;29839:175::-;29907:10;29950;;;29938;;;29934:27;;29973:12;;;29970:38;;;29988:18;;:::i;:::-;29970:38;29839:175;;;;:::o;32127:128::-;32194:9;;;32215:11;;;32212:37;;;32229:18;;:::i;33024:489::-;-1:-1:-1;;;;;33293:15:1;;;33275:34;;33345:15;;33340:2;33325:18;;33318:43;33392:2;33377:18;;33370:34;;;33440:3;33435:2;33420:18;;33413:31;;;33218:4;;33461:46;;33487:19;;33479:6;33461:46;:::i;:::-;33453:54;33024:489;-1:-1:-1;;;;;;33024:489:1:o;33518:249::-;33587:6;33640:2;33628:9;33619:7;33615:23;33611:32;33608:52;;;33656:1;33653;33646:12;33608:52;33688:9;33682:16;33707:30;33731:5;33707:30;:::i
Swarm Source
ipfs://be2d1dc3527a4ab2e380f754ffde9902e5e94cf411a462351c805cc814fef909
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.