Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
10,000 LOA
Holders
4,167
Market
Volume (24H)
0.031 ETH
Min Price (24H)
$28.69 @ 0.009200 ETH
Max Price (24H)
$38.99 @ 0.012500 ETH
Other Info
Token Contract
Balance
1 LOALoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LivesOfAsuna
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Author: Eric Gao (@itsoksami, https://github.com/Ericxgao) pragma solidity 0.8.10; import "./BaseFixedPriceAuctionERC721A.sol"; contract LivesOfAsuna is BaseFixedPriceAuctionERC721A { mapping(uint256 => bool) private _usedNonces; mapping(uint256 => string) private _tokenURIs; mapping(address => uint256) private _variableWhitelistAmounts; string public tokenURIPrefix = "Lives of Asuna Token URI Verification:"; string public mintWhitelistWithAmountPrefix = "Lives of Asuna Whitelist Verification:"; constructor( address[] memory payees, uint256[] memory shares, string memory name, string memory symbol, uint256 _whitelistMaxMint, uint256 _publicListMaxMint, uint256 _nonReservedMax, uint256 _reservedMax, uint256 _price ) BaseFixedPriceAuctionERC721A(payees, shares, name, symbol, _whitelistMaxMint, _publicListMaxMint, _nonReservedMax, _reservedMax, _price) { } function _hashSetTokenURI(string memory _prefix, address _address, string memory _tokenURI, uint256 _nonce) internal view returns (bytes32) { return keccak256(abi.encodePacked(_prefix, _address, _tokenURI, _nonce)); } function _hashRegisterForWhitelistWithAmount(string memory _prefix, address _address, uint256 amount) internal view returns (bytes32) { return keccak256(abi.encodePacked(_prefix, _address, amount)); } function setTokenURI(uint256 tokenId, string memory _tokenURI, uint256 nonce, bytes32 hash, bytes calldata signature) external { require(_verify(hash, signature), "Signature invalid."); require(_hashSetTokenURI(tokenURIPrefix, msg.sender, _tokenURI, nonce) == hash, "Hash invalid."); require(!_usedNonces[nonce], "Nonce already used."); require(ownerOf(tokenId) == msg.sender, "You do not own this token."); _usedNonces[nonce] = true; _tokenURIs[tokenId] = _tokenURI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), 'Token does not exist'); string memory directTokenURI = _tokenURIs[tokenId]; if (bytes(directTokenURI).length > 0) { return directTokenURI; } return super.tokenURI(tokenId); } function registerAndMintForWhitelist(bytes32 hash, bytes calldata signature, uint256 numberOfTokens, uint256 customLimit) external payable { require(_verify(hash, signature), "Signature invalid."); require(_hashRegisterForWhitelistWithAmount(mintWhitelistWithAmountPrefix, msg.sender, customLimit) == hash, "Hash invalid."); require(_whitelistClaimed[msg.sender] + numberOfTokens <= customLimit, 'You cannot mint this many.'); require(_whitelistClaimed[msg.sender] + numberOfTokens <= whitelistMaxMint, 'You cannot mint this many.'); _whitelistClaimed[msg.sender] += numberOfTokens; _nonReservedMintHelper(numberOfTokens); } }
// Author: Eric Gao (@itsoksami, https://github.com/Ericxgao) // Author: Azuki (ERC721A, https://github.com/chiru-labs/ERC721A) pragma solidity 0.8.10; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract BaseFixedPriceAuctionERC721A is ERC721A, ReentrancyGuard, Ownable { using Strings for uint256; using ECDSA for bytes32; string public prefix = "Base Verification:"; string private baseTokenURI = ''; mapping(address => uint256) public _whitelistClaimed; mapping(address => uint256) public _publicListClaimed; uint256 public nonReservedMax; uint256 public reservedMax; uint256 public max; uint256 public nonReservedMinted; uint256 public reservedMinted; uint256 public price; uint256 public whitelistMaxMint; uint256 public publicListMaxMint; PaymentSplitter private _splitter; constructor( address[] memory payees, uint256[] memory shares, string memory name, string memory symbol, uint256 _whitelistMaxMint, uint256 _publicListMaxMint, uint256 _nonReservedMax, uint256 _reservedMax, uint256 _price ) ERC721A(name, symbol, 4) { whitelistMaxMint = _whitelistMaxMint; publicListMaxMint = _publicListMaxMint; nonReservedMax = _nonReservedMax; reservedMax = _reservedMax; max = nonReservedMax + reservedMax; nonReservedMinted = 0; reservedMinted = 0; _splitter = new PaymentSplitter(payees, shares); price = _price; } function setPrice(uint256 _price) public onlyOwner { price = _price; } function release(address payable account) external { _splitter.release(account); } function _hash(address _address) internal view returns (bytes32) { return keccak256(abi.encodePacked(prefix, _address)); } function _verify(bytes32 hash, bytes memory signature) internal view returns (bool) { return (_recover(hash, signature) == owner()); } function _recover(bytes32 hash, bytes memory signature) internal pure returns (address) { return hash.recover(signature); } function setPrefix(string memory _prefix) public onlyOwner { prefix = _prefix; } function setWhitelistMaxMint(uint256 _whitelistMaxMint) external onlyOwner { whitelistMaxMint = _whitelistMaxMint; } function setPublicListMaxMint(uint256 _publicListMaxMint) external onlyOwner { publicListMaxMint = _publicListMaxMint; } function mintPublic(uint256 numberOfTokens) external payable { require(_publicListClaimed[msg.sender] + numberOfTokens <= publicListMaxMint, 'You cannot mint this many.'); _nonReservedMintHelper(numberOfTokens); _publicListClaimed[msg.sender] += numberOfTokens; } function mintWhitelist(bytes32 hash, bytes calldata signature, uint256 numberOfTokens) external payable { require(_verify(hash, signature), "This hash's signature is invalid."); require(_hash(msg.sender) == hash, "The address hash does not match the signed hash."); require(_whitelistClaimed[msg.sender] + numberOfTokens <= whitelistMaxMint, 'You cannot mint this many.'); _nonReservedMintHelper(numberOfTokens); _whitelistClaimed[msg.sender] += numberOfTokens; } function _nonReservedMintHelper(uint256 numberOfTokens) internal { require(numberOfTokens * price == msg.value, "Invalid amount."); require(totalSupply() + numberOfTokens <= max, "Sold out."); _safeMint(msg.sender, numberOfTokens); } function splitPayments() public payable onlyOwner { (bool success, ) = payable(_splitter).call{value: address(this).balance}( "" ); require(success); } function mintReserved(uint256 quantity) external onlyOwner { require( totalSupply() + quantity <= reservedMax, "Sold out." ); if (quantity < maxBatchSize) { _safeMint(msg.sender, quantity); } else { require( quantity % maxBatchSize == 0, "Can only mint a multiple of the maxBatchSize." ); uint256 numChunks = quantity / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(msg.sender, maxBatchSize); } } } function setBaseURI(string memory baseTokenURI_) external onlyOwner { baseTokenURI = baseTokenURI_; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { return string(abi.encodePacked(baseTokenURI, tokenId.toString())); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), "ERC721A: number minted query for the zero address"); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require(isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved"); require(prevOwnership.addr == from, "ERC721A: transfer from incorrect owner"); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return recover(hash, r, vs); } else { revert("ECDSA: invalid signature length"); } } /** * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Address.sol"; import "../utils/Context.sol"; import "../utils/math/SafeMath.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + _totalReleased; uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT 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 make 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.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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT 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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT 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 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 tokenId); /** * @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 pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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 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 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 pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"_whitelistMaxMint","type":"uint256"},{"internalType":"uint256","name":"_publicListMaxMint","type":"uint256"},{"internalType":"uint256","name":"_nonReservedMax","type":"uint256"},{"internalType":"uint256","name":"_reservedMax","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"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":"","type":"address"}],"name":"_publicListClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_whitelistClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"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"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintWhitelistWithAmountPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonReservedMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonReservedMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicListMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"customLimit","type":"uint256"}],"name":"registerAndMintForWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservedMinted","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_prefix","type":"string"}],"name":"setPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicListMaxMint","type":"uint256"}],"name":"setPublicListMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelistMaxMint","type":"uint256"}],"name":"setWhitelistMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splitPayments","outputs":[],"stateMutability":"payable","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":"tokenURIPrefix","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"},{"inputs":[],"name":"whitelistMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
600080805560075560e0604052601260a0819052712130b9b2902b32b934b334b1b0ba34b7b71d60711b60c09081526200003d91600a919062000236565b506040805160208101918290526000908190526200005e91600b9162000236565b5060405180606001604052806026815260200162004b2c6026913980516200008f91601a9160209091019062000236565b5060405180606001604052806026815260200162004b52602691398051620000c091601b9160209091019062000236565b50348015620000ce57600080fd5b5060405162004b7838038062004b78833981016040819052620000f191620004da565b8888888888888888888686600482516200011390600190602086019062000236565b5081516200012990600290602085019062000236565b50608052505060016008556200013f33620001e4565b60148590556015849055600e839055600f8290556200015f8284620005c4565b60105560006011819055601255604051899089906200017e90620002c5565b6200018b929190620005eb565b604051809103906000f080158015620001a8573d6000803e3d6000fd5b50601680546001600160a01b0319166001600160a01b039290921691909117905560135550620006b09f50505050505050505050505050505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002449062000673565b90600052602060002090601f016020900481019282620002685760008555620002b3565b82601f106200028357805160ff1916838001178555620002b3565b82800160010185558215620002b3579182015b82811115620002b357825182559160200191906001019062000296565b50620002c1929150620002d3565b5090565b610baa8062003f8283390190565b5b80821115620002c15760008155600101620002d4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200032b576200032b620002ea565b604052919050565b60006001600160401b038211156200034f576200034f620002ea565b5060051b60200190565b600082601f8301126200036b57600080fd5b81516020620003846200037e8362000333565b62000300565b82815260059290921b84018101918181019086841115620003a457600080fd5b8286015b84811015620003d85780516001600160a01b0381168114620003ca5760008081fd5b8352918301918301620003a8565b509695505050505050565b600082601f830112620003f557600080fd5b81516020620004086200037e8362000333565b82815260059290921b840181019181810190868411156200042857600080fd5b8286015b84811015620003d857805183529183019183016200042c565b600082601f8301126200045757600080fd5b81516001600160401b03811115620004735762000473620002ea565b602062000489601f8301601f1916820162000300565b82815285828487010111156200049e57600080fd5b60005b83811015620004be578581018301518282018401528201620004a1565b83811115620004d05760008385840101525b5095945050505050565b60008060008060008060008060006101208a8c031215620004fa57600080fd5b89516001600160401b03808211156200051257600080fd5b620005208d838e0162000359565b9a5060208c01519150808211156200053757600080fd5b620005458d838e01620003e3565b995060408c01519150808211156200055c57600080fd5b6200056a8d838e0162000445565b985060608c01519150808211156200058157600080fd5b50620005908c828d0162000445565b96505060808a0151945060a08a0151935060c08a0151925060e08a015191506101008a015190509295985092959850929598565b60008219821115620005e657634e487b7160e01b600052601160045260246000fd5b500190565b604080825283519082018190526000906020906060840190828701845b828110156200062f5781516001600160a01b03168452928401929084019060010162000608565b5050508381038285015284518082528583019183019060005b81811015620006665783518352928401929184019160010162000648565b5090979650505050505050565b600181811c908216806200068857607f821691505b60208210811415620006aa57634e487b7160e01b600052602260045260246000fd5b50919050565b60805161388c620006f6600039600081816115490152818161157e0152818161161d01528181611655015281816124f40152818161251e015261297a015261388c6000f3fe6080604052600436106102f25760003560e01c8063722e141d1161018f578063b27a87b0116100e1578063d73b2a6c1161008a578063e985e9c511610064578063e985e9c5146107c0578063efd0cbf914610809578063f2fde38b1461081c57600080fd5b8063d73b2a6c14610775578063d87a1eeb1461078b578063e2146963146107a057600080fd5b8063c0ac9983116100bb578063c0ac99831461072a578063c87b56dd1461073f578063d7224ba01461075f57600080fd5b8063b27a87b0146106d7578063b6183b05146106ea578063b88d4fde1461070a57600080fd5b80638da5cb5b116101435780639a5d140b1161011d5780639a5d140b14610681578063a035b1fe146106a1578063a22cb465146106b757600080fd5b80638da5cb5b1461062e57806391b7f5ed1461064c57806395d89b411461066c57600080fd5b8063800fffd011610174578063800fffd0146105b4578063851a7708146105e157806385cb593b1461060e57600080fd5b8063722e141d1461058957806375dadb321461059f57600080fd5b806342842e0e116102485780635ca8a780116101fc578063706c1e6f116101d6578063706c1e6f1461054c57806370a0823114610554578063715018a61461057457600080fd5b80635ca8a780146105035780636352211e146105165780636ac5db191461053657600080fd5b80634f6ccce71161022d5780634f6ccce7146104ad57806355f804b3146104cd578063571d34af146104ed57600080fd5b806342842e0e146104775780634f297ccc1461049757600080fd5b80630a99c9fe116102aa57806323b872dd1161028457806323b872dd146104175780632f745c591461043757806339a2e6591461045757600080fd5b80630a99c9fe146103cc57806318160ddd146103e257806319165587146103f757600080fd5b8063081812fc116102db578063081812fc1461034e578063095ea7b3146103865780630a23b725146103a857600080fd5b806301ffc9a7146102f757806306fdde031461032c575b600080fd5b34801561030357600080fd5b5061031761031236600461308b565b61083c565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b5061034161090d565b6040516103239190613100565b34801561035a57600080fd5b5061036e610369366004613113565b61099f565b6040516001600160a01b039091168152602001610323565b34801561039257600080fd5b506103a66103a1366004613141565b610a3f565b005b3480156103b457600080fd5b506103be60115481565b604051908152602001610323565b3480156103d857600080fd5b506103be600e5481565b3480156103ee57600080fd5b506000546103be565b34801561040357600080fd5b506103a661041236600461316d565b610b72565b34801561042357600080fd5b506103a661043236600461318a565b610bed565b34801561044357600080fd5b506103be610452366004613141565b610bf8565b34801561046357600080fd5b506103a6610472366004613113565b610d90565b34801561048357600080fd5b506103a661049236600461318a565b610def565b3480156104a357600080fd5b506103be60125481565b3480156104b957600080fd5b506103be6104c8366004613113565b610e0a565b3480156104d957600080fd5b506103a66104e8366004613277565b610e86565b3480156104f957600080fd5b506103be60155481565b6103a66105113660046132f5565b610ef7565b34801561052257600080fd5b5061036e610531366004613113565b61115b565b34801561054257600080fd5b506103be60105481565b6103a661116d565b34801561056057600080fd5b506103be61056f36600461316d565b61122a565b34801561058057600080fd5b506103a66112cd565b34801561059557600080fd5b506103be60145481565b3480156105ab57600080fd5b50610341611333565b3480156105c057600080fd5b506103be6105cf36600461316d565b600d6020526000908152604090205481565b3480156105ed57600080fd5b506103be6105fc36600461316d565b600c6020526000908152604090205481565b34801561061a57600080fd5b506103a6610629366004613277565b6113c1565b34801561063a57600080fd5b506009546001600160a01b031661036e565b34801561065857600080fd5b506103a6610667366004613113565b61142e565b34801561067857600080fd5b5061034161148d565b34801561068d57600080fd5b506103a661069c366004613113565b61149c565b3480156106ad57600080fd5b506103be60135481565b3480156106c357600080fd5b506103a66106d2366004613353565b61168b565b6103a66106e5366004613391565b611750565b3480156106f657600080fd5b506103a66107053660046133e4565b61191e565b34801561071657600080fd5b506103a661072536600461346b565b611b7a565b34801561073657600080fd5b50610341611c09565b34801561074b57600080fd5b5061034161075a366004613113565b611c16565b34801561076b57600080fd5b506103be60075481565b34801561078157600080fd5b506103be600f5481565b34801561079757600080fd5b50610341611d28565b3480156107ac57600080fd5b506103a66107bb366004613113565b611d35565b3480156107cc57600080fd5b506103176107db3660046134eb565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6103a6610817366004613113565b611d94565b34801561082857600080fd5b506103a661083736600461316d565b611e30565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061089f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108d357506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061090757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461091c90613519565b80601f016020809104026020016040519081016040528092919081815260200182805461094890613519565b80156109955780601f1061096a57610100808354040283529160200191610995565b820191906000526020600020905b81548152906001019060200180831161097857829003601f168201915b5050505050905090565b60006109ac826000541190565b610a235760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a4a8261115b565b9050806001600160a01b0316836001600160a01b03161415610ad45760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b336001600160a01b0382161480610af05750610af081336107db565b610b625760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a1a565b610b6d838383611f0f565b505050565b6016546040517f191655870000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015610bd257600080fd5b505af1158015610be6573d6000803e3d6000fd5b5050505050565b610b6d838383611f78565b6000610c038361122a565b8210610c775760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b600080549080805b83811015610d21576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610cd257805192505b876001600160a01b0316836001600160a01b03161415610d0e5786841415610d005750935061090792505050565b83610d0a8161356a565b9450505b5080610d198161356a565b915050610c7f565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610a1a565b6009546001600160a01b03163314610dea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b601555565b610b6d83838360405180602001604052806000815250611b7a565b600080548210610e825760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b5090565b6009546001600160a01b03163314610ee05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b8051610ef390600b906020840190612fe5565b5050565b610f378585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061233a92505050565b610f835760405162461bcd60e51b815260206004820152601260248201527f5369676e617475726520696e76616c69642e00000000000000000000000000006044820152606401610a1a565b84611019601b8054610f9490613519565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc090613519565b801561100d5780601f10610fe25761010080835404028352916020019161100d565b820191906000526020600020905b815481529060010190602001808311610ff057829003601f168201915b50505050503384612372565b146110565760405162461bcd60e51b815260206004820152600d60248201526c2430b9b41034b73b30b634b21760991b6044820152606401610a1a565b336000908152600c60205260409020548190611073908490613585565b11156110c15760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b601454336000908152600c60205260409020546110df908490613585565b111561112d5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b336000908152600c60205260408120805484929061114c908490613585565b90915550610be69050826123a8565b60006111668261245f565b5192915050565b6009546001600160a01b031633146111c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b6016546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611214576040519150601f19603f3d011682016040523d82523d6000602084013e611219565b606091505b505090508061122757600080fd5b50565b60006001600160a01b0382166112a85760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610a1a565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6009546001600160a01b031633146113275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b611331600061262a565b565b600a805461134090613519565b80601f016020809104026020016040519081016040528092919081815260200182805461136c90613519565b80156113b95780601f1061138e576101008083540402835291602001916113b9565b820191906000526020600020905b81548152906001019060200180831161139c57829003601f168201915b505050505081565b6009546001600160a01b0316331461141b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b8051610ef390600a906020840190612fe5565b6009546001600160a01b031633146114885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b601355565b60606002805461091c90613519565b6009546001600160a01b031633146114f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b600f548161150360005490565b61150d9190613585565b11156115475760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b6044820152606401610a1a565b7f0000000000000000000000000000000000000000000000000000000000000000811015611579576112273382612689565b6115a37f0000000000000000000000000000000000000000000000000000000000000000826135b3565b156116165760405162461bcd60e51b815260206004820152602d60248201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201527f6d6178426174636853697a652e000000000000000000000000000000000000006064820152608401610a1a565b60006116427f0000000000000000000000000000000000000000000000000000000000000000836135c7565b905060005b81811015610b6d57611679337f0000000000000000000000000000000000000000000000000000000000000000612689565b806116838161356a565b915050611647565b6001600160a01b0382163314156116e45760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a1a565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117908484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061233a92505050565b6118025760405162461bcd60e51b815260206004820152602160248201527f5468697320686173682773207369676e617475726520697320696e76616c696460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b8361180c336126a3565b1461187f5760405162461bcd60e51b815260206004820152603060248201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060448201527f746865207369676e656420686173682e000000000000000000000000000000006064820152608401610a1a565b601454336000908152600c602052604090205461189d908390613585565b11156118eb5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b6118f4816123a8565b336000908152600c602052604081208054839290611913908490613585565b909155505050505050565b61195e8383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061233a92505050565b6119aa5760405162461bcd60e51b815260206004820152601260248201527f5369676e617475726520696e76616c69642e00000000000000000000000000006044820152606401610a1a565b82611a41601a80546119bb90613519565b80601f01602080910402602001604051908101604052809291908181526020018280546119e790613519565b8015611a345780601f10611a0957610100808354040283529160200191611a34565b820191906000526020600020905b815481529060010190602001808311611a1757829003601f168201915b50505050503388886126d6565b14611a7e5760405162461bcd60e51b815260206004820152600d60248201526c2430b9b41034b73b30b634b21760991b6044820152606401610a1a565b60008481526017602052604090205460ff1615611add5760405162461bcd60e51b815260206004820152601360248201527f4e6f6e636520616c726561647920757365642e000000000000000000000000006044820152606401610a1a565b33611ae78761115b565b6001600160a01b031614611b3d5760405162461bcd60e51b815260206004820152601a60248201527f596f7520646f206e6f74206f776e207468697320746f6b656e2e0000000000006044820152606401610a1a565b6000848152601760209081526040808320805460ff19166001179055888352601882529091208651611b7192880190612fe5565b50505050505050565b611b85848484611f78565b611b9184848484612710565b611c035760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a1a565b50505050565b601a805461134090613519565b6060611c23826000541190565b611c6f5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f742065786973740000000000000000000000006044820152606401610a1a565b60008281526018602052604081208054611c8890613519565b80601f0160208091040260200160405190810160405280929190818152602001828054611cb490613519565b8015611d015780601f10611cd657610100808354040283529160200191611d01565b820191906000526020600020905b815481529060010190602001808311611ce457829003601f168201915b50505050509050600081511115611d185792915050565b611d2183612861565b9392505050565b601b805461134090613519565b6009546001600160a01b03163314611d8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b601455565b601554336000908152600d6020526040902054611db2908390613585565b1115611e005760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b611e09816123a8565b336000908152600d602052604081208054839290611e28908490613585565b909155505050565b6009546001600160a01b03163314611e8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b6001600160a01b038116611f065760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a1a565b6112278161262a565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611f838261245f565b80519091506000906001600160a01b0316336001600160a01b03161480611fba575033611faf8461099f565b6001600160a01b0316145b80611fcc57508151611fcc90336107db565b9050806120415760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610a1a565b846001600160a01b031682600001516001600160a01b0316146120cc5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610a1a565b6001600160a01b0384166121485760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610a1a565b6121586000848460000151611f0f565b6001600160a01b038516600090815260046020526040812080546001929061218a9084906001600160801b03166135db565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260046020526040812080546001945090926121d691859116613603565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b0319909116919092161717905561225e846001613585565b6000818152600360205260409020549091506001600160a01b03166122f057612288816000541190565b156122f05760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600061234e6009546001600160a01b031690565b6001600160a01b03166123618484612895565b6001600160a01b0316149392505050565b60008383836040516020016123899392919061362e565b6040516020818303038152906040528051906020012090509392505050565b34601354826123b7919061366d565b146124045760405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616d6f756e742e00000000000000000000000000000000006044820152606401610a1a565b6010548161241160005490565b61241b9190613585565b11156124555760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b6044820152606401610a1a565b6112273382612689565b604080518082019091526000808252602082015261247e826000541190565b6124f05760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610a1a565b60007f00000000000000000000000000000000000000000000000000000000000000008310612551576125437f00000000000000000000000000000000000000000000000000000000000000008461368c565b61254e906001613585565b90505b825b8181106125bb576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156125a857949350505050565b50806125b3816136a3565b915050612553565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610a1a565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610ef38282604051806020016040528060008152506128a1565b6000600a826040516020016126b9929190613754565b604051602081830303815290604052805190602001209050919050565b6000848484846040516020016126ef9493929190613781565b6040516020818303038152906040528051906020012090505b949350505050565b60006001600160a01b0384163b1561285957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127549033908990889088906004016137d5565b6020604051808303816000875af192505050801561278f575060408051601f3d908101601f1916820190925261278c91810190613807565b60015b61283f573d8080156127bd576040519150601f19603f3d011682016040523d82523d6000602084013e6127c2565b606091505b5080516128375760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a1a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612708565b506001612708565b6060600b61286e83612c23565b60405160200161287f929190613824565b6040516020818303038152906040529050919050565b6000611d218383612d55565b6000546001600160a01b0384166129205760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b61292b816000541190565b156129785760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a1a565b7f0000000000000000000000000000000000000000000000000000000000000000831115612a0e5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b0380821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190612a77908790613603565b6001600160801b03168152602001858360200151612a959190613603565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612c185760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612b866000888488612710565b612bf85760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a1a565b81612c028161356a565b9250508080612c109061356a565b915050612b39565b506000819055612332565b606081612c6357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612c8d5780612c778161356a565b9150612c869050600a836135c7565b9150612c67565b60008167ffffffffffffffff811115612ca857612ca86131cb565b6040519080825280601f01601f191660200182016040528015612cd2576020820181803683370190505b5090505b841561270857612ce760018361368c565b9150612cf4600a866135b3565b612cff906030613585565b60f81b818381518110612d1457612d14613840565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612d4e600a866135c7565b9450612cd6565b6000815160411415612d895760208201516040830151606084015160001a612d7f86828585612df9565b9350505050610907565b815160401415612db15760208201516040830151612da8858383612fa2565b92505050610907565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a1a565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612e765760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a1a565b8360ff16601b1480612e8b57508360ff16601c145b612ee25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a1a565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612f36573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612f995760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a1a565b95945050505050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821660ff83901c601b01612fdb86828785612df9565b9695505050505050565b828054612ff190613519565b90600052602060002090601f0160209004810192826130135760008555613059565b82601f1061302c57805160ff1916838001178555613059565b82800160010185558215613059579182015b8281111561305957825182559160200191906001019061303e565b50610e829291505b80821115610e825760008155600101613061565b6001600160e01b03198116811461122757600080fd5b60006020828403121561309d57600080fd5b8135611d2181613075565b60005b838110156130c35781810151838201526020016130ab565b83811115611c035750506000910152565b600081518084526130ec8160208601602086016130a8565b601f01601f19169290920160200192915050565b602081526000611d2160208301846130d4565b60006020828403121561312557600080fd5b5035919050565b6001600160a01b038116811461122757600080fd5b6000806040838503121561315457600080fd5b823561315f8161312c565b946020939093013593505050565b60006020828403121561317f57600080fd5b8135611d218161312c565b60008060006060848603121561319f57600080fd5b83356131aa8161312c565b925060208401356131ba8161312c565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156131fc576131fc6131cb565b604051601f8501601f19908116603f01168101908282118183101715613224576132246131cb565b8160405280935085815286868601111561323d57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261326857600080fd5b611d21838335602085016131e1565b60006020828403121561328957600080fd5b813567ffffffffffffffff8111156132a057600080fd5b61270884828501613257565b60008083601f8401126132be57600080fd5b50813567ffffffffffffffff8111156132d657600080fd5b6020830191508360208285010111156132ee57600080fd5b9250929050565b60008060008060006080868803121561330d57600080fd5b85359450602086013567ffffffffffffffff81111561332b57600080fd5b613337888289016132ac565b9699909850959660408101359660609091013595509350505050565b6000806040838503121561336657600080fd5b82356133718161312c565b91506020830135801515811461338657600080fd5b809150509250929050565b600080600080606085870312156133a757600080fd5b84359350602085013567ffffffffffffffff8111156133c557600080fd5b6133d1878288016132ac565b9598909750949560400135949350505050565b60008060008060008060a087890312156133fd57600080fd5b86359550602087013567ffffffffffffffff8082111561341c57600080fd5b6134288a838b01613257565b96506040890135955060608901359450608089013591508082111561344c57600080fd5b5061345989828a016132ac565b979a9699509497509295939492505050565b6000806000806080858703121561348157600080fd5b843561348c8161312c565b9350602085013561349c8161312c565b925060408501359150606085013567ffffffffffffffff8111156134bf57600080fd5b8501601f810187136134d057600080fd5b6134df878235602084016131e1565b91505092959194509250565b600080604083850312156134fe57600080fd5b82356135098161312c565b915060208301356133868161312c565b600181811c9082168061352d57607f821691505b6020821081141561354e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561357e5761357e613554565b5060010190565b6000821982111561359857613598613554565b500190565b634e487b7160e01b600052601260045260246000fd5b6000826135c2576135c261359d565b500690565b6000826135d6576135d661359d565b500490565b60006001600160801b03838116908316818110156135fb576135fb613554565b039392505050565b60006001600160801b0380831681851680830382111561362557613625613554565b01949350505050565b600084516136408184602089016130a8565b60609490941b6bffffffffffffffffffffffff191691909301908152601481019190915260340192915050565b600081600019048311821515161561368757613687613554565b500290565b60008282101561369e5761369e613554565b500390565b6000816136b2576136b2613554565b506000190190565b8054600090600181811c90808316806136d457607f831692505b60208084108214156136f657634e487b7160e01b600052602260045260246000fd5b81801561370a576001811461371b57613748565b60ff19861689528489019650613748565b60008881526020902060005b868110156137405781548b820152908501908301613727565b505084890196505b50505050505092915050565b600061376082856136ba565b60609390931b6bffffffffffffffffffffffff191683525050601401919050565b60008551613793818460208a016130a8565b606086901b6bffffffffffffffffffffffff191690830190815284516137c08160148401602089016130a8565b01601481019390935250506034019392505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612fdb60808301846130d4565b60006020828403121561381957600080fd5b8151611d2181613075565b600061383082856136ba565b83516136258183602088016130a8565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220291b982d71be25300c595c254320a78d46182c0b0a318d26edb085cceac902ce64736f6c634300080a0033608060405260405162000baa38038062000baa83398101604081905262000026916200042e565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200015757620001428382815181106200011157620001116200050c565b60200260200101518383815181106200012e576200012e6200050c565b60200260200101516200016060201b60201c565b806200014e8162000538565b915050620000ee565b50505062000571565b6001600160a01b038216620001cd5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b600081116200021f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b038216600090815260026020526040902054156200029b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200030390829062000556565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200038d576200038d6200034c565b604052919050565b60006001600160401b03821115620003b157620003b16200034c565b5060051b60200190565b600082601f830112620003cd57600080fd5b81516020620003e6620003e08362000395565b62000362565b82815260059290921b840181019181810190868411156200040657600080fd5b8286015b848110156200042357805183529183019183016200040a565b509695505050505050565b600080604083850312156200044257600080fd5b82516001600160401b03808211156200045a57600080fd5b818501915085601f8301126200046f57600080fd5b8151602062000482620003e08362000395565b82815260059290921b84018101918181019089841115620004a257600080fd5b948201945b83861015620004d95785516001600160a01b0381168114620004c95760008081fd5b82529482019490820190620004a7565b91880151919650909350505080821115620004f357600080fd5b506200050285828601620003bb565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200054f576200054f62000522565b5060010190565b600082198211156200056c576200056c62000522565b500190565b61062980620005816000396000f3fe6080604052600436106100695760003560e01c80639852595c116100435780639852595c14610135578063ce7c2ac21461016b578063e33b7de3146101a157600080fd5b806319165587146100b75780633a98ef39146100d95780638b83209b146100fd57600080fd5b366100b2577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100c357600080fd5b506100d76100d236600461051a565b6101b6565b005b3480156100e557600080fd5b506000545b6040519081526020015b60405180910390f35b34801561010957600080fd5b5061011d61011836600461053e565b6103b4565b6040516001600160a01b0390911681526020016100f4565b34801561014157600080fd5b506100ea61015036600461051a565b6001600160a01b031660009081526003602052604090205490565b34801561017757600080fd5b506100ea61018636600461051a565b6001600160a01b031660009081526002602052604090205490565b3480156101ad57600080fd5b506001546100ea565b6001600160a01b0381166000908152600260205260409020546102465760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f736861726573000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b600060015447610256919061056d565b6001600160a01b0383166000908152600360209081526040808320548354600290935290832054939450919261028c9085610585565b61029691906105a4565b6102a091906105c6565b9050806103155760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e74000000000000000000000000000000000000000000606482015260840161023d565b6001600160a01b03831660009081526003602052604090205461033990829061056d565b6001600160a01b03841660009081526003602052604090205560015461036090829061056d565b60015561036d83826103e4565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6000600482815481106103c9576103c96105dd565b6000918252602090912001546001600160a01b031692915050565b804710156104345760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161023d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610481576040519150601f19603f3d011682016040523d82523d6000602084013e610486565b606091505b50509050806104fd5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161023d565b505050565b6001600160a01b038116811461051757600080fd5b50565b60006020828403121561052c57600080fd5b813561053781610502565b9392505050565b60006020828403121561055057600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561058057610580610557565b500190565b600081600019048311821515161561059f5761059f610557565b500290565b6000826105c157634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156105d8576105d8610557565b500390565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220d22c30960490b05e3d25faf49a35cc66fae284a20361a5a3dfaa71d432eb976964736f6c634300080a00334c69766573206f66204173756e6120546f6b656e2055524920566572696669636174696f6e3a4c69766573206f66204173756e612057686974656c69737420566572696669636174696f6e3a0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026ac0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000016fd98b1341298f6916c2fec6132b77b940c62a3000000000000000000000000cea95b1d7dd2edee9d6f6a7664598a8cc9052a44000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000e4c69766573206f66204173756e6100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034c4f410000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102f25760003560e01c8063722e141d1161018f578063b27a87b0116100e1578063d73b2a6c1161008a578063e985e9c511610064578063e985e9c5146107c0578063efd0cbf914610809578063f2fde38b1461081c57600080fd5b8063d73b2a6c14610775578063d87a1eeb1461078b578063e2146963146107a057600080fd5b8063c0ac9983116100bb578063c0ac99831461072a578063c87b56dd1461073f578063d7224ba01461075f57600080fd5b8063b27a87b0146106d7578063b6183b05146106ea578063b88d4fde1461070a57600080fd5b80638da5cb5b116101435780639a5d140b1161011d5780639a5d140b14610681578063a035b1fe146106a1578063a22cb465146106b757600080fd5b80638da5cb5b1461062e57806391b7f5ed1461064c57806395d89b411461066c57600080fd5b8063800fffd011610174578063800fffd0146105b4578063851a7708146105e157806385cb593b1461060e57600080fd5b8063722e141d1461058957806375dadb321461059f57600080fd5b806342842e0e116102485780635ca8a780116101fc578063706c1e6f116101d6578063706c1e6f1461054c57806370a0823114610554578063715018a61461057457600080fd5b80635ca8a780146105035780636352211e146105165780636ac5db191461053657600080fd5b80634f6ccce71161022d5780634f6ccce7146104ad57806355f804b3146104cd578063571d34af146104ed57600080fd5b806342842e0e146104775780634f297ccc1461049757600080fd5b80630a99c9fe116102aa57806323b872dd1161028457806323b872dd146104175780632f745c591461043757806339a2e6591461045757600080fd5b80630a99c9fe146103cc57806318160ddd146103e257806319165587146103f757600080fd5b8063081812fc116102db578063081812fc1461034e578063095ea7b3146103865780630a23b725146103a857600080fd5b806301ffc9a7146102f757806306fdde031461032c575b600080fd5b34801561030357600080fd5b5061031761031236600461308b565b61083c565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b5061034161090d565b6040516103239190613100565b34801561035a57600080fd5b5061036e610369366004613113565b61099f565b6040516001600160a01b039091168152602001610323565b34801561039257600080fd5b506103a66103a1366004613141565b610a3f565b005b3480156103b457600080fd5b506103be60115481565b604051908152602001610323565b3480156103d857600080fd5b506103be600e5481565b3480156103ee57600080fd5b506000546103be565b34801561040357600080fd5b506103a661041236600461316d565b610b72565b34801561042357600080fd5b506103a661043236600461318a565b610bed565b34801561044357600080fd5b506103be610452366004613141565b610bf8565b34801561046357600080fd5b506103a6610472366004613113565b610d90565b34801561048357600080fd5b506103a661049236600461318a565b610def565b3480156104a357600080fd5b506103be60125481565b3480156104b957600080fd5b506103be6104c8366004613113565b610e0a565b3480156104d957600080fd5b506103a66104e8366004613277565b610e86565b3480156104f957600080fd5b506103be60155481565b6103a66105113660046132f5565b610ef7565b34801561052257600080fd5b5061036e610531366004613113565b61115b565b34801561054257600080fd5b506103be60105481565b6103a661116d565b34801561056057600080fd5b506103be61056f36600461316d565b61122a565b34801561058057600080fd5b506103a66112cd565b34801561059557600080fd5b506103be60145481565b3480156105ab57600080fd5b50610341611333565b3480156105c057600080fd5b506103be6105cf36600461316d565b600d6020526000908152604090205481565b3480156105ed57600080fd5b506103be6105fc36600461316d565b600c6020526000908152604090205481565b34801561061a57600080fd5b506103a6610629366004613277565b6113c1565b34801561063a57600080fd5b506009546001600160a01b031661036e565b34801561065857600080fd5b506103a6610667366004613113565b61142e565b34801561067857600080fd5b5061034161148d565b34801561068d57600080fd5b506103a661069c366004613113565b61149c565b3480156106ad57600080fd5b506103be60135481565b3480156106c357600080fd5b506103a66106d2366004613353565b61168b565b6103a66106e5366004613391565b611750565b3480156106f657600080fd5b506103a66107053660046133e4565b61191e565b34801561071657600080fd5b506103a661072536600461346b565b611b7a565b34801561073657600080fd5b50610341611c09565b34801561074b57600080fd5b5061034161075a366004613113565b611c16565b34801561076b57600080fd5b506103be60075481565b34801561078157600080fd5b506103be600f5481565b34801561079757600080fd5b50610341611d28565b3480156107ac57600080fd5b506103a66107bb366004613113565b611d35565b3480156107cc57600080fd5b506103176107db3660046134eb565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6103a6610817366004613113565b611d94565b34801561082857600080fd5b506103a661083736600461316d565b611e30565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061089f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108d357506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061090757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461091c90613519565b80601f016020809104026020016040519081016040528092919081815260200182805461094890613519565b80156109955780601f1061096a57610100808354040283529160200191610995565b820191906000526020600020905b81548152906001019060200180831161097857829003601f168201915b5050505050905090565b60006109ac826000541190565b610a235760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a4a8261115b565b9050806001600160a01b0316836001600160a01b03161415610ad45760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b336001600160a01b0382161480610af05750610af081336107db565b610b625760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a1a565b610b6d838383611f0f565b505050565b6016546040517f191655870000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015610bd257600080fd5b505af1158015610be6573d6000803e3d6000fd5b5050505050565b610b6d838383611f78565b6000610c038361122a565b8210610c775760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b600080549080805b83811015610d21576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610cd257805192505b876001600160a01b0316836001600160a01b03161415610d0e5786841415610d005750935061090792505050565b83610d0a8161356a565b9450505b5080610d198161356a565b915050610c7f565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610a1a565b6009546001600160a01b03163314610dea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b601555565b610b6d83838360405180602001604052806000815250611b7a565b600080548210610e825760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b5090565b6009546001600160a01b03163314610ee05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b8051610ef390600b906020840190612fe5565b5050565b610f378585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061233a92505050565b610f835760405162461bcd60e51b815260206004820152601260248201527f5369676e617475726520696e76616c69642e00000000000000000000000000006044820152606401610a1a565b84611019601b8054610f9490613519565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc090613519565b801561100d5780601f10610fe25761010080835404028352916020019161100d565b820191906000526020600020905b815481529060010190602001808311610ff057829003601f168201915b50505050503384612372565b146110565760405162461bcd60e51b815260206004820152600d60248201526c2430b9b41034b73b30b634b21760991b6044820152606401610a1a565b336000908152600c60205260409020548190611073908490613585565b11156110c15760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b601454336000908152600c60205260409020546110df908490613585565b111561112d5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b336000908152600c60205260408120805484929061114c908490613585565b90915550610be69050826123a8565b60006111668261245f565b5192915050565b6009546001600160a01b031633146111c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b6016546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611214576040519150601f19603f3d011682016040523d82523d6000602084013e611219565b606091505b505090508061122757600080fd5b50565b60006001600160a01b0382166112a85760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610a1a565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6009546001600160a01b031633146113275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b611331600061262a565b565b600a805461134090613519565b80601f016020809104026020016040519081016040528092919081815260200182805461136c90613519565b80156113b95780601f1061138e576101008083540402835291602001916113b9565b820191906000526020600020905b81548152906001019060200180831161139c57829003601f168201915b505050505081565b6009546001600160a01b0316331461141b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b8051610ef390600a906020840190612fe5565b6009546001600160a01b031633146114885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b601355565b60606002805461091c90613519565b6009546001600160a01b031633146114f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b600f548161150360005490565b61150d9190613585565b11156115475760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b6044820152606401610a1a565b7f0000000000000000000000000000000000000000000000000000000000000004811015611579576112273382612689565b6115a37f0000000000000000000000000000000000000000000000000000000000000004826135b3565b156116165760405162461bcd60e51b815260206004820152602d60248201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201527f6d6178426174636853697a652e000000000000000000000000000000000000006064820152608401610a1a565b60006116427f0000000000000000000000000000000000000000000000000000000000000004836135c7565b905060005b81811015610b6d57611679337f0000000000000000000000000000000000000000000000000000000000000004612689565b806116838161356a565b915050611647565b6001600160a01b0382163314156116e45760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a1a565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117908484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061233a92505050565b6118025760405162461bcd60e51b815260206004820152602160248201527f5468697320686173682773207369676e617475726520697320696e76616c696460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b8361180c336126a3565b1461187f5760405162461bcd60e51b815260206004820152603060248201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060448201527f746865207369676e656420686173682e000000000000000000000000000000006064820152608401610a1a565b601454336000908152600c602052604090205461189d908390613585565b11156118eb5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b6118f4816123a8565b336000908152600c602052604081208054839290611913908490613585565b909155505050505050565b61195e8383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061233a92505050565b6119aa5760405162461bcd60e51b815260206004820152601260248201527f5369676e617475726520696e76616c69642e00000000000000000000000000006044820152606401610a1a565b82611a41601a80546119bb90613519565b80601f01602080910402602001604051908101604052809291908181526020018280546119e790613519565b8015611a345780601f10611a0957610100808354040283529160200191611a34565b820191906000526020600020905b815481529060010190602001808311611a1757829003601f168201915b50505050503388886126d6565b14611a7e5760405162461bcd60e51b815260206004820152600d60248201526c2430b9b41034b73b30b634b21760991b6044820152606401610a1a565b60008481526017602052604090205460ff1615611add5760405162461bcd60e51b815260206004820152601360248201527f4e6f6e636520616c726561647920757365642e000000000000000000000000006044820152606401610a1a565b33611ae78761115b565b6001600160a01b031614611b3d5760405162461bcd60e51b815260206004820152601a60248201527f596f7520646f206e6f74206f776e207468697320746f6b656e2e0000000000006044820152606401610a1a565b6000848152601760209081526040808320805460ff19166001179055888352601882529091208651611b7192880190612fe5565b50505050505050565b611b85848484611f78565b611b9184848484612710565b611c035760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a1a565b50505050565b601a805461134090613519565b6060611c23826000541190565b611c6f5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f742065786973740000000000000000000000006044820152606401610a1a565b60008281526018602052604081208054611c8890613519565b80601f0160208091040260200160405190810160405280929190818152602001828054611cb490613519565b8015611d015780601f10611cd657610100808354040283529160200191611d01565b820191906000526020600020905b815481529060010190602001808311611ce457829003601f168201915b50505050509050600081511115611d185792915050565b611d2183612861565b9392505050565b601b805461134090613519565b6009546001600160a01b03163314611d8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b601455565b601554336000908152600d6020526040902054611db2908390613585565b1115611e005760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b611e09816123a8565b336000908152600d602052604081208054839290611e28908490613585565b909155505050565b6009546001600160a01b03163314611e8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b6001600160a01b038116611f065760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a1a565b6112278161262a565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611f838261245f565b80519091506000906001600160a01b0316336001600160a01b03161480611fba575033611faf8461099f565b6001600160a01b0316145b80611fcc57508151611fcc90336107db565b9050806120415760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610a1a565b846001600160a01b031682600001516001600160a01b0316146120cc5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610a1a565b6001600160a01b0384166121485760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610a1a565b6121586000848460000151611f0f565b6001600160a01b038516600090815260046020526040812080546001929061218a9084906001600160801b03166135db565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260046020526040812080546001945090926121d691859116613603565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b0319909116919092161717905561225e846001613585565b6000818152600360205260409020549091506001600160a01b03166122f057612288816000541190565b156122f05760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600061234e6009546001600160a01b031690565b6001600160a01b03166123618484612895565b6001600160a01b0316149392505050565b60008383836040516020016123899392919061362e565b6040516020818303038152906040528051906020012090509392505050565b34601354826123b7919061366d565b146124045760405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616d6f756e742e00000000000000000000000000000000006044820152606401610a1a565b6010548161241160005490565b61241b9190613585565b11156124555760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b6044820152606401610a1a565b6112273382612689565b604080518082019091526000808252602082015261247e826000541190565b6124f05760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610a1a565b60007f00000000000000000000000000000000000000000000000000000000000000048310612551576125437f00000000000000000000000000000000000000000000000000000000000000048461368c565b61254e906001613585565b90505b825b8181106125bb576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156125a857949350505050565b50806125b3816136a3565b915050612553565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610a1a565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610ef38282604051806020016040528060008152506128a1565b6000600a826040516020016126b9929190613754565b604051602081830303815290604052805190602001209050919050565b6000848484846040516020016126ef9493929190613781565b6040516020818303038152906040528051906020012090505b949350505050565b60006001600160a01b0384163b1561285957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127549033908990889088906004016137d5565b6020604051808303816000875af192505050801561278f575060408051601f3d908101601f1916820190925261278c91810190613807565b60015b61283f573d8080156127bd576040519150601f19603f3d011682016040523d82523d6000602084013e6127c2565b606091505b5080516128375760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a1a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612708565b506001612708565b6060600b61286e83612c23565b60405160200161287f929190613824565b6040516020818303038152906040529050919050565b6000611d218383612d55565b6000546001600160a01b0384166129205760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b61292b816000541190565b156129785760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a1a565b7f0000000000000000000000000000000000000000000000000000000000000004831115612a0e5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b0380821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190612a77908790613603565b6001600160801b03168152602001858360200151612a959190613603565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612c185760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612b866000888488612710565b612bf85760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a1a565b81612c028161356a565b9250508080612c109061356a565b915050612b39565b506000819055612332565b606081612c6357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612c8d5780612c778161356a565b9150612c869050600a836135c7565b9150612c67565b60008167ffffffffffffffff811115612ca857612ca86131cb565b6040519080825280601f01601f191660200182016040528015612cd2576020820181803683370190505b5090505b841561270857612ce760018361368c565b9150612cf4600a866135b3565b612cff906030613585565b60f81b818381518110612d1457612d14613840565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612d4e600a866135c7565b9450612cd6565b6000815160411415612d895760208201516040830151606084015160001a612d7f86828585612df9565b9350505050610907565b815160401415612db15760208201516040830151612da8858383612fa2565b92505050610907565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a1a565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612e765760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a1a565b8360ff16601b1480612e8b57508360ff16601c145b612ee25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a1a565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612f36573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612f995760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a1a565b95945050505050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821660ff83901c601b01612fdb86828785612df9565b9695505050505050565b828054612ff190613519565b90600052602060002090601f0160209004810192826130135760008555613059565b82601f1061302c57805160ff1916838001178555613059565b82800160010185558215613059579182015b8281111561305957825182559160200191906001019061303e565b50610e829291505b80821115610e825760008155600101613061565b6001600160e01b03198116811461122757600080fd5b60006020828403121561309d57600080fd5b8135611d2181613075565b60005b838110156130c35781810151838201526020016130ab565b83811115611c035750506000910152565b600081518084526130ec8160208601602086016130a8565b601f01601f19169290920160200192915050565b602081526000611d2160208301846130d4565b60006020828403121561312557600080fd5b5035919050565b6001600160a01b038116811461122757600080fd5b6000806040838503121561315457600080fd5b823561315f8161312c565b946020939093013593505050565b60006020828403121561317f57600080fd5b8135611d218161312c565b60008060006060848603121561319f57600080fd5b83356131aa8161312c565b925060208401356131ba8161312c565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156131fc576131fc6131cb565b604051601f8501601f19908116603f01168101908282118183101715613224576132246131cb565b8160405280935085815286868601111561323d57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261326857600080fd5b611d21838335602085016131e1565b60006020828403121561328957600080fd5b813567ffffffffffffffff8111156132a057600080fd5b61270884828501613257565b60008083601f8401126132be57600080fd5b50813567ffffffffffffffff8111156132d657600080fd5b6020830191508360208285010111156132ee57600080fd5b9250929050565b60008060008060006080868803121561330d57600080fd5b85359450602086013567ffffffffffffffff81111561332b57600080fd5b613337888289016132ac565b9699909850959660408101359660609091013595509350505050565b6000806040838503121561336657600080fd5b82356133718161312c565b91506020830135801515811461338657600080fd5b809150509250929050565b600080600080606085870312156133a757600080fd5b84359350602085013567ffffffffffffffff8111156133c557600080fd5b6133d1878288016132ac565b9598909750949560400135949350505050565b60008060008060008060a087890312156133fd57600080fd5b86359550602087013567ffffffffffffffff8082111561341c57600080fd5b6134288a838b01613257565b96506040890135955060608901359450608089013591508082111561344c57600080fd5b5061345989828a016132ac565b979a9699509497509295939492505050565b6000806000806080858703121561348157600080fd5b843561348c8161312c565b9350602085013561349c8161312c565b925060408501359150606085013567ffffffffffffffff8111156134bf57600080fd5b8501601f810187136134d057600080fd5b6134df878235602084016131e1565b91505092959194509250565b600080604083850312156134fe57600080fd5b82356135098161312c565b915060208301356133868161312c565b600181811c9082168061352d57607f821691505b6020821081141561354e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561357e5761357e613554565b5060010190565b6000821982111561359857613598613554565b500190565b634e487b7160e01b600052601260045260246000fd5b6000826135c2576135c261359d565b500690565b6000826135d6576135d661359d565b500490565b60006001600160801b03838116908316818110156135fb576135fb613554565b039392505050565b60006001600160801b0380831681851680830382111561362557613625613554565b01949350505050565b600084516136408184602089016130a8565b60609490941b6bffffffffffffffffffffffff191691909301908152601481019190915260340192915050565b600081600019048311821515161561368757613687613554565b500290565b60008282101561369e5761369e613554565b500390565b6000816136b2576136b2613554565b506000190190565b8054600090600181811c90808316806136d457607f831692505b60208084108214156136f657634e487b7160e01b600052602260045260246000fd5b81801561370a576001811461371b57613748565b60ff19861689528489019650613748565b60008881526020902060005b868110156137405781548b820152908501908301613727565b505084890196505b50505050505092915050565b600061376082856136ba565b60609390931b6bffffffffffffffffffffffff191683525050601401919050565b60008551613793818460208a016130a8565b606086901b6bffffffffffffffffffffffff191690830190815284516137c08160148401602089016130a8565b01601481019390935250506034019392505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612fdb60808301846130d4565b60006020828403121561381957600080fd5b8151611d2181613075565b600061383082856136ba565b83516136258183602088016130a8565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220291b982d71be25300c595c254320a78d46182c0b0a318d26edb085cceac902ce64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026ac0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000016fd98b1341298f6916c2fec6132b77b940c62a3000000000000000000000000cea95b1d7dd2edee9d6f6a7664598a8cc9052a44000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000e4c69766573206f66204173756e6100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034c4f410000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : payees (address[]): 0x16Fd98B1341298F6916c2fEc6132b77b940c62a3,0xCEa95B1d7Dd2EdeE9D6f6a7664598a8cC9052A44
Arg [1] : shares (uint256[]): 80,20
Arg [2] : name (string): Lives of Asuna
Arg [3] : symbol (string): LOA
Arg [4] : _whitelistMaxMint (uint256): 3
Arg [5] : _publicListMaxMint (uint256): 0
Arg [6] : _nonReservedMax (uint256): 9900
Arg [7] : _reservedMax (uint256): 100
Arg [8] : _price (uint256): 80000000000000000
-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 00000000000000000000000000000000000000000000000000000000000026ac
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [8] : 000000000000000000000000000000000000000000000000011c37937e080000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [10] : 00000000000000000000000016fd98b1341298f6916c2fec6132b77b940c62a3
Arg [11] : 000000000000000000000000cea95b1d7dd2edee9d6f6a7664598a8cc9052a44
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [16] : 4c69766573206f66204173756e61000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [18] : 4c4f410000000000000000000000000000000000000000000000000000000000
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.