ERC-20
Overview
Max Total Supply
1,024 PEAN
Holders
126
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
2.555392345418011435 PEANValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Peanutpods425
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-02-27 */ /** * @title Peanutpods425, the The First ERC425 Volatility Farming * @author [email protected] * website: https://peanutpods425.com * dapp: https://app.peanutpods425.com * telegram: https://t.me/PeanutPods425 * docs: https://docs.peanutpods425.com */ // SPDX-License-Identifier: MIT AND UNLICENSED // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File @openzeppelin/contracts/access/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/utils/math/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 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 256, 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 << 3) < value ? 1 : 0); } } } // File @openzeppelin/contracts/utils/math/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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 `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } // File dn404/src/[email protected] // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.4; /// @title DN404 /// @notice DN404 is a hybrid ERC20 and ERC721 implementation that mints /// and burns NFTs based on an account's ERC20 token balance. /// /// @author vectorized.eth (@optimizoor) /// @author Quit (@0xQuit) /// @author Michael Amadi (@AmadiMichaels) /// @author cygaar (@0xCygaar) /// @author Thomas (@0xjustadev) /// @author Harrison (@PopPunkOnChain) /// /// @dev Note: /// - The ERC721 data is stored in this base DN404 contract, however a /// DN404Mirror contract ***MUST*** be deployed and linked during /// initialization. abstract contract DN404 { /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* EVENTS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Emitted when `amount` tokens is transferred from `from` to `to`. event Transfer(address indexed from, address indexed to, uint256 amount); /// @dev Emitted when `amount` tokens is approved by `owner` to be used by `spender`. event Approval(address indexed owner, address indexed spender, uint256 amount); /// @dev Emitted when `target` sets their skipNFT flag to `status`. event SkipNFTSet(address indexed target, bool status); /// @dev `keccak256(bytes("Transfer(address,address,uint256)"))`. uint256 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; /// @dev `keccak256(bytes("Approval(address,address,uint256)"))`. uint256 private constant _APPROVAL_EVENT_SIGNATURE = 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925; /// @dev `keccak256(bytes("SkipNFTSet(address,bool)"))`. uint256 private constant _SKIP_NFT_SET_EVENT_SIGNATURE = 0xb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d6420393; /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* CUSTOM ERRORS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Thrown when attempting to double-initialize the contract. error DNAlreadyInitialized(); /// @dev Thrown when attempting to transfer or burn more tokens than sender's balance. error InsufficientBalance(); /// @dev Thrown when a spender attempts to transfer tokens with an insufficient allowance. error InsufficientAllowance(); /// @dev Thrown when minting an amount of tokens that would overflow the max tokens. error TotalSupplyOverflow(); /// @dev The unit cannot be zero. error UnitIsZero(); /// @dev Thrown when the caller for a fallback NFT function is not the mirror contract. error SenderNotMirror(); /// @dev Thrown when attempting to transfer tokens to the zero address. error TransferToZeroAddress(); /// @dev Thrown when the mirror address provided for initialization is the zero address. error MirrorAddressIsZero(); /// @dev Thrown when the link call to the mirror contract reverts. error LinkMirrorContractFailed(); /// @dev Thrown when setting an NFT token approval /// and the caller is not the owner or an approved operator. error ApprovalCallerNotOwnerNorApproved(); /// @dev Thrown when transferring an NFT /// and the caller is not the owner or an approved operator. error TransferCallerNotOwnerNorApproved(); /// @dev Thrown when transferring an NFT and the from address is not the current owner. error TransferFromIncorrectOwner(); /// @dev Thrown when checking the owner or approved address for a non-existent NFT. error TokenDoesNotExist(); /// @dev The function selector is not recognized. error FnSelectorNotRecognized(); /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* CONSTANTS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev The flag to denote that the address data is initialized. uint8 internal constant _ADDRESS_DATA_INITIALIZED_FLAG = 1 << 0; /// @dev The flag to denote that the address should skip NFTs. uint8 internal constant _ADDRESS_DATA_SKIP_NFT_FLAG = 1 << 1; /// @dev The flag to denote that the address has overridden the default Permit2 allowance. uint8 internal constant _ADDRESS_DATA_OVERRIDE_PERMIT2_FLAG = 1 << 2; /// @dev The canonical Permit2 address. /// For signature-based allowance granting for single transaction ERC20 `transferFrom`. /// To enable, override `_givePermit2DefaultInfiniteAllowance()`. /// [Github](https://github.com/Uniswap/permit2) /// [Etherscan](https://etherscan.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3) address internal constant _PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3; /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* STORAGE */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Struct containing an address's token data and settings. struct AddressData { // Auxiliary data. uint88 aux; // Flags for `initialized` and `skipNFT`. uint8 flags; // The alias for the address. Zero means absence of an alias. uint32 addressAlias; // The number of NFT tokens. uint32 ownedLength; // The token balance in wei. uint96 balance; } /// @dev A uint32 map in storage. struct Uint32Map { uint256 spacer; } /// @dev A bitmap in storage. struct Bitmap { uint256 spacer; } /// @dev A struct to wrap a uint256 in storage. struct Uint256Ref { uint256 value; } /// @dev A mapping of an address pair to a Uint256Ref. struct AddressPairToUint256RefMap { uint256 spacer; } /// @dev Struct containing the base token contract storage. struct DN404Storage { // Current number of address aliases assigned. uint32 numAliases; // Next NFT ID to assign for a mint. uint32 nextTokenId; // The head of the burned pool. uint32 burnedPoolHead; // The tail of the burned pool. uint32 burnedPoolTail; // Total number of NFTs in existence. uint32 totalNFTSupply; // Total supply of tokens. uint96 totalSupply; // Address of the NFT mirror contract. address mirrorERC721; // Mapping of a user alias number to their address. mapping(uint32 => address) aliasToAddress; // Mapping of user operator approvals for NFTs. AddressPairToUint256RefMap operatorApprovals; // Mapping of NFT approvals to approved operators. mapping(uint256 => address) nftApprovals; // Bitmap of whether an non-zero NFT approval may exist. Bitmap mayHaveNFTApproval; // Bitmap of whether a NFT ID exists. Ignored if `_useExistsLookup()` returns false. Bitmap exists; // Mapping of user allowances for ERC20 spenders. AddressPairToUint256RefMap allowance; // Mapping of NFT IDs owned by an address. mapping(address => Uint32Map) owned; // The pool of burned NFT IDs. Uint32Map burnedPool; // Even indices: owner aliases. Odd indices: owned indices. Uint32Map oo; // Mapping of user account AddressData. mapping(address => AddressData) addressData; } /// @dev Returns a storage pointer for DN404Storage. function _getDN404Storage() internal pure virtual returns (DN404Storage storage $) { /// @solidity memory-safe-assembly assembly { // `uint72(bytes9(keccak256("DN404_STORAGE")))`. $.slot := 0xa20d6e21d0e5255308 // Truncate to 9 bytes to reduce bytecode size. } } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* INITIALIZER */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Initializes the DN404 contract with an /// `initialTokenSupply`, `initialTokenOwner` and `mirror` NFT contract address. function _initializeDN404( uint256 initialTokenSupply, address initialSupplyOwner, address mirror ) internal virtual { DN404Storage storage $ = _getDN404Storage(); if (_unit() == 0) revert UnitIsZero(); if ($.mirrorERC721 != address(0)) revert DNAlreadyInitialized(); if (mirror == address(0)) revert MirrorAddressIsZero(); /// @solidity memory-safe-assembly assembly { // Make the call to link the mirror contract. mstore(0x00, 0x0f4599e5) // `linkMirrorContract(address)`. mstore(0x20, caller()) if iszero(and(eq(mload(0x00), 1), call(gas(), mirror, 0, 0x1c, 0x24, 0x00, 0x20))) { mstore(0x00, 0xd125259c) // `LinkMirrorContractFailed()`. revert(0x1c, 0x04) } } $.nextTokenId = 1; $.mirrorERC721 = mirror; if (initialTokenSupply != 0) { if (initialSupplyOwner == address(0)) revert TransferToZeroAddress(); if (_totalSupplyOverflows(initialTokenSupply)) revert TotalSupplyOverflow(); $.totalSupply = uint96(initialTokenSupply); AddressData storage initialOwnerAddressData = _addressData(initialSupplyOwner); initialOwnerAddressData.balance = uint96(initialTokenSupply); /// @solidity memory-safe-assembly assembly { // Emit the {Transfer} event. mstore(0x00, initialTokenSupply) log3(0x00, 0x20, _TRANSFER_EVENT_SIGNATURE, 0, shr(96, shl(96, initialSupplyOwner))) } _setSkipNFT(initialSupplyOwner, true); } } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* BASE UNIT FUNCTION TO OVERRIDE */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Amount of token balance that is equal to one NFT. function _unit() internal view virtual returns (uint256) { return 10 ** 18; } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* METADATA FUNCTIONS TO OVERRIDE */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Returns the name of the token. function name() public view virtual returns (string memory); /// @dev Returns the symbol of the token. function symbol() public view virtual returns (string memory); /// @dev Returns the Uniform Resource Identifier (URI) for token `id`. function tokenURI(uint256 id) public view virtual returns (string memory); /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* CONFIGURABLES */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Returns if direct NFT transfers should be used during ERC20 transfers /// whenever possible, instead of burning and re-minting. function _useDirectTransfersIfPossible() internal view virtual returns (bool) { return true; } /// @dev Returns if burns should be added to the burn pool. /// This returns false by default, which means the NFT IDs are re-minted in a cycle. function _addToBurnedPool(uint256 totalNFTSupplyAfterBurn, uint256 totalSupplyAfterBurn) internal view virtual returns (bool) { // Silence unused variable compiler warning. totalSupplyAfterBurn = totalNFTSupplyAfterBurn; return false; } /// @dev Returns whether to use the exists bitmap for more efficient /// scanning of an empty token ID slot. /// Recommended for collections that do not use the burn pool, /// and are expected to have nearly all possible NFTs materialized. /// /// Note: The returned value must be constant after initialization. function _useExistsLookup() internal view virtual returns (bool) { return true; } /// @dev Hook that is called after any NFT token transfers, including minting and burning. function _afterNFTTransfer(address from, address to, uint256 id) internal virtual {} /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* ERC20 OPERATIONS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Returns the decimals places of the token. Always 18. function decimals() public pure returns (uint8) { return 18; } /// @dev Returns the amount of tokens in existence. function totalSupply() public view virtual returns (uint256) { return uint256(_getDN404Storage().totalSupply); } /// @dev Returns the amount of tokens owned by `owner`. function balanceOf(address owner) public view virtual returns (uint256) { return _getDN404Storage().addressData[owner].balance; } /// @dev Returns the amount of tokens that `spender` can spend on behalf of `owner`. function allowance(address owner, address spender) public view returns (uint256) { if (_givePermit2DefaultInfiniteAllowance() && spender == _PERMIT2) { uint8 flags = _getDN404Storage().addressData[owner].flags; if (flags & _ADDRESS_DATA_OVERRIDE_PERMIT2_FLAG == 0) return type(uint256).max; } return _ref(_getDN404Storage().allowance, owner, spender).value; } /// @dev Sets `amount` as the allowance of `spender` over the caller's tokens. /// /// Emits a {Approval} event. function approve(address spender, uint256 amount) public virtual returns (bool) { _approve(msg.sender, spender, amount); return true; } /// @dev Transfer `amount` tokens from the caller to `to`. /// /// Will burn sender NFTs if balance after transfer is less than /// the amount required to support the current NFT balance. /// /// Will mint NFTs to `to` if the recipient's new balance supports /// additional NFTs ***AND*** the `to` address's skipNFT flag is /// set to false. /// /// Requirements: /// - `from` must at least have `amount`. /// /// Emits a {Transfer} event. function transfer(address to, uint256 amount) public virtual returns (bool) { _transfer(msg.sender, to, amount); return true; } /// @dev Transfers `amount` tokens from `from` to `to`. /// /// Note: Does not update the allowance if it is the maximum uint256 value. /// /// Will burn sender NFTs if balance after transfer is less than /// the amount required to support the current NFT balance. /// /// Will mint NFTs to `to` if the recipient's new balance supports /// additional NFTs ***AND*** the `to` address's skipNFT flag is /// set to false. /// /// Requirements: /// - `from` must at least have `amount`. /// - The caller must have at least `amount` of allowance to transfer the tokens of `from`. /// /// Emits a {Transfer} event. function transferFrom(address from, address to, uint256 amount) public virtual returns (bool) { Uint256Ref storage a = _ref(_getDN404Storage().allowance, from, msg.sender); uint256 allowed = _givePermit2DefaultInfiniteAllowance() && msg.sender == _PERMIT2 && (_getDN404Storage().addressData[from].flags & _ADDRESS_DATA_OVERRIDE_PERMIT2_FLAG) == 0 ? type(uint256).max : a.value; if (allowed != type(uint256).max) { if (amount > allowed) revert InsufficientAllowance(); unchecked { a.value = allowed - amount; } } _transfer(from, to, amount); return true; } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* PERMIT2 */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Whether Permit2 has infinite allowances by default for all owners. /// For signature-based allowance granting for single transaction ERC20 `transferFrom`. /// To enable, override this function to return true. function _givePermit2DefaultInfiniteAllowance() internal view virtual returns (bool) { return false; } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* INTERNAL MINT FUNCTIONS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Mints `amount` tokens to `to`, increasing the total supply. /// /// Will mint NFTs to `to` if the recipient's new balance supports /// additional NFTs ***AND*** the `to` address's skipNFT flag is set to false. /// /// Emits a {Transfer} event. function _mint(address to, uint256 amount) internal virtual { if (to == address(0)) revert TransferToZeroAddress(); AddressData storage toAddressData = _addressData(to); DN404Storage storage $ = _getDN404Storage(); if ($.mirrorERC721 == address(0)) revert(); _DNMintTemps memory t; unchecked { uint256 toBalance = uint256(toAddressData.balance) + amount; toAddressData.balance = uint96(toBalance); t.toEnd = toBalance / _unit(); } uint256 maxId; unchecked { uint256 totalSupply_ = uint256($.totalSupply) + amount; $.totalSupply = uint96(totalSupply_); uint256 overflows = _toUint(_totalSupplyOverflows(totalSupply_)); if (overflows | _toUint(totalSupply_ < amount) != 0) revert TotalSupplyOverflow(); maxId = totalSupply_ / _unit(); } unchecked { if (toAddressData.flags & _ADDRESS_DATA_SKIP_NFT_FLAG == 0) { Uint32Map storage toOwned = $.owned[to]; Uint32Map storage oo = $.oo; uint256 toIndex = toAddressData.ownedLength; _DNPackedLogs memory packedLogs = _packedLogsMalloc(_zeroFloorSub(t.toEnd, toIndex)); if (packedLogs.logs.length != 0) { _packedLogsSet(packedLogs, to, 0); $.totalNFTSupply += uint32(packedLogs.logs.length); toAddressData.ownedLength = uint32(t.toEnd); t.toAlias = _registerAndResolveAlias(toAddressData, to); uint32 burnedPoolHead = $.burnedPoolHead; t.burnedPoolTail = $.burnedPoolTail; t.nextTokenId = _wrapNFTId($.nextTokenId, maxId); // Mint loop. do { uint256 id; if (burnedPoolHead != t.burnedPoolTail) { id = _get($.burnedPool, burnedPoolHead++); } else { id = t.nextTokenId; while (_get(oo, _ownershipIndex(id)) != 0) { id = _useExistsLookup() ? _wrapNFTId(_findFirstUnset($.exists, id + 1, maxId + 1), maxId) : _wrapNFTId(id + 1, maxId); } t.nextTokenId = _wrapNFTId(id + 1, maxId); } if (_useExistsLookup()) _set($.exists, id, true); _set(toOwned, toIndex, uint32(id)); _setOwnerAliasAndOwnedIndex(oo, id, t.toAlias, uint32(toIndex++)); _packedLogsAppend(packedLogs, id); _afterNFTTransfer(address(0), to, id); } while (toIndex != t.toEnd); $.nextTokenId = uint32(t.nextTokenId); $.burnedPoolHead = burnedPoolHead; _packedLogsSend(packedLogs, $.mirrorERC721); } } } /// @solidity memory-safe-assembly assembly { // Emit the {Transfer} event. mstore(0x00, amount) log3(0x00, 0x20, _TRANSFER_EVENT_SIGNATURE, 0, shr(96, shl(96, to))) } } /// @dev Mints `amount` tokens to `to`, increasing the total supply. /// This variant mints NFT tokens starting from ID `preTotalSupply / _unit() + 1`. /// This variant will not touch the `burnedPool` and `nextTokenId`. /// /// Will mint NFTs to `to` if the recipient's new balance supports /// additional NFTs ***AND*** the `to` address's skipNFT flag is set to false. /// /// Emits a {Transfer} event. function _mintNext(address to, uint256 amount) internal virtual { if (to == address(0)) revert TransferToZeroAddress(); AddressData storage toAddressData = _addressData(to); DN404Storage storage $ = _getDN404Storage(); if ($.mirrorERC721 == address(0)) revert(); _DNMintTemps memory t; unchecked { uint256 toBalance = uint256(toAddressData.balance) + amount; toAddressData.balance = uint96(toBalance); t.toEnd = toBalance / _unit(); } uint256 startId; uint256 maxId; unchecked { uint256 preTotalSupply = uint256($.totalSupply); startId = preTotalSupply / _unit() + 1; uint256 totalSupply_ = uint256(preTotalSupply) + amount; $.totalSupply = uint96(totalSupply_); uint256 overflows = _toUint(_totalSupplyOverflows(totalSupply_)); if (overflows | _toUint(totalSupply_ < amount) != 0) revert TotalSupplyOverflow(); maxId = totalSupply_ / _unit(); } unchecked { if (toAddressData.flags & _ADDRESS_DATA_SKIP_NFT_FLAG == 0) { Uint32Map storage toOwned = $.owned[to]; Uint32Map storage oo = $.oo; uint256 toIndex = toAddressData.ownedLength; _DNPackedLogs memory packedLogs = _packedLogsMalloc(_zeroFloorSub(t.toEnd, toIndex)); if (packedLogs.logs.length != 0) { _packedLogsSet(packedLogs, to, 0); $.totalNFTSupply += uint32(packedLogs.logs.length); toAddressData.ownedLength = uint32(t.toEnd); t.toAlias = _registerAndResolveAlias(toAddressData, to); // Mint loop. do { uint256 id = startId; while (_get(oo, _ownershipIndex(id)) != 0) { id = _useExistsLookup() ? _wrapNFTId(_findFirstUnset($.exists, id + 1, maxId + 1), maxId) : _wrapNFTId(id + 1, maxId); } startId = _wrapNFTId(id + 1, maxId); if (_useExistsLookup()) _set($.exists, id, true); _set(toOwned, toIndex, uint32(id)); _setOwnerAliasAndOwnedIndex(oo, id, t.toAlias, uint32(toIndex++)); _packedLogsAppend(packedLogs, id); _afterNFTTransfer(address(0), to, id); } while (toIndex != t.toEnd); _packedLogsSend(packedLogs, $.mirrorERC721); } } } /// @solidity memory-safe-assembly assembly { // Emit the {Transfer} event. mstore(0x00, amount) log3(0x00, 0x20, _TRANSFER_EVENT_SIGNATURE, 0, shr(96, shl(96, to))) } } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* INTERNAL BURN FUNCTIONS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Burns `amount` tokens from `from`, reducing the total supply. /// /// Will burn sender NFTs if balance after transfer is less than /// the amount required to support the current NFT balance. /// /// Emits a {Transfer} event. function _burn(address from, uint256 amount) internal virtual { AddressData storage fromAddressData = _addressData(from); DN404Storage storage $ = _getDN404Storage(); if ($.mirrorERC721 == address(0)) revert(); uint256 fromBalance = fromAddressData.balance; if (amount > fromBalance) revert InsufficientBalance(); unchecked { fromAddressData.balance = uint96(fromBalance -= amount); uint256 totalSupply_ = uint256($.totalSupply) - amount; $.totalSupply = uint96(totalSupply_); Uint32Map storage fromOwned = $.owned[from]; uint256 fromIndex = fromAddressData.ownedLength; uint256 numNFTBurns = _zeroFloorSub(fromIndex, fromBalance / _unit()); if (numNFTBurns != 0) { _DNPackedLogs memory packedLogs = _packedLogsMalloc(numNFTBurns); _packedLogsSet(packedLogs, from, 1); bool addToBurnedPool; { uint256 totalNFTSupply = uint256($.totalNFTSupply) - numNFTBurns; $.totalNFTSupply = uint32(totalNFTSupply); addToBurnedPool = _addToBurnedPool(totalNFTSupply, totalSupply_); } Uint32Map storage oo = $.oo; uint256 fromEnd = fromIndex - numNFTBurns; fromAddressData.ownedLength = uint32(fromEnd); uint32 burnedPoolTail = $.burnedPoolTail; // Burn loop. do { uint256 id = _get(fromOwned, --fromIndex); _setOwnerAliasAndOwnedIndex(oo, id, 0, 0); _packedLogsAppend(packedLogs, id); if (_useExistsLookup()) _set($.exists, id, false); if (addToBurnedPool) _set($.burnedPool, burnedPoolTail++, uint32(id)); if (_get($.mayHaveNFTApproval, id)) { _set($.mayHaveNFTApproval, id, false); delete $.nftApprovals[id]; } _afterNFTTransfer(from, address(0), id); } while (fromIndex != fromEnd); if (addToBurnedPool) $.burnedPoolTail = burnedPoolTail; _packedLogsSend(packedLogs, $.mirrorERC721); } } /// @solidity memory-safe-assembly assembly { // Emit the {Transfer} event. mstore(0x00, amount) log3(0x00, 0x20, _TRANSFER_EVENT_SIGNATURE, shr(96, shl(96, from)), 0) } } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* INTERNAL TRANSFER FUNCTIONS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Moves `amount` of tokens from `from` to `to`. /// /// Will burn sender NFTs if balance after transfer is less than /// the amount required to support the current NFT balance. /// /// Will mint NFTs to `to` if the recipient's new balance supports /// additional NFTs ***AND*** the `to` address's skipNFT flag is /// set to false. /// /// Emits a {Transfer} event. function _transfer(address from, address to, uint256 amount) internal virtual { if (to == address(0)) revert TransferToZeroAddress(); AddressData storage fromAddressData = _addressData(from); AddressData storage toAddressData = _addressData(to); DN404Storage storage $ = _getDN404Storage(); if ($.mirrorERC721 == address(0)) revert(); _DNTransferTemps memory t; t.fromOwnedLength = fromAddressData.ownedLength; t.toOwnedLength = toAddressData.ownedLength; t.totalSupply = $.totalSupply; if (amount > (t.fromBalance = fromAddressData.balance)) revert InsufficientBalance(); unchecked { fromAddressData.balance = uint96(t.fromBalance -= amount); toAddressData.balance = uint96(t.toBalance = uint256(toAddressData.balance) + amount); t.numNFTBurns = _zeroFloorSub(t.fromOwnedLength, t.fromBalance / _unit()); if (toAddressData.flags & _ADDRESS_DATA_SKIP_NFT_FLAG == 0) { if (from == to) t.toOwnedLength = t.fromOwnedLength - t.numNFTBurns; t.numNFTMints = _zeroFloorSub(t.toBalance / _unit(), t.toOwnedLength); } while (_useDirectTransfersIfPossible()) { uint256 n = _min(t.fromOwnedLength, _min(t.numNFTBurns, t.numNFTMints)); if (n == 0) break; t.numNFTBurns -= n; t.numNFTMints -= n; if (from == to) { t.toOwnedLength += n; break; } _DNDirectLogs memory directLogs = _directLogsMalloc(n, from, to); Uint32Map storage fromOwned = $.owned[from]; Uint32Map storage toOwned = $.owned[to]; t.toAlias = _registerAndResolveAlias(toAddressData, to); uint256 toIndex = t.toOwnedLength; // Direct transfer loop. do { uint256 id = _get(fromOwned, --t.fromOwnedLength); _set(toOwned, toIndex, uint32(id)); _setOwnerAliasAndOwnedIndex($.oo, id, t.toAlias, uint32(toIndex++)); _directLogsAppend(directLogs, id); if (_get($.mayHaveNFTApproval, id)) { _set($.mayHaveNFTApproval, id, false); delete $.nftApprovals[id]; } _afterNFTTransfer(from, to, id); } while (--n != 0); toAddressData.ownedLength = uint32(t.toOwnedLength = toIndex); fromAddressData.ownedLength = uint32(t.fromOwnedLength); _directLogsSend(directLogs, $.mirrorERC721); break; } t.totalNFTSupply = uint256($.totalNFTSupply) + t.numNFTMints - t.numNFTBurns; $.totalNFTSupply = uint32(t.totalNFTSupply); Uint32Map storage oo = $.oo; _DNPackedLogs memory packedLogs = _packedLogsMalloc(t.numNFTBurns + t.numNFTMints); t.burnedPoolTail = $.burnedPoolTail; if (t.numNFTBurns != 0) { _packedLogsSet(packedLogs, from, 1); bool addToBurnedPool = _addToBurnedPool(t.totalNFTSupply, t.totalSupply); Uint32Map storage fromOwned = $.owned[from]; uint256 fromIndex = t.fromOwnedLength; fromAddressData.ownedLength = uint32(t.fromEnd = fromIndex - t.numNFTBurns); uint32 burnedPoolTail = t.burnedPoolTail; // Burn loop. do { uint256 id = _get(fromOwned, --fromIndex); _setOwnerAliasAndOwnedIndex(oo, id, 0, 0); _packedLogsAppend(packedLogs, id); if (_useExistsLookup()) _set($.exists, id, false); if (addToBurnedPool) _set($.burnedPool, burnedPoolTail++, uint32(id)); if (_get($.mayHaveNFTApproval, id)) { _set($.mayHaveNFTApproval, id, false); delete $.nftApprovals[id]; } _afterNFTTransfer(from, address(0), id); } while (fromIndex != t.fromEnd); if (addToBurnedPool) $.burnedPoolTail = (t.burnedPoolTail = burnedPoolTail); } if (t.numNFTMints != 0) { _packedLogsSet(packedLogs, to, 0); Uint32Map storage toOwned = $.owned[to]; t.toAlias = _registerAndResolveAlias(toAddressData, to); uint256 maxId = t.totalSupply / _unit(); t.nextTokenId = _wrapNFTId($.nextTokenId, maxId); uint256 toIndex = t.toOwnedLength; toAddressData.ownedLength = uint32(t.toEnd = toIndex + t.numNFTMints); uint32 burnedPoolHead = $.burnedPoolHead; // Mint loop. do { uint256 id; if (burnedPoolHead != t.burnedPoolTail) { id = _get($.burnedPool, burnedPoolHead++); } else { id = t.nextTokenId; while (_get(oo, _ownershipIndex(id)) != 0) { id = _useExistsLookup() ? _wrapNFTId(_findFirstUnset($.exists, id + 1, maxId + 1), maxId) : _wrapNFTId(id + 1, maxId); } t.nextTokenId = _wrapNFTId(id + 1, maxId); } if (_useExistsLookup()) _set($.exists, id, true); _set(toOwned, toIndex, uint32(id)); _setOwnerAliasAndOwnedIndex(oo, id, t.toAlias, uint32(toIndex++)); _packedLogsAppend(packedLogs, id); _afterNFTTransfer(address(0), to, id); } while (toIndex != t.toEnd); $.burnedPoolHead = burnedPoolHead; $.nextTokenId = uint32(t.nextTokenId); } if (packedLogs.logs.length != 0) _packedLogsSend(packedLogs, $.mirrorERC721); } /// @solidity memory-safe-assembly assembly { // Emit the {Transfer} event. mstore(0x00, amount) // forgefmt: disable-next-item log3(0x00, 0x20, _TRANSFER_EVENT_SIGNATURE, shr(96, shl(96, from)), shr(96, shl(96, to))) } } /// @dev Transfers token `id` from `from` to `to`. /// /// Requirements: /// /// - Call must originate from the mirror contract. /// - Token `id` must exist. /// - `from` must be the owner of the token. /// - `to` cannot be the zero address. /// `msgSender` must be the owner of the token, or be approved to manage the token. /// /// Emits a {Transfer} event. function _transferFromNFT(address from, address to, uint256 id, address msgSender) internal virtual { if (to == address(0)) revert TransferToZeroAddress(); DN404Storage storage $ = _getDN404Storage(); if ($.mirrorERC721 == address(0)) revert(); Uint32Map storage oo = $.oo; if (from != $.aliasToAddress[_get(oo, _ownershipIndex(_restrictNFTId(id)))]) { revert TransferFromIncorrectOwner(); } if (msgSender != from) { if (_ref($.operatorApprovals, from, msgSender).value == 0) { if (msgSender != $.nftApprovals[id]) { revert TransferCallerNotOwnerNorApproved(); } } } AddressData storage fromAddressData = _addressData(from); AddressData storage toAddressData = _addressData(to); uint256 unit = _unit(); mapping(address => Uint32Map) storage owned = $.owned; Uint32Map storage fromOwned = owned[from]; unchecked { uint256 fromBalance = fromAddressData.balance; if (unit > fromBalance) revert InsufficientBalance(); fromAddressData.balance = uint96(fromBalance - unit); toAddressData.balance += uint96(unit); } if (_get($.mayHaveNFTApproval, id)) { _set($.mayHaveNFTApproval, id, false); delete $.nftApprovals[id]; } unchecked { uint32 updatedId = _get(fromOwned, --fromAddressData.ownedLength); uint32 i = _get(oo, _ownedIndex(id)); _set(fromOwned, i, updatedId); _set(oo, _ownedIndex(updatedId), i); } unchecked { uint32 n = toAddressData.ownedLength++; _set(owned[to], n, uint32(id)); _setOwnerAliasAndOwnedIndex(oo, id, _registerAndResolveAlias(toAddressData, to), n); } _afterNFTTransfer(from, to, id); /// @solidity memory-safe-assembly assembly { // Emit the {Transfer} event. mstore(0x00, unit) // forgefmt: disable-next-item log3(0x00, 0x20, _TRANSFER_EVENT_SIGNATURE, shr(96, shl(96, from)), shr(96, shl(96, to))) } } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* INTERNAL APPROVE FUNCTIONS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Sets `amount` as the allowance of `spender` over the tokens of `owner`. /// /// Emits a {Approval} event. function _approve(address owner, address spender, uint256 amount) internal virtual { if (_givePermit2DefaultInfiniteAllowance() && spender == _PERMIT2) { _getDN404Storage().addressData[owner].flags |= _ADDRESS_DATA_OVERRIDE_PERMIT2_FLAG; } _ref(_getDN404Storage().allowance, owner, spender).value = amount; /// @solidity memory-safe-assembly assembly { // Emit the {Approval} event. mstore(0x00, amount) // forgefmt: disable-next-item log3(0x00, 0x20, _APPROVAL_EVENT_SIGNATURE, shr(96, shl(96, owner)), shr(96, shl(96, spender))) } } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* DATA HITCHHIKING FUNCTIONS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Returns the auxiliary data for `owner`. /// Minting, transferring, burning the tokens of `owner` will not change the auxiliary data. /// Auxiliary data can be set for any address, even if it does not have any tokens. function _getAux(address owner) internal view virtual returns (uint88) { return _getDN404Storage().addressData[owner].aux; } /// @dev Set the auxiliary data for `owner` to `value`. /// Minting, transferring, burning the tokens of `owner` will not change the auxiliary data. /// Auxiliary data can be set for any address, even if it does not have any tokens. function _setAux(address owner, uint88 value) internal virtual { _getDN404Storage().addressData[owner].aux = value; } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* SKIP NFT FUNCTIONS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Returns true if minting and transferring ERC20s to `owner` will skip minting NFTs. /// Returns false otherwise. function getSkipNFT(address owner) public view virtual returns (bool) { AddressData storage d = _getDN404Storage().addressData[owner]; if (d.flags & _ADDRESS_DATA_INITIALIZED_FLAG == 0) return _hasCode(owner); return d.flags & _ADDRESS_DATA_SKIP_NFT_FLAG != 0; } /// @dev Sets the caller's skipNFT flag to `skipNFT`. Returns true. /// /// Emits a {SkipNFTSet} event. function setSkipNFT(bool skipNFT) public virtual returns (bool) { _setSkipNFT(msg.sender, skipNFT); return true; } /// @dev Internal function to set account `owner` skipNFT flag to `state` /// /// Initializes account `owner` AddressData if it is not currently initialized. /// /// Emits a {SkipNFTSet} event. function _setSkipNFT(address owner, bool state) internal virtual { AddressData storage d = _addressData(owner); if ((d.flags & _ADDRESS_DATA_SKIP_NFT_FLAG != 0) != state) { d.flags ^= _ADDRESS_DATA_SKIP_NFT_FLAG; } /// @solidity memory-safe-assembly assembly { mstore(0x00, iszero(iszero(state))) log2(0x00, 0x20, _SKIP_NFT_SET_EVENT_SIGNATURE, shr(96, shl(96, owner))) } } /// @dev Returns a storage data pointer for account `owner` AddressData /// /// Initializes account `owner` AddressData if it is not currently initialized. function _addressData(address owner) internal virtual returns (AddressData storage d) { d = _getDN404Storage().addressData[owner]; unchecked { if (d.flags & _ADDRESS_DATA_INITIALIZED_FLAG == 0) { uint256 skipNFT = _toUint(_hasCode(owner)) * _ADDRESS_DATA_SKIP_NFT_FLAG; d.flags = uint8(skipNFT | _ADDRESS_DATA_INITIALIZED_FLAG); } } } /// @dev Returns the `addressAlias` of account `to`. /// /// Assigns and registers the next alias if `to` alias was not previously registered. function _registerAndResolveAlias(AddressData storage toAddressData, address to) internal virtual returns (uint32 addressAlias) { DN404Storage storage $ = _getDN404Storage(); addressAlias = toAddressData.addressAlias; if (addressAlias == 0) { unchecked { addressAlias = ++$.numAliases; } toAddressData.addressAlias = addressAlias; $.aliasToAddress[addressAlias] = to; if (addressAlias == 0) revert(); // Overflow. } } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* MIRROR OPERATIONS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Returns the address of the mirror NFT contract. function mirrorERC721() public view virtual returns (address) { return _getDN404Storage().mirrorERC721; } /// @dev Returns the total NFT supply. function _totalNFTSupply() internal view virtual returns (uint256) { return _getDN404Storage().totalNFTSupply; } /// @dev Returns `owner` NFT balance. function _balanceOfNFT(address owner) internal view virtual returns (uint256) { return _getDN404Storage().addressData[owner].ownedLength; } /// @dev Returns the owner of token `id`. /// Returns the zero address instead of reverting if the token does not exist. function _ownerAt(uint256 id) internal view virtual returns (address) { DN404Storage storage $ = _getDN404Storage(); return $.aliasToAddress[_get($.oo, _ownershipIndex(_restrictNFTId(id)))]; } /// @dev Returns the owner of token `id`. /// /// Requirements: /// - Token `id` must exist. function _ownerOf(uint256 id) internal view virtual returns (address) { if (!_exists(id)) revert TokenDoesNotExist(); return _ownerAt(id); } /// @dev Returns if token `id` exists. function _exists(uint256 id) internal view virtual returns (bool) { return _ownerAt(id) != address(0); } /// @dev Returns the account approved to manage token `id`. /// /// Requirements: /// - Token `id` must exist. function _getApproved(uint256 id) internal view virtual returns (address) { if (!_exists(id)) revert TokenDoesNotExist(); return _getDN404Storage().nftApprovals[id]; } /// @dev Sets `spender` as the approved account to manage token `id`, using `msgSender`. /// /// Requirements: /// - `msgSender` must be the owner or an approved operator for the token owner. function _approveNFT(address spender, uint256 id, address msgSender) internal virtual returns (address owner) { DN404Storage storage $ = _getDN404Storage(); owner = $.aliasToAddress[_get($.oo, _ownershipIndex(_restrictNFTId(id)))]; if (msgSender != owner) { if (_ref($.operatorApprovals, owner, msgSender).value == 0) { revert ApprovalCallerNotOwnerNorApproved(); } } $.nftApprovals[id] = spender; _set($.mayHaveNFTApproval, id, spender != address(0)); } /// @dev Approve or remove the `operator` as an operator for `msgSender`, /// without authorization checks. function _setApprovalForAll(address operator, bool approved, address msgSender) internal virtual { _ref(_getDN404Storage().operatorApprovals, msgSender, operator).value = _toUint(approved); } /// @dev Returns the NFT IDs of `owner` in range `[begin, end)`. /// Optimized for smaller bytecode size, as this function is intended for off-chain calling. function _ownedIds(address owner, uint256 begin, uint256 end) internal view virtual returns (uint256[] memory ids) { DN404Storage storage $ = _getDN404Storage(); Uint32Map storage owned = $.owned[owner]; uint256 n = _min($.addressData[owner].ownedLength, end); /// @solidity memory-safe-assembly assembly { ids := mload(0x40) let i := begin for {} lt(i, n) { i := add(i, 1) } { let s := add(shl(96, owned.slot), shr(3, i)) // Storage slot. let id := and(0xffffffff, shr(shl(5, and(i, 7)), sload(s))) mstore(add(add(ids, 0x20), shl(5, sub(i, begin))), id) // Append to. } mstore(ids, sub(i, begin)) // Store the length. mstore(0x40, add(add(ids, 0x20), shl(5, sub(i, begin)))) // Allocate memory. } } /// @dev Fallback modifier to dispatch calls from the mirror NFT contract /// to internal functions in this contract. modifier dn404Fallback() virtual { DN404Storage storage $ = _getDN404Storage(); uint256 fnSelector = _calldataload(0x00) >> 224; address mirror = $.mirrorERC721; // `transferFromNFT(address,address,uint256,address)`. if (fnSelector == 0xe5eb36c8) { if (msg.sender != mirror) revert SenderNotMirror(); _transferFromNFT( address(uint160(_calldataload(0x04))), // `from`. address(uint160(_calldataload(0x24))), // `to`. _calldataload(0x44), // `id`. address(uint160(_calldataload(0x64))) // `msgSender`. ); _return(1); } // `setApprovalForAll(address,bool,address)`. if (fnSelector == 0x813500fc) { if (msg.sender != mirror) revert SenderNotMirror(); _setApprovalForAll( address(uint160(_calldataload(0x04))), // `spender`. _calldataload(0x24) != 0, // `status`. address(uint160(_calldataload(0x44))) // `msgSender`. ); _return(1); } // `isApprovedForAll(address,address)`. if (fnSelector == 0xe985e9c5) { if (msg.sender != mirror) revert SenderNotMirror(); Uint256Ref storage ref = _ref( $.operatorApprovals, address(uint160(_calldataload(0x04))), // `owner`. address(uint160(_calldataload(0x24))) // `operator`. ); _return(ref.value); } // `ownerOf(uint256)`. if (fnSelector == 0x6352211e) { if (msg.sender != mirror) revert SenderNotMirror(); _return(uint160(_ownerOf(_calldataload(0x04)))); } // `ownerAt(uint256)`. if (fnSelector == 0x24359879) { if (msg.sender != mirror) revert SenderNotMirror(); _return(uint160(_ownerAt(_calldataload(0x04)))); } // `approveNFT(address,uint256,address)`. if (fnSelector == 0xd10b6e0c) { if (msg.sender != mirror) revert SenderNotMirror(); address owner = _approveNFT( address(uint160(_calldataload(0x04))), // `spender`. _calldataload(0x24), // `id`. address(uint160(_calldataload(0x44))) // `msgSender`. ); _return(uint160(owner)); } // `getApproved(uint256)`. if (fnSelector == 0x081812fc) { if (msg.sender != mirror) revert SenderNotMirror(); _return(uint160(_getApproved(_calldataload(0x04)))); } // `balanceOfNFT(address)`. if (fnSelector == 0xf5b100ea) { if (msg.sender != mirror) revert SenderNotMirror(); _return(_balanceOfNFT(address(uint160(_calldataload(0x04))))); } // `totalNFTSupply()`. if (fnSelector == 0xe2c79281) { if (msg.sender != mirror) revert SenderNotMirror(); _return(_totalNFTSupply()); } // `implementsDN404()`. if (fnSelector == 0xb7a94eb8) { _return(1); } _; } /// @dev Fallback function for calls from mirror NFT contract. /// Override this if you need to implement your custom /// fallback with utilities like Solady's `LibZip.cdFallback()`. /// And always remember to always wrap the fallback with `dn404Fallback`. fallback() external payable virtual dn404Fallback { revert FnSelectorNotRecognized(); // Not mandatory. Just for quality of life. } /// @dev This is to silence the compiler warning. /// Override and remove the revert if you want your contract to receive ETH via receive. receive() external payable virtual { if (msg.value != 0) revert(); } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* INTERNAL / PRIVATE HELPERS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Returns `(i - 1) << 1`. function _ownershipIndex(uint256 i) internal pure returns (uint256) { unchecked { return (i - 1) << 1; // Minus 1 as token IDs start from 1. } } /// @dev Returns `((i - 1) << 1) + 1`. function _ownedIndex(uint256 i) internal pure returns (uint256) { unchecked { return ((i - 1) << 1) + 1; // Minus 1 as token IDs start from 1. } } /// @dev Returns the uint32 value at `index` in `map`. function _get(Uint32Map storage map, uint256 index) internal view returns (uint32 result) { /// @solidity memory-safe-assembly assembly { let s := add(shl(96, map.slot), shr(3, index)) // Storage slot. result := and(0xffffffff, shr(shl(5, and(index, 7)), sload(s))) } } /// @dev Updates the uint32 value at `index` in `map`. function _set(Uint32Map storage map, uint256 index, uint32 value) internal { /// @solidity memory-safe-assembly assembly { let s := add(shl(96, map.slot), shr(3, index)) // Storage slot. let o := shl(5, and(index, 7)) // Storage slot offset (bits). let v := sload(s) // Storage slot value. sstore(s, xor(v, shl(o, and(0xffffffff, xor(value, shr(o, v)))))) } } /// @dev Sets the owner alias and the owned index together. function _setOwnerAliasAndOwnedIndex( Uint32Map storage map, uint256 id, uint32 ownership, uint32 ownedIndex ) internal { /// @solidity memory-safe-assembly assembly { let i := sub(id, 1) // Index of the uint64 combined value. let s := add(shl(96, map.slot), shr(2, i)) // Storage slot. let v := sload(s) // Storage slot value. let o := shl(6, and(i, 3)) // Storage slot offset (bits). let combined := or(shl(32, ownedIndex), and(0xffffffff, ownership)) sstore(s, xor(v, shl(o, and(0xffffffffffffffff, xor(shr(o, v), combined))))) } } /// @dev Returns the boolean value of the bit at `index` in `bitmap`. function _get(Bitmap storage bitmap, uint256 index) internal view returns (bool result) { /// @solidity memory-safe-assembly assembly { let s := add(shl(96, bitmap.slot), shr(8, index)) // Storage slot. result := and(1, shr(and(0xff, index), sload(s))) } } /// @dev Updates the bit at `index` in `bitmap` to `value`. function _set(Bitmap storage bitmap, uint256 index, bool value) internal { /// @solidity memory-safe-assembly assembly { let s := add(shl(96, bitmap.slot), shr(8, index)) // Storage slot. let o := and(0xff, index) // Storage slot offset (bits). sstore(s, or(and(sload(s), not(shl(o, 1))), shl(o, iszero(iszero(value))))) } } /// @dev Returns the index of the least significant unset bit in `[begin, end)`. /// If no unset bit is found, returns `type(uint256).max`. function _findFirstUnset(Bitmap storage bitmap, uint256 begin, uint256 end) internal view returns (uint256 unsetBitIndex) { /// @solidity memory-safe-assembly assembly { unsetBitIndex := not(0) // Initialize to `type(uint256).max`. let s := shl(96, bitmap.slot) // Storage offset of the bitmap. let bucket := add(s, shr(8, begin)) let negBits := shl(and(0xff, begin), shr(and(0xff, begin), not(sload(bucket)))) if iszero(negBits) { let lastBucket := add(s, shr(8, end)) for {} 1 {} { bucket := add(bucket, 1) negBits := not(sload(bucket)) if or(negBits, gt(bucket, lastBucket)) { break } } if gt(bucket, lastBucket) { negBits := shr(and(0xff, not(end)), shl(and(0xff, not(end)), negBits)) } } if negBits { // Find-first-set routine. let b := and(negBits, add(not(negBits), 1)) // Isolate the least significant bit. let r := shl(7, lt(0xffffffffffffffffffffffffffffffff, b)) r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, b)))) r := or(r, shl(5, lt(0xffffffff, shr(r, b)))) // For the remaining 32 bits, use a De Bruijn lookup. // forgefmt: disable-next-item r := or(r, byte(and(div(0xd76453e0, shr(r, b)), 0x1f), 0x001f0d1e100c1d070f090b19131c1706010e11080a1a141802121b1503160405)) r := or(shl(8, sub(bucket, s)), r) unsetBitIndex := or(r, sub(0, or(iszero(lt(r, end)), lt(r, begin)))) } } } /// @dev Returns a storage reference to the value at (`a0`, `a1`) in `map`. function _ref(AddressPairToUint256RefMap storage map, address a0, address a1) internal pure returns (Uint256Ref storage ref) { /// @solidity memory-safe-assembly assembly { mstore(0x28, a1) mstore(0x14, a0) mstore(0x00, map.slot) ref.slot := keccak256(0x00, 0x48) // Clear the part of the free memory pointer that was overwritten. mstore(0x28, 0x00) } } /// @dev Wraps the NFT ID. function _wrapNFTId(uint256 id, uint256 maxId) internal pure returns (uint256 result) { /// @solidity memory-safe-assembly assembly { result := or(mul(iszero(gt(id, maxId)), id), gt(id, maxId)) } } /// @dev Returns `id > type(uint32).max ? 0 : id`. function _restrictNFTId(uint256 id) internal pure returns (uint256 result) { /// @solidity memory-safe-assembly assembly { result := mul(id, lt(id, 0x100000000)) } } /// @dev Returns whether `amount` is a valid `totalSupply`. function _totalSupplyOverflows(uint256 amount) internal view returns (bool result) { uint256 unit = _unit(); /// @solidity memory-safe-assembly assembly { result := iszero(iszero(or(shr(96, amount), lt(0xfffffffe, div(amount, unit))))) } } /// @dev Returns `max(0, x - y)`. function _zeroFloorSub(uint256 x, uint256 y) internal pure returns (uint256 z) { /// @solidity memory-safe-assembly assembly { z := mul(gt(x, y), sub(x, y)) } } /// @dev Returns `x < y ? x : y`. function _min(uint256 x, uint256 y) internal pure returns (uint256 z) { /// @solidity memory-safe-assembly assembly { z := xor(x, mul(xor(x, y), lt(y, x))) } } /// @dev Returns `b ? 1 : 0`. function _toUint(bool b) internal pure returns (uint256 result) { /// @solidity memory-safe-assembly assembly { result := iszero(iszero(b)) } } /// @dev Struct containing direct transfer log data for {Transfer} events to be /// emitted by the mirror NFT contract. struct _DNDirectLogs { uint256 offset; address from; address to; uint256[] logs; } /// @dev Initiates memory allocation for direct logs with `n` log items. function _directLogsMalloc(uint256 n, address from, address to) private pure returns (_DNDirectLogs memory p) { /// @solidity memory-safe-assembly assembly { // Note that `p` implicitly allocates and advances the free memory pointer by // 4 words, which we can safely mutate in `_directLogsSend`. let logs := mload(0x40) mstore(logs, n) // Store the length. let offset := add(0x20, logs) // Skip the word for `p.logs.length`. mstore(0x40, add(offset, shl(5, n))) // Allocate memory. mstore(add(0x60, p), logs) // Set `p.logs`. mstore(add(0x40, p), to) // Set `p.to`. mstore(add(0x20, p), from) // Set `p.from`. mstore(p, offset) // Set `p.offset`. } } /// @dev Adds a direct log item to `p` with token `id`. function _directLogsAppend(_DNDirectLogs memory p, uint256 id) private pure { /// @solidity memory-safe-assembly assembly { let offset := mload(p) mstore(offset, id) mstore(p, add(offset, 0x20)) } } /// @dev Calls the `mirror` NFT contract to emit {Transfer} events for packed logs `p`. function _directLogsSend(_DNDirectLogs memory p, address mirror) private { /// @solidity memory-safe-assembly assembly { let logs := mload(add(p, 0x60)) let n := add(0x84, shl(5, mload(logs))) // Length of calldata to send. let o := sub(logs, 0x80) // Start of calldata to send. mstore(o, 0x144027d3) // `logDirectTransfer(address,address,uint256[])`. let from := mload(add(0x20, p)) let to := mload(add(0x40, p)) mstore(add(o, 0x20), from) mstore(add(o, 0x40), to) mstore(add(o, 0x60), 0x60) // Offset of `logs` in the calldata to send. if iszero(and(eq(mload(o), 1), call(gas(), mirror, 0, add(o, 0x1c), n, o, 0x20))) { revert(o, 0x00) } } } /// @dev Struct containing packed log data for {Transfer} events to be /// emitted by the mirror NFT contract. struct _DNPackedLogs { uint256 offset; uint256 addressAndBit; uint256[] logs; } /// @dev Initiates memory allocation for packed logs with `n` log items. function _packedLogsMalloc(uint256 n) private pure returns (_DNPackedLogs memory p) { /// @solidity memory-safe-assembly assembly { // Note that `p` implicitly allocates and advances the free memory pointer by // 3 words, which we can safely mutate in `_packedLogsSend`. let logs := mload(0x40) mstore(logs, n) // Store the length. let offset := add(0x20, logs) // Skip the word for `p.logs.length`. mstore(0x40, add(offset, shl(5, n))) // Allocate memory. mstore(add(0x40, p), logs) // Set `p.logs`. mstore(p, offset) // Set `p.offset`. } } /// @dev Set the current address and the burn bit. function _packedLogsSet(_DNPackedLogs memory p, address a, uint256 burnBit) private pure { /// @solidity memory-safe-assembly assembly { mstore(add(p, 0x20), or(shl(96, a), burnBit)) // Set `p.addressAndBit`. } } /// @dev Adds a packed log item to `p` with token `id`. function _packedLogsAppend(_DNPackedLogs memory p, uint256 id) private pure { /// @solidity memory-safe-assembly assembly { let offset := mload(p) mstore(offset, or(mload(add(p, 0x20)), shl(8, id))) // `p.addressAndBit | (id << 8)`. mstore(p, add(offset, 0x20)) } } /// @dev Calls the `mirror` NFT contract to emit {Transfer} events for packed logs `p`. function _packedLogsSend(_DNPackedLogs memory p, address mirror) private { /// @solidity memory-safe-assembly assembly { let logs := mload(add(p, 0x40)) let o := sub(logs, 0x40) // Start of calldata to send. mstore(o, 0x263c69d6) // `logTransfer(uint256[])`. mstore(add(o, 0x20), 0x20) // Offset of `logs` in the calldata to send. let n := add(0x44, shl(5, mload(logs))) // Length of calldata to send. if iszero(and(eq(mload(o), 1), call(gas(), mirror, 0, add(o, 0x1c), n, o, 0x20))) { revert(o, 0x00) } } } /// @dev Struct of temporary variables for transfers. struct _DNTransferTemps { uint256 numNFTBurns; uint256 numNFTMints; uint256 fromBalance; uint256 toBalance; uint256 fromOwnedLength; uint256 toOwnedLength; uint256 totalSupply; uint256 totalNFTSupply; uint256 fromEnd; uint256 toEnd; uint32 toAlias; uint256 nextTokenId; uint32 burnedPoolTail; } /// @dev Struct of temporary variables for mints. struct _DNMintTemps { uint256 nextTokenId; uint32 burnedPoolTail; uint256 toEnd; uint32 toAlias; } /// @dev Returns if `a` has bytecode of non-zero length. function _hasCode(address a) private view returns (bool result) { /// @solidity memory-safe-assembly assembly { result := extcodesize(a) // Can handle dirty upper bits. } } /// @dev Returns the calldata value at `offset`. function _calldataload(uint256 offset) private pure returns (uint256 value) { /// @solidity memory-safe-assembly assembly { value := calldataload(offset) } } /// @dev Executes a return opcode to return `x` and end the current call frame. function _return(uint256 x) private pure { /// @solidity memory-safe-assembly assembly { mstore(0x00, x) return(0x00, 0x20) } } } // File dn404/src/[email protected] // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.4; /// @title DN404Mirror /// @notice DN404Mirror provides an interface for interacting with the /// NFT tokens in a DN404 implementation. /// /// @author vectorized.eth (@optimizoor) /// @author Quit (@0xQuit) /// @author Michael Amadi (@AmadiMichaels) /// @author cygaar (@0xCygaar) /// @author Thomas (@0xjustadev) /// @author Harrison (@PopPunkOnChain) /// /// @dev Note: /// - The ERC721 data is stored in the base DN404 contract. contract DN404Mirror { /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* EVENTS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Emitted when token `id` is transferred from `from` to `to`. event Transfer(address indexed from, address indexed to, uint256 indexed id); /// @dev Emitted when `owner` enables `account` to manage the `id` token. event Approval(address indexed owner, address indexed account, uint256 indexed id); /// @dev Emitted when `owner` enables or disables `operator` to manage all of their tokens. event ApprovalForAll(address indexed owner, address indexed operator, bool isApproved); /// @dev The ownership is transferred from `oldOwner` to `newOwner`. /// This is for marketplace signaling purposes. This contract has a `pullOwner()` /// function that will sync the owner from the base contract. event OwnershipTransferred(address indexed oldOwner, address indexed newOwner); /// @dev `keccak256(bytes("Transfer(address,address,uint256)"))`. uint256 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; /// @dev `keccak256(bytes("Approval(address,address,uint256)"))`. uint256 private constant _APPROVAL_EVENT_SIGNATURE = 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925; /// @dev `keccak256(bytes("ApprovalForAll(address,address,bool)"))`. uint256 private constant _APPROVAL_FOR_ALL_EVENT_SIGNATURE = 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31; /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* CUSTOM ERRORS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Thrown when a call for an NFT function did not originate /// from the base DN404 contract. error SenderNotBase(); /// @dev Thrown when a call for an NFT function did not originate from the deployer. error SenderNotDeployer(); /// @dev Thrown when transferring an NFT to a contract address that /// does not implement ERC721Receiver. error TransferToNonERC721ReceiverImplementer(); /// @dev Thrown when linking to the DN404 base contract and the /// DN404 supportsInterface check fails or the call reverts. error CannotLink(); /// @dev Thrown when a linkMirrorContract call is received and the /// NFT mirror contract has already been linked to a DN404 base contract. error AlreadyLinked(); /// @dev Thrown when retrieving the base DN404 address when a link has not /// been established. error NotLinked(); /// @dev The function selector is not recognized. error FnSelectorNotRecognized(); /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* STORAGE */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Struct contain the NFT mirror contract storage. struct DN404NFTStorage { // Address of the ERC20 base contract. address baseERC20; // The deployer, if provided. If non-zero, the initialization of the // ERC20 <-> ERC721 link can only be done be the deployer via the ERC20 base contract. address deployer; // The owner of the ERC20 base contract. For marketplace signaling. address owner; } /// @dev Returns a storage pointer for DN404NFTStorage. function _getDN404NFTStorage() internal pure virtual returns (DN404NFTStorage storage $) { /// @solidity memory-safe-assembly assembly { // `uint72(bytes9(keccak256("DN404_MIRROR_STORAGE")))`. $.slot := 0x3602298b8c10b01230 // Truncate to 9 bytes to reduce bytecode size. } } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* CONSTRUCTOR */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ constructor(address deployer) { // For non-proxies, we will store the deployer so that only the deployer can // link the base contract. _getDN404NFTStorage().deployer = deployer; } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* ERC721 OPERATIONS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Returns the token collection name from the base DN404 contract. function name() public view virtual returns (string memory) { return _readString(0x06fdde03, 0); // `name()`. } /// @dev Returns the token collection symbol from the base DN404 contract. function symbol() public view virtual returns (string memory) { return _readString(0x95d89b41, 0); // `symbol()`. } /// @dev Returns the Uniform Resource Identifier (URI) for token `id` from /// the base DN404 contract. function tokenURI(uint256 id) public view virtual returns (string memory) { return _readString(0xc87b56dd, id); // `tokenURI()`. } /// @dev Returns the total NFT supply from the base DN404 contract. function totalSupply() public view virtual returns (uint256) { return _readWord(0xe2c79281, 0, 0); // `totalNFTSupply()`. } /// @dev Returns the number of NFT tokens owned by `nftOwner` from the base DN404 contract. /// /// Requirements: /// - `nftOwner` must not be the zero address. function balanceOf(address nftOwner) public view virtual returns (uint256) { return _readWord(0xf5b100ea, uint160(nftOwner), 0); // `balanceOfNFT(address)`. } /// @dev Returns the owner of token `id` from the base DN404 contract. /// /// Requirements: /// - Token `id` must exist. function ownerOf(uint256 id) public view virtual returns (address) { return address(uint160(_readWord(0x6352211e, id, 0))); // `ownerOf(uint256)`. } /// @dev Returns the owner of token `id` from the base DN404 contract. /// Returns `address(0)` instead of reverting if the token does not exist. function ownerAt(uint256 id) public view virtual returns (address) { return address(uint160(_readWord(0x24359879, id, 0))); // `ownerAt(uint256)`. } /// @dev Sets `spender` as the approved account to manage token `id` in /// the base DN404 contract. /// /// Requirements: /// - Token `id` must exist. /// - The caller must be the owner of the token, /// or an approved operator for the token owner. /// /// Emits an {Approval} event. function approve(address spender, uint256 id) public payable virtual { address base = baseERC20(); /// @solidity memory-safe-assembly assembly { spender := shr(96, shl(96, spender)) let m := mload(0x40) mstore(0x00, 0xd10b6e0c) // `approveNFT(address,uint256,address)`. mstore(0x20, spender) mstore(0x40, id) mstore(0x60, caller()) if iszero( and( // Arguments of `and` are evaluated last to first. gt(returndatasize(), 0x1f), // The call must return at least 32 bytes. call(gas(), base, callvalue(), 0x1c, 0x64, 0x00, 0x20) ) ) { returndatacopy(m, 0x00, returndatasize()) revert(m, returndatasize()) } mstore(0x40, m) // Restore the free memory pointer. mstore(0x60, 0) // Restore the zero pointer. // Emit the {Approval} event. log4(codesize(), 0x00, _APPROVAL_EVENT_SIGNATURE, shr(96, mload(0x0c)), spender, id) } } /// @dev Returns the account approved to manage token `id` from /// the base DN404 contract. /// /// Requirements: /// - Token `id` must exist. function getApproved(uint256 id) public view virtual returns (address) { return address(uint160(_readWord(0x081812fc, id, 0))); // `getApproved(uint256)`. } /// @dev Sets whether `operator` is approved to manage the tokens of the caller in /// the base DN404 contract. /// /// Emits an {ApprovalForAll} event. function setApprovalForAll(address operator, bool approved) public virtual { address base = baseERC20(); /// @solidity memory-safe-assembly assembly { operator := shr(96, shl(96, operator)) let m := mload(0x40) mstore(0x00, 0x813500fc) // `setApprovalForAll(address,bool,address)`. mstore(0x20, operator) mstore(0x40, iszero(iszero(approved))) mstore(0x60, caller()) if iszero( and( // Arguments of `and` are evaluated last to first. eq(mload(0x00), 1), // The call must return 1. call(gas(), base, callvalue(), 0x1c, 0x64, 0x00, 0x20) ) ) { returndatacopy(m, 0x00, returndatasize()) revert(m, returndatasize()) } // Emit the {ApprovalForAll} event. // The `approved` value is already at 0x40. log3(0x40, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, caller(), operator) mstore(0x40, m) // Restore the free memory pointer. mstore(0x60, 0) // Restore the zero pointer. } } /// @dev Returns whether `operator` is approved to manage the tokens of `nftOwner` from /// the base DN404 contract. function isApprovedForAll(address nftOwner, address operator) public view virtual returns (bool) { // `isApprovedForAll(address,address)`. return _readWord(0xe985e9c5, uint160(nftOwner), uint160(operator)) != 0; } /// @dev Transfers token `id` from `from` to `to`. /// /// Requirements: /// /// - Token `id` must exist. /// - `from` must be the owner of the token. /// - `to` cannot be the zero address. /// - The caller must be the owner of the token, or be approved to manage the token. /// /// Emits a {Transfer} event. function transferFrom(address from, address to, uint256 id) public payable virtual { address base = baseERC20(); /// @solidity memory-safe-assembly assembly { from := shr(96, shl(96, from)) to := shr(96, shl(96, to)) let m := mload(0x40) mstore(m, 0xe5eb36c8) // `transferFromNFT(address,address,uint256,address)`. mstore(add(m, 0x20), from) mstore(add(m, 0x40), to) mstore(add(m, 0x60), id) mstore(add(m, 0x80), caller()) if iszero( and( // Arguments of `and` are evaluated last to first. eq(mload(m), 1), // The call must return 1. call(gas(), base, callvalue(), add(m, 0x1c), 0x84, m, 0x20) ) ) { returndatacopy(m, 0x00, returndatasize()) revert(m, returndatasize()) } // Emit the {Transfer} event. log4(codesize(), 0x00, _TRANSFER_EVENT_SIGNATURE, from, to, id) } } /// @dev Equivalent to `safeTransferFrom(from, to, id, "")`. function safeTransferFrom(address from, address to, uint256 id) public payable virtual { transferFrom(from, to, id); if (_hasCode(to)) _checkOnERC721Received(from, to, id, ""); } /// @dev Transfers token `id` from `from` to `to`. /// /// Requirements: /// /// - Token `id` must exist. /// - `from` must be the owner of the token. /// - `to` cannot be the zero address. /// - The caller must be the owner of the token, or be approved to manage the token. /// - 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 id, bytes calldata data) public payable virtual { transferFrom(from, to, id); if (_hasCode(to)) _checkOnERC721Received(from, to, id, data); } /// @dev Returns true if this contract implements the interface defined by `interfaceId`. /// See: https://eips.ethereum.org/EIPS/eip-165 /// This function call must use less than 30000 gas. function supportsInterface(bytes4 interfaceId) public view virtual returns (bool result) { /// @solidity memory-safe-assembly assembly { let s := shr(224, interfaceId) // ERC165: 0x01ffc9a7, ERC721: 0x80ac58cd, ERC721Metadata: 0x5b5e139f. result := or(or(eq(s, 0x01ffc9a7), eq(s, 0x80ac58cd)), eq(s, 0x5b5e139f)) } } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* OWNER SYNCING OPERATIONS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Returns the `owner` of the contract, for marketplace signaling purposes. function owner() public view virtual returns (address) { return _getDN404NFTStorage().owner; } /// @dev Permissionless function to pull the owner from the base DN404 contract /// if it implements ownable, for marketplace signaling purposes. function pullOwner() public virtual returns (bool) { address newOwner; address base = baseERC20(); /// @solidity memory-safe-assembly assembly { mstore(0x00, 0x8da5cb5b) // `owner()`. let success := staticcall(gas(), base, 0x1c, 0x04, 0x00, 0x20) newOwner := mul(shr(96, mload(0x0c)), and(gt(returndatasize(), 0x1f), success)) } DN404NFTStorage storage $ = _getDN404NFTStorage(); address oldOwner = $.owner; if (oldOwner != newOwner) { $.owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } return true; } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* MIRROR OPERATIONS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Returns the address of the base DN404 contract. function baseERC20() public view virtual returns (address base) { base = _getDN404NFTStorage().baseERC20; if (base == address(0)) revert NotLinked(); } /// @dev Fallback modifier to execute calls from the base DN404 contract. modifier dn404NFTFallback() virtual { DN404NFTStorage storage $ = _getDN404NFTStorage(); uint256 fnSelector = _calldataload(0x00) >> 224; // `logTransfer(uint256[])`. if (fnSelector == 0x263c69d6) { if (msg.sender != $.baseERC20) revert SenderNotBase(); /// @solidity memory-safe-assembly assembly { let o := add(0x24, calldataload(0x04)) // Packed logs offset. let end := add(o, shl(5, calldataload(sub(o, 0x20)))) for {} iszero(eq(o, end)) { o := add(0x20, o) } { let d := calldataload(o) // Entry in the packed logs. let a := shr(96, d) // The address. let b := and(1, d) // Whether it is a burn. log4( codesize(), 0x00, _TRANSFER_EVENT_SIGNATURE, mul(a, b), // `from`. mul(a, iszero(b)), // `to`. shr(168, shl(160, d)) // `id`. ) } mstore(0x00, 0x01) return(0x00, 0x20) } } // `logDirectTransfer(address,address,uint256[])`. if (fnSelector == 0x144027d3) { if (msg.sender != $.baseERC20) revert SenderNotBase(); /// @solidity memory-safe-assembly assembly { let from := calldataload(0x04) let to := calldataload(0x24) let o := add(0x24, calldataload(0x44)) // Direct logs offset. let end := add(o, shl(5, calldataload(sub(o, 0x20)))) for {} iszero(eq(o, end)) { o := add(0x20, o) } { log4(codesize(), 0x00, _TRANSFER_EVENT_SIGNATURE, from, to, calldataload(o)) } mstore(0x00, 0x01) return(0x00, 0x20) } } // `linkMirrorContract(address)`. if (fnSelector == 0x0f4599e5) { if ($.deployer != address(0)) { if (address(uint160(_calldataload(0x04))) != $.deployer) { revert SenderNotDeployer(); } } if ($.baseERC20 != address(0)) revert AlreadyLinked(); $.baseERC20 = msg.sender; /// @solidity memory-safe-assembly assembly { mstore(0x00, 0x01) return(0x00, 0x20) } } _; } /// @dev Fallback function for calls from base DN404 contract. /// Override this if you need to implement your custom /// fallback with utilities like Solady's `LibZip.cdFallback()`. /// And always remember to always wrap the fallback with `dn404NFTFallback`. fallback() external payable virtual dn404NFTFallback { revert FnSelectorNotRecognized(); // Not mandatory. Just for quality of life. } /// @dev This is to silence the compiler warning. /// Override and remove the revert if you want your contract to receive ETH via receive. receive() external payable virtual { if (msg.value != 0) revert(); } /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/ /* PRIVATE HELPERS */ /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/ /// @dev Helper to read a string from the base DN404 contract. function _readString(uint256 fnSelector, uint256 arg0) private view returns (string memory result) { address base = baseERC20(); /// @solidity memory-safe-assembly assembly { result := mload(0x40) mstore(0x00, fnSelector) mstore(0x20, arg0) if iszero(staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x00)) { returndatacopy(result, 0x00, returndatasize()) revert(result, returndatasize()) } returndatacopy(0x00, 0x00, 0x20) // Copy the offset of the string in returndata. returndatacopy(result, mload(0x00), 0x20) // Copy the length of the string. returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result)) // Copy the string. let end := add(add(result, 0x20), mload(result)) mstore(end, 0) // Zeroize the word after the string. mstore(0x40, add(end, 0x20)) // Allocate memory. } } /// @dev Helper to read a word from the base DN404 contract. function _readWord(uint256 fnSelector, uint256 arg0, uint256 arg1) private view returns (uint256 result) { address base = baseERC20(); /// @solidity memory-safe-assembly assembly { let m := mload(0x40) mstore(0x00, fnSelector) mstore(0x20, arg0) mstore(0x40, arg1) if iszero( and( // Arguments of `and` are evaluated last to first. gt(returndatasize(), 0x1f), // The call must return at least 32 bytes. staticcall(gas(), base, 0x1c, 0x44, 0x00, 0x20) ) ) { returndatacopy(m, 0x00, returndatasize()) revert(m, returndatasize()) } mstore(0x40, m) // Restore the free memory pointer. result := mload(0x00) } } /// @dev Returns the calldata value at `offset`. function _calldataload(uint256 offset) private pure returns (uint256 value) { /// @solidity memory-safe-assembly assembly { value := calldataload(offset) } } /// @dev Returns if `a` has bytecode of non-zero length. function _hasCode(address a) private view returns (bool result) { /// @solidity memory-safe-assembly assembly { result := extcodesize(a) // Can handle dirty upper bits. } } /// @dev Perform a call to invoke {IERC721Receiver-onERC721Received} on `to`. /// Reverts if the target does not support the function correctly. function _checkOnERC721Received(address from, address to, uint256 id, bytes memory data) private { /// @solidity memory-safe-assembly assembly { // Prepare the calldata. let m := mload(0x40) let onERC721ReceivedSelector := 0x150b7a02 mstore(m, onERC721ReceivedSelector) mstore(add(m, 0x20), caller()) // The `operator`, which is always `msg.sender`. mstore(add(m, 0x40), shr(96, shl(96, from))) mstore(add(m, 0x60), id) mstore(add(m, 0x80), 0x80) let n := mload(data) mstore(add(m, 0xa0), n) if n { pop(staticcall(gas(), 4, add(data, 0x20), n, add(m, 0xc0), n)) } // Revert if the call reverts. if iszero(call(gas(), to, 0, add(m, 0x1c), add(n, 0xa4), m, 0x20)) { if returndatasize() { // Bubble up the revert if the call reverts. returndatacopy(m, 0x00, returndatasize()) revert(m, returndatasize()) } } // Load the returndata and compare it. if iszero(eq(mload(m), shl(224, onERC721ReceivedSelector))) { mstore(0x00, 0xd1a57ed6) // `TransferToNonERC721ReceiverImplementer()`. revert(0x1c, 0x04) } } } } // Original license: SPDX_License_Identifier: UNLICENSED pragma solidity ^0.8.4; contract Peanutpods425 is DN404, Ownable { string private _name = "Peanutpods425"; string private _symbol = "PEAN"; string private _baseURI; constructor() { address mirror = address(new DN404Mirror(_msgSender())); _initializeDN404(1024 * 10 ** 18, _msgSender(), mirror); } function name() public view override returns (string memory) { return _name; } function symbol() public view override returns (string memory) { return _symbol; } function tokenURI( uint256 tokenId ) public view override returns (string memory result) { if (bytes(_baseURI).length != 0) { result = string( abi.encodePacked(_baseURI, Strings.toString(tokenId)) ); } } function setBaseURI(string calldata baseURI_) public onlyOwner { _baseURI = baseURI_; } function setSkipNFTAddress( address _address, bool _status ) public onlyOwner { _setSkipNFT(_address, _status); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"DNAlreadyInitialized","type":"error"},{"inputs":[],"name":"FnSelectorNotRecognized","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"LinkMirrorContractFailed","type":"error"},{"inputs":[],"name":"MirrorAddressIsZero","type":"error"},{"inputs":[],"name":"SenderNotMirror","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"inputs":[],"name":"TotalSupplyOverflow","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"UnitIsZero","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","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":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"SkipNFTSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getSkipNFT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mirrorERC721","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"skipNFT","type":"bool"}],"name":"setSkipNFT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setSkipNFTAddress","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":"result","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526040518060400160405280600d81526020017f5065616e7574706f64733432350000000000000000000000000000000000000081525060019080519060200190620000519291906200075b565b506040518060400160405280600481526020017f5045414e00000000000000000000000000000000000000000000000000000000815250600290805190602001906200009f9291906200075b565b50348015620000ad57600080fd5b50620000ce620000c26200014c60201b60201c565b6200015460201b60201c565b6000620000e06200014c60201b60201c565b604051620000ee90620007ec565b620000fa91906200082a565b604051809103906000f08015801562000117573d6000803e3d6000fd5b50905062000145683782dace9d90000000620001386200014c60201b60201c565b836200021860201b60201c565b50620008e0565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006200022a6200058760201b60201c565b905060006200023e6200059860201b60201c565b141562000277576040517f0af2b2b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161462000302576040517fead4d2e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200036a576040517f39a84a7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b630f4599e560005233602052602060006024601c6000865af1600160005114166200039d5763d125259c6000526004601cfd5b60018160000160046101000a81548163ffffffff021916908363ffffffff160217905550818160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600084146200058157600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141562000475576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200048684620005a860201b60201c565b15620004be576040517fe5cfe95700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b838160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555060006200050484620005d560201b60201c565b9050848160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550846000528360601b60601c60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206000a36200057f8460016200069f60201b60201c565b505b50505050565b600068a20d6e21d0e5255308905090565b6000670de0b6b3a7640000905090565b600080620005bb6200059860201b60201c565b905080830463fffffffe108360601c171515915050919050565b6000620005e76200058760201b60201c565b600b0160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600182600001600b9054906101000a900460ff161660ff1614156200069a576000600260ff166200067262000666856200074460201b60201c565b6200074f60201b60201c565b029050600160ff16811782600001600b6101000a81548160ff021916908360ff160217905550505b919050565b6000620006b283620005d560201b60201c565b90508115156000600283600001600b9054906101000a900460ff161660ff1614151515146200070c57600281600001600b8282829054906101000a900460ff161892506101000a81548160ff021916908360ff1602179055505b8115156000528260601b60601c7fb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d642039360206000a2505050565b6000813b9050919050565b60008115159050919050565b82805462000769906200087b565b90600052602060002090601f0160209004810192826200078d5760008555620007d9565b82601f10620007a857805160ff1916838001178555620007d9565b82800160010185558215620007d9579182015b82811115620007d8578251825591602001919060010190620007bb565b5b509050620007e89190620007fa565b5090565b61159380620044d383390190565b5b8082111562000815576000816000905550600101620007fb565b5090565b620008248162000847565b82525050565b600060208201905062000841600083018462000819565b92915050565b600062000854826200085b565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200089457607f821691505b60208210811415620008ab57620008aa620008b1565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b613be380620008f06000396000f3fe60806040526004361061010d5760003560e01c806370a0823111610095578063a9059cbb11610064578063a9059cbb146109ca578063c87b56dd14610a07578063d2cb0e9014610a44578063dd62ed3e14610a6d578063f2fde38b14610aaa57610121565b806370a0823114610920578063715018a61461095d5780638da5cb5b1461097457806395d89b411461099f57610121565b8063274e430b116100dc578063274e430b146108275780632a6a935d14610864578063313ce567146108a15780634ef41efc146108cc57806355f804b3146108f757610121565b806306fdde0314610757578063095ea7b31461078257806318160ddd146107bf57806323b872dd146107ea57610121565b36610121576000341461011f57600080fd5b005b600061012b610ad3565b9050600060e061013b6000610ae4565b901c905060008260010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905063e5eb36c8821415610214578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101d9576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102096101e66004610ae4565b6101f06024610ae4565b6101fa6044610ae4565b6102046064610ae4565b610aef565b61021360016110aa565b5b63813500fc8214156102ba578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610285576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102af6102926004610ae4565b600061029e6024610ae4565b14156102aa6044610ae4565b6110b4565b6102b960016110aa565b5b63e985e9c582141561035e578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461032b576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061034d8460030161033e6004610ae4565b6103486024610ae4565b6110de565b905061035c81600001546110aa565b505b636352211e821415610400578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103cf576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103ff6103e46103df6004610ae4565b6110ff565b73ffffffffffffffffffffffffffffffffffffffff166110aa565b5b63243598798214156104a2578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610471576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104a16104866104816004610ae4565b611150565b73ffffffffffffffffffffffffffffffffffffffff166110aa565b5b63d10b6e0c82141561055e578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610513576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061053b6105226004610ae4565b61052c6024610ae4565b6105366044610ae4565b6111c3565b905061055c8173ffffffffffffffffffffffffffffffffffffffff166110aa565b505b63081812fc821415610600578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105cf576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105ff6105e46105df6004610ae4565b61134a565b73ffffffffffffffffffffffffffffffffffffffff166110aa565b5b63f5b100ea82141561068c578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610671576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61068b6106866106816004610ae4565b6113cf565b6110aa565b5b63e2c7928182141561070e578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106fd576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61070d61070861143a565b6110aa565b5b63b7a94eb88214156107255761072460016110aa565b5b6040517f3c10b94e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b34801561076357600080fd5b5061076c611463565b6040516107799190613922565b60405180910390f35b34801561078e57600080fd5b506107a960048036038101906107a4919061368a565b6114f5565b6040516107b69190613907565b60405180910390f35b3480156107cb57600080fd5b506107d461150c565b6040516107e19190613984565b60405180910390f35b3480156107f657600080fd5b50610811600480360381019061080c91906135ff565b611545565b60405161081e9190613907565b60405180910390f35b34801561083357600080fd5b5061084e6004803603810190610849919061359a565b6116d0565b60405161085b9190613907565b60405180910390f35b34801561087057600080fd5b5061088b600480360381019061088691906136c6565b611773565b6040516108989190613907565b60405180910390f35b3480156108ad57600080fd5b506108b6611788565b6040516108c3919061399f565b60405180910390f35b3480156108d857600080fd5b506108e1611791565b6040516108ee91906138ec565b60405180910390f35b34801561090357600080fd5b5061091e600480360381019061091991906136ef565b6117c4565b005b34801561092c57600080fd5b506109476004803603810190610942919061359a565b6117e2565b6040516109549190613984565b60405180910390f35b34801561096957600080fd5b5061097261185d565b005b34801561098057600080fd5b50610989611871565b60405161099691906138ec565b60405180910390f35b3480156109ab57600080fd5b506109b461189a565b6040516109c19190613922565b60405180910390f35b3480156109d657600080fd5b506109f160048036038101906109ec919061368a565b61192c565b6040516109fe9190613907565b60405180910390f35b348015610a1357600080fd5b50610a2e6004803603810190610a299190613734565b611943565b604051610a3b9190613922565b60405180910390f35b348015610a5057600080fd5b50610a6b6004803603810190610a66919061364e565b61198e565b005b348015610a7957600080fd5b50610a946004803603810190610a8f91906135c3565b6119a4565b604051610aa19190613984565b60405180910390f35b348015610ab657600080fd5b50610ad16004803603810190610acc919061359a565b611ab2565b005b600068a20d6e21d0e5255308905090565b600081359050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b56576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610b60610ad3565b9050600073ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610bc057600080fd5b600081600a019050816002016000610be883610be3610bde89611b36565b611b49565b611b59565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614610c87576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610d70576000610cca8360030188866110de565b600001541415610d6f5781600401600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610d6e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6000610d7b87611b7d565b90506000610d8887611b7d565b90506000610d94611c2e565b9050600085600801905060008160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008560000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16905080841115610e49576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8381038660000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550838560000160148282829054906101000a90046bffffffffffffffffffffffff160192506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050610edc876005018a611c3e565b15610f2957610ef0876005018a6000611c5c565b8660040160008a815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b6000610f728287600001601081819054906101000a900463ffffffff166001900391906101000a81548163ffffffff021916908363ffffffff160217905563ffffffff16611b59565b90506000610f8888610f838d611c80565b611b59565b9050610f9b838263ffffffff1684611c93565b610fb488610fae8463ffffffff16611c80565b83611c93565b5050600084600001601081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff16021790555090506110448360008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208263ffffffff168c611c93565b611059878b611053888f611cbe565b84611dc9565b506110658b8b8b611e0b565b826000528960601b60601c8b60601b60601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206000a35050505050505050505050565b8060005260206000f35b6110bd82611e10565b6110d26110c8610ad3565b60030183866110de565b60000181905550505050565b60008160285282601452836000526048600020905060006028529392505050565b600061110a82611e1c565b611140576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61114982611150565b9050919050565b60008061115b610ad3565b905080600201600061118083600a0161117b61117688611b36565b611b49565b611b59565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b6000806111ce610ad3565b90508060020160006111f383600a016111ee6111e989611b36565b611b49565b611b59565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146112b05760006112738260030184866110de565b6000015414156112af576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8481600401600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506113428160050185600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff161415611c5c565b509392505050565b600061135582611e1c565b61138b576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611393610ad3565b600401600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006113d9610ad3565b600b0160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a900463ffffffff1663ffffffff169050919050565b6000611444610ad3565b60000160109054906101000a900463ffffffff1663ffffffff16905090565b60606001805461147290613a7e565b80601f016020809104026020016040519081016040528092919081815260200182805461149e90613a7e565b80156114eb5780601f106114c0576101008083540402835291602001916114eb565b820191906000526020600020905b8154815290600101906020018083116114ce57829003601f168201915b5050505050905090565b6000611502338484611e5d565b6001905092915050565b6000611516610ad3565b60000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16905090565b60008061155d611553610ad3565b60070186336110de565b90506000611569611f82565b80156115af57506e22d473030f116ddee9f6b43ac78ba373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80156116195750600060046115c2610ad3565b600b0160008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600b9054906101000a900460ff161660ff16145b611627578160000154611649565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146116b857808411156116ac576040517f13be252b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83810382600001819055505b6116c3868686611f87565b6001925050509392505050565b6000806116db610ad3565b600b0160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600182600001600b9054906101000a900460ff161660ff16141561174e5761174683612ba2565b91505061176e565b6000600282600001600b9054906101000a900460ff161660ff1614159150505b919050565b600061177f3383612bad565b60019050919050565b60006012905090565b600061179b610ad3565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6117cc612c49565b8181600391906117dd929190613385565b505050565b60006117ec610ad3565b600b0160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff169050919050565b611865612c49565b61186f6000612cc7565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546118a990613a7e565b80601f01602080910402602001604051908101604052809291908181526020018280546118d590613a7e565b80156119225780601f106118f757610100808354040283529160200191611922565b820191906000526020600020905b81548152906001019060200180831161190557829003601f168201915b5050505050905090565b6000611939338484611f87565b6001905092915050565b606060006003805461195490613a7e565b90501461198957600361196683612d8b565b6040516020016119779291906138c8565b60405160208183030381529060405290505b919050565b611996612c49565b6119a08282612bad565b5050565b60006119ae611f82565b80156119f457506e22d473030f116ddee9f6b43ac78ba373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15611a90576000611a03610ad3565b600b0160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600b9054906101000a900460ff16905060006004821660ff161415611a8e577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff915050611aac565b505b611aa5611a9b610ad3565b60070184846110de565b6000015490505b92915050565b611aba612c49565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2190613944565b60405180910390fd5b611b3381612cc7565b50565b6000640100000000821082029050919050565b60006001808303901b9050919050565b60008160031c8360601b0180546007841660051b1c63ffffffff1691505092915050565b6000611b87610ad3565b600b0160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600182600001600b9054906101000a900460ff161660ff161415611c29576000600260ff16611c01611bfc85612ba2565b611e10565b029050600160ff16811782600001600b6101000a81548160ff021916908360ff160217905550505b919050565b6000670de0b6b3a7640000905090565b60008160081c8360601b0180548360ff161c60011691505092915050565b8160081c8360601b018260ff16821515811b6001821b198354161782555050505050565b600060018060018403901b019050919050565b8160031c8360601b016007831660051b815480821c841863ffffffff16821b81188355505050505050565b600080611cc9610ad3565b905083600001600c9054906101000a900463ffffffff16915060008263ffffffff161415611dc25780600001600081819054906101000a900463ffffffff1660010191906101000a81548163ffffffff021916908363ffffffff160217905591508184600001600c6101000a81548163ffffffff021916908363ffffffff160217905550828160020160008463ffffffff1663ffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008263ffffffff161415611dc157600080fd5b5b5092915050565b600183038060021c8560601b0180546003831660061b8563ffffffff168560201b178083831c1867ffffffffffffffff16821b83188455505050505050505050565b505050565b60008115159050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16611e3e83611150565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b611e65611f82565b8015611eab57506e22d473030f116ddee9f6b43ac78ba373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15611f28576004611eba610ad3565b600b0160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600b8282829054906101000a900460ff161792506101000a81548160ff021916908360ff1602179055505b80611f3e611f34610ad3565b60070185856110de565b60000181905550806000528160601b60601c8360601b60601c7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560206000a3505050565b600090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fee576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ff984611b7d565b9050600061200684611b7d565b90506000612012610ad3565b9050600073ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561207257600080fd5b61207a61340b565b8360000160109054906101000a900463ffffffff1663ffffffff168160800181815250508260000160109054906101000a900463ffffffff1663ffffffff168160a00181815250508160000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff168160c00181815250508360000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff168160400181815250851115612162576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8481604001818151039150818152508460000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550848360000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff160181606001818152508360000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550612259816080015161221a611c2e565b836040015181612253577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04612eaf565b8160000181815250506000600284600001600b9054906101000a900460ff161660ff161415612324578573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614156122cb5780600001518160800151038160a00181815250505b61231a6122d6611c2e565b82606001518161230f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b048260a00151612eaf565b8160200181815250505b61232c612ec0565b156125df576000612352826080015161234d84600001518560200151612ec9565b612ec9565b9050600081141561236357506125df565b80826000018181510391508181525050808260200181815103915081815250508673ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff1614156123cd57808260a0018181510191508181525050506125df565b60006123da828a8a612edc565b905060008460080160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008560080160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050612470878b611cbe565b85610140019063ffffffff16908163ffffffff168152505060008560a0015190505b60006124ac84886080018051600190039081815250611b59565b63ffffffff1690506124bf838383611c93565b6124d988600a018289610140015185806001019650611dc9565b6124e38582612f15565b6124f08860050182611c3e565b1561253d5761250488600501826000611c5c565b87600401600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b6125488d8d83611e0b565b5060008560019003955085141561249257808660a001818152508860000160106101000a81548163ffffffff021916908363ffffffff16021790555085608001518960000160106101000a81548163ffffffff021916908363ffffffff1602179055506125d9848860010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612f25565b50505050505b806000015181602001518360000160109054906101000a900463ffffffff1663ffffffff1601038160e00181815250508060e001518260000160106101000a81548163ffffffff021916908363ffffffff160217905550600082600a01905060006126538360200151846000015101612f7e565b905083600001600c9054906101000a900463ffffffff1683610180019063ffffffff16908163ffffffff168152505060008360000151146128655761269a818a6001612fa9565b60006126ae8460e001518560c00151612fb9565b905060008560080160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600085608001519050856000015181038661010001818152508960000160106101000a81548163ffffffff021916908363ffffffff160217905550600086610180015190505b600061274e848460019003945084611b59565b63ffffffff1690506127638782600080611dc9565b61276d8682612fc8565b612775612fe1565b1561278a5761278989600601826000611c5c565b5b84156127ab576127aa896009018380600101945063ffffffff1683611c93565b5b6127b88960050182611c3e565b15612805576127cc89600501826000611c5c565b88600401600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b6128118e600083611e0b565b5086610100015182141561273b578315612860578087610180019063ffffffff16908163ffffffff1681525088600001600c6101000a81548163ffffffff021916908363ffffffff1602179055505b505050505b6000836020015114612b235761287d81896000612fa9565b60008460080160008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506128cc868a611cbe565b84610140019063ffffffff16908163ffffffff168152505060006128ee611c2e565b8560c0015181612927577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04905061294e8660000160049054906101000a900463ffffffff1663ffffffff1682612fea565b8561016001818152505060008560a001519050856020015181018661012001818152508860000160106101000a81548163ffffffff021916908363ffffffff16021790555060008760000160089054906101000a900463ffffffff1690505b600087610180015163ffffffff168263ffffffff16146129ed576129e0896009018380600101945063ffffffff16611b59565b63ffffffff169050612a70565b87610160015190505b6000612a0a88612a0584611b49565b611b59565b63ffffffff1614612a5857612a1d612fe1565b612a3357612a2e6001820185612fea565b612a51565b612a50612a4a8a6006016001840160018801612ffe565b85612fea565b5b90506129f6565b612a656001820185612fea565b886101600181815250505b612a78612fe1565b15612a8d57612a8c89600601826001611c5c565b5b612a98858483611c93565b612aaf87828a610140015186806001019750611dc9565b612ab98682612fc8565b612ac560008e83611e0b565b508661012001518214156129ad57808860000160086101000a81548163ffffffff021916908363ffffffff1602179055508661016001518860000160046101000a81548163ffffffff021916908363ffffffff160217905550505050505b600081604001515114612b5f57612b5e818560010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16613105565b5b5050846000528560601b60601c8760601b60601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206000a350505050505050565b6000813b9050919050565b6000612bb883611b7d565b90508115156000600283600001600b9054906101000a900460ff161660ff161415151514612c1157600281600001600b8282829054906101000a900460ff161892506101000a81548160ff021916908360ff1602179055505b8115156000528260601b60601c7fb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d642039360206000a2505050565b612c51613146565b73ffffffffffffffffffffffffffffffffffffffff16612c6f611871565b73ffffffffffffffffffffffffffffffffffffffff1614612cc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cbc90613964565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060006001612d9a8461314e565b01905060008167ffffffffffffffff811115612ddf577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e115781602001600182028036833780820191505090505b509050600082602001820190505b600115612ea4578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612e8e577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0494506000851415612e9f57612ea4565b612e1f565b819350505050919050565b600081830382841102905092915050565b60006001905090565b6000828210828418028318905092915050565b612ee461347f565b604051848152806020018560051b810160405281836060015283836040015284836020015280835250509392505050565b8151818152602081018352505050565b6060820151805160051b6084016080820363144027d381528460200151856040015181602084015280604084015260608084015260208385601c860160008a5af1600184511416612f7557600083fd5b50505050505050565b612f866134d3565b604051828152806020018360051b81016040528183604001528083525050919050565b808260601b176020840152505050565b60008291506000905092915050565b81518160081b6020840151178152602081018352505050565b60006001905090565b600081831183838511150217905092915050565b6000801990508360601b8360081c81018054198560ff161c8560ff161b80613067578460081c83015b60011561304d5760018301925082541991508083118217156130485761304d565b613027565b808311156130655781861960ff161b861960ff161c91505b505b80156130fb5760018119018116806fffffffffffffffffffffffffffffffff1060071b81811c67ffffffffffffffff1060061b8117905081811c63ffffffff1060051b811790507e1f0d1e100c1d070f090b19131c1706010e11080a1a141802121b1503160405601f83831c63d76453e004161a811790508085850360081b17905087811087821015176000038117955050505b5050509392505050565b60408201516040810363263c69d68152602080820152815160051b60440160208282601c85016000885af160018351141661313f57600082fd5b5050505050565b600033905090565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106131d2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816131c8577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613235576d04ee2d6d415b85acef8100000000838161322b577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0492506020810190505b662386f26fc10000831061328a57662386f26fc100008381613280577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0492506010810190505b6305f5e10083106132d9576305f5e10083816132cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0492506008810190505b612710831061332457612710838161331a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0492506004810190505b6064831061336d5760648381613363577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0492506002810190505b600a831061337c576001810190505b80915050919050565b82805461339190613a7e565b90600052602060002090601f0160209004810192826133b357600085556133fa565b82601f106133cc57803560ff19168380011785556133fa565b828001600101855582156133fa579182015b828111156133f95782358255916020019190600101906133de565b5b50905061340791906134f4565b5090565b604051806101a0016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600063ffffffff16815260200160008152602001600063ffffffff1681525090565b604051806080016040528060008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001606081525090565b60405180606001604052806000815260200160008152602001606081525090565b5b8082111561350d5760008160009055506001016134f5565b5090565b60008135905061352081613b68565b92915050565b60008135905061353581613b7f565b92915050565b60008083601f84011261354d57600080fd5b8235905067ffffffffffffffff81111561356657600080fd5b60208301915083600182028301111561357e57600080fd5b9250929050565b60008135905061359481613b96565b92915050565b6000602082840312156135ac57600080fd5b60006135ba84828501613511565b91505092915050565b600080604083850312156135d657600080fd5b60006135e485828601613511565b92505060206135f585828601613511565b9150509250929050565b60008060006060848603121561361457600080fd5b600061362286828701613511565b935050602061363386828701613511565b925050604061364486828701613585565b9150509250925092565b6000806040838503121561366157600080fd5b600061366f85828601613511565b925050602061368085828601613526565b9150509250929050565b6000806040838503121561369d57600080fd5b60006136ab85828601613511565b92505060206136bc85828601613585565b9150509250929050565b6000602082840312156136d857600080fd5b60006136e684828501613526565b91505092915050565b6000806020838503121561370257600080fd5b600083013567ffffffffffffffff81111561371c57600080fd5b6137288582860161353b565b92509250509250929050565b60006020828403121561374657600080fd5b600061375484828501613585565b91505092915050565b613766816139f6565b82525050565b61377581613a08565b82525050565b6000613786826139cf565b61379081856139da565b93506137a0818560208601613a4b565b6137a981613adf565b840191505092915050565b60006137bf826139cf565b6137c981856139eb565b93506137d9818560208601613a4b565b80840191505092915050565b600081546137f281613a7e565b6137fc81866139eb565b9450600182166000811461381757600181146138285761385b565b60ff1983168652818601935061385b565b613831856139ba565b60005b8381101561385357815481890152600182019150602081019050613834565b838801955050505b50505092915050565b60006138716026836139da565b915061387c82613af0565b604082019050919050565b60006138946020836139da565b915061389f82613b3f565b602082019050919050565b6138b381613a34565b82525050565b6138c281613a3e565b82525050565b60006138d482856137e5565b91506138e082846137b4565b91508190509392505050565b6000602082019050613901600083018461375d565b92915050565b600060208201905061391c600083018461376c565b92915050565b6000602082019050818103600083015261393c818461377b565b905092915050565b6000602082019050818103600083015261395d81613864565b9050919050565b6000602082019050818103600083015261397d81613887565b9050919050565b600060208201905061399960008301846138aa565b92915050565b60006020820190506139b460008301846138b9565b92915050565b60008190508160005260206000209050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000613a0182613a14565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015613a69578082015181840152602081019050613a4e565b83811115613a78576000848401525b50505050565b60006002820490506001821680613a9657607f821691505b60208210811415613aaa57613aa9613ab0565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b613b71816139f6565b8114613b7c57600080fd5b50565b613b8881613a08565b8114613b9357600080fd5b50565b613b9f81613a34565b8114613baa57600080fd5b5056fea264697066735822122077b901e1526cf6c705a1d75368a5845f6b717aaef3e04c8418d07fa5028600f564736f6c6343000804003360806040523480156200001157600080fd5b5060405162001593380380620015938339818101604052810190620000379190620000b8565b80620000486200009060201b60201c565b60010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000132565b6000683602298b8c10b01230905090565b600081519050620000b28162000118565b92915050565b600060208284031215620000cb57600080fd5b6000620000db84828501620000a1565b91505092915050565b6000620000f182620000f8565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6200012381620000e4565b81146200012f57600080fd5b50565b61145180620001426000396000f3fe60806040526004361061010d5760003560e01c80636cef16e61161009557806397e5311c1161006457806397e5311c14610791578063a22cb465146107bc578063b88d4fde146107e5578063c87b56dd14610801578063e985e9c51461083e57610121565b80636cef16e6146106d357806370a08231146106fe5780638da5cb5b1461073b57806395d89b411461076657610121565b806318160ddd116100dc57806318160ddd146105f657806323b872dd14610621578063243598791461063d57806342842e0e1461067a5780636352211e1461069657610121565b806301ffc9a71461053557806306fdde0314610572578063081812fc1461059d578063095ea7b3146105da57610121565b36610121576000341461011f57600080fd5b005b600061012b61087b565b9050600060e061013b600061088c565b901c905063263c69d6811415610242578160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101d4576040517f363cb31200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600435602401602081033560051b81015b8082146102375781358060601c816001168260a01b60a81c811583028284027fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600038a45050508160200191506101e5565b600160005260206000f35b63144027d3811415610334578160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102d7576040517f363cb31200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600435602435604435602401602081033560051b81015b80821461032957813583857fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600038a48160200191506102ee565b600160005260206000f35b630f4599e581141561050357600073ffffffffffffffffffffffffffffffffffffffff168260010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461042b578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166103dd600461088c565b73ffffffffffffffffffffffffffffffffffffffff161461042a576040517fc59ec47a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146104b5576040517fbf656a4600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b338260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160005260206000f35b6040517f3c10b94e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b34801561054157600080fd5b5061055c600480360381019061055791906111c0565b610897565b6040516105699190611293565b60405180910390f35b34801561057e57600080fd5b506105876108bc565b60405161059491906112ae565b60405180910390f35b3480156105a957600080fd5b506105c460048036038101906105bf91906111e9565b6108d2565b6040516105d19190611278565b60405180910390f35b6105f460048036038101906105ef9190611184565b6108eb565b005b34801561060257600080fd5b5061060b610971565b60405161061891906112d0565b60405180910390f35b61063b60048036038101906106369190611079565b610988565b005b34801561064957600080fd5b50610664600480360381019061065f91906111e9565b610a17565b6040516106719190611278565b60405180910390f35b610694600480360381019061068f9190611079565b610a30565b005b3480156106a257600080fd5b506106bd60048036038101906106b891906111e9565b610a6a565b6040516106ca9190611278565b60405180910390f35b3480156106df57600080fd5b506106e8610a83565b6040516106f59190611293565b60405180910390f35b34801561070a57600080fd5b5061072560048036038101906107209190611014565b610bc6565b60405161073291906112d0565b60405180910390f35b34801561074757600080fd5b50610750610bf5565b60405161075d9190611278565b60405180910390f35b34801561077257600080fd5b5061077b610c28565b60405161078891906112ae565b60405180910390f35b34801561079d57600080fd5b506107a6610c3e565b6040516107b39190611278565b60405180910390f35b3480156107c857600080fd5b506107e360048036038101906107de9190611148565b610cd8565b005b6107ff60048036038101906107fa91906110c8565b610d5d565b005b34801561080d57600080fd5b50610828600480360381019061082391906111e9565b610dce565b60405161083591906112ae565b60405180910390f35b34801561084a57600080fd5b506108656004803603810190610860919061103d565b610de5565b6040516108729190611293565b60405180910390f35b6000683602298b8c10b01230905090565b600081359050919050565b60008160e01c635b5e139f81146380ac58cd82146301ffc9a783141717915050919050565b60606108cd6306fdde036000610e2d565b905090565b60006108e463081812fc836000610e93565b9050919050565b60006108f5610c3e565b90508260601b60601c925060405163d10b6e0c600052836020528260405233606052602060006064601c34865af1601f3d1116610935573d6000823e3d81fd5b8060405260006060528284600c5160601c7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600038a450505050565b600061098363e2c79281600080610e93565b905090565b6000610992610c3e565b90508360601b60601c93508260601b60601c925060405163e5eb36c881528460208201528360408201528260608201523360808201526020816084601c840134865af16001825114166109e8573d6000823e3d81fd5b8284867fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600038a45050505050565b6000610a296324359879836000610e93565b9050919050565b610a3b838383610988565b610a4482610ede565b15610a6557610a6483838360405180602001604052806000815250610ee9565b5b505050565b6000610a7c636352211e836000610e93565b9050919050565b6000806000610a90610c3e565b9050638da5cb5b600052602060006004601c845afa80601f3d1116600c5160601c029250506000610abf61087b565b905060008160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bbb57838260020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35b600194505050505090565b6000610bee63f5b100ea8373ffffffffffffffffffffffffffffffffffffffff166000610e93565b9050919050565b6000610bff61087b565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060610c396395d89b416000610e2d565b905090565b6000610c4861087b565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610cd5576040517f5b2a47ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b90565b6000610ce2610c3e565b90508260601b60601c925060405163813500fc6000528360205282151560405233606052602060006064601c34865af160016000511416610d26573d6000823e3d81fd5b83337f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160206040a380604052600060605250505050565b610d68858585610988565b610d7184610ede565b15610dc757610dc685858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610ee9565b5b5050505050565b6060610dde63c87b56dd83610e2d565b9050919050565b600080610e2363e985e9c58573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16610e93565b1415905092915050565b60606000610e39610c3e565b9050604051915083600052826020526000806024601c845afa610e5f573d6000833e3d82fd5b60206000803e6020600051833e8151602060005101602084013e815160208301016000815260208101604052505092915050565b600080610e9e610c3e565b9050604051856000528460205283604052602060006044601c855afa601f3d1116610ecc573d6000823e3d81fd5b80604052600051925050509392505050565b6000813b9050919050565b60405163150b7a028082523360208301528560601b60601c604083015283606083015260808083015282518060a08401528015610f30578060c08401826020870160045afa505b60208360a48301601c860160008a5af1610f54573d15610f53573d6000843e3d83fd5b5b8160e01b835114610f6d5763d1a57ed66000526004601cfd5b50505050505050565b600081359050610f85816113bf565b92915050565b600081359050610f9a816113d6565b92915050565b600081359050610faf816113ed565b92915050565b60008083601f840112610fc757600080fd5b8235905067ffffffffffffffff811115610fe057600080fd5b602083019150836001820283011115610ff857600080fd5b9250929050565b60008135905061100e81611404565b92915050565b60006020828403121561102657600080fd5b600061103484828501610f76565b91505092915050565b6000806040838503121561105057600080fd5b600061105e85828601610f76565b925050602061106f85828601610f76565b9150509250929050565b60008060006060848603121561108e57600080fd5b600061109c86828701610f76565b93505060206110ad86828701610f76565b92505060406110be86828701610fff565b9150509250925092565b6000806000806000608086880312156110e057600080fd5b60006110ee88828901610f76565b95505060206110ff88828901610f76565b945050604061111088828901610fff565b935050606086013567ffffffffffffffff81111561112d57600080fd5b61113988828901610fb5565b92509250509295509295909350565b6000806040838503121561115b57600080fd5b600061116985828601610f76565b925050602061117a85828601610f8b565b9150509250929050565b6000806040838503121561119757600080fd5b60006111a585828601610f76565b92505060206111b685828601610fff565b9150509250929050565b6000602082840312156111d257600080fd5b60006111e084828501610fa0565b91505092915050565b6000602082840312156111fb57600080fd5b600061120984828501610fff565b91505092915050565b61121b81611307565b82525050565b61122a81611319565b82525050565b600061123b826112eb565b61124581856112f6565b935061125581856020860161137b565b61125e816113ae565b840191505092915050565b61127281611371565b82525050565b600060208201905061128d6000830184611212565b92915050565b60006020820190506112a86000830184611221565b92915050565b600060208201905081810360008301526112c88184611230565b905092915050565b60006020820190506112e56000830184611269565b92915050565b600081519050919050565b600082825260208201905092915050565b600061131282611351565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101561139957808201518184015260208101905061137e565b838111156113a8576000848401525b50505050565b6000601f19601f8301169050919050565b6113c881611307565b81146113d357600080fd5b50565b6113df81611319565b81146113ea57600080fd5b50565b6113f681611325565b811461140157600080fd5b50565b61140d81611371565b811461141857600080fd5b5056fea2646970667358221220325a6adcc8b0323f074e3f9853220c29d1bed74fa12e6908e5ab64c322d4d9cc64736f6c63430008040033
Deployed Bytecode
0x60806040526004361061010d5760003560e01c806370a0823111610095578063a9059cbb11610064578063a9059cbb146109ca578063c87b56dd14610a07578063d2cb0e9014610a44578063dd62ed3e14610a6d578063f2fde38b14610aaa57610121565b806370a0823114610920578063715018a61461095d5780638da5cb5b1461097457806395d89b411461099f57610121565b8063274e430b116100dc578063274e430b146108275780632a6a935d14610864578063313ce567146108a15780634ef41efc146108cc57806355f804b3146108f757610121565b806306fdde0314610757578063095ea7b31461078257806318160ddd146107bf57806323b872dd146107ea57610121565b36610121576000341461011f57600080fd5b005b600061012b610ad3565b9050600060e061013b6000610ae4565b901c905060008260010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905063e5eb36c8821415610214578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101d9576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102096101e66004610ae4565b6101f06024610ae4565b6101fa6044610ae4565b6102046064610ae4565b610aef565b61021360016110aa565b5b63813500fc8214156102ba578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610285576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102af6102926004610ae4565b600061029e6024610ae4565b14156102aa6044610ae4565b6110b4565b6102b960016110aa565b5b63e985e9c582141561035e578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461032b576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061034d8460030161033e6004610ae4565b6103486024610ae4565b6110de565b905061035c81600001546110aa565b505b636352211e821415610400578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103cf576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103ff6103e46103df6004610ae4565b6110ff565b73ffffffffffffffffffffffffffffffffffffffff166110aa565b5b63243598798214156104a2578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610471576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104a16104866104816004610ae4565b611150565b73ffffffffffffffffffffffffffffffffffffffff166110aa565b5b63d10b6e0c82141561055e578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610513576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061053b6105226004610ae4565b61052c6024610ae4565b6105366044610ae4565b6111c3565b905061055c8173ffffffffffffffffffffffffffffffffffffffff166110aa565b505b63081812fc821415610600578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105cf576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105ff6105e46105df6004610ae4565b61134a565b73ffffffffffffffffffffffffffffffffffffffff166110aa565b5b63f5b100ea82141561068c578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610671576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61068b6106866106816004610ae4565b6113cf565b6110aa565b5b63e2c7928182141561070e578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106fd576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61070d61070861143a565b6110aa565b5b63b7a94eb88214156107255761072460016110aa565b5b6040517f3c10b94e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b34801561076357600080fd5b5061076c611463565b6040516107799190613922565b60405180910390f35b34801561078e57600080fd5b506107a960048036038101906107a4919061368a565b6114f5565b6040516107b69190613907565b60405180910390f35b3480156107cb57600080fd5b506107d461150c565b6040516107e19190613984565b60405180910390f35b3480156107f657600080fd5b50610811600480360381019061080c91906135ff565b611545565b60405161081e9190613907565b60405180910390f35b34801561083357600080fd5b5061084e6004803603810190610849919061359a565b6116d0565b60405161085b9190613907565b60405180910390f35b34801561087057600080fd5b5061088b600480360381019061088691906136c6565b611773565b6040516108989190613907565b60405180910390f35b3480156108ad57600080fd5b506108b6611788565b6040516108c3919061399f565b60405180910390f35b3480156108d857600080fd5b506108e1611791565b6040516108ee91906138ec565b60405180910390f35b34801561090357600080fd5b5061091e600480360381019061091991906136ef565b6117c4565b005b34801561092c57600080fd5b506109476004803603810190610942919061359a565b6117e2565b6040516109549190613984565b60405180910390f35b34801561096957600080fd5b5061097261185d565b005b34801561098057600080fd5b50610989611871565b60405161099691906138ec565b60405180910390f35b3480156109ab57600080fd5b506109b461189a565b6040516109c19190613922565b60405180910390f35b3480156109d657600080fd5b506109f160048036038101906109ec919061368a565b61192c565b6040516109fe9190613907565b60405180910390f35b348015610a1357600080fd5b50610a2e6004803603810190610a299190613734565b611943565b604051610a3b9190613922565b60405180910390f35b348015610a5057600080fd5b50610a6b6004803603810190610a66919061364e565b61198e565b005b348015610a7957600080fd5b50610a946004803603810190610a8f91906135c3565b6119a4565b604051610aa19190613984565b60405180910390f35b348015610ab657600080fd5b50610ad16004803603810190610acc919061359a565b611ab2565b005b600068a20d6e21d0e5255308905090565b600081359050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b56576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610b60610ad3565b9050600073ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610bc057600080fd5b600081600a019050816002016000610be883610be3610bde89611b36565b611b49565b611b59565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614610c87576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610d70576000610cca8360030188866110de565b600001541415610d6f5781600401600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610d6e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6000610d7b87611b7d565b90506000610d8887611b7d565b90506000610d94611c2e565b9050600085600801905060008160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008560000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16905080841115610e49576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8381038660000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550838560000160148282829054906101000a90046bffffffffffffffffffffffff160192506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050610edc876005018a611c3e565b15610f2957610ef0876005018a6000611c5c565b8660040160008a815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b6000610f728287600001601081819054906101000a900463ffffffff166001900391906101000a81548163ffffffff021916908363ffffffff160217905563ffffffff16611b59565b90506000610f8888610f838d611c80565b611b59565b9050610f9b838263ffffffff1684611c93565b610fb488610fae8463ffffffff16611c80565b83611c93565b5050600084600001601081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff16021790555090506110448360008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208263ffffffff168c611c93565b611059878b611053888f611cbe565b84611dc9565b506110658b8b8b611e0b565b826000528960601b60601c8b60601b60601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206000a35050505050505050505050565b8060005260206000f35b6110bd82611e10565b6110d26110c8610ad3565b60030183866110de565b60000181905550505050565b60008160285282601452836000526048600020905060006028529392505050565b600061110a82611e1c565b611140576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61114982611150565b9050919050565b60008061115b610ad3565b905080600201600061118083600a0161117b61117688611b36565b611b49565b611b59565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b6000806111ce610ad3565b90508060020160006111f383600a016111ee6111e989611b36565b611b49565b611b59565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146112b05760006112738260030184866110de565b6000015414156112af576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8481600401600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506113428160050185600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff161415611c5c565b509392505050565b600061135582611e1c565b61138b576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611393610ad3565b600401600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006113d9610ad3565b600b0160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a900463ffffffff1663ffffffff169050919050565b6000611444610ad3565b60000160109054906101000a900463ffffffff1663ffffffff16905090565b60606001805461147290613a7e565b80601f016020809104026020016040519081016040528092919081815260200182805461149e90613a7e565b80156114eb5780601f106114c0576101008083540402835291602001916114eb565b820191906000526020600020905b8154815290600101906020018083116114ce57829003601f168201915b5050505050905090565b6000611502338484611e5d565b6001905092915050565b6000611516610ad3565b60000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16905090565b60008061155d611553610ad3565b60070186336110de565b90506000611569611f82565b80156115af57506e22d473030f116ddee9f6b43ac78ba373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80156116195750600060046115c2610ad3565b600b0160008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600b9054906101000a900460ff161660ff16145b611627578160000154611649565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146116b857808411156116ac576040517f13be252b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83810382600001819055505b6116c3868686611f87565b6001925050509392505050565b6000806116db610ad3565b600b0160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600182600001600b9054906101000a900460ff161660ff16141561174e5761174683612ba2565b91505061176e565b6000600282600001600b9054906101000a900460ff161660ff1614159150505b919050565b600061177f3383612bad565b60019050919050565b60006012905090565b600061179b610ad3565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6117cc612c49565b8181600391906117dd929190613385565b505050565b60006117ec610ad3565b600b0160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff169050919050565b611865612c49565b61186f6000612cc7565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546118a990613a7e565b80601f01602080910402602001604051908101604052809291908181526020018280546118d590613a7e565b80156119225780601f106118f757610100808354040283529160200191611922565b820191906000526020600020905b81548152906001019060200180831161190557829003601f168201915b5050505050905090565b6000611939338484611f87565b6001905092915050565b606060006003805461195490613a7e565b90501461198957600361196683612d8b565b6040516020016119779291906138c8565b60405160208183030381529060405290505b919050565b611996612c49565b6119a08282612bad565b5050565b60006119ae611f82565b80156119f457506e22d473030f116ddee9f6b43ac78ba373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15611a90576000611a03610ad3565b600b0160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600b9054906101000a900460ff16905060006004821660ff161415611a8e577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff915050611aac565b505b611aa5611a9b610ad3565b60070184846110de565b6000015490505b92915050565b611aba612c49565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2190613944565b60405180910390fd5b611b3381612cc7565b50565b6000640100000000821082029050919050565b60006001808303901b9050919050565b60008160031c8360601b0180546007841660051b1c63ffffffff1691505092915050565b6000611b87610ad3565b600b0160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600182600001600b9054906101000a900460ff161660ff161415611c29576000600260ff16611c01611bfc85612ba2565b611e10565b029050600160ff16811782600001600b6101000a81548160ff021916908360ff160217905550505b919050565b6000670de0b6b3a7640000905090565b60008160081c8360601b0180548360ff161c60011691505092915050565b8160081c8360601b018260ff16821515811b6001821b198354161782555050505050565b600060018060018403901b019050919050565b8160031c8360601b016007831660051b815480821c841863ffffffff16821b81188355505050505050565b600080611cc9610ad3565b905083600001600c9054906101000a900463ffffffff16915060008263ffffffff161415611dc25780600001600081819054906101000a900463ffffffff1660010191906101000a81548163ffffffff021916908363ffffffff160217905591508184600001600c6101000a81548163ffffffff021916908363ffffffff160217905550828160020160008463ffffffff1663ffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008263ffffffff161415611dc157600080fd5b5b5092915050565b600183038060021c8560601b0180546003831660061b8563ffffffff168560201b178083831c1867ffffffffffffffff16821b83188455505050505050505050565b505050565b60008115159050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16611e3e83611150565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b611e65611f82565b8015611eab57506e22d473030f116ddee9f6b43ac78ba373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15611f28576004611eba610ad3565b600b0160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600b8282829054906101000a900460ff161792506101000a81548160ff021916908360ff1602179055505b80611f3e611f34610ad3565b60070185856110de565b60000181905550806000528160601b60601c8360601b60601c7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560206000a3505050565b600090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fee576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ff984611b7d565b9050600061200684611b7d565b90506000612012610ad3565b9050600073ffffffffffffffffffffffffffffffffffffffff168160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561207257600080fd5b61207a61340b565b8360000160109054906101000a900463ffffffff1663ffffffff168160800181815250508260000160109054906101000a900463ffffffff1663ffffffff168160a00181815250508160000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff168160c00181815250508360000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff168160400181815250851115612162576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8481604001818151039150818152508460000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550848360000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff160181606001818152508360000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550612259816080015161221a611c2e565b836040015181612253577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04612eaf565b8160000181815250506000600284600001600b9054906101000a900460ff161660ff161415612324578573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614156122cb5780600001518160800151038160a00181815250505b61231a6122d6611c2e565b82606001518161230f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b048260a00151612eaf565b8160200181815250505b61232c612ec0565b156125df576000612352826080015161234d84600001518560200151612ec9565b612ec9565b9050600081141561236357506125df565b80826000018181510391508181525050808260200181815103915081815250508673ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff1614156123cd57808260a0018181510191508181525050506125df565b60006123da828a8a612edc565b905060008460080160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008560080160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050612470878b611cbe565b85610140019063ffffffff16908163ffffffff168152505060008560a0015190505b60006124ac84886080018051600190039081815250611b59565b63ffffffff1690506124bf838383611c93565b6124d988600a018289610140015185806001019650611dc9565b6124e38582612f15565b6124f08860050182611c3e565b1561253d5761250488600501826000611c5c565b87600401600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b6125488d8d83611e0b565b5060008560019003955085141561249257808660a001818152508860000160106101000a81548163ffffffff021916908363ffffffff16021790555085608001518960000160106101000a81548163ffffffff021916908363ffffffff1602179055506125d9848860010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612f25565b50505050505b806000015181602001518360000160109054906101000a900463ffffffff1663ffffffff1601038160e00181815250508060e001518260000160106101000a81548163ffffffff021916908363ffffffff160217905550600082600a01905060006126538360200151846000015101612f7e565b905083600001600c9054906101000a900463ffffffff1683610180019063ffffffff16908163ffffffff168152505060008360000151146128655761269a818a6001612fa9565b60006126ae8460e001518560c00151612fb9565b905060008560080160008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600085608001519050856000015181038661010001818152508960000160106101000a81548163ffffffff021916908363ffffffff160217905550600086610180015190505b600061274e848460019003945084611b59565b63ffffffff1690506127638782600080611dc9565b61276d8682612fc8565b612775612fe1565b1561278a5761278989600601826000611c5c565b5b84156127ab576127aa896009018380600101945063ffffffff1683611c93565b5b6127b88960050182611c3e565b15612805576127cc89600501826000611c5c565b88600401600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b6128118e600083611e0b565b5086610100015182141561273b578315612860578087610180019063ffffffff16908163ffffffff1681525088600001600c6101000a81548163ffffffff021916908363ffffffff1602179055505b505050505b6000836020015114612b235761287d81896000612fa9565b60008460080160008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506128cc868a611cbe565b84610140019063ffffffff16908163ffffffff168152505060006128ee611c2e565b8560c0015181612927577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04905061294e8660000160049054906101000a900463ffffffff1663ffffffff1682612fea565b8561016001818152505060008560a001519050856020015181018661012001818152508860000160106101000a81548163ffffffff021916908363ffffffff16021790555060008760000160089054906101000a900463ffffffff1690505b600087610180015163ffffffff168263ffffffff16146129ed576129e0896009018380600101945063ffffffff16611b59565b63ffffffff169050612a70565b87610160015190505b6000612a0a88612a0584611b49565b611b59565b63ffffffff1614612a5857612a1d612fe1565b612a3357612a2e6001820185612fea565b612a51565b612a50612a4a8a6006016001840160018801612ffe565b85612fea565b5b90506129f6565b612a656001820185612fea565b886101600181815250505b612a78612fe1565b15612a8d57612a8c89600601826001611c5c565b5b612a98858483611c93565b612aaf87828a610140015186806001019750611dc9565b612ab98682612fc8565b612ac560008e83611e0b565b508661012001518214156129ad57808860000160086101000a81548163ffffffff021916908363ffffffff1602179055508661016001518860000160046101000a81548163ffffffff021916908363ffffffff160217905550505050505b600081604001515114612b5f57612b5e818560010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16613105565b5b5050846000528560601b60601c8760601b60601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206000a350505050505050565b6000813b9050919050565b6000612bb883611b7d565b90508115156000600283600001600b9054906101000a900460ff161660ff161415151514612c1157600281600001600b8282829054906101000a900460ff161892506101000a81548160ff021916908360ff1602179055505b8115156000528260601b60601c7fb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d642039360206000a2505050565b612c51613146565b73ffffffffffffffffffffffffffffffffffffffff16612c6f611871565b73ffffffffffffffffffffffffffffffffffffffff1614612cc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cbc90613964565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060006001612d9a8461314e565b01905060008167ffffffffffffffff811115612ddf577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e115781602001600182028036833780820191505090505b509050600082602001820190505b600115612ea4578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612e8e577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0494506000851415612e9f57612ea4565b612e1f565b819350505050919050565b600081830382841102905092915050565b60006001905090565b6000828210828418028318905092915050565b612ee461347f565b604051848152806020018560051b810160405281836060015283836040015284836020015280835250509392505050565b8151818152602081018352505050565b6060820151805160051b6084016080820363144027d381528460200151856040015181602084015280604084015260608084015260208385601c860160008a5af1600184511416612f7557600083fd5b50505050505050565b612f866134d3565b604051828152806020018360051b81016040528183604001528083525050919050565b808260601b176020840152505050565b60008291506000905092915050565b81518160081b6020840151178152602081018352505050565b60006001905090565b600081831183838511150217905092915050565b6000801990508360601b8360081c81018054198560ff161c8560ff161b80613067578460081c83015b60011561304d5760018301925082541991508083118217156130485761304d565b613027565b808311156130655781861960ff161b861960ff161c91505b505b80156130fb5760018119018116806fffffffffffffffffffffffffffffffff1060071b81811c67ffffffffffffffff1060061b8117905081811c63ffffffff1060051b811790507e1f0d1e100c1d070f090b19131c1706010e11080a1a141802121b1503160405601f83831c63d76453e004161a811790508085850360081b17905087811087821015176000038117955050505b5050509392505050565b60408201516040810363263c69d68152602080820152815160051b60440160208282601c85016000885af160018351141661313f57600082fd5b5050505050565b600033905090565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106131d2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816131c8577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613235576d04ee2d6d415b85acef8100000000838161322b577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0492506020810190505b662386f26fc10000831061328a57662386f26fc100008381613280577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0492506010810190505b6305f5e10083106132d9576305f5e10083816132cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0492506008810190505b612710831061332457612710838161331a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0492506004810190505b6064831061336d5760648381613363577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0492506002810190505b600a831061337c576001810190505b80915050919050565b82805461339190613a7e565b90600052602060002090601f0160209004810192826133b357600085556133fa565b82601f106133cc57803560ff19168380011785556133fa565b828001600101855582156133fa579182015b828111156133f95782358255916020019190600101906133de565b5b50905061340791906134f4565b5090565b604051806101a0016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600063ffffffff16815260200160008152602001600063ffffffff1681525090565b604051806080016040528060008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001606081525090565b60405180606001604052806000815260200160008152602001606081525090565b5b8082111561350d5760008160009055506001016134f5565b5090565b60008135905061352081613b68565b92915050565b60008135905061353581613b7f565b92915050565b60008083601f84011261354d57600080fd5b8235905067ffffffffffffffff81111561356657600080fd5b60208301915083600182028301111561357e57600080fd5b9250929050565b60008135905061359481613b96565b92915050565b6000602082840312156135ac57600080fd5b60006135ba84828501613511565b91505092915050565b600080604083850312156135d657600080fd5b60006135e485828601613511565b92505060206135f585828601613511565b9150509250929050565b60008060006060848603121561361457600080fd5b600061362286828701613511565b935050602061363386828701613511565b925050604061364486828701613585565b9150509250925092565b6000806040838503121561366157600080fd5b600061366f85828601613511565b925050602061368085828601613526565b9150509250929050565b6000806040838503121561369d57600080fd5b60006136ab85828601613511565b92505060206136bc85828601613585565b9150509250929050565b6000602082840312156136d857600080fd5b60006136e684828501613526565b91505092915050565b6000806020838503121561370257600080fd5b600083013567ffffffffffffffff81111561371c57600080fd5b6137288582860161353b565b92509250509250929050565b60006020828403121561374657600080fd5b600061375484828501613585565b91505092915050565b613766816139f6565b82525050565b61377581613a08565b82525050565b6000613786826139cf565b61379081856139da565b93506137a0818560208601613a4b565b6137a981613adf565b840191505092915050565b60006137bf826139cf565b6137c981856139eb565b93506137d9818560208601613a4b565b80840191505092915050565b600081546137f281613a7e565b6137fc81866139eb565b9450600182166000811461381757600181146138285761385b565b60ff1983168652818601935061385b565b613831856139ba565b60005b8381101561385357815481890152600182019150602081019050613834565b838801955050505b50505092915050565b60006138716026836139da565b915061387c82613af0565b604082019050919050565b60006138946020836139da565b915061389f82613b3f565b602082019050919050565b6138b381613a34565b82525050565b6138c281613a3e565b82525050565b60006138d482856137e5565b91506138e082846137b4565b91508190509392505050565b6000602082019050613901600083018461375d565b92915050565b600060208201905061391c600083018461376c565b92915050565b6000602082019050818103600083015261393c818461377b565b905092915050565b6000602082019050818103600083015261395d81613864565b9050919050565b6000602082019050818103600083015261397d81613887565b9050919050565b600060208201905061399960008301846138aa565b92915050565b60006020820190506139b460008301846138b9565b92915050565b60008190508160005260206000209050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000613a0182613a14565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015613a69578082015181840152602081019050613a4e565b83811115613a78576000848401525b50505050565b60006002820490506001821680613a9657607f821691505b60208210811415613aaa57613aa9613ab0565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b613b71816139f6565b8114613b7c57600080fd5b50565b613b8881613a08565b8114613b9357600080fd5b50565b613b9f81613a34565b8114613baa57600080fd5b5056fea264697066735822122077b901e1526cf6c705a1d75368a5845f6b717aaef3e04c8418d07fa5028600f564736f6c63430008040033
Deployed Bytecode Sourcemap
111212:1082:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73331:1;73318:9;:14;73314:28;;73334:8;;;73314:28;111212:1082;;69510:22;69535:18;:16;:18::i;:::-;69510:43;;69566:18;69610:3;69587:19;69601:4;69587:13;:19::i;:::-;:26;;69566:47;;69624:14;69641:1;:14;;;;;;;;;;;;69624:31;;69750:10;69736;:24;69732:429;;;69795:6;69781:20;;:10;:20;;;69777:50;;69810:17;;;;;;;;;;;;;;69777:50;69842:282;69893:19;69907:4;69893:13;:19::i;:::-;69960;69974:4;69960:13;:19::i;:::-;70009;70023:4;70009:13;:19::i;:::-;70072;70086:4;70072:13;:19::i;:::-;69842:16;:282::i;:::-;70139:10;70147:1;70139:7;:10::i;:::-;69732:429;70244:10;70230;:24;70226:378;;;70289:6;70275:20;;:10;:20;;;70271:50;;70304:17;;;;;;;;;;;;;;70271:50;70336:231;70389:19;70403:4;70389:13;:19::i;:::-;70466:1;70443:19;70457:4;70443:13;:19::i;:::-;:24;;70515:19;70529:4;70515:13;:19::i;:::-;70336:18;:231::i;:::-;70582:10;70590:1;70582:7;:10::i;:::-;70226:378;70681:10;70667;:24;70663:376;;;70726:6;70712:20;;:10;:20;;;70708:50;;70741:17;;;;;;;;;;;;;;70708:50;70773:22;70798:196;70821:1;:19;;70875;70889:4;70875:13;:19::i;:::-;70943;70957:4;70943:13;:19::i;:::-;70798:4;:196::i;:::-;70773:221;;71009:18;71017:3;:9;;;71009:7;:18::i;:::-;70663:376;;71099:10;71085;:24;71081:169;;;71144:6;71130:20;;:10;:20;;;71126:50;;71159:17;;;;;;;;;;;;;;71126:50;71191:47;71207:29;71216:19;71230:4;71216:13;:19::i;:::-;71207:8;:29::i;:::-;71191:47;;:7;:47::i;:::-;71081:169;71310:10;71296;:24;71292:169;;;71355:6;71341:20;;:10;:20;;;71337:50;;71370:17;;;;;;;;;;;;;;71337:50;71402:47;71418:29;71427:19;71441:4;71427:13;:19::i;:::-;71418:8;:29::i;:::-;71402:47;;:7;:47::i;:::-;71292:169;71540:10;71526;:24;71522:391;;;71585:6;71571:20;;:10;:20;;;71567:50;;71600:17;;;;;;;;;;;;;;71567:50;71632:13;71648:215;71694:19;71708:4;71694:13;:19::i;:::-;71748;71762:4;71748:13;:19::i;:::-;71811;71825:4;71811:13;:19::i;:::-;71648:11;:215::i;:::-;71632:231;;71878:23;71894:5;71878:23;;:7;:23::i;:::-;71522:391;;71977:10;71963;:24;71959:173;;;72022:6;72008:20;;:10;:20;;;72004:50;;72037:17;;;;;;;;;;;;;;72004:50;72069:51;72085:33;72098:19;72112:4;72098:13;:19::i;:::-;72085:12;:33::i;:::-;72069:51;;:7;:51::i;:::-;71959:173;72197:10;72183;:24;72179:183;;;72242:6;72228:20;;:10;:20;;;72224:50;;72257:17;;;;;;;;;;;;;;72224:50;72289:61;72297:52;72327:19;72341:4;72327:13;:19::i;:::-;72297:13;:52::i;:::-;72289:7;:61::i;:::-;72179:183;72422:10;72408;:24;72404:148;;;72467:6;72453:20;;:10;:20;;;72449:50;;72482:17;;;;;;;;;;;;;;72449:50;72514:26;72522:17;:15;:17::i;:::-;72514:7;:26::i;:::-;72404:148;72613:10;72599;:24;72595:67;;;72640:10;72648:1;72640:7;:10::i;:::-;72595:67;73034:25:::1;;;;;;;;;;;;;;111537:92:::0;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;36443:158;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;35454:126;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;37961:713;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;62479:294;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;62900:137;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;35313:76;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;65420:119;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;112032:101;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;35649:143;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3326:103;;;;;;;;;;;;;:::i;:::-;;2685:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;111637:96;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;37114:150;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;111741:283;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;112141:150;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;35890:417;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3584:201;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;29765:320;29824:22;29999:20;29989:30;;29912:166;:::o;86806:202::-;86867:13;86983:6;86970:20;86961:29;;86946:55;;;:::o;57647:2307::-;57799:1;57785:16;;:2;:16;;;57781:52;;;57810:23;;;;;;;;;;;;;;57781:52;57846:22;57871:18;:16;:18::i;:::-;57846:43;;57930:1;57904:28;;:1;:14;;;;;;;;;;;;:28;;;57900:42;;;57934:8;;;57900:42;57955:20;57978:1;:4;;57955:27;;58007:1;:16;;:63;58024:45;58029:2;58033:35;58049:18;58064:2;58049:14;:18::i;:::-;58033:15;:35::i;:::-;58024:4;:45::i;:::-;58007:63;;;;;;;;;;;;;;;;;;;;;;;;;57999:71;;:4;:71;;;57995:139;;58094:28;;;;;;;;;;;;;;57995:139;58163:4;58150:17;;:9;:17;;;58146:264;;58240:1;58188:42;58193:1;:19;;58214:4;58220:9;58188:4;:42::i;:::-;:48;;;:53;58184:215;;;58279:1;:14;;:18;58294:2;58279:18;;;;;;;;;;;;;;;;;;;;;58266:31;;:9;:31;;;58262:122;;58329:35;;;;;;;;;;;;;;58262:122;58184:215;58146:264;58422:35;58460:18;58473:4;58460:12;:18::i;:::-;58422:56;;58489:33;58525:16;58538:2;58525:12;:16::i;:::-;58489:52;;58554:12;58569:7;:5;:7::i;:::-;58554:22;;58587:43;58633:1;:7;;58587:53;;58651:27;58681:5;:11;58687:4;58681:11;;;;;;;;;;;;;;;58651:41;;58730:19;58752:15;:23;;;;;;;;;;;;58730:45;;;;58801:11;58794:4;:18;58790:52;;;58821:21;;;;;;;;;;;;;;58790:52;58904:4;58890:11;:18;58857:15;:23;;;:52;;;;;;;;;;;;;;;;;;58956:4;58924:13;:21;;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57647:2307;58987:30;58992:1;:20;;59014:2;58987:4;:30::i;:::-;58983:140;;;59034:37;59039:1;:20;;59061:2;59065:5;59034:4;:37::i;:::-;59093:1;:14;;:18;59108:2;59093:18;;;;;;;;;;;;59086:25;;;;;;;;;;;58983:140;59158:16;59177:46;59182:9;59195:15;:27;;;59193:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59177:46;;:4;:46::i;:::-;59158:65;;59238:8;59249:25;59254:2;59258:15;59270:2;59258:11;:15::i;:::-;59249:4;:25::i;:::-;59238:36;;59289:29;59294:9;59305:1;59289:29;;59308:9;59289:4;:29::i;:::-;59333:35;59338:2;59342:22;59354:9;59342:22;;:11;:22::i;:::-;59366:1;59333:4;:35::i;:::-;57647:2307;;59415:8;59426:13;:25;;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59415:38;;59468:30;59473:5;:9;59479:2;59473:9;;;;;;;;;;;;;;;59484:1;59468:30;;59494:2;59468:4;:30::i;:::-;59513:83;59541:2;59545;59549:43;59574:13;59589:2;59549:24;:43::i;:::-;59594:1;59513:27;:83::i;:::-;57647:2307;59618:31;59636:4;59642:2;59646;59618:17;:31::i;:::-;59784:4;59778;59771:18;59931:2;59927;59923:11;59919:2;59915:20;59907:4;59903:2;59899:13;59895:2;59891:22;59864:25;59858:4;59852;59847:89;59713:234;;;;;;;;;;;:::o;87101:185::-;87234:1;87228:4;87221:15;87263:4;87257;87250:18;67998:228;68201:17;68209:8;68201:7;:17::i;:::-;68129:63;68134:18;:16;:18::i;:::-;:36;;68172:9;68183:8;68129:4;:63::i;:::-;:69;;:89;;;;67998:228;;;:::o;78678:495::-;78806:22;78927:2;78921:4;78914:16;78957:2;78951:4;78944:16;78987:8;78981:4;78974:22;79038:4;79032;79022:21;79010:33;;79150:4;79144;79137:18;78899:267;;;;;:::o;66396:163::-;66457:7;66482:11;66490:2;66482:7;:11::i;:::-;66477:44;;66502:19;;;;;;;;;;;;;;66477:44;66539:12;66548:2;66539:8;:12::i;:::-;66532:19;;66396:163;;;:::o;66060:215::-;66121:7;66141:22;66166:18;:16;:18::i;:::-;66141:43;;66202:1;:16;;:65;66219:47;66224:1;:4;;66230:35;66246:18;66261:2;66246:14;:18::i;:::-;66230:15;:35::i;:::-;66219:4;:47::i;:::-;66202:65;;;;;;;;;;;;;;;;;;;;;;;;;66195:72;;;66060:215;;;:::o;67278:594::-;67400:13;67431:22;67456:18;:16;:18::i;:::-;67431:43;;67495:1;:16;;:65;67512:47;67517:1;:4;;67523:35;67539:18;67554:2;67539:14;:18::i;:::-;67523:15;:35::i;:::-;67512:4;:47::i;:::-;67495:65;;;;;;;;;;;;;;;;;;;;;;;;;67487:73;;67590:5;67577:18;;:9;:18;;;67573:187;;67669:1;67616:43;67621:1;:19;;67642:5;67649:9;67616:4;:43::i;:::-;:49;;;:54;67612:137;;;67698:35;;;;;;;;;;;;;;67612:137;67573:187;67793:7;67772:1;:14;;:18;67787:2;67772:18;;;;;;;;;;;;:28;;;;;;;;;;;;;;;;;;67811:53;67816:1;:20;;67838:2;67861:1;67842:21;;:7;:21;;;;67811:4;:53::i;:::-;67278:594;;;;;;:::o;66868:190::-;66933:7;66958:11;66966:2;66958:7;:11::i;:::-;66953:44;;66978:19;;;;;;;;;;;;;;66953:44;67015:18;:16;:18::i;:::-;:31;;:35;67047:2;67015:35;;;;;;;;;;;;;;;;;;;;;67008:42;;66868:190;;;:::o;65768:153::-;65837:7;65864:18;:16;:18::i;:::-;:30;;:37;65895:5;65864:37;;;;;;;;;;;;;;;:49;;;;;;;;;;;;65857:56;;;;65768:153;;;:::o;65591:126::-;65649:7;65676:18;:16;:18::i;:::-;:33;;;;;;;;;;;;65669:40;;;;65591:126;:::o;111537:92::-;111583:13;111616:5;111609:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111537:92;:::o;36443:158::-;36517:4;36534:37;36543:10;36555:7;36564:6;36534:8;:37::i;:::-;36589:4;36582:11;;36443:158;;;;:::o;35454:126::-;35506:7;35541:18;:16;:18::i;:::-;:30;;;;;;;;;;;;35533:39;;35526:46;;35454:126;:::o;37961:713::-;38049:4;38066:20;38089:52;38094:18;:16;:18::i;:::-;:28;;38124:4;38130:10;38089:4;:52::i;:::-;38066:75;;38154:15;38172:38;:36;:38::i;:::-;:64;;;;;26838:42;38214:22;;:10;:22;;;38172:64;:168;;;;;38339:1;26429:6;38254:18;:16;:18::i;:::-;:30;;:36;38285:4;38254:36;;;;;;;;;;;;;;;:42;;;;;;;;;;;;:80;38253:87;;;38172:168;:224;;38389:1;:7;;;38172:224;;;38356:17;38172:224;38154:242;;38424:17;38413:7;:28;38409:198;;38471:7;38462:6;:16;38458:52;;;38487:23;;;;;;;;;;;;;;38458:52;38574:6;38564:7;:16;38554:1;:7;;:26;;;;38409:198;38617:27;38627:4;38633:2;38637:6;38617:9;:27::i;:::-;38662:4;38655:11;;;;37961:713;;;;;:::o;62479:294::-;62543:4;62560:21;62584:18;:16;:18::i;:::-;:30;;:37;62615:5;62584:37;;;;;;;;;;;;;;;62560:61;;62680:1;26119:6;62636:1;:7;;;;;;;;;;;;:40;:45;;;62632:73;;;62690:15;62699:5;62690:8;:15::i;:::-;62683:22;;;;;62632:73;62764:1;26256:6;62723:1;:7;;;;;;;;;;;;:37;:42;;;;62716:49;;;62479:294;;;;:::o;62900:137::-;62958:4;62975:32;62987:10;62999:7;62975:11;:32::i;:::-;63025:4;63018:11;;62900:137;;;:::o;35313:76::-;35354:5;35379:2;35372:9;;35313:76;:::o;65420:119::-;65473:7;65500:18;:16;:18::i;:::-;:31;;;;;;;;;;;;65493:38;;65420:119;:::o;112032:101::-;2571:13;:11;:13::i;:::-;112117:8:::1;;112106;:19;;;;;;;:::i;:::-;;112032:101:::0;;:::o;35649:143::-;35712:7;35739:18;:16;:18::i;:::-;:30;;:37;35770:5;35739:37;;;;;;;;;;;;;;;:45;;;;;;;;;;;;35732:52;;;;35649:143;;;:::o;3326:103::-;2571:13;:11;:13::i;:::-;3391:30:::1;3418:1;3391:18;:30::i;:::-;3326:103::o:0;2685:87::-;2731:7;2758:6;;;;;;;;;;;2751:13;;2685:87;:::o;111637:96::-;111685:13;111718:7;111711:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111637:96;:::o;37114:150::-;37184:4;37201:33;37211:10;37223:2;37227:6;37201:9;:33::i;:::-;37252:4;37245:11;;37114:150;;;;:::o;111741:283::-;111822:20;111885:1;111865:8;111859:22;;;;;:::i;:::-;;;:27;111855:162;;111954:8;111964:25;111981:7;111964:16;:25::i;:::-;111937:53;;;;;;;;;:::i;:::-;;;;;;;;;;;;;111903:102;;111855:162;111741:283;;;:::o;112141:150::-;2571:13;:11;:13::i;:::-;112253:30:::1;112265:8;112275:7;112253:11;:30::i;:::-;112141:150:::0;;:::o;35890:417::-;35962:7;35986:38;:36;:38::i;:::-;:61;;;;;26838:42;36028:19;;:7;:19;;;35986:61;35982:244;;;36064:11;36078:18;:16;:18::i;:::-;:30;;:37;36109:5;36078:37;;;;;;;;;;;;;;;:43;;;;;;;;;;;;36064:57;;36187:1;26429:6;36140:5;:43;:48;;;36136:78;;;36197:17;36190:24;;;;;36136:78;35982:244;;36243:50;36248:18;:16;:18::i;:::-;:28;;36278:5;36285:7;36243:4;:50::i;:::-;:56;;;36236:63;;35890:417;;;;;:::o;3584:201::-;2571:13;:11;:13::i;:::-;3693:1:::1;3673:22;;:8;:22;;;;3665:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;3749:28;3768:8;3749:18;:28::i;:::-;3584:201:::0;:::o;79519:210::-;79578:14;79698:11;79694:2;79691:19;79687:2;79683:28;79673:38;;79658:64;;;:::o;73668:180::-;73727:7;73790:1;73784;73780;:5;73779:12;;73772:19;;73668:180;;;:::o;74150:327::-;74225:13;74358:5;74355:1;74351:13;74340:8;74336:2;74332:17;74328:37;74455:1;74449:8;74444:1;74437:5;74433:13;74430:1;74426:21;74422:36;74410:10;74406:53;74396:63;;74304:166;;;;;:::o;63914:426::-;63977:21;64015:18;:16;:18::i;:::-;:30;;:37;64046:5;64015:37;;;;;;;;;;;;;;;64011:41;;64136:1;26119:6;64092:1;:7;;;;;;;;;;;;:40;:45;;;64088:234;;;64158:15;26256:6;64176:54;;:24;64184:15;64193:5;64184:8;:15::i;:::-;64176:7;:24::i;:::-;:54;64158:72;;26119:6;64265:40;;:7;:40;64249:1;:7;;;:57;;;;;;;;;;;;;;;;;;64088:234;;63914:426;;;:::o;32575:91::-;32623:7;32650:8;32643:15;;32575:91;:::o;75829:314::-;75904:11;76038:5;76035:1;76031:13;76017:11;76013:2;76009:20;76005:40;76121:1;76115:8;76107:5;76101:4;76097:16;76093:31;76090:1;76086:39;76076:49;;75981:155;;;;;:::o;76216:395::-;76410:5;76407:1;76403:13;76389:11;76385:2;76381:20;76377:40;76467:5;76461:4;76457:16;76583:5;76576:13;76569:21;76566:1;76562:29;76556:1;76553;76549:9;76545:14;76541:1;76535:8;76531:29;76528:64;76525:1;76518:75;76353:251;;;;;:::o;73900:182::-;73955:7;74024:1;74019;74013;74009;:5;74008:12;;74007:18;74000:25;;73900:182;;;:::o;74545:443::-;74738:5;74735:1;74731:13;74720:8;74716:2;74712:17;74708:37;74803:1;74796:5;74792:13;74789:1;74785:21;74866:1;74860:8;74963:1;74960;74956:9;74949:5;74945:21;74933:10;74929:38;74926:1;74922:46;74919:1;74915:54;74912:1;74905:65;74684:297;;;;;;:::o;64506:572::-;64640:19;64677:22;64702:18;:16;:18::i;:::-;64677:43;;64746:13;:26;;;;;;;;;;;;64731:41;;64803:1;64787:12;:17;;;64783:288;;;64867:1;:12;;;64865:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64850:29;;64938:12;64909:13;:26;;;:41;;;;;;;;;;;;;;;;;;64998:2;64965:1;:16;;:30;64982:12;64965:30;;;;;;;;;;;;;;;;:35;;;;;;;;;;;;;;;;;;65035:1;65019:12;:17;;;65015:31;;;65038:8;;;65015:31;64783:288;64506:572;;;;;:::o;75061:685::-;75318:1;75314:2;75310:10;75412:1;75409;75405:9;75394:8;75390:2;75386:17;75382:33;75461:1;75455:8;75523:1;75520;75516:9;75513:1;75509:17;75627:9;75615:10;75611:26;75598:10;75594:2;75590:19;75587:51;75715:8;75711:1;75708;75704:9;75700:24;75680:18;75676:49;75673:1;75669:57;75666:1;75662:65;75659:1;75652:76;75286:453;;;;;;;;;:::o;34882:84::-;;;;:::o;80641:188::-;80689:14;80808:1;80801:9;80794:17;80784:27;;80769:53;;;:::o;66611:118::-;66671:4;66719:1;66695:26;;:12;66704:2;66695:8;:12::i;:::-;:26;;;;66688:33;;66611:118;;;:::o;60364:658::-;60462:38;:36;:38::i;:::-;:61;;;;;26838:42;60504:19;;:7;:19;;;60462:61;60458:176;;;26429:6;60540:18;:16;:18::i;:::-;:30;;:37;60571:5;60540:37;;;;;;;;;;;;;;;:43;;;:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60458:176;60703:6;60644:50;60649:18;:16;:18::i;:::-;:28;;60679:5;60686:7;60644:4;:50::i;:::-;:56;;:65;;;;60844:6;60838:4;60831:20;60994:7;60990:2;60986:16;60982:2;60978:25;60969:5;60965:2;60961:14;60957:2;60953:23;60926:25;60920:4;60914;60909:95;60773:242;;;:::o;39187:116::-;39266:4;39187:116;:::o;50628:6594::-;50735:1;50721:16;;:2;:16;;;50717:52;;;50746:23;;;;;;;;;;;;;;50717:52;50782:35;50820:18;50833:4;50820:12;:18::i;:::-;50782:56;;50849:33;50885:16;50898:2;50885:12;:16::i;:::-;50849:52;;50912:22;50937:18;:16;:18::i;:::-;50912:43;;50996:1;50970:28;;:1;:14;;;;;;;;;;;;:28;;;50966:42;;;51000:8;;;50966:42;51021:25;;:::i;:::-;51077:15;:27;;;;;;;;;;;;51057:47;;:1;:17;;:47;;;;;51133:13;:25;;;;;;;;;;;;51115:43;;:1;:15;;:43;;;;;51185:1;:13;;;;;;;;;;;;51169:29;;:1;:13;;:29;;;;;51241:15;:23;;;;;;;;;;;;51225:39;;:1;:13;;:39;;;;51215:6;:50;51211:84;;;51274:21;;;;;;;;;;;;;;51211:84;51383:6;51366:1;:13;;:23;;;;;;;;;;51333:15;:23;;;:57;;;;;;;;;;;;;;;;;;51483:6;51458:13;:21;;;;;;;;;;;;51450:30;;:39;51436:1;:11;;:53;;;;51405:13;:21;;;:85;;;;;;;;;;;;;;;;;;51523:57;51537:1;:17;;;51572:7;:5;:7::i;:::-;51556:1;:13;;;:23;;;;;;;;;;;;;;51523:13;:57::i;:::-;51507:1;:13;;:73;;;;;51654:1;26256:6;51601:13;:19;;;;;;;;;;;;:49;:54;;;51597:250;;;51688:2;51680:10;;:4;:10;;;51676:67;;;51730:1;:13;;;51710:1;:17;;;:33;51692:1;:15;;:51;;;;;51676:67;51778:53;51806:7;:5;:7::i;:::-;51792:1;:11;;;:21;;;;;;;;;;;;;;51815:1;:15;;;51778:13;:53::i;:::-;51762:1;:13;;:69;;;;;51597:250;51870:31;:29;:31::i;:::-;51863:1580;;;51922:9;51934:59;51939:1;:17;;;51958:34;51963:1;:13;;;51978:1;:13;;;51958:4;:34::i;:::-;51934:4;:59::i;:::-;51922:71;;52021:1;52016;:6;52012:17;;;52024:5;;;52012:17;52065:1;52048;:13;;:18;;;;;;;;;;;52102:1;52085;:13;;:18;;;;;;;;;;;52134:2;52126:10;;:4;:10;;;52122:107;;;52180:1;52161;:15;;:20;;;;;;;;;;;52204:5;;;52122:107;52247:31;52281:30;52299:1;52302:4;52308:2;52281:17;:30::i;:::-;52247:64;;52330:27;52360:1;:7;;:13;52368:4;52360:13;;;;;;;;;;;;;;;52330:43;;52392:25;52420:1;:7;;:11;52428:2;52420:11;;;;;;;;;;;;;;;52392:39;;52462:43;52487:13;52502:2;52462:24;:43::i;:::-;52450:1;:9;;:55;;;;;;;;;;;52524:15;52542:1;:15;;;52524:33;;52618:568;52644:10;52657:36;52662:9;52675:1;:17;;52673:19;;;;;;;;;;52657:4;:36::i;:::-;52644:49;;;;52716:34;52721:7;52730;52746:2;52716:4;:34::i;:::-;52773:67;52801:1;:4;;52807:2;52811:1;:9;;;52829;;;;;;52773:27;:67::i;:::-;52863:33;52881:10;52893:2;52863:17;:33::i;:::-;52923:30;52928:1;:20;;52950:2;52923:4;:30::i;:::-;52919:176;;;52982:37;52987:1;:20;;53009:2;53013:5;52982:4;:37::i;:::-;53053:1;:14;;:18;53068:2;53053:18;;;;;;;;;;;;53046:25;;;;;;;;;;;52919:176;53117:31;53135:4;53141:2;53145;53117:17;:31::i;:::-;52618:568;53183:1;53176:3;;;;;;;:8;;52618:568;;53259:7;53241:1;:15;;:25;;;;53206:13;:25;;;:61;;;;;;;;;;;;;;;;;;53323:1;:17;;;53286:15;:27;;;:55;;;;;;;;;;;;;;;;;;53360:43;53376:10;53388:1;:14;;;;;;;;;;;;53360:15;:43::i;:::-;53422:5;;;;;51863:1580;53522:1;:13;;;53506:1;:13;;;53486:1;:16;;;;;;;;;;;;53478:25;;:41;:57;53459:1;:16;;:76;;;;;53576:1;:16;;;53550:1;:16;;;:43;;;;;;;;;;;;;;;;;;53610:20;53633:1;:4;;53610:27;;53652:31;53686:48;53720:1;:13;;;53704:1;:13;;;:29;53686:17;:48::i;:::-;53652:82;;53770:1;:16;;;;;;;;;;;;53751:1;:16;;:35;;;;;;;;;;;53822:1;53805;:13;;;:18;53801:1264;;53844:35;53859:10;53871:4;53877:1;53844:14;:35::i;:::-;53898:20;53921:49;53938:1;:16;;;53956:1;:13;;;53921:16;:49::i;:::-;53898:72;;53989:27;54019:1;:7;;:13;54027:4;54019:13;;;;;;;;;;;;;;;53989:43;;54051:17;54071:1;:17;;;54051:37;;54168:1;:13;;;54156:9;:25;54144:1;:9;;:37;;;;54107:15;:27;;;:75;;;;;;;;;;;;;;;;;;54201:21;54225:1;:16;;;54201:40;;54291:663;54317:10;54330:28;54335:9;54346:11;;;;;;;54330:4;:28::i;:::-;54317:41;;;;54381;54409:2;54413;54417:1;54420;54381:27;:41::i;:::-;54445:33;54463:10;54475:2;54445:17;:33::i;:::-;54505:18;:16;:18::i;:::-;54501:49;;;54525:25;54530:1;:8;;54540:2;54544:5;54525:4;:25::i;:::-;54501:49;54577:15;54573:69;;;54594:48;54599:1;:12;;54613:16;;;;;;54594:48;;54638:2;54594:4;:48::i;:::-;54573:69;54669:30;54674:1;:20;;54696:2;54669:4;:30::i;:::-;54665:176;;;54728:37;54733:1;:20;;54755:2;54759:5;54728:4;:37::i;:::-;54799:1;:14;;:18;54814:2;54799:18;;;;;;;;;;;;54792:25;;;;;;;;;;;54665:176;54863:39;54881:4;54895:1;54899:2;54863:17;:39::i;:::-;54291:663;54943:1;:9;;;54930;:22;;54291:663;;54978:15;54974:75;;;55034:14;55015:1;:16;;:33;;;;;;;;;;54995:1;:16;;;:54;;;;;;;;;;;;;;;;;;54974:75;53801:1264;;;;;55102:1;55085;:13;;;:18;55081:1731;;55124:33;55139:10;55151:2;55155:1;55124:14;:33::i;:::-;55176:25;55204:1;:7;;:11;55212:2;55204:11;;;;;;;;;;;;;;;55176:39;;55246:43;55271:13;55286:2;55246:24;:43::i;:::-;55234:1;:9;;:55;;;;;;;;;;;55308:13;55340:7;:5;:7::i;:::-;55324:1;:13;;;:23;;;;;;;;;;;;;;55308:39;;55382:32;55393:1;:13;;;;;;;;;;;;55382:32;;55408:5;55382:10;:32::i;:::-;55366:1;:13;;:48;;;;;55433:15;55451:1;:15;;;55433:33;;55540:1;:13;;;55530:7;:23;55520:1;:7;;:33;;;;55485:13;:25;;;:69;;;;;;;;;;;;;;;;;;55573:21;55597:1;:16;;;;;;;;;;;;55573:40;;55663:1024;55689:10;55744:1;:16;;;55726:34;;:14;:34;;;55722:586;;55794:36;55799:1;:12;;55813:16;;;;;;55794:36;;:4;:36::i;:::-;55789:41;;;;55722:586;;;55892:1;:13;;;55887:18;;55932:285;55972:1;55939:29;55944:2;55948:19;55964:2;55948:15;:19::i;:::-;55939:4;:29::i;:::-;:34;;;55932:285;;56011:18;:16;:18::i;:::-;:178;;56164:25;56180:1;56175:2;:6;56183:5;56164:10;:25::i;:::-;56011:178;;;56065:63;56076:44;56092:1;:8;;56107:1;56102:2;:6;56118:1;56110:5;:9;56076:15;:44::i;:::-;56122:5;56065:10;:63::i;:::-;56011:178;56006:183;;55932:285;;;56259:25;56275:1;56270:2;:6;56278:5;56259:10;:25::i;:::-;56243:1;:13;;:41;;;;;55722:586;56334:18;:16;:18::i;:::-;56330:48;;;56354:24;56359:1;:8;;56369:2;56373:4;56354;:24::i;:::-;56330:48;56401:34;56406:7;56415;56431:2;56401:4;:34::i;:::-;56458:65;56486:2;56490;56494:1;:9;;;56512;;;;;;56458:27;:65::i;:::-;56546:33;56564:10;56576:2;56546:17;:33::i;:::-;56602:37;56628:1;56632:2;56636;56602:17;:37::i;:::-;55663:1024;56678:1;:7;;;56667;:18;;55663:1024;;56726:14;56707:1;:16;;;:33;;;;;;;;;;;;;;;;;;56782:1;:13;;;56759:1;:13;;;:37;;;;;;;;;;;;;;;;;;55081:1731;;;;;56858:1;56832:10;:15;;;:22;:27;56828:76;;56861:43;56877:10;56889:1;:14;;;;;;;;;;;;56861:15;:43::i;:::-;56828:76;50628:6594;;57050:6;57044:4;57037:20;57199:2;57195;57191:11;57187:2;57183:20;57175:4;57171:2;57167:13;57163:2;57159:22;57132:25;57126:4;57120;57115:89;56979:236;;;;;;;:::o;86527:217::-;86578:11;86692:1;86680:14;86670:24;;86655:82;;;:::o;63264:471::-;63340:21;63364:19;63377:5;63364:12;:19::i;:::-;63340:43;;63446:5;63398:53;;63440:1;26256:6;63399:1;:7;;;;;;;;;;;;:37;:42;;;;63398:53;;;63394:124;;26256:6;63468:1;:7;;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63394:124;63623:5;63616:13;63609:21;63603:4;63596:35;63709:5;63705:2;63701:14;63697:2;63693:23;63662:29;63656:4;63650;63645:72;63581:147;;;:::o;2850:132::-;2925:12;:10;:12::i;:::-;2914:23;;:7;:5;:7::i;:::-;:23;;;2906:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;2850:132::o;3945:191::-;4019:16;4038:6;;;;;;;;;;;4019:25;;4064:8;4055:6;;:17;;;;;;;;;;;;;;;;;;4119:8;4088:40;;4109:8;4088:40;;;;;;;;;;;;3945:191;;:::o;19232:716::-;19288:13;19339:14;19376:1;19356:17;19367:5;19356:10;:17::i;:::-;:21;19339:38;;19392:20;19426:6;19415:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19392:41;;19448:11;19577:6;19573:2;19569:15;19561:6;19557:28;19550:35;;19614:288;19621:4;19614:288;;;19646:5;;;;;;;;19788:8;19783:2;19776:5;19772:14;19767:30;19762:3;19754:44;19844:2;19835:11;;;;;;;;;;;;;;;;;19878:1;19869:5;:10;19865:21;;;19881:5;;19865:21;19614:288;;;19923:6;19916:13;;;;;19232:716;;;:::o;80142:205::-;80210:9;80326:1;80323;80319:9;80315:1;80312;80309:8;80305:24;80300:29;;80285:55;;;;:::o;33753:108::-;33825:4;33849;33842:11;;33753:108;:::o;80394:204::-;80453:9;80576:1;80573;80570:8;80566:1;80563;80559:9;80555:24;80552:1;80548:32;80543:37;;80528:63;;;;:::o;81176:845::-;81289:22;;:::i;:::-;81580:4;81574:11;81612:1;81606:4;81599:15;81673:4;81667;81663:15;81762:1;81759;81755:9;81747:6;81743:22;81737:4;81730:36;81821:4;81817:1;81811:4;81807:12;81800:26;81878:2;81874:1;81868:4;81864:12;81857:24;81931:4;81927:1;81921:4;81917:12;81910:26;81977:6;81974:1;81967:17;81382:632;;;;;;;:::o;82090:269::-;82265:1;82259:8;82296:2;82288:6;82281:18;82335:4;82327:6;82323:17;82320:1;82313:28;82230:122;;;:::o;82460:835::-;82637:4;82634:1;82630:12;82624:19;82689:4;82683:11;82680:1;82676:19;82670:4;82666:30;82760:4;82754;82750:15;82819:10;82816:1;82809:21;82923:1;82917:4;82913:12;82907:19;82966:1;82960:4;82956:12;82950:19;83004:4;82997;82994:1;82990:12;82983:26;83044:2;83037:4;83034:1;83030:12;83023:24;83082:4;83075;83072:1;83068:12;83061:26;83220:4;83217:1;83214;83207:4;83204:1;83200:12;83197:1;83189:6;83182:5;83177:48;83173:1;83169;83163:8;83160:15;83156:70;83146:2;;83257:4;83254:1;83247:15;83146:2;82597:691;;;;;;;:::o;83621:677::-;83681:22;;:::i;:::-;83967:4;83961:11;83999:1;83993:4;83986:15;84060:4;84054;84050:15;84149:1;84146;84142:9;84134:6;84130:22;84124:4;84117:36;84208:4;84204:1;84198:4;84194:12;84187:26;84254:6;84251:1;84244:17;83769:522;;;;;:::o;84362:257::-;84566:7;84562:1;84558:2;84554:10;84551:23;84544:4;84541:1;84537:12;84530:45;84515:97;;;:::o;34024:309::-;34180:4;34279:23;34256:46;;34320:5;34313:12;;34024:309;;;;:::o;84688:336::-;84863:1;84857:8;84925:2;84922:1;84918:10;84910:4;84907:1;84903:12;84897:19;84894:35;84886:6;84879:51;85000:4;84992:6;84988:17;84985:1;84978:28;84828:189;;;:::o;34683:95::-;34742:4;34766;34759:11;;34683:95;:::o;79213:242::-;79283:14;79430:5;79426:2;79423:13;79418:2;79409:5;79405:2;79402:13;79395:21;79391:30;79388:49;79378:59;;79363:85;;;;:::o;76769:1820::-;76895:21;77023:1;77019:6;77002:23;;77094:11;77090:2;77086:20;77181:5;77178:1;77174:13;77171:1;77167:21;77271:6;77265:13;77261:18;77253:5;77247:4;77243:16;77239:41;77231:5;77225:4;77221:16;77217:64;77305:7;77295:2;;77365:3;77362:1;77358:11;77355:1;77351:19;77388:199;77395:1;77388:199;;;77445:1;77437:6;77433:14;77423:24;;77490:6;77484:13;77480:18;77469:29;;77546:10;77538:6;77535:22;77526:7;77523:35;77520:2;;;77561:5;;77520:2;77388:199;;;77619:10;77611:6;77608:22;77605:2;;;77715:7;77708:3;77704:8;77698:4;77694:19;77690:33;77683:3;77679:8;77673:4;77669:19;77665:59;77654:70;;77605:2;77314:444;77295:2;77775:7;77772:2;;;77886:1;77876:7;77872:12;77868:20;77859:7;77855:34;78000:1;77964:34;77961:41;77958:1;77954:49;78069:1;78066;78062:9;78042:18;78039:33;78036:1;78032:41;78029:1;78026:48;78021:53;;78132:1;78129;78125:9;78113:10;78110:25;78107:1;78103:33;78100:1;78097:40;78092:45;;78350:66;78322:4;78317:1;78314;78310:9;78298:10;78294:26;78290:37;78285:132;78282:1;78279:139;78274:144;;78468:1;78463;78455:6;78451:14;78448:1;78444:22;78441:29;78436:34;;78547:5;78544:1;78541:12;78534:3;78531:1;78528:10;78521:18;78518:36;78515:1;78511:44;78508:1;78505:51;78488:68;;77783:788;;77772:2;76987:1595;;;;;;;;:::o;85125:647::-;85302:4;85299:1;85295:12;85289:19;85341:4;85335;85331:15;85400:10;85397:1;85390:21;85475:4;85468;85465:1;85461:12;85454:26;85571:4;85565:11;85562:1;85558:19;85552:4;85548:30;85697:4;85694:1;85691;85684:4;85681:1;85677:12;85674:1;85666:6;85659:5;85654:48;85650:1;85646;85640:8;85637:15;85633:70;85623:2;;85734:4;85731:1;85724:15;85623:2;85262:503;;;;;:::o;1074:98::-;1127:7;1154:10;1147:17;;1074:98;:::o;14615:948::-;14668:7;14688:14;14705:1;14688:18;;14755:8;14746:5;:17;14742:106;;14793:8;14784:17;;;;;;;;;;;;;;;;;14830:2;14820:12;;;;14742:106;14875:8;14866:5;:17;14862:106;;14913:8;14904:17;;;;;;;;;;;;;;;;;14950:2;14940:12;;;;14862:106;14995:8;14986:5;:17;14982:106;;15033:8;15024:17;;;;;;;;;;;;;;;;;15070:2;15060:12;;;;14982:106;15115:7;15106:5;:16;15102:103;;15152:7;15143:16;;;;;;;;;;;;;;;;;15188:1;15178:11;;;;15102:103;15232:7;15223:5;:16;15219:103;;15269:7;15260:16;;;;;;;;;;;;;;;;;15305:1;15295:11;;;;15219:103;15349:7;15340:5;:16;15336:103;;15386:7;15377:16;;;;;;;;;;;;;;;;;15422:1;15412:11;;;;15336:103;15466:7;15457:5;:16;15453:68;;15504:1;15494:11;;;;15453:68;15549:6;15542:13;;;14615:948;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:133::-;195:5;233:6;220:20;211:29;;249:30;273:5;249:30;:::i;:::-;201:84;;;;:::o;305:352::-;363:8;373:6;423:3;416:4;408:6;404:17;400:27;390:2;;441:1;438;431:12;390:2;477:6;464:20;454:30;;507:18;499:6;496:30;493:2;;;539:1;536;529:12;493:2;576:4;568:6;564:17;552:29;;630:3;622:4;614:6;610:17;600:8;596:32;593:41;590:2;;;647:1;644;637:12;590:2;380:277;;;;;:::o;663:139::-;709:5;747:6;734:20;725:29;;763:33;790:5;763:33;:::i;:::-;715:87;;;;:::o;808:262::-;867:6;916:2;904:9;895:7;891:23;887:32;884:2;;;932:1;929;922:12;884:2;975:1;1000:53;1045:7;1036:6;1025:9;1021:22;1000:53;:::i;:::-;990:63;;946:117;874:196;;;;:::o;1076:407::-;1144:6;1152;1201:2;1189:9;1180:7;1176:23;1172:32;1169:2;;;1217:1;1214;1207:12;1169:2;1260:1;1285:53;1330:7;1321:6;1310:9;1306:22;1285:53;:::i;:::-;1275:63;;1231:117;1387:2;1413:53;1458:7;1449:6;1438:9;1434:22;1413:53;:::i;:::-;1403:63;;1358:118;1159:324;;;;;:::o;1489:552::-;1566:6;1574;1582;1631:2;1619:9;1610:7;1606:23;1602:32;1599:2;;;1647:1;1644;1637:12;1599:2;1690:1;1715:53;1760:7;1751:6;1740:9;1736:22;1715:53;:::i;:::-;1705:63;;1661:117;1817:2;1843:53;1888:7;1879:6;1868:9;1864:22;1843:53;:::i;:::-;1833:63;;1788:118;1945:2;1971:53;2016:7;2007:6;1996:9;1992:22;1971:53;:::i;:::-;1961:63;;1916:118;1589:452;;;;;:::o;2047:401::-;2112:6;2120;2169:2;2157:9;2148:7;2144:23;2140:32;2137:2;;;2185:1;2182;2175:12;2137:2;2228:1;2253:53;2298:7;2289:6;2278:9;2274:22;2253:53;:::i;:::-;2243:63;;2199:117;2355:2;2381:50;2423:7;2414:6;2403:9;2399:22;2381:50;:::i;:::-;2371:60;;2326:115;2127:321;;;;;:::o;2454:407::-;2522:6;2530;2579:2;2567:9;2558:7;2554:23;2550:32;2547:2;;;2595:1;2592;2585:12;2547:2;2638:1;2663:53;2708:7;2699:6;2688:9;2684:22;2663:53;:::i;:::-;2653:63;;2609:117;2765:2;2791:53;2836:7;2827:6;2816:9;2812:22;2791:53;:::i;:::-;2781:63;;2736:118;2537:324;;;;;:::o;2867:256::-;2923:6;2972:2;2960:9;2951:7;2947:23;2943:32;2940:2;;;2988:1;2985;2978:12;2940:2;3031:1;3056:50;3098:7;3089:6;3078:9;3074:22;3056:50;:::i;:::-;3046:60;;3002:114;2930:193;;;;:::o;3129:395::-;3200:6;3208;3257:2;3245:9;3236:7;3232:23;3228:32;3225:2;;;3273:1;3270;3263:12;3225:2;3344:1;3333:9;3329:17;3316:31;3374:18;3366:6;3363:30;3360:2;;;3406:1;3403;3396:12;3360:2;3442:65;3499:7;3490:6;3479:9;3475:22;3442:65;:::i;:::-;3424:83;;;;3287:230;3215:309;;;;;:::o;3530:262::-;3589:6;3638:2;3626:9;3617:7;3613:23;3609:32;3606:2;;;3654:1;3651;3644:12;3606:2;3697:1;3722:53;3767:7;3758:6;3747:9;3743:22;3722:53;:::i;:::-;3712:63;;3668:117;3596:196;;;;:::o;3798:118::-;3885:24;3903:5;3885:24;:::i;:::-;3880:3;3873:37;3863:53;;:::o;3922:109::-;4003:21;4018:5;4003:21;:::i;:::-;3998:3;3991:34;3981:50;;:::o;4037:364::-;4125:3;4153:39;4186:5;4153:39;:::i;:::-;4208:71;4272:6;4267:3;4208:71;:::i;:::-;4201:78;;4288:52;4333:6;4328:3;4321:4;4314:5;4310:16;4288:52;:::i;:::-;4365:29;4387:6;4365:29;:::i;:::-;4360:3;4356:39;4349:46;;4129:272;;;;;:::o;4407:377::-;4513:3;4541:39;4574:5;4541:39;:::i;:::-;4596:89;4678:6;4673:3;4596:89;:::i;:::-;4589:96;;4694:52;4739:6;4734:3;4727:4;4720:5;4716:16;4694:52;:::i;:::-;4771:6;4766:3;4762:16;4755:23;;4517:267;;;;;:::o;4814:845::-;4917:3;4954:5;4948:12;4983:36;5009:9;4983:36;:::i;:::-;5035:89;5117:6;5112:3;5035:89;:::i;:::-;5028:96;;5155:1;5144:9;5140:17;5171:1;5166:137;;;;5317:1;5312:341;;;;5133:520;;5166:137;5250:4;5246:9;5235;5231:25;5226:3;5219:38;5286:6;5281:3;5277:16;5270:23;;5166:137;;5312:341;5379:38;5411:5;5379:38;:::i;:::-;5439:1;5453:154;5467:6;5464:1;5461:13;5453:154;;;5541:7;5535:14;5531:1;5526:3;5522:11;5515:35;5591:1;5582:7;5578:15;5567:26;;5489:4;5486:1;5482:12;5477:17;;5453:154;;;5636:6;5631:3;5627:16;5620:23;;5319:334;;5133:520;;4921:738;;;;;;:::o;5665:366::-;5807:3;5828:67;5892:2;5887:3;5828:67;:::i;:::-;5821:74;;5904:93;5993:3;5904:93;:::i;:::-;6022:2;6017:3;6013:12;6006:19;;5811:220;;;:::o;6037:366::-;6179:3;6200:67;6264:2;6259:3;6200:67;:::i;:::-;6193:74;;6276:93;6365:3;6276:93;:::i;:::-;6394:2;6389:3;6385:12;6378:19;;6183:220;;;:::o;6409:118::-;6496:24;6514:5;6496:24;:::i;:::-;6491:3;6484:37;6474:53;;:::o;6533:112::-;6616:22;6632:5;6616:22;:::i;:::-;6611:3;6604:35;6594:51;;:::o;6651:429::-;6828:3;6850:92;6938:3;6929:6;6850:92;:::i;:::-;6843:99;;6959:95;7050:3;7041:6;6959:95;:::i;:::-;6952:102;;7071:3;7064:10;;6832:248;;;;;:::o;7086:222::-;7179:4;7217:2;7206:9;7202:18;7194:26;;7230:71;7298:1;7287:9;7283:17;7274:6;7230:71;:::i;:::-;7184:124;;;;:::o;7314:210::-;7401:4;7439:2;7428:9;7424:18;7416:26;;7452:65;7514:1;7503:9;7499:17;7490:6;7452:65;:::i;:::-;7406:118;;;;:::o;7530:313::-;7643:4;7681:2;7670:9;7666:18;7658:26;;7730:9;7724:4;7720:20;7716:1;7705:9;7701:17;7694:47;7758:78;7831:4;7822:6;7758:78;:::i;:::-;7750:86;;7648:195;;;;:::o;7849:419::-;8015:4;8053:2;8042:9;8038:18;8030:26;;8102:9;8096:4;8092:20;8088:1;8077:9;8073:17;8066:47;8130:131;8256:4;8130:131;:::i;:::-;8122:139;;8020:248;;;:::o;8274:419::-;8440:4;8478:2;8467:9;8463:18;8455:26;;8527:9;8521:4;8517:20;8513:1;8502:9;8498:17;8491:47;8555:131;8681:4;8555:131;:::i;:::-;8547:139;;8445:248;;;:::o;8699:222::-;8792:4;8830:2;8819:9;8815:18;8807:26;;8843:71;8911:1;8900:9;8896:17;8887:6;8843:71;:::i;:::-;8797:124;;;;:::o;8927:214::-;9016:4;9054:2;9043:9;9039:18;9031:26;;9067:67;9131:1;9120:9;9116:17;9107:6;9067:67;:::i;:::-;9021:120;;;;:::o;9147:141::-;9196:4;9219:3;9211:11;;9242:3;9239:1;9232:14;9276:4;9273:1;9263:18;9255:26;;9201:87;;;:::o;9294:99::-;9346:6;9380:5;9374:12;9364:22;;9353:40;;;:::o;9399:169::-;9483:11;9517:6;9512:3;9505:19;9557:4;9552:3;9548:14;9533:29;;9495:73;;;;:::o;9574:148::-;9676:11;9713:3;9698:18;;9688:34;;;;:::o;9728:96::-;9765:7;9794:24;9812:5;9794:24;:::i;:::-;9783:35;;9773:51;;;:::o;9830:90::-;9864:7;9907:5;9900:13;9893:21;9882:32;;9872:48;;;:::o;9926:126::-;9963:7;10003:42;9996:5;9992:54;9981:65;;9971:81;;;:::o;10058:77::-;10095:7;10124:5;10113:16;;10103:32;;;:::o;10141:86::-;10176:7;10216:4;10209:5;10205:16;10194:27;;10184:43;;;:::o;10233:307::-;10301:1;10311:113;10325:6;10322:1;10319:13;10311:113;;;10410:1;10405:3;10401:11;10395:18;10391:1;10386:3;10382:11;10375:39;10347:2;10344:1;10340:10;10335:15;;10311:113;;;10442:6;10439:1;10436:13;10433:2;;;10522:1;10513:6;10508:3;10504:16;10497:27;10433:2;10282:258;;;;:::o;10546:320::-;10590:6;10627:1;10621:4;10617:12;10607:22;;10674:1;10668:4;10664:12;10695:18;10685:2;;10751:4;10743:6;10739:17;10729:27;;10685:2;10813;10805:6;10802:14;10782:18;10779:38;10776:2;;;10832:18;;:::i;:::-;10776:2;10597:269;;;;:::o;10872:180::-;10920:77;10917:1;10910:88;11017:4;11014:1;11007:15;11041:4;11038:1;11031:15;11058:102;11099:6;11150:2;11146:7;11141:2;11134:5;11130:14;11126:28;11116:38;;11106:54;;;:::o;11166:225::-;11306:34;11302:1;11294:6;11290:14;11283:58;11375:8;11370:2;11362:6;11358:15;11351:33;11272:119;:::o;11397:182::-;11537:34;11533:1;11525:6;11521:14;11514:58;11503:76;:::o;11585:122::-;11658:24;11676:5;11658:24;:::i;:::-;11651:5;11648:35;11638:2;;11697:1;11694;11687:12;11638:2;11628:79;:::o;11713:116::-;11783:21;11798:5;11783:21;:::i;:::-;11776:5;11773:32;11763:2;;11819:1;11816;11809:12;11763:2;11753:76;:::o;11835:122::-;11908:24;11926:5;11908:24;:::i;:::-;11901:5;11898:35;11888:2;;11947:1;11944;11937:12;11888:2;11878:79;:::o
Swarm Source
ipfs://325a6adcc8b0323f074e3f9853220c29d1bed74fa12e6908e5ab64c322d4d9cc
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.