Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
1,326 CARD
Holders
684
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CARDLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Cards
Compiler Version
v0.8.11+commit.d7f03943
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.11; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./Metadata.sol"; // ██████ █████ ██████ ██████ ███████ ██ ███████ ██████ ██████ ██████ █████ ███ ███ ██████ ██ ███████ ██████ ███████ ██ // ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ████ ██ ██ ██ ██ ██ ██ ██ ██ // ██ ███████ ██████ ██ ██ ███████ ██ █████ ██ ██ ██████ ██ ███ ███████ ██ ████ ██ ██████ ██ █████ ██████ ███████ ██ // ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ // ██████ ██ ██ ██ ██ ██████ ███████ ██ ██ ██████ ██ ██ ██████ ██ ██ ██ ██ ██████ ███████ ███████ ██ ██ ███████ ██ // // The "Cards" NFT collection consists of the 1326 // unique poker starting hand combinations that can // be obtained within a deck of 52 cards. Each starting // hand's metadata as well as each individual card's // image and name is generated fully on-chain and will // forever be accessible by external contracts and dApps. // // By minting a poker hand, you are contributing to the // first ever fully on-chain composable Poker card deck. // Relying on cryptography, "Cards" uses a novel minting // method that puts emphasis on community by placing the // burden of on-chain data insertion on minter which makes // each mint a little more gas intensive than the ERC721 // norm. Each token is orderly tied to a specific set of // cards via a permanent card deck merkle root that cannot // be altered. // // Initial Launch --> https://wtf.cards contract Cards is ERC721, ERC721Enumerable, Metadata, ReentrancyGuard { constructor() ERC721("Cards", "CARD") {} /** * @notice Verifiable immutable root of the 1326 2-card combinations in a 52 card deck. */ bytes32 immutable public root = 0xb2f7e5087e23e0037c280a3eadd136a419be00de197b1c864632ca7adceb989f; /** * @notice Claim function can only be used via the launch website. * * @param _tokenId The token ID you are minting * @param _card1 The first card's index to be assigned to the token you are minting * @param _card2 The second card's index to be assigned to the token you are minting * @param _proof Proof that ties the token ID with the index of the cards in the hand. * @param _shuffleIndex The shuffling parameter of the mint. */ function claim(uint256 _tokenId, uint256 _card1, uint256 _card2, bytes32[] calldata _proof, uint160 _shuffleIndex) public nonReentrant shuffle(_shuffleIndex) { require(!_exists(_tokenId), "This token was already minted."); require(MerkleProof.verify(_proof, root, keccak256(abi.encodePacked(_tokenId, _card1, _card2))), "Must mint the proper token and cards."); tokenToCards[_tokenId] = [_card1, _card2]; mintedHands.push(_tokenId); limiter[msg.sender] = true; _safeMint(msg.sender, _tokenId); } /** * @notice An external contract or dApp can call the plaintext names of a hand. * * @param _tokenId Token ID between 0 and 1325 */ function getNamesByToken(uint256 _tokenId) external view returns (string[2] memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); return [cardNames[tokenToCards[_tokenId][0]], cardNames[tokenToCards[_tokenId][1]]]; } /** * @notice An external contract or dApp can call the plaintext icons of a hand. * * @param _tokenId Token ID between 0 and 1325 */ function getIconsByToken(uint256 _tokenId) external view returns (string[2] memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); return [cardIcons[tokenToCards[_tokenId][0]], cardIcons[tokenToCards[_tokenId][1]]]; } /** * @notice An external contract or dApp can call the name of a specific card by its index. * * @param _index Card index between 0 and 51 */ function getCardNameByIndex(uint256 _index) external view returns (string memory) { return cardNames[_index]; } /** * @notice An external contract or dApp can call the icon of a specific card by its index. * * @param _index Card index between 0 and 51 */ function getCardIconByIndex(uint256 _index) external view returns (string memory) { return cardIcons[_index]; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return string(abi.encodePacked('data:application/json;base64,', getMetadataJSON(tokenId, getMetadataImage(tokenId)))); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // 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; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @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) { _requireMinted(tokenId); 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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 { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _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 { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @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`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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 ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a 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 _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 pragma solidity ^0.8.11; import "@openzeppelin/contracts/access/Ownable.sol"; interface Shuffler { function shuffle(address _addr) external view returns (uint160); } contract Metadata is Ownable { uint256[] internal mintedHands; bool internal claimIsEnabled; address internal shufflerAddress; mapping(address => bool) internal limiter; mapping(uint256 => uint256[]) internal tokenToCards; function flipClaim(bool _bool) external onlyOwner { claimIsEnabled = _bool; } modifier shuffle(uint160 _shuffleIndex) { require(claimIsEnabled, "Claim is not live."); require(tx.origin == msg.sender, "EOAs only."); require(_shuffleIndex == getShuffleIndex(msg.sender), "Invalid Shuffle Index"); require(mintedHands.length < 1326, "Supply is capped by the merkle root anyways."); require(!limiter[msg.sender], "One claim per wallet."); _; } function setShufflerAddress(address _address) external onlyOwner { shufflerAddress = _address; } function getShuffleIndex(address _addr) internal view returns (uint160) { return Shuffler(shufflerAddress).shuffle(_addr); } function getMintedHands() public view returns (uint256[] memory) { return mintedHands; } function getMetadataImage(uint256 _tokenId) public view returns (string memory) { uint256 card1 = tokenToCards[_tokenId][0]; uint256 card2 = tokenToCards[_tokenId][1]; string memory color1 = (card1 < 13 || 38 < card1 ) ? 'Black' : 'Red'; string memory color2 = (card2 < 13 || 38 < card2 ) ? 'Black' : 'Red'; return string(abi.encodePacked( '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 500 500"><style>.card1{fill:', color1, ';font-size:250px;}</style><style>.card2{fill:', color2, ';font-size:250px;}</style><rect width="100%" height="100%" fill="white" /><text x="30%" y="281px" class="card1" dominant-baseline="middle" text-anchor="middle">', cardIcons[card1], '</text><text x="70%" y="281px" class="card2" dominant-baseline="middle" text-anchor="middle">', cardIcons[card2], '</text></svg>' )); } function getMetadataJSON(uint256 _tokenId, string memory _svg) internal view returns (string memory) { return Base64.encode(bytes(string(abi.encodePacked( '{"name": "Hand #', toString(_tokenId), '","attributes": [ { "trait_type": "Card 1", "value": "', cardNames[tokenToCards[_tokenId][0]], '" },{ "trait_type": "Card 2", "value": "', cardNames[tokenToCards[_tokenId][1]], '" }], "description": "The Cards collection consists of the 1326 unique poker starting hand combinations that can be obtained within a deck of 52 cards.",', '"image": "data:image/svg+xml;base64,', Base64.encode(bytes(_svg)), '"}' )))); } string[52] internal cardNames = [ "Ace Of Spades", "Two Of Spades", "Three Of Spades", "Four Of Spades", "Five Of Spades", "Six Of Spades", "Seven Of Spades", "Eight Of Spades", "Nine Of Spades", "Ten Of Spades", "Jack Of Spades", "Queen Of Spades", "King Of Spades", "Ace Of Hearts", "Two Of Hearts", "Three Of Hearts", "Four Of Hearts", "Five Of Hearts", "Six Of Hearts", "Seven Of Hearts", "Eight Of Hearts", "Nine Of Hearts", "Ten Of Hearts", "Jack Of Hearts", "Queen Of Hearts", "King Of Hearts", "Ace Of Diamonds", "Two Of Diamonds", "Three Of Diamonds", "Four Of Diamonds", "Five Of Diamonds", "Six Of Diamonds", "Seven Of Diamonds", "Eight Of Diamonds", "Nine Of Diamonds", "Ten Of Diamonds", "Jack Of Diamonds", "Queen Of Diamonds", "King Of Diamonds", "Ace Of Clubs", "Two Of Clubs", "Three Of Clubs", "Four Of Clubs", "Five Of Clubs", "Six Of Clubs", "Seven Of Clubs", "Eight Of Clubs", "Nine Of Clubs", "Ten Of Clubs", "Jack Of Clubs", "Queen Of Clubs", "King Of Clubs" ]; string[52] internal cardIcons = [ "\xf0\x9f\x82\xa1", "\xf0\x9f\x82\xa2", "\xf0\x9f\x82\xa3", "\xf0\x9f\x82\xa4", "\xf0\x9f\x82\xa5", "\xf0\x9f\x82\xa6", "\xf0\x9f\x82\xa7", "\xf0\x9f\x82\xa8", "\xf0\x9f\x82\xa9", "\xf0\x9f\x82\xaa", "\xf0\x9f\x82\xab", "\xf0\x9f\x82\xad", "\xf0\x9f\x82\xae", "\xf0\x9f\x82\xb1", "\xf0\x9f\x82\xb2", "\xf0\x9f\x82\xb3", "\xf0\x9f\x82\xb4", "\xf0\x9f\x82\xb5", "\xf0\x9f\x82\xb6", "\xf0\x9f\x82\xb7", "\xf0\x9f\x82\xb8", "\xf0\x9f\x82\xb9", "\xf0\x9f\x82\xba", "\xf0\x9f\x82\xbb", "\xf0\x9f\x82\xbd", "\xf0\x9f\x82\xbe", "\xf0\x9f\x83\x81", "\xf0\x9f\x83\x82", "\xf0\x9f\x83\x83", "\xf0\x9f\x83\x84", "\xf0\x9f\x83\x85", "\xf0\x9f\x83\x86", "\xf0\x9f\x83\x87", "\xf0\x9f\x83\x88", "\xf0\x9f\x83\x89", "\xf0\x9f\x83\x8a", "\xf0\x9f\x83\x8b", "\xf0\x9f\x83\x8d", "\xf0\x9f\x83\x8e", "\xf0\x9f\x83\x91", "\xf0\x9f\x83\x92", "\xf0\x9f\x83\x93", "\xf0\x9f\x83\x94", "\xf0\x9f\x83\x95", "\xf0\x9f\x83\x96", "\xf0\x9f\x83\x97", "\xf0\x9f\x83\x98", "\xf0\x9f\x83\x99", "\xf0\x9f\x83\x9a", "\xf0\x9f\x83\x9b", "\xf0\x9f\x83\x9d", "\xf0\x9f\x83\x9e" ]; /** * @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); } } /// [MIT License] /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 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.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "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":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_card1","type":"uint256"},{"internalType":"uint256","name":"_card2","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint160","name":"_shuffleIndex","type":"uint160"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_bool","type":"bool"}],"name":"flipClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getCardIconByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getCardNameByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getIconsByToken","outputs":[{"internalType":"string[2]","name":"","type":"string[2]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getMetadataImage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintedHands","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getNamesByToken","outputs":[{"internalType":"string[2]","name":"","type":"string[2]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"address","name":"_address","type":"address"}],"name":"setShufflerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526040518061068001604052806040518060400160405280600d81526020017f416365204f66205370616465730000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f54776f204f66205370616465730000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f5468726565204f6620537061646573000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f466f7572204f662053706164657300000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f46697665204f662053706164657300000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f536978204f66205370616465730000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f536576656e204f6620537061646573000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4569676874204f6620537061646573000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f4e696e65204f662053706164657300000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f54656e204f66205370616465730000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f4a61636b204f662053706164657300000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f517565656e204f6620537061646573000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f4b696e67204f662053706164657300000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f416365204f66204865617274730000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f54776f204f66204865617274730000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f5468726565204f6620486561727473000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f466f7572204f662048656172747300000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f46697665204f662048656172747300000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f536978204f66204865617274730000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f536576656e204f6620486561727473000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4569676874204f6620486561727473000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f4e696e65204f662048656172747300000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f54656e204f66204865617274730000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f4a61636b204f662048656172747300000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f517565656e204f6620486561727473000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f4b696e67204f662048656172747300000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f416365204f66204469616d6f6e6473000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f54776f204f66204469616d6f6e6473000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f5468726565204f66204469616d6f6e647300000000000000000000000000000081525081526020016040518060400160405280601081526020017f466f7572204f66204469616d6f6e64730000000000000000000000000000000081525081526020016040518060400160405280601081526020017f46697665204f66204469616d6f6e64730000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f536978204f66204469616d6f6e6473000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f536576656e204f66204469616d6f6e647300000000000000000000000000000081525081526020016040518060400160405280601181526020017f4569676874204f66204469616d6f6e647300000000000000000000000000000081525081526020016040518060400160405280601081526020017f4e696e65204f66204469616d6f6e64730000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f54656e204f66204469616d6f6e6473000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f4a61636b204f66204469616d6f6e64730000000000000000000000000000000081525081526020016040518060400160405280601181526020017f517565656e204f66204469616d6f6e647300000000000000000000000000000081525081526020016040518060400160405280601081526020017f4b696e67204f66204469616d6f6e64730000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f416365204f6620436c756273000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f54776f204f6620436c756273000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f5468726565204f6620436c75627300000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f466f7572204f6620436c7562730000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f46697665204f6620436c7562730000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f536978204f6620436c756273000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f536576656e204f6620436c75627300000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f4569676874204f6620436c75627300000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4e696e65204f6620436c7562730000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f54656e204f6620436c756273000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4a61636b204f6620436c7562730000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f517565656e204f6620436c75627300000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4b696e67204f6620436c75627300000000000000000000000000000000000000815250815250600f90603462000c1c92919062001a0a565b506040518061068001604052806040518060400160405280600481526020017ff09f82a10000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82a20000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82a30000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82a40000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82a50000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82a60000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82a70000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82a80000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82a90000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82aa0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82ab0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82ad0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82ae0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82b10000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82b20000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82b30000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82b40000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82b50000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82b60000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82b70000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82b80000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82b90000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82ba0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82bb0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82bd0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f82be0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83810000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83820000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83830000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83840000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83850000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83860000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83870000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83880000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83890000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f838a0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f838b0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f838d0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f838e0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83910000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83920000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83930000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83940000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83950000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83960000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83970000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83980000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f83990000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f839a0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f839b0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f839d0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017ff09f839e0000000000000000000000000000000000000000000000000000000081525081525060439060346200183592919062001a0a565b507fb2f7e5087e23e0037c280a3eadd136a419be00de197b1c864632ca7adceb989f60001b6080908152503480156200186d57600080fd5b506040518060400160405280600581526020017f43617264730000000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f43415244000000000000000000000000000000000000000000000000000000008152508160009080519060200190620018f292919062001a64565b5080600190805190602001906200190b92919062001a64565b5050506200192e620019226200193c60201b60201c565b6200194460201b60201c565b600160778190555062001be7565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b826034810192821562001a51579160200282015b8281111562001a5057825182908051906020019062001a3f92919062001a64565b509160200191906001019062001a1e565b5b50905062001a60919062001af5565b5090565b82805462001a729062001bb1565b90600052602060002090601f01602090048101928262001a96576000855562001ae2565b82601f1062001ab157805160ff191683800117855562001ae2565b8280016001018555821562001ae2579182015b8281111562001ae157825182559160200191906001019062001ac4565b5b50905062001af1919062001b1d565b5090565b5b8082111562001b19576000818162001b0f919062001b3c565b5060010162001af6565b5090565b5b8082111562001b3857600081600090555060010162001b1e565b5090565b50805462001b4a9062001bb1565b6000825580601f1062001b5e575062001b7f565b601f01602090049060005260206000209081019062001b7e919062001b1d565b5b50565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062001bca57607f821691505b6020821081141562001be15762001be062001b82565b5b50919050565b60805161537962001c0a60003960008181611794015261198b01526153796000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063715018a611610104578063c87b56dd116100a2578063e985e9c511610071578063e985e9c514610578578063ebf0c717146105a8578063f2fde38b146105c6578063f8423803146105e2576101cf565b8063c87b56dd146104e0578063cc8c241a14610510578063ce281ee01461052c578063e5d33d351461055c576101cf565b80639aefd8fb116100de5780639aefd8fb14610448578063a22cb46514610478578063b88d4fde14610494578063c4e1111a146104b0576101cf565b8063715018a6146104025780638da5cb5b1461040c57806395d89b411461042a576101cf565b806323b872dd1161017157806342842e0e1161014b57806342842e0e146103565780634f6ccce7146103725780636352211e146103a257806370a08231146103d2576101cf565b806323b872dd146102da57806324d91779146102f65780632f745c5914610326576101cf565b8063081812fc116101ad578063081812fc14610240578063095ea7b314610270578063139332201461028c57806318160ddd146102bc576101cf565b806301ffc9a7146101d457806306fdde031461020457806307b3a85014610222575b600080fd5b6101ee60048036038101906101e991906131e9565b6105fe565b6040516101fb9190613231565b60405180910390f35b61020c610610565b60405161021991906132e5565b60405180910390f35b61022a6106a2565b60405161023791906133cf565b60405180910390f35b61025a6004803603810190610255919061341d565b6106fa565b604051610267919061348b565b60405180910390f35b61028a600480360381019061028591906134d2565b610740565b005b6102a660048036038101906102a1919061341d565b610858565b6040516102b391906132e5565b60405180910390f35b6102c46108ff565b6040516102d19190613521565b60405180910390f35b6102f460048036038101906102ef919061353c565b61090c565b005b610310600480360381019061030b919061341d565b61096c565b60405161031d91906132e5565b60405180910390f35b610340600480360381019061033b91906134d2565b610b43565b60405161034d9190613521565b60405180910390f35b610370600480360381019061036b919061353c565b610be8565b005b61038c6004803603810190610387919061341d565b610c08565b6040516103999190613521565b60405180910390f35b6103bc60048036038101906103b7919061341d565b610c79565b6040516103c9919061348b565b60405180910390f35b6103ec60048036038101906103e7919061358f565b610d2b565b6040516103f99190613521565b60405180910390f35b61040a610de3565b005b610414610df7565b604051610421919061348b565b60405180910390f35b610432610e21565b60405161043f91906132e5565b60405180910390f35b610462600480360381019061045d919061341d565b610eb3565b60405161046f91906132e5565b60405180910390f35b610492600480360381019061048d91906135e8565b610f5a565b005b6104ae60048036038101906104a9919061375d565b610f70565b005b6104ca60048036038101906104c5919061341d565b610fd2565b6040516104d791906138e0565b60405180910390f35b6104fa60048036038101906104f5919061341d565b6111d8565b60405161050791906132e5565b60405180910390f35b61052a6004803603810190610525919061358f565b61125a565b005b6105466004803603810190610541919061341d565b6112a6565b60405161055391906138e0565b60405180910390f35b6105766004803603810190610571919061398e565b6114ac565b005b610592600480360381019061058d9190613a28565b6118f5565b60405161059f9190613231565b60405180910390f35b6105b0611989565b6040516105bd9190613a81565b60405180910390f35b6105e060048036038101906105db919061358f565b6119ad565b005b6105fc60048036038101906105f79190613a9c565b611a31565b005b600061060982611a56565b9050919050565b60606000805461061f90613af8565b80601f016020809104026020016040519081016040528092919081815260200182805461064b90613af8565b80156106985780601f1061066d57610100808354040283529160200191610698565b820191906000526020600020905b81548152906001019060200180831161067b57829003601f168201915b5050505050905090565b6060600b8054806020026020016040519081016040528092919081815260200182805480156106f057602002820191906000526020600020905b8154815260200190600101908083116106dc575b5050505050905090565b600061070582611ad0565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061074b82610c79565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b390613b9c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107db611b1b565b73ffffffffffffffffffffffffffffffffffffffff16148061080a575061080981610804611b1b565b6118f5565b5b610849576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084090613c2e565b60405180910390fd5b6108538383611b23565b505050565b6060600f826034811061086e5761086d613c4e565b5b01805461087a90613af8565b80601f01602080910402602001604051908101604052809291908181526020018280546108a690613af8565b80156108f35780601f106108c8576101008083540402835291602001916108f3565b820191906000526020600020905b8154815290600101906020018083116108d657829003601f168201915b50505050509050919050565b6000600880549050905090565b61091d610917611b1b565b82611bdc565b61095c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095390613cef565b60405180910390fd5b610967838383611c71565b505050565b60606000600e600084815260200190815260200160002060008154811061099657610995613c4e565b5b906000526020600020015490506000600e60008581526020019081526020016000206001815481106109cb576109ca613c4e565b5b906000526020600020015490506000600d8310806109e95750826026105b610a28576040518060400160405280600381526020017f5265640000000000000000000000000000000000000000000000000000000000815250610a5f565b6040518060400160405280600581526020017f426c61636b0000000000000000000000000000000000000000000000000000008152505b90506000600d831080610a725750826026105b610ab1576040518060400160405280600381526020017f5265640000000000000000000000000000000000000000000000000000000000815250610ae8565b6040518060400160405280600581526020017f426c61636b0000000000000000000000000000000000000000000000000000008152505b9050818160438660348110610b0057610aff613c4e565b5b0160438660348110610b1557610b14613c4e565b5b01604051602001610b2994939291906140d7565b604051602081830303815290604052945050505050919050565b6000610b4e83610d2b565b8210610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b86906141be565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c0383838360405180602001604052806000815250610f70565b505050565b6000610c126108ff565b8210610c53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4a90614250565b60405180910390fd5b60088281548110610c6757610c66613c4e565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d19906142bc565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d939061434e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610deb611ed8565b610df56000611f56565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610e3090613af8565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5c90613af8565b8015610ea95780601f10610e7e57610100808354040283529160200191610ea9565b820191906000526020600020905b815481529060010190602001808311610e8c57829003601f168201915b5050505050905090565b606060438260348110610ec957610ec8613c4e565b5b018054610ed590613af8565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0190613af8565b8015610f4e5780601f10610f2357610100808354040283529160200191610f4e565b820191906000526020600020905b815481529060010190602001808311610f3157829003601f168201915b50505050509050919050565b610f6c610f65611b1b565b838361201c565b5050565b610f81610f7b611b1b565b83611bdc565b610fc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb790613cef565b60405180910390fd5b610fcc84848484612189565b50505050565b610fda6130ec565b610fe3826121e5565b611022576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611019906143e0565b60405180910390fd5b60405180604001604052806043600e600086815260200190815260200160002060008154811061105557611054613c4e565b5b90600052602060002001546034811061107157611070613c4e565b5b01805461107d90613af8565b80601f01602080910402602001604051908101604052809291908181526020018280546110a990613af8565b80156110f65780601f106110cb576101008083540402835291602001916110f6565b820191906000526020600020905b8154815290600101906020018083116110d957829003601f168201915b505050505081526020016043600e600086815260200190815260200160002060018154811061112857611127613c4e565b5b90600052602060002001546034811061114457611143613c4e565b5b01805461115090613af8565b80601f016020809104026020016040519081016040528092919081815260200182805461117c90613af8565b80156111c95780601f1061119e576101008083540402835291602001916111c9565b820191906000526020600020905b8154815290600101906020018083116111ac57829003601f168201915b50505050508152509050919050565b60606111e3826121e5565b611222576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611219906143e0565b60405180910390fd5b6112348261122f8461096c565b612251565b604051602001611244919061444c565b6040516020818303038152906040529050919050565b611262611ed8565b80600c60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6112ae6130ec565b6112b7826121e5565b6112f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ed906143e0565b60405180910390fd5b6040518060400160405280600f600e600086815260200190815260200160002060008154811061132957611328613c4e565b5b90600052602060002001546034811061134557611344613c4e565b5b01805461135190613af8565b80601f016020809104026020016040519081016040528092919081815260200182805461137d90613af8565b80156113ca5780601f1061139f576101008083540402835291602001916113ca565b820191906000526020600020905b8154815290600101906020018083116113ad57829003601f168201915b50505050508152602001600f600e60008681526020019081526020016000206001815481106113fc576113fb613c4e565b5b90600052602060002001546034811061141857611417613c4e565b5b01805461142490613af8565b80601f016020809104026020016040519081016040528092919081815260200182805461145090613af8565b801561149d5780601f106114725761010080835404028352916020019161149d565b820191906000526020600020905b81548152906001019060200180831161148057829003601f168201915b50505050508152509050919050565b600260775414156114f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e9906144ba565b60405180910390fd5b600260778190555080600c60009054906101000a900460ff1661154a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154190614526565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146115b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115af90614592565b60405180910390fd5b6115c133612321565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461162e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611625906145fe565b60405180910390fd5b61052e600b8054905010611677576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166e90614690565b60405180910390fd5b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fb906146fc565b60405180910390fd5b61170d876121e5565b1561174d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174490614768565b60405180910390fd5b6117e3848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f00000000000000000000000000000000000000000000000000000000000000008989896040516020016117c8939291906147a9565b604051602081830303815290604052805190602001206123c6565b611822576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181990614858565b60405180910390fd5b604051806040016040528087815260200186815250600e6000898152602001908152602001600020906002611858929190613113565b50600b8790806001815401808255809150506001900390600052602060002001600090919091909150556001600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118e433886123dd565b506001607781905550505050505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6119b5611ed8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1c906148ea565b60405180910390fd5b611a2e81611f56565b50565b611a39611ed8565b80600c60006101000a81548160ff02191690831515021790555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ac95750611ac8826123fb565b5b9050919050565b611ad9816121e5565b611b18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0f906142bc565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611b9683610c79565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611be883610c79565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611c2a5750611c2981856118f5565b5b80611c6857508373ffffffffffffffffffffffffffffffffffffffff16611c50846106fa565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c9182610c79565b73ffffffffffffffffffffffffffffffffffffffff1614611ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cde9061497c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4e90614a0e565b60405180910390fd5b611d628383836124dd565b611d6d600082611b23565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dbd9190614a5d565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e149190614a91565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ed38383836124ed565b505050565b611ee0611b1b565b73ffffffffffffffffffffffffffffffffffffffff16611efe610df7565b73ffffffffffffffffffffffffffffffffffffffff1614611f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4b90614b33565b60405180910390fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561208b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208290614b9f565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161217c9190613231565b60405180910390a3505050565b612194848484611c71565b6121a0848484846124f2565b6121df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d690614c31565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b606061231961225f8461267a565b600f600e600087815260200190815260200160002060008154811061228757612286613c4e565b5b9060005260206000200154603481106122a3576122a2613c4e565b5b01600f600e60008881526020019081526020016000206001815481106122cc576122cb613c4e565b5b9060005260206000200154603481106122e8576122e7613c4e565b5b016122f2866127db565b6040516020016123059493929190614f23565b6040516020818303038152906040526127db565b905092915050565b6000600c60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c7920f8c836040518263ffffffff1660e01b815260040161237e919061348b565b602060405180830381865afa15801561239b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123bf9190614fb8565b9050919050565b6000826123d38584612973565b1490509392505050565b6123f78282604051806020016040528060008152506129c9565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124c657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806124d657506124d582612a24565b5b9050919050565b6124e8838383612a8e565b505050565b505050565b60006125138473ffffffffffffffffffffffffffffffffffffffff16612ba2565b1561266d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261253c611b1b565b8786866040518563ffffffff1660e01b815260040161255e949392919061503a565b6020604051808303816000875af192505050801561259a57506040513d601f19601f82011682018060405250810190612597919061509b565b60015b61261d573d80600081146125ca576040519150601f19603f3d011682016040523d82523d6000602084013e6125cf565b606091505b50600081511415612615576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260c90614c31565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612672565b600190505b949350505050565b606060008214156126c2576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506127d6565b600082905060005b600082146126f45780806126dd906150c8565b915050600a826126ed9190615140565b91506126ca565b60008167ffffffffffffffff8111156127105761270f613632565b5b6040519080825280601f01601f1916602001820160405280156127425781602001600182028036833780820191505090505b5090505b600085146127cf5760018261275b9190614a5d565b9150600a8561276a9190615171565b60306127769190614a91565b60f81b81838151811061278c5761278b613c4e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127c89190615140565b9450612746565b8093505050505b919050565b60606000825190506000811415612804576040518060200160405280600081525091505061296e565b600060036002836128159190614a91565b61281f9190615140565b600461282b91906151a2565b9050600060208261283c9190614a91565b67ffffffffffffffff81111561285557612854613632565b5b6040519080825280601f01601f1916602001820160405280156128875781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001615304604091399050600181016020830160005b8681101561292b5760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b905080845260048401935050506128b2565b506003860660018114612945576002811461295557612960565b613d3d60f01b6002830352612960565b603d60f81b60018303525b508484525050819450505050505b919050565b60008082905060005b84518110156129be576129a98286838151811061299c5761299b613c4e565b5b6020026020010151612bc5565b915080806129b6906150c8565b91505061297c565b508091505092915050565b6129d38383612bf0565b6129e060008484846124f2565b612a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1690614c31565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612a99838383612dca565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612adc57612ad781612dcf565b612b1b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612b1a57612b198382612e18565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b5e57612b5981612f85565b612b9d565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612b9c57612b9b8282613056565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000818310612bdd57612bd882846130d5565b612be8565b612be783836130d5565b5b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5790615248565b60405180910390fd5b612c69816121e5565b15612ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca0906152b4565b60405180910390fd5b612cb5600083836124dd565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d059190614a91565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612dc6600083836124ed565b5050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612e2584610d2b565b612e2f9190614a5d565b9050600060076000848152602001908152602001600020549050818114612f14576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612f999190614a5d565b9050600060096000848152602001908152602001600020549050600060088381548110612fc957612fc8613c4e565b5b906000526020600020015490508060088381548110612feb57612fea613c4e565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061303a576130396152d4565b5b6001900381819060005260206000200160009055905550505050565b600061306183610d2b565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600082600052816020526040600020905092915050565b60405180604001604052806002905b60608152602001906001900390816130fb5790505090565b82805482825590600052602060002090810192821561314f579160200282015b8281111561314e578251825591602001919060010190613133565b5b50905061315c9190613160565b5090565b5b80821115613179576000816000905550600101613161565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131c681613191565b81146131d157600080fd5b50565b6000813590506131e3816131bd565b92915050565b6000602082840312156131ff576131fe613187565b5b600061320d848285016131d4565b91505092915050565b60008115159050919050565b61322b81613216565b82525050565b60006020820190506132466000830184613222565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561328657808201518184015260208101905061326b565b83811115613295576000848401525b50505050565b6000601f19601f8301169050919050565b60006132b78261324c565b6132c18185613257565b93506132d1818560208601613268565b6132da8161329b565b840191505092915050565b600060208201905081810360008301526132ff81846132ac565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000819050919050565b61334681613333565b82525050565b6000613358838361333d565b60208301905092915050565b6000602082019050919050565b600061337c82613307565b6133868185613312565b935061339183613323565b8060005b838110156133c25781516133a9888261334c565b97506133b483613364565b925050600181019050613395565b5085935050505092915050565b600060208201905081810360008301526133e98184613371565b905092915050565b6133fa81613333565b811461340557600080fd5b50565b600081359050613417816133f1565b92915050565b60006020828403121561343357613432613187565b5b600061344184828501613408565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006134758261344a565b9050919050565b6134858161346a565b82525050565b60006020820190506134a0600083018461347c565b92915050565b6134af8161346a565b81146134ba57600080fd5b50565b6000813590506134cc816134a6565b92915050565b600080604083850312156134e9576134e8613187565b5b60006134f7858286016134bd565b925050602061350885828601613408565b9150509250929050565b61351b81613333565b82525050565b60006020820190506135366000830184613512565b92915050565b60008060006060848603121561355557613554613187565b5b6000613563868287016134bd565b9350506020613574868287016134bd565b925050604061358586828701613408565b9150509250925092565b6000602082840312156135a5576135a4613187565b5b60006135b3848285016134bd565b91505092915050565b6135c581613216565b81146135d057600080fd5b50565b6000813590506135e2816135bc565b92915050565b600080604083850312156135ff576135fe613187565b5b600061360d858286016134bd565b925050602061361e858286016135d3565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61366a8261329b565b810181811067ffffffffffffffff8211171561368957613688613632565b5b80604052505050565b600061369c61317d565b90506136a88282613661565b919050565b600067ffffffffffffffff8211156136c8576136c7613632565b5b6136d18261329b565b9050602081019050919050565b82818337600083830152505050565b60006137006136fb846136ad565b613692565b90508281526020810184848401111561371c5761371b61362d565b5b6137278482856136de565b509392505050565b600082601f83011261374457613743613628565b5b81356137548482602086016136ed565b91505092915050565b6000806000806080858703121561377757613776613187565b5b6000613785878288016134bd565b9450506020613796878288016134bd565b93505060406137a787828801613408565b925050606085013567ffffffffffffffff8111156137c8576137c761318c565b5b6137d48782880161372f565b91505092959194509250565b600060029050919050565b600081905092915050565b6000819050919050565b600082825260208201905092915050565b600061381c8261324c565b6138268185613800565b9350613836818560208601613268565b61383f8161329b565b840191505092915050565b60006138568383613811565b905092915050565b6000602082019050919050565b6000613876826137e0565b61388081856137eb565b935083602082028501613892856137f6565b8060005b858110156138ce57848403895281516138af858261384a565b94506138ba8361385e565b925060208a01995050600181019050613896565b50829750879550505050505092915050565b600060208201905081810360008301526138fa818461386b565b905092915050565b600080fd5b600080fd5b60008083601f84011261392257613921613628565b5b8235905067ffffffffffffffff81111561393f5761393e613902565b5b60208301915083602082028301111561395b5761395a613907565b5b9250929050565b61396b8161344a565b811461397657600080fd5b50565b60008135905061398881613962565b92915050565b60008060008060008060a087890312156139ab576139aa613187565b5b60006139b989828a01613408565b96505060206139ca89828a01613408565b95505060406139db89828a01613408565b945050606087013567ffffffffffffffff8111156139fc576139fb61318c565b5b613a0889828a0161390c565b93509350506080613a1b89828a01613979565b9150509295509295509295565b60008060408385031215613a3f57613a3e613187565b5b6000613a4d858286016134bd565b9250506020613a5e858286016134bd565b9150509250929050565b6000819050919050565b613a7b81613a68565b82525050565b6000602082019050613a966000830184613a72565b92915050565b600060208284031215613ab257613ab1613187565b5b6000613ac0848285016135d3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613b1057607f821691505b60208210811415613b2457613b23613ac9565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b86602183613257565b9150613b9182613b2a565b604082019050919050565b60006020820190508181036000830152613bb581613b79565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613c18603e83613257565b9150613c2382613bbc565b604082019050919050565b60006020820190508181036000830152613c4781613c0b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613cd9602e83613257565b9150613ce482613c7d565b604082019050919050565b60006020820190508181036000830152613d0881613ccc565b9050919050565b600081905092915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323060008201527f30302f73766722207072657365727665417370656374526174696f3d22784d6960208201527f6e594d696e206d656574222076696577426f783d22302030203530302035303060408201527f223e3c7374796c653e2e63617264317b66696c6c3a0000000000000000000000606082015250565b6000613dc2607583613d0f565b9150613dcd82613d1a565b607582019050919050565b6000613de38261324c565b613ded8185613d0f565b9350613dfd818560208601613268565b80840191505092915050565b7f3b666f6e742d73697a653a32353070783b7d3c2f7374796c653e3c7374796c6560008201527f3e2e63617264327b66696c6c3a00000000000000000000000000000000000000602082015250565b6000613e65602d83613d0f565b9150613e7082613e09565b602d82019050919050565b7f3b666f6e742d73697a653a32353070783b7d3c2f7374796c653e3c726563742060008201527f77696474683d223130302522206865696768743d2231303025222066696c6c3d60208201527f22776869746522202f3e3c7465787420783d223330252220793d22323831707860408201527f2220636c6173733d2263617264312220646f6d696e616e742d626173656c696e60608201527f653d226d6964646c652220746578742d616e63686f723d226d6964646c65223e608082015250565b6000613f4960a083613d0f565b9150613f5482613e7b565b60a082019050919050565b60008190508160005260206000209050919050565b60008154613f8181613af8565b613f8b8186613d0f565b94506001821660008114613fa65760018114613fb757613fea565b60ff19831686528186019350613fea565b613fc085613f5f565b60005b83811015613fe257815481890152600182019150602081019050613fc3565b838801955050505b50505092915050565b7f3c2f746578743e3c7465787420783d223730252220793d22323831707822206360008201527f6c6173733d2263617264322220646f6d696e616e742d626173656c696e653d2260208201527f6d6964646c652220746578742d616e63686f723d226d6964646c65223e000000604082015250565b6000614075605d83613d0f565b915061408082613ff3565b605d82019050919050565b7f3c2f746578743e3c2f7376673e00000000000000000000000000000000000000600082015250565b60006140c1600d83613d0f565b91506140cc8261408b565b600d82019050919050565b60006140e282613db5565b91506140ee8287613dd8565b91506140f982613e58565b91506141058286613dd8565b915061411082613f3c565b915061411c8285613f74565b915061412782614068565b91506141338284613f74565b915061413e826140b4565b915081905095945050505050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b60006141a8602b83613257565b91506141b38261414c565b604082019050919050565b600060208201905081810360008301526141d78161419b565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b600061423a602c83613257565b9150614245826141de565b604082019050919050565b600060208201905081810360008301526142698161422d565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006142a6601883613257565b91506142b182614270565b602082019050919050565b600060208201905081810360008301526142d581614299565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614338602983613257565b9150614343826142dc565b604082019050919050565b600060208201905081810360008301526143678161432b565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006143ca602f83613257565b91506143d58261436e565b604082019050919050565b600060208201905081810360008301526143f9816143bd565b9050919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000614436601d83613d0f565b915061444182614400565b601d82019050919050565b600061445782614429565b91506144638284613dd8565b915081905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006144a4601f83613257565b91506144af8261446e565b602082019050919050565b600060208201905081810360008301526144d381614497565b9050919050565b7f436c61696d206973206e6f74206c6976652e0000000000000000000000000000600082015250565b6000614510601283613257565b915061451b826144da565b602082019050919050565b6000602082019050818103600083015261453f81614503565b9050919050565b7f454f4173206f6e6c792e00000000000000000000000000000000000000000000600082015250565b600061457c600a83613257565b915061458782614546565b602082019050919050565b600060208201905081810360008301526145ab8161456f565b9050919050565b7f496e76616c69642053687566666c6520496e6465780000000000000000000000600082015250565b60006145e8601583613257565b91506145f3826145b2565b602082019050919050565b60006020820190508181036000830152614617816145db565b9050919050565b7f537570706c792069732063617070656420627920746865206d65726b6c65207260008201527f6f6f7420616e79776179732e0000000000000000000000000000000000000000602082015250565b600061467a602c83613257565b91506146858261461e565b604082019050919050565b600060208201905081810360008301526146a98161466d565b9050919050565b7f4f6e6520636c61696d207065722077616c6c65742e0000000000000000000000600082015250565b60006146e6601583613257565b91506146f1826146b0565b602082019050919050565b60006020820190508181036000830152614715816146d9565b9050919050565b7f5468697320746f6b656e2077617320616c7265616479206d696e7465642e0000600082015250565b6000614752601e83613257565b915061475d8261471c565b602082019050919050565b6000602082019050818103600083015261478181614745565b9050919050565b6000819050919050565b6147a361479e82613333565b614788565b82525050565b60006147b58286614792565b6020820191506147c58285614792565b6020820191506147d58284614792565b602082019150819050949350505050565b7f4d757374206d696e74207468652070726f70657220746f6b656e20616e64206360008201527f617264732e000000000000000000000000000000000000000000000000000000602082015250565b6000614842602583613257565b915061484d826147e6565b604082019050919050565b6000602082019050818103600083015261487181614835565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006148d4602683613257565b91506148df82614878565b604082019050919050565b60006020820190508181036000830152614903816148c7565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614966602583613257565b91506149718261490a565b604082019050919050565b6000602082019050818103600083015261499581614959565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006149f8602483613257565b9150614a038261499c565b604082019050919050565b60006020820190508181036000830152614a27816149eb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614a6882613333565b9150614a7383613333565b925082821015614a8657614a85614a2e565b5b828203905092915050565b6000614a9c82613333565b9150614aa783613333565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614adc57614adb614a2e565b5b828201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614b1d602083613257565b9150614b2882614ae7565b602082019050919050565b60006020820190508181036000830152614b4c81614b10565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614b89601983613257565b9150614b9482614b53565b602082019050919050565b60006020820190508181036000830152614bb881614b7c565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614c1b603283613257565b9150614c2682614bbf565b604082019050919050565b60006020820190508181036000830152614c4a81614c0e565b9050919050565b7f7b226e616d65223a202248616e64202300000000000000000000000000000000600082015250565b6000614c87601083613d0f565b9150614c9282614c51565b601082019050919050565b7f222c2261747472696275746573223a205b207b202274726169745f747970652260008201527f3a2022436172642031222c202276616c7565223a202200000000000000000000602082015250565b6000614cf9603683613d0f565b9150614d0482614c9d565b603682019050919050565b7f22207d2c7b202274726169745f74797065223a2022436172642032222c20227660008201527f616c7565223a2022000000000000000000000000000000000000000000000000602082015250565b6000614d6b602883613d0f565b9150614d7682614d0f565b602882019050919050565b7f22207d5d2c20226465736372697074696f6e223a20225468652043617264732060008201527f636f6c6c656374696f6e20636f6e7369737473206f662074686520313332362060208201527f756e6971756520706f6b6572207374617274696e672068616e6420636f6d626960408201527f6e6174696f6e7320746861742063616e206265206f627461696e65642077697460608201527f68696e2061206465636b206f662035322063617264732e222c00000000000000608082015250565b6000614e4f609983613d0f565b9150614e5a82614d81565b609982019050919050565b7f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b62617360008201527f6536342c00000000000000000000000000000000000000000000000000000000602082015250565b6000614ec1602483613d0f565b9150614ecc82614e65565b602482019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000614f0d600283613d0f565b9150614f1882614ed7565b600282019050919050565b6000614f2e82614c7a565b9150614f3a8287613dd8565b9150614f4582614cec565b9150614f518286613f74565b9150614f5c82614d5e565b9150614f688285613f74565b9150614f7382614e42565b9150614f7e82614eb4565b9150614f8a8284613dd8565b9150614f9582614f00565b915081905095945050505050565b600081519050614fb281613962565b92915050565b600060208284031215614fce57614fcd613187565b5b6000614fdc84828501614fa3565b91505092915050565b600081519050919050565b600082825260208201905092915050565b600061500c82614fe5565b6150168185614ff0565b9350615026818560208601613268565b61502f8161329b565b840191505092915050565b600060808201905061504f600083018761347c565b61505c602083018661347c565b6150696040830185613512565b818103606083015261507b8184615001565b905095945050505050565b600081519050615095816131bd565b92915050565b6000602082840312156150b1576150b0613187565b5b60006150bf84828501615086565b91505092915050565b60006150d382613333565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561510657615105614a2e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061514b82613333565b915061515683613333565b92508261516657615165615111565b5b828204905092915050565b600061517c82613333565b915061518783613333565b92508261519757615196615111565b5b828206905092915050565b60006151ad82613333565b91506151b883613333565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156151f1576151f0614a2e565b5b828202905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615232602083613257565b915061523d826151fc565b602082019050919050565b6000602082019050818103600083015261526181615225565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061529e601c83613257565b91506152a982615268565b602082019050919050565b600060208201905081810360008301526152cd81615291565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220325b501511b3ca1a4b22f8cb130cf51680693a45ace1f8c19178f34698d5756464736f6c634300080b0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063715018a611610104578063c87b56dd116100a2578063e985e9c511610071578063e985e9c514610578578063ebf0c717146105a8578063f2fde38b146105c6578063f8423803146105e2576101cf565b8063c87b56dd146104e0578063cc8c241a14610510578063ce281ee01461052c578063e5d33d351461055c576101cf565b80639aefd8fb116100de5780639aefd8fb14610448578063a22cb46514610478578063b88d4fde14610494578063c4e1111a146104b0576101cf565b8063715018a6146104025780638da5cb5b1461040c57806395d89b411461042a576101cf565b806323b872dd1161017157806342842e0e1161014b57806342842e0e146103565780634f6ccce7146103725780636352211e146103a257806370a08231146103d2576101cf565b806323b872dd146102da57806324d91779146102f65780632f745c5914610326576101cf565b8063081812fc116101ad578063081812fc14610240578063095ea7b314610270578063139332201461028c57806318160ddd146102bc576101cf565b806301ffc9a7146101d457806306fdde031461020457806307b3a85014610222575b600080fd5b6101ee60048036038101906101e991906131e9565b6105fe565b6040516101fb9190613231565b60405180910390f35b61020c610610565b60405161021991906132e5565b60405180910390f35b61022a6106a2565b60405161023791906133cf565b60405180910390f35b61025a6004803603810190610255919061341d565b6106fa565b604051610267919061348b565b60405180910390f35b61028a600480360381019061028591906134d2565b610740565b005b6102a660048036038101906102a1919061341d565b610858565b6040516102b391906132e5565b60405180910390f35b6102c46108ff565b6040516102d19190613521565b60405180910390f35b6102f460048036038101906102ef919061353c565b61090c565b005b610310600480360381019061030b919061341d565b61096c565b60405161031d91906132e5565b60405180910390f35b610340600480360381019061033b91906134d2565b610b43565b60405161034d9190613521565b60405180910390f35b610370600480360381019061036b919061353c565b610be8565b005b61038c6004803603810190610387919061341d565b610c08565b6040516103999190613521565b60405180910390f35b6103bc60048036038101906103b7919061341d565b610c79565b6040516103c9919061348b565b60405180910390f35b6103ec60048036038101906103e7919061358f565b610d2b565b6040516103f99190613521565b60405180910390f35b61040a610de3565b005b610414610df7565b604051610421919061348b565b60405180910390f35b610432610e21565b60405161043f91906132e5565b60405180910390f35b610462600480360381019061045d919061341d565b610eb3565b60405161046f91906132e5565b60405180910390f35b610492600480360381019061048d91906135e8565b610f5a565b005b6104ae60048036038101906104a9919061375d565b610f70565b005b6104ca60048036038101906104c5919061341d565b610fd2565b6040516104d791906138e0565b60405180910390f35b6104fa60048036038101906104f5919061341d565b6111d8565b60405161050791906132e5565b60405180910390f35b61052a6004803603810190610525919061358f565b61125a565b005b6105466004803603810190610541919061341d565b6112a6565b60405161055391906138e0565b60405180910390f35b6105766004803603810190610571919061398e565b6114ac565b005b610592600480360381019061058d9190613a28565b6118f5565b60405161059f9190613231565b60405180910390f35b6105b0611989565b6040516105bd9190613a81565b60405180910390f35b6105e060048036038101906105db919061358f565b6119ad565b005b6105fc60048036038101906105f79190613a9c565b611a31565b005b600061060982611a56565b9050919050565b60606000805461061f90613af8565b80601f016020809104026020016040519081016040528092919081815260200182805461064b90613af8565b80156106985780601f1061066d57610100808354040283529160200191610698565b820191906000526020600020905b81548152906001019060200180831161067b57829003601f168201915b5050505050905090565b6060600b8054806020026020016040519081016040528092919081815260200182805480156106f057602002820191906000526020600020905b8154815260200190600101908083116106dc575b5050505050905090565b600061070582611ad0565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061074b82610c79565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b390613b9c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107db611b1b565b73ffffffffffffffffffffffffffffffffffffffff16148061080a575061080981610804611b1b565b6118f5565b5b610849576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084090613c2e565b60405180910390fd5b6108538383611b23565b505050565b6060600f826034811061086e5761086d613c4e565b5b01805461087a90613af8565b80601f01602080910402602001604051908101604052809291908181526020018280546108a690613af8565b80156108f35780601f106108c8576101008083540402835291602001916108f3565b820191906000526020600020905b8154815290600101906020018083116108d657829003601f168201915b50505050509050919050565b6000600880549050905090565b61091d610917611b1b565b82611bdc565b61095c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095390613cef565b60405180910390fd5b610967838383611c71565b505050565b60606000600e600084815260200190815260200160002060008154811061099657610995613c4e565b5b906000526020600020015490506000600e60008581526020019081526020016000206001815481106109cb576109ca613c4e565b5b906000526020600020015490506000600d8310806109e95750826026105b610a28576040518060400160405280600381526020017f5265640000000000000000000000000000000000000000000000000000000000815250610a5f565b6040518060400160405280600581526020017f426c61636b0000000000000000000000000000000000000000000000000000008152505b90506000600d831080610a725750826026105b610ab1576040518060400160405280600381526020017f5265640000000000000000000000000000000000000000000000000000000000815250610ae8565b6040518060400160405280600581526020017f426c61636b0000000000000000000000000000000000000000000000000000008152505b9050818160438660348110610b0057610aff613c4e565b5b0160438660348110610b1557610b14613c4e565b5b01604051602001610b2994939291906140d7565b604051602081830303815290604052945050505050919050565b6000610b4e83610d2b565b8210610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b86906141be565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c0383838360405180602001604052806000815250610f70565b505050565b6000610c126108ff565b8210610c53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4a90614250565b60405180910390fd5b60088281548110610c6757610c66613c4e565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d19906142bc565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d939061434e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610deb611ed8565b610df56000611f56565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610e3090613af8565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5c90613af8565b8015610ea95780601f10610e7e57610100808354040283529160200191610ea9565b820191906000526020600020905b815481529060010190602001808311610e8c57829003601f168201915b5050505050905090565b606060438260348110610ec957610ec8613c4e565b5b018054610ed590613af8565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0190613af8565b8015610f4e5780601f10610f2357610100808354040283529160200191610f4e565b820191906000526020600020905b815481529060010190602001808311610f3157829003601f168201915b50505050509050919050565b610f6c610f65611b1b565b838361201c565b5050565b610f81610f7b611b1b565b83611bdc565b610fc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb790613cef565b60405180910390fd5b610fcc84848484612189565b50505050565b610fda6130ec565b610fe3826121e5565b611022576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611019906143e0565b60405180910390fd5b60405180604001604052806043600e600086815260200190815260200160002060008154811061105557611054613c4e565b5b90600052602060002001546034811061107157611070613c4e565b5b01805461107d90613af8565b80601f01602080910402602001604051908101604052809291908181526020018280546110a990613af8565b80156110f65780601f106110cb576101008083540402835291602001916110f6565b820191906000526020600020905b8154815290600101906020018083116110d957829003601f168201915b505050505081526020016043600e600086815260200190815260200160002060018154811061112857611127613c4e565b5b90600052602060002001546034811061114457611143613c4e565b5b01805461115090613af8565b80601f016020809104026020016040519081016040528092919081815260200182805461117c90613af8565b80156111c95780601f1061119e576101008083540402835291602001916111c9565b820191906000526020600020905b8154815290600101906020018083116111ac57829003601f168201915b50505050508152509050919050565b60606111e3826121e5565b611222576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611219906143e0565b60405180910390fd5b6112348261122f8461096c565b612251565b604051602001611244919061444c565b6040516020818303038152906040529050919050565b611262611ed8565b80600c60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6112ae6130ec565b6112b7826121e5565b6112f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ed906143e0565b60405180910390fd5b6040518060400160405280600f600e600086815260200190815260200160002060008154811061132957611328613c4e565b5b90600052602060002001546034811061134557611344613c4e565b5b01805461135190613af8565b80601f016020809104026020016040519081016040528092919081815260200182805461137d90613af8565b80156113ca5780601f1061139f576101008083540402835291602001916113ca565b820191906000526020600020905b8154815290600101906020018083116113ad57829003601f168201915b50505050508152602001600f600e60008681526020019081526020016000206001815481106113fc576113fb613c4e565b5b90600052602060002001546034811061141857611417613c4e565b5b01805461142490613af8565b80601f016020809104026020016040519081016040528092919081815260200182805461145090613af8565b801561149d5780601f106114725761010080835404028352916020019161149d565b820191906000526020600020905b81548152906001019060200180831161148057829003601f168201915b50505050508152509050919050565b600260775414156114f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e9906144ba565b60405180910390fd5b600260778190555080600c60009054906101000a900460ff1661154a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154190614526565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146115b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115af90614592565b60405180910390fd5b6115c133612321565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461162e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611625906145fe565b60405180910390fd5b61052e600b8054905010611677576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166e90614690565b60405180910390fd5b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fb906146fc565b60405180910390fd5b61170d876121e5565b1561174d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174490614768565b60405180910390fd5b6117e3848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507fb2f7e5087e23e0037c280a3eadd136a419be00de197b1c864632ca7adceb989f8989896040516020016117c8939291906147a9565b604051602081830303815290604052805190602001206123c6565b611822576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181990614858565b60405180910390fd5b604051806040016040528087815260200186815250600e6000898152602001908152602001600020906002611858929190613113565b50600b8790806001815401808255809150506001900390600052602060002001600090919091909150556001600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118e433886123dd565b506001607781905550505050505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7fb2f7e5087e23e0037c280a3eadd136a419be00de197b1c864632ca7adceb989f81565b6119b5611ed8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1c906148ea565b60405180910390fd5b611a2e81611f56565b50565b611a39611ed8565b80600c60006101000a81548160ff02191690831515021790555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ac95750611ac8826123fb565b5b9050919050565b611ad9816121e5565b611b18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0f906142bc565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611b9683610c79565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611be883610c79565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611c2a5750611c2981856118f5565b5b80611c6857508373ffffffffffffffffffffffffffffffffffffffff16611c50846106fa565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c9182610c79565b73ffffffffffffffffffffffffffffffffffffffff1614611ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cde9061497c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4e90614a0e565b60405180910390fd5b611d628383836124dd565b611d6d600082611b23565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dbd9190614a5d565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e149190614a91565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ed38383836124ed565b505050565b611ee0611b1b565b73ffffffffffffffffffffffffffffffffffffffff16611efe610df7565b73ffffffffffffffffffffffffffffffffffffffff1614611f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4b90614b33565b60405180910390fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561208b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208290614b9f565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161217c9190613231565b60405180910390a3505050565b612194848484611c71565b6121a0848484846124f2565b6121df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d690614c31565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b606061231961225f8461267a565b600f600e600087815260200190815260200160002060008154811061228757612286613c4e565b5b9060005260206000200154603481106122a3576122a2613c4e565b5b01600f600e60008881526020019081526020016000206001815481106122cc576122cb613c4e565b5b9060005260206000200154603481106122e8576122e7613c4e565b5b016122f2866127db565b6040516020016123059493929190614f23565b6040516020818303038152906040526127db565b905092915050565b6000600c60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c7920f8c836040518263ffffffff1660e01b815260040161237e919061348b565b602060405180830381865afa15801561239b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123bf9190614fb8565b9050919050565b6000826123d38584612973565b1490509392505050565b6123f78282604051806020016040528060008152506129c9565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124c657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806124d657506124d582612a24565b5b9050919050565b6124e8838383612a8e565b505050565b505050565b60006125138473ffffffffffffffffffffffffffffffffffffffff16612ba2565b1561266d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261253c611b1b565b8786866040518563ffffffff1660e01b815260040161255e949392919061503a565b6020604051808303816000875af192505050801561259a57506040513d601f19601f82011682018060405250810190612597919061509b565b60015b61261d573d80600081146125ca576040519150601f19603f3d011682016040523d82523d6000602084013e6125cf565b606091505b50600081511415612615576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260c90614c31565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612672565b600190505b949350505050565b606060008214156126c2576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506127d6565b600082905060005b600082146126f45780806126dd906150c8565b915050600a826126ed9190615140565b91506126ca565b60008167ffffffffffffffff8111156127105761270f613632565b5b6040519080825280601f01601f1916602001820160405280156127425781602001600182028036833780820191505090505b5090505b600085146127cf5760018261275b9190614a5d565b9150600a8561276a9190615171565b60306127769190614a91565b60f81b81838151811061278c5761278b613c4e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127c89190615140565b9450612746565b8093505050505b919050565b60606000825190506000811415612804576040518060200160405280600081525091505061296e565b600060036002836128159190614a91565b61281f9190615140565b600461282b91906151a2565b9050600060208261283c9190614a91565b67ffffffffffffffff81111561285557612854613632565b5b6040519080825280601f01601f1916602001820160405280156128875781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001615304604091399050600181016020830160005b8681101561292b5760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b905080845260048401935050506128b2565b506003860660018114612945576002811461295557612960565b613d3d60f01b6002830352612960565b603d60f81b60018303525b508484525050819450505050505b919050565b60008082905060005b84518110156129be576129a98286838151811061299c5761299b613c4e565b5b6020026020010151612bc5565b915080806129b6906150c8565b91505061297c565b508091505092915050565b6129d38383612bf0565b6129e060008484846124f2565b612a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1690614c31565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612a99838383612dca565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612adc57612ad781612dcf565b612b1b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612b1a57612b198382612e18565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b5e57612b5981612f85565b612b9d565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612b9c57612b9b8282613056565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000818310612bdd57612bd882846130d5565b612be8565b612be783836130d5565b5b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5790615248565b60405180910390fd5b612c69816121e5565b15612ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca0906152b4565b60405180910390fd5b612cb5600083836124dd565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d059190614a91565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612dc6600083836124ed565b5050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612e2584610d2b565b612e2f9190614a5d565b9050600060076000848152602001908152602001600020549050818114612f14576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612f999190614a5d565b9050600060096000848152602001908152602001600020549050600060088381548110612fc957612fc8613c4e565b5b906000526020600020015490508060088381548110612feb57612fea613c4e565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061303a576130396152d4565b5b6001900381819060005260206000200160009055905550505050565b600061306183610d2b565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600082600052816020526040600020905092915050565b60405180604001604052806002905b60608152602001906001900390816130fb5790505090565b82805482825590600052602060002090810192821561314f579160200282015b8281111561314e578251825591602001919060010190613133565b5b50905061315c9190613160565b5090565b5b80821115613179576000816000905550600101613161565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131c681613191565b81146131d157600080fd5b50565b6000813590506131e3816131bd565b92915050565b6000602082840312156131ff576131fe613187565b5b600061320d848285016131d4565b91505092915050565b60008115159050919050565b61322b81613216565b82525050565b60006020820190506132466000830184613222565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561328657808201518184015260208101905061326b565b83811115613295576000848401525b50505050565b6000601f19601f8301169050919050565b60006132b78261324c565b6132c18185613257565b93506132d1818560208601613268565b6132da8161329b565b840191505092915050565b600060208201905081810360008301526132ff81846132ac565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000819050919050565b61334681613333565b82525050565b6000613358838361333d565b60208301905092915050565b6000602082019050919050565b600061337c82613307565b6133868185613312565b935061339183613323565b8060005b838110156133c25781516133a9888261334c565b97506133b483613364565b925050600181019050613395565b5085935050505092915050565b600060208201905081810360008301526133e98184613371565b905092915050565b6133fa81613333565b811461340557600080fd5b50565b600081359050613417816133f1565b92915050565b60006020828403121561343357613432613187565b5b600061344184828501613408565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006134758261344a565b9050919050565b6134858161346a565b82525050565b60006020820190506134a0600083018461347c565b92915050565b6134af8161346a565b81146134ba57600080fd5b50565b6000813590506134cc816134a6565b92915050565b600080604083850312156134e9576134e8613187565b5b60006134f7858286016134bd565b925050602061350885828601613408565b9150509250929050565b61351b81613333565b82525050565b60006020820190506135366000830184613512565b92915050565b60008060006060848603121561355557613554613187565b5b6000613563868287016134bd565b9350506020613574868287016134bd565b925050604061358586828701613408565b9150509250925092565b6000602082840312156135a5576135a4613187565b5b60006135b3848285016134bd565b91505092915050565b6135c581613216565b81146135d057600080fd5b50565b6000813590506135e2816135bc565b92915050565b600080604083850312156135ff576135fe613187565b5b600061360d858286016134bd565b925050602061361e858286016135d3565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61366a8261329b565b810181811067ffffffffffffffff8211171561368957613688613632565b5b80604052505050565b600061369c61317d565b90506136a88282613661565b919050565b600067ffffffffffffffff8211156136c8576136c7613632565b5b6136d18261329b565b9050602081019050919050565b82818337600083830152505050565b60006137006136fb846136ad565b613692565b90508281526020810184848401111561371c5761371b61362d565b5b6137278482856136de565b509392505050565b600082601f83011261374457613743613628565b5b81356137548482602086016136ed565b91505092915050565b6000806000806080858703121561377757613776613187565b5b6000613785878288016134bd565b9450506020613796878288016134bd565b93505060406137a787828801613408565b925050606085013567ffffffffffffffff8111156137c8576137c761318c565b5b6137d48782880161372f565b91505092959194509250565b600060029050919050565b600081905092915050565b6000819050919050565b600082825260208201905092915050565b600061381c8261324c565b6138268185613800565b9350613836818560208601613268565b61383f8161329b565b840191505092915050565b60006138568383613811565b905092915050565b6000602082019050919050565b6000613876826137e0565b61388081856137eb565b935083602082028501613892856137f6565b8060005b858110156138ce57848403895281516138af858261384a565b94506138ba8361385e565b925060208a01995050600181019050613896565b50829750879550505050505092915050565b600060208201905081810360008301526138fa818461386b565b905092915050565b600080fd5b600080fd5b60008083601f84011261392257613921613628565b5b8235905067ffffffffffffffff81111561393f5761393e613902565b5b60208301915083602082028301111561395b5761395a613907565b5b9250929050565b61396b8161344a565b811461397657600080fd5b50565b60008135905061398881613962565b92915050565b60008060008060008060a087890312156139ab576139aa613187565b5b60006139b989828a01613408565b96505060206139ca89828a01613408565b95505060406139db89828a01613408565b945050606087013567ffffffffffffffff8111156139fc576139fb61318c565b5b613a0889828a0161390c565b93509350506080613a1b89828a01613979565b9150509295509295509295565b60008060408385031215613a3f57613a3e613187565b5b6000613a4d858286016134bd565b9250506020613a5e858286016134bd565b9150509250929050565b6000819050919050565b613a7b81613a68565b82525050565b6000602082019050613a966000830184613a72565b92915050565b600060208284031215613ab257613ab1613187565b5b6000613ac0848285016135d3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613b1057607f821691505b60208210811415613b2457613b23613ac9565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b86602183613257565b9150613b9182613b2a565b604082019050919050565b60006020820190508181036000830152613bb581613b79565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613c18603e83613257565b9150613c2382613bbc565b604082019050919050565b60006020820190508181036000830152613c4781613c0b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613cd9602e83613257565b9150613ce482613c7d565b604082019050919050565b60006020820190508181036000830152613d0881613ccc565b9050919050565b600081905092915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323060008201527f30302f73766722207072657365727665417370656374526174696f3d22784d6960208201527f6e594d696e206d656574222076696577426f783d22302030203530302035303060408201527f223e3c7374796c653e2e63617264317b66696c6c3a0000000000000000000000606082015250565b6000613dc2607583613d0f565b9150613dcd82613d1a565b607582019050919050565b6000613de38261324c565b613ded8185613d0f565b9350613dfd818560208601613268565b80840191505092915050565b7f3b666f6e742d73697a653a32353070783b7d3c2f7374796c653e3c7374796c6560008201527f3e2e63617264327b66696c6c3a00000000000000000000000000000000000000602082015250565b6000613e65602d83613d0f565b9150613e7082613e09565b602d82019050919050565b7f3b666f6e742d73697a653a32353070783b7d3c2f7374796c653e3c726563742060008201527f77696474683d223130302522206865696768743d2231303025222066696c6c3d60208201527f22776869746522202f3e3c7465787420783d223330252220793d22323831707860408201527f2220636c6173733d2263617264312220646f6d696e616e742d626173656c696e60608201527f653d226d6964646c652220746578742d616e63686f723d226d6964646c65223e608082015250565b6000613f4960a083613d0f565b9150613f5482613e7b565b60a082019050919050565b60008190508160005260206000209050919050565b60008154613f8181613af8565b613f8b8186613d0f565b94506001821660008114613fa65760018114613fb757613fea565b60ff19831686528186019350613fea565b613fc085613f5f565b60005b83811015613fe257815481890152600182019150602081019050613fc3565b838801955050505b50505092915050565b7f3c2f746578743e3c7465787420783d223730252220793d22323831707822206360008201527f6c6173733d2263617264322220646f6d696e616e742d626173656c696e653d2260208201527f6d6964646c652220746578742d616e63686f723d226d6964646c65223e000000604082015250565b6000614075605d83613d0f565b915061408082613ff3565b605d82019050919050565b7f3c2f746578743e3c2f7376673e00000000000000000000000000000000000000600082015250565b60006140c1600d83613d0f565b91506140cc8261408b565b600d82019050919050565b60006140e282613db5565b91506140ee8287613dd8565b91506140f982613e58565b91506141058286613dd8565b915061411082613f3c565b915061411c8285613f74565b915061412782614068565b91506141338284613f74565b915061413e826140b4565b915081905095945050505050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b60006141a8602b83613257565b91506141b38261414c565b604082019050919050565b600060208201905081810360008301526141d78161419b565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b600061423a602c83613257565b9150614245826141de565b604082019050919050565b600060208201905081810360008301526142698161422d565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006142a6601883613257565b91506142b182614270565b602082019050919050565b600060208201905081810360008301526142d581614299565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614338602983613257565b9150614343826142dc565b604082019050919050565b600060208201905081810360008301526143678161432b565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006143ca602f83613257565b91506143d58261436e565b604082019050919050565b600060208201905081810360008301526143f9816143bd565b9050919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000614436601d83613d0f565b915061444182614400565b601d82019050919050565b600061445782614429565b91506144638284613dd8565b915081905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006144a4601f83613257565b91506144af8261446e565b602082019050919050565b600060208201905081810360008301526144d381614497565b9050919050565b7f436c61696d206973206e6f74206c6976652e0000000000000000000000000000600082015250565b6000614510601283613257565b915061451b826144da565b602082019050919050565b6000602082019050818103600083015261453f81614503565b9050919050565b7f454f4173206f6e6c792e00000000000000000000000000000000000000000000600082015250565b600061457c600a83613257565b915061458782614546565b602082019050919050565b600060208201905081810360008301526145ab8161456f565b9050919050565b7f496e76616c69642053687566666c6520496e6465780000000000000000000000600082015250565b60006145e8601583613257565b91506145f3826145b2565b602082019050919050565b60006020820190508181036000830152614617816145db565b9050919050565b7f537570706c792069732063617070656420627920746865206d65726b6c65207260008201527f6f6f7420616e79776179732e0000000000000000000000000000000000000000602082015250565b600061467a602c83613257565b91506146858261461e565b604082019050919050565b600060208201905081810360008301526146a98161466d565b9050919050565b7f4f6e6520636c61696d207065722077616c6c65742e0000000000000000000000600082015250565b60006146e6601583613257565b91506146f1826146b0565b602082019050919050565b60006020820190508181036000830152614715816146d9565b9050919050565b7f5468697320746f6b656e2077617320616c7265616479206d696e7465642e0000600082015250565b6000614752601e83613257565b915061475d8261471c565b602082019050919050565b6000602082019050818103600083015261478181614745565b9050919050565b6000819050919050565b6147a361479e82613333565b614788565b82525050565b60006147b58286614792565b6020820191506147c58285614792565b6020820191506147d58284614792565b602082019150819050949350505050565b7f4d757374206d696e74207468652070726f70657220746f6b656e20616e64206360008201527f617264732e000000000000000000000000000000000000000000000000000000602082015250565b6000614842602583613257565b915061484d826147e6565b604082019050919050565b6000602082019050818103600083015261487181614835565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006148d4602683613257565b91506148df82614878565b604082019050919050565b60006020820190508181036000830152614903816148c7565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614966602583613257565b91506149718261490a565b604082019050919050565b6000602082019050818103600083015261499581614959565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006149f8602483613257565b9150614a038261499c565b604082019050919050565b60006020820190508181036000830152614a27816149eb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614a6882613333565b9150614a7383613333565b925082821015614a8657614a85614a2e565b5b828203905092915050565b6000614a9c82613333565b9150614aa783613333565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614adc57614adb614a2e565b5b828201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614b1d602083613257565b9150614b2882614ae7565b602082019050919050565b60006020820190508181036000830152614b4c81614b10565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614b89601983613257565b9150614b9482614b53565b602082019050919050565b60006020820190508181036000830152614bb881614b7c565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614c1b603283613257565b9150614c2682614bbf565b604082019050919050565b60006020820190508181036000830152614c4a81614c0e565b9050919050565b7f7b226e616d65223a202248616e64202300000000000000000000000000000000600082015250565b6000614c87601083613d0f565b9150614c9282614c51565b601082019050919050565b7f222c2261747472696275746573223a205b207b202274726169745f747970652260008201527f3a2022436172642031222c202276616c7565223a202200000000000000000000602082015250565b6000614cf9603683613d0f565b9150614d0482614c9d565b603682019050919050565b7f22207d2c7b202274726169745f74797065223a2022436172642032222c20227660008201527f616c7565223a2022000000000000000000000000000000000000000000000000602082015250565b6000614d6b602883613d0f565b9150614d7682614d0f565b602882019050919050565b7f22207d5d2c20226465736372697074696f6e223a20225468652043617264732060008201527f636f6c6c656374696f6e20636f6e7369737473206f662074686520313332362060208201527f756e6971756520706f6b6572207374617274696e672068616e6420636f6d626960408201527f6e6174696f6e7320746861742063616e206265206f627461696e65642077697460608201527f68696e2061206465636b206f662035322063617264732e222c00000000000000608082015250565b6000614e4f609983613d0f565b9150614e5a82614d81565b609982019050919050565b7f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b62617360008201527f6536342c00000000000000000000000000000000000000000000000000000000602082015250565b6000614ec1602483613d0f565b9150614ecc82614e65565b602482019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000614f0d600283613d0f565b9150614f1882614ed7565b600282019050919050565b6000614f2e82614c7a565b9150614f3a8287613dd8565b9150614f4582614cec565b9150614f518286613f74565b9150614f5c82614d5e565b9150614f688285613f74565b9150614f7382614e42565b9150614f7e82614eb4565b9150614f8a8284613dd8565b9150614f9582614f00565b915081905095945050505050565b600081519050614fb281613962565b92915050565b600060208284031215614fce57614fcd613187565b5b6000614fdc84828501614fa3565b91505092915050565b600081519050919050565b600082825260208201905092915050565b600061500c82614fe5565b6150168185614ff0565b9350615026818560208601613268565b61502f8161329b565b840191505092915050565b600060808201905061504f600083018761347c565b61505c602083018661347c565b6150696040830185613512565b818103606083015261507b8184615001565b905095945050505050565b600081519050615095816131bd565b92915050565b6000602082840312156150b1576150b0613187565b5b60006150bf84828501615086565b91505092915050565b60006150d382613333565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561510657615105614a2e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061514b82613333565b915061515683613333565b92508261516657615165615111565b5b828204905092915050565b600061517c82613333565b915061518783613333565b92508261519757615196615111565b5b828206905092915050565b60006151ad82613333565b91506151b883613333565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156151f1576151f0614a2e565b5b828202905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615232602083613257565b915061523d826151fc565b602082019050919050565b6000602082019050818103600083015261526181615225565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061529e601c83613257565b91506152a982615268565b602082019050919050565b600060208201905081810360008301526152cd81615291565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220325b501511b3ca1a4b22f8cb130cf51680693a45ace1f8c19178f34698d5756464736f6c634300080b0033
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.