NFT
Overview
TokenID
3654
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NationalParks
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
byzantium EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import '@openzeppelin/contracts/security/Pausable.sol'; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./external/ERC721A.sol"; // @author rollauver.eth contract NationalParks is ERC721A, Ownable, Pausable, PaymentSplitter { string public _baseTokenURI; bytes32 public _merkleRoot; uint256 public _price; uint256 public _presalePrice; uint256 public _maxSupply; uint256 public _maxPerAddress; uint256 public _presaleMaxPerAddress; uint256 public _publicSaleTime; uint256 public _preSaleTime; uint256 public _maxTxPerAddress; event EarlyPurchase(address indexed addr, uint256 indexed atPrice, uint256 indexed count); event Purchase(address indexed addr, uint256 indexed atPrice, uint256 indexed count); constructor( string memory name, string memory symbol, string memory baseTokenURI, // baseTokenURI - 0 uint256[] memory numericValues, // price - 0, presalePrice - 1, maxSupply - 2, maxPerAddress - 3, presaleMaxPerAddress - 4, publicSaleTime - 5, _preSaleTime - 6, _maxTxPerAddress - 7 bytes32 merkleRoot, address[] memory payees, uint256[] memory shares ) ERC721A(name, symbol, numericValues[2]) PaymentSplitter(payees, shares) { _baseTokenURI = baseTokenURI; _price = numericValues[0]; _presalePrice = numericValues[1]; _maxSupply = numericValues[2]; _maxPerAddress = numericValues[3]; _presaleMaxPerAddress = numericValues[4]; _publicSaleTime = numericValues[5]; _preSaleTime = numericValues[6]; _maxTxPerAddress = numericValues[7]; _merkleRoot = merkleRoot; } function setSaleInformation( uint256 publicSaleTime, uint256 preSaleTime, uint256 maxPerAddress, uint256 presaleMaxPerAddress, uint256 price, uint256 presalePrice, bytes32 merkleRoot, uint256 maxTxPerAddress ) external onlyOwner { _publicSaleTime = publicSaleTime; _preSaleTime = preSaleTime; _maxPerAddress = maxPerAddress; _presaleMaxPerAddress = presaleMaxPerAddress; _price = price; _presalePrice = presalePrice; _merkleRoot = merkleRoot; _maxTxPerAddress = maxTxPerAddress; } function setBaseUri( string memory baseUri ) external onlyOwner { _baseTokenURI = baseUri; } function setMerkleRoot(bytes32 merkleRoot) external onlyOwner { _merkleRoot = merkleRoot; } function _baseURI() override internal view virtual returns (string memory) { return string( abi.encodePacked( _baseTokenURI, Strings.toHexString(uint256(uint160(address(this))), 20), '/' ) ); } function mint(address to, uint256 count) external onlyOwner { ensureMintConditions(count); _safeMint(to, count); } function purchase(uint256 count) external payable whenNotPaused { ensurePublicMintConditions(msg.sender, count, _maxPerAddress); require(isPublicSaleActive(), "BASE_COLLECTION/CANNOT_MINT"); _purchase(count, _price); emit Purchase(msg.sender, _price, count); } function earlyPurchase(uint256 count, bytes32[] calldata merkleProof) external payable whenNotPaused { ensurePublicMintConditions(msg.sender, count, _presaleMaxPerAddress); require(isPreSaleActive() && onEarlyPurchaseList(msg.sender, merkleProof), "BASE_COLLECTION/CANNOT_MINT_PRESALE"); _purchase(count, _presalePrice); emit EarlyPurchase(msg.sender, _presalePrice, count); } function _purchase(uint256 count, uint256 price) private { require(price * count <= msg.value, 'BASE_COLLECTION/INSUFFICIENT_ETH_AMOUNT'); _safeMint(msg.sender, count); } function ensureMintConditions(uint256 count) internal view { require(totalSupply() + count <= _maxSupply, "BASE_COLLECTION/EXCEEDS_MAX_SUPPLY"); } function ensurePublicMintConditions(address to, uint256 count, uint256 maxPerAddress) internal view { ensureMintConditions(count); require((_maxTxPerAddress != 0) && (count <= _maxTxPerAddress), "BASE_COLLECTION/EXCEEDS_MAX_PER_TRANSACTION"); uint totalMintFromAddress = balanceOf(to) + count; require ((maxPerAddress != 0) && (totalMintFromAddress <= maxPerAddress), "BASE_COLLECTION/EXCEEDS_INDIVIDUAL_SUPPLY"); } function isPublicSaleActive() public view returns (bool) { return (_publicSaleTime != 0 && _publicSaleTime < block.timestamp); } function isPreSaleActive() public view returns (bool) { return (_preSaleTime != 0 && (_preSaleTime < block.timestamp) && (block.timestamp < _publicSaleTime)); } function onEarlyPurchaseList(address addr, bytes32[] calldata merkleProof) public view returns (bool) { require(_merkleRoot.length > 0, "BASE_COLLECTION/PRESALE_MINT_LIST_UNSET"); bytes32 node = keccak256(abi.encodePacked(addr)); return MerkleProof.verify(merkleProof, _merkleRoot, node); } function MAX_TOTAL_MINT() public view returns (uint256) { return _maxSupply; } function PRICE() public view returns (uint256) { if (isPreSaleActive()) { return _presalePrice; } return _price; } function MAX_TOTAL_MINT_PER_ADDRESS() public view returns (uint256) { if (isPreSaleActive()) { return _presaleMaxPerAddress; } return _maxPerAddress; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } }
// SPDX-License-Identifier: MIT // Creators: locationtba.eth, 2pmflow.eth 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 = 1; 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 - 1; } /** * @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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) 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); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.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. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, 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; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @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 total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @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 amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][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 = _pendingPayment(account, totalReceived, released(account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment(account, totalReceived, released(token, account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @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 // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "byzantium", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"uint256[]","name":"numericValues","type":"uint256[]"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","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":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":true,"internalType":"uint256","name":"atPrice","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"count","type":"uint256"}],"name":"EarlyPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":true,"internalType":"uint256","name":"atPrice","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"count","type":"uint256"}],"name":"Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_TOTAL_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_MINT_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxTxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_preSaleTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_presaleMaxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_presalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_publicSaleTime","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":"count","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"earlyPurchase","outputs":[],"stateMutability":"payable","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":"isPreSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"onEarlyPurchaseList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"publicSaleTime","type":"uint256"},{"internalType":"uint256","name":"preSaleTime","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"},{"internalType":"uint256","name":"presaleMaxPerAddress","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"presalePrice","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"maxTxPerAddress","type":"uint256"}],"name":"setSaleInformation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0604052600160005560006007553480156200001b57600080fd5b50604051620047ab380380620047ab8339810160408190526200003e916200097a565b818188888760028151811062000058576200005862000a8c565b602002602001015160008111620000f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d7573742062652060448201527f6e6f6e7a65726f0000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b82516200010b906001906020860190620006d1565b50815162000121906002906020850190620006d1565b50608052506200014e90506200013f6401000000006200041c810204565b64010000000062000420810204565b6008805460a060020a60ff02191690558051825114620001f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e64207368617260448201527f6573206c656e677468206d69736d6174636800000000000000000000000000006064820152608401620000ed565b60008251116200025e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620000ed565b60005b8251811015620002d357620002be83828151811062000284576200028462000a8c565b6020026020010151838381518110620002a157620002a162000a8c565b602002602001015162000472640100000000026401000000009004565b80620002ca8162000aea565b91505062000261565b50508551620002eb91506010906020880190620006d1565b508360008151811062000302576200030262000a8c565b60200260200101516012819055508360018151811062000326576200032662000a8c565b6020026020010151601381905550836002815181106200034a576200034a62000a8c565b6020026020010151601481905550836003815181106200036e576200036e62000a8c565b60200260200101516015819055508360048151811062000392576200039262000a8c565b602002602001015160168190555083600581518110620003b657620003b662000a8c565b602002602001015160178190555083600681518110620003da57620003da62000a8c565b602002602001015160188190555083600781518110620003fe57620003fe62000a8c565b602090810291909101015160195550506011555062000b7992505050565b3390565b60088054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600160a060020a0382166200050a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201527f7a65726f206164647265737300000000000000000000000000000000000000006064820152608401620000ed565b6000811162000576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620000ed565b600160a060020a0382166000908152600b6020526040902054156200061e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201527f20686173207368617265730000000000000000000000000000000000000000006064820152608401620000ed565b600d8054600181019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5018054600160a060020a031916600160a060020a0384169081179091556000908152600b602052604090208190556009546200068890829062000b08565b60095560408051600160a060020a0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054620006df9062000b23565b90600052602060002090601f0160209004810192826200070357600085556200074e565b82601f106200071e57805160ff19168380011785556200074e565b828001600101855582156200074e579182015b828111156200074e57825182559160200191906001019062000731565b506200075c92915062000760565b5090565b5b808211156200075c576000815560010162000761565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f191681016001604060020a0381118282101715620007d157620007d162000777565b604052919050565b600082601f830112620007eb57600080fd5b81516001604060020a0381111562000807576200080762000777565b60206200081d601f8301601f19168201620007a6565b82815285828487010111156200083257600080fd5b60005b838110156200085257858101830151828201840152820162000835565b83811115620008645760008385840101525b5095945050505050565b60006001604060020a038211156200088a576200088a62000777565b5060209081020190565b600082601f830112620008a657600080fd5b81516020620008bf620008b9836200086e565b620007a6565b82815291810284018101918181019086841115620008dc57600080fd5b8286015b84811015620008f95780518352918301918301620008e0565b509695505050505050565b600082601f8301126200091657600080fd5b8151602062000929620008b9836200086e565b828152918102840181019181810190868411156200094657600080fd5b8286015b84811015620008f9578051600160a060020a03811681146200096c5760008081fd5b83529183019183016200094a565b600080600080600080600060e0888a0312156200099657600080fd5b87516001604060020a0380821115620009ae57600080fd5b620009bc8b838c01620007d9565b985060208a0151915080821115620009d357600080fd5b620009e18b838c01620007d9565b975060408a0151915080821115620009f857600080fd5b62000a068b838c01620007d9565b965060608a015191508082111562000a1d57600080fd5b62000a2b8b838c0162000894565b955060808a0151945060a08a015191508082111562000a4957600080fd5b62000a578b838c0162000904565b935060c08a015191508082111562000a6e57600080fd5b5062000a7d8a828b0162000894565b91505092959891949750929550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600060001982141562000b015762000b0162000abb565b5060010190565b6000821982111562000b1e5762000b1e62000abb565b500190565b60028104600182168062000b3857607f821691505b6020821081141562000b73577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b608051613c0862000ba3600039600081816123c8015281816123f20152612b360152613c086000f3fe608060405260043610610356576000357c0100000000000000000000000000000000000000000000000000000000900480637b96a3b2116101c8578063b88d4fde11610114578063e2ab10ce116100b2578063e985e9c51161008c578063e985e9c514610992578063efef39a1146109db578063f2fde38b146109ee578063fa156f9a14610a0e57600080fd5b8063e2ab10ce14610954578063e2d5ee2d14610967578063e33b7de31461097d57600080fd5b8063cf9e8e69116100ee578063cf9e8e69146108de578063cfc86f7b146108f3578063d7224ba014610908578063d79779b21461091e57600080fd5b8063b88d4fde14610868578063c87b56dd14610888578063ce7c2ac2146108a857600080fd5b8063904be6da116101815780639d044ed31161015b5780639d044ed3146107fd578063a0bcfc7f14610812578063a22cb46514610832578063b85ef0361461085257600080fd5b8063904be6da1461079c57806395d89b41146107b25780639852595c146107c757600080fd5b80637b96a3b2146106f45780637cb64759146107145780638456cb59146107345780638b83209b146107495780638d859f3e146107695780638da5cb5b1461077e57600080fd5b80633f4ba83a116102a25780635f0d246a11610240578063696fa41e1161021a578063696fa41e1461068957806370a082311461069f578063715018a6146106bf57806374721235146106d457600080fd5b80635f0d246a1461063e5780636352211e1461065457806366cfb1f31461067457600080fd5b806342842e0e1161027c57806342842e0e146105bf57806348b75044146105df5780634f6ccce7146105ff5780635c975abb1461061f57600080fd5b80633f4ba83a14610544578063406072a91461055957806340c10f191461059f57600080fd5b80631e84c4131161030f57806323b872dd116102e957806323b872dd146104d95780632f745c59146104f95780632fc37ab2146105195780633a98ef391461052f57600080fd5b80631e84c4131461049857806322f4596f146104ad578063235b6ea1146104c357600080fd5b806301ffc9a7146103a457806306fdde03146103d9578063081812fc146103fb578063095ea7b31461043357806318160ddd14610455578063191655871461047857600080fd5b3661039f577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7703360408051600160a060020a0390921682523460208301520160405180910390a1005b600080fd5b3480156103b057600080fd5b506103c46103bf3660046132dc565b610a24565b60405190151581526020015b60405180910390f35b3480156103e557600080fd5b506103ee610af5565b6040516103d09190613351565b34801561040757600080fd5b5061041b610416366004613364565b610b87565b604051600160a060020a0390911681526020016103d0565b34801561043f57600080fd5b5061045361044e366004613392565b610c2a565b005b34801561046157600080fd5b5061046a610d63565b6040519081526020016103d0565b34801561048457600080fd5b506104536104933660046133be565b610d79565b3480156104a457600080fd5b506103c4610eae565b3480156104b957600080fd5b5061046a60145481565b3480156104cf57600080fd5b5061046a60125481565b3480156104e557600080fd5b506104536104f43660046133db565b610ec8565b34801561050557600080fd5b5061046a610514366004613392565b610ed3565b34801561052557600080fd5b5061046a60115481565b34801561053b57600080fd5b5060095461046a565b34801561055057600080fd5b5061045361107b565b34801561056557600080fd5b5061046a61057436600461341c565b600160a060020a039182166000908152600f6020908152604080832093909416825291909152205490565b3480156105ab57600080fd5b506104536105ba366004613392565b6110b2565b3480156105cb57600080fd5b506104536105da3660046133db565b6110f6565b3480156105eb57600080fd5b506104536105fa36600461341c565b611111565b34801561060b57600080fd5b5061046a61061a366004613364565b611318565b34801561062b57600080fd5b5060085460a060020a900460ff166103c4565b34801561064a57600080fd5b5061046a60135481565b34801561066057600080fd5b5061041b61066f366004613364565b61139d565b34801561068057600080fd5b5061046a6113af565b34801561069557600080fd5b5061046a60195481565b3480156106ab57600080fd5b5061046a6106ba3660046133be565b6113cc565b3480156106cb57600080fd5b50610453611472565b3480156106e057600080fd5b506104536106ef366004613455565b6114a9565b34801561070057600080fd5b506103c461070f3660046134f5565b6114fc565b34801561072057600080fd5b5061045361072f366004613364565b611589565b34801561074057600080fd5b506104536115bb565b34801561075557600080fd5b5061041b610764366004613364565b6115f0565b34801561077557600080fd5b5061046a611620565b34801561078a57600080fd5b50600854600160a060020a031661041b565b3480156107a857600080fd5b5061046a60165481565b3480156107be57600080fd5b506103ee61163d565b3480156107d357600080fd5b5061046a6107e23660046133be565b600160a060020a03166000908152600c602052604090205490565b34801561080957600080fd5b506103c461164c565b34801561081e57600080fd5b5061045361082d3660046135d9565b611672565b34801561083e57600080fd5b5061045361084d366004613630565b6116b2565b34801561085e57600080fd5b5061046a60175481565b34801561087457600080fd5b5061045361088336600461365e565b61177a565b34801561089457600080fd5b506103ee6108a3366004613364565b6117b6565b3480156108b457600080fd5b5061046a6108c33660046133be565b600160a060020a03166000908152600b602052604090205490565b3480156108ea57600080fd5b5060145461046a565b3480156108ff57600080fd5b506103ee611893565b34801561091457600080fd5b5061046a60075481565b34801561092a57600080fd5b5061046a6109393660046133be565b600160a060020a03166000908152600e602052604090205490565b6104536109623660046136de565b611921565b34801561097357600080fd5b5061046a60155481565b34801561098957600080fd5b50600a5461046a565b34801561099e57600080fd5b506103c46109ad36600461341c565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6104536109e9366004613364565b611a2c565b3480156109fa57600080fd5b50610453610a093660046133be565b611afd565b348015610a1a57600080fd5b5061046a60185481565b6000600160e060020a031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a875750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610abb5750600160e060020a031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610aef57507f01ffc9a700000000000000000000000000000000000000000000000000000000600160e060020a03198316145b92915050565b606060018054610b0490613711565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3090613711565b8015610b7d5780601f10610b5257610100808354040283529160200191610b7d565b820191906000526020600020905b815481529060010190602001808311610b6057829003601f168201915b5050505050905090565b6000610b94826000541190565b610c0e5760405160e560020a62461bcd02815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b50600090815260056020526040902054600160a060020a031690565b6000610c358261139d565b905080600160a060020a031683600160a060020a03161415610cc25760405160e560020a62461bcd02815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610c05565b33600160a060020a0382161480610cde5750610cde81336109ad565b610d535760405160e560020a62461bcd02815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610c05565b610d5e838383611bb5565b505050565b60006001600054610d749190613768565b905090565b600160a060020a0381166000908152600b6020526040902054610db15760405160e560020a62461bcd028152600401610c059061377f565b6000610dbc600a5490565b610dc79030316137dc565b90506000610df48383610def86600160a060020a03166000908152600c602052604090205490565b611c1e565b905080610e165760405160e560020a62461bcd028152600401610c05906137f4565b600160a060020a0383166000908152600c602052604081208054839290610e3e9084906137dc565b9250508190555080600a6000828254610e5791906137dc565b90915550610e6790508382611c64565b60408051600160a060020a0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6000601754600014158015610d7457504260175410905090565b610d5e838383611d84565b6000610ede836113cc565b8210610f555760405160e560020a62461bcd02815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610c05565b6000610f5f610d63565b905060008060005b8381101561100957600081815260036020908152604091829020825180840190935254600160a060020a03811680845260a060020a90910467ffffffffffffffff169183019190915215610fba57805192505b87600160a060020a031683600160a060020a03161415610ff65786841415610fe857509350610aef92505050565b83610ff281613851565b9450505b508061100181613851565b915050610f67565b5060405160e560020a62461bcd02815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610c05565b600854600160a060020a031633146110a85760405160e560020a62461bcd028152600401610c059061386c565b6110b061214f565b565b600854600160a060020a031633146110df5760405160e560020a62461bcd028152600401610c059061386c565b6110e881612209565b6110f28282612296565b5050565b610d5e8383836040518060200160405280600081525061177a565b600160a060020a0381166000908152600b60205260409020546111495760405160e560020a62461bcd028152600401610c059061377f565b600160a060020a0382166000908152600e60205260408120546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600160a060020a038516906370a082319060240160206040518083038186803b1580156111ba57600080fd5b505afa1580156111ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f291906138a1565b6111fc91906137dc565b905060006112358383610def8787600160a060020a039182166000908152600f6020908152604080832093909416825291909152205490565b9050806112575760405160e560020a62461bcd028152600401610c05906137f4565b600160a060020a038085166000908152600f602090815260408083209387168352929052908120805483929061128e9084906137dc565b9091555050600160a060020a0384166000908152600e6020526040812080548392906112bb9084906137dc565b909155506112cc90508484836122b0565b60408051600160a060020a038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000611322610d63565b82106113995760405160e560020a62461bcd02815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610c05565b5090565b60006113a882612330565b5192915050565b60006113b961164c565b156113c5575060165490565b5060155490565b6000600160a060020a03821661144d5760405160e560020a62461bcd02815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610c05565b50600160a060020a03166000908152600460205260409020546001608060020a031690565b600854600160a060020a0316331461149f5760405160e560020a62461bcd028152600401610c059061386c565b6110b06000612501565b600854600160a060020a031633146114d65760405160e560020a62461bcd028152600401610c059061386c565b601797909755601895909555601593909355601691909155601255601355601155601955565b60006040516c01000000000000000000000000600160a060020a03861602602082015260009060340160405160208183030381529060405280519060200120905061157e848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011549150849050612560565b9150505b9392505050565b600854600160a060020a031633146115b65760405160e560020a62461bcd028152600401610c059061386c565b601155565b600854600160a060020a031633146115e85760405160e560020a62461bcd028152600401610c059061386c565b6110b0612576565b6000600d8281548110611605576116056138ba565b600091825260209091200154600160a060020a031692915050565b600061162a61164c565b15611636575060135490565b5060125490565b606060028054610b0490613711565b6000601854600014158015611662575042601854105b8015610d74575050601754421090565b600854600160a060020a0316331461169f5760405160e560020a62461bcd028152600401610c059061386c565b80516110f2906010906020840190613236565b600160a060020a03821633141561170e5760405160e560020a62461bcd02815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610c05565b336000818152600660209081526040808320600160a060020a03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611785848484611d84565b611791848484846125ef565b6117b05760405160e560020a62461bcd028152600401610c05906138d3565b50505050565b60606117c3826000541190565b6118385760405160e560020a62461bcd02815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c05565b6000611842612731565b905060008151116118625760405180602001604052806000815250611582565b8061186c84612765565b60405160200161187d92919061394c565b6040516020818303038152906040529392505050565b601080546118a090613711565b80601f01602080910402602001604051908101604052809291908181526020018280546118cc90613711565b80156119195780601f106118ee57610100808354040283529160200191611919565b820191906000526020600020905b8154815290600101906020018083116118fc57829003601f168201915b505050505081565b60085460a060020a900460ff161561194e5760405160e560020a62461bcd028152600401610c059061397b565b61195b338460165461289e565b61196361164c565b801561197557506119753383836114fc565b6119ea5760405160e560020a62461bcd02815260206004820152602360248201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e545f5052455360448201527f414c4500000000000000000000000000000000000000000000000000000000006064820152608401610c05565b6119f6836013546129cb565b60135460405184919033907f38bd02858ca92987ff585a4c06998aea8187e96864df1eaf349dec3cfddc0fbb90600090a4505050565b60085460a060020a900460ff1615611a595760405160e560020a62461bcd028152600401610c059061397b565b611a66338260155461289e565b611a6e610eae565b611abd5760405160e560020a62461bcd02815260206004820152601b60248201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e5400000000006044820152606401610c05565b611ac9816012546129cb565b60125460405182919033907f12cb4648cf3058b17ceeb33e579f8b0bc269fe0843f3900b8e24b6c54871703c90600090a450565b600854600160a060020a03163314611b2a5760405160e560020a62461bcd028152600401610c059061386c565b600160a060020a038116611ba95760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c05565b611bb281612501565b50565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600954600160a060020a0384166000908152600b602052604081205490918391611c4890866139b2565b611c5291906139ea565b611c5c9190613768565b949350505050565b3031811115611cb85760405160e560020a62461bcd02815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c05565b600082600160a060020a03168260405160006040518083038185875af1925050503d8060008114611d05576040519150601f19603f3d011682016040523d82523d6000602084013e611d0a565b606091505b5050905080610d5e5760405160e560020a62461bcd02815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c05565b6000611d8f82612330565b8051909150600090600160a060020a031633600160a060020a03161480611dc6575033611dbb84610b87565b600160a060020a0316145b80611dd857508151611dd890336109ad565b905080611e505760405160e560020a62461bcd02815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610c05565b84600160a060020a03168260000151600160a060020a031614611ede5760405160e560020a62461bcd02815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610c05565b600160a060020a038416611f5d5760405160e560020a62461bcd02815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610c05565b611f6d6000848460000151611bb5565b600160a060020a0385166000908152600460205260408120805460019290611f9f9084906001608060020a03166139fe565b82546101009290920a6001608060020a03818102199093169183160217909155600160a060020a03861660009081526004602052604081208054600194509092611feb91859116613a26565b82546001608060020a039182166101009390930a928302919092021990911617905550604080518082018252600160a060020a03808716825267ffffffffffffffff42811660208085019182526000898152600390915294852093518454915190921660a060020a02600160e060020a031990911691909216171790556120738460016137dc565b600081815260036020526040902054909150600160a060020a03166121055761209d816000541190565b15612105576040805180820182528451600160a060020a03908116825260208087015167ffffffffffffffff908116828501908152600087815260039093529490912092518354945190911660a060020a02600160e060020a03199094169116179190911790555b8385600160a060020a031687600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60085460a060020a900460ff166121ab5760405160e560020a62461bcd02815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610c05565b6008805474ff0000000000000000000000000000000000000000191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051600160a060020a03909116815260200160405180910390a1565b60145481612215610d63565b61221f91906137dc565b1115611bb25760405160e560020a62461bcd02815260206004820152602260248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f5355505060448201527f4c590000000000000000000000000000000000000000000000000000000000006064820152608401610c05565b6110f2828260405180602001604052806000815250612a57565b60408051600160a060020a038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610d5e908490612d8f565b604080518082019091526000808252602082015261234f826000541190565b6123c45760405160e560020a62461bcd02815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610c05565b60007f00000000000000000000000000000000000000000000000000000000000000008310612425576124177f000000000000000000000000000000000000000000000000000000000000000084613768565b6124229060016137dc565b90505b825b81811061248f57600081815260036020908152604091829020825180840190935254600160a060020a03811680845260a060020a90910467ffffffffffffffff16918301919091521561247c57949350505050565b508061248781613a48565b915050612427565b5060405160e560020a62461bcd02815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610c05565b60088054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008261256d8584612e77565b14949350505050565b60085460a060020a900460ff16156125a35760405160e560020a62461bcd028152600401610c059061397b565b6008805474ff0000000000000000000000000000000000000000191660a060020a1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121ec3390565b6000600160a060020a0384163b15612726576040517f150b7a02000000000000000000000000000000000000000000000000000000008152600160a060020a0385169063150b7a029061264c903390899088908890600401613a5f565b602060405180830381600087803b15801561266657600080fd5b505af1925050508015612696575060408051601f3d908101601f1916820190925261269391810190613a9b565b60015b6126f3573d8080156126c4576040519150601f19603f3d011682016040523d82523d6000602084013e6126c9565b606091505b5080516126eb5760405160e560020a62461bcd028152600401610c05906138d3565b805181602001fd5b600160e060020a0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611c5c565b506001949350505050565b60606010612740306014612f23565b604051602001612751929190613ab8565b604051602081830303815290604052905090565b6060816127a557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127cf57806127b981613851565b91506127c89050600a836139ea565b91506127a9565b60008167ffffffffffffffff8111156127ea576127ea61354a565b6040519080825280601f01601f191660200182016040528015612814576020820181803683370190505b5090505b8415611c5c57612829600183613768565b9150612836600a86613b85565b6128419060306137dc565b7f010000000000000000000000000000000000000000000000000000000000000002818381518110612875576128756138ba565b6020010190600160f860020a031916908160001a905350612897600a866139ea565b9450612818565b6128a782612209565b601954158015906128ba57506019548211155b61292f5760405160e560020a62461bcd02815260206004820152602b60248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f5045525f60448201527f5452414e53414354494f4e0000000000000000000000000000000000000000006064820152608401610c05565b60008261293b856113cc565b61294591906137dc565b905081158015906129565750818111155b6117b05760405160e560020a62461bcd02815260206004820152602960248201527f424153455f434f4c4c454354494f4e2f455843454544535f494e44495649445560448201527f414c5f535550504c5900000000000000000000000000000000000000000000006064820152608401610c05565b346129d683836139b2565b1115612a4d5760405160e560020a62461bcd02815260206004820152602760248201527f424153455f434f4c4c454354494f4e2f494e53554646494349454e545f45544860448201527f5f414d4f554e54000000000000000000000000000000000000000000000000006064820152608401610c05565b6110f23383612296565b600054600160a060020a038416612ad95760405160e560020a62461bcd02815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610c05565b612ae4816000541190565b15612b345760405160e560020a62461bcd02815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610c05565b7f0000000000000000000000000000000000000000000000000000000000000000831115612bcd5760405160e560020a62461bcd02815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610c05565b600160a060020a0384166000908152600460209081526040918290208251808401845290546001608060020a0380821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190612c36908790613a26565b6001608060020a03168152602001858360200151612c549190613a26565b6001608060020a03908116909152600160a060020a03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff428116838601908152888352600390955294812091518254945190951660a060020a02600160e060020a031990941694909216939093179190911790915582905b85811015612d84576040518290600160a060020a038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612d4560008884886125ef565b612d645760405160e560020a62461bcd028152600401610c05906138d3565b81612d6e81613851565b9250508080612d7c90613851565b915050612cf8565b506000819055612147565b6000612de4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525085600160a060020a03166131259092919063ffffffff16565b805190915015610d5e5780806020019051810190612e029190613b99565b610d5e5760405160e560020a62461bcd02815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c05565b600081815b8451811015612f1b576000858281518110612e9957612e996138ba565b60200260200101519050808311612edb576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612f08565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612f1381613851565b915050612e7c565b509392505050565b60606000612f328360026139b2565b612f3d9060026137dc565b67ffffffffffffffff811115612f5557612f5561354a565b6040519080825280601f01601f191660200182016040528015612f7f576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612fb657612fb66138ba565b6020010190600160f860020a031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613001576130016138ba565b6020010190600160f860020a031916908160001a90535060006130258460026139b2565b6130309060016137dc565b90505b60018111156130d3577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613071576130716138ba565b1a7f0100000000000000000000000000000000000000000000000000000000000000028282815181106130a6576130a66138ba565b6020010190600160f860020a031916908160001a9053506010909404936130cc81613a48565b9050613033565b5083156115825760405160e560020a62461bcd02815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c05565b6060611c5c848460008585843b6131815760405160e560020a62461bcd02815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c05565b60008086600160a060020a0316858760405161319d9190613bb6565b60006040518083038185875af1925050503d80600081146131da576040519150601f19603f3d011682016040523d82523d6000602084013e6131df565b606091505b50915091506131ef8282866131fa565b979650505050505050565b60608315613209575081611582565b8251156132195782518084602001fd5b8160405160e560020a62461bcd028152600401610c059190613351565b82805461324290613711565b90600052602060002090601f01602090048101928261326457600085556132aa565b82601f1061327d57805160ff19168380011785556132aa565b828001600101855582156132aa579182015b828111156132aa57825182559160200191906001019061328f565b506113999291505b8082111561139957600081556001016132b2565b600160e060020a031981168114611bb257600080fd5b6000602082840312156132ee57600080fd5b8135611582816132c6565b60005b838110156133145781810151838201526020016132fc565b838111156117b05750506000910152565b6000815180845261333d8160208601602086016132f9565b601f01601f19169290920160200192915050565b6020815260006115826020830184613325565b60006020828403121561337657600080fd5b5035919050565b600160a060020a0381168114611bb257600080fd5b600080604083850312156133a557600080fd5b82356133b08161337d565b946020939093013593505050565b6000602082840312156133d057600080fd5b81356115828161337d565b6000806000606084860312156133f057600080fd5b83356133fb8161337d565b9250602084013561340b8161337d565b929592945050506040919091013590565b6000806040838503121561342f57600080fd5b823561343a8161337d565b9150602083013561344a8161337d565b809150509250929050565b600080600080600080600080610100898b03121561347257600080fd5b505086359860208801359850604088013597606081013597506080810135965060a0810135955060c0810135945060e0013592509050565b60008083601f8401126134bc57600080fd5b50813567ffffffffffffffff8111156134d457600080fd5b60208301915083602080830285010111156134ee57600080fd5b9250929050565b60008060006040848603121561350a57600080fd5b83356135158161337d565b9250602084013567ffffffffffffffff81111561353157600080fd5b61353d868287016134aa565b9497909650939450505050565b60e060020a634e487b7102600052604160045260246000fd5b600067ffffffffffffffff8084111561357e5761357e61354a565b604051601f8501601f19908116603f011681019082821181831017156135a6576135a661354a565b816040528093508581528686860111156135bf57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156135eb57600080fd5b813567ffffffffffffffff81111561360257600080fd5b8201601f8101841361361357600080fd5b611c5c84823560208401613563565b8015158114611bb257600080fd5b6000806040838503121561364357600080fd5b823561364e8161337d565b9150602083013561344a81613622565b6000806000806080858703121561367457600080fd5b843561367f8161337d565b9350602085013561368f8161337d565b925060408501359150606085013567ffffffffffffffff8111156136b257600080fd5b8501601f810187136136c357600080fd5b6136d287823560208401613563565b91505092959194509250565b6000806000604084860312156136f357600080fd5b83359250602084013567ffffffffffffffff81111561353157600080fd5b60028104600182168061372557607f821691505b602082108114156137495760e060020a634e487b7102600052602260045260246000fd5b50919050565b60e060020a634e487b7102600052601160045260246000fd5b60008282101561377a5761377a61374f565b500390565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201527f7368617265730000000000000000000000000000000000000000000000000000606082015260800190565b600082198211156137ef576137ef61374f565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201527f647565207061796d656e74000000000000000000000000000000000000000000606082015260800190565b60006000198214156138655761386561374f565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156138b357600080fd5b5051919050565b60e060020a634e487b7102600052603260045260246000fd5b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527f6563656976657220696d706c656d656e74657200000000000000000000000000606082015260800190565b600081516139428185602086016132f9565b9290920192915050565b6000835161395e8184602088016132f9565b8351908301906139728183602088016132f9565b01949350505050565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b60008160001904831182151516156139cc576139cc61374f565b500290565b60e060020a634e487b7102600052601260045260246000fd5b6000826139f9576139f96139d1565b500490565b60006001608060020a0383811690831681811015613a1e57613a1e61374f565b039392505050565b60006001608060020a038083168185168083038211156139725761397261374f565b600081613a5757613a5761374f565b506000190190565b6000600160a060020a03808716835280861660208401525083604083015260806060830152613a916080830184613325565b9695505050505050565b600060208284031215613aad57600080fd5b8151611582816132c6565b8254600090819060028104600180831680613ad457607f831692505b6020808410821415613af75760e060020a634e487b710286526022600452602486fd5b818015613b0b5760018114613b1c57613b49565b60ff19861689528489019650613b49565b60008b81526020902060005b86811015613b415781548b820152908501908301613b28565b505084890196505b50505050505061157e613b5c8286613930565b7f2f00000000000000000000000000000000000000000000000000000000000000815260010190565b600082613b9457613b946139d1565b500690565b600060208284031215613bab57600080fd5b815161158281613622565b60008251613bc88184602087016132f9565b919091019291505056fea2646970667358221220b14d919bd271883385a9916d2ad03e3baa9339d063f12ff02a454f4eecfd86ee64736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c076847af59b16b6879208ca7bbd890e93dd6557ad3d770c71648f24484ec16d4e00000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000124e6174696f6e616c205061726b73204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054e504e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b68747470733a2f2f6d696e742e6e6174696f6e616c7061726b736e66742e696f2f636f6e7472616374732f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000f8b0a10e470000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000000000000000012d9000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000061f734900000000000000000000000000000000000000000000000000000000061f4919000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002000000000000000000000000cbd589e0193aa28891020a97ddfbf9824bc6d36800000000000000000000000064e31a0802fbb5e35e10901a075c3ba719ce79d40000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004b000000000000000000000000000000000000000000000000000000000000039d
Deployed Bytecode
0x608060405260043610610356576000357c0100000000000000000000000000000000000000000000000000000000900480637b96a3b2116101c8578063b88d4fde11610114578063e2ab10ce116100b2578063e985e9c51161008c578063e985e9c514610992578063efef39a1146109db578063f2fde38b146109ee578063fa156f9a14610a0e57600080fd5b8063e2ab10ce14610954578063e2d5ee2d14610967578063e33b7de31461097d57600080fd5b8063cf9e8e69116100ee578063cf9e8e69146108de578063cfc86f7b146108f3578063d7224ba014610908578063d79779b21461091e57600080fd5b8063b88d4fde14610868578063c87b56dd14610888578063ce7c2ac2146108a857600080fd5b8063904be6da116101815780639d044ed31161015b5780639d044ed3146107fd578063a0bcfc7f14610812578063a22cb46514610832578063b85ef0361461085257600080fd5b8063904be6da1461079c57806395d89b41146107b25780639852595c146107c757600080fd5b80637b96a3b2146106f45780637cb64759146107145780638456cb59146107345780638b83209b146107495780638d859f3e146107695780638da5cb5b1461077e57600080fd5b80633f4ba83a116102a25780635f0d246a11610240578063696fa41e1161021a578063696fa41e1461068957806370a082311461069f578063715018a6146106bf57806374721235146106d457600080fd5b80635f0d246a1461063e5780636352211e1461065457806366cfb1f31461067457600080fd5b806342842e0e1161027c57806342842e0e146105bf57806348b75044146105df5780634f6ccce7146105ff5780635c975abb1461061f57600080fd5b80633f4ba83a14610544578063406072a91461055957806340c10f191461059f57600080fd5b80631e84c4131161030f57806323b872dd116102e957806323b872dd146104d95780632f745c59146104f95780632fc37ab2146105195780633a98ef391461052f57600080fd5b80631e84c4131461049857806322f4596f146104ad578063235b6ea1146104c357600080fd5b806301ffc9a7146103a457806306fdde03146103d9578063081812fc146103fb578063095ea7b31461043357806318160ddd14610455578063191655871461047857600080fd5b3661039f577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7703360408051600160a060020a0390921682523460208301520160405180910390a1005b600080fd5b3480156103b057600080fd5b506103c46103bf3660046132dc565b610a24565b60405190151581526020015b60405180910390f35b3480156103e557600080fd5b506103ee610af5565b6040516103d09190613351565b34801561040757600080fd5b5061041b610416366004613364565b610b87565b604051600160a060020a0390911681526020016103d0565b34801561043f57600080fd5b5061045361044e366004613392565b610c2a565b005b34801561046157600080fd5b5061046a610d63565b6040519081526020016103d0565b34801561048457600080fd5b506104536104933660046133be565b610d79565b3480156104a457600080fd5b506103c4610eae565b3480156104b957600080fd5b5061046a60145481565b3480156104cf57600080fd5b5061046a60125481565b3480156104e557600080fd5b506104536104f43660046133db565b610ec8565b34801561050557600080fd5b5061046a610514366004613392565b610ed3565b34801561052557600080fd5b5061046a60115481565b34801561053b57600080fd5b5060095461046a565b34801561055057600080fd5b5061045361107b565b34801561056557600080fd5b5061046a61057436600461341c565b600160a060020a039182166000908152600f6020908152604080832093909416825291909152205490565b3480156105ab57600080fd5b506104536105ba366004613392565b6110b2565b3480156105cb57600080fd5b506104536105da3660046133db565b6110f6565b3480156105eb57600080fd5b506104536105fa36600461341c565b611111565b34801561060b57600080fd5b5061046a61061a366004613364565b611318565b34801561062b57600080fd5b5060085460a060020a900460ff166103c4565b34801561064a57600080fd5b5061046a60135481565b34801561066057600080fd5b5061041b61066f366004613364565b61139d565b34801561068057600080fd5b5061046a6113af565b34801561069557600080fd5b5061046a60195481565b3480156106ab57600080fd5b5061046a6106ba3660046133be565b6113cc565b3480156106cb57600080fd5b50610453611472565b3480156106e057600080fd5b506104536106ef366004613455565b6114a9565b34801561070057600080fd5b506103c461070f3660046134f5565b6114fc565b34801561072057600080fd5b5061045361072f366004613364565b611589565b34801561074057600080fd5b506104536115bb565b34801561075557600080fd5b5061041b610764366004613364565b6115f0565b34801561077557600080fd5b5061046a611620565b34801561078a57600080fd5b50600854600160a060020a031661041b565b3480156107a857600080fd5b5061046a60165481565b3480156107be57600080fd5b506103ee61163d565b3480156107d357600080fd5b5061046a6107e23660046133be565b600160a060020a03166000908152600c602052604090205490565b34801561080957600080fd5b506103c461164c565b34801561081e57600080fd5b5061045361082d3660046135d9565b611672565b34801561083e57600080fd5b5061045361084d366004613630565b6116b2565b34801561085e57600080fd5b5061046a60175481565b34801561087457600080fd5b5061045361088336600461365e565b61177a565b34801561089457600080fd5b506103ee6108a3366004613364565b6117b6565b3480156108b457600080fd5b5061046a6108c33660046133be565b600160a060020a03166000908152600b602052604090205490565b3480156108ea57600080fd5b5060145461046a565b3480156108ff57600080fd5b506103ee611893565b34801561091457600080fd5b5061046a60075481565b34801561092a57600080fd5b5061046a6109393660046133be565b600160a060020a03166000908152600e602052604090205490565b6104536109623660046136de565b611921565b34801561097357600080fd5b5061046a60155481565b34801561098957600080fd5b50600a5461046a565b34801561099e57600080fd5b506103c46109ad36600461341c565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6104536109e9366004613364565b611a2c565b3480156109fa57600080fd5b50610453610a093660046133be565b611afd565b348015610a1a57600080fd5b5061046a60185481565b6000600160e060020a031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a875750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610abb5750600160e060020a031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610aef57507f01ffc9a700000000000000000000000000000000000000000000000000000000600160e060020a03198316145b92915050565b606060018054610b0490613711565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3090613711565b8015610b7d5780601f10610b5257610100808354040283529160200191610b7d565b820191906000526020600020905b815481529060010190602001808311610b6057829003601f168201915b5050505050905090565b6000610b94826000541190565b610c0e5760405160e560020a62461bcd02815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b50600090815260056020526040902054600160a060020a031690565b6000610c358261139d565b905080600160a060020a031683600160a060020a03161415610cc25760405160e560020a62461bcd02815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610c05565b33600160a060020a0382161480610cde5750610cde81336109ad565b610d535760405160e560020a62461bcd02815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610c05565b610d5e838383611bb5565b505050565b60006001600054610d749190613768565b905090565b600160a060020a0381166000908152600b6020526040902054610db15760405160e560020a62461bcd028152600401610c059061377f565b6000610dbc600a5490565b610dc79030316137dc565b90506000610df48383610def86600160a060020a03166000908152600c602052604090205490565b611c1e565b905080610e165760405160e560020a62461bcd028152600401610c05906137f4565b600160a060020a0383166000908152600c602052604081208054839290610e3e9084906137dc565b9250508190555080600a6000828254610e5791906137dc565b90915550610e6790508382611c64565b60408051600160a060020a0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6000601754600014158015610d7457504260175410905090565b610d5e838383611d84565b6000610ede836113cc565b8210610f555760405160e560020a62461bcd02815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610c05565b6000610f5f610d63565b905060008060005b8381101561100957600081815260036020908152604091829020825180840190935254600160a060020a03811680845260a060020a90910467ffffffffffffffff169183019190915215610fba57805192505b87600160a060020a031683600160a060020a03161415610ff65786841415610fe857509350610aef92505050565b83610ff281613851565b9450505b508061100181613851565b915050610f67565b5060405160e560020a62461bcd02815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610c05565b600854600160a060020a031633146110a85760405160e560020a62461bcd028152600401610c059061386c565b6110b061214f565b565b600854600160a060020a031633146110df5760405160e560020a62461bcd028152600401610c059061386c565b6110e881612209565b6110f28282612296565b5050565b610d5e8383836040518060200160405280600081525061177a565b600160a060020a0381166000908152600b60205260409020546111495760405160e560020a62461bcd028152600401610c059061377f565b600160a060020a0382166000908152600e60205260408120546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600160a060020a038516906370a082319060240160206040518083038186803b1580156111ba57600080fd5b505afa1580156111ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f291906138a1565b6111fc91906137dc565b905060006112358383610def8787600160a060020a039182166000908152600f6020908152604080832093909416825291909152205490565b9050806112575760405160e560020a62461bcd028152600401610c05906137f4565b600160a060020a038085166000908152600f602090815260408083209387168352929052908120805483929061128e9084906137dc565b9091555050600160a060020a0384166000908152600e6020526040812080548392906112bb9084906137dc565b909155506112cc90508484836122b0565b60408051600160a060020a038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000611322610d63565b82106113995760405160e560020a62461bcd02815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610c05565b5090565b60006113a882612330565b5192915050565b60006113b961164c565b156113c5575060165490565b5060155490565b6000600160a060020a03821661144d5760405160e560020a62461bcd02815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610c05565b50600160a060020a03166000908152600460205260409020546001608060020a031690565b600854600160a060020a0316331461149f5760405160e560020a62461bcd028152600401610c059061386c565b6110b06000612501565b600854600160a060020a031633146114d65760405160e560020a62461bcd028152600401610c059061386c565b601797909755601895909555601593909355601691909155601255601355601155601955565b60006040516c01000000000000000000000000600160a060020a03861602602082015260009060340160405160208183030381529060405280519060200120905061157e848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011549150849050612560565b9150505b9392505050565b600854600160a060020a031633146115b65760405160e560020a62461bcd028152600401610c059061386c565b601155565b600854600160a060020a031633146115e85760405160e560020a62461bcd028152600401610c059061386c565b6110b0612576565b6000600d8281548110611605576116056138ba565b600091825260209091200154600160a060020a031692915050565b600061162a61164c565b15611636575060135490565b5060125490565b606060028054610b0490613711565b6000601854600014158015611662575042601854105b8015610d74575050601754421090565b600854600160a060020a0316331461169f5760405160e560020a62461bcd028152600401610c059061386c565b80516110f2906010906020840190613236565b600160a060020a03821633141561170e5760405160e560020a62461bcd02815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610c05565b336000818152600660209081526040808320600160a060020a03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611785848484611d84565b611791848484846125ef565b6117b05760405160e560020a62461bcd028152600401610c05906138d3565b50505050565b60606117c3826000541190565b6118385760405160e560020a62461bcd02815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c05565b6000611842612731565b905060008151116118625760405180602001604052806000815250611582565b8061186c84612765565b60405160200161187d92919061394c565b6040516020818303038152906040529392505050565b601080546118a090613711565b80601f01602080910402602001604051908101604052809291908181526020018280546118cc90613711565b80156119195780601f106118ee57610100808354040283529160200191611919565b820191906000526020600020905b8154815290600101906020018083116118fc57829003601f168201915b505050505081565b60085460a060020a900460ff161561194e5760405160e560020a62461bcd028152600401610c059061397b565b61195b338460165461289e565b61196361164c565b801561197557506119753383836114fc565b6119ea5760405160e560020a62461bcd02815260206004820152602360248201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e545f5052455360448201527f414c4500000000000000000000000000000000000000000000000000000000006064820152608401610c05565b6119f6836013546129cb565b60135460405184919033907f38bd02858ca92987ff585a4c06998aea8187e96864df1eaf349dec3cfddc0fbb90600090a4505050565b60085460a060020a900460ff1615611a595760405160e560020a62461bcd028152600401610c059061397b565b611a66338260155461289e565b611a6e610eae565b611abd5760405160e560020a62461bcd02815260206004820152601b60248201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e5400000000006044820152606401610c05565b611ac9816012546129cb565b60125460405182919033907f12cb4648cf3058b17ceeb33e579f8b0bc269fe0843f3900b8e24b6c54871703c90600090a450565b600854600160a060020a03163314611b2a5760405160e560020a62461bcd028152600401610c059061386c565b600160a060020a038116611ba95760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c05565b611bb281612501565b50565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600954600160a060020a0384166000908152600b602052604081205490918391611c4890866139b2565b611c5291906139ea565b611c5c9190613768565b949350505050565b3031811115611cb85760405160e560020a62461bcd02815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c05565b600082600160a060020a03168260405160006040518083038185875af1925050503d8060008114611d05576040519150601f19603f3d011682016040523d82523d6000602084013e611d0a565b606091505b5050905080610d5e5760405160e560020a62461bcd02815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c05565b6000611d8f82612330565b8051909150600090600160a060020a031633600160a060020a03161480611dc6575033611dbb84610b87565b600160a060020a0316145b80611dd857508151611dd890336109ad565b905080611e505760405160e560020a62461bcd02815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610c05565b84600160a060020a03168260000151600160a060020a031614611ede5760405160e560020a62461bcd02815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610c05565b600160a060020a038416611f5d5760405160e560020a62461bcd02815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610c05565b611f6d6000848460000151611bb5565b600160a060020a0385166000908152600460205260408120805460019290611f9f9084906001608060020a03166139fe565b82546101009290920a6001608060020a03818102199093169183160217909155600160a060020a03861660009081526004602052604081208054600194509092611feb91859116613a26565b82546001608060020a039182166101009390930a928302919092021990911617905550604080518082018252600160a060020a03808716825267ffffffffffffffff42811660208085019182526000898152600390915294852093518454915190921660a060020a02600160e060020a031990911691909216171790556120738460016137dc565b600081815260036020526040902054909150600160a060020a03166121055761209d816000541190565b15612105576040805180820182528451600160a060020a03908116825260208087015167ffffffffffffffff908116828501908152600087815260039093529490912092518354945190911660a060020a02600160e060020a03199094169116179190911790555b8385600160a060020a031687600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60085460a060020a900460ff166121ab5760405160e560020a62461bcd02815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610c05565b6008805474ff0000000000000000000000000000000000000000191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051600160a060020a03909116815260200160405180910390a1565b60145481612215610d63565b61221f91906137dc565b1115611bb25760405160e560020a62461bcd02815260206004820152602260248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f5355505060448201527f4c590000000000000000000000000000000000000000000000000000000000006064820152608401610c05565b6110f2828260405180602001604052806000815250612a57565b60408051600160a060020a038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610d5e908490612d8f565b604080518082019091526000808252602082015261234f826000541190565b6123c45760405160e560020a62461bcd02815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610c05565b60007f00000000000000000000000000000000000000000000000000000000000012d98310612425576124177f00000000000000000000000000000000000000000000000000000000000012d984613768565b6124229060016137dc565b90505b825b81811061248f57600081815260036020908152604091829020825180840190935254600160a060020a03811680845260a060020a90910467ffffffffffffffff16918301919091521561247c57949350505050565b508061248781613a48565b915050612427565b5060405160e560020a62461bcd02815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610c05565b60088054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008261256d8584612e77565b14949350505050565b60085460a060020a900460ff16156125a35760405160e560020a62461bcd028152600401610c059061397b565b6008805474ff0000000000000000000000000000000000000000191660a060020a1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121ec3390565b6000600160a060020a0384163b15612726576040517f150b7a02000000000000000000000000000000000000000000000000000000008152600160a060020a0385169063150b7a029061264c903390899088908890600401613a5f565b602060405180830381600087803b15801561266657600080fd5b505af1925050508015612696575060408051601f3d908101601f1916820190925261269391810190613a9b565b60015b6126f3573d8080156126c4576040519150601f19603f3d011682016040523d82523d6000602084013e6126c9565b606091505b5080516126eb5760405160e560020a62461bcd028152600401610c05906138d3565b805181602001fd5b600160e060020a0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611c5c565b506001949350505050565b60606010612740306014612f23565b604051602001612751929190613ab8565b604051602081830303815290604052905090565b6060816127a557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127cf57806127b981613851565b91506127c89050600a836139ea565b91506127a9565b60008167ffffffffffffffff8111156127ea576127ea61354a565b6040519080825280601f01601f191660200182016040528015612814576020820181803683370190505b5090505b8415611c5c57612829600183613768565b9150612836600a86613b85565b6128419060306137dc565b7f010000000000000000000000000000000000000000000000000000000000000002818381518110612875576128756138ba565b6020010190600160f860020a031916908160001a905350612897600a866139ea565b9450612818565b6128a782612209565b601954158015906128ba57506019548211155b61292f5760405160e560020a62461bcd02815260206004820152602b60248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f5045525f60448201527f5452414e53414354494f4e0000000000000000000000000000000000000000006064820152608401610c05565b60008261293b856113cc565b61294591906137dc565b905081158015906129565750818111155b6117b05760405160e560020a62461bcd02815260206004820152602960248201527f424153455f434f4c4c454354494f4e2f455843454544535f494e44495649445560448201527f414c5f535550504c5900000000000000000000000000000000000000000000006064820152608401610c05565b346129d683836139b2565b1115612a4d5760405160e560020a62461bcd02815260206004820152602760248201527f424153455f434f4c4c454354494f4e2f494e53554646494349454e545f45544860448201527f5f414d4f554e54000000000000000000000000000000000000000000000000006064820152608401610c05565b6110f23383612296565b600054600160a060020a038416612ad95760405160e560020a62461bcd02815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610c05565b612ae4816000541190565b15612b345760405160e560020a62461bcd02815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610c05565b7f00000000000000000000000000000000000000000000000000000000000012d9831115612bcd5760405160e560020a62461bcd02815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610c05565b600160a060020a0384166000908152600460209081526040918290208251808401845290546001608060020a0380821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190612c36908790613a26565b6001608060020a03168152602001858360200151612c549190613a26565b6001608060020a03908116909152600160a060020a03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff428116838601908152888352600390955294812091518254945190951660a060020a02600160e060020a031990941694909216939093179190911790915582905b85811015612d84576040518290600160a060020a038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612d4560008884886125ef565b612d645760405160e560020a62461bcd028152600401610c05906138d3565b81612d6e81613851565b9250508080612d7c90613851565b915050612cf8565b506000819055612147565b6000612de4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525085600160a060020a03166131259092919063ffffffff16565b805190915015610d5e5780806020019051810190612e029190613b99565b610d5e5760405160e560020a62461bcd02815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c05565b600081815b8451811015612f1b576000858281518110612e9957612e996138ba565b60200260200101519050808311612edb576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612f08565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612f1381613851565b915050612e7c565b509392505050565b60606000612f328360026139b2565b612f3d9060026137dc565b67ffffffffffffffff811115612f5557612f5561354a565b6040519080825280601f01601f191660200182016040528015612f7f576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612fb657612fb66138ba565b6020010190600160f860020a031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613001576130016138ba565b6020010190600160f860020a031916908160001a90535060006130258460026139b2565b6130309060016137dc565b90505b60018111156130d3577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613071576130716138ba565b1a7f0100000000000000000000000000000000000000000000000000000000000000028282815181106130a6576130a66138ba565b6020010190600160f860020a031916908160001a9053506010909404936130cc81613a48565b9050613033565b5083156115825760405160e560020a62461bcd02815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c05565b6060611c5c848460008585843b6131815760405160e560020a62461bcd02815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c05565b60008086600160a060020a0316858760405161319d9190613bb6565b60006040518083038185875af1925050503d80600081146131da576040519150601f19603f3d011682016040523d82523d6000602084013e6131df565b606091505b50915091506131ef8282866131fa565b979650505050505050565b60608315613209575081611582565b8251156132195782518084602001fd5b8160405160e560020a62461bcd028152600401610c059190613351565b82805461324290613711565b90600052602060002090601f01602090048101928261326457600085556132aa565b82601f1061327d57805160ff19168380011785556132aa565b828001600101855582156132aa579182015b828111156132aa57825182559160200191906001019061328f565b506113999291505b8082111561139957600081556001016132b2565b600160e060020a031981168114611bb257600080fd5b6000602082840312156132ee57600080fd5b8135611582816132c6565b60005b838110156133145781810151838201526020016132fc565b838111156117b05750506000910152565b6000815180845261333d8160208601602086016132f9565b601f01601f19169290920160200192915050565b6020815260006115826020830184613325565b60006020828403121561337657600080fd5b5035919050565b600160a060020a0381168114611bb257600080fd5b600080604083850312156133a557600080fd5b82356133b08161337d565b946020939093013593505050565b6000602082840312156133d057600080fd5b81356115828161337d565b6000806000606084860312156133f057600080fd5b83356133fb8161337d565b9250602084013561340b8161337d565b929592945050506040919091013590565b6000806040838503121561342f57600080fd5b823561343a8161337d565b9150602083013561344a8161337d565b809150509250929050565b600080600080600080600080610100898b03121561347257600080fd5b505086359860208801359850604088013597606081013597506080810135965060a0810135955060c0810135945060e0013592509050565b60008083601f8401126134bc57600080fd5b50813567ffffffffffffffff8111156134d457600080fd5b60208301915083602080830285010111156134ee57600080fd5b9250929050565b60008060006040848603121561350a57600080fd5b83356135158161337d565b9250602084013567ffffffffffffffff81111561353157600080fd5b61353d868287016134aa565b9497909650939450505050565b60e060020a634e487b7102600052604160045260246000fd5b600067ffffffffffffffff8084111561357e5761357e61354a565b604051601f8501601f19908116603f011681019082821181831017156135a6576135a661354a565b816040528093508581528686860111156135bf57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156135eb57600080fd5b813567ffffffffffffffff81111561360257600080fd5b8201601f8101841361361357600080fd5b611c5c84823560208401613563565b8015158114611bb257600080fd5b6000806040838503121561364357600080fd5b823561364e8161337d565b9150602083013561344a81613622565b6000806000806080858703121561367457600080fd5b843561367f8161337d565b9350602085013561368f8161337d565b925060408501359150606085013567ffffffffffffffff8111156136b257600080fd5b8501601f810187136136c357600080fd5b6136d287823560208401613563565b91505092959194509250565b6000806000604084860312156136f357600080fd5b83359250602084013567ffffffffffffffff81111561353157600080fd5b60028104600182168061372557607f821691505b602082108114156137495760e060020a634e487b7102600052602260045260246000fd5b50919050565b60e060020a634e487b7102600052601160045260246000fd5b60008282101561377a5761377a61374f565b500390565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201527f7368617265730000000000000000000000000000000000000000000000000000606082015260800190565b600082198211156137ef576137ef61374f565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201527f647565207061796d656e74000000000000000000000000000000000000000000606082015260800190565b60006000198214156138655761386561374f565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156138b357600080fd5b5051919050565b60e060020a634e487b7102600052603260045260246000fd5b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527f6563656976657220696d706c656d656e74657200000000000000000000000000606082015260800190565b600081516139428185602086016132f9565b9290920192915050565b6000835161395e8184602088016132f9565b8351908301906139728183602088016132f9565b01949350505050565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b60008160001904831182151516156139cc576139cc61374f565b500290565b60e060020a634e487b7102600052601260045260246000fd5b6000826139f9576139f96139d1565b500490565b60006001608060020a0383811690831681811015613a1e57613a1e61374f565b039392505050565b60006001608060020a038083168185168083038211156139725761397261374f565b600081613a5757613a5761374f565b506000190190565b6000600160a060020a03808716835280861660208401525083604083015260806060830152613a916080830184613325565b9695505050505050565b600060208284031215613aad57600080fd5b8151611582816132c6565b8254600090819060028104600180831680613ad457607f831692505b6020808410821415613af75760e060020a634e487b710286526022600452602486fd5b818015613b0b5760018114613b1c57613b49565b60ff19861689528489019650613b49565b60008b81526020902060005b86811015613b415781548b820152908501908301613b28565b505084890196505b50505050505061157e613b5c8286613930565b7f2f00000000000000000000000000000000000000000000000000000000000000815260010190565b600082613b9457613b946139d1565b500690565b600060208284031215613bab57600080fd5b815161158281613622565b60008251613bc88184602087016132f9565b919091019291505056fea2646970667358221220b14d919bd271883385a9916d2ad03e3baa9339d063f12ff02a454f4eecfd86ee64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c076847af59b16b6879208ca7bbd890e93dd6557ad3d770c71648f24484ec16d4e00000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000124e6174696f6e616c205061726b73204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054e504e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b68747470733a2f2f6d696e742e6e6174696f6e616c7061726b736e66742e696f2f636f6e7472616374732f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000f8b0a10e470000000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000000000000000012d9000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000061f734900000000000000000000000000000000000000000000000000000000061f4919000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002000000000000000000000000cbd589e0193aa28891020a97ddfbf9824bc6d36800000000000000000000000064e31a0802fbb5e35e10901a075c3ba719ce79d40000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004b000000000000000000000000000000000000000000000000000000000000039d
-----Decoded View---------------
Arg [0] : name (string): National Parks NFT
Arg [1] : symbol (string): NPNFT
Arg [2] : baseTokenURI (string): https://mint.nationalparksnft.io/contracts/
Arg [3] : numericValues (uint256[]): 70000000000000000,40000000000000000,4825,6,6,1643590800,1643418000,6
Arg [4] : merkleRoot (bytes32): 0x76847af59b16b6879208ca7bbd890e93dd6557ad3d770c71648f24484ec16d4e
Arg [5] : payees (address[]): 0xcBd589e0193Aa28891020a97dDFbf9824Bc6d368,0x64E31A0802FbB5E35E10901a075C3Ba719cE79D4
Arg [6] : shares (uint256[]): 75,925
-----Encoded View---------------
29 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [4] : 76847af59b16b6879208ca7bbd890e93dd6557ad3d770c71648f24484ec16d4e
Arg [5] : 00000000000000000000000000000000000000000000000000000000000002e0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000340
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [8] : 4e6174696f6e616c205061726b73204e46540000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 4e504e4654000000000000000000000000000000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000002b
Arg [12] : 68747470733a2f2f6d696e742e6e6174696f6e616c7061726b736e66742e696f
Arg [13] : 2f636f6e7472616374732f000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [15] : 00000000000000000000000000000000000000000000000000f8b0a10e470000
Arg [16] : 000000000000000000000000000000000000000000000000008e1bc9bf040000
Arg [17] : 00000000000000000000000000000000000000000000000000000000000012d9
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [20] : 0000000000000000000000000000000000000000000000000000000061f73490
Arg [21] : 0000000000000000000000000000000000000000000000000000000061f49190
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [24] : 000000000000000000000000cbd589e0193aa28891020a97ddfbf9824bc6d368
Arg [25] : 00000000000000000000000064e31a0802fbb5e35e10901a075c3ba719ce79d4
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [27] : 000000000000000000000000000000000000000000000000000000000000004b
Arg [28] : 000000000000000000000000000000000000000000000000000000000000039d
Loading...
Loading
Loading...
Loading
[ 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.