Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
160 TNS
Holders
127
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 TNSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TipNStrip
Compiler Version
v0.8.15+commit.e14f2714
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/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./external/ERC721AWithRoyalties.sol"; import "./external/ExternallyPurchaseable.sol"; // @author rollauver.eth contract TipNStrip is ERC721AWithRoyalties, ExternallyPurchaseable, 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; mapping(address => uint256) private _purchases; 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, address royaltyRecipient, uint256 royaltyAmount ) ERC721AWithRoyalties(name, symbol, numericValues[2], royaltyRecipient, royaltyAmount) 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 isPublicSaleActive() public view override returns (bool) { return (_publicSaleTime == 0 || _publicSaleTime < block.timestamp); } function isPreSaleActive() public view override 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 setBaseUri( string memory baseUri ) external onlyOwner { _baseTokenURI = baseUri; } function setMerkleRoot(bytes32 merkleRoot) external onlyOwner { _merkleRoot = merkleRoot; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function mintBatch(address[] memory toAddresses, uint256[] memory counts) external payable onlyOwner { require(toAddresses.length == counts.length, "toAddresses and counts length mismatch"); for (uint256 i = 0; i < toAddresses.length; i++) { ensureMintConditions(counts[i]); _safeMint(toAddresses[i], counts[i]); } } function purchase(uint256 count) external payable whenNotPaused { purchaseHelper(msg.sender, count); } function earlyPurchase(uint256 count, bytes32[] calldata merkleProof) external payable whenNotPaused { require(isPreSaleActive() && onEarlyPurchaseList(msg.sender, merkleProof), "BASE_COLLECTION/CANNOT_MINT_PRESALE"); earlyPurchaseHelper(msg.sender, count); } function _baseURI() override internal view virtual returns (string memory) { return string( abi.encodePacked( _baseTokenURI, Strings.toHexString(uint256(uint160(address(this))), 20), '/' ) ); } function purchaseHelper(address to, uint256 count) internal override { ensurePublicMintConditions(to, count, _maxPerAddress); require(isPublicSaleActive(), "BASE_COLLECTION/CANNOT_MINT"); _purchase(count, _price, to); emit Purchase(to, _price, count); } function earlyPurchaseHelper(address to, uint256 count) internal override { ensurePublicMintConditions(to, count, _presaleMaxPerAddress); _purchase(count, _presalePrice, to); emit EarlyPurchase(to, _presalePrice, count); } function _purchase(uint256 count, uint256 price, address to) private { require(price * count <= msg.value, 'BASE_COLLECTION/INSUFFICIENT_ETH_AMOUNT'); _purchases[to] += count; _safeMint(to, 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"); uint256 totalMintFromAddress = _purchases[to] + count; require ((maxPerAddress == 0) || (totalMintFromAddress <= maxPerAddress), "BASE_COLLECTION/EXCEEDS_INDIVIDUAL_SUPPLY"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; // @author rollauver.eth abstract contract Purchaseable is Ownable, Pausable { function purchaseHelper(address to, uint256 count) internal virtual; function earlyPurchaseHelper(address to, uint256 count) internal virtual; function isPreSaleActive() public view virtual returns (bool); function isPublicSaleActive() public view virtual returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @title IERC2981Royalties /// @dev Interface for the ERC2981 - Token Royalty standard interface IERC2981Royalties { /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _value - the sale price of the NFT asset specified by _tokenId /// @return _receiver - address of who should be sent the royalty payment /// @return _royaltyAmount - the royalty payment amount for value sale price function royaltyInfo(uint256 _tokenId, uint256 _value) external view returns (address _receiver, uint256 _royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "./Purchaseable.sol"; // @author rollauver.eth abstract contract ExternallyPurchaseable is Purchaseable { mapping(address => uint256) private _externalRelays; constructor() { _externalRelays[0xdAb1a1854214684acE522439684a145E62505233] = 1; _externalRelays[0x12A80DAEaf8E7D646c4adfc4B107A2f1414E2002] = 1; _externalRelays[0xDa30ee0788276c093e686780C25f6C9431027234] = 1; } modifier onlyRelay() { require(_externalRelays[msg.sender] == 1, "Invalid External relay"); _; } function externalPurchase(address to, uint256 count) external payable whenNotPaused onlyRelay { purchaseHelper(to, count); } function externalEarlyPurchase(address to, uint256 count) external payable whenNotPaused onlyRelay { require(isPreSaleActive(), "BASE_COLLECTION/CANNOT_MINT_PRESALE"); earlyPurchaseHelper(to, count); } function addExternalRelay(address relay) external onlyOwner { _externalRelays[relay] = 1; } function removeExternalRelay(address relay) external onlyOwner { _externalRelays[relay] = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ERC721A.sol"; import "./IERC2981Royalties.sol"; // @author rollauver.eth contract ERC721AWithRoyalties is Ownable, ERC721A, IERC2981Royalties { struct RoyaltyInfo { address recipient; uint24 amount; } RoyaltyInfo private _royalties; constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, address royaltyRecipient, uint256 royaltyValue ) ERC721A(name_, symbol_, maxBatchSize_) { _setRoyalties(royaltyRecipient, royaltyValue); } /// @inheritdoc ERC165 function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC2981Royalties).interfaceId || super.supportsInterface(interfaceId); } /// @dev Sets token royalties /// @param recipient recipient of the royalties /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0) function _setRoyalties(address recipient, uint256 value) internal { require(value <= 10000, 'ERC2981Royalties: Too high'); _royalties = RoyaltyInfo(recipient, uint24(value)); } /// @inheritdoc IERC2981Royalties function royaltyInfo(uint256, uint256 value) external view override returns (address receiver, uint256 royaltyAmount) { RoyaltyInfo memory royalties = _royalties; receiver = royalties.recipient; royaltyAmount = (value * royalties.amount) / 10000; } function updateRoyalties(address recipient, uint256 value) external onlyOwner { _setRoyalties(recipient, value); } }
// 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[]"},{"internalType":"address","name":"royaltyRecipient","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"relay","type":"address"}],"name":"addExternalRelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"earlyPurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"externalEarlyPurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"externalPurchase","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":"toAddresses","type":"address[]"},{"internalType":"uint256[]","name":"counts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"payable","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":[{"internalType":"address","name":"relay","type":"address"}],"name":"removeExternalRelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"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"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a06040526001805560006008553480156200001a57600080fd5b50604051620050b3380380620050b38339810160408190526200003d9162000a44565b83838a8a8960028151811062000057576200005762000b73565b602002602001015186868484846200009062000081620004b6640100000000026401000000009004565b640100000000620004ba810204565b6000811162000126576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d7573742062652060448201527f6e6f6e7a65726f0000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b600262000134848262000c4a565b50600362000143838262000c4a565b50608052506200015f905082826401000000006200050a810204565b5050600a805460ff191690555050600b6020525060017f40a4702c2adaf756f8515f85b139df375bf832a42f4294c18968a8c4d3e437dd8190557fe005a648aac88002d207145aa5d58958842748cf0b48a26f550851d8bb03e88781905573da30ee0788276c093e686780c25f6c94310272346000527fed41a926cbdff4b1c29cf1d8abf79d41ed1e766cc9a9dfd07a7c7236b42272a75580518251146200028a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e64207368617260448201527f6573206c656e677468206d69736d61746368000000000000000000000000000060648201526084016200011d565b6000825111620002f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200011d565b60005b82518110156200036c57620003578382815181106200031d576200031d62000b73565b60200260200101518383815181106200033a576200033a62000b73565b6020026020010151620005d3640100000000026401000000009004565b80620003638162000d4b565b915050620002fa565b50601391506200037f9050888262000c4a565b508560008151811062000396576200039662000b73565b602002602001015160158190555085600181518110620003ba57620003ba62000b73565b602002602001015160168190555085600281518110620003de57620003de62000b73565b60200260200101516017819055508560038151811062000402576200040262000b73565b60200260200101516018819055508560048151811062000426576200042662000b73565b6020026020010151601981905550856005815181106200044a576200044a62000b73565b6020026020010151601a81905550856006815181106200046e576200046e62000b73565b6020026020010151601b819055508560078151811062000492576200049262000b73565b6020026020010151601c819055508460148190555050505050505050505062000d82565b3390565b60008054600160a060020a03838116600160a060020a0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61271081111562000578576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f206869676800000000000060448201526064016200011d565b60408051808201909152600160a060020a0390921680835262ffffff90911660209092018290526009805474010000000000000000000000000000000000000000909302600160b860020a0319909316909117919091179055565b600160a060020a0382166200066b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201527f7a65726f2061646472657373000000000000000000000000000000000000000060648201526084016200011d565b60008111620006d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200011d565b600160a060020a0382166000908152600e6020526040902054156200077f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201527f206861732073686172657300000000000000000000000000000000000000000060648201526084016200011d565b60108054600181019091557f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672018054600160a060020a031916600160a060020a0384169081179091556000908152600e60205260409020819055600c54620007e990829062000d67565b600c5560408051600160a060020a0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f8201601f191681016001604060020a03811182821017156200088c576200088c62000832565b604052919050565b600082601f830112620008a657600080fd5b81516001604060020a03811115620008c257620008c262000832565b6020620008d8601f8301601f1916820162000861565b8281528582848701011115620008ed57600080fd5b60005b838110156200090d578581018301518282018401528201620008f0565b838111156200091f5760008385840101525b5095945050505050565b60006001604060020a0382111562000945576200094562000832565b5060209081020190565b600082601f8301126200096157600080fd5b815160206200097a620009748362000929565b62000861565b828152918102840181019181810190868411156200099757600080fd5b8286015b84811015620009b457805183529183019183016200099b565b509695505050505050565b8051600160a060020a0381168114620009d757600080fd5b919050565b600082601f830112620009ee57600080fd5b8151602062000a01620009748362000929565b8281529181028401810191818101908684111562000a1e57600080fd5b8286015b84811015620009b45762000a3681620009bf565b835291830191830162000a22565b60008060008060008060008060006101208a8c03121562000a6457600080fd5b89516001604060020a038082111562000a7c57600080fd5b62000a8a8d838e0162000894565b9a5060208c015191508082111562000aa157600080fd5b62000aaf8d838e0162000894565b995060408c015191508082111562000ac657600080fd5b62000ad48d838e0162000894565b985060608c015191508082111562000aeb57600080fd5b62000af98d838e016200094f565b975060808c0151965060a08c015191508082111562000b1757600080fd5b62000b258d838e01620009dc565b955060c08c015191508082111562000b3c57600080fd5b5062000b4b8c828d016200094f565b93505062000b5c60e08b01620009bf565b91506101008a015190509295985092959850929598565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60028104600182168062000bb757607f821691505b60208210810362000bf1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f82111562000c45576000818152602081206020601f8601048101602086101562000c205750805b6020601f860104820191505b8181101562000c415782815560010162000c2c565b5050505b505050565b81516001604060020a0381111562000c665762000c6662000832565b62000c7e8162000c77845462000ba2565b8462000bf7565b602080601f83116001811462000cba576000841562000c9d5750858301515b60028086026008870290910a600019041982161786555062000c41565b600085815260208120601f198616915b8281101562000ceb5788860151825594840194600190910190840162000cca565b508582101562000d0c57878501516008601f88160260020a60001904191681555b5050505050600202600101905550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006001820162000d605762000d6062000d1c565b5060010190565b6000821982111562000d7d5762000d7d62000d1c565b500190565b60805161430762000dac600039600081816126f80152818161272201526131b701526143076000f3fe6080604052600436106103b8576000357c0100000000000000000000000000000000000000000000000000000000900480637b96a3b2116101f9578063ba5a33b01161011f578063d79779b2116100bd578063e985e9c51161008c578063e985e9c514610aa5578063efef39a114610aee578063f2fde38b14610b01578063fa156f9a14610b2157600080fd5b8063d79779b214610a31578063e2ab10ce14610a67578063e2d5ee2d14610a7a578063e33b7de314610a9057600080fd5b8063ce7c2ac2116100f9578063ce7c2ac2146109bb578063cf9e8e69146109f1578063cfc86f7b14610a06578063d7224ba014610a1b57600080fd5b8063ba5a33b014610968578063befe26e61461097b578063c87b56dd1461099b57600080fd5b8063904be6da11610197578063a0bcfc7f11610166578063a0bcfc7f146108f2578063a22cb46514610912578063b85ef03614610932578063b88d4fde1461094857600080fd5b8063904be6da1461087c57806395d89b41146108925780639852595c146108a75780639d044ed3146108dd57600080fd5b80638456cb59116101d35780638456cb59146108145780638b83209b146108295780638d859f3e146108495780638da5cb5b1461085e57600080fd5b80637b96a3b2146107c15780637c88e3d9146107e15780637cb64759146107f457600080fd5b80633a98ef39116102de5780635f0d246a1161027c5780636c2f5acd1161024b5780636c2f5acd1461074c57806370a082311461076c578063715018a61461078c57806374721235146107a157600080fd5b80635f0d246a146106eb5780636352211e1461070157806366cfb1f314610721578063696fa41e1461073657600080fd5b806342842e0e116102b857806342842e0e1461067357806348b75044146106935780634f6ccce7146106b35780635c975abb146106d357600080fd5b80633a98ef39146106035780633f4ba83a14610618578063406072a91461062d57600080fd5b80631e84c413116103565780632a55205a116103255780632a55205a1461057b5780632f745c59146105ba5780632fc37ab2146105da578063313f944f146105f057600080fd5b80631e84c4131461051a57806322f4596f1461052f578063235b6ea11461054557806323b872dd1461055b57600080fd5b8063095ea7b311610392578063095ea7b314610495578063139b3936146104b757806318160ddd146104d757806319165587146104fa57600080fd5b806301ffc9a71461040657806306fdde031461043b578063081812fc1461045d57600080fd5b36610401577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7703360408051600160a060020a0390921682523460208301520160405180910390a1005b600080fd5b34801561041257600080fd5b50610426610421366004613739565b610b37565b60405190151581526020015b60405180910390f35b34801561044757600080fd5b50610450610b7b565b60405161043291906137ae565b34801561046957600080fd5b5061047d6104783660046137c1565b610c0d565b604051600160a060020a039091168152602001610432565b3480156104a157600080fd5b506104b56104b03660046137ef565b610cb0565b005b3480156104c357600080fd5b506104b56104d236600461381b565b610de8565b3480156104e357600080fd5b506104ec610e2f565b604051908152602001610432565b34801561050657600080fd5b506104b561051536600461381b565b610e44565b34801561052657600080fd5b50610426610f7c565b34801561053b57600080fd5b506104ec60175481565b34801561055157600080fd5b506104ec60155481565b34801561056757600080fd5b506104b5610576366004613838565b610f94565b34801561058757600080fd5b5061059b610596366004613879565b610f9f565b60408051600160a060020a039093168352602083019190915201610432565b3480156105c657600080fd5b506104ec6105d53660046137ef565b610ff4565b3480156105e657600080fd5b506104ec60145481565b6104b56105fe3660046137ef565b61119a565b34801561060f57600080fd5b50600c546104ec565b34801561062457600080fd5b506104b5611230565b34801561063957600080fd5b506104ec61064836600461389b565b600160a060020a03918216600090815260126020908152604080832093909416825291909152205490565b34801561067f57600080fd5b506104b561068e366004613838565b611267565b34801561069f57600080fd5b506104b56106ae36600461389b565b611282565b3480156106bf57600080fd5b506104ec6106ce3660046137c1565b61147d565b3480156106df57600080fd5b50600a5460ff16610426565b3480156106f757600080fd5b506104ec60165481565b34801561070d57600080fd5b5061047d61071c3660046137c1565b611502565b34801561072d57600080fd5b506104ec611514565b34801561074257600080fd5b506104ec601c5481565b34801561075857600080fd5b506104b56107673660046137ef565b611531565b34801561077857600080fd5b506104ec61078736600461381b565b611568565b34801561079857600080fd5b506104b561160e565b3480156107ad57600080fd5b506104b56107bc3660046138d4565b611645565b3480156107cd57600080fd5b506104266107dc366004613974565b611698565b6104b56107ef366004613a9f565b611725565b34801561080057600080fd5b506104b561080f3660046137c1565b611848565b34801561082057600080fd5b506104b561187a565b34801561083557600080fd5b5061047d6108443660046137c1565b6118af565b34801561085557600080fd5b506104ec6118df565b34801561086a57600080fd5b50600054600160a060020a031661047d565b34801561088857600080fd5b506104ec60195481565b34801561089e57600080fd5b506104506118fc565b3480156108b357600080fd5b506104ec6108c236600461381b565b600160a060020a03166000908152600f602052604090205490565b3480156108e957600080fd5b5061042661190b565b3480156108fe57600080fd5b506104b561090d366004613bac565b61192e565b34801561091e57600080fd5b506104b561092d366004613c03565b611967565b34801561093e57600080fd5b506104ec601a5481565b34801561095457600080fd5b506104b5610963366004613c31565b611a2e565b6104b56109763660046137ef565b611a6a565b34801561098757600080fd5b506104b561099636600461381b565b611b23565b3480156109a757600080fd5b506104506109b63660046137c1565b611b6d565b3480156109c757600080fd5b506104ec6109d636600461381b565b600160a060020a03166000908152600e602052604090205490565b3480156109fd57600080fd5b506017546104ec565b348015610a1257600080fd5b50610450611c4a565b348015610a2757600080fd5b506104ec60085481565b348015610a3d57600080fd5b506104ec610a4c36600461381b565b600160a060020a031660009081526011602052604090205490565b6104b5610a75366004613cb1565b611cd8565b348015610a8657600080fd5b506104ec60185481565b348015610a9c57600080fd5b50600d546104ec565b348015610ab157600080fd5b50610426610ac036600461389b565b600160a060020a03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6104b5610afc3660046137c1565b611d41565b348015610b0d57600080fd5b506104b5610b1c36600461381b565b611d74565b348015610b2d57600080fd5b506104ec601b5481565b6000600160e060020a031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610b755750610b7582611e29565b92915050565b606060028054610b8a90613ce4565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb690613ce4565b8015610c035780601f10610bd857610100808354040283529160200191610c03565b820191906000526020600020905b815481529060010190602001808311610be657829003601f168201915b5050505050905090565b6000610c1a826001541190565b610c945760405160e560020a62461bcd02815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b50600090815260066020526040902054600160a060020a031690565b6000610cbb82611502565b905080600160a060020a031683600160a060020a031603610d475760405160e560020a62461bcd02815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610c8b565b33600160a060020a0382161480610d635750610d638133610ac0565b610dd85760405160e560020a62461bcd02815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610c8b565b610de3838383611ef8565b505050565b600054600160a060020a03163314610e155760405160e560020a62461bcd028152600401610c8b90613d21565b600160a060020a03166000908152600b6020526040812055565b600060018054610e3f9190613d6f565b905090565b600160a060020a0381166000908152600e6020526040902054610e7c5760405160e560020a62461bcd028152600401610c8b90613d86565b6000610e87600d5490565b610e92903031613de3565b90506000610ebf8383610eba86600160a060020a03166000908152600f602052604090205490565b611f61565b905080600003610ee45760405160e560020a62461bcd028152600401610c8b90613dfb565b600160a060020a0383166000908152600f602052604081208054839290610f0c908490613de3565b9250508190555080600d6000828254610f259190613de3565b90915550610f3590508382611fa7565b60408051600160a060020a0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6000601a5460001480610e3f575042601a5410905090565b610de38383836120c7565b60408051808201909152600954600160a060020a03811680835260a060020a90910462ffffff1660208301819052909160009161271090610fe09086613e58565b610fea9190613e90565b9150509250929050565b6000610fff83611568565b82106110765760405160e560020a62461bcd02815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610c8b565b6000611080610e2f565b905060008060005b8381101561112857600081815260046020908152604091829020825180840190935254600160a060020a03811680845260a060020a90910467ffffffffffffffff1691830191909152156110db57805192505b87600160a060020a031683600160a060020a0316036111155786840361110757509350610b7592505050565b8361111181613ea4565b9450505b508061112081613ea4565b915050611088565b5060405160e560020a62461bcd02815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610c8b565b600a5460ff16156111c05760405160e560020a62461bcd028152600401610c8b90613ebd565b336000908152600b60205260409020546001146112225760405160e560020a62461bcd02815260206004820152601660248201527f496e76616c69642045787465726e616c2072656c6179000000000000000000006044820152606401610c8b565b61122c8282612492565b5050565b600054600160a060020a0316331461125d5760405160e560020a62461bcd028152600401610c8b90613d21565b611265612541565b565b610de383838360405180602001604052806000815250611a2e565b600160a060020a0381166000908152600e60205260409020546112ba5760405160e560020a62461bcd028152600401610c8b90613d86565b600160a060020a0382166000908152601160205260408120546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600160a060020a038516906370a0823190602401602060405180830381865afa158015611330573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113549190613ef4565b61135e9190613de3565b905060006113978383610eba8787600160a060020a03918216600090815260126020908152604080832093909416825291909152205490565b9050806000036113bc5760405160e560020a62461bcd028152600401610c8b90613dfb565b600160a060020a038085166000908152601260209081526040808320938716835292905290812080548392906113f3908490613de3565b9091555050600160a060020a03841660009081526011602052604081208054839290611420908490613de3565b9091555061143190508484836125e0565b60408051600160a060020a038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000611487610e2f565b82106114fe5760405160e560020a62461bcd02815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610c8b565b5090565b600061150d82612660565b5192915050565b600061151e61190b565b1561152a575060195490565b5060185490565b600054600160a060020a0316331461155e5760405160e560020a62461bcd028152600401610c8b90613d21565b61122c8282612831565b6000600160a060020a0382166115e95760405160e560020a62461bcd02815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610c8b565b50600160a060020a03166000908152600560205260409020546001608060020a031690565b600054600160a060020a0316331461163b5760405160e560020a62461bcd028152600401610c8b90613d21565b61126560006128e0565b600054600160a060020a031633146116725760405160e560020a62461bcd028152600401610c8b90613d21565b601a97909755601b95909555601893909355601991909155601555601655601455601c55565b60006040516c01000000000000000000000000600160a060020a03861602602082015260009060340160405160208183030381529060405280519060200120905061171a84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601454915084905061293d565b9150505b9392505050565b600054600160a060020a031633146117525760405160e560020a62461bcd028152600401610c8b90613d21565b80518251146117cc5760405160e560020a62461bcd02815260206004820152602660248201527f746f41646472657373657320616e6420636f756e7473206c656e677468206d6960448201527f736d6174636800000000000000000000000000000000000000000000000000006064820152608401610c8b565b60005b8251811015610de3576117fa8282815181106117ed576117ed613f0d565b6020026020010151612953565b61183683828151811061180f5761180f613f0d565b602002602001015183838151811061182957611829613f0d565b60200260200101516129e0565b8061184081613ea4565b9150506117cf565b600054600160a060020a031633146118755760405160e560020a62461bcd028152600401610c8b90613d21565b601455565b600054600160a060020a031633146118a75760405160e560020a62461bcd028152600401610c8b90613d21565b6112656129fa565b6000601082815481106118c4576118c4613f0d565b600091825260209091200154600160a060020a031692915050565b60006118e961190b565b156118f5575060165490565b5060155490565b606060038054610b8a90613ce4565b6000601b5460001480610e3f575042601b54108015610e3f575050601a54421090565b600054600160a060020a0316331461195b5760405160e560020a62461bcd028152600401610c8b90613d21565b601361122c8282613f6c565b33600160a060020a038316036119c25760405160e560020a62461bcd02815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610c8b565b336000818152600760209081526040808320600160a060020a03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611a398484846120c7565b611a4584848484612a55565b611a645760405160e560020a62461bcd028152600401610c8b90614032565b50505050565b600a5460ff1615611a905760405160e560020a62461bcd028152600401610c8b90613ebd565b336000908152600b6020526040902054600114611af25760405160e560020a62461bcd02815260206004820152601660248201527f496e76616c69642045787465726e616c2072656c6179000000000000000000006044820152606401610c8b565b611afa61190b565b611b195760405160e560020a62461bcd028152600401610c8b9061408f565b61122c8282612b8b565b600054600160a060020a03163314611b505760405160e560020a62461bcd028152600401610c8b90613d21565b600160a060020a03166000908152600b6020526040902060019055565b6060611b7a826001541190565b611bef5760405160e560020a62461bcd02815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c8b565b6000611bf9612be3565b90506000815111611c19576040518060200160405280600081525061171e565b80611c2384612c17565b604051602001611c349291906140ec565b6040516020818303038152906040529392505050565b60138054611c5790613ce4565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8390613ce4565b8015611cd05780601f10611ca557610100808354040283529160200191611cd0565b820191906000526020600020905b815481529060010190602001808311611cb357829003601f168201915b505050505081565b600a5460ff1615611cfe5760405160e560020a62461bcd028152600401610c8b90613ebd565b611d0661190b565b8015611d185750611d18338383611698565b611d375760405160e560020a62461bcd028152600401610c8b9061408f565b610de33384612b8b565b600a5460ff1615611d675760405160e560020a62461bcd028152600401610c8b90613ebd565b611d713382612492565b50565b600054600160a060020a03163314611da15760405160e560020a62461bcd028152600401610c8b90613d21565b600160a060020a038116611e205760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c8b565b611d71816128e0565b6000600160e060020a031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611e8c5750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80611ec05750600160e060020a031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610b7557507f01ffc9a700000000000000000000000000000000000000000000000000000000600160e060020a0319831614610b75565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600c54600160a060020a0384166000908152600e602052604081205490918391611f8b9086613e58565b611f959190613e90565b611f9f9190613d6f565b949350505050565b3031811115611ffb5760405160e560020a62461bcd02815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c8b565b600082600160a060020a03168260405160006040518083038185875af1925050503d8060008114612048576040519150601f19603f3d011682016040523d82523d6000602084013e61204d565b606091505b5050905080610de35760405160e560020a62461bcd02815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c8b565b60006120d282612660565b8051909150600090600160a060020a031633600160a060020a031614806121095750336120fe84610c0d565b600160a060020a0316145b8061211b5750815161211b9033610ac0565b9050806121935760405160e560020a62461bcd02815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610c8b565b84600160a060020a03168260000151600160a060020a0316146122215760405160e560020a62461bcd02815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610c8b565b600160a060020a0384166122a05760405160e560020a62461bcd02815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610c8b565b6122b06000848460000151611ef8565b600160a060020a03851660009081526005602052604081208054600192906122e29084906001608060020a031661411b565b82546101009290920a6001608060020a03818102199093169183160217909155600160a060020a0386166000908152600560205260408120805460019450909261232e91859116614143565b82546001608060020a039182166101009390930a928302919092021990911617905550604080518082018252600160a060020a03808716825267ffffffffffffffff42811660208085019182526000898152600490915294852093518454915190921660a060020a02600160e060020a031990911691909216171790556123b6846001613de3565b600081815260046020526040902054909150600160a060020a0316612448576123e0816001541190565b15612448576040805180820182528451600160a060020a03908116825260208087015167ffffffffffffffff908116828501908152600087815260049093529490912092518354945190911660a060020a02600160e060020a03199094169116179190911790555b8385600160a060020a031687600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61249f8282601854612d53565b6124a7610f7c565b6124f65760405160e560020a62461bcd02815260206004820152601b60248201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e5400000000006044820152606401610c8b565b6125038160155484612e8a565b8060155483600160a060020a03167f12cb4648cf3058b17ceeb33e579f8b0bc269fe0843f3900b8e24b6c54871703c60405160405180910390a45050565b600a5460ff166125965760405160e560020a62461bcd02815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610c8b565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051600160a060020a03909116815260200160405180910390a1565b60408051600160a060020a038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610de3908490612f44565b604080518082019091526000808252602082015261267f826001541190565b6126f45760405160e560020a62461bcd02815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610c8b565b60007f00000000000000000000000000000000000000000000000000000000000000008310612755576127477f000000000000000000000000000000000000000000000000000000000000000084613d6f565b612752906001613de3565b90505b825b8181106127bf57600081815260046020908152604091829020825180840190935254600160a060020a03811680845260a060020a90910467ffffffffffffffff1691830191909152156127ac57949350505050565b50806127b781614165565b915050612757565b5060405160e560020a62461bcd02815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610c8b565b6127108111156128865760405160e560020a62461bcd02815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610c8b565b60408051808201909152600160a060020a0390921680835262ffffff90911660209092018290526009805460a060020a90930276ffffffffffffffffffffffffffffffffffffffffffffff19909316909117919091179055565b60008054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008261294a858461302c565b14949350505050565b6017548161295f610e2f565b6129699190613de3565b1115611d715760405160e560020a62461bcd02815260206004820152602260248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f5355505060448201527f4c590000000000000000000000000000000000000000000000000000000000006064820152608401610c8b565b61122c8282604051806020016040528060008152506130d8565b600a5460ff1615612a205760405160e560020a62461bcd028152600401610c8b90613ebd565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125c33390565b6000600160a060020a0384163b15612b80576040517f150b7a02000000000000000000000000000000000000000000000000000000008152600160a060020a0385169063150b7a0290612ab290339089908890889060040161417c565b6020604051808303816000875af1925050508015612aed575060408051601f3d908101601f19168201909252612aea918101906141b8565b60015b612b4d573d808015612b1b576040519150601f19603f3d011682016040523d82523d6000602084013e612b20565b606091505b508051600003612b455760405160e560020a62461bcd028152600401610c8b90614032565b805181602001fd5b600160e060020a0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611f9f565b506001949350505050565b612b988282601954612d53565b612ba58160165484612e8a565b8060165483600160a060020a03167f38bd02858ca92987ff585a4c06998aea8187e96864df1eaf349dec3cfddc0fbb60405160405180910390a45050565b60606013612bf2306014613410565b604051602001612c039291906141d5565b604051602081830303815290604052905090565b606081600003612c5a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612c845780612c6e81613ea4565b9150612c7d9050600a83613e90565b9150612c5e565b60008167ffffffffffffffff811115612c9f57612c9f6139c9565b6040519080825280601f01601f191660200182016040528015612cc9576020820181803683370190505b5090505b8415611f9f57612cde600183613d6f565b9150612ceb600a86614284565b612cf6906030613de3565b7f010000000000000000000000000000000000000000000000000000000000000002818381518110612d2a57612d2a613f0d565b6020010190600160f860020a031916908160001a905350612d4c600a86613e90565b9450612ccd565b612d5c82612953565b601c541580612d6d5750601c548211155b612de25760405160e560020a62461bcd02815260206004820152602b60248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f5045525f60448201527f5452414e53414354494f4e0000000000000000000000000000000000000000006064820152608401610c8b565b600160a060020a0383166000908152601d6020526040812054612e06908490613de3565b9050811580612e155750818111155b611a645760405160e560020a62461bcd02815260206004820152602960248201527f424153455f434f4c4c454354494f4e2f455843454544535f494e44495649445560448201527f414c5f535550504c5900000000000000000000000000000000000000000000006064820152608401610c8b565b34612e958484613e58565b1115612f0c5760405160e560020a62461bcd02815260206004820152602760248201527f424153455f434f4c4c454354494f4e2f494e53554646494349454e545f45544860448201527f5f414d4f554e54000000000000000000000000000000000000000000000000006064820152608401610c8b565b600160a060020a0381166000908152601d602052604081208054859290612f34908490613de3565b90915550610de3905081846129e0565b6000612f99826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525085600160a060020a03166136129092919063ffffffff16565b805190915015610de35780806020019051810190612fb79190614298565b610de35760405160e560020a62461bcd02815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c8b565b600081815b84518110156130d057600085828151811061304e5761304e613f0d565b602002602001015190508083116130905760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506130bd565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806130c881613ea4565b915050613031565b509392505050565b600154600160a060020a03841661315a5760405160e560020a62461bcd02815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610c8b565b613165816001541190565b156131b55760405160e560020a62461bcd02815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610c8b565b7f000000000000000000000000000000000000000000000000000000000000000083111561324e5760405160e560020a62461bcd02815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610c8b565b600160a060020a0384166000908152600560209081526040918290208251808401845290546001608060020a03808216835270010000000000000000000000000000000090910416918101919091528151808301909252805190919081906132b7908790614143565b6001608060020a031681526020018583602001516132d59190614143565b6001608060020a03908116909152600160a060020a03808816600081815260056020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff428116838601908152888352600490955294812091518254945190951660a060020a02600160e060020a031990941694909216939093179190911790915582905b85811015613405576040518290600160a060020a038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46133c66000888488612a55565b6133e55760405160e560020a62461bcd028152600401610c8b90614032565b816133ef81613ea4565b92505080806133fd90613ea4565b915050613379565b50600181905561248a565b6060600061341f836002613e58565b61342a906002613de3565b67ffffffffffffffff811115613442576134426139c9565b6040519080825280601f01601f19166020018201604052801561346c576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106134a3576134a3613f0d565b6020010190600160f860020a031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134ee576134ee613f0d565b6020010190600160f860020a031916908160001a9053506000613512846002613e58565b61351d906001613de3565b90505b60018111156135c0577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061355e5761355e613f0d565b1a7f01000000000000000000000000000000000000000000000000000000000000000282828151811061359357613593613f0d565b6020010190600160f860020a031916908160001a9053506010909404936135b981614165565b9050613520565b50831561171e5760405160e560020a62461bcd02815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c8b565b6060611f9f848460008585843b61366e5760405160e560020a62461bcd02815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c8b565b60008086600160a060020a0316858760405161368a91906142b5565b60006040518083038185875af1925050503d80600081146136c7576040519150601f19603f3d011682016040523d82523d6000602084013e6136cc565b606091505b50915091506136dc8282866136e7565b979650505050505050565b606083156136f657508161171e565b8251156137065782518084602001fd5b8160405160e560020a62461bcd028152600401610c8b91906137ae565b600160e060020a031981168114611d7157600080fd5b60006020828403121561374b57600080fd5b813561171e81613723565b60005b83811015613771578181015183820152602001613759565b83811115611a645750506000910152565b6000815180845261379a816020860160208601613756565b601f01601f19169290920160200192915050565b60208152600061171e6020830184613782565b6000602082840312156137d357600080fd5b5035919050565b600160a060020a0381168114611d7157600080fd5b6000806040838503121561380257600080fd5b823561380d816137da565b946020939093013593505050565b60006020828403121561382d57600080fd5b813561171e816137da565b60008060006060848603121561384d57600080fd5b8335613858816137da565b92506020840135613868816137da565b929592945050506040919091013590565b6000806040838503121561388c57600080fd5b50508035926020909101359150565b600080604083850312156138ae57600080fd5b82356138b9816137da565b915060208301356138c9816137da565b809150509250929050565b600080600080600080600080610100898b0312156138f157600080fd5b505086359860208801359850604088013597606081013597506080810135965060a0810135955060c0810135945060e0013592509050565b60008083601f84011261393b57600080fd5b50813567ffffffffffffffff81111561395357600080fd5b602083019150836020808302850101111561396d57600080fd5b9250929050565b60008060006040848603121561398957600080fd5b8335613994816137da565b9250602084013567ffffffffffffffff8111156139b057600080fd5b6139bc86828701613929565b9497909650939450505050565b60e060020a634e487b7102600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613a0b57613a0b6139c9565b604052919050565b600067ffffffffffffffff821115613a2d57613a2d6139c9565b5060209081020190565b600082601f830112613a4857600080fd5b81356020613a5d613a5883613a13565b6139e2565b82815291810284018101918181019086841115613a7957600080fd5b8286015b84811015613a945780358352918301918301613a7d565b509695505050505050565b60008060408385031215613ab257600080fd5b823567ffffffffffffffff80821115613aca57600080fd5b818501915085601f830112613ade57600080fd5b81356020613aee613a5883613a13565b82815291810284018101918181019089841115613b0a57600080fd5b948201945b83861015613b31578535613b22816137da565b82529482019490820190613b0f565b96505086013592505080821115613b4757600080fd5b50610fea85828601613a37565b600067ffffffffffffffff831115613b6e57613b6e6139c9565b613b81601f8401601f19166020016139e2565b9050828152838383011115613b9557600080fd5b828260208301376000602084830101529392505050565b600060208284031215613bbe57600080fd5b813567ffffffffffffffff811115613bd557600080fd5b8201601f81018413613be657600080fd5b611f9f84823560208401613b54565b8015158114611d7157600080fd5b60008060408385031215613c1657600080fd5b8235613c21816137da565b915060208301356138c981613bf5565b60008060008060808587031215613c4757600080fd5b8435613c52816137da565b93506020850135613c62816137da565b925060408501359150606085013567ffffffffffffffff811115613c8557600080fd5b8501601f81018713613c9657600080fd5b613ca587823560208401613b54565b91505092959194509250565b600080600060408486031215613cc657600080fd5b83359250602084013567ffffffffffffffff8111156139b057600080fd5b600281046001821680613cf857607f821691505b602082108103613d1b5760e060020a634e487b7102600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60e060020a634e487b7102600052601160045260246000fd5b600082821015613d8157613d81613d56565b500390565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201527f7368617265730000000000000000000000000000000000000000000000000000606082015260800190565b60008219821115613df657613df6613d56565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201527f647565207061796d656e74000000000000000000000000000000000000000000606082015260800190565b6000816000190483118215151615613e7257613e72613d56565b500290565b60e060020a634e487b7102600052601260045260246000fd5b600082613e9f57613e9f613e77565b500490565b600060018201613eb657613eb6613d56565b5060010190565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b600060208284031215613f0657600080fd5b5051919050565b60e060020a634e487b7102600052603260045260246000fd5b601f821115610de3576000818152602081206020601f86010481016020861015613f4d5750805b6020601f860104820191505b8181101561248a57828155600101613f59565b815167ffffffffffffffff811115613f8657613f866139c9565b613f9a81613f948454613ce4565b84613f26565b602080601f831160018114613fd35760008415613fb75750858301515b60028086026008870290910a600019041982161786555061248a565b600085815260208120601f198616915b8281101561400257888601518255948401946001909101908401613fe3565b508582101561402257878501516008601f88160260020a60001904191681555b5050505050600202600101905550565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527f6563656976657220696d706c656d656e74657200000000000000000000000000606082015260800190565b60208082526023908201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e545f5052455360408201527f414c450000000000000000000000000000000000000000000000000000000000606082015260800190565b600083516140fe818460208801613756565b835190830190614112818360208801613756565b01949350505050565b60006001608060020a038381169083168181101561413b5761413b613d56565b039392505050565b60006001608060020a0380831681851680830382111561411257614112613d56565b60008161417457614174613d56565b506000190190565b6000600160a060020a038087168352808616602084015250836040830152608060608301526141ae6080830184613782565b9695505050505050565b6000602082840312156141ca57600080fd5b815161171e81613723565b60008084546141e381613ce4565b600182811680156141fb57600181146142105761423f565b60ff198416875282151583028701945061423f565b8860005260208060002060005b858110156142365781548a82015290840190820161421d565b50505082870194505b5086519250614252838560208a01613756565b7f2f00000000000000000000000000000000000000000000000000000000000000939092019283525001949350505050565b60008261429357614293613e77565b500690565b6000602082840312156142aa57600080fd5b815161171e81613bf5565b600082516142c7818460208701613756565b919091019291505056fea26469706673582212201404ee95c6f0a6187c765a579a89866ad86bc4cd8e10abd6541016c28270d26e64736f6c634300080f00330000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000200570d4640949c60f6b1756888a7860fafa0daede37d27c0a7cb6188386a1a7e67000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003800000000000000000000000006304c601d156531bb012df962060d5fbf57ec1fa0000000000000000000000000000000000000000000000000000000000000258000000000000000000000000000000000000000000000000000000000000000b5469702d4e2d53747269700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003544e530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f7777772e7469702d6e2d73747269702e696f2f636f6e7472616374732f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000063371280000000000000000000000000000000000000000000000000000000006335c100000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000020000000000000000000000002b8842982217f2b9411d883f72d056ec4ec37233000000000000000000000000b50b275f7ff764f27a702254e91d78b261dfd9cf000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000009
Deployed Bytecode
0x6080604052600436106103b8576000357c0100000000000000000000000000000000000000000000000000000000900480637b96a3b2116101f9578063ba5a33b01161011f578063d79779b2116100bd578063e985e9c51161008c578063e985e9c514610aa5578063efef39a114610aee578063f2fde38b14610b01578063fa156f9a14610b2157600080fd5b8063d79779b214610a31578063e2ab10ce14610a67578063e2d5ee2d14610a7a578063e33b7de314610a9057600080fd5b8063ce7c2ac2116100f9578063ce7c2ac2146109bb578063cf9e8e69146109f1578063cfc86f7b14610a06578063d7224ba014610a1b57600080fd5b8063ba5a33b014610968578063befe26e61461097b578063c87b56dd1461099b57600080fd5b8063904be6da11610197578063a0bcfc7f11610166578063a0bcfc7f146108f2578063a22cb46514610912578063b85ef03614610932578063b88d4fde1461094857600080fd5b8063904be6da1461087c57806395d89b41146108925780639852595c146108a75780639d044ed3146108dd57600080fd5b80638456cb59116101d35780638456cb59146108145780638b83209b146108295780638d859f3e146108495780638da5cb5b1461085e57600080fd5b80637b96a3b2146107c15780637c88e3d9146107e15780637cb64759146107f457600080fd5b80633a98ef39116102de5780635f0d246a1161027c5780636c2f5acd1161024b5780636c2f5acd1461074c57806370a082311461076c578063715018a61461078c57806374721235146107a157600080fd5b80635f0d246a146106eb5780636352211e1461070157806366cfb1f314610721578063696fa41e1461073657600080fd5b806342842e0e116102b857806342842e0e1461067357806348b75044146106935780634f6ccce7146106b35780635c975abb146106d357600080fd5b80633a98ef39146106035780633f4ba83a14610618578063406072a91461062d57600080fd5b80631e84c413116103565780632a55205a116103255780632a55205a1461057b5780632f745c59146105ba5780632fc37ab2146105da578063313f944f146105f057600080fd5b80631e84c4131461051a57806322f4596f1461052f578063235b6ea11461054557806323b872dd1461055b57600080fd5b8063095ea7b311610392578063095ea7b314610495578063139b3936146104b757806318160ddd146104d757806319165587146104fa57600080fd5b806301ffc9a71461040657806306fdde031461043b578063081812fc1461045d57600080fd5b36610401577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7703360408051600160a060020a0390921682523460208301520160405180910390a1005b600080fd5b34801561041257600080fd5b50610426610421366004613739565b610b37565b60405190151581526020015b60405180910390f35b34801561044757600080fd5b50610450610b7b565b60405161043291906137ae565b34801561046957600080fd5b5061047d6104783660046137c1565b610c0d565b604051600160a060020a039091168152602001610432565b3480156104a157600080fd5b506104b56104b03660046137ef565b610cb0565b005b3480156104c357600080fd5b506104b56104d236600461381b565b610de8565b3480156104e357600080fd5b506104ec610e2f565b604051908152602001610432565b34801561050657600080fd5b506104b561051536600461381b565b610e44565b34801561052657600080fd5b50610426610f7c565b34801561053b57600080fd5b506104ec60175481565b34801561055157600080fd5b506104ec60155481565b34801561056757600080fd5b506104b5610576366004613838565b610f94565b34801561058757600080fd5b5061059b610596366004613879565b610f9f565b60408051600160a060020a039093168352602083019190915201610432565b3480156105c657600080fd5b506104ec6105d53660046137ef565b610ff4565b3480156105e657600080fd5b506104ec60145481565b6104b56105fe3660046137ef565b61119a565b34801561060f57600080fd5b50600c546104ec565b34801561062457600080fd5b506104b5611230565b34801561063957600080fd5b506104ec61064836600461389b565b600160a060020a03918216600090815260126020908152604080832093909416825291909152205490565b34801561067f57600080fd5b506104b561068e366004613838565b611267565b34801561069f57600080fd5b506104b56106ae36600461389b565b611282565b3480156106bf57600080fd5b506104ec6106ce3660046137c1565b61147d565b3480156106df57600080fd5b50600a5460ff16610426565b3480156106f757600080fd5b506104ec60165481565b34801561070d57600080fd5b5061047d61071c3660046137c1565b611502565b34801561072d57600080fd5b506104ec611514565b34801561074257600080fd5b506104ec601c5481565b34801561075857600080fd5b506104b56107673660046137ef565b611531565b34801561077857600080fd5b506104ec61078736600461381b565b611568565b34801561079857600080fd5b506104b561160e565b3480156107ad57600080fd5b506104b56107bc3660046138d4565b611645565b3480156107cd57600080fd5b506104266107dc366004613974565b611698565b6104b56107ef366004613a9f565b611725565b34801561080057600080fd5b506104b561080f3660046137c1565b611848565b34801561082057600080fd5b506104b561187a565b34801561083557600080fd5b5061047d6108443660046137c1565b6118af565b34801561085557600080fd5b506104ec6118df565b34801561086a57600080fd5b50600054600160a060020a031661047d565b34801561088857600080fd5b506104ec60195481565b34801561089e57600080fd5b506104506118fc565b3480156108b357600080fd5b506104ec6108c236600461381b565b600160a060020a03166000908152600f602052604090205490565b3480156108e957600080fd5b5061042661190b565b3480156108fe57600080fd5b506104b561090d366004613bac565b61192e565b34801561091e57600080fd5b506104b561092d366004613c03565b611967565b34801561093e57600080fd5b506104ec601a5481565b34801561095457600080fd5b506104b5610963366004613c31565b611a2e565b6104b56109763660046137ef565b611a6a565b34801561098757600080fd5b506104b561099636600461381b565b611b23565b3480156109a757600080fd5b506104506109b63660046137c1565b611b6d565b3480156109c757600080fd5b506104ec6109d636600461381b565b600160a060020a03166000908152600e602052604090205490565b3480156109fd57600080fd5b506017546104ec565b348015610a1257600080fd5b50610450611c4a565b348015610a2757600080fd5b506104ec60085481565b348015610a3d57600080fd5b506104ec610a4c36600461381b565b600160a060020a031660009081526011602052604090205490565b6104b5610a75366004613cb1565b611cd8565b348015610a8657600080fd5b506104ec60185481565b348015610a9c57600080fd5b50600d546104ec565b348015610ab157600080fd5b50610426610ac036600461389b565b600160a060020a03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6104b5610afc3660046137c1565b611d41565b348015610b0d57600080fd5b506104b5610b1c36600461381b565b611d74565b348015610b2d57600080fd5b506104ec601b5481565b6000600160e060020a031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610b755750610b7582611e29565b92915050565b606060028054610b8a90613ce4565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb690613ce4565b8015610c035780601f10610bd857610100808354040283529160200191610c03565b820191906000526020600020905b815481529060010190602001808311610be657829003601f168201915b5050505050905090565b6000610c1a826001541190565b610c945760405160e560020a62461bcd02815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b50600090815260066020526040902054600160a060020a031690565b6000610cbb82611502565b905080600160a060020a031683600160a060020a031603610d475760405160e560020a62461bcd02815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610c8b565b33600160a060020a0382161480610d635750610d638133610ac0565b610dd85760405160e560020a62461bcd02815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610c8b565b610de3838383611ef8565b505050565b600054600160a060020a03163314610e155760405160e560020a62461bcd028152600401610c8b90613d21565b600160a060020a03166000908152600b6020526040812055565b600060018054610e3f9190613d6f565b905090565b600160a060020a0381166000908152600e6020526040902054610e7c5760405160e560020a62461bcd028152600401610c8b90613d86565b6000610e87600d5490565b610e92903031613de3565b90506000610ebf8383610eba86600160a060020a03166000908152600f602052604090205490565b611f61565b905080600003610ee45760405160e560020a62461bcd028152600401610c8b90613dfb565b600160a060020a0383166000908152600f602052604081208054839290610f0c908490613de3565b9250508190555080600d6000828254610f259190613de3565b90915550610f3590508382611fa7565b60408051600160a060020a0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6000601a5460001480610e3f575042601a5410905090565b610de38383836120c7565b60408051808201909152600954600160a060020a03811680835260a060020a90910462ffffff1660208301819052909160009161271090610fe09086613e58565b610fea9190613e90565b9150509250929050565b6000610fff83611568565b82106110765760405160e560020a62461bcd02815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610c8b565b6000611080610e2f565b905060008060005b8381101561112857600081815260046020908152604091829020825180840190935254600160a060020a03811680845260a060020a90910467ffffffffffffffff1691830191909152156110db57805192505b87600160a060020a031683600160a060020a0316036111155786840361110757509350610b7592505050565b8361111181613ea4565b9450505b508061112081613ea4565b915050611088565b5060405160e560020a62461bcd02815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610c8b565b600a5460ff16156111c05760405160e560020a62461bcd028152600401610c8b90613ebd565b336000908152600b60205260409020546001146112225760405160e560020a62461bcd02815260206004820152601660248201527f496e76616c69642045787465726e616c2072656c6179000000000000000000006044820152606401610c8b565b61122c8282612492565b5050565b600054600160a060020a0316331461125d5760405160e560020a62461bcd028152600401610c8b90613d21565b611265612541565b565b610de383838360405180602001604052806000815250611a2e565b600160a060020a0381166000908152600e60205260409020546112ba5760405160e560020a62461bcd028152600401610c8b90613d86565b600160a060020a0382166000908152601160205260408120546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600160a060020a038516906370a0823190602401602060405180830381865afa158015611330573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113549190613ef4565b61135e9190613de3565b905060006113978383610eba8787600160a060020a03918216600090815260126020908152604080832093909416825291909152205490565b9050806000036113bc5760405160e560020a62461bcd028152600401610c8b90613dfb565b600160a060020a038085166000908152601260209081526040808320938716835292905290812080548392906113f3908490613de3565b9091555050600160a060020a03841660009081526011602052604081208054839290611420908490613de3565b9091555061143190508484836125e0565b60408051600160a060020a038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000611487610e2f565b82106114fe5760405160e560020a62461bcd02815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610c8b565b5090565b600061150d82612660565b5192915050565b600061151e61190b565b1561152a575060195490565b5060185490565b600054600160a060020a0316331461155e5760405160e560020a62461bcd028152600401610c8b90613d21565b61122c8282612831565b6000600160a060020a0382166115e95760405160e560020a62461bcd02815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610c8b565b50600160a060020a03166000908152600560205260409020546001608060020a031690565b600054600160a060020a0316331461163b5760405160e560020a62461bcd028152600401610c8b90613d21565b61126560006128e0565b600054600160a060020a031633146116725760405160e560020a62461bcd028152600401610c8b90613d21565b601a97909755601b95909555601893909355601991909155601555601655601455601c55565b60006040516c01000000000000000000000000600160a060020a03861602602082015260009060340160405160208183030381529060405280519060200120905061171a84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601454915084905061293d565b9150505b9392505050565b600054600160a060020a031633146117525760405160e560020a62461bcd028152600401610c8b90613d21565b80518251146117cc5760405160e560020a62461bcd02815260206004820152602660248201527f746f41646472657373657320616e6420636f756e7473206c656e677468206d6960448201527f736d6174636800000000000000000000000000000000000000000000000000006064820152608401610c8b565b60005b8251811015610de3576117fa8282815181106117ed576117ed613f0d565b6020026020010151612953565b61183683828151811061180f5761180f613f0d565b602002602001015183838151811061182957611829613f0d565b60200260200101516129e0565b8061184081613ea4565b9150506117cf565b600054600160a060020a031633146118755760405160e560020a62461bcd028152600401610c8b90613d21565b601455565b600054600160a060020a031633146118a75760405160e560020a62461bcd028152600401610c8b90613d21565b6112656129fa565b6000601082815481106118c4576118c4613f0d565b600091825260209091200154600160a060020a031692915050565b60006118e961190b565b156118f5575060165490565b5060155490565b606060038054610b8a90613ce4565b6000601b5460001480610e3f575042601b54108015610e3f575050601a54421090565b600054600160a060020a0316331461195b5760405160e560020a62461bcd028152600401610c8b90613d21565b601361122c8282613f6c565b33600160a060020a038316036119c25760405160e560020a62461bcd02815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610c8b565b336000818152600760209081526040808320600160a060020a03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611a398484846120c7565b611a4584848484612a55565b611a645760405160e560020a62461bcd028152600401610c8b90614032565b50505050565b600a5460ff1615611a905760405160e560020a62461bcd028152600401610c8b90613ebd565b336000908152600b6020526040902054600114611af25760405160e560020a62461bcd02815260206004820152601660248201527f496e76616c69642045787465726e616c2072656c6179000000000000000000006044820152606401610c8b565b611afa61190b565b611b195760405160e560020a62461bcd028152600401610c8b9061408f565b61122c8282612b8b565b600054600160a060020a03163314611b505760405160e560020a62461bcd028152600401610c8b90613d21565b600160a060020a03166000908152600b6020526040902060019055565b6060611b7a826001541190565b611bef5760405160e560020a62461bcd02815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c8b565b6000611bf9612be3565b90506000815111611c19576040518060200160405280600081525061171e565b80611c2384612c17565b604051602001611c349291906140ec565b6040516020818303038152906040529392505050565b60138054611c5790613ce4565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8390613ce4565b8015611cd05780601f10611ca557610100808354040283529160200191611cd0565b820191906000526020600020905b815481529060010190602001808311611cb357829003601f168201915b505050505081565b600a5460ff1615611cfe5760405160e560020a62461bcd028152600401610c8b90613ebd565b611d0661190b565b8015611d185750611d18338383611698565b611d375760405160e560020a62461bcd028152600401610c8b9061408f565b610de33384612b8b565b600a5460ff1615611d675760405160e560020a62461bcd028152600401610c8b90613ebd565b611d713382612492565b50565b600054600160a060020a03163314611da15760405160e560020a62461bcd028152600401610c8b90613d21565b600160a060020a038116611e205760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c8b565b611d71816128e0565b6000600160e060020a031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611e8c5750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80611ec05750600160e060020a031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610b7557507f01ffc9a700000000000000000000000000000000000000000000000000000000600160e060020a0319831614610b75565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600c54600160a060020a0384166000908152600e602052604081205490918391611f8b9086613e58565b611f959190613e90565b611f9f9190613d6f565b949350505050565b3031811115611ffb5760405160e560020a62461bcd02815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c8b565b600082600160a060020a03168260405160006040518083038185875af1925050503d8060008114612048576040519150601f19603f3d011682016040523d82523d6000602084013e61204d565b606091505b5050905080610de35760405160e560020a62461bcd02815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c8b565b60006120d282612660565b8051909150600090600160a060020a031633600160a060020a031614806121095750336120fe84610c0d565b600160a060020a0316145b8061211b5750815161211b9033610ac0565b9050806121935760405160e560020a62461bcd02815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610c8b565b84600160a060020a03168260000151600160a060020a0316146122215760405160e560020a62461bcd02815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610c8b565b600160a060020a0384166122a05760405160e560020a62461bcd02815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610c8b565b6122b06000848460000151611ef8565b600160a060020a03851660009081526005602052604081208054600192906122e29084906001608060020a031661411b565b82546101009290920a6001608060020a03818102199093169183160217909155600160a060020a0386166000908152600560205260408120805460019450909261232e91859116614143565b82546001608060020a039182166101009390930a928302919092021990911617905550604080518082018252600160a060020a03808716825267ffffffffffffffff42811660208085019182526000898152600490915294852093518454915190921660a060020a02600160e060020a031990911691909216171790556123b6846001613de3565b600081815260046020526040902054909150600160a060020a0316612448576123e0816001541190565b15612448576040805180820182528451600160a060020a03908116825260208087015167ffffffffffffffff908116828501908152600087815260049093529490912092518354945190911660a060020a02600160e060020a03199094169116179190911790555b8385600160a060020a031687600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61249f8282601854612d53565b6124a7610f7c565b6124f65760405160e560020a62461bcd02815260206004820152601b60248201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e5400000000006044820152606401610c8b565b6125038160155484612e8a565b8060155483600160a060020a03167f12cb4648cf3058b17ceeb33e579f8b0bc269fe0843f3900b8e24b6c54871703c60405160405180910390a45050565b600a5460ff166125965760405160e560020a62461bcd02815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610c8b565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051600160a060020a03909116815260200160405180910390a1565b60408051600160a060020a038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610de3908490612f44565b604080518082019091526000808252602082015261267f826001541190565b6126f45760405160e560020a62461bcd02815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610c8b565b60007f00000000000000000000000000000000000000000000000000000000000027108310612755576127477f000000000000000000000000000000000000000000000000000000000000271084613d6f565b612752906001613de3565b90505b825b8181106127bf57600081815260046020908152604091829020825180840190935254600160a060020a03811680845260a060020a90910467ffffffffffffffff1691830191909152156127ac57949350505050565b50806127b781614165565b915050612757565b5060405160e560020a62461bcd02815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610c8b565b6127108111156128865760405160e560020a62461bcd02815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610c8b565b60408051808201909152600160a060020a0390921680835262ffffff90911660209092018290526009805460a060020a90930276ffffffffffffffffffffffffffffffffffffffffffffff19909316909117919091179055565b60008054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008261294a858461302c565b14949350505050565b6017548161295f610e2f565b6129699190613de3565b1115611d715760405160e560020a62461bcd02815260206004820152602260248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f5355505060448201527f4c590000000000000000000000000000000000000000000000000000000000006064820152608401610c8b565b61122c8282604051806020016040528060008152506130d8565b600a5460ff1615612a205760405160e560020a62461bcd028152600401610c8b90613ebd565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125c33390565b6000600160a060020a0384163b15612b80576040517f150b7a02000000000000000000000000000000000000000000000000000000008152600160a060020a0385169063150b7a0290612ab290339089908890889060040161417c565b6020604051808303816000875af1925050508015612aed575060408051601f3d908101601f19168201909252612aea918101906141b8565b60015b612b4d573d808015612b1b576040519150601f19603f3d011682016040523d82523d6000602084013e612b20565b606091505b508051600003612b455760405160e560020a62461bcd028152600401610c8b90614032565b805181602001fd5b600160e060020a0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611f9f565b506001949350505050565b612b988282601954612d53565b612ba58160165484612e8a565b8060165483600160a060020a03167f38bd02858ca92987ff585a4c06998aea8187e96864df1eaf349dec3cfddc0fbb60405160405180910390a45050565b60606013612bf2306014613410565b604051602001612c039291906141d5565b604051602081830303815290604052905090565b606081600003612c5a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612c845780612c6e81613ea4565b9150612c7d9050600a83613e90565b9150612c5e565b60008167ffffffffffffffff811115612c9f57612c9f6139c9565b6040519080825280601f01601f191660200182016040528015612cc9576020820181803683370190505b5090505b8415611f9f57612cde600183613d6f565b9150612ceb600a86614284565b612cf6906030613de3565b7f010000000000000000000000000000000000000000000000000000000000000002818381518110612d2a57612d2a613f0d565b6020010190600160f860020a031916908160001a905350612d4c600a86613e90565b9450612ccd565b612d5c82612953565b601c541580612d6d5750601c548211155b612de25760405160e560020a62461bcd02815260206004820152602b60248201527f424153455f434f4c4c454354494f4e2f455843454544535f4d41585f5045525f60448201527f5452414e53414354494f4e0000000000000000000000000000000000000000006064820152608401610c8b565b600160a060020a0383166000908152601d6020526040812054612e06908490613de3565b9050811580612e155750818111155b611a645760405160e560020a62461bcd02815260206004820152602960248201527f424153455f434f4c4c454354494f4e2f455843454544535f494e44495649445560448201527f414c5f535550504c5900000000000000000000000000000000000000000000006064820152608401610c8b565b34612e958484613e58565b1115612f0c5760405160e560020a62461bcd02815260206004820152602760248201527f424153455f434f4c4c454354494f4e2f494e53554646494349454e545f45544860448201527f5f414d4f554e54000000000000000000000000000000000000000000000000006064820152608401610c8b565b600160a060020a0381166000908152601d602052604081208054859290612f34908490613de3565b90915550610de3905081846129e0565b6000612f99826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525085600160a060020a03166136129092919063ffffffff16565b805190915015610de35780806020019051810190612fb79190614298565b610de35760405160e560020a62461bcd02815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c8b565b600081815b84518110156130d057600085828151811061304e5761304e613f0d565b602002602001015190508083116130905760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506130bd565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806130c881613ea4565b915050613031565b509392505050565b600154600160a060020a03841661315a5760405160e560020a62461bcd02815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610c8b565b613165816001541190565b156131b55760405160e560020a62461bcd02815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610c8b565b7f000000000000000000000000000000000000000000000000000000000000271083111561324e5760405160e560020a62461bcd02815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610c8b565b600160a060020a0384166000908152600560209081526040918290208251808401845290546001608060020a03808216835270010000000000000000000000000000000090910416918101919091528151808301909252805190919081906132b7908790614143565b6001608060020a031681526020018583602001516132d59190614143565b6001608060020a03908116909152600160a060020a03808816600081815260056020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff428116838601908152888352600490955294812091518254945190951660a060020a02600160e060020a031990941694909216939093179190911790915582905b85811015613405576040518290600160a060020a038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46133c66000888488612a55565b6133e55760405160e560020a62461bcd028152600401610c8b90614032565b816133ef81613ea4565b92505080806133fd90613ea4565b915050613379565b50600181905561248a565b6060600061341f836002613e58565b61342a906002613de3565b67ffffffffffffffff811115613442576134426139c9565b6040519080825280601f01601f19166020018201604052801561346c576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106134a3576134a3613f0d565b6020010190600160f860020a031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134ee576134ee613f0d565b6020010190600160f860020a031916908160001a9053506000613512846002613e58565b61351d906001613de3565b90505b60018111156135c0577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061355e5761355e613f0d565b1a7f01000000000000000000000000000000000000000000000000000000000000000282828151811061359357613593613f0d565b6020010190600160f860020a031916908160001a9053506010909404936135b981614165565b9050613520565b50831561171e5760405160e560020a62461bcd02815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c8b565b6060611f9f848460008585843b61366e5760405160e560020a62461bcd02815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c8b565b60008086600160a060020a0316858760405161368a91906142b5565b60006040518083038185875af1925050503d80600081146136c7576040519150601f19603f3d011682016040523d82523d6000602084013e6136cc565b606091505b50915091506136dc8282866136e7565b979650505050505050565b606083156136f657508161171e565b8251156137065782518084602001fd5b8160405160e560020a62461bcd028152600401610c8b91906137ae565b600160e060020a031981168114611d7157600080fd5b60006020828403121561374b57600080fd5b813561171e81613723565b60005b83811015613771578181015183820152602001613759565b83811115611a645750506000910152565b6000815180845261379a816020860160208601613756565b601f01601f19169290920160200192915050565b60208152600061171e6020830184613782565b6000602082840312156137d357600080fd5b5035919050565b600160a060020a0381168114611d7157600080fd5b6000806040838503121561380257600080fd5b823561380d816137da565b946020939093013593505050565b60006020828403121561382d57600080fd5b813561171e816137da565b60008060006060848603121561384d57600080fd5b8335613858816137da565b92506020840135613868816137da565b929592945050506040919091013590565b6000806040838503121561388c57600080fd5b50508035926020909101359150565b600080604083850312156138ae57600080fd5b82356138b9816137da565b915060208301356138c9816137da565b809150509250929050565b600080600080600080600080610100898b0312156138f157600080fd5b505086359860208801359850604088013597606081013597506080810135965060a0810135955060c0810135945060e0013592509050565b60008083601f84011261393b57600080fd5b50813567ffffffffffffffff81111561395357600080fd5b602083019150836020808302850101111561396d57600080fd5b9250929050565b60008060006040848603121561398957600080fd5b8335613994816137da565b9250602084013567ffffffffffffffff8111156139b057600080fd5b6139bc86828701613929565b9497909650939450505050565b60e060020a634e487b7102600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613a0b57613a0b6139c9565b604052919050565b600067ffffffffffffffff821115613a2d57613a2d6139c9565b5060209081020190565b600082601f830112613a4857600080fd5b81356020613a5d613a5883613a13565b6139e2565b82815291810284018101918181019086841115613a7957600080fd5b8286015b84811015613a945780358352918301918301613a7d565b509695505050505050565b60008060408385031215613ab257600080fd5b823567ffffffffffffffff80821115613aca57600080fd5b818501915085601f830112613ade57600080fd5b81356020613aee613a5883613a13565b82815291810284018101918181019089841115613b0a57600080fd5b948201945b83861015613b31578535613b22816137da565b82529482019490820190613b0f565b96505086013592505080821115613b4757600080fd5b50610fea85828601613a37565b600067ffffffffffffffff831115613b6e57613b6e6139c9565b613b81601f8401601f19166020016139e2565b9050828152838383011115613b9557600080fd5b828260208301376000602084830101529392505050565b600060208284031215613bbe57600080fd5b813567ffffffffffffffff811115613bd557600080fd5b8201601f81018413613be657600080fd5b611f9f84823560208401613b54565b8015158114611d7157600080fd5b60008060408385031215613c1657600080fd5b8235613c21816137da565b915060208301356138c981613bf5565b60008060008060808587031215613c4757600080fd5b8435613c52816137da565b93506020850135613c62816137da565b925060408501359150606085013567ffffffffffffffff811115613c8557600080fd5b8501601f81018713613c9657600080fd5b613ca587823560208401613b54565b91505092959194509250565b600080600060408486031215613cc657600080fd5b83359250602084013567ffffffffffffffff8111156139b057600080fd5b600281046001821680613cf857607f821691505b602082108103613d1b5760e060020a634e487b7102600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60e060020a634e487b7102600052601160045260246000fd5b600082821015613d8157613d81613d56565b500390565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201527f7368617265730000000000000000000000000000000000000000000000000000606082015260800190565b60008219821115613df657613df6613d56565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201527f647565207061796d656e74000000000000000000000000000000000000000000606082015260800190565b6000816000190483118215151615613e7257613e72613d56565b500290565b60e060020a634e487b7102600052601260045260246000fd5b600082613e9f57613e9f613e77565b500490565b600060018201613eb657613eb6613d56565b5060010190565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b600060208284031215613f0657600080fd5b5051919050565b60e060020a634e487b7102600052603260045260246000fd5b601f821115610de3576000818152602081206020601f86010481016020861015613f4d5750805b6020601f860104820191505b8181101561248a57828155600101613f59565b815167ffffffffffffffff811115613f8657613f866139c9565b613f9a81613f948454613ce4565b84613f26565b602080601f831160018114613fd35760008415613fb75750858301515b60028086026008870290910a600019041982161786555061248a565b600085815260208120601f198616915b8281101561400257888601518255948401946001909101908401613fe3565b508582101561402257878501516008601f88160260020a60001904191681555b5050505050600202600101905550565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527f6563656976657220696d706c656d656e74657200000000000000000000000000606082015260800190565b60208082526023908201527f424153455f434f4c4c454354494f4e2f43414e4e4f545f4d494e545f5052455360408201527f414c450000000000000000000000000000000000000000000000000000000000606082015260800190565b600083516140fe818460208801613756565b835190830190614112818360208801613756565b01949350505050565b60006001608060020a038381169083168181101561413b5761413b613d56565b039392505050565b60006001608060020a0380831681851680830382111561411257614112613d56565b60008161417457614174613d56565b506000190190565b6000600160a060020a038087168352808616602084015250836040830152608060608301526141ae6080830184613782565b9695505050505050565b6000602082840312156141ca57600080fd5b815161171e81613723565b60008084546141e381613ce4565b600182811680156141fb57600181146142105761423f565b60ff198416875282151583028701945061423f565b8860005260208060002060005b858110156142365781548a82015290840190820161421d565b50505082870194505b5086519250614252838560208a01613756565b7f2f00000000000000000000000000000000000000000000000000000000000000939092019283525001949350505050565b60008261429357614293613e77565b500690565b6000602082840312156142aa57600080fd5b815161171e81613bf5565b600082516142c7818460208701613756565b919091019291505056fea26469706673582212201404ee95c6f0a6187c765a579a89866ad86bc4cd8e10abd6541016c28270d26e64736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000200570d4640949c60f6b1756888a7860fafa0daede37d27c0a7cb6188386a1a7e67000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003800000000000000000000000006304c601d156531bb012df962060d5fbf57ec1fa0000000000000000000000000000000000000000000000000000000000000258000000000000000000000000000000000000000000000000000000000000000b5469702d4e2d53747269700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003544e530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f7777772e7469702d6e2d73747269702e696f2f636f6e7472616374732f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000063371280000000000000000000000000000000000000000000000000000000006335c100000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000020000000000000000000000002b8842982217f2b9411d883f72d056ec4ec37233000000000000000000000000b50b275f7ff764f27a702254e91d78b261dfd9cf000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000009
-----Decoded View---------------
Arg [0] : name (string): Tip-N-Strip
Arg [1] : symbol (string): TNS
Arg [2] : baseTokenURI (string): https://www.tip-n-strip.io/contracts/
Arg [3] : numericValues (uint256[]): 320000000000000000,320000000000000000,10000,20,20,1664553600,1664467200,20
Arg [4] : merkleRoot (bytes32): 0x570d4640949c60f6b1756888a7860fafa0daede37d27c0a7cb6188386a1a7e67
Arg [5] : payees (address[]): 0x2B8842982217F2b9411d883f72D056EC4ec37233,0xB50b275F7ff764f27A702254e91d78B261dfD9cf
Arg [6] : shares (uint256[]): 1,9
Arg [7] : royaltyRecipient (address): 0x6304C601D156531BB012dF962060d5Fbf57ec1fA
Arg [8] : royaltyAmount (uint256): 600
-----Encoded View---------------
31 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [4] : 570d4640949c60f6b1756888a7860fafa0daede37d27c0a7cb6188386a1a7e67
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000320
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000380
Arg [7] : 0000000000000000000000006304c601d156531bb012df962060d5fbf57ec1fa
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [10] : 5469702d4e2d5374726970000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [12] : 544e530000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000025
Arg [14] : 68747470733a2f2f7777772e7469702d6e2d73747269702e696f2f636f6e7472
Arg [15] : 616374732f000000000000000000000000000000000000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [17] : 0000000000000000000000000000000000000000000000000470de4df8200000
Arg [18] : 0000000000000000000000000000000000000000000000000470de4df8200000
Arg [19] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [22] : 0000000000000000000000000000000000000000000000000000000063371280
Arg [23] : 000000000000000000000000000000000000000000000000000000006335c100
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [26] : 0000000000000000000000002b8842982217f2b9411d883f72d056ec4ec37233
Arg [27] : 000000000000000000000000b50b275f7ff764f27a702254e91d78b261dfd9cf
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [29] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000009
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.