Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
Overview
Max Total Supply
0 SNIPE
Holders
312
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
oSnipeGenesis
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./ERC1155Guardable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; // 157 123 156 151 160 145 // /// @author Quit (twitter: @0xQuit) /// @title oSnipe Genesis Pass (twitter: @oSnipeNFT) contract oSnipeGenesis is ERC1155Guardable, Ownable { using Math for uint; using Strings for uint256; string public constant name = "oSnipe Genesis Pass"; string public constant symbol = "SNIPE"; uint256 private constant SNIPER_PRICE = 0.5 ether; uint256 private constant OBSERVER_PRICE = 0.03 ether; uint256 private constant PURVEYOR_PRICE = 3 ether; uint256 private constant SNIPER_ID = 0; uint256 private constant PURVEYOR_ID = 1; uint256 private constant OBSERVER_ID = 2; uint256 private constant COMMITTED_SNIPER_ID = 10; uint256 private constant COMMITTED_PURVEYOR_ID = 11; uint256 public constant MAX_SNIPERS_SUPPLY = 488; uint256 public constant MAX_OBSERVERS_PER_COMMITTED = 10; bytes32 public merkleRoot; uint256 public numSnipersMinted; mapping(address => uint256) observersMinted; constructor(string memory _uri, bytes32 _root) ERC1155(_uri) { _mintSnipers(owner(), 13); _mint(owner(), PURVEYOR_ID, 1, ""); _mint(owner(), OBSERVER_ID, 100, ""); merkleRoot = _root; } error CannotTransferCommittedToken(); error NotEnoughTokens(); error AlreadyClaimed(); error InvalidProof(bytes32[] proof); error WrongValueSent(); error SaleIsPaused(); error BurnExceedsMinted(); error TooManyOutstandingObservers(uint256 numberOfObservers, uint256 numberAllowed); mapping(address => bool) public alreadyClaimed; mapping(address => bool) public alreadyMinted; bool public saleIsActive = false; /// @notice Sets a new root for free claim verification /// @param _root The root to set function setMerkleRoot(bytes32 _root) public onlyOwner { merkleRoot = _root; } /// @notice Sets the base metadata URI /// @param newuri The new URI function setURI(string memory newuri) public onlyOwner { _setURI(newuri); } /// @notice Returns the URI for a given token ID /// @param tokenId The ID to return URI for /// @return TokenURI function uri(uint256 tokenId) public view override returns (string memory) { return string(abi.encodePacked(super.uri(tokenId), tokenId.toString(), ".json")); } /// @notice Flips public sale state function flipSaleState() external onlyOwner { saleIsActive = !saleIsActive; } /// @notice Allows one free claim for each addresses included in the merkle tree /// @param _proof The merkle proof to claim with function claimSniper(bytes32[] calldata _proof) public { if (alreadyClaimed[msg.sender]) revert AlreadyClaimed(); bytes32 leaf = keccak256((abi.encodePacked(msg.sender))); if (!MerkleProof.verify(_proof, merkleRoot, leaf)) { revert InvalidProof(_proof); } alreadyClaimed[msg.sender] = true; _mintSnipers(msg.sender, 1); } /// @notice Public function for purchasing Sniper's. Max one per address. Sale must be active. /// @dev must send SNIPER_PRICE function mintSnipers() public payable { if (!saleIsActive) revert SaleIsPaused(); if (msg.value != SNIPER_PRICE) revert WrongValueSent(); if (alreadyMinted[msg.sender]) revert AlreadyClaimed(); alreadyMinted[msg.sender] = true; _mintSnipers(msg.sender, 1); } /** * @notice Mints Observer Passes. A sniper can pay to mint up to `MAX_OBSERVERS_PER_COMMITTED` Observers for each Sniper or Purveyor * they own. By minting Observers, a Sniper or Purveyor becomes committed. Committed Sniper/Purveyor tokens are untransferrable. * In order to uncommit a token, the Observers must be retrieved and redeemed (burned). They do not have to be the same Observers * as initially minted, just the same amount. * Note that if you have multiple Sniper/Purveyor Passes, you may transfer them as long as you don't fall below a 1:10 ratio of Sniper/Purveyors to Observers. * Note that Snipers are committed first, followed by Purveyors if necessary. */ /// @param amount The number of observers to mint. /// @dev Must send `OBSERVER_PRICE` * `amount`. function mintObservers(uint256 amount) public payable { if (msg.value != amount * OBSERVER_PRICE) revert WrongValueSent(); uint256 newBalance = observersMinted[msg.sender] + amount; if (newBalance > maxObserversPermitted(_committedTokenBalance(msg.sender))) { uint256 maxObserversPossible = maxObserversPermitted(_uncommittedTokenBalance(msg.sender)) + maxObserversPermitted(_committedTokenBalance(msg.sender)) - observersMinted[msg.sender]; if (newBalance > maxObserversPossible) { revert TooManyOutstandingObservers(newBalance, maxObserversPermitted(_committedTokenBalance(msg.sender))); } uint256 observerDelta = amount - (maxObserversPermitted(_committedTokenBalance(msg.sender)) - observersMinted[msg.sender]); uint256 toBeCommitted = observerDelta.ceilDiv(10); if (balanceOf(msg.sender, SNIPER_ID) >= toBeCommitted) { _burn(msg.sender, SNIPER_ID, toBeCommitted); _mint(msg.sender, COMMITTED_SNIPER_ID, toBeCommitted, ""); } else { uint256[] memory ids = new uint256[](2); ids[0] = SNIPER_ID; ids[1] = PURVEYOR_ID; uint256[] memory amounts = new uint256[](2); amounts[0] = balanceOf(msg.sender, SNIPER_ID); amounts[1] = toBeCommitted - amounts[0]; _burnBatch(msg.sender, ids, amounts); unchecked { ids[0] += 10; } unchecked { ids[1] += 10; } _mintBatch(msg.sender, ids, amounts, ""); } } observersMinted[msg.sender] = newBalance; _mint(msg.sender, OBSERVER_ID, amount, ""); } /** * @notice Redeems Observer Passes and uncommits as many committed NFTs as possible without * falling below the maximum allowed ratio of `MAX_OBSERVERS_PER_COMMITTED` per Sniper/Purveyor. * Note Purveyors are uncommitted first, followed by Snipers. */ /// @param amount The number of Observers to redeem (burn). function redeemObservers(uint256 amount) external { if (observersMinted[msg.sender] < amount) revert BurnExceedsMinted(); unchecked { observersMinted[msg.sender] -= amount; } _burn(msg.sender, OBSERVER_ID, amount); uint256 observerDelta = maxObserversPermitted(_committedTokenBalance(msg.sender)) - observersMinted[msg.sender]; uint256 toBeUncommitted = observerDelta / 10; if (balanceOf(msg.sender, COMMITTED_PURVEYOR_ID) >= toBeUncommitted) { _burn(msg.sender, COMMITTED_PURVEYOR_ID, toBeUncommitted); _mint(msg.sender, PURVEYOR_ID, toBeUncommitted, ""); } else { uint256[] memory ids = new uint256[](2); ids[0] = COMMITTED_PURVEYOR_ID; ids[1] = COMMITTED_SNIPER_ID; uint256[] memory amounts = new uint256[](2); amounts[0] = balanceOf(msg.sender, COMMITTED_PURVEYOR_ID); amounts[1] = toBeUncommitted - amounts[0]; _burnBatch(msg.sender, ids, amounts); unchecked { ids[0] -= 10; } unchecked { ids[1] -= 10; } _mintBatch(msg.sender, ids, amounts, ""); } } /// @notice Burns a Sniper's Pass to upgrade to a Purveyor /// @dev Must send `PURVEYOR_PRICE`. function burnForPurveyor(uint256 amount) external payable { if (msg.value != PURVEYOR_PRICE * amount) revert WrongValueSent(); _burn(msg.sender, SNIPER_ID, amount); _mint(msg.sender, PURVEYOR_ID, amount, ""); } /// @notice Overrides ERC1155 safeTransferFrom. Prevents transfers of committed tokens. /// @dev See {IERC1155-safeTransferFrom}. function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public override { if (id == COMMITTED_SNIPER_ID || id == COMMITTED_PURVEYOR_ID) { revert CannotTransferCommittedToken(); } super.safeTransferFrom(from, to, id, amount, data); } /// @notice Overrides ERC1155 safeBatchTransferFrom. Prevents transfers that include committed tokens. /// @dev See {IERC1155-safeBatchTransferFrom}. function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public override { for (uint256 i = 0; i < ids.length; i++ ) { if (ids[i] == COMMITTED_PURVEYOR_ID || ids[i] == COMMITTED_SNIPER_ID) { revert CannotTransferCommittedToken(); } } super.safeBatchTransferFrom(from, to, ids, amounts, data); } /// @notice Withdraws full contract balance to owner function withdraw() external onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); if (!success) revert WrongValueSent(); } /// @param committedTokenBalance The balance of committed tokens used to calculate max Observers /// @notice Used to determine hypothetical maximums /// @return maximum The maximum Observers for a given balance function maxObserversPermitted(uint256 committedTokenBalance) internal pure returns (uint) { return committedTokenBalance * MAX_OBSERVERS_PER_COMMITTED; } /// @notice Returns the balance of committed Snipers and Purveyors for a given user /// @param user Address of the user to query for /// @return balances The number of committed tokens held by a user function _committedTokenBalance(address user) internal view returns (uint256) { return balanceOf(user, COMMITTED_SNIPER_ID) + balanceOf(user, COMMITTED_PURVEYOR_ID); } /// @notice Returns the balance of uncommitted Snipers and Purveyors for a given user /// @param user Address of the user to query for /// @return balances The number of uncommitted tokens held by a user function _uncommittedTokenBalance(address user) internal view returns (uint256) { return balanceOf(user, SNIPER_ID) + balanceOf(user, PURVEYOR_ID); } /// @notice Mints a new Sniper's Pass /// @param to The address to mint to /// @param amount The number of Sniper's Passes to mint /// @dev Must not surpass max Sniper's Pass supply of 488 function _mintSnipers(address to, uint256 amount) internal { if (numSnipersMinted + amount > MAX_SNIPERS_SUPPLY) revert NotEnoughTokens(); unchecked { numSnipersMinted += amount; } _mint(to, SNIPER_ID, amount, ""); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_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) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. It 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)`. // We also know that `k`, the position of the most significant bit, is such that `msb(a) = 2**k`. // This gives `2**k < a <= 2**(k+1)` → `2**(k/2) <= sqrt(a) < 2 ** (k/2+1)`. // Using an algorithm similar to the msb conmputation, we are able to compute `result = 2**(k/2)` which is a // good first aproximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1; uint256 x = a; if (x >> 128 > 0) { x >>= 128; result <<= 64; } if (x >> 64 > 0) { x >>= 64; result <<= 32; } if (x >> 32 > 0) { x >>= 32; result <<= 16; } if (x >> 16 > 0) { x >>= 16; result <<= 8; } if (x >> 8 > 0) { x >>= 8; result <<= 4; } if (x >> 4 > 0) { x >>= 4; result <<= 2; } if (x >> 2 > 0) { result <<= 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) { uint256 result = sqrt(a); if (rounding == Rounding.Up && result * result < a) { result += 1; } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "./IERC1155Guardable.sol"; /** * @dev Contract module which provides added security functionality, where * where an account can assign a guardian to protect their NFTs. While a guardian * is assigned, setApprovalForAll is locked. New approvals cannot be set. There can * only ever be one guardian per account, and setting a new guardian will overwrite * any existing one. * * Existing approvals can still be leveraged as normal, and it is expected that this * functionality be used after a user has set the approvals they want to set. Approvals * can still be removed while a guardian is set. * * Setting a guardian has no effect on transfers, so users can move assets to a new wallet * to effectively "clear" guardians if a guardian is maliciously set, or keys to a guardian * are lost. * * It is not recommended to use _lockToSelf, as removing this lock would be easily added to * a malicious workflow, whereas removing a traditional lock from a guardian account would * be sufficiently prohibitive. * * This is less effective at guarding than ERC721Guardable because of the existence of * safeBatchTransferFrom, so it is important to remain careful. */ abstract contract ERC1155Guardable is ERC1155Supply, IERC1155Guardable { mapping(address => address) private locks; function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, IERC165) returns (bool) { return interfaceId == type(IERC1155Guardable).interfaceId || super.supportsInterface(interfaceId); } function setGuardian(address guardian) public { if (msg.sender == guardian || guardian == address(0)) { revert InvalidGuardian(); } locks[msg.sender] = guardian; emit GuardianAdded(msg.sender, guardian); } function guardianOf(address tokenOwner) public view returns (address) { return locks[tokenOwner]; } function removeGuardianOf(address tokenOwner) external { if (msg.sender != guardianOf(tokenOwner)) { revert CallerGuardianMismatch(msg.sender, guardianOf(tokenOwner)); } delete locks[tokenOwner]; emit GuardianRemoved(tokenOwner); } function setApprovalForAll(address operator, bool approved) public override(ERC1155, IERC1155Guardable) { if (locks[msg.sender] != address(0) && approved) { revert TokenIsLocked(); } super.setApprovalForAll(operator, approved); } function _lockToSelf() internal virtual { locks[msg.sender] = msg.sender; emit GuardianAdded(msg.sender, msg.sender); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; interface IERC1155Guardable is IERC165 { // Interface ID 0xb043e146 error TokenIsLocked(); error CallerGuardianMismatch(address caller, address guardian); error InvalidGuardian(); event GuardianAdded(address indexed addressGuarded, address indexed guardian); event GuardianRemoved(address indexed addressGuarded); function setGuardian(address guardian) external; function removeGuardianOf(address tokenOwner) external; function setApprovalForAll(address operator, bool approved) external; function guardianOf(address tokenOwner) external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 supply = _totalSupply[id]; require(supply >= amount, "ERC1155: burn amount exceeds totalSupply"); unchecked { _totalSupply[id] = supply - amount; } } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: address zero is not a valid owner"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `ids` and `amounts` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bytes32","name":"_root","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyClaimed","type":"error"},{"inputs":[],"name":"BurnExceedsMinted","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"address","name":"guardian","type":"address"}],"name":"CallerGuardianMismatch","type":"error"},{"inputs":[],"name":"CannotTransferCommittedToken","type":"error"},{"inputs":[],"name":"InvalidGuardian","type":"error"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"InvalidProof","type":"error"},{"inputs":[],"name":"NotEnoughTokens","type":"error"},{"inputs":[],"name":"SaleIsPaused","type":"error"},{"inputs":[],"name":"TokenIsLocked","type":"error"},{"inputs":[{"internalType":"uint256","name":"numberOfObservers","type":"uint256"},{"internalType":"uint256","name":"numberAllowed","type":"uint256"}],"name":"TooManyOutstandingObservers","type":"error"},{"inputs":[],"name":"WrongValueSent","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addressGuarded","type":"address"},{"indexed":true,"internalType":"address","name":"guardian","type":"address"}],"name":"GuardianAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addressGuarded","type":"address"}],"name":"GuardianRemoved","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"MAX_OBSERVERS_PER_COMMITTED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SNIPERS_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"alreadyClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"alreadyMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnForPurveyor","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"claimSniper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"}],"name":"guardianOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintObservers","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintSnipers","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numSnipersMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeemObservers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"}],"name":"removeGuardianOf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"guardian","type":"address"}],"name":"setGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600b60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162006e9238038062006e92833981810160405281019062000052919062000b08565b8162000064816200011d60201b60201c565b5062000085620000796200013260201b60201c565b6200013a60201b60201c565b620000a7620000996200020060201b60201c565b600d6200022a60201b60201c565b620000da620000bb6200020060201b60201c565b60018060405180602001604052806000815250620002ae60201b60201c565b6200010e620000ee6200020060201b60201c565b6002606460405180602001604052806000815250620002ae60201b60201c565b806006819055505050620014fc565b80600290816200012e919062000db9565b5050565b600033905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6101e8816007546200023d919062000ecf565b111562000276576040517f22bbb43c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760008282540192505081905550620002aa8260008360405180602001604052806000815250620002ae60201b60201c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160362000320576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003179062000f91565b60405180910390fd5b6000620003326200013260201b60201c565b9050600062000347856200049560201b60201c565b905060006200035c856200049560201b60201c565b905062000375836000898585896200051660201b60201c565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254620003d6919062000ecf565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516200045692919062000fc4565b60405180910390a462000475836000898585896200070e60201b60201c565b6200048c836000898989896200071660201b60201c565b50505050505050565b60606000600167ffffffffffffffff811115620004b757620004b662000969565b5b604051908082528060200260200182016040528015620004e65781602001602082028036833780820191505090505b509050828160008151811062000501576200050062000ff1565b5b60200260200101818152505080915050919050565b620005318686868686866200090f60201b62001e1e1760201c565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603620005ef5760005b8351811015620005ed5782818151811062000589576200058862000ff1565b5b602002602001015160036000868481518110620005ab57620005aa62000ff1565b5b602002602001015181526020019081526020016000206000828254620005d2919062000ecf565b9250508190555080620005e59062001020565b905062000569565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603620007065760005b83518110156200070457600084828151811062000649576200064862000ff1565b5b6020026020010151905060008483815181106200066b576200066a62000ff1565b5b6020026020010151905060006003600084815260200190815260200160002054905081811015620006d3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006ca90620010e3565b60405180910390fd5b818103600360008581526020019081526020016000208190555050505080620006fc9062001020565b905062000627565b505b505050505050565b505050505050565b620007428473ffffffffffffffffffffffffffffffffffffffff166200091760201b62001e261760201c565b1562000907578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016200078b959493929190620011a7565b6020604051808303816000875af1925050508015620007ca57506040513d601f19601f82011682018060405250810190620007c7919062001268565b60015b6200087b57620007d9620012a7565b806308c379a0036200083c5750620007f0620012cc565b80620007fd57506200083e565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620008339190620013a8565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620008729062001442565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161462000905576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620008fc90620014da565b60405180910390fd5b505b505050505050565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620009a38262000958565b810181811067ffffffffffffffff82111715620009c557620009c462000969565b5b80604052505050565b6000620009da6200093a565b9050620009e8828262000998565b919050565b600067ffffffffffffffff82111562000a0b5762000a0a62000969565b5b62000a168262000958565b9050602081019050919050565b60005b8381101562000a4357808201518184015260208101905062000a26565b60008484015250505050565b600062000a6662000a6084620009ed565b620009ce565b90508281526020810184848401111562000a855762000a8462000953565b5b62000a9284828562000a23565b509392505050565b600082601f83011262000ab25762000ab16200094e565b5b815162000ac484826020860162000a4f565b91505092915050565b6000819050919050565b62000ae28162000acd565b811462000aee57600080fd5b50565b60008151905062000b028162000ad7565b92915050565b6000806040838503121562000b225762000b2162000944565b5b600083015167ffffffffffffffff81111562000b435762000b4262000949565b5b62000b518582860162000a9a565b925050602062000b648582860162000af1565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000bc157607f821691505b60208210810362000bd75762000bd662000b79565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000c417fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000c02565b62000c4d868362000c02565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000c9a62000c9462000c8e8462000c65565b62000c6f565b62000c65565b9050919050565b6000819050919050565b62000cb68362000c79565b62000cce62000cc58262000ca1565b84845462000c0f565b825550505050565b600090565b62000ce562000cd6565b62000cf281848462000cab565b505050565b5b8181101562000d1a5762000d0e60008262000cdb565b60018101905062000cf8565b5050565b601f82111562000d695762000d338162000bdd565b62000d3e8462000bf2565b8101602085101562000d4e578190505b62000d6662000d5d8562000bf2565b83018262000cf7565b50505b505050565b600082821c905092915050565b600062000d8e6000198460080262000d6e565b1980831691505092915050565b600062000da9838362000d7b565b9150826002028217905092915050565b62000dc48262000b6e565b67ffffffffffffffff81111562000de05762000ddf62000969565b5b62000dec825462000ba8565b62000df982828562000d1e565b600060209050601f83116001811462000e31576000841562000e1c578287015190505b62000e28858262000d9b565b86555062000e98565b601f19841662000e418662000bdd565b60005b8281101562000e6b5784890151825560018201915060208501945060208101905062000e44565b8683101562000e8b578489015162000e87601f89168262000d7b565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000edc8262000c65565b915062000ee98362000c65565b925082820190508082111562000f045762000f0362000ea0565b5b92915050565b600082825260208201905092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600062000f7960218362000f0a565b915062000f868262000f1b565b604082019050919050565b6000602082019050818103600083015262000fac8162000f6a565b9050919050565b62000fbe8162000c65565b82525050565b600060408201905062000fdb600083018562000fb3565b62000fea602083018462000fb3565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006200102d8262000c65565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362001062576200106162000ea0565b5b600182019050919050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b6000620010cb60288362000f0a565b9150620010d8826200106d565b604082019050919050565b60006020820190508181036000830152620010fe81620010bc565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620011328262001105565b9050919050565b620011448162001125565b82525050565b600081519050919050565b600082825260208201905092915050565b600062001173826200114a565b6200117f818562001155565b93506200119181856020860162000a23565b6200119c8162000958565b840191505092915050565b600060a082019050620011be600083018862001139565b620011cd602083018762001139565b620011dc604083018662000fb3565b620011eb606083018562000fb3565b8181036080830152620011ff818462001166565b90509695505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b62001242816200120b565b81146200124e57600080fd5b50565b600081519050620012628162001237565b92915050565b60006020828403121562001281576200128062000944565b5b6000620012918482850162001251565b91505092915050565b60008160e01c9050919050565b600060033d1115620012c95760046000803e620012c66000516200129a565b90505b90565b600060443d106200136457620012e16200093a565b60043d036004823e80513d602482011167ffffffffffffffff821117156200130b57505062001364565b808201805167ffffffffffffffff8111156200132b575050505062001364565b80602083010160043d0385018111156200134a57505050505062001364565b6200135b8260200185018662000998565b82955050505050505b90565b6000620013748262000b6e565b62001380818562000f0a565b93506200139281856020860162000a23565b6200139d8162000958565b840191505092915050565b60006020820190508181036000830152620013c4818462001367565b905092915050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006200142a60348362000f0a565b91506200143782620013cc565b604082019050919050565b600060208201905081810360008301526200145d816200141b565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000620014c260288362000f0a565b9150620014cf8262001464565b604082019050919050565b60006020820190508181036000830152620014f581620014b3565b9050919050565b615986806200150c6000396000f3fe6080604052600436106101f85760003560e01c80637cb647591161010d578063bd85b039116100a0578063e985e9c51161006f578063e985e9c5146106e1578063eb8d24441461071e578063f242432a14610749578063f2fde38b14610772578063f54b893b1461079b576101f8565b8063bd85b03914610653578063c86ecb5014610690578063d1135216146106bb578063d7cd9a93146106c5576101f8565b8063a22cb465116100dc578063a22cb46514610599578063a5cfd763146105c2578063a63d5713146105ed578063acd52e8d14610616576101f8565b80637cb64759146104f15780638a0dac4a1461051a5780638da5cb5b1461054357806395d89b411461056e576101f8565b80632eb2c2d61161019057806334b7d7e41161015f57806334b7d7e4146104205780633ccfd60b146104495780634e1273f4146104605780634f558e791461049d578063715018a6146104da576101f8565b80632eb2c2d6146103995780632eb4a7ab146103c25780633339c480146103ed57806334918dfd14610409576101f8565b80630828efd6116101cc5780630828efd6146102cb5780630a398b88146102f65780630e89341c14610333578063286e620c14610370576101f8565b8062fdd58e146101fd57806301ffc9a71461023a57806302fe53051461027757806306fdde03146102a0575b600080fd5b34801561020957600080fd5b50610224600480360381019061021f9190613ccd565b6107d8565b6040516102319190613d1c565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c9190613d8f565b6108a0565b60405161026e9190613dd7565b60405180910390f35b34801561028357600080fd5b5061029e60048036038101906102999190613f38565b61091a565b005b3480156102ac57600080fd5b506102b561092e565b6040516102c29190614000565b60405180910390f35b3480156102d757600080fd5b506102e0610967565b6040516102ed9190613d1c565b60405180910390f35b34801561030257600080fd5b5061031d60048036038101906103189190614022565b61096d565b60405161032a9190613dd7565b60405180910390f35b34801561033f57600080fd5b5061035a6004803603810190610355919061404f565b61098d565b6040516103679190614000565b60405180910390f35b34801561037c57600080fd5b50610397600480360381019061039291906140dc565b6109c8565b005b3480156103a557600080fd5b506103c060048036038101906103bb919061428d565b610b70565b005b3480156103ce57600080fd5b506103d7610c1e565b6040516103e49190614375565b60405180910390f35b6104076004803603810190610402919061404f565b610c24565b005b34801561041557600080fd5b5061041e610c9b565b005b34801561042c57600080fd5b5061044760048036038101906104429190614022565b610ccf565b005b34801561045557600080fd5b5061045e610df9565b005b34801561046c57600080fd5b5061048760048036038101906104829190614453565b610ea7565b6040516104949190614589565b60405180910390f35b3480156104a957600080fd5b506104c460048036038101906104bf919061404f565b610fc0565b6040516104d19190613dd7565b60405180910390f35b3480156104e657600080fd5b506104ef610fd4565b005b3480156104fd57600080fd5b50610518600480360381019061051391906145d7565b610fe8565b005b34801561052657600080fd5b50610541600480360381019061053c9190614022565b610ffa565b005b34801561054f57600080fd5b50610558611172565b6040516105659190614613565b60405180910390f35b34801561057a57600080fd5b5061058361119c565b6040516105909190614000565b60405180910390f35b3480156105a557600080fd5b506105c060048036038101906105bb919061465a565b6111d5565b005b3480156105ce57600080fd5b506105d76112b3565b6040516105e49190613d1c565b60405180910390f35b3480156105f957600080fd5b50610614600480360381019061060f919061404f565b6112b8565b005b34801561062257600080fd5b5061063d60048036038101906106389190614022565b611608565b60405161064a9190614613565b60405180910390f35b34801561065f57600080fd5b5061067a6004803603810190610675919061404f565b611671565b6040516106879190613d1c565b60405180910390f35b34801561069c57600080fd5b506106a561168e565b6040516106b29190613d1c565b60405180910390f35b6106c3611694565b005b6106df60048036038101906106da919061404f565b611804565b005b3480156106ed57600080fd5b506107086004803603810190610703919061469a565b611c7a565b6040516107159190613dd7565b60405180910390f35b34801561072a57600080fd5b50610733611d0e565b6040516107409190613dd7565b60405180910390f35b34801561075557600080fd5b50610770600480360381019061076b91906146da565b611d21565b005b34801561077e57600080fd5b5061079960048036038101906107949190614022565b611d7b565b005b3480156107a757600080fd5b506107c260048036038101906107bd9190614022565b611dfe565b6040516107cf9190613dd7565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610848576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083f906147e3565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fb043e146000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610913575061091282611e49565b5b9050919050565b610922611f2b565b61092b81611fa9565b50565b6040518060400160405280601381526020017f6f536e6970652047656e6573697320506173730000000000000000000000000081525081565b60075481565b600a6020528060005260406000206000915054906101000a900460ff1681565b606061099882611fbc565b6109a183612050565b6040516020016109b292919061488b565b6040516020818303038152906040529050919050565b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610a4c576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600033604051602001610a5f9190614902565b604051602081830303815290604052805190602001209050610ac5838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600654836121b0565b610b085782826040517f0c7c8d7f000000000000000000000000000000000000000000000000000000008152600401610aff929190614998565b60405180910390fd5b6001600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610b6b3360016121c7565b505050565b60005b8351811015610c0957600b848281518110610b9157610b906149bc565b5b60200260200101511480610bbf5750600a848281518110610bb557610bb46149bc565b5b6020026020010151145b15610bf6576040517f83c6534700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8080610c0190614a1a565b915050610b73565b50610c178585858585612240565b5050505050565b60065481565b806729a2241af62c0000610c389190614a62565b3414610c70576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c7c336000836122e1565b610c983360018360405180602001604052806000815250612527565b50565b610ca3611f2b565b600b60009054906101000a900460ff1615600b60006101000a81548160ff021916908315150217905550565b610cd881611608565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d515733610d1482611608565b6040517fe6364b8e000000000000000000000000000000000000000000000000000000008152600401610d48929190614abc565b60405180910390fd5b600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690558073ffffffffffffffffffffffffffffffffffffffff167fb8107d0c6b40be480ce3172ee66ba6d64b71f6b1685a851340036e6e2e3e3c5260405160405180910390a250565b610e01611f2b565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610e2790614b16565b60006040518083038185875af1925050503d8060008114610e64576040519150601f19603f3d011682016040523d82523d6000602084013e610e69565b606091505b5050905080610ea4576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b60608151835114610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee490614b9d565b60405180910390fd5b6000835167ffffffffffffffff811115610f0a57610f09613e0d565b5b604051908082528060200260200182016040528015610f385781602001602082028036833780820191505090505b50905060005b8451811015610fb557610f85858281518110610f5d57610f5c6149bc565b5b6020026020010151858381518110610f7857610f776149bc565b5b60200260200101516107d8565b828281518110610f9857610f976149bc565b5b60200260200101818152505080610fae90614a1a565b9050610f3e565b508091505092915050565b600080610fcc83611671565b119050919050565b610fdc611f2b565b610fe660006126d7565b565b610ff0611f2b565b8060068190555050565b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806110605750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15611097576040517fa6c1146b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fbc3292102fa77e083913064b282926717cdfaede4d35f553d66366c0a3da755a60405160405180910390a350565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6040518060400160405280600581526020017f534e49504500000000000000000000000000000000000000000000000000000081525081565b600073ffffffffffffffffffffffffffffffffffffffff16600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415801561126e5750805b156112a5576040517fc066bae700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112af828261279d565b5050565b600a81565b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611331576040517fe92d68b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254039250508190555061138a336002836122e1565b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546113dd6113d8336127b3565b6127dc565b6113e79190614bbd565b90506000600a826113f89190614c20565b90508061140633600b6107d8565b106114385761141733600b836122e1565b6114333360018360405180602001604052806000815250612527565b611603565b6000600267ffffffffffffffff81111561145557611454613e0d565b5b6040519080825280602002602001820160405280156114835781602001602082028036833780820191505090505b509050600b8160008151811061149c5761149b6149bc565b5b602002602001018181525050600a816001815181106114be576114bd6149bc565b5b6020026020010181815250506000600267ffffffffffffffff8111156114e7576114e6613e0d565b5b6040519080825280602002602001820160405280156115155781602001602082028036833780820191505090505b50905061152333600b6107d8565b81600081518110611537576115366149bc565b5b60200260200101818152505080600081518110611557576115566149bc565b5b60200260200101518361156a9190614bbd565b8160018151811061157e5761157d6149bc565b5b6020026020010181815250506115953383836127f2565b600a826000815181106115ab576115aa6149bc565b5b602002602001018181510391508181525050600a826001815181106115d3576115d26149bc565b5b60200260200101818151039150818152505061160033838360405180602001604052806000815250612ac0565b50505b505050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600060036000838152602001908152602001600020549050919050565b6101e881565b600b60009054906101000a900460ff166116da576040517f71cc92d400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6706f05b59d3b20000341461171b576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561179f576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118023360016121c7565b565b666a94d74f430000816118179190614a62565b341461184f576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461189c9190614c51565b90506118af6118aa336127b3565b6127dc565b811115611c16576000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611909611904336127b3565b6127dc565b61191a61191533612cec565b6127dc565b6119249190614c51565b61192e9190614bbd565b905080821115611987578161194a611945336127b3565b6127dc565b6040517f6dcdb11f00000000000000000000000000000000000000000000000000000000815260040161197e929190614c85565b60405180910390fd5b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119da6119d5336127b3565b6127dc565b6119e49190614bbd565b846119ef9190614bbd565b90506000611a07600a83612d1590919063ffffffff16565b905080611a153360006107d8565b10611a4757611a26336000836122e1565b611a4233600a8360405180602001604052806000815250612527565b611c12565b6000600267ffffffffffffffff811115611a6457611a63613e0d565b5b604051908082528060200260200182016040528015611a925781602001602082028036833780820191505090505b509050600081600081518110611aab57611aaa6149bc565b5b602002602001018181525050600181600181518110611acd57611acc6149bc565b5b6020026020010181815250506000600267ffffffffffffffff811115611af657611af5613e0d565b5b604051908082528060200260200182016040528015611b245781602001602082028036833780820191505090505b509050611b323360006107d8565b81600081518110611b4657611b456149bc565b5b60200260200101818152505080600081518110611b6657611b656149bc565b5b602002602001015183611b799190614bbd565b81600181518110611b8d57611b8c6149bc565b5b602002602001018181525050611ba43383836127f2565b600a82600081518110611bba57611bb96149bc565b5b602002602001018181510191508181525050600a82600181518110611be257611be16149bc565b5b602002602001018181510191508181525050611c0f33838360405180602001604052806000815250612ac0565b50505b5050505b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611c763360028460405180602001604052806000815250612527565b5050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b60009054906101000a900460ff1681565b600a831480611d305750600b83145b15611d67576040517f83c6534700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d748585858585612d52565b5050505050565b611d83611f2b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de990614d20565b60405180910390fd5b611dfb816126d7565b50565b60096020528060005260406000206000915054906101000a900460ff1681565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611f1457507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611f245750611f2382612df3565b5b9050919050565b611f33612e5d565b73ffffffffffffffffffffffffffffffffffffffff16611f51611172565b73ffffffffffffffffffffffffffffffffffffffff1614611fa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9e90614d8c565b60405180910390fd5b565b8060029081611fb89190614fb8565b5050565b606060028054611fcb90614ddb565b80601f0160208091040260200160405190810160405280929190818152602001828054611ff790614ddb565b80156120445780601f1061201957610100808354040283529160200191612044565b820191906000526020600020905b81548152906001019060200180831161202757829003601f168201915b50505050509050919050565b606060008203612097576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121ab565b600082905060005b600082146120c95780806120b290614a1a565b915050600a826120c29190614c20565b915061209f565b60008167ffffffffffffffff8111156120e5576120e4613e0d565b5b6040519080825280601f01601f1916602001820160405280156121175781602001600182028036833780820191505090505b5090505b600085146121a4576001826121309190614bbd565b9150600a8561213f919061508a565b603061214b9190614c51565b60f81b818381518110612161576121606149bc565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561219d9190614c20565b945061211b565b8093505050505b919050565b6000826121bd8584612e65565b1490509392505050565b6101e8816007546121d89190614c51565b1115612210576040517f22bbb43c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000828254019250508190555061223c8260008360405180602001604052806000815250612527565b5050565b612248612e5d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061228e575061228d85612288612e5d565b611c7a565b5b6122cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c49061512d565b60405180910390fd5b6122da8585858585612ebb565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612350576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612347906151bf565b60405180910390fd5b600061235a612e5d565b90506000612367846131dc565b90506000612374846131dc565b905061239483876000858560405180602001604052806000815250613256565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508481101561242b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242290615251565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516124f8929190614c85565b60405180910390a461251e84886000868660405180602001604052806000815250613426565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258d906152e3565b60405180910390fd5b60006125a0612e5d565b905060006125ad856131dc565b905060006125ba856131dc565b90506125cb83600089858589613256565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461262a9190614c51565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516126a8929190614c85565b60405180910390a46126bf83600089858589613426565b6126ce8360008989898961342e565b50505050505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6127af6127a8612e5d565b8383613605565b5050565b60006127c082600b6107d8565b6127cb83600a6107d8565b6127d59190614c51565b9050919050565b6000600a826127eb9190614a62565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612861576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612858906151bf565b60405180910390fd5b80518251146128a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289c90615375565b60405180910390fd5b60006128af612e5d565b90506128cf81856000868660405180602001604052806000815250613256565b60005b8351811015612a1c5760008482815181106128f0576128ef6149bc565b5b60200260200101519050600084838151811061290f5761290e6149bc565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156129b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a790615251565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080612a1490614a1a565b9150506128d2565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612a94929190615395565b60405180910390a4612aba81856000868660405180602001604052806000815250613426565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612b2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b26906152e3565b60405180910390fd5b8151835114612b73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6a90615375565b60405180910390fd5b6000612b7d612e5d565b9050612b8e81600087878787613256565b60005b8451811015612c4757838181518110612bad57612bac6149bc565b5b6020026020010151600080878481518110612bcb57612bca6149bc565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c2d9190614c51565b925050819055508080612c3f90614a1a565b915050612b91565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612cbf929190615395565b60405180910390a4612cd681600087878787613426565b612ce581600087878787613771565b5050505050565b6000612cf98260016107d8565b612d048360006107d8565b612d0e9190614c51565b9050919050565b6000808314612d4757600182600185612d2e9190614bbd565b612d389190614c20565b612d429190614c51565b612d4a565b60005b905092915050565b612d5a612e5d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480612da05750612d9f85612d9a612e5d565b611c7a565b5b612ddf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dd69061512d565b60405180910390fd5b612dec8585858585613948565b5050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008082905060005b8451811015612eb057612e9b82868381518110612e8e57612e8d6149bc565b5b6020026020010151613be3565b91508080612ea890614a1a565b915050612e6e565b508091505092915050565b8151835114612eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef690615375565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f659061543e565b60405180910390fd5b6000612f78612e5d565b9050612f88818787878787613256565b60005b8451811015613139576000858281518110612fa957612fa86149bc565b5b602002602001015190506000858381518110612fc857612fc76149bc565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015613069576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613060906154d0565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461311e9190614c51565b925050819055505050508061313290614a1a565b9050612f8b565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516131b0929190615395565b60405180910390a46131c6818787878787613426565b6131d4818787878787613771565b505050505050565b60606000600167ffffffffffffffff8111156131fb576131fa613e0d565b5b6040519080825280602002602001820160405280156132295781602001602082028036833780820191505090505b5090508281600081518110613241576132406149bc565b5b60200260200101818152505080915050919050565b613264868686868686611e1e565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036133155760005b8351811015613313578281815181106132b7576132b66149bc565b5b6020026020010151600360008684815181106132d6576132d56149bc565b5b6020026020010151815260200190815260200160002060008282546132fb9190614c51565b925050819055508061330c90614a1a565b905061329b565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361341e5760005b835181101561341c57600084828151811061336a576133696149bc565b5b602002602001015190506000848381518110613389576133886149bc565b5b60200260200101519050600060036000848152602001908152602001600020549050818110156133ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133e590615562565b60405180910390fd5b81810360036000858152602001908152602001600020819055505050508061341590614a1a565b905061334c565b505b505050505050565b505050505050565b61344d8473ffffffffffffffffffffffffffffffffffffffff16611e26565b156135fd578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016134939594939291906155d7565b6020604051808303816000875af19250505080156134cf57506040513d601f19601f820116820180604052508101906134cc9190615646565b60015b613574576134db615680565b806308c379a00361353757506134ef6156a2565b806134fa5750613539565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161352e9190614000565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161356b906157a4565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146135fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135f290615836565b60405180910390fd5b505b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613673576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161366a906158c8565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516137649190613dd7565b60405180910390a3505050565b6137908473ffffffffffffffffffffffffffffffffffffffff16611e26565b15613940578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016137d69594939291906158e8565b6020604051808303816000875af192505050801561381257506040513d601f19601f8201168201806040525081019061380f9190615646565b60015b6138b75761381e615680565b806308c379a00361387a57506138326156a2565b8061383d575061387c565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138719190614000565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138ae906157a4565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461393e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161393590615836565b60405180910390fd5b505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036139b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139ae9061543e565b60405180910390fd5b60006139c1612e5d565b905060006139ce856131dc565b905060006139db856131dc565b90506139eb838989858589613256565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015613a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a79906154d0565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613b379190614c51565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051613bb4929190614c85565b60405180910390a4613bca848a8a86868a613426565b613bd8848a8a8a8a8a61342e565b505050505050505050565b6000818310613bfb57613bf68284613c0e565b613c06565b613c058383613c0e565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c6482613c39565b9050919050565b613c7481613c59565b8114613c7f57600080fd5b50565b600081359050613c9181613c6b565b92915050565b6000819050919050565b613caa81613c97565b8114613cb557600080fd5b50565b600081359050613cc781613ca1565b92915050565b60008060408385031215613ce457613ce3613c2f565b5b6000613cf285828601613c82565b9250506020613d0385828601613cb8565b9150509250929050565b613d1681613c97565b82525050565b6000602082019050613d316000830184613d0d565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d6c81613d37565b8114613d7757600080fd5b50565b600081359050613d8981613d63565b92915050565b600060208284031215613da557613da4613c2f565b5b6000613db384828501613d7a565b91505092915050565b60008115159050919050565b613dd181613dbc565b82525050565b6000602082019050613dec6000830184613dc8565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613e4582613dfc565b810181811067ffffffffffffffff82111715613e6457613e63613e0d565b5b80604052505050565b6000613e77613c25565b9050613e838282613e3c565b919050565b600067ffffffffffffffff821115613ea357613ea2613e0d565b5b613eac82613dfc565b9050602081019050919050565b82818337600083830152505050565b6000613edb613ed684613e88565b613e6d565b905082815260208101848484011115613ef757613ef6613df7565b5b613f02848285613eb9565b509392505050565b600082601f830112613f1f57613f1e613df2565b5b8135613f2f848260208601613ec8565b91505092915050565b600060208284031215613f4e57613f4d613c2f565b5b600082013567ffffffffffffffff811115613f6c57613f6b613c34565b5b613f7884828501613f0a565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613fbb578082015181840152602081019050613fa0565b60008484015250505050565b6000613fd282613f81565b613fdc8185613f8c565b9350613fec818560208601613f9d565b613ff581613dfc565b840191505092915050565b6000602082019050818103600083015261401a8184613fc7565b905092915050565b60006020828403121561403857614037613c2f565b5b600061404684828501613c82565b91505092915050565b60006020828403121561406557614064613c2f565b5b600061407384828501613cb8565b91505092915050565b600080fd5b600080fd5b60008083601f84011261409c5761409b613df2565b5b8235905067ffffffffffffffff8111156140b9576140b861407c565b5b6020830191508360208202830111156140d5576140d4614081565b5b9250929050565b600080602083850312156140f3576140f2613c2f565b5b600083013567ffffffffffffffff81111561411157614110613c34565b5b61411d85828601614086565b92509250509250929050565b600067ffffffffffffffff82111561414457614143613e0d565b5b602082029050602081019050919050565b600061416861416384614129565b613e6d565b9050808382526020820190506020840283018581111561418b5761418a614081565b5b835b818110156141b457806141a08882613cb8565b84526020840193505060208101905061418d565b5050509392505050565b600082601f8301126141d3576141d2613df2565b5b81356141e3848260208601614155565b91505092915050565b600067ffffffffffffffff82111561420757614206613e0d565b5b61421082613dfc565b9050602081019050919050565b600061423061422b846141ec565b613e6d565b90508281526020810184848401111561424c5761424b613df7565b5b614257848285613eb9565b509392505050565b600082601f83011261427457614273613df2565b5b813561428484826020860161421d565b91505092915050565b600080600080600060a086880312156142a9576142a8613c2f565b5b60006142b788828901613c82565b95505060206142c888828901613c82565b945050604086013567ffffffffffffffff8111156142e9576142e8613c34565b5b6142f5888289016141be565b935050606086013567ffffffffffffffff81111561431657614315613c34565b5b614322888289016141be565b925050608086013567ffffffffffffffff81111561434357614342613c34565b5b61434f8882890161425f565b9150509295509295909350565b6000819050919050565b61436f8161435c565b82525050565b600060208201905061438a6000830184614366565b92915050565b600067ffffffffffffffff8211156143ab576143aa613e0d565b5b602082029050602081019050919050565b60006143cf6143ca84614390565b613e6d565b905080838252602082019050602084028301858111156143f2576143f1614081565b5b835b8181101561441b57806144078882613c82565b8452602084019350506020810190506143f4565b5050509392505050565b600082601f83011261443a57614439613df2565b5b813561444a8482602086016143bc565b91505092915050565b6000806040838503121561446a57614469613c2f565b5b600083013567ffffffffffffffff81111561448857614487613c34565b5b61449485828601614425565b925050602083013567ffffffffffffffff8111156144b5576144b4613c34565b5b6144c1858286016141be565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61450081613c97565b82525050565b600061451283836144f7565b60208301905092915050565b6000602082019050919050565b6000614536826144cb565b61454081856144d6565b935061454b836144e7565b8060005b8381101561457c5781516145638882614506565b975061456e8361451e565b92505060018101905061454f565b5085935050505092915050565b600060208201905081810360008301526145a3818461452b565b905092915050565b6145b48161435c565b81146145bf57600080fd5b50565b6000813590506145d1816145ab565b92915050565b6000602082840312156145ed576145ec613c2f565b5b60006145fb848285016145c2565b91505092915050565b61460d81613c59565b82525050565b60006020820190506146286000830184614604565b92915050565b61463781613dbc565b811461464257600080fd5b50565b6000813590506146548161462e565b92915050565b6000806040838503121561467157614670613c2f565b5b600061467f85828601613c82565b925050602061469085828601614645565b9150509250929050565b600080604083850312156146b1576146b0613c2f565b5b60006146bf85828601613c82565b92505060206146d085828601613c82565b9150509250929050565b600080600080600060a086880312156146f6576146f5613c2f565b5b600061470488828901613c82565b955050602061471588828901613c82565b945050604061472688828901613cb8565b935050606061473788828901613cb8565b925050608086013567ffffffffffffffff81111561475857614757613c34565b5b6147648882890161425f565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006147cd602a83613f8c565b91506147d882614771565b604082019050919050565b600060208201905081810360008301526147fc816147c0565b9050919050565b600081905092915050565b600061481982613f81565b6148238185614803565b9350614833818560208601613f9d565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614875600583614803565b91506148808261483f565b600582019050919050565b6000614897828561480e565b91506148a3828461480e565b91506148ae82614868565b91508190509392505050565b60008160601b9050919050565b60006148d2826148ba565b9050919050565b60006148e4826148c7565b9050919050565b6148fc6148f782613c59565b6148d9565b82525050565b600061490e82846148eb565b60148201915081905092915050565b600082825260208201905092915050565b600080fd5b82818337505050565b6000614948838561491d565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561497b5761497a61492e565b5b60208302925061498c838584614933565b82840190509392505050565b600060208201905081810360008301526149b381848661493c565b90509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614a2582613c97565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a5757614a566149eb565b5b600182019050919050565b6000614a6d82613c97565b9150614a7883613c97565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ab157614ab06149eb565b5b828202905092915050565b6000604082019050614ad16000830185614604565b614ade6020830184614604565b9392505050565b600081905092915050565b50565b6000614b00600083614ae5565b9150614b0b82614af0565b600082019050919050565b6000614b2182614af3565b9150819050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614b87602983613f8c565b9150614b9282614b2b565b604082019050919050565b60006020820190508181036000830152614bb681614b7a565b9050919050565b6000614bc882613c97565b9150614bd383613c97565b9250828203905081811115614beb57614bea6149eb565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614c2b82613c97565b9150614c3683613c97565b925082614c4657614c45614bf1565b5b828204905092915050565b6000614c5c82613c97565b9150614c6783613c97565b9250828201905080821115614c7f57614c7e6149eb565b5b92915050565b6000604082019050614c9a6000830185613d0d565b614ca76020830184613d0d565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614d0a602683613f8c565b9150614d1582614cae565b604082019050919050565b60006020820190508181036000830152614d3981614cfd565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d76602083613f8c565b9150614d8182614d40565b602082019050919050565b60006020820190508181036000830152614da581614d69565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614df357607f821691505b602082108103614e0657614e05614dac565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614e6e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614e31565b614e788683614e31565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614eb5614eb0614eab84613c97565b614e90565b613c97565b9050919050565b6000819050919050565b614ecf83614e9a565b614ee3614edb82614ebc565b848454614e3e565b825550505050565b600090565b614ef8614eeb565b614f03818484614ec6565b505050565b5b81811015614f2757614f1c600082614ef0565b600181019050614f09565b5050565b601f821115614f6c57614f3d81614e0c565b614f4684614e21565b81016020851015614f55578190505b614f69614f6185614e21565b830182614f08565b50505b505050565b600082821c905092915050565b6000614f8f60001984600802614f71565b1980831691505092915050565b6000614fa88383614f7e565b9150826002028217905092915050565b614fc182613f81565b67ffffffffffffffff811115614fda57614fd9613e0d565b5b614fe48254614ddb565b614fef828285614f2b565b600060209050601f8311600181146150225760008415615010578287015190505b61501a8582614f9c565b865550615082565b601f19841661503086614e0c565b60005b8281101561505857848901518255600182019150602085019450602081019050615033565b868310156150755784890151615071601f891682614f7e565b8355505b6001600288020188555050505b505050505050565b600061509582613c97565b91506150a083613c97565b9250826150b0576150af614bf1565b5b828206905092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b6000615117602f83613f8c565b9150615122826150bb565b604082019050919050565b600060208201905081810360008301526151468161510a565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006151a9602383613f8c565b91506151b48261514d565b604082019050919050565b600060208201905081810360008301526151d88161519c565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b600061523b602483613f8c565b9150615246826151df565b604082019050919050565b6000602082019050818103600083015261526a8161522e565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006152cd602183613f8c565b91506152d882615271565b604082019050919050565b600060208201905081810360008301526152fc816152c0565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061535f602883613f8c565b915061536a82615303565b604082019050919050565b6000602082019050818103600083015261538e81615352565b9050919050565b600060408201905081810360008301526153af818561452b565b905081810360208301526153c3818461452b565b90509392505050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615428602583613f8c565b9150615433826153cc565b604082019050919050565b600060208201905081810360008301526154578161541b565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006154ba602a83613f8c565b91506154c58261545e565b604082019050919050565b600060208201905081810360008301526154e9816154ad565b9050919050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b600061554c602883613f8c565b9150615557826154f0565b604082019050919050565b6000602082019050818103600083015261557b8161553f565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006155a982615582565b6155b3818561558d565b93506155c3818560208601613f9d565b6155cc81613dfc565b840191505092915050565b600060a0820190506155ec6000830188614604565b6155f96020830187614604565b6156066040830186613d0d565b6156136060830185613d0d565b8181036080830152615625818461559e565b90509695505050505050565b60008151905061564081613d63565b92915050565b60006020828403121561565c5761565b613c2f565b5b600061566a84828501615631565b91505092915050565b60008160e01c9050919050565b600060033d111561569f5760046000803e61569c600051615673565b90505b90565b600060443d1061572f576156b4613c25565b60043d036004823e80513d602482011167ffffffffffffffff821117156156dc57505061572f565b808201805167ffffffffffffffff8111156156fa575050505061572f565b80602083010160043d03850181111561571757505050505061572f565b61572682602001850186613e3c565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600061578e603483613f8c565b915061579982615732565b604082019050919050565b600060208201905081810360008301526157bd81615781565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615820602883613f8c565b915061582b826157c4565b604082019050919050565b6000602082019050818103600083015261584f81615813565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006158b2602983613f8c565b91506158bd82615856565b604082019050919050565b600060208201905081810360008301526158e1816158a5565b9050919050565b600060a0820190506158fd6000830188614604565b61590a6020830187614604565b818103604083015261591c818661452b565b90508181036060830152615930818561452b565b90508181036080830152615944818461559e565b9050969550505050505056fea2646970667358221220a962600681fa849139462a4ca464a3553f641b81af6d573df0adabc1c9e995d064736f6c63430008100033000000000000000000000000000000000000000000000000000000000000004061dcecd46e407fc1df80e8d0ac568ed93dae35c0a674227c85ea55fac72104500000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d574c4845787938724e344554427a383938696f426179664e684a4c5941596e4e3555574555596235314332502f00000000000000000000
Deployed Bytecode
0x6080604052600436106101f85760003560e01c80637cb647591161010d578063bd85b039116100a0578063e985e9c51161006f578063e985e9c5146106e1578063eb8d24441461071e578063f242432a14610749578063f2fde38b14610772578063f54b893b1461079b576101f8565b8063bd85b03914610653578063c86ecb5014610690578063d1135216146106bb578063d7cd9a93146106c5576101f8565b8063a22cb465116100dc578063a22cb46514610599578063a5cfd763146105c2578063a63d5713146105ed578063acd52e8d14610616576101f8565b80637cb64759146104f15780638a0dac4a1461051a5780638da5cb5b1461054357806395d89b411461056e576101f8565b80632eb2c2d61161019057806334b7d7e41161015f57806334b7d7e4146104205780633ccfd60b146104495780634e1273f4146104605780634f558e791461049d578063715018a6146104da576101f8565b80632eb2c2d6146103995780632eb4a7ab146103c25780633339c480146103ed57806334918dfd14610409576101f8565b80630828efd6116101cc5780630828efd6146102cb5780630a398b88146102f65780630e89341c14610333578063286e620c14610370576101f8565b8062fdd58e146101fd57806301ffc9a71461023a57806302fe53051461027757806306fdde03146102a0575b600080fd5b34801561020957600080fd5b50610224600480360381019061021f9190613ccd565b6107d8565b6040516102319190613d1c565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c9190613d8f565b6108a0565b60405161026e9190613dd7565b60405180910390f35b34801561028357600080fd5b5061029e60048036038101906102999190613f38565b61091a565b005b3480156102ac57600080fd5b506102b561092e565b6040516102c29190614000565b60405180910390f35b3480156102d757600080fd5b506102e0610967565b6040516102ed9190613d1c565b60405180910390f35b34801561030257600080fd5b5061031d60048036038101906103189190614022565b61096d565b60405161032a9190613dd7565b60405180910390f35b34801561033f57600080fd5b5061035a6004803603810190610355919061404f565b61098d565b6040516103679190614000565b60405180910390f35b34801561037c57600080fd5b50610397600480360381019061039291906140dc565b6109c8565b005b3480156103a557600080fd5b506103c060048036038101906103bb919061428d565b610b70565b005b3480156103ce57600080fd5b506103d7610c1e565b6040516103e49190614375565b60405180910390f35b6104076004803603810190610402919061404f565b610c24565b005b34801561041557600080fd5b5061041e610c9b565b005b34801561042c57600080fd5b5061044760048036038101906104429190614022565b610ccf565b005b34801561045557600080fd5b5061045e610df9565b005b34801561046c57600080fd5b5061048760048036038101906104829190614453565b610ea7565b6040516104949190614589565b60405180910390f35b3480156104a957600080fd5b506104c460048036038101906104bf919061404f565b610fc0565b6040516104d19190613dd7565b60405180910390f35b3480156104e657600080fd5b506104ef610fd4565b005b3480156104fd57600080fd5b50610518600480360381019061051391906145d7565b610fe8565b005b34801561052657600080fd5b50610541600480360381019061053c9190614022565b610ffa565b005b34801561054f57600080fd5b50610558611172565b6040516105659190614613565b60405180910390f35b34801561057a57600080fd5b5061058361119c565b6040516105909190614000565b60405180910390f35b3480156105a557600080fd5b506105c060048036038101906105bb919061465a565b6111d5565b005b3480156105ce57600080fd5b506105d76112b3565b6040516105e49190613d1c565b60405180910390f35b3480156105f957600080fd5b50610614600480360381019061060f919061404f565b6112b8565b005b34801561062257600080fd5b5061063d60048036038101906106389190614022565b611608565b60405161064a9190614613565b60405180910390f35b34801561065f57600080fd5b5061067a6004803603810190610675919061404f565b611671565b6040516106879190613d1c565b60405180910390f35b34801561069c57600080fd5b506106a561168e565b6040516106b29190613d1c565b60405180910390f35b6106c3611694565b005b6106df60048036038101906106da919061404f565b611804565b005b3480156106ed57600080fd5b506107086004803603810190610703919061469a565b611c7a565b6040516107159190613dd7565b60405180910390f35b34801561072a57600080fd5b50610733611d0e565b6040516107409190613dd7565b60405180910390f35b34801561075557600080fd5b50610770600480360381019061076b91906146da565b611d21565b005b34801561077e57600080fd5b5061079960048036038101906107949190614022565b611d7b565b005b3480156107a757600080fd5b506107c260048036038101906107bd9190614022565b611dfe565b6040516107cf9190613dd7565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610848576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083f906147e3565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fb043e146000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610913575061091282611e49565b5b9050919050565b610922611f2b565b61092b81611fa9565b50565b6040518060400160405280601381526020017f6f536e6970652047656e6573697320506173730000000000000000000000000081525081565b60075481565b600a6020528060005260406000206000915054906101000a900460ff1681565b606061099882611fbc565b6109a183612050565b6040516020016109b292919061488b565b6040516020818303038152906040529050919050565b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610a4c576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600033604051602001610a5f9190614902565b604051602081830303815290604052805190602001209050610ac5838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600654836121b0565b610b085782826040517f0c7c8d7f000000000000000000000000000000000000000000000000000000008152600401610aff929190614998565b60405180910390fd5b6001600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610b6b3360016121c7565b505050565b60005b8351811015610c0957600b848281518110610b9157610b906149bc565b5b60200260200101511480610bbf5750600a848281518110610bb557610bb46149bc565b5b6020026020010151145b15610bf6576040517f83c6534700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8080610c0190614a1a565b915050610b73565b50610c178585858585612240565b5050505050565b60065481565b806729a2241af62c0000610c389190614a62565b3414610c70576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c7c336000836122e1565b610c983360018360405180602001604052806000815250612527565b50565b610ca3611f2b565b600b60009054906101000a900460ff1615600b60006101000a81548160ff021916908315150217905550565b610cd881611608565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d515733610d1482611608565b6040517fe6364b8e000000000000000000000000000000000000000000000000000000008152600401610d48929190614abc565b60405180910390fd5b600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690558073ffffffffffffffffffffffffffffffffffffffff167fb8107d0c6b40be480ce3172ee66ba6d64b71f6b1685a851340036e6e2e3e3c5260405160405180910390a250565b610e01611f2b565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610e2790614b16565b60006040518083038185875af1925050503d8060008114610e64576040519150601f19603f3d011682016040523d82523d6000602084013e610e69565b606091505b5050905080610ea4576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b60608151835114610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee490614b9d565b60405180910390fd5b6000835167ffffffffffffffff811115610f0a57610f09613e0d565b5b604051908082528060200260200182016040528015610f385781602001602082028036833780820191505090505b50905060005b8451811015610fb557610f85858281518110610f5d57610f5c6149bc565b5b6020026020010151858381518110610f7857610f776149bc565b5b60200260200101516107d8565b828281518110610f9857610f976149bc565b5b60200260200101818152505080610fae90614a1a565b9050610f3e565b508091505092915050565b600080610fcc83611671565b119050919050565b610fdc611f2b565b610fe660006126d7565b565b610ff0611f2b565b8060068190555050565b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806110605750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15611097576040517fa6c1146b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fbc3292102fa77e083913064b282926717cdfaede4d35f553d66366c0a3da755a60405160405180910390a350565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6040518060400160405280600581526020017f534e49504500000000000000000000000000000000000000000000000000000081525081565b600073ffffffffffffffffffffffffffffffffffffffff16600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415801561126e5750805b156112a5576040517fc066bae700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112af828261279d565b5050565b600a81565b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611331576040517fe92d68b400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254039250508190555061138a336002836122e1565b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546113dd6113d8336127b3565b6127dc565b6113e79190614bbd565b90506000600a826113f89190614c20565b90508061140633600b6107d8565b106114385761141733600b836122e1565b6114333360018360405180602001604052806000815250612527565b611603565b6000600267ffffffffffffffff81111561145557611454613e0d565b5b6040519080825280602002602001820160405280156114835781602001602082028036833780820191505090505b509050600b8160008151811061149c5761149b6149bc565b5b602002602001018181525050600a816001815181106114be576114bd6149bc565b5b6020026020010181815250506000600267ffffffffffffffff8111156114e7576114e6613e0d565b5b6040519080825280602002602001820160405280156115155781602001602082028036833780820191505090505b50905061152333600b6107d8565b81600081518110611537576115366149bc565b5b60200260200101818152505080600081518110611557576115566149bc565b5b60200260200101518361156a9190614bbd565b8160018151811061157e5761157d6149bc565b5b6020026020010181815250506115953383836127f2565b600a826000815181106115ab576115aa6149bc565b5b602002602001018181510391508181525050600a826001815181106115d3576115d26149bc565b5b60200260200101818151039150818152505061160033838360405180602001604052806000815250612ac0565b50505b505050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600060036000838152602001908152602001600020549050919050565b6101e881565b600b60009054906101000a900460ff166116da576040517f71cc92d400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6706f05b59d3b20000341461171b576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561179f576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118023360016121c7565b565b666a94d74f430000816118179190614a62565b341461184f576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461189c9190614c51565b90506118af6118aa336127b3565b6127dc565b811115611c16576000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611909611904336127b3565b6127dc565b61191a61191533612cec565b6127dc565b6119249190614c51565b61192e9190614bbd565b905080821115611987578161194a611945336127b3565b6127dc565b6040517f6dcdb11f00000000000000000000000000000000000000000000000000000000815260040161197e929190614c85565b60405180910390fd5b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119da6119d5336127b3565b6127dc565b6119e49190614bbd565b846119ef9190614bbd565b90506000611a07600a83612d1590919063ffffffff16565b905080611a153360006107d8565b10611a4757611a26336000836122e1565b611a4233600a8360405180602001604052806000815250612527565b611c12565b6000600267ffffffffffffffff811115611a6457611a63613e0d565b5b604051908082528060200260200182016040528015611a925781602001602082028036833780820191505090505b509050600081600081518110611aab57611aaa6149bc565b5b602002602001018181525050600181600181518110611acd57611acc6149bc565b5b6020026020010181815250506000600267ffffffffffffffff811115611af657611af5613e0d565b5b604051908082528060200260200182016040528015611b245781602001602082028036833780820191505090505b509050611b323360006107d8565b81600081518110611b4657611b456149bc565b5b60200260200101818152505080600081518110611b6657611b656149bc565b5b602002602001015183611b799190614bbd565b81600181518110611b8d57611b8c6149bc565b5b602002602001018181525050611ba43383836127f2565b600a82600081518110611bba57611bb96149bc565b5b602002602001018181510191508181525050600a82600181518110611be257611be16149bc565b5b602002602001018181510191508181525050611c0f33838360405180602001604052806000815250612ac0565b50505b5050505b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611c763360028460405180602001604052806000815250612527565b5050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b60009054906101000a900460ff1681565b600a831480611d305750600b83145b15611d67576040517f83c6534700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d748585858585612d52565b5050505050565b611d83611f2b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de990614d20565b60405180910390fd5b611dfb816126d7565b50565b60096020528060005260406000206000915054906101000a900460ff1681565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611f1457507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611f245750611f2382612df3565b5b9050919050565b611f33612e5d565b73ffffffffffffffffffffffffffffffffffffffff16611f51611172565b73ffffffffffffffffffffffffffffffffffffffff1614611fa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9e90614d8c565b60405180910390fd5b565b8060029081611fb89190614fb8565b5050565b606060028054611fcb90614ddb565b80601f0160208091040260200160405190810160405280929190818152602001828054611ff790614ddb565b80156120445780601f1061201957610100808354040283529160200191612044565b820191906000526020600020905b81548152906001019060200180831161202757829003601f168201915b50505050509050919050565b606060008203612097576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121ab565b600082905060005b600082146120c95780806120b290614a1a565b915050600a826120c29190614c20565b915061209f565b60008167ffffffffffffffff8111156120e5576120e4613e0d565b5b6040519080825280601f01601f1916602001820160405280156121175781602001600182028036833780820191505090505b5090505b600085146121a4576001826121309190614bbd565b9150600a8561213f919061508a565b603061214b9190614c51565b60f81b818381518110612161576121606149bc565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561219d9190614c20565b945061211b565b8093505050505b919050565b6000826121bd8584612e65565b1490509392505050565b6101e8816007546121d89190614c51565b1115612210576040517f22bbb43c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000828254019250508190555061223c8260008360405180602001604052806000815250612527565b5050565b612248612e5d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061228e575061228d85612288612e5d565b611c7a565b5b6122cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c49061512d565b60405180910390fd5b6122da8585858585612ebb565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612350576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612347906151bf565b60405180910390fd5b600061235a612e5d565b90506000612367846131dc565b90506000612374846131dc565b905061239483876000858560405180602001604052806000815250613256565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508481101561242b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242290615251565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516124f8929190614c85565b60405180910390a461251e84886000868660405180602001604052806000815250613426565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258d906152e3565b60405180910390fd5b60006125a0612e5d565b905060006125ad856131dc565b905060006125ba856131dc565b90506125cb83600089858589613256565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461262a9190614c51565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516126a8929190614c85565b60405180910390a46126bf83600089858589613426565b6126ce8360008989898961342e565b50505050505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6127af6127a8612e5d565b8383613605565b5050565b60006127c082600b6107d8565b6127cb83600a6107d8565b6127d59190614c51565b9050919050565b6000600a826127eb9190614a62565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612861576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612858906151bf565b60405180910390fd5b80518251146128a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289c90615375565b60405180910390fd5b60006128af612e5d565b90506128cf81856000868660405180602001604052806000815250613256565b60005b8351811015612a1c5760008482815181106128f0576128ef6149bc565b5b60200260200101519050600084838151811061290f5761290e6149bc565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156129b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a790615251565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080612a1490614a1a565b9150506128d2565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612a94929190615395565b60405180910390a4612aba81856000868660405180602001604052806000815250613426565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612b2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b26906152e3565b60405180910390fd5b8151835114612b73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6a90615375565b60405180910390fd5b6000612b7d612e5d565b9050612b8e81600087878787613256565b60005b8451811015612c4757838181518110612bad57612bac6149bc565b5b6020026020010151600080878481518110612bcb57612bca6149bc565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c2d9190614c51565b925050819055508080612c3f90614a1a565b915050612b91565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612cbf929190615395565b60405180910390a4612cd681600087878787613426565b612ce581600087878787613771565b5050505050565b6000612cf98260016107d8565b612d048360006107d8565b612d0e9190614c51565b9050919050565b6000808314612d4757600182600185612d2e9190614bbd565b612d389190614c20565b612d429190614c51565b612d4a565b60005b905092915050565b612d5a612e5d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480612da05750612d9f85612d9a612e5d565b611c7a565b5b612ddf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dd69061512d565b60405180910390fd5b612dec8585858585613948565b5050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008082905060005b8451811015612eb057612e9b82868381518110612e8e57612e8d6149bc565b5b6020026020010151613be3565b91508080612ea890614a1a565b915050612e6e565b508091505092915050565b8151835114612eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef690615375565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f659061543e565b60405180910390fd5b6000612f78612e5d565b9050612f88818787878787613256565b60005b8451811015613139576000858281518110612fa957612fa86149bc565b5b602002602001015190506000858381518110612fc857612fc76149bc565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015613069576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613060906154d0565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461311e9190614c51565b925050819055505050508061313290614a1a565b9050612f8b565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516131b0929190615395565b60405180910390a46131c6818787878787613426565b6131d4818787878787613771565b505050505050565b60606000600167ffffffffffffffff8111156131fb576131fa613e0d565b5b6040519080825280602002602001820160405280156132295781602001602082028036833780820191505090505b5090508281600081518110613241576132406149bc565b5b60200260200101818152505080915050919050565b613264868686868686611e1e565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036133155760005b8351811015613313578281815181106132b7576132b66149bc565b5b6020026020010151600360008684815181106132d6576132d56149bc565b5b6020026020010151815260200190815260200160002060008282546132fb9190614c51565b925050819055508061330c90614a1a565b905061329b565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361341e5760005b835181101561341c57600084828151811061336a576133696149bc565b5b602002602001015190506000848381518110613389576133886149bc565b5b60200260200101519050600060036000848152602001908152602001600020549050818110156133ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133e590615562565b60405180910390fd5b81810360036000858152602001908152602001600020819055505050508061341590614a1a565b905061334c565b505b505050505050565b505050505050565b61344d8473ffffffffffffffffffffffffffffffffffffffff16611e26565b156135fd578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016134939594939291906155d7565b6020604051808303816000875af19250505080156134cf57506040513d601f19601f820116820180604052508101906134cc9190615646565b60015b613574576134db615680565b806308c379a00361353757506134ef6156a2565b806134fa5750613539565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161352e9190614000565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161356b906157a4565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146135fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135f290615836565b60405180910390fd5b505b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613673576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161366a906158c8565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516137649190613dd7565b60405180910390a3505050565b6137908473ffffffffffffffffffffffffffffffffffffffff16611e26565b15613940578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016137d69594939291906158e8565b6020604051808303816000875af192505050801561381257506040513d601f19601f8201168201806040525081019061380f9190615646565b60015b6138b75761381e615680565b806308c379a00361387a57506138326156a2565b8061383d575061387c565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138719190614000565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138ae906157a4565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461393e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161393590615836565b60405180910390fd5b505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036139b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139ae9061543e565b60405180910390fd5b60006139c1612e5d565b905060006139ce856131dc565b905060006139db856131dc565b90506139eb838989858589613256565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015613a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a79906154d0565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613b379190614c51565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051613bb4929190614c85565b60405180910390a4613bca848a8a86868a613426565b613bd8848a8a8a8a8a61342e565b505050505050505050565b6000818310613bfb57613bf68284613c0e565b613c06565b613c058383613c0e565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c6482613c39565b9050919050565b613c7481613c59565b8114613c7f57600080fd5b50565b600081359050613c9181613c6b565b92915050565b6000819050919050565b613caa81613c97565b8114613cb557600080fd5b50565b600081359050613cc781613ca1565b92915050565b60008060408385031215613ce457613ce3613c2f565b5b6000613cf285828601613c82565b9250506020613d0385828601613cb8565b9150509250929050565b613d1681613c97565b82525050565b6000602082019050613d316000830184613d0d565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d6c81613d37565b8114613d7757600080fd5b50565b600081359050613d8981613d63565b92915050565b600060208284031215613da557613da4613c2f565b5b6000613db384828501613d7a565b91505092915050565b60008115159050919050565b613dd181613dbc565b82525050565b6000602082019050613dec6000830184613dc8565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613e4582613dfc565b810181811067ffffffffffffffff82111715613e6457613e63613e0d565b5b80604052505050565b6000613e77613c25565b9050613e838282613e3c565b919050565b600067ffffffffffffffff821115613ea357613ea2613e0d565b5b613eac82613dfc565b9050602081019050919050565b82818337600083830152505050565b6000613edb613ed684613e88565b613e6d565b905082815260208101848484011115613ef757613ef6613df7565b5b613f02848285613eb9565b509392505050565b600082601f830112613f1f57613f1e613df2565b5b8135613f2f848260208601613ec8565b91505092915050565b600060208284031215613f4e57613f4d613c2f565b5b600082013567ffffffffffffffff811115613f6c57613f6b613c34565b5b613f7884828501613f0a565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613fbb578082015181840152602081019050613fa0565b60008484015250505050565b6000613fd282613f81565b613fdc8185613f8c565b9350613fec818560208601613f9d565b613ff581613dfc565b840191505092915050565b6000602082019050818103600083015261401a8184613fc7565b905092915050565b60006020828403121561403857614037613c2f565b5b600061404684828501613c82565b91505092915050565b60006020828403121561406557614064613c2f565b5b600061407384828501613cb8565b91505092915050565b600080fd5b600080fd5b60008083601f84011261409c5761409b613df2565b5b8235905067ffffffffffffffff8111156140b9576140b861407c565b5b6020830191508360208202830111156140d5576140d4614081565b5b9250929050565b600080602083850312156140f3576140f2613c2f565b5b600083013567ffffffffffffffff81111561411157614110613c34565b5b61411d85828601614086565b92509250509250929050565b600067ffffffffffffffff82111561414457614143613e0d565b5b602082029050602081019050919050565b600061416861416384614129565b613e6d565b9050808382526020820190506020840283018581111561418b5761418a614081565b5b835b818110156141b457806141a08882613cb8565b84526020840193505060208101905061418d565b5050509392505050565b600082601f8301126141d3576141d2613df2565b5b81356141e3848260208601614155565b91505092915050565b600067ffffffffffffffff82111561420757614206613e0d565b5b61421082613dfc565b9050602081019050919050565b600061423061422b846141ec565b613e6d565b90508281526020810184848401111561424c5761424b613df7565b5b614257848285613eb9565b509392505050565b600082601f83011261427457614273613df2565b5b813561428484826020860161421d565b91505092915050565b600080600080600060a086880312156142a9576142a8613c2f565b5b60006142b788828901613c82565b95505060206142c888828901613c82565b945050604086013567ffffffffffffffff8111156142e9576142e8613c34565b5b6142f5888289016141be565b935050606086013567ffffffffffffffff81111561431657614315613c34565b5b614322888289016141be565b925050608086013567ffffffffffffffff81111561434357614342613c34565b5b61434f8882890161425f565b9150509295509295909350565b6000819050919050565b61436f8161435c565b82525050565b600060208201905061438a6000830184614366565b92915050565b600067ffffffffffffffff8211156143ab576143aa613e0d565b5b602082029050602081019050919050565b60006143cf6143ca84614390565b613e6d565b905080838252602082019050602084028301858111156143f2576143f1614081565b5b835b8181101561441b57806144078882613c82565b8452602084019350506020810190506143f4565b5050509392505050565b600082601f83011261443a57614439613df2565b5b813561444a8482602086016143bc565b91505092915050565b6000806040838503121561446a57614469613c2f565b5b600083013567ffffffffffffffff81111561448857614487613c34565b5b61449485828601614425565b925050602083013567ffffffffffffffff8111156144b5576144b4613c34565b5b6144c1858286016141be565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61450081613c97565b82525050565b600061451283836144f7565b60208301905092915050565b6000602082019050919050565b6000614536826144cb565b61454081856144d6565b935061454b836144e7565b8060005b8381101561457c5781516145638882614506565b975061456e8361451e565b92505060018101905061454f565b5085935050505092915050565b600060208201905081810360008301526145a3818461452b565b905092915050565b6145b48161435c565b81146145bf57600080fd5b50565b6000813590506145d1816145ab565b92915050565b6000602082840312156145ed576145ec613c2f565b5b60006145fb848285016145c2565b91505092915050565b61460d81613c59565b82525050565b60006020820190506146286000830184614604565b92915050565b61463781613dbc565b811461464257600080fd5b50565b6000813590506146548161462e565b92915050565b6000806040838503121561467157614670613c2f565b5b600061467f85828601613c82565b925050602061469085828601614645565b9150509250929050565b600080604083850312156146b1576146b0613c2f565b5b60006146bf85828601613c82565b92505060206146d085828601613c82565b9150509250929050565b600080600080600060a086880312156146f6576146f5613c2f565b5b600061470488828901613c82565b955050602061471588828901613c82565b945050604061472688828901613cb8565b935050606061473788828901613cb8565b925050608086013567ffffffffffffffff81111561475857614757613c34565b5b6147648882890161425f565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006147cd602a83613f8c565b91506147d882614771565b604082019050919050565b600060208201905081810360008301526147fc816147c0565b9050919050565b600081905092915050565b600061481982613f81565b6148238185614803565b9350614833818560208601613f9d565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614875600583614803565b91506148808261483f565b600582019050919050565b6000614897828561480e565b91506148a3828461480e565b91506148ae82614868565b91508190509392505050565b60008160601b9050919050565b60006148d2826148ba565b9050919050565b60006148e4826148c7565b9050919050565b6148fc6148f782613c59565b6148d9565b82525050565b600061490e82846148eb565b60148201915081905092915050565b600082825260208201905092915050565b600080fd5b82818337505050565b6000614948838561491d565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561497b5761497a61492e565b5b60208302925061498c838584614933565b82840190509392505050565b600060208201905081810360008301526149b381848661493c565b90509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614a2582613c97565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a5757614a566149eb565b5b600182019050919050565b6000614a6d82613c97565b9150614a7883613c97565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ab157614ab06149eb565b5b828202905092915050565b6000604082019050614ad16000830185614604565b614ade6020830184614604565b9392505050565b600081905092915050565b50565b6000614b00600083614ae5565b9150614b0b82614af0565b600082019050919050565b6000614b2182614af3565b9150819050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614b87602983613f8c565b9150614b9282614b2b565b604082019050919050565b60006020820190508181036000830152614bb681614b7a565b9050919050565b6000614bc882613c97565b9150614bd383613c97565b9250828203905081811115614beb57614bea6149eb565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614c2b82613c97565b9150614c3683613c97565b925082614c4657614c45614bf1565b5b828204905092915050565b6000614c5c82613c97565b9150614c6783613c97565b9250828201905080821115614c7f57614c7e6149eb565b5b92915050565b6000604082019050614c9a6000830185613d0d565b614ca76020830184613d0d565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614d0a602683613f8c565b9150614d1582614cae565b604082019050919050565b60006020820190508181036000830152614d3981614cfd565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d76602083613f8c565b9150614d8182614d40565b602082019050919050565b60006020820190508181036000830152614da581614d69565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614df357607f821691505b602082108103614e0657614e05614dac565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614e6e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614e31565b614e788683614e31565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614eb5614eb0614eab84613c97565b614e90565b613c97565b9050919050565b6000819050919050565b614ecf83614e9a565b614ee3614edb82614ebc565b848454614e3e565b825550505050565b600090565b614ef8614eeb565b614f03818484614ec6565b505050565b5b81811015614f2757614f1c600082614ef0565b600181019050614f09565b5050565b601f821115614f6c57614f3d81614e0c565b614f4684614e21565b81016020851015614f55578190505b614f69614f6185614e21565b830182614f08565b50505b505050565b600082821c905092915050565b6000614f8f60001984600802614f71565b1980831691505092915050565b6000614fa88383614f7e565b9150826002028217905092915050565b614fc182613f81565b67ffffffffffffffff811115614fda57614fd9613e0d565b5b614fe48254614ddb565b614fef828285614f2b565b600060209050601f8311600181146150225760008415615010578287015190505b61501a8582614f9c565b865550615082565b601f19841661503086614e0c565b60005b8281101561505857848901518255600182019150602085019450602081019050615033565b868310156150755784890151615071601f891682614f7e565b8355505b6001600288020188555050505b505050505050565b600061509582613c97565b91506150a083613c97565b9250826150b0576150af614bf1565b5b828206905092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b6000615117602f83613f8c565b9150615122826150bb565b604082019050919050565b600060208201905081810360008301526151468161510a565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006151a9602383613f8c565b91506151b48261514d565b604082019050919050565b600060208201905081810360008301526151d88161519c565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b600061523b602483613f8c565b9150615246826151df565b604082019050919050565b6000602082019050818103600083015261526a8161522e565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006152cd602183613f8c565b91506152d882615271565b604082019050919050565b600060208201905081810360008301526152fc816152c0565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061535f602883613f8c565b915061536a82615303565b604082019050919050565b6000602082019050818103600083015261538e81615352565b9050919050565b600060408201905081810360008301526153af818561452b565b905081810360208301526153c3818461452b565b90509392505050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615428602583613f8c565b9150615433826153cc565b604082019050919050565b600060208201905081810360008301526154578161541b565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006154ba602a83613f8c565b91506154c58261545e565b604082019050919050565b600060208201905081810360008301526154e9816154ad565b9050919050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b600061554c602883613f8c565b9150615557826154f0565b604082019050919050565b6000602082019050818103600083015261557b8161553f565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006155a982615582565b6155b3818561558d565b93506155c3818560208601613f9d565b6155cc81613dfc565b840191505092915050565b600060a0820190506155ec6000830188614604565b6155f96020830187614604565b6156066040830186613d0d565b6156136060830185613d0d565b8181036080830152615625818461559e565b90509695505050505050565b60008151905061564081613d63565b92915050565b60006020828403121561565c5761565b613c2f565b5b600061566a84828501615631565b91505092915050565b60008160e01c9050919050565b600060033d111561569f5760046000803e61569c600051615673565b90505b90565b600060443d1061572f576156b4613c25565b60043d036004823e80513d602482011167ffffffffffffffff821117156156dc57505061572f565b808201805167ffffffffffffffff8111156156fa575050505061572f565b80602083010160043d03850181111561571757505050505061572f565b61572682602001850186613e3c565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600061578e603483613f8c565b915061579982615732565b604082019050919050565b600060208201905081810360008301526157bd81615781565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615820602883613f8c565b915061582b826157c4565b604082019050919050565b6000602082019050818103600083015261584f81615813565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006158b2602983613f8c565b91506158bd82615856565b604082019050919050565b600060208201905081810360008301526158e1816158a5565b9050919050565b600060a0820190506158fd6000830188614604565b61590a6020830187614604565b818103604083015261591c818661452b565b90508181036060830152615930818561452b565b90508181036080830152615944818461559e565b9050969550505050505056fea2646970667358221220a962600681fa849139462a4ca464a3553f641b81af6d573df0adabc1c9e995d064736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004061dcecd46e407fc1df80e8d0ac568ed93dae35c0a674227c85ea55fac72104500000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d574c4845787938724e344554427a383938696f426179664e684a4c5941596e4e3555574555596235314332502f00000000000000000000
-----Decoded View---------------
Arg [0] : _uri (string): ipfs://QmWLHExy8rN4ETBz898ioBayfNhJLYAYnN5UWEUYb51C2P/
Arg [1] : _root (bytes32): 0x61dcecd46e407fc1df80e8d0ac568ed93dae35c0a674227c85ea55fac7210450
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 61dcecd46e407fc1df80e8d0ac568ed93dae35c0a674227c85ea55fac7210450
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [3] : 697066733a2f2f516d574c4845787938724e344554427a383938696f42617966
Arg [4] : 4e684a4c5941596e4e3555574555596235314332502f00000000000000000000
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.