Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
223 PTP
Holders
107
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PTPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PokerTicket
Compiler Version
v0.8.4+commit.c7e474f2
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 "./ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /* __________ __ ___________ __ .__ \______ \____ | | __ __________\__ ___/___ ____ _____/ |_| |__ ___________ | ___/ _ \| |/ // __ \_ __ \| | / _ \ / ___\_/ __ \ __\ | \_/ __ \_ __ \ | | ( <_> ) <\ ___/| | \/| |( <_> ) /_/ > ___/| | | Y \ ___/| | \/ |____| \____/|__|_ \\___ >__| |____| \____/\___ / \___ >__| |___| /\___ >__| \/ \/ /_____/ \/ \/ \/ */ contract PokerTicket is ERC721A, Ownable, ReentrancyGuard { using ECDSA for bytes32; event BaseURIChanged(string newBaseURI); event Withdraw(address indexed account, uint256 amount); enum Status { Pause, Alpha, WhitelistSale, PublicSale } enum TreeRootType { Alpha, Whitelist } struct MerkleRootConfig { bytes32 alphaRoot; bytes32 whitelistRoot; } uint64 public constant MAX_TOKEN = 10000; uint64 public constant MAX_TOKEN_PER_MINT = 3; uint256 public constant WHITELIST_PRICE = 0.03 ether; uint256 public constant PUBLIC_PRICE = 0.05 ether; MerkleRootConfig public merkleRootConfig; Status public status; string public baseURI; mapping (address => bool) public freeMintMark; address signer; constructor(string memory baseURI_, address signer_, MerkleRootConfig memory merkleRootConfig_) ERC721A("PokerTogether Pass", "PTP") { baseURI = baseURI_; signer = signer_; merkleRootConfig = merkleRootConfig_; status = Status.Alpha; } function giveaway(address[] calldata recipients_, uint64 numberOfTokens_) external onlyOwner nonReentrant { uint256 recipientsLength = recipients_.length; require(recipientsLength != 0 && numberOfTokens_ != 0); require(totalMinted() + recipientsLength * numberOfTokens_ <= MAX_TOKEN, "E10"); for (uint256 i = 0; i < recipientsLength; ++i) { _safeMint(recipients_[i], numberOfTokens_); } } function alphaSale(bytes32[] calldata proof_) external callerIsUser nonReentrant { require(status == Status.Alpha, "E01"); require(verifyAddress(_msgSender(), proof_, TreeRootType.Alpha), "E02"); require(!freeMintMark[_msgSender()], "E03"); _sale(1, 0); freeMintMark[_msgSender()] = true; } function whitelistSale(uint64 numberOfTokens_, bytes32[] calldata proof_) external payable callerIsUser nonReentrant { require(status == Status.WhitelistSale, "E04"); require(verifyAddress(_msgSender(), proof_, TreeRootType.Whitelist), "E05"); uint64 whitelistMinted = _getAux(_msgSender()) + numberOfTokens_; require(whitelistMinted <= 3, "E03"); _sale(numberOfTokens_, WHITELIST_PRICE); _setAux(_msgSender(), whitelistMinted); } function publicSale(uint64 numberOfTokens_) external payable callerIsUser nonReentrant { require(status == Status.PublicSale, "E06"); _sale(numberOfTokens_, PUBLIC_PRICE); } function _sale(uint64 numberOfTokens_, uint256 price_) internal { require(numberOfTokens_ > 0, "E07"); require(numberOfTokens_ <= MAX_TOKEN_PER_MINT, "E08"); require(totalMinted() + numberOfTokens_ <= MAX_TOKEN, "E10"); uint256 amount = price_ * numberOfTokens_; require(amount <= msg.value, "E09"); _safeMint(_msgSender(), numberOfTokens_); refundExcessPayment(amount); } function upgradePass(uint256 tokenId_, uint64 updatedLevel_, bytes memory signature_) external callerIsUser nonReentrant{ require(_exists(tokenId_),"E11"); TokenOwnership memory ownership = _ownerships[tokenId_]; require(ownership.addr == _msgSender(), "E12"); require(ownership.level < updatedLevel_, "E13"); require(verfiySignature(tokenId_, updatedLevel_, signature_), "E14"); _ownerships[tokenId_].level = updatedLevel_; } function refundExcessPayment(uint256 amount_) private { if (msg.value > amount_) { payable(_msgSender()).transfer(msg.value - amount_); } } function withdraw() external onlyOwner nonReentrant { uint256 balance = address(this).balance; payable(_msgSender()).transfer(balance); emit Withdraw(_msgSender(), balance); } function verifyAddress(address address_, bytes32[] calldata proof_, TreeRootType type_) public view returns (bool) { bytes32 root; if (type_ == TreeRootType.Alpha) { root = merkleRootConfig.alphaRoot; }else if (type_ == TreeRootType.Whitelist){ root = merkleRootConfig.whitelistRoot; } if (root == 0) { return false; } return MerkleProof.verify(proof_, root , keccak256(abi.encodePacked(address_))); } function verfiySignature(uint256 tokenId_, uint64 updatedLevel_, bytes memory signature_) internal view returns (bool) { bytes32 message = ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked(tokenId_, updatedLevel_, _msgSender(), this))); return (ECDSA.recover(message, signature_) == signer); } function totalMinted() public view returns (uint256) { return _totalMinted(); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); TokenOwnership memory ownership = _ownerships[tokenId]; return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, Strings.toString(ownership.level))) : ''; } function setBaseURI(string calldata baseURI_) external onlyOwner { baseURI = baseURI_; emit BaseURIChanged(baseURI_); } function setMerkleRootConfig(MerkleRootConfig calldata merkleRootConfig_) external onlyOwner { merkleRootConfig = merkleRootConfig_; } function setSignerAddress(address signer_) external onlyOwner { signer = signer_; } modifier callerIsUser() { require(tx.origin == _msgSender(), "E15"); _; } function setStatue(Status statue_) external onlyOwner { status = statue_; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Card Level uint64 level; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _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 _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary 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 { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ 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, tokenId.toString())) : ''; } /** * @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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, 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. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @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. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); _ownerships[startTokenId].level = uint64(1); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is 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 { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @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`. * * 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 calldata data ) external; /** * @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 ) external; /** * @dev Transfers `tokenId` token 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; /** * @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; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"address","name":"signer_","type":"address"},{"components":[{"internalType":"bytes32","name":"alphaRoot","type":"bytes32"},{"internalType":"bytes32","name":"whitelistRoot","type":"bytes32"}],"internalType":"struct PokerTicket.MerkleRootConfig","name":"merkleRootConfig_","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newBaseURI","type":"string"}],"name":"BaseURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MAX_TOKEN","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKEN_PER_MINT","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"alphaSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMintMark","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients_","type":"address[]"},{"internalType":"uint64","name":"numberOfTokens_","type":"uint64"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","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":"merkleRootConfig","outputs":[{"internalType":"bytes32","name":"alphaRoot","type":"bytes32"},{"internalType":"bytes32","name":"whitelistRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"numberOfTokens_","type":"uint64"}],"name":"publicSale","outputs":[],"stateMutability":"payable","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":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"alphaRoot","type":"bytes32"},{"internalType":"bytes32","name":"whitelistRoot","type":"bytes32"}],"internalType":"struct PokerTicket.MerkleRootConfig","name":"merkleRootConfig_","type":"tuple"}],"name":"setMerkleRootConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer_","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum PokerTicket.Status","name":"statue_","type":"uint8"}],"name":"setStatue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"enum PokerTicket.Status","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"uint64","name":"updatedLevel_","type":"uint64"},{"internalType":"bytes","name":"signature_","type":"bytes"}],"name":"upgradePass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"enum PokerTicket.TreeRootType","name":"type_","type":"uint8"}],"name":"verifyAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"numberOfTokens_","type":"uint64"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"whitelistSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620065f4380380620065f483398181016040528101906200003791906200045a565b6040518060400160405280601281526020017f506f6b6572546f676574686572205061737300000000000000000000000000008152506040518060400160405280600381526020017f50545000000000000000000000000000000000000000000000000000000000008152508160029080519060200190620000bb929190620002b7565b508060039080519060200190620000d4929190620002b7565b50620000e5620001e460201b60201c565b60008190555050506200010d62000101620001e960201b60201c565b620001f160201b60201c565b600160098190555082600d90805190602001906200012d929190620002b7565b5081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600a60008201518160000155602082015181600101559050506001600c60006101000a81548160ff02191690836003811115620001d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550505050620006ab565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002c5906200059c565b90600052602060002090601f016020900481019282620002e9576000855562000335565b82601f106200030457805160ff191683800117855562000335565b8280016001018555821562000335579182015b828111156200033457825182559160200191906001019062000317565b5b50905062000344919062000348565b5090565b5b808211156200036357600081600090555060010162000349565b5090565b60006200037e6200037884620004f2565b620004c9565b9050828152602081018484840111156200039757600080fd5b620003a484828562000566565b509392505050565b600081519050620003bd8162000677565b92915050565b600081519050620003d48162000691565b92915050565b600082601f830112620003ec57600080fd5b8151620003fe84826020860162000367565b91505092915050565b6000604082840312156200041a57600080fd5b620004266040620004c9565b905060006200043884828501620003c3565b60008301525060206200044e84828501620003c3565b60208301525092915050565b6000806000608084860312156200047057600080fd5b600084015167ffffffffffffffff8111156200048b57600080fd5b6200049986828701620003da565b9350506020620004ac86828701620003ac565b9250506040620004bf8682870162000407565b9150509250925092565b6000620004d5620004e8565b9050620004e38282620005d2565b919050565b6000604051905090565b600067ffffffffffffffff82111562000510576200050f62000637565b5b6200051b8262000666565b9050602081019050919050565b6000620005358262000546565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b838110156200058657808201518184015260208101905062000569565b8381111562000596576000848401525b50505050565b60006002820490506001821680620005b557607f821691505b60208210811415620005cc57620005cb62000608565b5b50919050565b620005dd8262000666565b810181811067ffffffffffffffff82111715620005ff57620005fe62000637565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b620006828162000528565b81146200068e57600080fd5b50565b6200069c816200053c565b8114620006a857600080fd5b50565b615f3980620006bb6000396000f3fe60806040526004361061021a5760003560e01c80636352211e11610123578063a2309ff8116100ab578063e2bb193a1161006f578063e2bb193a146107c0578063e35be65c146107dc578063e61f844014610805578063e985e9c514610821578063f2fde38b1461085e5761021a565b8063a2309ff8146106dd578063b88d4fde14610708578063bd3eee3814610731578063c87b56dd1461075a578063cad77cad146107975761021a565b8063715018a6116100f2578063715018a61461061b5780638da5cb5b1461063257806390fdc2971461065d57806395d89b4114610689578063a22cb465146106b45761021a565b80636352211e1461054b5780636c0360eb146105885780636e1bd323146105b357806370a08231146105de5761021a565b806323b872dd116101a657806342842e0e1161017557806342842e0e1461046657806344e3841c1461048f57806355f804b3146104cc578063576fd94d146104f5578063611f3f10146105205761021a565b806323b872dd146103c05780632bb20c04146103e95780633b953252146104125780633ccfd60b1461044f5761021a565b8063095ea7b3116101ed578063095ea7b3146102ed57806317e7f2951461031657806318160ddd146103415780631842668e1461036c578063200d2ed2146103955761021a565b806301ffc9a71461021f578063046dc1661461025c57806306fdde0314610285578063081812fc146102b0575b600080fd5b34801561022b57600080fd5b506102466004803603810190610241919061476b565b610887565b6040516102539190614fcf565b60405180910390f35b34801561026857600080fd5b50610283600480360381019061027e91906144bb565b610969565b005b34801561029157600080fd5b5061029a610a29565b6040516102a79190615097565b60405180910390f35b3480156102bc57600080fd5b506102d760048036038101906102d29190614854565b610abb565b6040516102e49190614f68565b60405180910390f35b3480156102f957600080fd5b50610314600480360381019061030f9190614692565b610b37565b005b34801561032257600080fd5b5061032b610c42565b6040516103389190615379565b60405180910390f35b34801561034d57600080fd5b50610356610c4d565b6040516103639190615379565b60405180910390f35b34801561037857600080fd5b50610393600480360381019061038e919061487d565b610c64565b005b3480156103a157600080fd5b506103aa610fce565b6040516103b79190615058565b60405180910390f35b3480156103cc57600080fd5b506103e760048036038101906103e29190614520565b610fe1565b005b3480156103f557600080fd5b50610410600480360381019061040b919061482b565b610ff1565b005b34801561041e57600080fd5b50610439600480360381019061043491906144bb565b611082565b6040516104469190614fcf565b60405180910390f35b34801561045b57600080fd5b506104646110a2565b005b34801561047257600080fd5b5061048d60048036038101906104889190614520565b61121f565b005b34801561049b57600080fd5b506104b660048036038101906104b191906145ea565b61123f565b6040516104c39190614fcf565b60405180910390f35b3480156104d857600080fd5b506104f360048036038101906104ee91906147e6565b6113dd565b005b34801561050157600080fd5b5061050a6114a8565b6040516105179190615394565b60405180910390f35b34801561052c57600080fd5b506105356114ad565b6040516105429190615379565b60405180910390f35b34801561055757600080fd5b50610572600480360381019061056d9190614854565b6114b8565b60405161057f9190614f68565b60405180910390f35b34801561059457600080fd5b5061059d6114ce565b6040516105aa9190615097565b60405180910390f35b3480156105bf57600080fd5b506105c861155c565b6040516105d59190615394565b60405180910390f35b3480156105ea57600080fd5b50610605600480360381019061060091906144bb565b611562565b6040516106129190615379565b60405180910390f35b34801561062757600080fd5b50610630611632565b005b34801561063e57600080fd5b506106476116ba565b6040516106549190614f68565b60405180910390f35b34801561066957600080fd5b506106726116e4565b604051610680929190614fea565b60405180910390f35b34801561069557600080fd5b5061069e6116f6565b6040516106ab9190615097565b60405180910390f35b3480156106c057600080fd5b506106db60048036038101906106d69190614656565b611788565b005b3480156106e957600080fd5b506106f2611900565b6040516106ff9190615379565b60405180910390f35b34801561071457600080fd5b5061072f600480360381019061072a919061456f565b61190f565b005b34801561073d57600080fd5b50610758600480360381019061075391906147bd565b61198b565b005b34801561076657600080fd5b50610781600480360381019061077c9190614854565b611a5a565b60405161078e9190615097565b60405180910390f35b3480156107a357600080fd5b506107be60048036038101906107b99190614726565b611c00565b005b6107da60048036038101906107d591906148e4565b611ee3565b005b3480156107e857600080fd5b5061080360048036038101906107fe91906146ce565b612083565b005b61081f600480360381019061081a919061490d565b61227c565b005b34801561082d57600080fd5b50610848600480360381019061084391906144e4565b6124f1565b6040516108559190614fcf565b60405180910390f35b34801561086a57600080fd5b50610885600480360381019061088091906144bb565b612585565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061095257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061096257506109618261267d565b5b9050919050565b6109716126e7565b73ffffffffffffffffffffffffffffffffffffffff1661098f6116ba565b73ffffffffffffffffffffffffffffffffffffffff16146109e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109dc906152f9565b60405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060028054610a3890615732565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6490615732565b8015610ab15780601f10610a8657610100808354040283529160200191610ab1565b820191906000526020600020905b815481529060010190602001808311610a9457829003601f168201915b5050505050905090565b6000610ac6826126ef565b610afc576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b42826114b8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610baa576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bc96126e7565b73ffffffffffffffffffffffffffffffffffffffff1614158015610bfb5750610bf981610bf46126e7565b6124f1565b155b15610c32576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c3d83838361273d565b505050565b666a94d74f43000081565b6000610c576127ef565b6001546000540303905090565b610c6c6126e7565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610cd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd090615319565b60405180910390fd5b60026009541415610d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1690615359565b60405180910390fd5b6002600981905550610d30836126ef565b610d6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6690615299565b60405180910390fd5b6000600460008581526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581526020016001820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050610e6e6126e7565b73ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610edf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed690615339565b60405180910390fd5b8267ffffffffffffffff16816060015167ffffffffffffffff1610610f39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f30906152b9565b60405180910390fd5b610f448484846127f4565b610f83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7a90615239565b60405180910390fd5b826004600086815260200190815260200160002060010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550506001600981905550505050565b600c60009054906101000a900460ff1681565b610fec838383612899565b505050565b610ff96126e7565b73ffffffffffffffffffffffffffffffffffffffff166110176116ba565b73ffffffffffffffffffffffffffffffffffffffff161461106d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611064906152f9565b60405180910390fd5b80600a818161107c9190615e37565b90505050565b600e6020528060005260406000206000915054906101000a900460ff1681565b6110aa6126e7565b73ffffffffffffffffffffffffffffffffffffffff166110c86116ba565b73ffffffffffffffffffffffffffffffffffffffff161461111e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611115906152f9565b60405180910390fd5b60026009541415611164576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115b90615359565b60405180910390fd5b600260098190555060004790506111796126e7565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156111be573d6000803e3d6000fd5b506111c76126e7565b73ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243648260405161120c9190615379565b60405180910390a2506001600981905550565b61123a8383836040518060200160405280600081525061190f565b505050565b6000806000600181111561127c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8360018111156112b5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156112c857600a60000154905061134a565b600180811115611301577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b83600181111561133a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561134957600a6001015490505b5b6000801b81141561135f5760009150506113d5565b6113d1858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505082886040516020016113b69190614eb5565b60405160208183030381529060405280519060200120612d4f565b9150505b949350505050565b6113e56126e7565b73ffffffffffffffffffffffffffffffffffffffff166114036116ba565b73ffffffffffffffffffffffffffffffffffffffff1614611459576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611450906152f9565b60405180910390fd5b8181600d919061146a9291906141bb565b507f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf6828260405161149c929190615073565b60405180910390a15050565b600381565b66b1a2bc2ec5000081565b60006114c382612d66565b600001519050919050565b600d80546114db90615732565b80601f016020809104026020016040519081016040528092919081815260200182805461150790615732565b80156115545780601f1061152957610100808354040283529160200191611554565b820191906000526020600020905b81548152906001019060200180831161153757829003601f168201915b505050505081565b61271081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115ca576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61163a6126e7565b73ffffffffffffffffffffffffffffffffffffffff166116586116ba565b73ffffffffffffffffffffffffffffffffffffffff16146116ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a5906152f9565b60405180910390fd5b6116b86000613059565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600a8060000154908060010154905082565b60606003805461170590615732565b80601f016020809104026020016040519081016040528092919081815260200182805461173190615732565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b5050505050905090565b6117906126e7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117f5576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006118026126e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118af6126e7565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118f49190614fcf565b60405180910390a35050565b600061190a61311f565b905090565b61191a848484612899565b6119398373ffffffffffffffffffffffffffffffffffffffff16613132565b801561194e575061194c84848484613155565b155b15611985576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6119936126e7565b73ffffffffffffffffffffffffffffffffffffffff166119b16116ba565b73ffffffffffffffffffffffffffffffffffffffff1614611a07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119fe906152f9565b60405180910390fd5b80600c60006101000a81548160ff02191690836003811115611a52577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555050565b6060611a65826126ef565b611a9b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460008481526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581526020016001820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff168152505090506000600d8054611ba190615732565b90501415611bbe5760405180602001604052806000815250611bf8565b600d611bd7826060015167ffffffffffffffff166132b5565b604051602001611be8929190614ed0565b6040516020818303038152906040525b915050919050565b611c086126e7565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611c75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6c90615319565b60405180910390fd5b60026009541415611cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb290615359565b60405180910390fd5b600260098190555060016003811115611cfd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600c60009054906101000a900460ff166003811115611d45577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7c906150d9565b60405180910390fd5b611d99611d906126e7565b8383600061123f565b611dd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dcf906151f9565b60405180910390fd5b600e6000611de46126e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6390615219565b60405180910390fd5b611e7860016000613462565b6001600e6000611e866126e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016009819055505050565b611eeb6126e7565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611f58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4f90615319565b60405180910390fd5b60026009541415611f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9590615359565b60405180910390fd5b6002600981905550600380811115611fdf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600c60009054906101000a900460ff166003811115612027577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14612067576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205e90615119565b60405180910390fd5b6120788166b1a2bc2ec50000613462565b600160098190555050565b61208b6126e7565b73ffffffffffffffffffffffffffffffffffffffff166120a96116ba565b73ffffffffffffffffffffffffffffffffffffffff16146120ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f6906152f9565b60405180910390fd5b60026009541415612145576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213c90615359565b60405180910390fd5b6002600981905550600083839050905060008114158015612171575060008267ffffffffffffffff1614155b61217a57600080fd5b61271067ffffffffffffffff168267ffffffffffffffff168261219d9190615522565b6121a5611900565b6121af919061545d565b11156121f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e7906151d9565b60405180910390fd5b60005b8181101561226d5761225c858583818110612237577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061224c91906144bb565b8467ffffffffffffffff166135f8565b8061226690615795565b90506121f3565b50506001600981905550505050565b6122846126e7565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146122f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e890615319565b60405180910390fd5b60026009541415612337576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232e90615359565b60405180910390fd5b600260098190555060026003811115612379577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600c60009054906101000a900460ff1660038111156123c1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14612401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f890615259565b60405180910390fd5b61241561240c6126e7565b8383600161123f565b612454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244b90615179565b60405180910390fd5b6000836124676124626126e7565b613616565b61247191906154b3565b905060038167ffffffffffffffff1611156124c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b890615219565b60405180910390fd5b6124d284666a94d74f430000613462565b6124e36124dd6126e7565b82613676565b506001600981905550505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61258d6126e7565b73ffffffffffffffffffffffffffffffffffffffff166125ab6116ba565b73ffffffffffffffffffffffffffffffffffffffff1614612601576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f8906152f9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612671576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266890615159565b60405180910390fd5b61267a81613059565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6000816126fa6127ef565b11158015612709575060005482105b8015612736575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b60008061283385856128046126e7565b306040516020016128189493929190614f1a565b604051602081830303815290604052805190602001206136e3565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128788285613713565b73ffffffffffffffffffffffffffffffffffffffff16149150509392505050565b60006128a482612d66565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461290f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166129306126e7565b73ffffffffffffffffffffffffffffffffffffffff16148061295f575061295e856129596126e7565b6124f1565b5b806129a4575061296d6126e7565b73ffffffffffffffffffffffffffffffffffffffff1661298c84610abb565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806129dd576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612a44576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612a51858585600161373a565b612a5d6000848761273d565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612cdd576000548214612cdc57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d488585856001613740565b5050505050565b600082612d5c8584613746565b1490509392505050565b612d6e614241565b600082905080612d7c6127ef565b11158015612d8b575060005481105b15613022576000600460008381526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581526020016001820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050806040015161302057600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612ed2578092505050613054565b5b60011561301f57818060019003925050600460008381526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581526020016001820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461301a578092505050613054565b612ed3565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006131296127ef565b60005403905090565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261317b6126e7565b8786866040518563ffffffff1660e01b815260040161319d9493929190614f83565b602060405180830381600087803b1580156131b757600080fd5b505af19250505080156131e857506040513d601f19601f820116820180604052508101906131e59190614794565b60015b613262573d8060008114613218576040519150601f19603f3d011682016040523d82523d6000602084013e61321d565b606091505b5060008151141561325a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008214156132fd576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061345d565b600082905060005b6000821461332f57808061331890615795565b915050600a8261332891906154f1565b9150613305565b60008167ffffffffffffffff811115613371577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133a35781602001600182028036833780820191505090505b5090505b60008514613456576001826133bc919061557c565b9150600a856133cb9190615828565b60306133d7919061545d565b60f81b818381518110613413577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561344f91906154f1565b94506133a7565b8093505050505b919050565b60008267ffffffffffffffff16116134af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a6906151b9565b60405180910390fd5b600367ffffffffffffffff168267ffffffffffffffff161115613507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134fe906152d9565b60405180910390fd5b61271067ffffffffffffffff168267ffffffffffffffff16613527611900565b613531919061545d565b1115613572576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613569906151d9565b60405180910390fd5b60008267ffffffffffffffff168261358a9190615522565b9050348111156135cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135c6906150f9565b60405180910390fd5b6135ea6135da6126e7565b8467ffffffffffffffff166135f8565b6135f3816137e1565b505050565b613612828260405180602001604052806000815250613846565b5050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160189054906101000a900467ffffffffffffffff169050919050565b80600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b6000816040516020016136f69190614ef4565b604051602081830303815290604052805190602001209050919050565b60008060006137228585613858565b9150915061372f816138db565b819250505092915050565b50505050565b50505050565b60008082905060005b84518110156137d6576000858281518110613793577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116137b5576137ae8382613c2c565b92506137c2565b6137bf8184613c2c565b92505b5080806137ce90615795565b91505061374f565b508091505092915050565b80341115613843576137f16126e7565b73ffffffffffffffffffffffffffffffffffffffff166108fc8234613816919061557c565b9081150290604051600060405180830381858888f19350505050158015613841573d6000803e3d6000fd5b505b50565b6138538383836001613c43565b505050565b60008060418351141561389a5760008060006020860151925060408601519150606086015160001a905061388e8782858561404f565b945094505050506138d4565b6040835114156138cb5760008060208501519150604085015190506138c086838361415c565b9350935050506138d4565b60006002915091505b9250929050565b60006004811115613915577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561394e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561395957613c29565b60016004811115613993577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156139cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613a0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a04906150b9565b60405180910390fd5b60026004811115613a47577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613a80577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613ac1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ab890615139565b60405180910390fd5b60036004811115613afb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613b34577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613b75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b6c90615199565b60405180910390fd5b600480811115613bae577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613be7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613c28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c1f90615279565b60405180910390fd5b5b50565b600082600052816020526040600020905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613cb0576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613ceb576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613cf8600086838761373a565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060016004600083815260200190815260200160002060010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008582019050838015613f005750613eff8773ffffffffffffffffffffffffffffffffffffffff16613132565b5b15613fc6575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613f756000888480600101955088613155565b613fab576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821415613f06578260005414613fc157600080fd5b614032565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613fc7575b8160008190555050506140486000868387613740565b5050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561408a576000600391509150614153565b601b8560ff16141580156140a25750601c8560ff1614155b156140b4576000600491509150614153565b6000600187878787604051600081526020016040526040516140d99493929190615013565b6020604051602081039080840390855afa1580156140fb573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561414a57600060019250925050614153565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c61419f919061545d565b90506141ad8782888561404f565b935093505050935093915050565b8280546141c790615732565b90600052602060002090601f0160209004810192826141e95760008555614230565b82601f1061420257803560ff1916838001178555614230565b82800160010185558215614230579182015b8281111561422f578235825591602001919060010190614214565b5b50905061423d9190614295565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600067ffffffffffffffff1681525090565b5b808211156142ae576000816000905550600101614296565b5090565b60006142c56142c0846153d4565b6153af565b9050828152602081018484840111156142dd57600080fd5b6142e88482856156aa565b509392505050565b6000813590506142ff81615e59565b92915050565b60008083601f84011261431757600080fd5b8235905067ffffffffffffffff81111561433057600080fd5b60208301915083602082028301111561434857600080fd5b9250929050565b60008083601f84011261436157600080fd5b8235905067ffffffffffffffff81111561437a57600080fd5b60208301915083602082028301111561439257600080fd5b9250929050565b6000813590506143a881615e70565b92915050565b6000813590506143bd81615e9e565b92915050565b6000815190506143d281615e9e565b92915050565b600082601f8301126143e957600080fd5b81356143f98482602086016142b2565b91505092915050565b60008135905061441181615eb5565b92915050565b60008135905061442681615ec5565b92915050565b60008083601f84011261443e57600080fd5b8235905067ffffffffffffffff81111561445757600080fd5b60208301915083600182028301111561446f57600080fd5b9250929050565b60006040828403121561448857600080fd5b81905092915050565b6000813590506144a081615ed5565b92915050565b6000813590506144b581615eec565b92915050565b6000602082840312156144cd57600080fd5b60006144db848285016142f0565b91505092915050565b600080604083850312156144f757600080fd5b6000614505858286016142f0565b9250506020614516858286016142f0565b9150509250929050565b60008060006060848603121561453557600080fd5b6000614543868287016142f0565b9350506020614554868287016142f0565b925050604061456586828701614491565b9150509250925092565b6000806000806080858703121561458557600080fd5b6000614593878288016142f0565b94505060206145a4878288016142f0565b93505060406145b587828801614491565b925050606085013567ffffffffffffffff8111156145d257600080fd5b6145de878288016143d8565b91505092959194509250565b6000806000806060858703121561460057600080fd5b600061460e878288016142f0565b945050602085013567ffffffffffffffff81111561462b57600080fd5b6146378782880161434f565b9350935050604061464a87828801614417565b91505092959194509250565b6000806040838503121561466957600080fd5b6000614677858286016142f0565b925050602061468885828601614399565b9150509250929050565b600080604083850312156146a557600080fd5b60006146b3858286016142f0565b92505060206146c485828601614491565b9150509250929050565b6000806000604084860312156146e357600080fd5b600084013567ffffffffffffffff8111156146fd57600080fd5b61470986828701614305565b9350935050602061471c868287016144a6565b9150509250925092565b6000806020838503121561473957600080fd5b600083013567ffffffffffffffff81111561475357600080fd5b61475f8582860161434f565b92509250509250929050565b60006020828403121561477d57600080fd5b600061478b848285016143ae565b91505092915050565b6000602082840312156147a657600080fd5b60006147b4848285016143c3565b91505092915050565b6000602082840312156147cf57600080fd5b60006147dd84828501614402565b91505092915050565b600080602083850312156147f957600080fd5b600083013567ffffffffffffffff81111561481357600080fd5b61481f8582860161442c565b92509250509250929050565b60006040828403121561483d57600080fd5b600061484b84828501614476565b91505092915050565b60006020828403121561486657600080fd5b600061487484828501614491565b91505092915050565b60008060006060848603121561489257600080fd5b60006148a086828701614491565b93505060206148b1868287016144a6565b925050604084013567ffffffffffffffff8111156148ce57600080fd5b6148da868287016143d8565b9150509250925092565b6000602082840312156148f657600080fd5b6000614904848285016144a6565b91505092915050565b60008060006040848603121561492257600080fd5b6000614930868287016144a6565b935050602084013567ffffffffffffffff81111561494d57600080fd5b6149598682870161434f565b92509250509250925092565b61496e816155b0565b82525050565b614985614980826155b0565b6157de565b82525050565b614994816155c2565b82525050565b6149a3816155ce565b82525050565b6149ba6149b5826155ce565b6157f0565b82525050565b60006149cb8261541a565b6149d58185615430565b93506149e58185602086016156b9565b6149ee8161596c565b840191505092915050565b614a0a614a0582615674565b6157de565b82525050565b614a1981615698565b82525050565b6000614a2b8385615441565b9350614a388385846156aa565b614a418361596c565b840190509392505050565b6000614a5782615425565b614a618185615441565b9350614a718185602086016156b9565b614a7a8161596c565b840191505092915050565b6000614a9082615425565b614a9a8185615452565b9350614aaa8185602086016156b9565b80840191505092915050565b60008154614ac381615732565b614acd8186615452565b94506001821660008114614ae85760018114614af957614b2c565b60ff19831686528186019350614b2c565b614b0285615405565b60005b83811015614b2457815481890152600182019150602081019050614b05565b838801955050505b50505092915050565b6000614b42601883615441565b9150614b4d826159b1565b602082019050919050565b6000614b65600383615441565b9150614b70826159da565b602082019050919050565b6000614b88600383615441565b9150614b9382615a03565b602082019050919050565b6000614bab600383615441565b9150614bb682615a2c565b602082019050919050565b6000614bce601f83615441565b9150614bd982615a55565b602082019050919050565b6000614bf1601c83615452565b9150614bfc82615a7e565b601c82019050919050565b6000614c14602683615441565b9150614c1f82615aa7565b604082019050919050565b6000614c37600383615441565b9150614c4282615af6565b602082019050919050565b6000614c5a602283615441565b9150614c6582615b1f565b604082019050919050565b6000614c7d600383615441565b9150614c8882615b6e565b602082019050919050565b6000614ca0600383615441565b9150614cab82615b97565b602082019050919050565b6000614cc3600383615441565b9150614cce82615bc0565b602082019050919050565b6000614ce6600383615441565b9150614cf182615be9565b602082019050919050565b6000614d09600383615441565b9150614d1482615c12565b602082019050919050565b6000614d2c600383615441565b9150614d3782615c3b565b602082019050919050565b6000614d4f602283615441565b9150614d5a82615c64565b604082019050919050565b6000614d72600383615441565b9150614d7d82615cb3565b602082019050919050565b6000614d95600383615441565b9150614da082615cdc565b602082019050919050565b6000614db8600383615441565b9150614dc382615d05565b602082019050919050565b6000614ddb602083615441565b9150614de682615d2e565b602082019050919050565b6000614dfe600383615441565b9150614e0982615d57565b602082019050919050565b6000614e21600383615441565b9150614e2c82615d80565b602082019050919050565b6000614e44601f83615441565b9150614e4f82615da9565b602082019050919050565b614e6381615637565b82525050565b614e7a614e7582615637565b61580c565b82525050565b614e8981615641565b82525050565b614ea0614e9b82615641565b615816565b82525050565b614eaf81615655565b82525050565b6000614ec18284614974565b60148201915081905092915050565b6000614edc8285614ab6565b9150614ee88284614a85565b91508190509392505050565b6000614eff82614be4565b9150614f0b82846149a9565b60208201915081905092915050565b6000614f268287614e69565b602082019150614f368286614e8f565b600882019150614f468285614974565b601482019150614f5682846149f9565b60148201915081905095945050505050565b6000602082019050614f7d6000830184614965565b92915050565b6000608082019050614f986000830187614965565b614fa56020830186614965565b614fb26040830185614e5a565b8181036060830152614fc481846149c0565b905095945050505050565b6000602082019050614fe4600083018461498b565b92915050565b6000604082019050614fff600083018561499a565b61500c602083018461499a565b9392505050565b6000608082019050615028600083018761499a565b6150356020830186614ea6565b615042604083018561499a565b61504f606083018461499a565b95945050505050565b600060208201905061506d6000830184614a10565b92915050565b6000602082019050818103600083015261508e818486614a1f565b90509392505050565b600060208201905081810360008301526150b18184614a4c565b905092915050565b600060208201905081810360008301526150d281614b35565b9050919050565b600060208201905081810360008301526150f281614b58565b9050919050565b6000602082019050818103600083015261511281614b7b565b9050919050565b6000602082019050818103600083015261513281614b9e565b9050919050565b6000602082019050818103600083015261515281614bc1565b9050919050565b6000602082019050818103600083015261517281614c07565b9050919050565b6000602082019050818103600083015261519281614c2a565b9050919050565b600060208201905081810360008301526151b281614c4d565b9050919050565b600060208201905081810360008301526151d281614c70565b9050919050565b600060208201905081810360008301526151f281614c93565b9050919050565b6000602082019050818103600083015261521281614cb6565b9050919050565b6000602082019050818103600083015261523281614cd9565b9050919050565b6000602082019050818103600083015261525281614cfc565b9050919050565b6000602082019050818103600083015261527281614d1f565b9050919050565b6000602082019050818103600083015261529281614d42565b9050919050565b600060208201905081810360008301526152b281614d65565b9050919050565b600060208201905081810360008301526152d281614d88565b9050919050565b600060208201905081810360008301526152f281614dab565b9050919050565b6000602082019050818103600083015261531281614dce565b9050919050565b6000602082019050818103600083015261533281614df1565b9050919050565b6000602082019050818103600083015261535281614e14565b9050919050565b6000602082019050818103600083015261537281614e37565b9050919050565b600060208201905061538e6000830184614e5a565b92915050565b60006020820190506153a96000830184614e80565b92915050565b60006153b96153ca565b90506153c58282615764565b919050565b6000604051905090565b600067ffffffffffffffff8211156153ef576153ee615915565b5b6153f88261596c565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061546882615637565b915061547383615637565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156154a8576154a7615859565b5b828201905092915050565b60006154be82615641565b91506154c983615641565b92508267ffffffffffffffff038211156154e6576154e5615859565b5b828201905092915050565b60006154fc82615637565b915061550783615637565b92508261551757615516615888565b5b828204905092915050565b600061552d82615637565b915061553883615637565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561557157615570615859565b5b828202905092915050565b600061558782615637565b915061559283615637565b9250828210156155a5576155a4615859565b5b828203905092915050565b60006155bb82615617565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600081905061561282615e45565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b600061566d826155ce565b9050919050565b600061567f82615686565b9050919050565b600061569182615617565b9050919050565b60006156a382615604565b9050919050565b82818337600083830152505050565b60005b838110156156d75780820151818401526020810190506156bc565b838111156156e6576000848401525b50505050565b6000810160008301806156fe81615956565b905061570a8184615e14565b50505060018101602083018061571f81615956565b905061572b8184615e14565b5050505050565b6000600282049050600182168061574a57607f821691505b6020821081141561575e5761575d6158e6565b5b50919050565b61576d8261596c565b810181811067ffffffffffffffff8211171561578c5761578b615915565b5b80604052505050565b60006157a082615637565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157d3576157d2615859565b5b600182019050919050565b60006157e9826157fa565b9050919050565b6000819050919050565b600061580582615997565b9050919050565b6000819050919050565b60006158218261598a565b9050919050565b600061583382615637565b915061583e83615637565b92508261584e5761584d615888565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600061594f826159a4565b9050919050565b6000813561596381615e87565b80915050919050565b6000601f19601f8301169050919050565b60008160001b9050919050565b60008160c01b9050919050565b60008160601b9050919050565b60008160001c9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f4530310000000000000000000000000000000000000000000000000000000000600082015250565b7f4530390000000000000000000000000000000000000000000000000000000000600082015250565b7f4530360000000000000000000000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4530350000000000000000000000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4530370000000000000000000000000000000000000000000000000000000000600082015250565b7f4531300000000000000000000000000000000000000000000000000000000000600082015250565b7f4530320000000000000000000000000000000000000000000000000000000000600082015250565b7f4530330000000000000000000000000000000000000000000000000000000000600082015250565b7f4531340000000000000000000000000000000000000000000000000000000000600082015250565b7f4530340000000000000000000000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4531310000000000000000000000000000000000000000000000000000000000600082015250565b7f4531330000000000000000000000000000000000000000000000000000000000600082015250565b7f4530380000000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4531350000000000000000000000000000000000000000000000000000000000600082015250565b7f4531320000000000000000000000000000000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff615dfe8461597d565b9350801983169250808416831791505092915050565b615e1d82615662565b615e30615e2982615944565b8354615dd2565b8255505050565b615e4182826156ec565b5050565b60048110615e5657615e556158b7565b5b50565b615e62816155b0565b8114615e6d57600080fd5b50565b615e79816155c2565b8114615e8457600080fd5b50565b615e90816155ce565b8114615e9b57600080fd5b50565b615ea7816155d8565b8114615eb257600080fd5b50565b60048110615ec257600080fd5b50565b60028110615ed257600080fd5b50565b615ede81615637565b8114615ee957600080fd5b50565b615ef581615641565b8114615f0057600080fd5b5056fea2646970667358221220933be838dc2bed6241dd9a3eb6a7f402841a32627a1973398ec0edb72a5ad13c64736f6c634300080400330000000000000000000000000000000000000000000000000000000000000080000000000000000000000000ef1e55e9795ad0d1c39bdc18c6de0708072ba1a1d4bc7d442049588a35681da273ca87c0f428f3e4af3685c2f1c7332231998a5f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5774733146327375616f39453652334e7377626a7659334e5a61644c6648777053684b43756f48716146394b2f00000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80636352211e11610123578063a2309ff8116100ab578063e2bb193a1161006f578063e2bb193a146107c0578063e35be65c146107dc578063e61f844014610805578063e985e9c514610821578063f2fde38b1461085e5761021a565b8063a2309ff8146106dd578063b88d4fde14610708578063bd3eee3814610731578063c87b56dd1461075a578063cad77cad146107975761021a565b8063715018a6116100f2578063715018a61461061b5780638da5cb5b1461063257806390fdc2971461065d57806395d89b4114610689578063a22cb465146106b45761021a565b80636352211e1461054b5780636c0360eb146105885780636e1bd323146105b357806370a08231146105de5761021a565b806323b872dd116101a657806342842e0e1161017557806342842e0e1461046657806344e3841c1461048f57806355f804b3146104cc578063576fd94d146104f5578063611f3f10146105205761021a565b806323b872dd146103c05780632bb20c04146103e95780633b953252146104125780633ccfd60b1461044f5761021a565b8063095ea7b3116101ed578063095ea7b3146102ed57806317e7f2951461031657806318160ddd146103415780631842668e1461036c578063200d2ed2146103955761021a565b806301ffc9a71461021f578063046dc1661461025c57806306fdde0314610285578063081812fc146102b0575b600080fd5b34801561022b57600080fd5b506102466004803603810190610241919061476b565b610887565b6040516102539190614fcf565b60405180910390f35b34801561026857600080fd5b50610283600480360381019061027e91906144bb565b610969565b005b34801561029157600080fd5b5061029a610a29565b6040516102a79190615097565b60405180910390f35b3480156102bc57600080fd5b506102d760048036038101906102d29190614854565b610abb565b6040516102e49190614f68565b60405180910390f35b3480156102f957600080fd5b50610314600480360381019061030f9190614692565b610b37565b005b34801561032257600080fd5b5061032b610c42565b6040516103389190615379565b60405180910390f35b34801561034d57600080fd5b50610356610c4d565b6040516103639190615379565b60405180910390f35b34801561037857600080fd5b50610393600480360381019061038e919061487d565b610c64565b005b3480156103a157600080fd5b506103aa610fce565b6040516103b79190615058565b60405180910390f35b3480156103cc57600080fd5b506103e760048036038101906103e29190614520565b610fe1565b005b3480156103f557600080fd5b50610410600480360381019061040b919061482b565b610ff1565b005b34801561041e57600080fd5b50610439600480360381019061043491906144bb565b611082565b6040516104469190614fcf565b60405180910390f35b34801561045b57600080fd5b506104646110a2565b005b34801561047257600080fd5b5061048d60048036038101906104889190614520565b61121f565b005b34801561049b57600080fd5b506104b660048036038101906104b191906145ea565b61123f565b6040516104c39190614fcf565b60405180910390f35b3480156104d857600080fd5b506104f360048036038101906104ee91906147e6565b6113dd565b005b34801561050157600080fd5b5061050a6114a8565b6040516105179190615394565b60405180910390f35b34801561052c57600080fd5b506105356114ad565b6040516105429190615379565b60405180910390f35b34801561055757600080fd5b50610572600480360381019061056d9190614854565b6114b8565b60405161057f9190614f68565b60405180910390f35b34801561059457600080fd5b5061059d6114ce565b6040516105aa9190615097565b60405180910390f35b3480156105bf57600080fd5b506105c861155c565b6040516105d59190615394565b60405180910390f35b3480156105ea57600080fd5b50610605600480360381019061060091906144bb565b611562565b6040516106129190615379565b60405180910390f35b34801561062757600080fd5b50610630611632565b005b34801561063e57600080fd5b506106476116ba565b6040516106549190614f68565b60405180910390f35b34801561066957600080fd5b506106726116e4565b604051610680929190614fea565b60405180910390f35b34801561069557600080fd5b5061069e6116f6565b6040516106ab9190615097565b60405180910390f35b3480156106c057600080fd5b506106db60048036038101906106d69190614656565b611788565b005b3480156106e957600080fd5b506106f2611900565b6040516106ff9190615379565b60405180910390f35b34801561071457600080fd5b5061072f600480360381019061072a919061456f565b61190f565b005b34801561073d57600080fd5b50610758600480360381019061075391906147bd565b61198b565b005b34801561076657600080fd5b50610781600480360381019061077c9190614854565b611a5a565b60405161078e9190615097565b60405180910390f35b3480156107a357600080fd5b506107be60048036038101906107b99190614726565b611c00565b005b6107da60048036038101906107d591906148e4565b611ee3565b005b3480156107e857600080fd5b5061080360048036038101906107fe91906146ce565b612083565b005b61081f600480360381019061081a919061490d565b61227c565b005b34801561082d57600080fd5b50610848600480360381019061084391906144e4565b6124f1565b6040516108559190614fcf565b60405180910390f35b34801561086a57600080fd5b50610885600480360381019061088091906144bb565b612585565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061095257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061096257506109618261267d565b5b9050919050565b6109716126e7565b73ffffffffffffffffffffffffffffffffffffffff1661098f6116ba565b73ffffffffffffffffffffffffffffffffffffffff16146109e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109dc906152f9565b60405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060028054610a3890615732565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6490615732565b8015610ab15780601f10610a8657610100808354040283529160200191610ab1565b820191906000526020600020905b815481529060010190602001808311610a9457829003601f168201915b5050505050905090565b6000610ac6826126ef565b610afc576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b42826114b8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610baa576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bc96126e7565b73ffffffffffffffffffffffffffffffffffffffff1614158015610bfb5750610bf981610bf46126e7565b6124f1565b155b15610c32576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c3d83838361273d565b505050565b666a94d74f43000081565b6000610c576127ef565b6001546000540303905090565b610c6c6126e7565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610cd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd090615319565b60405180910390fd5b60026009541415610d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1690615359565b60405180910390fd5b6002600981905550610d30836126ef565b610d6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6690615299565b60405180910390fd5b6000600460008581526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581526020016001820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050610e6e6126e7565b73ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610edf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed690615339565b60405180910390fd5b8267ffffffffffffffff16816060015167ffffffffffffffff1610610f39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f30906152b9565b60405180910390fd5b610f448484846127f4565b610f83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7a90615239565b60405180910390fd5b826004600086815260200190815260200160002060010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550506001600981905550505050565b600c60009054906101000a900460ff1681565b610fec838383612899565b505050565b610ff96126e7565b73ffffffffffffffffffffffffffffffffffffffff166110176116ba565b73ffffffffffffffffffffffffffffffffffffffff161461106d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611064906152f9565b60405180910390fd5b80600a818161107c9190615e37565b90505050565b600e6020528060005260406000206000915054906101000a900460ff1681565b6110aa6126e7565b73ffffffffffffffffffffffffffffffffffffffff166110c86116ba565b73ffffffffffffffffffffffffffffffffffffffff161461111e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611115906152f9565b60405180910390fd5b60026009541415611164576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115b90615359565b60405180910390fd5b600260098190555060004790506111796126e7565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156111be573d6000803e3d6000fd5b506111c76126e7565b73ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243648260405161120c9190615379565b60405180910390a2506001600981905550565b61123a8383836040518060200160405280600081525061190f565b505050565b6000806000600181111561127c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8360018111156112b5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156112c857600a60000154905061134a565b600180811115611301577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b83600181111561133a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561134957600a6001015490505b5b6000801b81141561135f5760009150506113d5565b6113d1858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505082886040516020016113b69190614eb5565b60405160208183030381529060405280519060200120612d4f565b9150505b949350505050565b6113e56126e7565b73ffffffffffffffffffffffffffffffffffffffff166114036116ba565b73ffffffffffffffffffffffffffffffffffffffff1614611459576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611450906152f9565b60405180910390fd5b8181600d919061146a9291906141bb565b507f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf6828260405161149c929190615073565b60405180910390a15050565b600381565b66b1a2bc2ec5000081565b60006114c382612d66565b600001519050919050565b600d80546114db90615732565b80601f016020809104026020016040519081016040528092919081815260200182805461150790615732565b80156115545780601f1061152957610100808354040283529160200191611554565b820191906000526020600020905b81548152906001019060200180831161153757829003601f168201915b505050505081565b61271081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115ca576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61163a6126e7565b73ffffffffffffffffffffffffffffffffffffffff166116586116ba565b73ffffffffffffffffffffffffffffffffffffffff16146116ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a5906152f9565b60405180910390fd5b6116b86000613059565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600a8060000154908060010154905082565b60606003805461170590615732565b80601f016020809104026020016040519081016040528092919081815260200182805461173190615732565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b5050505050905090565b6117906126e7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117f5576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006118026126e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118af6126e7565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118f49190614fcf565b60405180910390a35050565b600061190a61311f565b905090565b61191a848484612899565b6119398373ffffffffffffffffffffffffffffffffffffffff16613132565b801561194e575061194c84848484613155565b155b15611985576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6119936126e7565b73ffffffffffffffffffffffffffffffffffffffff166119b16116ba565b73ffffffffffffffffffffffffffffffffffffffff1614611a07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119fe906152f9565b60405180910390fd5b80600c60006101000a81548160ff02191690836003811115611a52577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555050565b6060611a65826126ef565b611a9b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460008481526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581526020016001820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff168152505090506000600d8054611ba190615732565b90501415611bbe5760405180602001604052806000815250611bf8565b600d611bd7826060015167ffffffffffffffff166132b5565b604051602001611be8929190614ed0565b6040516020818303038152906040525b915050919050565b611c086126e7565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611c75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6c90615319565b60405180910390fd5b60026009541415611cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb290615359565b60405180910390fd5b600260098190555060016003811115611cfd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600c60009054906101000a900460ff166003811115611d45577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7c906150d9565b60405180910390fd5b611d99611d906126e7565b8383600061123f565b611dd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dcf906151f9565b60405180910390fd5b600e6000611de46126e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6390615219565b60405180910390fd5b611e7860016000613462565b6001600e6000611e866126e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016009819055505050565b611eeb6126e7565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611f58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4f90615319565b60405180910390fd5b60026009541415611f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9590615359565b60405180910390fd5b6002600981905550600380811115611fdf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600c60009054906101000a900460ff166003811115612027577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14612067576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205e90615119565b60405180910390fd5b6120788166b1a2bc2ec50000613462565b600160098190555050565b61208b6126e7565b73ffffffffffffffffffffffffffffffffffffffff166120a96116ba565b73ffffffffffffffffffffffffffffffffffffffff16146120ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f6906152f9565b60405180910390fd5b60026009541415612145576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213c90615359565b60405180910390fd5b6002600981905550600083839050905060008114158015612171575060008267ffffffffffffffff1614155b61217a57600080fd5b61271067ffffffffffffffff168267ffffffffffffffff168261219d9190615522565b6121a5611900565b6121af919061545d565b11156121f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e7906151d9565b60405180910390fd5b60005b8181101561226d5761225c858583818110612237577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061224c91906144bb565b8467ffffffffffffffff166135f8565b8061226690615795565b90506121f3565b50506001600981905550505050565b6122846126e7565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146122f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e890615319565b60405180910390fd5b60026009541415612337576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232e90615359565b60405180910390fd5b600260098190555060026003811115612379577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600c60009054906101000a900460ff1660038111156123c1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14612401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f890615259565b60405180910390fd5b61241561240c6126e7565b8383600161123f565b612454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244b90615179565b60405180910390fd5b6000836124676124626126e7565b613616565b61247191906154b3565b905060038167ffffffffffffffff1611156124c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b890615219565b60405180910390fd5b6124d284666a94d74f430000613462565b6124e36124dd6126e7565b82613676565b506001600981905550505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61258d6126e7565b73ffffffffffffffffffffffffffffffffffffffff166125ab6116ba565b73ffffffffffffffffffffffffffffffffffffffff1614612601576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f8906152f9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612671576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266890615159565b60405180910390fd5b61267a81613059565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6000816126fa6127ef565b11158015612709575060005482105b8015612736575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b60008061283385856128046126e7565b306040516020016128189493929190614f1a565b604051602081830303815290604052805190602001206136e3565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128788285613713565b73ffffffffffffffffffffffffffffffffffffffff16149150509392505050565b60006128a482612d66565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461290f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166129306126e7565b73ffffffffffffffffffffffffffffffffffffffff16148061295f575061295e856129596126e7565b6124f1565b5b806129a4575061296d6126e7565b73ffffffffffffffffffffffffffffffffffffffff1661298c84610abb565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806129dd576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612a44576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612a51858585600161373a565b612a5d6000848761273d565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612cdd576000548214612cdc57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d488585856001613740565b5050505050565b600082612d5c8584613746565b1490509392505050565b612d6e614241565b600082905080612d7c6127ef565b11158015612d8b575060005481105b15613022576000600460008381526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581526020016001820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050806040015161302057600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612ed2578092505050613054565b5b60011561301f57818060019003925050600460008381526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581526020016001820160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461301a578092505050613054565b612ed3565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006131296127ef565b60005403905090565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261317b6126e7565b8786866040518563ffffffff1660e01b815260040161319d9493929190614f83565b602060405180830381600087803b1580156131b757600080fd5b505af19250505080156131e857506040513d601f19601f820116820180604052508101906131e59190614794565b60015b613262573d8060008114613218576040519150601f19603f3d011682016040523d82523d6000602084013e61321d565b606091505b5060008151141561325a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008214156132fd576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061345d565b600082905060005b6000821461332f57808061331890615795565b915050600a8261332891906154f1565b9150613305565b60008167ffffffffffffffff811115613371577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133a35781602001600182028036833780820191505090505b5090505b60008514613456576001826133bc919061557c565b9150600a856133cb9190615828565b60306133d7919061545d565b60f81b818381518110613413577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561344f91906154f1565b94506133a7565b8093505050505b919050565b60008267ffffffffffffffff16116134af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a6906151b9565b60405180910390fd5b600367ffffffffffffffff168267ffffffffffffffff161115613507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134fe906152d9565b60405180910390fd5b61271067ffffffffffffffff168267ffffffffffffffff16613527611900565b613531919061545d565b1115613572576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613569906151d9565b60405180910390fd5b60008267ffffffffffffffff168261358a9190615522565b9050348111156135cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135c6906150f9565b60405180910390fd5b6135ea6135da6126e7565b8467ffffffffffffffff166135f8565b6135f3816137e1565b505050565b613612828260405180602001604052806000815250613846565b5050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160189054906101000a900467ffffffffffffffff169050919050565b80600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b6000816040516020016136f69190614ef4565b604051602081830303815290604052805190602001209050919050565b60008060006137228585613858565b9150915061372f816138db565b819250505092915050565b50505050565b50505050565b60008082905060005b84518110156137d6576000858281518110613793577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116137b5576137ae8382613c2c565b92506137c2565b6137bf8184613c2c565b92505b5080806137ce90615795565b91505061374f565b508091505092915050565b80341115613843576137f16126e7565b73ffffffffffffffffffffffffffffffffffffffff166108fc8234613816919061557c565b9081150290604051600060405180830381858888f19350505050158015613841573d6000803e3d6000fd5b505b50565b6138538383836001613c43565b505050565b60008060418351141561389a5760008060006020860151925060408601519150606086015160001a905061388e8782858561404f565b945094505050506138d4565b6040835114156138cb5760008060208501519150604085015190506138c086838361415c565b9350935050506138d4565b60006002915091505b9250929050565b60006004811115613915577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561394e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561395957613c29565b60016004811115613993577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156139cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613a0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a04906150b9565b60405180910390fd5b60026004811115613a47577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613a80577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613ac1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ab890615139565b60405180910390fd5b60036004811115613afb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613b34577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613b75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b6c90615199565b60405180910390fd5b600480811115613bae577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613be7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613c28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c1f90615279565b60405180910390fd5b5b50565b600082600052816020526040600020905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613cb0576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613ceb576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613cf8600086838761373a565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060016004600083815260200190815260200160002060010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008582019050838015613f005750613eff8773ffffffffffffffffffffffffffffffffffffffff16613132565b5b15613fc6575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613f756000888480600101955088613155565b613fab576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821415613f06578260005414613fc157600080fd5b614032565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613fc7575b8160008190555050506140486000868387613740565b5050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561408a576000600391509150614153565b601b8560ff16141580156140a25750601c8560ff1614155b156140b4576000600491509150614153565b6000600187878787604051600081526020016040526040516140d99493929190615013565b6020604051602081039080840390855afa1580156140fb573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561414a57600060019250925050614153565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c61419f919061545d565b90506141ad8782888561404f565b935093505050935093915050565b8280546141c790615732565b90600052602060002090601f0160209004810192826141e95760008555614230565b82601f1061420257803560ff1916838001178555614230565b82800160010185558215614230579182015b8281111561422f578235825591602001919060010190614214565b5b50905061423d9190614295565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600067ffffffffffffffff1681525090565b5b808211156142ae576000816000905550600101614296565b5090565b60006142c56142c0846153d4565b6153af565b9050828152602081018484840111156142dd57600080fd5b6142e88482856156aa565b509392505050565b6000813590506142ff81615e59565b92915050565b60008083601f84011261431757600080fd5b8235905067ffffffffffffffff81111561433057600080fd5b60208301915083602082028301111561434857600080fd5b9250929050565b60008083601f84011261436157600080fd5b8235905067ffffffffffffffff81111561437a57600080fd5b60208301915083602082028301111561439257600080fd5b9250929050565b6000813590506143a881615e70565b92915050565b6000813590506143bd81615e9e565b92915050565b6000815190506143d281615e9e565b92915050565b600082601f8301126143e957600080fd5b81356143f98482602086016142b2565b91505092915050565b60008135905061441181615eb5565b92915050565b60008135905061442681615ec5565b92915050565b60008083601f84011261443e57600080fd5b8235905067ffffffffffffffff81111561445757600080fd5b60208301915083600182028301111561446f57600080fd5b9250929050565b60006040828403121561448857600080fd5b81905092915050565b6000813590506144a081615ed5565b92915050565b6000813590506144b581615eec565b92915050565b6000602082840312156144cd57600080fd5b60006144db848285016142f0565b91505092915050565b600080604083850312156144f757600080fd5b6000614505858286016142f0565b9250506020614516858286016142f0565b9150509250929050565b60008060006060848603121561453557600080fd5b6000614543868287016142f0565b9350506020614554868287016142f0565b925050604061456586828701614491565b9150509250925092565b6000806000806080858703121561458557600080fd5b6000614593878288016142f0565b94505060206145a4878288016142f0565b93505060406145b587828801614491565b925050606085013567ffffffffffffffff8111156145d257600080fd5b6145de878288016143d8565b91505092959194509250565b6000806000806060858703121561460057600080fd5b600061460e878288016142f0565b945050602085013567ffffffffffffffff81111561462b57600080fd5b6146378782880161434f565b9350935050604061464a87828801614417565b91505092959194509250565b6000806040838503121561466957600080fd5b6000614677858286016142f0565b925050602061468885828601614399565b9150509250929050565b600080604083850312156146a557600080fd5b60006146b3858286016142f0565b92505060206146c485828601614491565b9150509250929050565b6000806000604084860312156146e357600080fd5b600084013567ffffffffffffffff8111156146fd57600080fd5b61470986828701614305565b9350935050602061471c868287016144a6565b9150509250925092565b6000806020838503121561473957600080fd5b600083013567ffffffffffffffff81111561475357600080fd5b61475f8582860161434f565b92509250509250929050565b60006020828403121561477d57600080fd5b600061478b848285016143ae565b91505092915050565b6000602082840312156147a657600080fd5b60006147b4848285016143c3565b91505092915050565b6000602082840312156147cf57600080fd5b60006147dd84828501614402565b91505092915050565b600080602083850312156147f957600080fd5b600083013567ffffffffffffffff81111561481357600080fd5b61481f8582860161442c565b92509250509250929050565b60006040828403121561483d57600080fd5b600061484b84828501614476565b91505092915050565b60006020828403121561486657600080fd5b600061487484828501614491565b91505092915050565b60008060006060848603121561489257600080fd5b60006148a086828701614491565b93505060206148b1868287016144a6565b925050604084013567ffffffffffffffff8111156148ce57600080fd5b6148da868287016143d8565b9150509250925092565b6000602082840312156148f657600080fd5b6000614904848285016144a6565b91505092915050565b60008060006040848603121561492257600080fd5b6000614930868287016144a6565b935050602084013567ffffffffffffffff81111561494d57600080fd5b6149598682870161434f565b92509250509250925092565b61496e816155b0565b82525050565b614985614980826155b0565b6157de565b82525050565b614994816155c2565b82525050565b6149a3816155ce565b82525050565b6149ba6149b5826155ce565b6157f0565b82525050565b60006149cb8261541a565b6149d58185615430565b93506149e58185602086016156b9565b6149ee8161596c565b840191505092915050565b614a0a614a0582615674565b6157de565b82525050565b614a1981615698565b82525050565b6000614a2b8385615441565b9350614a388385846156aa565b614a418361596c565b840190509392505050565b6000614a5782615425565b614a618185615441565b9350614a718185602086016156b9565b614a7a8161596c565b840191505092915050565b6000614a9082615425565b614a9a8185615452565b9350614aaa8185602086016156b9565b80840191505092915050565b60008154614ac381615732565b614acd8186615452565b94506001821660008114614ae85760018114614af957614b2c565b60ff19831686528186019350614b2c565b614b0285615405565b60005b83811015614b2457815481890152600182019150602081019050614b05565b838801955050505b50505092915050565b6000614b42601883615441565b9150614b4d826159b1565b602082019050919050565b6000614b65600383615441565b9150614b70826159da565b602082019050919050565b6000614b88600383615441565b9150614b9382615a03565b602082019050919050565b6000614bab600383615441565b9150614bb682615a2c565b602082019050919050565b6000614bce601f83615441565b9150614bd982615a55565b602082019050919050565b6000614bf1601c83615452565b9150614bfc82615a7e565b601c82019050919050565b6000614c14602683615441565b9150614c1f82615aa7565b604082019050919050565b6000614c37600383615441565b9150614c4282615af6565b602082019050919050565b6000614c5a602283615441565b9150614c6582615b1f565b604082019050919050565b6000614c7d600383615441565b9150614c8882615b6e565b602082019050919050565b6000614ca0600383615441565b9150614cab82615b97565b602082019050919050565b6000614cc3600383615441565b9150614cce82615bc0565b602082019050919050565b6000614ce6600383615441565b9150614cf182615be9565b602082019050919050565b6000614d09600383615441565b9150614d1482615c12565b602082019050919050565b6000614d2c600383615441565b9150614d3782615c3b565b602082019050919050565b6000614d4f602283615441565b9150614d5a82615c64565b604082019050919050565b6000614d72600383615441565b9150614d7d82615cb3565b602082019050919050565b6000614d95600383615441565b9150614da082615cdc565b602082019050919050565b6000614db8600383615441565b9150614dc382615d05565b602082019050919050565b6000614ddb602083615441565b9150614de682615d2e565b602082019050919050565b6000614dfe600383615441565b9150614e0982615d57565b602082019050919050565b6000614e21600383615441565b9150614e2c82615d80565b602082019050919050565b6000614e44601f83615441565b9150614e4f82615da9565b602082019050919050565b614e6381615637565b82525050565b614e7a614e7582615637565b61580c565b82525050565b614e8981615641565b82525050565b614ea0614e9b82615641565b615816565b82525050565b614eaf81615655565b82525050565b6000614ec18284614974565b60148201915081905092915050565b6000614edc8285614ab6565b9150614ee88284614a85565b91508190509392505050565b6000614eff82614be4565b9150614f0b82846149a9565b60208201915081905092915050565b6000614f268287614e69565b602082019150614f368286614e8f565b600882019150614f468285614974565b601482019150614f5682846149f9565b60148201915081905095945050505050565b6000602082019050614f7d6000830184614965565b92915050565b6000608082019050614f986000830187614965565b614fa56020830186614965565b614fb26040830185614e5a565b8181036060830152614fc481846149c0565b905095945050505050565b6000602082019050614fe4600083018461498b565b92915050565b6000604082019050614fff600083018561499a565b61500c602083018461499a565b9392505050565b6000608082019050615028600083018761499a565b6150356020830186614ea6565b615042604083018561499a565b61504f606083018461499a565b95945050505050565b600060208201905061506d6000830184614a10565b92915050565b6000602082019050818103600083015261508e818486614a1f565b90509392505050565b600060208201905081810360008301526150b18184614a4c565b905092915050565b600060208201905081810360008301526150d281614b35565b9050919050565b600060208201905081810360008301526150f281614b58565b9050919050565b6000602082019050818103600083015261511281614b7b565b9050919050565b6000602082019050818103600083015261513281614b9e565b9050919050565b6000602082019050818103600083015261515281614bc1565b9050919050565b6000602082019050818103600083015261517281614c07565b9050919050565b6000602082019050818103600083015261519281614c2a565b9050919050565b600060208201905081810360008301526151b281614c4d565b9050919050565b600060208201905081810360008301526151d281614c70565b9050919050565b600060208201905081810360008301526151f281614c93565b9050919050565b6000602082019050818103600083015261521281614cb6565b9050919050565b6000602082019050818103600083015261523281614cd9565b9050919050565b6000602082019050818103600083015261525281614cfc565b9050919050565b6000602082019050818103600083015261527281614d1f565b9050919050565b6000602082019050818103600083015261529281614d42565b9050919050565b600060208201905081810360008301526152b281614d65565b9050919050565b600060208201905081810360008301526152d281614d88565b9050919050565b600060208201905081810360008301526152f281614dab565b9050919050565b6000602082019050818103600083015261531281614dce565b9050919050565b6000602082019050818103600083015261533281614df1565b9050919050565b6000602082019050818103600083015261535281614e14565b9050919050565b6000602082019050818103600083015261537281614e37565b9050919050565b600060208201905061538e6000830184614e5a565b92915050565b60006020820190506153a96000830184614e80565b92915050565b60006153b96153ca565b90506153c58282615764565b919050565b6000604051905090565b600067ffffffffffffffff8211156153ef576153ee615915565b5b6153f88261596c565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061546882615637565b915061547383615637565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156154a8576154a7615859565b5b828201905092915050565b60006154be82615641565b91506154c983615641565b92508267ffffffffffffffff038211156154e6576154e5615859565b5b828201905092915050565b60006154fc82615637565b915061550783615637565b92508261551757615516615888565b5b828204905092915050565b600061552d82615637565b915061553883615637565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561557157615570615859565b5b828202905092915050565b600061558782615637565b915061559283615637565b9250828210156155a5576155a4615859565b5b828203905092915050565b60006155bb82615617565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600081905061561282615e45565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b600061566d826155ce565b9050919050565b600061567f82615686565b9050919050565b600061569182615617565b9050919050565b60006156a382615604565b9050919050565b82818337600083830152505050565b60005b838110156156d75780820151818401526020810190506156bc565b838111156156e6576000848401525b50505050565b6000810160008301806156fe81615956565b905061570a8184615e14565b50505060018101602083018061571f81615956565b905061572b8184615e14565b5050505050565b6000600282049050600182168061574a57607f821691505b6020821081141561575e5761575d6158e6565b5b50919050565b61576d8261596c565b810181811067ffffffffffffffff8211171561578c5761578b615915565b5b80604052505050565b60006157a082615637565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157d3576157d2615859565b5b600182019050919050565b60006157e9826157fa565b9050919050565b6000819050919050565b600061580582615997565b9050919050565b6000819050919050565b60006158218261598a565b9050919050565b600061583382615637565b915061583e83615637565b92508261584e5761584d615888565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600061594f826159a4565b9050919050565b6000813561596381615e87565b80915050919050565b6000601f19601f8301169050919050565b60008160001b9050919050565b60008160c01b9050919050565b60008160601b9050919050565b60008160001c9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f4530310000000000000000000000000000000000000000000000000000000000600082015250565b7f4530390000000000000000000000000000000000000000000000000000000000600082015250565b7f4530360000000000000000000000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4530350000000000000000000000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4530370000000000000000000000000000000000000000000000000000000000600082015250565b7f4531300000000000000000000000000000000000000000000000000000000000600082015250565b7f4530320000000000000000000000000000000000000000000000000000000000600082015250565b7f4530330000000000000000000000000000000000000000000000000000000000600082015250565b7f4531340000000000000000000000000000000000000000000000000000000000600082015250565b7f4530340000000000000000000000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4531310000000000000000000000000000000000000000000000000000000000600082015250565b7f4531330000000000000000000000000000000000000000000000000000000000600082015250565b7f4530380000000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4531350000000000000000000000000000000000000000000000000000000000600082015250565b7f4531320000000000000000000000000000000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff615dfe8461597d565b9350801983169250808416831791505092915050565b615e1d82615662565b615e30615e2982615944565b8354615dd2565b8255505050565b615e4182826156ec565b5050565b60048110615e5657615e556158b7565b5b50565b615e62816155b0565b8114615e6d57600080fd5b50565b615e79816155c2565b8114615e8457600080fd5b50565b615e90816155ce565b8114615e9b57600080fd5b50565b615ea7816155d8565b8114615eb257600080fd5b50565b60048110615ec257600080fd5b50565b60028110615ed257600080fd5b50565b615ede81615637565b8114615ee957600080fd5b50565b615ef581615641565b8114615f0057600080fd5b5056fea2646970667358221220933be838dc2bed6241dd9a3eb6a7f402841a32627a1973398ec0edb72a5ad13c64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000ef1e55e9795ad0d1c39bdc18c6de0708072ba1a1d4bc7d442049588a35681da273ca87c0f428f3e4af3685c2f1c7332231998a5f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5774733146327375616f39453652334e7377626a7659334e5a61644c6648777053684b43756f48716146394b2f00000000000000000000
-----Decoded View---------------
Arg [0] : baseURI_ (string): ipfs://QmWts1F2suao9E6R3NswbjvY3NZadLfHwpShKCuoHqaF9K/
Arg [1] : signer_ (address): 0xEf1e55E9795aD0D1C39bDc18C6de0708072ba1a1
Arg [2] : merkleRootConfig_ (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 000000000000000000000000ef1e55e9795ad0d1c39bdc18c6de0708072ba1a1
Arg [2] : d4bc7d442049588a35681da273ca87c0f428f3e4af3685c2f1c7332231998a5f
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [5] : 697066733a2f2f516d5774733146327375616f39453652334e7377626a765933
Arg [6] : 4e5a61644c6648777053684b43756f48716146394b2f00000000000000000000
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.