ERC-721
Overview
Max Total Supply
222 WVS
Holders
185
Total Transfers
-
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 Source Code Verified (Exact Match)
Contract Name:
Waves
Compiler Version
v0.8.19+commit.7dd6d404
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.4; import "./utils/Base64.sol"; import "./security/Pausable.sol"; import "./access/Ownable.sol"; import "./token/ERC721A/ERC721A.sol"; import "./CanvasGenerator.sol"; import "./ImageGenerator.sol"; import "./utils/ToString.sol"; /* .-``'. Gen Waves .'''-. .` .` by GyozaLabs '. '. _.-' '._ _.' '-._ */ /** * @title GenWaves contract * @dev Extends ERC721A implementation (https://www.erc721a.org/) */ contract Waves is ERC721A, Ownable, Pausable { uint256 public PRICE = 0.04269 ether; uint256 public PURCHASE_LIMIT = 1; uint256 public MAX_SUPPLY = 222; uint16[9] rarities; string[9][4] traitValues; mapping(uint256 => uint256) private tokenSeed; mapping(address => uint256) public whitelist; bool publicSale = false; error OriginIsNotEOA(); error NotOnWhitelist(); error ExceedsPurchaseLimit(); error SoldOut(); error WrongAmount(); error TokenNotFound(); constructor() ERC721A("Gen Waves", "WVS") { //Traits rarities (normal distribution) rarities = [ 0, 75, 125, 175, 225, 175, 125, 75, 25 ]; //Grid size traitValues[0] = ['0', '18', '20', '22', '24', '26', '28', '30', '32']; //Ellipse size traitValues[1] = ['0', '5', '7', '9', '11', '13', '15', '17', '19']; //Wave speed traitValues[2] = ['0.00', '0.005', '0.007', '0.008' , '0.009', '0.01', '0.011', '0.012', '0.014']; //Variation traitValues[3] = ['0', '180', '100', '69' , '45', '45', '69', '100', '360']; } /** * @dev Sets the 'paused' state to true */ function pause() external onlyOwner { _pause(); } /** * @dev Sets the 'paused' state to false */ function unpause() external onlyOwner { _unpause(); } /** * @dev Sets the 'publicSale' state to true */ function openPublicSale() external onlyOwner { publicSale = true; } /** * @dev Fills the whitelist array with the addresses passed as arguments */ function fillWhiteList(address[] calldata _users) external onlyOwner { for(uint256 i = 0; i < _users.length; i++){ address user = _users[i]; whitelist[user] = PURCHASE_LIMIT; } } /** * @dev Mints `numberOfTokens` new tokens */ function mint() external payable whenNotPaused { uint256 supply = _totalMinted(); if (tx.origin != msg.sender) revert OriginIsNotEOA(); if (!publicSale) { if (whitelist[msg.sender] < PURCHASE_LIMIT) revert NotOnWhitelist(); } if (supply + PURCHASE_LIMIT > MAX_SUPPLY) revert SoldOut(); if (msg.value < PRICE * PURCHASE_LIMIT) revert WrongAmount(); tokenSeed[supply] = uint256( keccak256(abi.encodePacked(block.timestamp, msg.sender, supply)) ); _safeMint(msg.sender, PURCHASE_LIMIT); if (whitelist[msg.sender] > 0) whitelist[msg.sender] -= PURCHASE_LIMIT; } /** * @dev Returns the base64-encoded metadata for the given tokenId */ function tokenURI(uint256 tokenId) public view virtual override returns(string memory) { if(!_exists(tokenId)) revert TokenNotFound(); (string memory image, string memory svg, string memory properties) = getTraits(tokenSeed[tokenId]); return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( abi.encodePacked( '{"name":"Gen Wave #', ToString.toString(tokenId), '", "description": "Gen Waves is a fully on-chain & interactive piece of art that offers a unique and immersive experience for collectors.", "traits": [', properties, '], "image": "data:image/svg+xml;base64,', image, '", "animation_url":"data:text/html;base64,', svg, '"}' ) ) ) ); } /** * @dev Generates a random combination of traits and its corresponding image, animation and metadata */ function getTraits(uint256 seed) private view returns(string memory image, string memory svg, string memory properties) { uint16[5] memory randomInputs = expand(seed, 5); uint16[4] memory traits; //Base color string memory baseColor = ToString.toString(randomInputs[0] % 360); //Grid width traits[0] = getRandomIndex(rarities, randomInputs[1]); //Ellipse size traits[1] = getRandomIndex(rarities, randomInputs[2]); //Wave speed traits[2] = getRandomIndex(rarities, randomInputs[3]); //Color variation traits[3] = getRandomIndex(rarities, randomInputs[4]); //Render image string memory _image = ImageGenerator.createWave(baseColor, traitValues[1][traits[1]],traitValues[3][traits[3]]); image = Base64.encode(abi.encodePacked(_image)); //Render animation string memory _svg = CanvasGenerator.generateCustomCanvas(baseColor, traitValues[0][traits[0]],traitValues[1][traits[1]],traitValues[2][traits[2]],traitValues[3][traits[3]]); svg = Base64.encode(abi.encodePacked(_svg)); //Pack properties (put 1 after the last property for JSON to be formed correctly) bytes memory _properties = abi.encodePacked( packMetaData("Base Color", baseColor, 0), packMetaData("Grid Size", _getTrait(0, traits[0]), 0), packMetaData("Ellipse Size", _getTrait(1, traits[1]), 0), packMetaData("Wave Speed", _getTrait(2, traits[2]), 0), packMetaData("Color Variation", _getTrait(3, traits[3]), 1) ); properties = string(abi.encodePacked(_properties)); return (image, svg, properties); } /** * @dev Generates a random number for indexing an array position, credits to Anonymice */ function getRandomIndex(uint16[9] memory attributeRarities, uint256 randomNumber) private pure returns (uint16 index) { //1000 is the sum of the rarities uint16 random10k = uint16(randomNumber % 1000); uint16 lowerBound; for (uint16 i = 1; i <= 9; i++) { uint16 percentage = attributeRarities[i]; if (random10k < percentage + lowerBound && random10k >= lowerBound) { return i; } lowerBound = lowerBound + percentage; } revert(); } /** * @dev Generates an array of random numbers based on a random number */ function expand(uint256 _randomNumber, uint256 n) private pure returns(uint16[5] memory expandedValues) { for (uint256 i = 0; i < n; i++) { expandedValues[i] = bytes2uint(keccak256(abi.encode(_randomNumber, i))); } return expandedValues; } /** * @dev Converts bytes32 to uint16 */ function bytes2uint(bytes32 _a) private pure returns (uint16) { return uint16(uint256(_a)); } /** * @dev Gets the attribute name for the properties of the token by its index */ function _getTrait(uint256 _trait, uint256 index) private view returns (string memory) { return traitValues[_trait][index]; } /** * @dev Bundle metadata so it follows the standard */ function packMetaData(string memory name, string memory svg, uint256 last) private pure returns (bytes memory) { string memory comma = ","; if (last > 0) comma = ""; return abi.encodePacked( '{"trait_type": "', name, '", "value": "', svg, '"}', comma ); } /** * @dev Transfers all the contract balance to the owner address */ function withdraw() public payable onlyOwner { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; library ToString { // https://github.com/Vectorized/solady function toString(uint256 value) internal pure returns (string memory str) { /// @solidity memory-safe-assembly assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, add(str, 0x20)) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str let w := not(0) // Tsk. // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. for { let temp := value } 1 {} { str := add(str, w) // `sub(str, 1)`. // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (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 (last updated v4.7.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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.4; import "./utils/Base64.sol"; import "./utils/ToString.sol"; library ImageGenerator { /** * @dev Generates the 10x10 grid of circles that compose the wave */ function generateGrid(string memory ellipseSize) private pure returns (bytes memory){ bytes memory row; uint256 cx = 20; uint256 cy = 0; uint256 from = 20; uint256 begin = 0; uint256 beginHelper = 0; uint256 animationDelay = 0; for(uint256 i; i < 10; i++) { for(uint256 j; j < 10; j++) { row = abi.encodePacked( row, '<circle cx="', ToString.toString(cx), '" cy="', ToString.toString(cy), '" r="', ellipseSize, '" class="color-animation" style="animation-delay: ', ToString.toString(animationDelay), 'ms"> <animateTransform attributeName="transform" type="rotate" from="0 ', ToString.toString(cx), ' ', ToString.toString(from), '" to="360 ', ToString.toString(cx), ' ', ToString.toString(from), '" begin="', ToString.toString(begin), 'ms" dur="3000ms" repeatCount="indefinite" /> </circle>' ); cy += 40; from += 40; begin += 300; animationDelay += 300; } cx += 40; cy = 0; from = 20; beginHelper += 300; begin = beginHelper; animationDelay = 300 + 300*(i+1); } return row; } /** * @dev Generates the SVG used as image (preview) of the wave */ function createWave(string memory waveColor, string memory ellipseSize, string memory colorVariation) internal pure returns (string memory) { return string( abi.encodePacked( '<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" style="background-color: black" > <style> :root { --variation: ', colorVariation, 'deg;--color:', waveColor, 'deg; } .color-animation { animation-name: color-change; animation-duration: 1.5s; animation-direction: alternate; animation-iteration-count:infinite; animation-fill-mode: forwards; } @keyframes color-change { 0% { fill: hsl(calc(var(--color) - var(--variation)*1), 100%, 50%); } 20% { fill: hsl(calc(var(--color) - var(--variation)*0.8), 100%, 50%); } 40% { fill: hsl(calc(var(--color) - var(--variation)*0.6), 100%, 50%); } 60% { fill: hsl(calc(var(--color) - var(--variation)*0.4), 100%, 50%); } 80% { fill: hsl(calc(var(--color) - var(--variation)*0.2), 100%, 50%); } 100% { fill: hsl(calc(var(--color) - var(--variation)*0), 100%, 50%); } } </style> <g id="grid" fill="hsl(var(--color), 100%, 50%)">', generateGrid(ellipseSize), '</g></svg>' ) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./utils/Base64.sol"; import "./utils/ToString.sol"; library CanvasGenerator { string constant start = '<html><head> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.1.9/p5.js" ></script> <style> html, body { overflow: hidden; margin: 0; padding: 0; background:white; } </style> </head> <body> <main id="textOutput-content"><canvas style="width: 0px; height: 0px;"></canvas></main> <script type="text/javascript">const gridSize = '; string constant ellipse = ',ellipseSize = '; string constant step = ',tStep ='; string constant hueVariation = ',hueVariation ='; string constant base = ',baseHue ='; string constant end = ',saturation = 100; let t = 0; function setup() { createCanvas(windowWidth+100, windowHeight+100); colorMode(HSB, 360, 100, 100, 100); noStroke(); } function draw() { background(0, 0, 10, 8); for (let x = 0; x <= width; x += gridSize) { for (let y = 0; y <= height; y += gridSize) { const angleOffsetX = map(mouseX, 0, width, -2 * PI, 2 * PI, true), angleOffsetY = map(mouseY, 0, height, -2 * PI, 2 * PI, true), angleOffsetXY = map((mouseX + mouseY) / 2, 0, (width + height) / 2, -2 * PI, 2 * PI, true), angle1 = angleOffsetX * (x / width), angle2 = angleOffsetY * (y / height), angle3 = angleOffsetXY * (sqrt(sq(x) + sq(y)) / sqrt(sq(width) + sq(height))), myX = x + 20 * cos(2 * PI * t + angle1 + angle2 + angle3), myY = y + 20 * sin(2 * PI * t + angle1 + angle2 + angle3), distanceToNeighbor = dist(myX, myY, x + gridSize, y), provisionalHue = baseHue - hueVariation, hueValue = (map(distanceToNeighbor, 8, 50, provisionalHue, baseHue) % 360 + 360) % 360; fill(hueValue, saturation, 100); ellipse(myX, myY, ellipseSize); } } t += tStep; } function windowResized() { resizeCanvas(windowWidth, windowHeight); } new p5();</script></body></html>'; /** * @dev Generates the HTML used as animation of the wave, credits to Aatish Bhatia for the inspiration */ function generateCustomCanvas(string memory waveColor, string memory gridSize, string memory ellipseSize, string memory animationSpeed, string memory variation) internal pure returns (string memory) { return string( abi.encodePacked( start, gridSize, ellipse, ellipseSize, step, animationSpeed, hueVariation, variation, base, waveColor, end ) ); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "paris", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ExceedsPurchaseLimit","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotOnWhitelist","type":"error"},{"inputs":[],"name":"OriginIsNotEOA","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"inputs":[],"name":"TokenNotFound","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"WrongAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PURCHASE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"fillWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526697aa542d7620006009556001600a5560de600b556000603360006101000a81548160ff0219169083151502179055503480156200004157600080fd5b506040518060400160405280600981526020017f47656e20576176657300000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f57565300000000000000000000000000000000000000000000000000000000008152508160029081620000bf919062000f9a565b508060039081620000d1919062000f9a565b50620000e262000aca60201b60201c565b60008190555050506200010a620000fe62000acf60201b60201c565b62000ad760201b60201c565b6000600860146101000a81548160ff021916908315150217905550604051806101200160405280600060ff168152602001604b60ff168152602001607d60ff16815260200160af60ff16815260200160e160ff16815260200160af60ff168152602001607d60ff168152602001604b60ff168152602001601960ff16815250600c9060096200019b92919062000b9d565b506040518061012001604052806040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f313800000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f323000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f323200000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f323400000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f323600000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f323800000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f333000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f3332000000000000000000000000000000000000000000000000000000000000815250815250600d600060048110620003d157620003d062001081565b5b60090201906009620003e592919062000c40565b506040518061012001604052806040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f350000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f370000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f390000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f313100000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f313300000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f313500000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f313700000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f3139000000000000000000000000000000000000000000000000000000000000815250815250600d6001600481106200061b576200061a62001081565b5b600902019060096200062f92919062000c40565b506040518061012001604052806040518060400160405280600481526020017f302e30300000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f302e30303500000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f302e30303700000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f302e30303800000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f302e30303900000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f302e30310000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f302e30313100000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f302e30313200000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f302e303134000000000000000000000000000000000000000000000000000000815250815250600d60026004811062000865576200086462001081565b5b600902019060096200087992919062000c40565b506040518061012001604052806040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f313830000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f313030000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f363900000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f343500000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f343500000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f363900000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f313030000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f3336300000000000000000000000000000000000000000000000000000000000815250815250600d60036004811062000aaf5762000aae62001081565b5b6009020190600962000ac392919062000c40565b50620010b0565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b826009600f0160109004810192821562000c2d5791602002820160005b8382111562000bfb57835183826101000a81548161ffff021916908360ff160217905550926020019260020160208160010104928301926001030262000bba565b801562000c2b5782816101000a81549061ffff021916905560020160208160010104928301926001030262000bfb565b505b50905062000c3c919062000c93565b5090565b826009810192821562000c80579160200282015b8281111562000c7f57825182908162000c6e919062000f9a565b509160200191906001019062000c54565b5b50905062000c8f919062000cb2565b5090565b5b8082111562000cae57600081600090555060010162000c94565b5090565b5b8082111562000cd6576000818162000ccc919062000cda565b5060010162000cb3565b5090565b50805462000ce89062000d89565b6000825580601f1062000cfc575062000d1d565b601f01602090049060005260206000209081019062000d1c919062000c93565b5b50565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000da257607f821691505b60208210810362000db85762000db762000d5a565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000e227fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000de3565b62000e2e868362000de3565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000e7b62000e7562000e6f8462000e46565b62000e50565b62000e46565b9050919050565b6000819050919050565b62000e978362000e5a565b62000eaf62000ea68262000e82565b84845462000df0565b825550505050565b600090565b62000ec662000eb7565b62000ed381848462000e8c565b505050565b5b8181101562000efb5762000eef60008262000ebc565b60018101905062000ed9565b5050565b601f82111562000f4a5762000f148162000dbe565b62000f1f8462000dd3565b8101602085101562000f2f578190505b62000f4762000f3e8562000dd3565b83018262000ed8565b50505b505050565b600082821c905092915050565b600062000f6f6000198460080262000f4f565b1980831691505092915050565b600062000f8a838362000f5c565b9150826002028217905092915050565b62000fa58262000d20565b67ffffffffffffffff81111562000fc15762000fc062000d2b565b5b62000fcd825462000d89565b62000fda82828562000eff565b600060209050601f83116001811462001012576000841562000ffd578287015190505b62001009858262000f7c565b86555062001079565b601f198416620010228662000dbe565b60005b828110156200104c5784890151825560018201915060208501945060208101905062001025565b868310156200106c578489015162001068601f89168262000f5c565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b61556380620010c06000396000f3fe6080604052600436106101b75760003560e01c8063715018a6116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd1461054c578063d75e611014610589578063e985e9c5146105b4578063f2fde38b146105f1576101b7565b8063a22cb465146104f0578063b585209b14610519578063b88d4fde14610530576101b7565b80638d859f3e116100c65780638d859f3e146104325780638da5cb5b1461045d57806395d89b41146104885780639b19251a146104b3576101b7565b8063715018a6146103db5780637d81ce9f146103f25780638456cb591461041b576101b7565b806332cb6b0c1161015957806342842e0e1161013357806342842e0e1461031a5780635c975abb146103365780636352211e1461036157806370a082311461039e576101b7565b806332cb6b0c146102ce5780633ccfd60b146102f95780633f4ba83a14610303576101b7565b8063095ea7b311610195578063095ea7b3146102615780631249c58b1461027d57806318160ddd1461028757806323b872dd146102b2576101b7565b806301ffc9a7146101bc57806306fdde03146101f9578063081812fc14610224575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de919061334d565b61061a565b6040516101f09190613395565b60405180910390f35b34801561020557600080fd5b5061020e6106ac565b60405161021b9190613440565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190613498565b61073e565b6040516102589190613506565b60405180910390f35b61027b6004803603810190610276919061354d565b6107bd565b005b610285610901565b005b34801561029357600080fd5b5061029c610b91565b6040516102a9919061359c565b60405180910390f35b6102cc60048036038101906102c791906135b7565b610ba8565b005b3480156102da57600080fd5b506102e3610eca565b6040516102f0919061359c565b60405180910390f35b610301610ed0565b005b34801561030f57600080fd5b50610318610fcc565b005b610334600480360381019061032f91906135b7565b611052565b005b34801561034257600080fd5b5061034b611072565b6040516103589190613395565b60405180910390f35b34801561036d57600080fd5b5061038860048036038101906103839190613498565b611089565b6040516103959190613506565b60405180910390f35b3480156103aa57600080fd5b506103c560048036038101906103c0919061360a565b61109b565b6040516103d2919061359c565b60405180910390f35b3480156103e757600080fd5b506103f0611153565b005b3480156103fe57600080fd5b506104196004803603810190610414919061369c565b6111db565b005b34801561042757600080fd5b506104306112f0565b005b34801561043e57600080fd5b50610447611376565b604051610454919061359c565b60405180910390f35b34801561046957600080fd5b5061047261137c565b60405161047f9190613506565b60405180910390f35b34801561049457600080fd5b5061049d6113a6565b6040516104aa9190613440565b60405180910390f35b3480156104bf57600080fd5b506104da60048036038101906104d5919061360a565b611438565b6040516104e7919061359c565b60405180910390f35b3480156104fc57600080fd5b5061051760048036038101906105129190613715565b611450565b005b34801561052557600080fd5b5061052e61155b565b005b61054a60048036038101906105459190613885565b6115f4565b005b34801561055857600080fd5b50610573600480360381019061056e9190613498565b611667565b6040516105809190613440565b60405180910390f35b34801561059557600080fd5b5061059e61172e565b6040516105ab919061359c565b60405180910390f35b3480156105c057600080fd5b506105db60048036038101906105d69190613908565b611734565b6040516105e89190613395565b60405180910390f35b3480156105fd57600080fd5b506106186004803603810190610613919061360a565b6117c8565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061067557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106a55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546106bb90613977565b80601f01602080910402602001604051908101604052809291908181526020018280546106e790613977565b80156107345780601f1061070957610100808354040283529160200191610734565b820191906000526020600020905b81548152906001019060200180831161071757829003601f168201915b5050505050905090565b6000610749826118bf565b61077f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107c882611089565b90508073ffffffffffffffffffffffffffffffffffffffff166107e961191e565b73ffffffffffffffffffffffffffffffffffffffff161461084c576108158161081061191e565b611734565b61084b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610909611926565b6000610913611970565b90503373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461097a576040517f8315cc2200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b603360009054906101000a900460ff16610a0a57600a54603260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610a09576040517f522fc3bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600b54600a5482610a1b91906139d7565b1115610a53576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54600954610a639190613a0b565b341015610a9c576040517f49986e7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b423382604051602001610ab193929190613ab6565b6040516020818303038152906040528051906020012060001c6031600083815260200190815260200160002081905550610aed33600a54611983565b6000603260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115610b8e57600a54603260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610b869190613af3565b925050819055505b50565b6000610b9b6119a1565b6001546000540303905090565b6000610bb3826119a6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c1a576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610c2684611a72565b91509150610c3c8187610c3761191e565b611a99565b610c8857610c5186610c4c61191e565b611734565b610c87576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610cee576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cfb8686866001611add565b8015610d0657600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610dd485610db0888887611ae3565b7c020000000000000000000000000000000000000000000000000000000017611b0b565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610e5a5760006001850190506000600460008381526020019081526020016000205403610e58576000548114610e57578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610ec28686866001611b36565b505050505050565b600b5481565b610ed8611b3c565b73ffffffffffffffffffffffffffffffffffffffff16610ef661137c565b73ffffffffffffffffffffffffffffffffffffffff1614610f4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4390613b73565b60405180910390fd5b6000610f5661137c565b73ffffffffffffffffffffffffffffffffffffffff1647604051610f7990613bc4565b60006040518083038185875af1925050503d8060008114610fb6576040519150601f19603f3d011682016040523d82523d6000602084013e610fbb565b606091505b5050905080610fc957600080fd5b50565b610fd4611b3c565b73ffffffffffffffffffffffffffffffffffffffff16610ff261137c565b73ffffffffffffffffffffffffffffffffffffffff1614611048576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103f90613b73565b60405180910390fd5b611050611b44565b565b61106d838383604051806020016040528060008152506115f4565b505050565b6000600860149054906101000a900460ff16905090565b6000611094826119a6565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611102576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61115b611b3c565b73ffffffffffffffffffffffffffffffffffffffff1661117961137c565b73ffffffffffffffffffffffffffffffffffffffff16146111cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c690613b73565b60405180910390fd5b6111d96000611ba7565b565b6111e3611b3c565b73ffffffffffffffffffffffffffffffffffffffff1661120161137c565b73ffffffffffffffffffffffffffffffffffffffff1614611257576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124e90613b73565b60405180910390fd5b60005b828290508110156112eb57600083838381811061127a57611279613bd9565b5b905060200201602081019061128f919061360a565b9050600a54603260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505080806112e390613c08565b91505061125a565b505050565b6112f8611b3c565b73ffffffffffffffffffffffffffffffffffffffff1661131661137c565b73ffffffffffffffffffffffffffffffffffffffff161461136c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136390613b73565b60405180910390fd5b611374611c6d565b565b60095481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546113b590613977565b80601f01602080910402602001604051908101604052809291908181526020018280546113e190613977565b801561142e5780601f106114035761010080835404028352916020019161142e565b820191906000526020600020905b81548152906001019060200180831161141157829003601f168201915b5050505050905090565b60326020528060005260406000206000915090505481565b806007600061145d61191e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661150a61191e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161154f9190613395565b60405180910390a35050565b611563611b3c565b73ffffffffffffffffffffffffffffffffffffffff1661158161137c565b73ffffffffffffffffffffffffffffffffffffffff16146115d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ce90613b73565b60405180910390fd5b6001603360006101000a81548160ff021916908315150217905550565b6115ff848484610ba8565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116615761162a84848484611cd0565b611660576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611672826118bf565b6116a8576040517fcbdb7b3000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060006116c96031600087815260200190815260200160002054611e20565b9250925092506117056116db866128c1565b8285856040516020016116f19493929190613eec565b604051602081830303815290604052612912565b6040516020016117159190613fad565b6040516020818303038152906040529350505050919050565b600a5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6117d0611b3c565b73ffffffffffffffffffffffffffffffffffffffff166117ee61137c565b73ffffffffffffffffffffffffffffffffffffffff1614611844576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183b90613b73565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036118b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118aa90614041565b60405180910390fd5b6118bc81611ba7565b50565b6000816118ca6119a1565b111580156118d9575060005482105b8015611917575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b61192e611072565b1561196e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611965906140ad565b60405180910390fd5b565b600061197a6119a1565b60005403905090565b61199d828260405180602001604052806000815250612a75565b5050565b600090565b600080829050806119b56119a1565b11611a3b57600054811015611a3a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611a38575b60008103611a2e576004600083600190039350838152602001908152602001600020549050611a04565b8092505050611a6d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611afa868684612b12565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b611b4c612b1b565b6000600860146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611b90611b3c565b604051611b9d9190613506565b60405180910390a1565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611c75611926565b6001600860146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611cb9611b3c565b604051611cc69190613506565b60405180910390a1565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611cf661191e565b8786866040518563ffffffff1660e01b8152600401611d189493929190614122565b6020604051808303816000875af1925050508015611d5457506040513d601f19601f82011682018060405250810190611d519190614183565b60015b611dcd573d8060008114611d84576040519150601f19603f3d011682016040523d82523d6000602084013e611d89565b606091505b506000815103611dc5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60608060606000611e32856005612b64565b9050611e3c61329d565b6000611e7061016884600060058110611e5857611e57613bd9565b5b6020020151611e6791906141ed565b61ffff166128c1565b9050611efd600c600980602002604051908101604052809291908260098015611ed6576020028201916000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411611e9d5790505b505050505084600160058110611eef57611eee613bd9565b5b602002015161ffff16612be8565b82600060048110611f1157611f10613bd9565b5b602002019061ffff16908161ffff1681525050611faf600c600980602002604051908101604052809291908260098015611f88576020028201916000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411611f4f5790505b505050505084600260058110611fa157611fa0613bd9565b5b602002015161ffff16612be8565b82600160048110611fc357611fc2613bd9565b5b602002019061ffff16908161ffff1681525050612061600c60098060200260405190810160405280929190826009801561203a576020028201916000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116120015790505b50505050508460036005811061205357612052613bd9565b5b602002015161ffff16612be8565b8260026004811061207557612074613bd9565b5b602002019061ffff16908161ffff1681525050612113600c6009806020026040519081016040528092919082600980156120ec576020028201916000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116120b35790505b50505050508460046005811061210557612104613bd9565b5b602002015161ffff16612be8565b8260036004811061212757612126613bd9565b5b602002019061ffff16908161ffff168152505060006122e782600d60016004811061215557612154613bd9565b5b600902018560016004811061216d5761216c613bd9565b5b602002015161ffff166009811061218757612186613bd9565b5b01805461219390613977565b80601f01602080910402602001604051908101604052809291908181526020018280546121bf90613977565b801561220c5780601f106121e15761010080835404028352916020019161220c565b820191906000526020600020905b8154815290600101906020018083116121ef57829003601f168201915b5050505050600d60036004811061222657612225613bd9565b5b600902018660036004811061223e5761223d613bd9565b5b602002015161ffff166009811061225857612257613bd9565b5b01805461226490613977565b80601f016020809104026020016040519081016040528092919081815260200182805461229090613977565b80156122dd5780601f106122b2576101008083540402835291602001916122dd565b820191906000526020600020905b8154815290600101906020018083116122c057829003601f168201915b5050505050612c97565b9050612311816040516020016122fd919061421e565b604051602081830303815290604052612912565b9650600061266283600d60006004811061232e5761232d613bd9565b5b600902018660006004811061234657612345613bd9565b5b602002015161ffff16600981106123605761235f613bd9565b5b01805461236c90613977565b80601f016020809104026020016040519081016040528092919081815260200182805461239890613977565b80156123e55780601f106123ba576101008083540402835291602001916123e5565b820191906000526020600020905b8154815290600101906020018083116123c857829003601f168201915b5050505050600d6001600481106123ff576123fe613bd9565b5b600902018760016004811061241757612416613bd9565b5b602002015161ffff166009811061243157612430613bd9565b5b01805461243d90613977565b80601f016020809104026020016040519081016040528092919081815260200182805461246990613977565b80156124b65780601f1061248b576101008083540402835291602001916124b6565b820191906000526020600020905b81548152906001019060200180831161249957829003601f168201915b5050505050600d6002600481106124d0576124cf613bd9565b5b60090201886002600481106124e8576124e7613bd9565b5b602002015161ffff166009811061250257612501613bd9565b5b01805461250e90613977565b80601f016020809104026020016040519081016040528092919081815260200182805461253a90613977565b80156125875780601f1061255c57610100808354040283529160200191612587565b820191906000526020600020905b81548152906001019060200180831161256a57829003601f168201915b5050505050600d6003600481106125a1576125a0613bd9565b5b60090201896003600481106125b9576125b8613bd9565b5b602002015161ffff16600981106125d3576125d2613bd9565b5b0180546125df90613977565b80601f016020809104026020016040519081016040528092919081815260200182805461260b90613977565b80156126585780601f1061262d57610100808354040283529160200191612658565b820191906000526020600020905b81548152906001019060200180831161263b57829003601f168201915b5050505050612cce565b905061268c81604051602001612678919061421e565b604051602081830303815290604052612912565b965060006126d16040518060400160405280600a81526020017f4261736520436f6c6f7200000000000000000000000000000000000000000000815250856000612e19565b6127386040518060400160405280600981526020017f477269642053697a65000000000000000000000000000000000000000000000081525061273160008960006004811061272357612722613bd9565b5b602002015161ffff16612e9f565b6000612e19565b61279f6040518060400160405280600c81526020017f456c6c697073652053697a65000000000000000000000000000000000000000081525061279860018a60016004811061278a57612789613bd9565b5b602002015161ffff16612e9f565b6000612e19565b6128066040518060400160405280600a81526020017f57617665205370656564000000000000000000000000000000000000000000008152506127ff60028b6002600481106127f1576127f0613bd9565b5b602002015161ffff16612e9f565b6000612e19565b61286d6040518060400160405280600f81526020017f436f6c6f7220566172696174696f6e000000000000000000000000000000000081525061286660038c60036004811061285857612857613bd9565b5b602002015161ffff16612e9f565b6001612e19565b604051602001612881959493929190614266565b6040516020818303038152906040529050806040516020016128a391906142b1565b60405160208183030381529060405296505050505050509193909250565b60606080604051019050602081016040526000815280600019835b6001156128fd578184019350600a81066030018453600a81049050806128dc575b50828203602084039350808452505050919050565b6060600082510361293457604051806020016040528060008152509050612a70565b6000604051806060016040528060408152602001615386604091399050600060036002855161296391906139d7565b61296d91906142c8565b60046129799190613a0b565b67ffffffffffffffff8111156129925761299161375a565b5b6040519080825280601f01601f1916602001820160405280156129c45781602001600182028036833780820191505090505b509050600182016020820185865187015b80821015612a30576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453600184019350506129d5565b5050600386510660018114612a4c5760028114612a5f57612a67565b603d6001830353603d6002830353612a67565b603d60018303535b50505080925050505b919050565b612a7f8383612f5d565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612b0d57600080549050600083820390505b612abf6000868380600101945086611cd0565b612af5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612aac578160005414612b0a57600080fd5b50505b505050565b60009392505050565b612b23611072565b612b62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5990614345565b60405180910390fd5b565b612b6c6132bf565b60005b82811015612be157612ba88482604051602001612b8d929190614365565b60405160208183030381529060405280519060200120613118565b828260058110612bbb57612bba613bd9565b5b602002019061ffff16908161ffff16815250508080612bd990613c08565b915050612b6f565b5092915050565b6000806103e883612bf9919061438e565b9050600080600190505b60098161ffff1611612c8c576000868261ffff1660098110612c2857612c27613bd9565b5b602002015190508281612c3b91906143bf565b61ffff168461ffff16108015612c5957508261ffff168461ffff1610155b15612c6a5781945050505050612c91565b8083612c7691906143bf565b9250508080612c84906143f5565b915050612c03565b600080fd5b92915050565b60608184612ca485613125565b604051602001612cb6939291906148ef565b60405160208183030381529060405290509392505050565b6060604051806101a0016040528061016881526020016153c66101689139856040518060400160405280600f81526020017f2c656c6c6970736553697a65203d200000000000000000000000000000000000815250866040518060400160405280600881526020017f2c7453746570203d000000000000000000000000000000000000000000000000815250876040518060400160405280600f81526020017f2c687565566172696174696f6e203d0000000000000000000000000000000000815250886040518060400160405280600a81526020017f2c62617365487565203d000000000000000000000000000000000000000000008152508e604051806104a001604052806104788152602001614f0e6104789139604051602001612dff9b9a9998979695949392919061494c565b604051602081830303815290604052905095945050505050565b606060006040518060400160405280600181526020017f2c0000000000000000000000000000000000000000000000000000000000000081525090506000831115612e71576040518060200160405280600081525090505b848482604051602001612e8693929190614a7d565b6040516020818303038152906040529150509392505050565b6060600d8360048110612eb557612eb4613bd9565b5b600902018260098110612ecb57612eca613bd9565b5b018054612ed790613977565b80601f0160208091040260200160405190810160405280929190818152602001828054612f0390613977565b8015612f505780601f10612f2557610100808354040283529160200191612f50565b820191906000526020600020905b815481529060010190602001808311612f3357829003601f168201915b5050505050905092915050565b60008054905060008203612f9d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612faa6000848385611add565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613021836130126000866000611ae3565b61301b8561328d565b17611b0b565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146130c257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613087565b50600082036130fd576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506131136000848385611b36565b505050565b60008160001c9050919050565b606080600060149050600080601490506000806000805b600a81101561327d5760005b600a811015613216578861315b896128c1565b613164896128c1565b8d61316e876128c1565b6131778d6128c1565b6131808c6128c1565b6131898f6128c1565b6131928e6128c1565b61319b8e6128c1565b6040516020016131b49a99989796959493929190614e13565b60405160208183030381529060405298506028876131d291906139d7565b96506028866131e191906139d7565b955061012c856131f191906139d7565b945061012c8361320191906139d7565b9250808061320e90613c08565b915050613148565b5060288761322491906139d7565b9650600095506014945061012c8361323c91906139d7565b925082935060018161324e91906139d7565b61012c61325b9190613a0b565b61012c61326891906139d7565b9150808061327590613c08565b91505061313c565b5086975050505050505050919050565b60006001821460e11b9050919050565b6040518060800160405280600490602082028036833780820191505090505090565b6040518060a00160405280600590602082028036833780820191505090505090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61332a816132f5565b811461333557600080fd5b50565b60008135905061334781613321565b92915050565b600060208284031215613363576133626132eb565b5b600061337184828501613338565b91505092915050565b60008115159050919050565b61338f8161337a565b82525050565b60006020820190506133aa6000830184613386565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156133ea5780820151818401526020810190506133cf565b60008484015250505050565b6000601f19601f8301169050919050565b6000613412826133b0565b61341c81856133bb565b935061342c8185602086016133cc565b613435816133f6565b840191505092915050565b6000602082019050818103600083015261345a8184613407565b905092915050565b6000819050919050565b61347581613462565b811461348057600080fd5b50565b6000813590506134928161346c565b92915050565b6000602082840312156134ae576134ad6132eb565b5b60006134bc84828501613483565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006134f0826134c5565b9050919050565b613500816134e5565b82525050565b600060208201905061351b60008301846134f7565b92915050565b61352a816134e5565b811461353557600080fd5b50565b60008135905061354781613521565b92915050565b60008060408385031215613564576135636132eb565b5b600061357285828601613538565b925050602061358385828601613483565b9150509250929050565b61359681613462565b82525050565b60006020820190506135b1600083018461358d565b92915050565b6000806000606084860312156135d0576135cf6132eb565b5b60006135de86828701613538565b93505060206135ef86828701613538565b925050604061360086828701613483565b9150509250925092565b6000602082840312156136205761361f6132eb565b5b600061362e84828501613538565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261365c5761365b613637565b5b8235905067ffffffffffffffff8111156136795761367861363c565b5b60208301915083602082028301111561369557613694613641565b5b9250929050565b600080602083850312156136b3576136b26132eb565b5b600083013567ffffffffffffffff8111156136d1576136d06132f0565b5b6136dd85828601613646565b92509250509250929050565b6136f28161337a565b81146136fd57600080fd5b50565b60008135905061370f816136e9565b92915050565b6000806040838503121561372c5761372b6132eb565b5b600061373a85828601613538565b925050602061374b85828601613700565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613792826133f6565b810181811067ffffffffffffffff821117156137b1576137b061375a565b5b80604052505050565b60006137c46132e1565b90506137d08282613789565b919050565b600067ffffffffffffffff8211156137f0576137ef61375a565b5b6137f9826133f6565b9050602081019050919050565b82818337600083830152505050565b6000613828613823846137d5565b6137ba565b90508281526020810184848401111561384457613843613755565b5b61384f848285613806565b509392505050565b600082601f83011261386c5761386b613637565b5b813561387c848260208601613815565b91505092915050565b6000806000806080858703121561389f5761389e6132eb565b5b60006138ad87828801613538565b94505060206138be87828801613538565b93505060406138cf87828801613483565b925050606085013567ffffffffffffffff8111156138f0576138ef6132f0565b5b6138fc87828801613857565b91505092959194509250565b6000806040838503121561391f5761391e6132eb565b5b600061392d85828601613538565b925050602061393e85828601613538565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061398f57607f821691505b6020821081036139a2576139a1613948565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006139e282613462565b91506139ed83613462565b9250828201905080821115613a0557613a046139a8565b5b92915050565b6000613a1682613462565b9150613a2183613462565b9250828202613a2f81613462565b91508282048414831517613a4657613a456139a8565b5b5092915050565b6000819050919050565b613a68613a6382613462565b613a4d565b82525050565b60008160601b9050919050565b6000613a8682613a6e565b9050919050565b6000613a9882613a7b565b9050919050565b613ab0613aab826134e5565b613a8d565b82525050565b6000613ac28286613a57565b602082019150613ad28285613a9f565b601482019150613ae28284613a57565b602082019150819050949350505050565b6000613afe82613462565b9150613b0983613462565b9250828203905081811115613b2157613b206139a8565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613b5d6020836133bb565b9150613b6882613b27565b602082019050919050565b60006020820190508181036000830152613b8c81613b50565b9050919050565b600081905092915050565b50565b6000613bae600083613b93565b9150613bb982613b9e565b600082019050919050565b6000613bcf82613ba1565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613c1382613462565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613c4557613c446139a8565b5b600182019050919050565b600081905092915050565b7f7b226e616d65223a2247656e2057617665202300000000000000000000000000600082015250565b6000613c91601383613c50565b9150613c9c82613c5b565b601382019050919050565b6000613cb2826133b0565b613cbc8185613c50565b9350613ccc8185602086016133cc565b80840191505092915050565b7f222c20226465736372697074696f6e223a202247656e2057617665732069732060008201527f612066756c6c79206f6e2d636861696e202620696e746572616374697665207060208201527f69656365206f66206172742074686174206f6666657273206120756e6971756560408201527f20616e6420696d6d65727369766520657870657269656e636520666f7220636f60608201527f6c6c6563746f72732e222c2022747261697473223a205b000000000000000000608082015250565b6000613da6609783613c50565b9150613db182613cd8565b609782019050919050565b7f5d2c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b60008201527f6261736536342c00000000000000000000000000000000000000000000000000602082015250565b6000613e18602783613c50565b9150613e2382613dbc565b602782019050919050565b7f222c2022616e696d6174696f6e5f75726c223a22646174613a746578742f687460008201527f6d6c3b6261736536342c00000000000000000000000000000000000000000000602082015250565b6000613e8a602a83613c50565b9150613e9582613e2e565b602a82019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000613ed6600283613c50565b9150613ee182613ea0565b600282019050919050565b6000613ef782613c84565b9150613f038287613ca7565b9150613f0e82613d99565b9150613f1a8286613ca7565b9150613f2582613e0b565b9150613f318285613ca7565b9150613f3c82613e7d565b9150613f488284613ca7565b9150613f5382613ec9565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000613f97601d83613c50565b9150613fa282613f61565b601d82019050919050565b6000613fb882613f8a565b9150613fc48284613ca7565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061402b6026836133bb565b915061403682613fcf565b604082019050919050565b6000602082019050818103600083015261405a8161401e565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006140976010836133bb565b91506140a282614061565b602082019050919050565b600060208201905081810360008301526140c68161408a565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006140f4826140cd565b6140fe81856140d8565b935061410e8185602086016133cc565b614117816133f6565b840191505092915050565b600060808201905061413760008301876134f7565b61414460208301866134f7565b614151604083018561358d565b818103606083015261416381846140e9565b905095945050505050565b60008151905061417d81613321565b92915050565b600060208284031215614199576141986132eb565b5b60006141a78482850161416e565b91505092915050565b600061ffff82169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141f8826141b0565b9150614203836141b0565b925082614213576142126141be565b5b828206905092915050565b600061422a8284613ca7565b915081905092915050565b6000614240826140cd565b61424a8185613b93565b935061425a8185602086016133cc565b80840191505092915050565b60006142728288614235565b915061427e8287614235565b915061428a8286614235565b91506142968285614235565b91506142a28284614235565b91508190509695505050505050565b60006142bd8284614235565b915081905092915050565b60006142d382613462565b91506142de83613462565b9250826142ee576142ed6141be565b5b828204905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061432f6014836133bb565b915061433a826142f9565b602082019050919050565b6000602082019050818103600083015261435e81614322565b9050919050565b600060408201905061437a600083018561358d565b614387602083018461358d565b9392505050565b600061439982613462565b91506143a483613462565b9250826143b4576143b36141be565b5b828206905092915050565b60006143ca826141b0565b91506143d5836141b0565b9250828201905061ffff8111156143ef576143ee6139a8565b5b92915050565b6000614400826141b0565b915061ffff8203614414576144136139a8565b5b600182019050919050565b7f3c7376672076696577426f783d2230203020343030203430302220786d6c6e7360008201527f3d22687474703a2f2f7777772e77332e6f72672f323030302f7376672220737460208201527f796c653d226261636b67726f756e642d636f6c6f723a20626c61636b22203e2060408201527f3c7374796c653e203a726f6f74207b202d2d766172696174696f6e3a20000000606082015250565b60006144c7607d83613c50565b91506144d28261441f565b607d82019050919050565b7f6465673b2d2d636f6c6f723a0000000000000000000000000000000000000000600082015250565b6000614513600c83613c50565b915061451e826144dd565b600c82019050919050565b7f6465673b207d202e636f6c6f722d616e696d6174696f6e207b20616e696d617460008201527f696f6e2d6e616d653a20636f6c6f722d6368616e67653b20616e696d6174696f60208201527f6e2d6475726174696f6e3a20312e35733b20616e696d6174696f6e2d6469726560408201527f6374696f6e3a20616c7465726e6174653b20616e696d6174696f6e2d6974657260608201527f6174696f6e2d636f756e743a696e66696e6974653b20616e696d6174696f6e2d60808201527f66696c6c2d6d6f64653a20666f7277617264733b207d20406b65796672616d6560a08201527f7320636f6c6f722d6368616e6765207b203025207b2066696c6c3a2068736c2860c08201527f63616c6328766172282d2d636f6c6f7229202d20766172282d2d76617269617460e08201527f696f6e292a31292c20313030252c20353025293b207d20323025207b2066696c6101008201527f6c3a2068736c2863616c6328766172282d2d636f6c6f7229202d20766172282d6101208201527f2d766172696174696f6e292a302e38292c20313030252c20353025293b207d206101408201527f343025207b2066696c6c3a2068736c2863616c6328766172282d2d636f6c6f726101608201527f29202d20766172282d2d766172696174696f6e292a302e36292c20313030252c6101808201527f20353025293b207d20363025207b2066696c6c3a2068736c2863616c632876616101a08201527f72282d2d636f6c6f7229202d20766172282d2d766172696174696f6e292a302e6101c08201527f34292c20313030252c20353025293b207d20383025207b2066696c6c3a2068736101e08201527f6c2863616c6328766172282d2d636f6c6f7229202d20766172282d2d766172696102008201527f6174696f6e292a302e32292c20313030252c20353025293b207d2031303025206102208201527f7b2066696c6c3a2068736c2863616c6328766172282d2d636f6c6f7229202d206102408201527f766172282d2d766172696174696f6e292a30292c20313030252c20353025293b6102608201527f207d207d203c2f7374796c653e203c672069643d2267726964222066696c6c3d6102808201527f2268736c28766172282d2d636f6c6f72292c20313030252c2035302529223e006102a082015250565b600061488c6102bf83613c50565b915061489782614529565b6102bf82019050919050565b7f3c2f673e3c2f7376673e00000000000000000000000000000000000000000000600082015250565b60006148d9600a83613c50565b91506148e4826148a3565b600a82019050919050565b60006148fa826144ba565b91506149068286613ca7565b915061491182614506565b915061491d8285613ca7565b91506149288261487e565b91506149348284614235565b915061493f826148cc565b9150819050949350505050565b6000614958828e613ca7565b9150614964828d613ca7565b9150614970828c613ca7565b915061497c828b613ca7565b9150614988828a613ca7565b91506149948289613ca7565b91506149a08288613ca7565b91506149ac8287613ca7565b91506149b88286613ca7565b91506149c48285613ca7565b91506149d08284613ca7565b91508190509c9b505050505050505050505050565b7f7b2274726169745f74797065223a202200000000000000000000000000000000600082015250565b6000614a1b601083613c50565b9150614a26826149e5565b601082019050919050565b7f222c202276616c7565223a202200000000000000000000000000000000000000600082015250565b6000614a67600d83613c50565b9150614a7282614a31565b600d82019050919050565b6000614a8882614a0e565b9150614a948286613ca7565b9150614a9f82614a5a565b9150614aab8285613ca7565b9150614ab682613ec9565b9150614ac28284613ca7565b9150819050949350505050565b7f3c636972636c652063783d220000000000000000000000000000000000000000600082015250565b6000614b05600c83613c50565b9150614b1082614acf565b600c82019050919050565b7f222063793d220000000000000000000000000000000000000000000000000000600082015250565b6000614b51600683613c50565b9150614b5c82614b1b565b600682019050919050565b7f2220723d22000000000000000000000000000000000000000000000000000000600082015250565b6000614b9d600583613c50565b9150614ba882614b67565b600582019050919050565b7f2220636c6173733d22636f6c6f722d616e696d6174696f6e22207374796c653d60008201527f22616e696d6174696f6e2d64656c61793a200000000000000000000000000000602082015250565b6000614c0f603283613c50565b9150614c1a82614bb3565b603282019050919050565b7f6d73223e203c616e696d6174655472616e73666f726d2061747472696275746560008201527f4e616d653d227472616e73666f726d2220747970653d22726f7461746522206660208201527f726f6d3d22302000000000000000000000000000000000000000000000000000604082015250565b6000614ca7604783613c50565b9150614cb282614c25565b604782019050919050565b7f2000000000000000000000000000000000000000000000000000000000000000600082015250565b6000614cf3600183613c50565b9150614cfe82614cbd565b600182019050919050565b7f2220746f3d223336302000000000000000000000000000000000000000000000600082015250565b6000614d3f600a83613c50565b9150614d4a82614d09565b600a82019050919050565b7f2220626567696e3d220000000000000000000000000000000000000000000000600082015250565b6000614d8b600983613c50565b9150614d9682614d55565b600982019050919050565b7f6d7322206475723d22333030306d732220726570656174436f756e743d22696e60008201527f646566696e69746522202f3e203c2f636972636c653e00000000000000000000602082015250565b6000614dfd603683613c50565b9150614e0882614da1565b603682019050919050565b6000614e1f828d614235565b9150614e2a82614af8565b9150614e36828c613ca7565b9150614e4182614b44565b9150614e4d828b613ca7565b9150614e5882614b90565b9150614e64828a613ca7565b9150614e6f82614c02565b9150614e7b8289613ca7565b9150614e8682614c9a565b9150614e928288613ca7565b9150614e9d82614ce6565b9150614ea98287613ca7565b9150614eb482614d32565b9150614ec08286613ca7565b9150614ecb82614ce6565b9150614ed78285613ca7565b9150614ee282614d7e565b9150614eee8284613ca7565b9150614ef982614df0565b91508190509b9a505050505050505050505056fe2c73617475726174696f6e203d203130303b206c65742074203d20303b2066756e6374696f6e2073657475702829207b2063726561746543616e7661732877696e646f7757696474682b3130302c2077696e646f774865696768742b313030293b20636f6c6f724d6f6465284853422c203336302c203130302c203130302c20313030293b206e6f5374726f6b6528293b207d2066756e6374696f6e20647261772829207b206261636b67726f756e6428302c20302c2031302c2038293b20666f7220286c65742078203d20303b2078203c3d2077696474683b2078202b3d206772696453697a6529207b20666f7220286c65742079203d20303b2079203c3d206865696768743b2079202b3d206772696453697a6529207b20636f6e737420616e676c654f666673657458203d206d6170286d6f757365582c20302c2077696474682c202d32202a2050492c2032202a2050492c2074727565292c20616e676c654f666673657459203d206d6170286d6f757365592c20302c206865696768742c202d32202a2050492c2032202a2050492c2074727565292c20616e676c654f66667365745859203d206d617028286d6f75736558202b206d6f7573655929202f20322c20302c20287769647468202b2068656967687429202f20322c202d32202a2050492c2032202a2050492c2074727565292c20616e676c6531203d20616e676c654f666673657458202a202878202f207769647468292c20616e676c6532203d20616e676c654f666673657459202a202879202f20686569676874292c20616e676c6533203d20616e676c654f66667365745859202a202873717274287371287829202b20737128792929202f207371727428737128776964746829202b207371286865696768742929292c206d7958203d2078202b203230202a20636f732832202a205049202a2074202b20616e676c6531202b20616e676c6532202b20616e676c6533292c206d7959203d2079202b203230202a2073696e2832202a205049202a2074202b20616e676c6531202b20616e676c6532202b20616e676c6533292c2064697374616e6365546f4e65696768626f72203d2064697374286d79582c206d79592c2078202b206772696453697a652c2079292c2070726f766973696f6e616c487565203d2062617365487565202d20687565566172696174696f6e2c2068756556616c7565203d20286d61702864697374616e6365546f4e65696768626f722c20382c2035302c2070726f766973696f6e616c4875652c206261736548756529202520333630202b20333630292025203336303b2066696c6c2868756556616c75652c2073617475726174696f6e2c20313030293b20656c6c69707365286d79582c206d79592c20656c6c6970736553697a65293b207d207d2074202b3d2074537465703b207d202066756e6374696f6e2077696e646f77526573697a65642829207b20726573697a6543616e7661732877696e646f7757696474682c2077696e646f77486569676874293b207d206e657720703528293b3c2f7363726970743e3c2f626f64793e3c2f68746d6c3e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c68746d6c3e3c686561643e203c73637269707420747970653d22746578742f6a61766173637269707422207372633d2268747470733a2f2f63646e6a732e636c6f7564666c6172652e636f6d2f616a61782f6c6962732f70352e6a732f312e312e392f70352e6a7322203e3c2f7363726970743e203c7374796c653e2068746d6c2c20626f6479207b206f766572666c6f773a2068696464656e3b206d617267696e3a20303b2070616464696e673a20303b206261636b67726f756e643a77686974653b207d203c2f7374796c653e203c2f686561643e203c626f64793e203c6d61696e2069643d22746578744f75747075742d636f6e74656e74223e3c63616e766173207374796c653d2277696474683a203070783b206865696768743a203070783b223e3c2f63616e7661733e3c2f6d61696e3e203c73637269707420747970653d22746578742f6a617661736372697074223e636f6e7374206772696453697a65203d20a26469706673582212205370369b4d960367ef74c223d6534786e50bdf9ead5876a405b6144badde6d9664736f6c63430008130033
Deployed Bytecode
0x6080604052600436106101b75760003560e01c8063715018a6116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd1461054c578063d75e611014610589578063e985e9c5146105b4578063f2fde38b146105f1576101b7565b8063a22cb465146104f0578063b585209b14610519578063b88d4fde14610530576101b7565b80638d859f3e116100c65780638d859f3e146104325780638da5cb5b1461045d57806395d89b41146104885780639b19251a146104b3576101b7565b8063715018a6146103db5780637d81ce9f146103f25780638456cb591461041b576101b7565b806332cb6b0c1161015957806342842e0e1161013357806342842e0e1461031a5780635c975abb146103365780636352211e1461036157806370a082311461039e576101b7565b806332cb6b0c146102ce5780633ccfd60b146102f95780633f4ba83a14610303576101b7565b8063095ea7b311610195578063095ea7b3146102615780631249c58b1461027d57806318160ddd1461028757806323b872dd146102b2576101b7565b806301ffc9a7146101bc57806306fdde03146101f9578063081812fc14610224575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de919061334d565b61061a565b6040516101f09190613395565b60405180910390f35b34801561020557600080fd5b5061020e6106ac565b60405161021b9190613440565b60405180910390f35b34801561023057600080fd5b5061024b60048036038101906102469190613498565b61073e565b6040516102589190613506565b60405180910390f35b61027b6004803603810190610276919061354d565b6107bd565b005b610285610901565b005b34801561029357600080fd5b5061029c610b91565b6040516102a9919061359c565b60405180910390f35b6102cc60048036038101906102c791906135b7565b610ba8565b005b3480156102da57600080fd5b506102e3610eca565b6040516102f0919061359c565b60405180910390f35b610301610ed0565b005b34801561030f57600080fd5b50610318610fcc565b005b610334600480360381019061032f91906135b7565b611052565b005b34801561034257600080fd5b5061034b611072565b6040516103589190613395565b60405180910390f35b34801561036d57600080fd5b5061038860048036038101906103839190613498565b611089565b6040516103959190613506565b60405180910390f35b3480156103aa57600080fd5b506103c560048036038101906103c0919061360a565b61109b565b6040516103d2919061359c565b60405180910390f35b3480156103e757600080fd5b506103f0611153565b005b3480156103fe57600080fd5b506104196004803603810190610414919061369c565b6111db565b005b34801561042757600080fd5b506104306112f0565b005b34801561043e57600080fd5b50610447611376565b604051610454919061359c565b60405180910390f35b34801561046957600080fd5b5061047261137c565b60405161047f9190613506565b60405180910390f35b34801561049457600080fd5b5061049d6113a6565b6040516104aa9190613440565b60405180910390f35b3480156104bf57600080fd5b506104da60048036038101906104d5919061360a565b611438565b6040516104e7919061359c565b60405180910390f35b3480156104fc57600080fd5b5061051760048036038101906105129190613715565b611450565b005b34801561052557600080fd5b5061052e61155b565b005b61054a60048036038101906105459190613885565b6115f4565b005b34801561055857600080fd5b50610573600480360381019061056e9190613498565b611667565b6040516105809190613440565b60405180910390f35b34801561059557600080fd5b5061059e61172e565b6040516105ab919061359c565b60405180910390f35b3480156105c057600080fd5b506105db60048036038101906105d69190613908565b611734565b6040516105e89190613395565b60405180910390f35b3480156105fd57600080fd5b506106186004803603810190610613919061360a565b6117c8565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061067557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106a55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546106bb90613977565b80601f01602080910402602001604051908101604052809291908181526020018280546106e790613977565b80156107345780601f1061070957610100808354040283529160200191610734565b820191906000526020600020905b81548152906001019060200180831161071757829003601f168201915b5050505050905090565b6000610749826118bf565b61077f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107c882611089565b90508073ffffffffffffffffffffffffffffffffffffffff166107e961191e565b73ffffffffffffffffffffffffffffffffffffffff161461084c576108158161081061191e565b611734565b61084b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610909611926565b6000610913611970565b90503373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461097a576040517f8315cc2200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b603360009054906101000a900460ff16610a0a57600a54603260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610a09576040517f522fc3bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600b54600a5482610a1b91906139d7565b1115610a53576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54600954610a639190613a0b565b341015610a9c576040517f49986e7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b423382604051602001610ab193929190613ab6565b6040516020818303038152906040528051906020012060001c6031600083815260200190815260200160002081905550610aed33600a54611983565b6000603260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115610b8e57600a54603260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610b869190613af3565b925050819055505b50565b6000610b9b6119a1565b6001546000540303905090565b6000610bb3826119a6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c1a576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610c2684611a72565b91509150610c3c8187610c3761191e565b611a99565b610c8857610c5186610c4c61191e565b611734565b610c87576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610cee576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cfb8686866001611add565b8015610d0657600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610dd485610db0888887611ae3565b7c020000000000000000000000000000000000000000000000000000000017611b0b565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610e5a5760006001850190506000600460008381526020019081526020016000205403610e58576000548114610e57578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610ec28686866001611b36565b505050505050565b600b5481565b610ed8611b3c565b73ffffffffffffffffffffffffffffffffffffffff16610ef661137c565b73ffffffffffffffffffffffffffffffffffffffff1614610f4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4390613b73565b60405180910390fd5b6000610f5661137c565b73ffffffffffffffffffffffffffffffffffffffff1647604051610f7990613bc4565b60006040518083038185875af1925050503d8060008114610fb6576040519150601f19603f3d011682016040523d82523d6000602084013e610fbb565b606091505b5050905080610fc957600080fd5b50565b610fd4611b3c565b73ffffffffffffffffffffffffffffffffffffffff16610ff261137c565b73ffffffffffffffffffffffffffffffffffffffff1614611048576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103f90613b73565b60405180910390fd5b611050611b44565b565b61106d838383604051806020016040528060008152506115f4565b505050565b6000600860149054906101000a900460ff16905090565b6000611094826119a6565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611102576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61115b611b3c565b73ffffffffffffffffffffffffffffffffffffffff1661117961137c565b73ffffffffffffffffffffffffffffffffffffffff16146111cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c690613b73565b60405180910390fd5b6111d96000611ba7565b565b6111e3611b3c565b73ffffffffffffffffffffffffffffffffffffffff1661120161137c565b73ffffffffffffffffffffffffffffffffffffffff1614611257576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124e90613b73565b60405180910390fd5b60005b828290508110156112eb57600083838381811061127a57611279613bd9565b5b905060200201602081019061128f919061360a565b9050600a54603260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505080806112e390613c08565b91505061125a565b505050565b6112f8611b3c565b73ffffffffffffffffffffffffffffffffffffffff1661131661137c565b73ffffffffffffffffffffffffffffffffffffffff161461136c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136390613b73565b60405180910390fd5b611374611c6d565b565b60095481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546113b590613977565b80601f01602080910402602001604051908101604052809291908181526020018280546113e190613977565b801561142e5780601f106114035761010080835404028352916020019161142e565b820191906000526020600020905b81548152906001019060200180831161141157829003601f168201915b5050505050905090565b60326020528060005260406000206000915090505481565b806007600061145d61191e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661150a61191e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161154f9190613395565b60405180910390a35050565b611563611b3c565b73ffffffffffffffffffffffffffffffffffffffff1661158161137c565b73ffffffffffffffffffffffffffffffffffffffff16146115d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ce90613b73565b60405180910390fd5b6001603360006101000a81548160ff021916908315150217905550565b6115ff848484610ba8565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116615761162a84848484611cd0565b611660576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611672826118bf565b6116a8576040517fcbdb7b3000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060006116c96031600087815260200190815260200160002054611e20565b9250925092506117056116db866128c1565b8285856040516020016116f19493929190613eec565b604051602081830303815290604052612912565b6040516020016117159190613fad565b6040516020818303038152906040529350505050919050565b600a5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6117d0611b3c565b73ffffffffffffffffffffffffffffffffffffffff166117ee61137c565b73ffffffffffffffffffffffffffffffffffffffff1614611844576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183b90613b73565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036118b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118aa90614041565b60405180910390fd5b6118bc81611ba7565b50565b6000816118ca6119a1565b111580156118d9575060005482105b8015611917575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b61192e611072565b1561196e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611965906140ad565b60405180910390fd5b565b600061197a6119a1565b60005403905090565b61199d828260405180602001604052806000815250612a75565b5050565b600090565b600080829050806119b56119a1565b11611a3b57600054811015611a3a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611a38575b60008103611a2e576004600083600190039350838152602001908152602001600020549050611a04565b8092505050611a6d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611afa868684612b12565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b611b4c612b1b565b6000600860146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611b90611b3c565b604051611b9d9190613506565b60405180910390a1565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611c75611926565b6001600860146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611cb9611b3c565b604051611cc69190613506565b60405180910390a1565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611cf661191e565b8786866040518563ffffffff1660e01b8152600401611d189493929190614122565b6020604051808303816000875af1925050508015611d5457506040513d601f19601f82011682018060405250810190611d519190614183565b60015b611dcd573d8060008114611d84576040519150601f19603f3d011682016040523d82523d6000602084013e611d89565b606091505b506000815103611dc5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60608060606000611e32856005612b64565b9050611e3c61329d565b6000611e7061016884600060058110611e5857611e57613bd9565b5b6020020151611e6791906141ed565b61ffff166128c1565b9050611efd600c600980602002604051908101604052809291908260098015611ed6576020028201916000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411611e9d5790505b505050505084600160058110611eef57611eee613bd9565b5b602002015161ffff16612be8565b82600060048110611f1157611f10613bd9565b5b602002019061ffff16908161ffff1681525050611faf600c600980602002604051908101604052809291908260098015611f88576020028201916000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411611f4f5790505b505050505084600260058110611fa157611fa0613bd9565b5b602002015161ffff16612be8565b82600160048110611fc357611fc2613bd9565b5b602002019061ffff16908161ffff1681525050612061600c60098060200260405190810160405280929190826009801561203a576020028201916000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116120015790505b50505050508460036005811061205357612052613bd9565b5b602002015161ffff16612be8565b8260026004811061207557612074613bd9565b5b602002019061ffff16908161ffff1681525050612113600c6009806020026040519081016040528092919082600980156120ec576020028201916000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116120b35790505b50505050508460046005811061210557612104613bd9565b5b602002015161ffff16612be8565b8260036004811061212757612126613bd9565b5b602002019061ffff16908161ffff168152505060006122e782600d60016004811061215557612154613bd9565b5b600902018560016004811061216d5761216c613bd9565b5b602002015161ffff166009811061218757612186613bd9565b5b01805461219390613977565b80601f01602080910402602001604051908101604052809291908181526020018280546121bf90613977565b801561220c5780601f106121e15761010080835404028352916020019161220c565b820191906000526020600020905b8154815290600101906020018083116121ef57829003601f168201915b5050505050600d60036004811061222657612225613bd9565b5b600902018660036004811061223e5761223d613bd9565b5b602002015161ffff166009811061225857612257613bd9565b5b01805461226490613977565b80601f016020809104026020016040519081016040528092919081815260200182805461229090613977565b80156122dd5780601f106122b2576101008083540402835291602001916122dd565b820191906000526020600020905b8154815290600101906020018083116122c057829003601f168201915b5050505050612c97565b9050612311816040516020016122fd919061421e565b604051602081830303815290604052612912565b9650600061266283600d60006004811061232e5761232d613bd9565b5b600902018660006004811061234657612345613bd9565b5b602002015161ffff16600981106123605761235f613bd9565b5b01805461236c90613977565b80601f016020809104026020016040519081016040528092919081815260200182805461239890613977565b80156123e55780601f106123ba576101008083540402835291602001916123e5565b820191906000526020600020905b8154815290600101906020018083116123c857829003601f168201915b5050505050600d6001600481106123ff576123fe613bd9565b5b600902018760016004811061241757612416613bd9565b5b602002015161ffff166009811061243157612430613bd9565b5b01805461243d90613977565b80601f016020809104026020016040519081016040528092919081815260200182805461246990613977565b80156124b65780601f1061248b576101008083540402835291602001916124b6565b820191906000526020600020905b81548152906001019060200180831161249957829003601f168201915b5050505050600d6002600481106124d0576124cf613bd9565b5b60090201886002600481106124e8576124e7613bd9565b5b602002015161ffff166009811061250257612501613bd9565b5b01805461250e90613977565b80601f016020809104026020016040519081016040528092919081815260200182805461253a90613977565b80156125875780601f1061255c57610100808354040283529160200191612587565b820191906000526020600020905b81548152906001019060200180831161256a57829003601f168201915b5050505050600d6003600481106125a1576125a0613bd9565b5b60090201896003600481106125b9576125b8613bd9565b5b602002015161ffff16600981106125d3576125d2613bd9565b5b0180546125df90613977565b80601f016020809104026020016040519081016040528092919081815260200182805461260b90613977565b80156126585780601f1061262d57610100808354040283529160200191612658565b820191906000526020600020905b81548152906001019060200180831161263b57829003601f168201915b5050505050612cce565b905061268c81604051602001612678919061421e565b604051602081830303815290604052612912565b965060006126d16040518060400160405280600a81526020017f4261736520436f6c6f7200000000000000000000000000000000000000000000815250856000612e19565b6127386040518060400160405280600981526020017f477269642053697a65000000000000000000000000000000000000000000000081525061273160008960006004811061272357612722613bd9565b5b602002015161ffff16612e9f565b6000612e19565b61279f6040518060400160405280600c81526020017f456c6c697073652053697a65000000000000000000000000000000000000000081525061279860018a60016004811061278a57612789613bd9565b5b602002015161ffff16612e9f565b6000612e19565b6128066040518060400160405280600a81526020017f57617665205370656564000000000000000000000000000000000000000000008152506127ff60028b6002600481106127f1576127f0613bd9565b5b602002015161ffff16612e9f565b6000612e19565b61286d6040518060400160405280600f81526020017f436f6c6f7220566172696174696f6e000000000000000000000000000000000081525061286660038c60036004811061285857612857613bd9565b5b602002015161ffff16612e9f565b6001612e19565b604051602001612881959493929190614266565b6040516020818303038152906040529050806040516020016128a391906142b1565b60405160208183030381529060405296505050505050509193909250565b60606080604051019050602081016040526000815280600019835b6001156128fd578184019350600a81066030018453600a81049050806128dc575b50828203602084039350808452505050919050565b6060600082510361293457604051806020016040528060008152509050612a70565b6000604051806060016040528060408152602001615386604091399050600060036002855161296391906139d7565b61296d91906142c8565b60046129799190613a0b565b67ffffffffffffffff8111156129925761299161375a565b5b6040519080825280601f01601f1916602001820160405280156129c45781602001600182028036833780820191505090505b509050600182016020820185865187015b80821015612a30576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453600184019350506129d5565b5050600386510660018114612a4c5760028114612a5f57612a67565b603d6001830353603d6002830353612a67565b603d60018303535b50505080925050505b919050565b612a7f8383612f5d565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612b0d57600080549050600083820390505b612abf6000868380600101945086611cd0565b612af5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612aac578160005414612b0a57600080fd5b50505b505050565b60009392505050565b612b23611072565b612b62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5990614345565b60405180910390fd5b565b612b6c6132bf565b60005b82811015612be157612ba88482604051602001612b8d929190614365565b60405160208183030381529060405280519060200120613118565b828260058110612bbb57612bba613bd9565b5b602002019061ffff16908161ffff16815250508080612bd990613c08565b915050612b6f565b5092915050565b6000806103e883612bf9919061438e565b9050600080600190505b60098161ffff1611612c8c576000868261ffff1660098110612c2857612c27613bd9565b5b602002015190508281612c3b91906143bf565b61ffff168461ffff16108015612c5957508261ffff168461ffff1610155b15612c6a5781945050505050612c91565b8083612c7691906143bf565b9250508080612c84906143f5565b915050612c03565b600080fd5b92915050565b60608184612ca485613125565b604051602001612cb6939291906148ef565b60405160208183030381529060405290509392505050565b6060604051806101a0016040528061016881526020016153c66101689139856040518060400160405280600f81526020017f2c656c6c6970736553697a65203d200000000000000000000000000000000000815250866040518060400160405280600881526020017f2c7453746570203d000000000000000000000000000000000000000000000000815250876040518060400160405280600f81526020017f2c687565566172696174696f6e203d0000000000000000000000000000000000815250886040518060400160405280600a81526020017f2c62617365487565203d000000000000000000000000000000000000000000008152508e604051806104a001604052806104788152602001614f0e6104789139604051602001612dff9b9a9998979695949392919061494c565b604051602081830303815290604052905095945050505050565b606060006040518060400160405280600181526020017f2c0000000000000000000000000000000000000000000000000000000000000081525090506000831115612e71576040518060200160405280600081525090505b848482604051602001612e8693929190614a7d565b6040516020818303038152906040529150509392505050565b6060600d8360048110612eb557612eb4613bd9565b5b600902018260098110612ecb57612eca613bd9565b5b018054612ed790613977565b80601f0160208091040260200160405190810160405280929190818152602001828054612f0390613977565b8015612f505780601f10612f2557610100808354040283529160200191612f50565b820191906000526020600020905b815481529060010190602001808311612f3357829003601f168201915b5050505050905092915050565b60008054905060008203612f9d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612faa6000848385611add565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613021836130126000866000611ae3565b61301b8561328d565b17611b0b565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146130c257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613087565b50600082036130fd576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506131136000848385611b36565b505050565b60008160001c9050919050565b606080600060149050600080601490506000806000805b600a81101561327d5760005b600a811015613216578861315b896128c1565b613164896128c1565b8d61316e876128c1565b6131778d6128c1565b6131808c6128c1565b6131898f6128c1565b6131928e6128c1565b61319b8e6128c1565b6040516020016131b49a99989796959493929190614e13565b60405160208183030381529060405298506028876131d291906139d7565b96506028866131e191906139d7565b955061012c856131f191906139d7565b945061012c8361320191906139d7565b9250808061320e90613c08565b915050613148565b5060288761322491906139d7565b9650600095506014945061012c8361323c91906139d7565b925082935060018161324e91906139d7565b61012c61325b9190613a0b565b61012c61326891906139d7565b9150808061327590613c08565b91505061313c565b5086975050505050505050919050565b60006001821460e11b9050919050565b6040518060800160405280600490602082028036833780820191505090505090565b6040518060a00160405280600590602082028036833780820191505090505090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61332a816132f5565b811461333557600080fd5b50565b60008135905061334781613321565b92915050565b600060208284031215613363576133626132eb565b5b600061337184828501613338565b91505092915050565b60008115159050919050565b61338f8161337a565b82525050565b60006020820190506133aa6000830184613386565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156133ea5780820151818401526020810190506133cf565b60008484015250505050565b6000601f19601f8301169050919050565b6000613412826133b0565b61341c81856133bb565b935061342c8185602086016133cc565b613435816133f6565b840191505092915050565b6000602082019050818103600083015261345a8184613407565b905092915050565b6000819050919050565b61347581613462565b811461348057600080fd5b50565b6000813590506134928161346c565b92915050565b6000602082840312156134ae576134ad6132eb565b5b60006134bc84828501613483565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006134f0826134c5565b9050919050565b613500816134e5565b82525050565b600060208201905061351b60008301846134f7565b92915050565b61352a816134e5565b811461353557600080fd5b50565b60008135905061354781613521565b92915050565b60008060408385031215613564576135636132eb565b5b600061357285828601613538565b925050602061358385828601613483565b9150509250929050565b61359681613462565b82525050565b60006020820190506135b1600083018461358d565b92915050565b6000806000606084860312156135d0576135cf6132eb565b5b60006135de86828701613538565b93505060206135ef86828701613538565b925050604061360086828701613483565b9150509250925092565b6000602082840312156136205761361f6132eb565b5b600061362e84828501613538565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261365c5761365b613637565b5b8235905067ffffffffffffffff8111156136795761367861363c565b5b60208301915083602082028301111561369557613694613641565b5b9250929050565b600080602083850312156136b3576136b26132eb565b5b600083013567ffffffffffffffff8111156136d1576136d06132f0565b5b6136dd85828601613646565b92509250509250929050565b6136f28161337a565b81146136fd57600080fd5b50565b60008135905061370f816136e9565b92915050565b6000806040838503121561372c5761372b6132eb565b5b600061373a85828601613538565b925050602061374b85828601613700565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613792826133f6565b810181811067ffffffffffffffff821117156137b1576137b061375a565b5b80604052505050565b60006137c46132e1565b90506137d08282613789565b919050565b600067ffffffffffffffff8211156137f0576137ef61375a565b5b6137f9826133f6565b9050602081019050919050565b82818337600083830152505050565b6000613828613823846137d5565b6137ba565b90508281526020810184848401111561384457613843613755565b5b61384f848285613806565b509392505050565b600082601f83011261386c5761386b613637565b5b813561387c848260208601613815565b91505092915050565b6000806000806080858703121561389f5761389e6132eb565b5b60006138ad87828801613538565b94505060206138be87828801613538565b93505060406138cf87828801613483565b925050606085013567ffffffffffffffff8111156138f0576138ef6132f0565b5b6138fc87828801613857565b91505092959194509250565b6000806040838503121561391f5761391e6132eb565b5b600061392d85828601613538565b925050602061393e85828601613538565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061398f57607f821691505b6020821081036139a2576139a1613948565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006139e282613462565b91506139ed83613462565b9250828201905080821115613a0557613a046139a8565b5b92915050565b6000613a1682613462565b9150613a2183613462565b9250828202613a2f81613462565b91508282048414831517613a4657613a456139a8565b5b5092915050565b6000819050919050565b613a68613a6382613462565b613a4d565b82525050565b60008160601b9050919050565b6000613a8682613a6e565b9050919050565b6000613a9882613a7b565b9050919050565b613ab0613aab826134e5565b613a8d565b82525050565b6000613ac28286613a57565b602082019150613ad28285613a9f565b601482019150613ae28284613a57565b602082019150819050949350505050565b6000613afe82613462565b9150613b0983613462565b9250828203905081811115613b2157613b206139a8565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613b5d6020836133bb565b9150613b6882613b27565b602082019050919050565b60006020820190508181036000830152613b8c81613b50565b9050919050565b600081905092915050565b50565b6000613bae600083613b93565b9150613bb982613b9e565b600082019050919050565b6000613bcf82613ba1565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613c1382613462565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613c4557613c446139a8565b5b600182019050919050565b600081905092915050565b7f7b226e616d65223a2247656e2057617665202300000000000000000000000000600082015250565b6000613c91601383613c50565b9150613c9c82613c5b565b601382019050919050565b6000613cb2826133b0565b613cbc8185613c50565b9350613ccc8185602086016133cc565b80840191505092915050565b7f222c20226465736372697074696f6e223a202247656e2057617665732069732060008201527f612066756c6c79206f6e2d636861696e202620696e746572616374697665207060208201527f69656365206f66206172742074686174206f6666657273206120756e6971756560408201527f20616e6420696d6d65727369766520657870657269656e636520666f7220636f60608201527f6c6c6563746f72732e222c2022747261697473223a205b000000000000000000608082015250565b6000613da6609783613c50565b9150613db182613cd8565b609782019050919050565b7f5d2c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b60008201527f6261736536342c00000000000000000000000000000000000000000000000000602082015250565b6000613e18602783613c50565b9150613e2382613dbc565b602782019050919050565b7f222c2022616e696d6174696f6e5f75726c223a22646174613a746578742f687460008201527f6d6c3b6261736536342c00000000000000000000000000000000000000000000602082015250565b6000613e8a602a83613c50565b9150613e9582613e2e565b602a82019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000613ed6600283613c50565b9150613ee182613ea0565b600282019050919050565b6000613ef782613c84565b9150613f038287613ca7565b9150613f0e82613d99565b9150613f1a8286613ca7565b9150613f2582613e0b565b9150613f318285613ca7565b9150613f3c82613e7d565b9150613f488284613ca7565b9150613f5382613ec9565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000613f97601d83613c50565b9150613fa282613f61565b601d82019050919050565b6000613fb882613f8a565b9150613fc48284613ca7565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061402b6026836133bb565b915061403682613fcf565b604082019050919050565b6000602082019050818103600083015261405a8161401e565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006140976010836133bb565b91506140a282614061565b602082019050919050565b600060208201905081810360008301526140c68161408a565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006140f4826140cd565b6140fe81856140d8565b935061410e8185602086016133cc565b614117816133f6565b840191505092915050565b600060808201905061413760008301876134f7565b61414460208301866134f7565b614151604083018561358d565b818103606083015261416381846140e9565b905095945050505050565b60008151905061417d81613321565b92915050565b600060208284031215614199576141986132eb565b5b60006141a78482850161416e565b91505092915050565b600061ffff82169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141f8826141b0565b9150614203836141b0565b925082614213576142126141be565b5b828206905092915050565b600061422a8284613ca7565b915081905092915050565b6000614240826140cd565b61424a8185613b93565b935061425a8185602086016133cc565b80840191505092915050565b60006142728288614235565b915061427e8287614235565b915061428a8286614235565b91506142968285614235565b91506142a28284614235565b91508190509695505050505050565b60006142bd8284614235565b915081905092915050565b60006142d382613462565b91506142de83613462565b9250826142ee576142ed6141be565b5b828204905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061432f6014836133bb565b915061433a826142f9565b602082019050919050565b6000602082019050818103600083015261435e81614322565b9050919050565b600060408201905061437a600083018561358d565b614387602083018461358d565b9392505050565b600061439982613462565b91506143a483613462565b9250826143b4576143b36141be565b5b828206905092915050565b60006143ca826141b0565b91506143d5836141b0565b9250828201905061ffff8111156143ef576143ee6139a8565b5b92915050565b6000614400826141b0565b915061ffff8203614414576144136139a8565b5b600182019050919050565b7f3c7376672076696577426f783d2230203020343030203430302220786d6c6e7360008201527f3d22687474703a2f2f7777772e77332e6f72672f323030302f7376672220737460208201527f796c653d226261636b67726f756e642d636f6c6f723a20626c61636b22203e2060408201527f3c7374796c653e203a726f6f74207b202d2d766172696174696f6e3a20000000606082015250565b60006144c7607d83613c50565b91506144d28261441f565b607d82019050919050565b7f6465673b2d2d636f6c6f723a0000000000000000000000000000000000000000600082015250565b6000614513600c83613c50565b915061451e826144dd565b600c82019050919050565b7f6465673b207d202e636f6c6f722d616e696d6174696f6e207b20616e696d617460008201527f696f6e2d6e616d653a20636f6c6f722d6368616e67653b20616e696d6174696f60208201527f6e2d6475726174696f6e3a20312e35733b20616e696d6174696f6e2d6469726560408201527f6374696f6e3a20616c7465726e6174653b20616e696d6174696f6e2d6974657260608201527f6174696f6e2d636f756e743a696e66696e6974653b20616e696d6174696f6e2d60808201527f66696c6c2d6d6f64653a20666f7277617264733b207d20406b65796672616d6560a08201527f7320636f6c6f722d6368616e6765207b203025207b2066696c6c3a2068736c2860c08201527f63616c6328766172282d2d636f6c6f7229202d20766172282d2d76617269617460e08201527f696f6e292a31292c20313030252c20353025293b207d20323025207b2066696c6101008201527f6c3a2068736c2863616c6328766172282d2d636f6c6f7229202d20766172282d6101208201527f2d766172696174696f6e292a302e38292c20313030252c20353025293b207d206101408201527f343025207b2066696c6c3a2068736c2863616c6328766172282d2d636f6c6f726101608201527f29202d20766172282d2d766172696174696f6e292a302e36292c20313030252c6101808201527f20353025293b207d20363025207b2066696c6c3a2068736c2863616c632876616101a08201527f72282d2d636f6c6f7229202d20766172282d2d766172696174696f6e292a302e6101c08201527f34292c20313030252c20353025293b207d20383025207b2066696c6c3a2068736101e08201527f6c2863616c6328766172282d2d636f6c6f7229202d20766172282d2d766172696102008201527f6174696f6e292a302e32292c20313030252c20353025293b207d2031303025206102208201527f7b2066696c6c3a2068736c2863616c6328766172282d2d636f6c6f7229202d206102408201527f766172282d2d766172696174696f6e292a30292c20313030252c20353025293b6102608201527f207d207d203c2f7374796c653e203c672069643d2267726964222066696c6c3d6102808201527f2268736c28766172282d2d636f6c6f72292c20313030252c2035302529223e006102a082015250565b600061488c6102bf83613c50565b915061489782614529565b6102bf82019050919050565b7f3c2f673e3c2f7376673e00000000000000000000000000000000000000000000600082015250565b60006148d9600a83613c50565b91506148e4826148a3565b600a82019050919050565b60006148fa826144ba565b91506149068286613ca7565b915061491182614506565b915061491d8285613ca7565b91506149288261487e565b91506149348284614235565b915061493f826148cc565b9150819050949350505050565b6000614958828e613ca7565b9150614964828d613ca7565b9150614970828c613ca7565b915061497c828b613ca7565b9150614988828a613ca7565b91506149948289613ca7565b91506149a08288613ca7565b91506149ac8287613ca7565b91506149b88286613ca7565b91506149c48285613ca7565b91506149d08284613ca7565b91508190509c9b505050505050505050505050565b7f7b2274726169745f74797065223a202200000000000000000000000000000000600082015250565b6000614a1b601083613c50565b9150614a26826149e5565b601082019050919050565b7f222c202276616c7565223a202200000000000000000000000000000000000000600082015250565b6000614a67600d83613c50565b9150614a7282614a31565b600d82019050919050565b6000614a8882614a0e565b9150614a948286613ca7565b9150614a9f82614a5a565b9150614aab8285613ca7565b9150614ab682613ec9565b9150614ac28284613ca7565b9150819050949350505050565b7f3c636972636c652063783d220000000000000000000000000000000000000000600082015250565b6000614b05600c83613c50565b9150614b1082614acf565b600c82019050919050565b7f222063793d220000000000000000000000000000000000000000000000000000600082015250565b6000614b51600683613c50565b9150614b5c82614b1b565b600682019050919050565b7f2220723d22000000000000000000000000000000000000000000000000000000600082015250565b6000614b9d600583613c50565b9150614ba882614b67565b600582019050919050565b7f2220636c6173733d22636f6c6f722d616e696d6174696f6e22207374796c653d60008201527f22616e696d6174696f6e2d64656c61793a200000000000000000000000000000602082015250565b6000614c0f603283613c50565b9150614c1a82614bb3565b603282019050919050565b7f6d73223e203c616e696d6174655472616e73666f726d2061747472696275746560008201527f4e616d653d227472616e73666f726d2220747970653d22726f7461746522206660208201527f726f6d3d22302000000000000000000000000000000000000000000000000000604082015250565b6000614ca7604783613c50565b9150614cb282614c25565b604782019050919050565b7f2000000000000000000000000000000000000000000000000000000000000000600082015250565b6000614cf3600183613c50565b9150614cfe82614cbd565b600182019050919050565b7f2220746f3d223336302000000000000000000000000000000000000000000000600082015250565b6000614d3f600a83613c50565b9150614d4a82614d09565b600a82019050919050565b7f2220626567696e3d220000000000000000000000000000000000000000000000600082015250565b6000614d8b600983613c50565b9150614d9682614d55565b600982019050919050565b7f6d7322206475723d22333030306d732220726570656174436f756e743d22696e60008201527f646566696e69746522202f3e203c2f636972636c653e00000000000000000000602082015250565b6000614dfd603683613c50565b9150614e0882614da1565b603682019050919050565b6000614e1f828d614235565b9150614e2a82614af8565b9150614e36828c613ca7565b9150614e4182614b44565b9150614e4d828b613ca7565b9150614e5882614b90565b9150614e64828a613ca7565b9150614e6f82614c02565b9150614e7b8289613ca7565b9150614e8682614c9a565b9150614e928288613ca7565b9150614e9d82614ce6565b9150614ea98287613ca7565b9150614eb482614d32565b9150614ec08286613ca7565b9150614ecb82614ce6565b9150614ed78285613ca7565b9150614ee282614d7e565b9150614eee8284613ca7565b9150614ef982614df0565b91508190509b9a505050505050505050505056fe2c73617475726174696f6e203d203130303b206c65742074203d20303b2066756e6374696f6e2073657475702829207b2063726561746543616e7661732877696e646f7757696474682b3130302c2077696e646f774865696768742b313030293b20636f6c6f724d6f6465284853422c203336302c203130302c203130302c20313030293b206e6f5374726f6b6528293b207d2066756e6374696f6e20647261772829207b206261636b67726f756e6428302c20302c2031302c2038293b20666f7220286c65742078203d20303b2078203c3d2077696474683b2078202b3d206772696453697a6529207b20666f7220286c65742079203d20303b2079203c3d206865696768743b2079202b3d206772696453697a6529207b20636f6e737420616e676c654f666673657458203d206d6170286d6f757365582c20302c2077696474682c202d32202a2050492c2032202a2050492c2074727565292c20616e676c654f666673657459203d206d6170286d6f757365592c20302c206865696768742c202d32202a2050492c2032202a2050492c2074727565292c20616e676c654f66667365745859203d206d617028286d6f75736558202b206d6f7573655929202f20322c20302c20287769647468202b2068656967687429202f20322c202d32202a2050492c2032202a2050492c2074727565292c20616e676c6531203d20616e676c654f666673657458202a202878202f207769647468292c20616e676c6532203d20616e676c654f666673657459202a202879202f20686569676874292c20616e676c6533203d20616e676c654f66667365745859202a202873717274287371287829202b20737128792929202f207371727428737128776964746829202b207371286865696768742929292c206d7958203d2078202b203230202a20636f732832202a205049202a2074202b20616e676c6531202b20616e676c6532202b20616e676c6533292c206d7959203d2079202b203230202a2073696e2832202a205049202a2074202b20616e676c6531202b20616e676c6532202b20616e676c6533292c2064697374616e6365546f4e65696768626f72203d2064697374286d79582c206d79592c2078202b206772696453697a652c2079292c2070726f766973696f6e616c487565203d2062617365487565202d20687565566172696174696f6e2c2068756556616c7565203d20286d61702864697374616e6365546f4e65696768626f722c20382c2035302c2070726f766973696f6e616c4875652c206261736548756529202520333630202b20333630292025203336303b2066696c6c2868756556616c75652c2073617475726174696f6e2c20313030293b20656c6c69707365286d79582c206d79592c20656c6c6970736553697a65293b207d207d2074202b3d2074537465703b207d202066756e6374696f6e2077696e646f77526573697a65642829207b20726573697a6543616e7661732877696e646f7757696474682c2077696e646f77486569676874293b207d206e657720703528293b3c2f7363726970743e3c2f626f64793e3c2f68746d6c3e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c68746d6c3e3c686561643e203c73637269707420747970653d22746578742f6a61766173637269707422207372633d2268747470733a2f2f63646e6a732e636c6f7564666c6172652e636f6d2f616a61782f6c6962732f70352e6a732f312e312e392f70352e6a7322203e3c2f7363726970743e203c7374796c653e2068746d6c2c20626f6479207b206f766572666c6f773a2068696464656e3b206d617267696e3a20303b2070616464696e673a20303b206261636b67726f756e643a77686974653b207d203c2f7374796c653e203c2f686561643e203c626f64793e203c6d61696e2069643d22746578744f75747075742d636f6e74656e74223e3c63616e766173207374796c653d2277696474683a203070783b206865696768743a203070783b223e3c2f63616e7661733e3c2f6d61696e3e203c73637269707420747970653d22746578742f6a617661736372697074223e636f6e7374206772696453697a65203d20a26469706673582212205370369b4d960367ef74c223d6534786e50bdf9ead5876a405b6144badde6d9664736f6c63430008130033
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.