Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
517 SHRIMPS
Holders
299
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SHRIMPSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Shrimp
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@/((((((( // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ((((((((((((((((((( @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ((((* (( (((((((( ,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ///////// @@@@@@@@@@@((((.(( (/(((. (((((((((( @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //////////// @@@@@@@@%/ @@ /( @ @ (((((((((((( @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@//////////// @@@@@@@@ // @@ @@ @@ ((*(((((,(((((/ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@/// ./. @@@@@@ (((((((((/ @& // @@@@@@&(((((( ((//(// ((( @@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //////@@@@@@@@ (((((((((((((((((( /./////////((((//// ((((((((.@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ///// @@@@@@@ ((((((((((((((((((((((( /((((((( (//// ((((((((( @@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@ ///* @@@@@@ ///// @@@@@@# ((((((((((((((( (((( /( ((((( ///// (((((((,@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@ ///(((//// @@@@@# ///////// @@ (((((((((((((( ((((((((((((. ((( //// ((((( /(( @@@(((((((( @@@@@@ // @@@@@@@@@@@@@( *@@@*//(((((((/ / @@@@@@@@@@@@@@@@@@@@& (((((((( *((((((((((((((((( ((( // .(( ((((((( @@(((((((( @@@@@@ // @@@@@@@@@ ////(((((( //(((((((/ / @@@@@@@@@@@@@@@@@@@@@@ (((((((( ((((((((((((((( ((((((( ((((( @@@@(.((, ( @@@@@@@@ // @@@@@@@@ ////(((((((((( /((((((/, @@@@@@@@@@@@@@@@@@@@@@@@ (((((( (((((((((((/ /////////// (((((((((( (((((((,@@@@@@@ // @@@@@@@@ // /(((((((((((( /(((//..@@@@@@@@@@@@@@@@@@@@@@@@ %% (((((((((((( #%% //((((((((((/(((((((((, (((((( @@@@@@@@ // @@@@@@@@@*/*//(((((((((((( /((/// @@@@@@@@@@@@@@@@@@@@@@@ %%&&&%%%%%%%%%%%%%%%%% /((((((((((( ((((((((( ((((((( @@@@@@@@ // @@@@@@@@@@./,//(((((((((((( (/// @@@@@@@@@@@@@@@@@@@@@@@@,%,%&&&&&&&&&&&&&&&&%% //((((((. (((((( (((((((((((( @@@@@@@@@@ // @@@@@@@@@@@ // //(((((((((( // %@@@@@@@@@@@@@@@@@@@@@@@@/ %%%&&&&&&&&&&&&&&&% /((. ((((((((((( (/ @@@@@@@@@@@@@ // @@@@@@@@@@@@@/ /////(((((( %%% @@@@@@@@@@@@@@@@@@@@@@@ %%&&& %%%&&&&&&&&&&&&& /(((((((((((( ((( @@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@ */// ( &&&&&% @@@@@@@@@@@@@ %%*.%%&&&&&&&&&&&&&&&&&&& /((((((((( ((((. (.@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@ (( &&&&&&&.%% ,% @ %%&&&&.%&&&&&&&&&&&&&&&&&& (//// (((((((((((,((@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@ (((( &&&&&&%%%&&&&& %(&&&&&( &&&&&&&&&&&&&&& /(((((((////((((((((((@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@ ((((( &&&&&&&&&&&& &&&&&&&&&&&&&&&&&&&&& (((((((((((((// ((((((( @@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@ ( /(((( &&&&&&&&&&&&&&&&&&&&&&&&&% ((((((((((((((((((//*(((( @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ /(((// (((( ,&&&&&&&&&&& (((// ((((((((((((((((/// ( @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ / (((((((((((((//((((((((((((///(((((((( (((((///#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ (((((((((((// (((((((((((((// ((((((((((/// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@. ///// ((((( /((((((((////(((((((/ ,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# ((((((//////. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // // Satoshi's Shrimp Shanty // // 7694 shrimp ready to jump from the shanty to the blockchain // https://www.shrimp.fun/ // // Twitter: https://twitter.com/satoshisshrimp // // 0.5 ETH lottery for holders every 500 mints // Special traits can be minted that will unlock airdrops // Minting a 1/1 will win you 0.2 ETH // Surprise IRL use giveaways during mint and after mintout // 4 Special 1/1s that unlock a blue chip airdrop // // // Come join the shanty today! // // // You never know what you’re gonna get…. // // // // SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "erc721a/extensions/ERC721ABurnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract Shrimp is ERC721ABurnable, Ownable, ReentrancyGuard { enum ReleaseMode{ CLOSED, DEV, PRE_SALE, OPEN, ENDED } ReleaseMode public currentMode; mapping(address => uint256) private _mintedPerAddress; mapping(address => uint256) private _freeFishRedeemed; bytes32 private _freeFishMerkleRoot; uint256 private MAX_PER_ADDRESS = 100; uint256 private MAXFREECLAIM = 10; uint32 public freeClaimed = 0; uint256 public maxSupply; uint256 public price = 19940000000000000; string private baseTokenURI; bool public baseTokenURILocked; address private _aeAddress; address private _lmdAddress = 0x08b6D64eBB1F252471be381941748EcFa084AF56; // Simple Eth check, assuming no freebies. modifier requireCorrectEth(uint256 fishCount) { require(msg.value == price * fishCount, "Sent incorrect Ether"); _; } /// @param fishCount The amount of shrimpies intended to be fished. /// @dev All of our validations that we check before a mint. modifier validateFishing(uint256 fishCount) { require( _mintedPerAddress[msg.sender] + fishCount <= MAX_PER_ADDRESS, "Exceeds wallet limit" ); require(totalSupply() + fishCount <= maxSupply, "Would exceed max supply"); _; } modifier validatePreSaleAction() { require(currentMode == ReleaseMode.PRE_SALE || currentMode == ReleaseMode.OPEN, "Not presale time yet"); _; } /// @dev Dev time? modifier validateDevsAction() { require(currentMode == ReleaseMode.DEV, "Not dev time yet"); _; } /// @param baseTokenURI_ The starting baseTokenURI /// @param maxSupply_ How many items are mintable? /// @dev The constructor! constructor( uint256 maxSupply_, string memory baseTokenURI_ ) ERC721A("SatoshiShrimps", "SHRIMPS") { maxSupply = maxSupply_; baseTokenURI = baseTokenURI_; } /// @notice Returns whether or not you, the person calling this method, have fished a fish. function freeFishClaimed(address a) external view returns (bool){ return _freeFishRedeemed[a] == 1; } function setPrice(uint256 newPrice) public onlyOwner { price = newPrice; } function generalFishing(uint fishCount) validateFishing(fishCount) requireCorrectEth(fishCount) nonReentrant external payable { require(currentMode == ReleaseMode.OPEN, "It's not go time yet."); mint(msg.sender, fishCount, true); } /// @param _merkleProof The proof generated by the front end function whitelistFreeFishing(bytes32[] memory _merkleProof, uint fishCount) validateFishing(fishCount) nonReentrant external payable { require(currentMode == ReleaseMode.OPEN, "It's not go time yet."); require(freeClaimed < MAXFREECLAIM, "too many shrimpies claimed"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); // The amount we're charging (e.g, the amount we're validating) will depend on // if we detected a free mint match. If so we check for a lesser amount of eth. uint fishingFeesToCharge = fishCount; if(MerkleProof.verify(_merkleProof, _freeFishMerkleRoot, leaf)){ if(_freeFishRedeemed[msg.sender] != 1){ // if the fish is NOT already redeemed, mark it as used and let us use the free one. fishingFeesToCharge = fishingFeesToCharge - 3; _freeFishRedeemed[msg.sender] = 1; freeClaimed = freeClaimed + 3; } } require(msg.value == price * fishingFeesToCharge, "Sent incorrect Ether"); mint(msg.sender, fishCount, true); } function generalFreeFishing(uint fishCount) validateFishing(fishCount) requireCorrectEth(fishCount) nonReentrant external payable{ require(currentMode == ReleaseMode.OPEN, "It's not go time yet."); if(freeClaimed < MAXFREECLAIM){ if(_freeFishRedeemed[msg.sender] != 1){ // The amount we're charging (e.g, the amount we're validating) will depend on // if we detected a free mint match. If so we check for a lesser amount of eth. uint fishingFeesToCharge = fishCount; fishingFeesToCharge = fishingFeesToCharge; _freeFishRedeemed[msg.sender] = 1; freeClaimed = freeClaimed + 1; fishCount = fishCount + 1; require(msg.value == price * fishingFeesToCharge, "Sent incorrect Ether"); mint(msg.sender, fishCount, true); } else{ require(msg.value == price * fishCount, "Sent incorrect Ether"); mint(msg.sender, fishCount, true); } } else{ require(msg.value == price * fishCount, "Sent incorrect Ether"); mint(msg.sender, fishCount, true); } } function setFreeFishMerkleRoot(bytes32 merkRoot) external onlyOwner { _freeFishMerkleRoot = merkRoot; } function setMaxFish(uint256 newNumber) external onlyOwner { MAXFREECLAIM = newNumber; } /// @dev After we cut over to the permaweb base URI, lock it up so we can't change it back. This is a one-time operation! Don't mess it up! function lockBaseTokenURI() external onlyOwner { baseTokenURILocked = true; } /// @param baseTokenURI_ The new baseTokenURI /// @dev Need this so we can set the new base URI for the cut over to permaweb. function setBaseURI(string memory baseTokenURI_) external onlyOwner { require(!baseTokenURILocked, "setBaseURI is locked"); baseTokenURI = baseTokenURI_; } // Copy + pasted in the ERC721A in order to override. function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = baseTokenURI; return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, Strings.toString(tokenId), '.json')) : ""; } /// @dev Sets the various wallets for withdrawl. function setWalletAddresses(address a) external onlyOwner { _aeAddress = a; } function getWalletAddresses() view external onlyOwner returns(address aeAddress, address lmdAddress){ return (_aeAddress, _lmdAddress); } /// @dev Set our current mode to DEV. function startDevTeam() external onlyOwner { setSaleStatus(ReleaseMode.DEV); } /// @dev Set our current mode to OPEN, for the general sale. function startGeneralSale() external onlyOwner { setSaleStatus(ReleaseMode.OPEN); } /// @dev End the sale (ENDED) function endSale() external onlyOwner { setSaleStatus(ReleaseMode.ENDED); } /// @dev Sets the current state to the given status. function setSaleStatus(ReleaseMode newStatus) private onlyOwner { currentMode = newStatus; } /// @dev Get paid function withdraw() external nonReentrant onlyOwner { // Some percentage magic: uint256 balance = address(this).balance; uint256 tenPercent = balance / 100 * 10; payable(_aeAddress).transfer(tenPercent); uint256 remaining = address(this).balance; payable(_lmdAddress).transfer(remaining); } /// @param to Who are we minting for? /// @param countTowardsWalletLimit Allows us to indicate if this should count towards the "X NFTs per Wallet" limit, or if we bypass that. /// @dev Our internal mint method, that handles some universal book-keeping. function mint(address to, uint256 count, bool countTowardsWalletLimit) private { if(countTowardsWalletLimit){ _mintedPerAddress[to] += count; } _safeMint(to, count); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '../ERC721A.sol'; import '@openzeppelin/contracts/utils/Context.sol'; /** * @title ERC721A Burnable Token * @dev ERC721A Token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is Context, ERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ 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 = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/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'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error AuxQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { if (owner == address(0)) revert AuxQueryForZeroAddress(); return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { if (owner == address(0)) revert AuxQueryForZeroAddress(); _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } 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 || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 TransferToNonERC721ReceiverImplementer(); } 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. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (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/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/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, 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 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"string","name":"baseTokenURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURILocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentMode","outputs":[{"internalType":"enum Shrimp.ReleaseMode","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeClaimed","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"freeFishClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fishCount","type":"uint256"}],"name":"generalFishing","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fishCount","type":"uint256"}],"name":"generalFreeFishing","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":[],"name":"getWalletAddresses","outputs":[{"internalType":"address","name":"aeAddress","type":"address"},{"internalType":"address","name":"lmdAddress","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":"lockBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkRoot","type":"bytes32"}],"name":"setFreeFishMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNumber","type":"uint256"}],"name":"setMaxFish","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"setWalletAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startDevTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startGeneralSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"fishCount","type":"uint256"}],"name":"whitelistFreeFishing","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526064600e55600a600f556000601060006101000a81548163ffffffff021916908363ffffffff1602179055506646d75308d240006012557308b6d64ebb1f252471be381941748ecfa084af56601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200009d57600080fd5b506040516200544b3803806200544b8339818101604052810190620000c3919062000509565b6040518060400160405280600e81526020017f5361746f736869536872696d70730000000000000000000000000000000000008152506040518060400160405280600781526020017f534852494d50530000000000000000000000000000000000000000000000000081525081600290805190602001906200014792919062000281565b5080600390805190602001906200016092919062000281565b5050506200018362000177620001b360201b60201c565b620001bb60201b60201c565b6001600981905550816011819055508060139080519060200190620001aa92919062000281565b505050620005d4565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200028f906200059e565b90600052602060002090601f016020900481019282620002b35760008555620002ff565b82601f10620002ce57805160ff1916838001178555620002ff565b82800160010185558215620002ff579182015b82811115620002fe578251825591602001919060010190620002e1565b5b5090506200030e919062000312565b5090565b5b808211156200032d57600081600090555060010162000313565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6200035a8162000345565b81146200036657600080fd5b50565b6000815190506200037a816200034f565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003d5826200038a565b810181811067ffffffffffffffff82111715620003f757620003f66200039b565b5b80604052505050565b60006200040c62000331565b90506200041a8282620003ca565b919050565b600067ffffffffffffffff8211156200043d576200043c6200039b565b5b62000448826200038a565b9050602081019050919050565b60005b838110156200047557808201518184015260208101905062000458565b8381111562000485576000848401525b50505050565b6000620004a26200049c846200041f565b62000400565b905082815260208101848484011115620004c157620004c062000385565b5b620004ce84828562000455565b509392505050565b600082601f830112620004ee57620004ed62000380565b5b8151620005008482602086016200048b565b91505092915050565b600080604083850312156200052357620005226200033b565b5b6000620005338582860162000369565b925050602083015167ffffffffffffffff81111562000557576200055662000340565b5b6200056585828601620004d6565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005b757607f821691505b60208210811415620005ce57620005cd6200056f565b5b50919050565b614e6780620005e46000396000f3fe6080604052600436106102255760003560e01c8063715018a611610123578063ad224420116100ab578063d5abeb011161006f578063d5abeb011461078a578063dcff26e1146107b5578063e985e9c5146107cc578063ea1b5b0e14610809578063f2fde38b1461082557610225565b8063ad224420146106b4578063af117dde146106d0578063b614899c146106e7578063b88d4fde14610724578063c87b56dd1461074d57610225565b80638da5cb5b116100f25780638da5cb5b146105e157806391b7f5ed1461060c57806395d89b4114610635578063a035b1fe14610660578063a22cb4651461068b57610225565b8063715018a6146105485780638125092f1461055f57806383b65c581461058a5780638ada528e146105b557610225565b80633820e3b5116101b157806349dc29b71161017557806349dc29b71461045357806355f804b31461047c57806362466c64146104a55780636352211e146104ce57806370a082311461050b57610225565b80633820e3b5146103b75780633ccfd60b146103d357806342842e0e146103ea57806342966c6814610413578063435c35b61461043c57610225565b806318160ddd116101f857806318160ddd146102f85780631b47ec3a1461032357806323b872dd1461034e578063324ff37114610377578063380d831b146103a057610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190613c3c565b61084e565b60405161025e9190613c84565b60405180910390f35b34801561027357600080fd5b5061027c610930565b6040516102899190613d38565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b49190613d90565b6109c2565b6040516102c69190613dfe565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f19190613e45565b610a3e565b005b34801561030457600080fd5b5061030d610b49565b60405161031a9190613e94565b60405180910390f35b34801561032f57600080fd5b50610338610b57565b6040516103459190613ece565b60405180910390f35b34801561035a57600080fd5b5061037560048036038101906103709190613ee9565b610b6d565b005b34801561038357600080fd5b5061039e60048036038101906103999190613f72565b610b7d565b005b3480156103ac57600080fd5b506103b5610c03565b005b6103d160048036038101906103cc9190613d90565b610c8b565b005b3480156103df57600080fd5b506103e86110b2565b005b3480156103f657600080fd5b50610411600480360381019061040c9190613ee9565b611282565b005b34801561041f57600080fd5b5061043a60048036038101906104359190613d90565b6112a2565b005b34801561044857600080fd5b50610451611393565b005b34801561045f57600080fd5b5061047a60048036038101906104759190613d90565b61141b565b005b34801561048857600080fd5b506104a3600480360381019061049e91906140d4565b6114a1565b005b3480156104b157600080fd5b506104cc60048036038101906104c7919061411d565b611587565b005b3480156104da57600080fd5b506104f560048036038101906104f09190613d90565b611647565b6040516105029190613dfe565b60405180910390f35b34801561051757600080fd5b50610532600480360381019061052d919061411d565b61165d565b60405161053f9190613e94565b60405180910390f35b34801561055457600080fd5b5061055d61172d565b005b34801561056b57600080fd5b506105746117b5565b60405161058191906141c1565b60405180910390f35b34801561059657600080fd5b5061059f6117c8565b6040516105ac9190613c84565b60405180910390f35b3480156105c157600080fd5b506105ca6117db565b6040516105d89291906141dc565b60405180910390f35b3480156105ed57600080fd5b506105f66118a8565b6040516106039190613dfe565b60405180910390f35b34801561061857600080fd5b50610633600480360381019061062e9190613d90565b6118d2565b005b34801561064157600080fd5b5061064a611958565b6040516106579190613d38565b60405180910390f35b34801561066c57600080fd5b506106756119ea565b6040516106829190613e94565b60405180910390f35b34801561069757600080fd5b506106b260048036038101906106ad9190614231565b6119f0565b005b6106ce60048036038101906106c99190614339565b611b68565b005b3480156106dc57600080fd5b506106e5611ef7565b005b3480156106f357600080fd5b5061070e6004803603810190610709919061411d565b611f7f565b60405161071b9190613c84565b60405180910390f35b34801561073057600080fd5b5061074b60048036038101906107469190614436565b611fcb565b005b34801561075957600080fd5b50610774600480360381019061076f9190613d90565b61201e565b6040516107819190613d38565b60405180910390f35b34801561079657600080fd5b5061079f612148565b6040516107ac9190613e94565b60405180910390f35b3480156107c157600080fd5b506107ca61214e565b005b3480156107d857600080fd5b506107f360048036038101906107ee91906144b9565b6121e7565b6040516108009190613c84565b60405180910390f35b610823600480360381019061081e9190613d90565b61227b565b005b34801561083157600080fd5b5061084c6004803603810190610847919061411d565b61248f565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061091957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610929575061092882612587565b5b9050919050565b60606002805461093f90614528565b80601f016020809104026020016040519081016040528092919081815260200182805461096b90614528565b80156109b85780601f1061098d576101008083540402835291602001916109b8565b820191906000526020600020905b81548152906001019060200180831161099b57829003601f168201915b5050505050905090565b60006109cd826125f1565b610a03576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a4982611647565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ab1576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ad061262b565b73ffffffffffffffffffffffffffffffffffffffff1614158015610b025750610b0081610afb61262b565b6121e7565b155b15610b39576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b44838383612633565b505050565b600060015460005403905090565b601060009054906101000a900463ffffffff1681565b610b788383836126e5565b505050565b610b8561262b565b73ffffffffffffffffffffffffffffffffffffffff16610ba36118a8565b73ffffffffffffffffffffffffffffffffffffffff1614610bf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf0906145a6565b60405180910390fd5b80600d8190555050565b610c0b61262b565b73ffffffffffffffffffffffffffffffffffffffff16610c296118a8565b73ffffffffffffffffffffffffffffffffffffffff1614610c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c76906145a6565b60405180910390fd5b610c896004612bd6565b565b80600e5481600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610cda91906145f5565b1115610d1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1290614697565b60405180910390fd5b60115481610d27610b49565b610d3191906145f5565b1115610d72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6990614703565b60405180910390fd5b8180601254610d819190614723565b3414610dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db9906147c9565b60405180910390fd5b60026009541415610e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dff90614835565b60405180910390fd5b600260098190555060036004811115610e2457610e2361414a565b5b600a60009054906101000a900460ff166004811115610e4657610e4561414a565b5b14610e86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7d906148a1565b60405180910390fd5b600f54601060009054906101000a900463ffffffff1663ffffffff161015611049576001600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610fe85760008390506001600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001601060009054906101000a900463ffffffff16610f5891906148c1565b601060006101000a81548163ffffffff021916908363ffffffff160217905550600184610f8591906145f5565b935080601254610f959190614723565b3414610fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcd906147c9565b60405180910390fd5b610fe233856001612c7f565b50611044565b82601254610ff69190614723565b3414611037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102e906147c9565b60405180910390fd5b61104333846001612c7f565b5b6110a5565b826012546110579190614723565b3414611098576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108f906147c9565b60405180910390fd5b6110a433846001612c7f565b5b6001600981905550505050565b600260095414156110f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ef90614835565b60405180910390fd5b600260098190555061110861262b565b73ffffffffffffffffffffffffffffffffffffffff166111266118a8565b73ffffffffffffffffffffffffffffffffffffffff161461117c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611173906145a6565b60405180910390fd5b60004790506000600a606483611192919061492a565b61119c9190614723565b9050601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611206573d6000803e3d6000fd5b506000479050601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611274573d6000803e3d6000fd5b505050506001600981905550565b61129d83838360405180602001604052806000815250611fcb565b505050565b60006112ad82612ceb565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166112d461262b565b73ffffffffffffffffffffffffffffffffffffffff1614806113075750611306826000015161130161262b565b6121e7565b5b8061134c575061131561262b565b73ffffffffffffffffffffffffffffffffffffffff16611334846109c2565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611385576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61138e83612f67565b505050565b61139b61262b565b73ffffffffffffffffffffffffffffffffffffffff166113b96118a8565b73ffffffffffffffffffffffffffffffffffffffff161461140f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611406906145a6565b60405180910390fd5b6114196003612bd6565b565b61142361262b565b73ffffffffffffffffffffffffffffffffffffffff166114416118a8565b73ffffffffffffffffffffffffffffffffffffffff1614611497576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148e906145a6565b60405180910390fd5b80600f8190555050565b6114a961262b565b73ffffffffffffffffffffffffffffffffffffffff166114c76118a8565b73ffffffffffffffffffffffffffffffffffffffff161461151d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611514906145a6565b60405180910390fd5b601460009054906101000a900460ff161561156d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611564906149a7565b60405180910390fd5b8060139080519060200190611583929190613aea565b5050565b61158f61262b565b73ffffffffffffffffffffffffffffffffffffffff166115ad6118a8565b73ffffffffffffffffffffffffffffffffffffffff1614611603576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115fa906145a6565b60405180910390fd5b80601460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600061165282612ceb565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116c5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61173561262b565b73ffffffffffffffffffffffffffffffffffffffff166117536118a8565b73ffffffffffffffffffffffffffffffffffffffff16146117a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a0906145a6565b60405180910390fd5b6117b3600061330b565b565b600a60009054906101000a900460ff1681565b601460009054906101000a900460ff1681565b6000806117e661262b565b73ffffffffffffffffffffffffffffffffffffffff166118046118a8565b73ffffffffffffffffffffffffffffffffffffffff161461185a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611851906145a6565b60405180910390fd5b601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915091509091565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118da61262b565b73ffffffffffffffffffffffffffffffffffffffff166118f86118a8565b73ffffffffffffffffffffffffffffffffffffffff161461194e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611945906145a6565b60405180910390fd5b8060128190555050565b60606003805461196790614528565b80601f016020809104026020016040519081016040528092919081815260200182805461199390614528565b80156119e05780601f106119b5576101008083540402835291602001916119e0565b820191906000526020600020905b8154815290600101906020018083116119c357829003601f168201915b5050505050905090565b60125481565b6119f861262b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a5d576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611a6a61262b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b1761262b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b5c9190613c84565b60405180910390a35050565b80600e5481600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bb791906145f5565b1115611bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bef90614697565b60405180910390fd5b60115481611c04610b49565b611c0e91906145f5565b1115611c4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4690614703565b60405180910390fd5b60026009541415611c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8c90614835565b60405180910390fd5b600260098190555060036004811115611cb157611cb061414a565b5b600a60009054906101000a900460ff166004811115611cd357611cd261414a565b5b14611d13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0a906148a1565b60405180910390fd5b600f54601060009054906101000a900463ffffffff1663ffffffff1610611d6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6690614a13565b60405180910390fd5b600033604051602001611d829190614a7b565b6040516020818303038152906040528051906020012090506000839050611dac85600d54846133d1565b15611e8d576001600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611e8c57600381611e059190614a96565b90506001600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506003601060009054906101000a900463ffffffff16611e6b91906148c1565b601060006101000a81548163ffffffff021916908363ffffffff1602179055505b5b80601254611e9b9190614723565b3414611edc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed3906147c9565b60405180910390fd5b611ee833856001612c7f565b50506001600981905550505050565b611eff61262b565b73ffffffffffffffffffffffffffffffffffffffff16611f1d6118a8565b73ffffffffffffffffffffffffffffffffffffffff1614611f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6a906145a6565b60405180910390fd5b611f7d6001612bd6565b565b60006001600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054149050919050565b611fd68484846126e5565b611fe2848484846133e8565b612018576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6060612029826125f1565b612068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205f90614b3c565b60405180910390fd5b60006013805461207790614528565b80601f01602080910402602001604051908101604052809291908181526020018280546120a390614528565b80156120f05780601f106120c5576101008083540402835291602001916120f0565b820191906000526020600020905b8154815290600101906020018083116120d357829003601f168201915b5050505050905060008151116121155760405180602001604052806000815250612140565b8061211f84613567565b604051602001612130929190614be4565b6040516020818303038152906040525b915050919050565b60115481565b61215661262b565b73ffffffffffffffffffffffffffffffffffffffff166121746118a8565b73ffffffffffffffffffffffffffffffffffffffff16146121ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c1906145a6565b60405180910390fd5b6001601460006101000a81548160ff021916908315150217905550565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b80600e5481600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122ca91906145f5565b111561230b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230290614697565b60405180910390fd5b60115481612317610b49565b61232191906145f5565b1115612362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235990614703565b60405180910390fd5b81806012546123719190614723565b34146123b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a9906147c9565b60405180910390fd5b600260095414156123f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ef90614835565b60405180910390fd5b6002600981905550600360048111156124145761241361414a565b5b600a60009054906101000a900460ff1660048111156124365761243561414a565b5b14612476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246d906148a1565b60405180910390fd5b61248233846001612c7f565b6001600981905550505050565b61249761262b565b73ffffffffffffffffffffffffffffffffffffffff166124b56118a8565b73ffffffffffffffffffffffffffffffffffffffff161461250b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612502906145a6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561257b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257290614c85565b60405180910390fd5b6125848161330b565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482108015612624575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006126f082612ceb565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661271761262b565b73ffffffffffffffffffffffffffffffffffffffff16148061274a5750612749826000015161274461262b565b6121e7565b5b8061278f575061275861262b565b73ffffffffffffffffffffffffffffffffffffffff16612777846109c2565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806127c8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612831576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612898576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128a585858560016136c8565b6128b56000848460000151612633565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612b6657600054811015612b655782600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612bcf85858560016136ce565b5050505050565b612bde61262b565b73ffffffffffffffffffffffffffffffffffffffff16612bfc6118a8565b73ffffffffffffffffffffffffffffffffffffffff1614612c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c49906145a6565b60405180910390fd5b80600a60006101000a81548160ff02191690836004811115612c7757612c7661414a565b5b021790555050565b8015612cdc5781600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612cd491906145f5565b925050819055505b612ce683836136d4565b505050565b612cf3613b70565b6000829050600054811015612f30576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612f2e57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612e12578092505050612f62565b5b600115612f2d57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612f28578092505050612f62565b612e13565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000612f7282612ceb565b9050612f86816000015160008460016136c8565b612f966000838360000151612633565b600160056000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160056000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080600001516004600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600084815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160046000848152602001908152602001600020600001601c6101000a81548160ff0219169083151502179055506000600183019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415613282576000548110156132815781600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b5081600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46132f5816000015160008460016136ce565b6001600081548092919060010191905055505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000826133de85846136f2565b1490509392505050565b60006134098473ffffffffffffffffffffffffffffffffffffffff16613767565b1561355a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261343261262b565b8786866040518563ffffffff1660e01b81526004016134549493929190614cfa565b6020604051808303816000875af192505050801561349057506040513d601f19601f8201168201806040525081019061348d9190614d5b565b60015b61350a573d80600081146134c0576040519150601f19603f3d011682016040523d82523d6000602084013e6134c5565b606091505b50600081511415613502576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061355f565b600190505b949350505050565b606060008214156135af576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506136c3565b600082905060005b600082146135e15780806135ca90614d88565b915050600a826135da919061492a565b91506135b7565b60008167ffffffffffffffff8111156135fd576135fc613fa9565b5b6040519080825280601f01601f19166020018201604052801561362f5781602001600182028036833780820191505090505b5090505b600085146136bc576001826136489190614a96565b9150600a856136579190614dd1565b603061366391906145f5565b60f81b81838151811061367957613678614e02565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856136b5919061492a565b9450613633565b8093505050505b919050565b50505050565b50505050565b6136ee82826040518060200160405280600081525061378a565b5050565b60008082905060005b845181101561375c57600085828151811061371957613718614e02565b5b6020026020010151905080831161373b57613734838261379c565b9250613748565b613745818461379c565b92505b50808061375490614d88565b9150506136fb565b508091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b61379783838360016137b3565b505050565b600082600052816020526040600020905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613820576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561385b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61386860008683876136c8565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b85811015613acd57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4838015613a815750613a7f60008884886133e8565b155b15613ab8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050613a06565b508060008190555050613ae360008683876136ce565b5050505050565b828054613af690614528565b90600052602060002090601f016020900481019282613b185760008555613b5f565b82601f10613b3157805160ff1916838001178555613b5f565b82800160010185558215613b5f579182015b82811115613b5e578251825591602001919060010190613b43565b5b509050613b6c9190613bb3565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613bcc576000816000905550600101613bb4565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c1981613be4565b8114613c2457600080fd5b50565b600081359050613c3681613c10565b92915050565b600060208284031215613c5257613c51613bda565b5b6000613c6084828501613c27565b91505092915050565b60008115159050919050565b613c7e81613c69565b82525050565b6000602082019050613c996000830184613c75565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613cd9578082015181840152602081019050613cbe565b83811115613ce8576000848401525b50505050565b6000601f19601f8301169050919050565b6000613d0a82613c9f565b613d148185613caa565b9350613d24818560208601613cbb565b613d2d81613cee565b840191505092915050565b60006020820190508181036000830152613d528184613cff565b905092915050565b6000819050919050565b613d6d81613d5a565b8114613d7857600080fd5b50565b600081359050613d8a81613d64565b92915050565b600060208284031215613da657613da5613bda565b5b6000613db484828501613d7b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613de882613dbd565b9050919050565b613df881613ddd565b82525050565b6000602082019050613e136000830184613def565b92915050565b613e2281613ddd565b8114613e2d57600080fd5b50565b600081359050613e3f81613e19565b92915050565b60008060408385031215613e5c57613e5b613bda565b5b6000613e6a85828601613e30565b9250506020613e7b85828601613d7b565b9150509250929050565b613e8e81613d5a565b82525050565b6000602082019050613ea96000830184613e85565b92915050565b600063ffffffff82169050919050565b613ec881613eaf565b82525050565b6000602082019050613ee36000830184613ebf565b92915050565b600080600060608486031215613f0257613f01613bda565b5b6000613f1086828701613e30565b9350506020613f2186828701613e30565b9250506040613f3286828701613d7b565b9150509250925092565b6000819050919050565b613f4f81613f3c565b8114613f5a57600080fd5b50565b600081359050613f6c81613f46565b92915050565b600060208284031215613f8857613f87613bda565b5b6000613f9684828501613f5d565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613fe182613cee565b810181811067ffffffffffffffff8211171561400057613fff613fa9565b5b80604052505050565b6000614013613bd0565b905061401f8282613fd8565b919050565b600067ffffffffffffffff82111561403f5761403e613fa9565b5b61404882613cee565b9050602081019050919050565b82818337600083830152505050565b600061407761407284614024565b614009565b90508281526020810184848401111561409357614092613fa4565b5b61409e848285614055565b509392505050565b600082601f8301126140bb576140ba613f9f565b5b81356140cb848260208601614064565b91505092915050565b6000602082840312156140ea576140e9613bda565b5b600082013567ffffffffffffffff81111561410857614107613bdf565b5b614114848285016140a6565b91505092915050565b60006020828403121561413357614132613bda565b5b600061414184828501613e30565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6005811061418a5761418961414a565b5b50565b600081905061419b82614179565b919050565b60006141ab8261418d565b9050919050565b6141bb816141a0565b82525050565b60006020820190506141d660008301846141b2565b92915050565b60006040820190506141f16000830185613def565b6141fe6020830184613def565b9392505050565b61420e81613c69565b811461421957600080fd5b50565b60008135905061422b81614205565b92915050565b6000806040838503121561424857614247613bda565b5b600061425685828601613e30565b92505060206142678582860161421c565b9150509250929050565b600067ffffffffffffffff82111561428c5761428b613fa9565b5b602082029050602081019050919050565b600080fd5b60006142b56142b084614271565b614009565b905080838252602082019050602084028301858111156142d8576142d761429d565b5b835b8181101561430157806142ed8882613f5d565b8452602084019350506020810190506142da565b5050509392505050565b600082601f8301126143205761431f613f9f565b5b81356143308482602086016142a2565b91505092915050565b600080604083850312156143505761434f613bda565b5b600083013567ffffffffffffffff81111561436e5761436d613bdf565b5b61437a8582860161430b565b925050602061438b85828601613d7b565b9150509250929050565b600067ffffffffffffffff8211156143b0576143af613fa9565b5b6143b982613cee565b9050602081019050919050565b60006143d96143d484614395565b614009565b9050828152602081018484840111156143f5576143f4613fa4565b5b614400848285614055565b509392505050565b600082601f83011261441d5761441c613f9f565b5b813561442d8482602086016143c6565b91505092915050565b600080600080608085870312156144505761444f613bda565b5b600061445e87828801613e30565b945050602061446f87828801613e30565b935050604061448087828801613d7b565b925050606085013567ffffffffffffffff8111156144a1576144a0613bdf565b5b6144ad87828801614408565b91505092959194509250565b600080604083850312156144d0576144cf613bda565b5b60006144de85828601613e30565b92505060206144ef85828601613e30565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061454057607f821691505b60208210811415614554576145536144f9565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614590602083613caa565b915061459b8261455a565b602082019050919050565b600060208201905081810360008301526145bf81614583565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061460082613d5a565b915061460b83613d5a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156146405761463f6145c6565b5b828201905092915050565b7f457863656564732077616c6c6574206c696d6974000000000000000000000000600082015250565b6000614681601483613caa565b915061468c8261464b565b602082019050919050565b600060208201905081810360008301526146b081614674565b9050919050565b7f576f756c6420657863656564206d617820737570706c79000000000000000000600082015250565b60006146ed601783613caa565b91506146f8826146b7565b602082019050919050565b6000602082019050818103600083015261471c816146e0565b9050919050565b600061472e82613d5a565b915061473983613d5a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614772576147716145c6565b5b828202905092915050565b7f53656e7420696e636f7272656374204574686572000000000000000000000000600082015250565b60006147b3601483613caa565b91506147be8261477d565b602082019050919050565b600060208201905081810360008301526147e2816147a6565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061481f601f83613caa565b915061482a826147e9565b602082019050919050565b6000602082019050818103600083015261484e81614812565b9050919050565b7f49742773206e6f7420676f2074696d65207965742e0000000000000000000000600082015250565b600061488b601583613caa565b915061489682614855565b602082019050919050565b600060208201905081810360008301526148ba8161487e565b9050919050565b60006148cc82613eaf565b91506148d783613eaf565b92508263ffffffff038211156148f0576148ef6145c6565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061493582613d5a565b915061494083613d5a565b9250826149505761494f6148fb565b5b828204905092915050565b7f73657442617365555249206973206c6f636b6564000000000000000000000000600082015250565b6000614991601483613caa565b915061499c8261495b565b602082019050919050565b600060208201905081810360008301526149c081614984565b9050919050565b7f746f6f206d616e7920736872696d7069657320636c61696d6564000000000000600082015250565b60006149fd601a83613caa565b9150614a08826149c7565b602082019050919050565b60006020820190508181036000830152614a2c816149f0565b9050919050565b60008160601b9050919050565b6000614a4b82614a33565b9050919050565b6000614a5d82614a40565b9050919050565b614a75614a7082613ddd565b614a52565b82525050565b6000614a878284614a64565b60148201915081905092915050565b6000614aa182613d5a565b9150614aac83613d5a565b925082821015614abf57614abe6145c6565b5b828203905092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614b26602f83613caa565b9150614b3182614aca565b604082019050919050565b60006020820190508181036000830152614b5581614b19565b9050919050565b600081905092915050565b6000614b7282613c9f565b614b7c8185614b5c565b9350614b8c818560208601613cbb565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614bce600583614b5c565b9150614bd982614b98565b600582019050919050565b6000614bf08285614b67565b9150614bfc8284614b67565b9150614c0782614bc1565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c6f602683613caa565b9150614c7a82614c13565b604082019050919050565b60006020820190508181036000830152614c9e81614c62565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614ccc82614ca5565b614cd68185614cb0565b9350614ce6818560208601613cbb565b614cef81613cee565b840191505092915050565b6000608082019050614d0f6000830187613def565b614d1c6020830186613def565b614d296040830185613e85565b8181036060830152614d3b8184614cc1565b905095945050505050565b600081519050614d5581613c10565b92915050565b600060208284031215614d7157614d70613bda565b5b6000614d7f84828501614d46565b91505092915050565b6000614d9382613d5a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614dc657614dc56145c6565b5b600182019050919050565b6000614ddc82613d5a565b9150614de783613d5a565b925082614df757614df66148fb565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea264697066735822122033eb1d8d92380e47803a2b975f1f30d6c97ba5d821ac1222fd91d6faf45fec7b64736f6c634300080a00330000000000000000000000000000000000000000000000000000000000001e0e0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000f736872696d702e66756e2f6a736f6e0000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102255760003560e01c8063715018a611610123578063ad224420116100ab578063d5abeb011161006f578063d5abeb011461078a578063dcff26e1146107b5578063e985e9c5146107cc578063ea1b5b0e14610809578063f2fde38b1461082557610225565b8063ad224420146106b4578063af117dde146106d0578063b614899c146106e7578063b88d4fde14610724578063c87b56dd1461074d57610225565b80638da5cb5b116100f25780638da5cb5b146105e157806391b7f5ed1461060c57806395d89b4114610635578063a035b1fe14610660578063a22cb4651461068b57610225565b8063715018a6146105485780638125092f1461055f57806383b65c581461058a5780638ada528e146105b557610225565b80633820e3b5116101b157806349dc29b71161017557806349dc29b71461045357806355f804b31461047c57806362466c64146104a55780636352211e146104ce57806370a082311461050b57610225565b80633820e3b5146103b75780633ccfd60b146103d357806342842e0e146103ea57806342966c6814610413578063435c35b61461043c57610225565b806318160ddd116101f857806318160ddd146102f85780631b47ec3a1461032357806323b872dd1461034e578063324ff37114610377578063380d831b146103a057610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190613c3c565b61084e565b60405161025e9190613c84565b60405180910390f35b34801561027357600080fd5b5061027c610930565b6040516102899190613d38565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b49190613d90565b6109c2565b6040516102c69190613dfe565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f19190613e45565b610a3e565b005b34801561030457600080fd5b5061030d610b49565b60405161031a9190613e94565b60405180910390f35b34801561032f57600080fd5b50610338610b57565b6040516103459190613ece565b60405180910390f35b34801561035a57600080fd5b5061037560048036038101906103709190613ee9565b610b6d565b005b34801561038357600080fd5b5061039e60048036038101906103999190613f72565b610b7d565b005b3480156103ac57600080fd5b506103b5610c03565b005b6103d160048036038101906103cc9190613d90565b610c8b565b005b3480156103df57600080fd5b506103e86110b2565b005b3480156103f657600080fd5b50610411600480360381019061040c9190613ee9565b611282565b005b34801561041f57600080fd5b5061043a60048036038101906104359190613d90565b6112a2565b005b34801561044857600080fd5b50610451611393565b005b34801561045f57600080fd5b5061047a60048036038101906104759190613d90565b61141b565b005b34801561048857600080fd5b506104a3600480360381019061049e91906140d4565b6114a1565b005b3480156104b157600080fd5b506104cc60048036038101906104c7919061411d565b611587565b005b3480156104da57600080fd5b506104f560048036038101906104f09190613d90565b611647565b6040516105029190613dfe565b60405180910390f35b34801561051757600080fd5b50610532600480360381019061052d919061411d565b61165d565b60405161053f9190613e94565b60405180910390f35b34801561055457600080fd5b5061055d61172d565b005b34801561056b57600080fd5b506105746117b5565b60405161058191906141c1565b60405180910390f35b34801561059657600080fd5b5061059f6117c8565b6040516105ac9190613c84565b60405180910390f35b3480156105c157600080fd5b506105ca6117db565b6040516105d89291906141dc565b60405180910390f35b3480156105ed57600080fd5b506105f66118a8565b6040516106039190613dfe565b60405180910390f35b34801561061857600080fd5b50610633600480360381019061062e9190613d90565b6118d2565b005b34801561064157600080fd5b5061064a611958565b6040516106579190613d38565b60405180910390f35b34801561066c57600080fd5b506106756119ea565b6040516106829190613e94565b60405180910390f35b34801561069757600080fd5b506106b260048036038101906106ad9190614231565b6119f0565b005b6106ce60048036038101906106c99190614339565b611b68565b005b3480156106dc57600080fd5b506106e5611ef7565b005b3480156106f357600080fd5b5061070e6004803603810190610709919061411d565b611f7f565b60405161071b9190613c84565b60405180910390f35b34801561073057600080fd5b5061074b60048036038101906107469190614436565b611fcb565b005b34801561075957600080fd5b50610774600480360381019061076f9190613d90565b61201e565b6040516107819190613d38565b60405180910390f35b34801561079657600080fd5b5061079f612148565b6040516107ac9190613e94565b60405180910390f35b3480156107c157600080fd5b506107ca61214e565b005b3480156107d857600080fd5b506107f360048036038101906107ee91906144b9565b6121e7565b6040516108009190613c84565b60405180910390f35b610823600480360381019061081e9190613d90565b61227b565b005b34801561083157600080fd5b5061084c6004803603810190610847919061411d565b61248f565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061091957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610929575061092882612587565b5b9050919050565b60606002805461093f90614528565b80601f016020809104026020016040519081016040528092919081815260200182805461096b90614528565b80156109b85780601f1061098d576101008083540402835291602001916109b8565b820191906000526020600020905b81548152906001019060200180831161099b57829003601f168201915b5050505050905090565b60006109cd826125f1565b610a03576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a4982611647565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ab1576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ad061262b565b73ffffffffffffffffffffffffffffffffffffffff1614158015610b025750610b0081610afb61262b565b6121e7565b155b15610b39576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b44838383612633565b505050565b600060015460005403905090565b601060009054906101000a900463ffffffff1681565b610b788383836126e5565b505050565b610b8561262b565b73ffffffffffffffffffffffffffffffffffffffff16610ba36118a8565b73ffffffffffffffffffffffffffffffffffffffff1614610bf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf0906145a6565b60405180910390fd5b80600d8190555050565b610c0b61262b565b73ffffffffffffffffffffffffffffffffffffffff16610c296118a8565b73ffffffffffffffffffffffffffffffffffffffff1614610c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c76906145a6565b60405180910390fd5b610c896004612bd6565b565b80600e5481600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610cda91906145f5565b1115610d1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1290614697565b60405180910390fd5b60115481610d27610b49565b610d3191906145f5565b1115610d72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6990614703565b60405180910390fd5b8180601254610d819190614723565b3414610dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db9906147c9565b60405180910390fd5b60026009541415610e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dff90614835565b60405180910390fd5b600260098190555060036004811115610e2457610e2361414a565b5b600a60009054906101000a900460ff166004811115610e4657610e4561414a565b5b14610e86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7d906148a1565b60405180910390fd5b600f54601060009054906101000a900463ffffffff1663ffffffff161015611049576001600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610fe85760008390506001600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001601060009054906101000a900463ffffffff16610f5891906148c1565b601060006101000a81548163ffffffff021916908363ffffffff160217905550600184610f8591906145f5565b935080601254610f959190614723565b3414610fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcd906147c9565b60405180910390fd5b610fe233856001612c7f565b50611044565b82601254610ff69190614723565b3414611037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102e906147c9565b60405180910390fd5b61104333846001612c7f565b5b6110a5565b826012546110579190614723565b3414611098576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108f906147c9565b60405180910390fd5b6110a433846001612c7f565b5b6001600981905550505050565b600260095414156110f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ef90614835565b60405180910390fd5b600260098190555061110861262b565b73ffffffffffffffffffffffffffffffffffffffff166111266118a8565b73ffffffffffffffffffffffffffffffffffffffff161461117c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611173906145a6565b60405180910390fd5b60004790506000600a606483611192919061492a565b61119c9190614723565b9050601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611206573d6000803e3d6000fd5b506000479050601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611274573d6000803e3d6000fd5b505050506001600981905550565b61129d83838360405180602001604052806000815250611fcb565b505050565b60006112ad82612ceb565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166112d461262b565b73ffffffffffffffffffffffffffffffffffffffff1614806113075750611306826000015161130161262b565b6121e7565b5b8061134c575061131561262b565b73ffffffffffffffffffffffffffffffffffffffff16611334846109c2565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611385576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61138e83612f67565b505050565b61139b61262b565b73ffffffffffffffffffffffffffffffffffffffff166113b96118a8565b73ffffffffffffffffffffffffffffffffffffffff161461140f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611406906145a6565b60405180910390fd5b6114196003612bd6565b565b61142361262b565b73ffffffffffffffffffffffffffffffffffffffff166114416118a8565b73ffffffffffffffffffffffffffffffffffffffff1614611497576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148e906145a6565b60405180910390fd5b80600f8190555050565b6114a961262b565b73ffffffffffffffffffffffffffffffffffffffff166114c76118a8565b73ffffffffffffffffffffffffffffffffffffffff161461151d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611514906145a6565b60405180910390fd5b601460009054906101000a900460ff161561156d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611564906149a7565b60405180910390fd5b8060139080519060200190611583929190613aea565b5050565b61158f61262b565b73ffffffffffffffffffffffffffffffffffffffff166115ad6118a8565b73ffffffffffffffffffffffffffffffffffffffff1614611603576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115fa906145a6565b60405180910390fd5b80601460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600061165282612ceb565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116c5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61173561262b565b73ffffffffffffffffffffffffffffffffffffffff166117536118a8565b73ffffffffffffffffffffffffffffffffffffffff16146117a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a0906145a6565b60405180910390fd5b6117b3600061330b565b565b600a60009054906101000a900460ff1681565b601460009054906101000a900460ff1681565b6000806117e661262b565b73ffffffffffffffffffffffffffffffffffffffff166118046118a8565b73ffffffffffffffffffffffffffffffffffffffff161461185a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611851906145a6565b60405180910390fd5b601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915091509091565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118da61262b565b73ffffffffffffffffffffffffffffffffffffffff166118f86118a8565b73ffffffffffffffffffffffffffffffffffffffff161461194e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611945906145a6565b60405180910390fd5b8060128190555050565b60606003805461196790614528565b80601f016020809104026020016040519081016040528092919081815260200182805461199390614528565b80156119e05780601f106119b5576101008083540402835291602001916119e0565b820191906000526020600020905b8154815290600101906020018083116119c357829003601f168201915b5050505050905090565b60125481565b6119f861262b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a5d576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611a6a61262b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b1761262b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b5c9190613c84565b60405180910390a35050565b80600e5481600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bb791906145f5565b1115611bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bef90614697565b60405180910390fd5b60115481611c04610b49565b611c0e91906145f5565b1115611c4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4690614703565b60405180910390fd5b60026009541415611c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8c90614835565b60405180910390fd5b600260098190555060036004811115611cb157611cb061414a565b5b600a60009054906101000a900460ff166004811115611cd357611cd261414a565b5b14611d13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0a906148a1565b60405180910390fd5b600f54601060009054906101000a900463ffffffff1663ffffffff1610611d6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6690614a13565b60405180910390fd5b600033604051602001611d829190614a7b565b6040516020818303038152906040528051906020012090506000839050611dac85600d54846133d1565b15611e8d576001600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611e8c57600381611e059190614a96565b90506001600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506003601060009054906101000a900463ffffffff16611e6b91906148c1565b601060006101000a81548163ffffffff021916908363ffffffff1602179055505b5b80601254611e9b9190614723565b3414611edc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed3906147c9565b60405180910390fd5b611ee833856001612c7f565b50506001600981905550505050565b611eff61262b565b73ffffffffffffffffffffffffffffffffffffffff16611f1d6118a8565b73ffffffffffffffffffffffffffffffffffffffff1614611f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6a906145a6565b60405180910390fd5b611f7d6001612bd6565b565b60006001600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054149050919050565b611fd68484846126e5565b611fe2848484846133e8565b612018576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6060612029826125f1565b612068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205f90614b3c565b60405180910390fd5b60006013805461207790614528565b80601f01602080910402602001604051908101604052809291908181526020018280546120a390614528565b80156120f05780601f106120c5576101008083540402835291602001916120f0565b820191906000526020600020905b8154815290600101906020018083116120d357829003601f168201915b5050505050905060008151116121155760405180602001604052806000815250612140565b8061211f84613567565b604051602001612130929190614be4565b6040516020818303038152906040525b915050919050565b60115481565b61215661262b565b73ffffffffffffffffffffffffffffffffffffffff166121746118a8565b73ffffffffffffffffffffffffffffffffffffffff16146121ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c1906145a6565b60405180910390fd5b6001601460006101000a81548160ff021916908315150217905550565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b80600e5481600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122ca91906145f5565b111561230b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230290614697565b60405180910390fd5b60115481612317610b49565b61232191906145f5565b1115612362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235990614703565b60405180910390fd5b81806012546123719190614723565b34146123b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a9906147c9565b60405180910390fd5b600260095414156123f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ef90614835565b60405180910390fd5b6002600981905550600360048111156124145761241361414a565b5b600a60009054906101000a900460ff1660048111156124365761243561414a565b5b14612476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246d906148a1565b60405180910390fd5b61248233846001612c7f565b6001600981905550505050565b61249761262b565b73ffffffffffffffffffffffffffffffffffffffff166124b56118a8565b73ffffffffffffffffffffffffffffffffffffffff161461250b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612502906145a6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561257b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257290614c85565b60405180910390fd5b6125848161330b565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482108015612624575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006126f082612ceb565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661271761262b565b73ffffffffffffffffffffffffffffffffffffffff16148061274a5750612749826000015161274461262b565b6121e7565b5b8061278f575061275861262b565b73ffffffffffffffffffffffffffffffffffffffff16612777846109c2565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806127c8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612831576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612898576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128a585858560016136c8565b6128b56000848460000151612633565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612b6657600054811015612b655782600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612bcf85858560016136ce565b5050505050565b612bde61262b565b73ffffffffffffffffffffffffffffffffffffffff16612bfc6118a8565b73ffffffffffffffffffffffffffffffffffffffff1614612c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c49906145a6565b60405180910390fd5b80600a60006101000a81548160ff02191690836004811115612c7757612c7661414a565b5b021790555050565b8015612cdc5781600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612cd491906145f5565b925050819055505b612ce683836136d4565b505050565b612cf3613b70565b6000829050600054811015612f30576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612f2e57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612e12578092505050612f62565b5b600115612f2d57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612f28578092505050612f62565b612e13565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000612f7282612ceb565b9050612f86816000015160008460016136c8565b612f966000838360000151612633565b600160056000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160056000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080600001516004600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600084815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160046000848152602001908152602001600020600001601c6101000a81548160ff0219169083151502179055506000600183019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415613282576000548110156132815781600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b5081600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46132f5816000015160008460016136ce565b6001600081548092919060010191905055505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000826133de85846136f2565b1490509392505050565b60006134098473ffffffffffffffffffffffffffffffffffffffff16613767565b1561355a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261343261262b565b8786866040518563ffffffff1660e01b81526004016134549493929190614cfa565b6020604051808303816000875af192505050801561349057506040513d601f19601f8201168201806040525081019061348d9190614d5b565b60015b61350a573d80600081146134c0576040519150601f19603f3d011682016040523d82523d6000602084013e6134c5565b606091505b50600081511415613502576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061355f565b600190505b949350505050565b606060008214156135af576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506136c3565b600082905060005b600082146135e15780806135ca90614d88565b915050600a826135da919061492a565b91506135b7565b60008167ffffffffffffffff8111156135fd576135fc613fa9565b5b6040519080825280601f01601f19166020018201604052801561362f5781602001600182028036833780820191505090505b5090505b600085146136bc576001826136489190614a96565b9150600a856136579190614dd1565b603061366391906145f5565b60f81b81838151811061367957613678614e02565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856136b5919061492a565b9450613633565b8093505050505b919050565b50505050565b50505050565b6136ee82826040518060200160405280600081525061378a565b5050565b60008082905060005b845181101561375c57600085828151811061371957613718614e02565b5b6020026020010151905080831161373b57613734838261379c565b9250613748565b613745818461379c565b92505b50808061375490614d88565b9150506136fb565b508091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b61379783838360016137b3565b505050565b600082600052816020526040600020905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613820576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561385b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61386860008683876136c8565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b85811015613acd57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4838015613a815750613a7f60008884886133e8565b155b15613ab8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050613a06565b508060008190555050613ae360008683876136ce565b5050505050565b828054613af690614528565b90600052602060002090601f016020900481019282613b185760008555613b5f565b82601f10613b3157805160ff1916838001178555613b5f565b82800160010185558215613b5f579182015b82811115613b5e578251825591602001919060010190613b43565b5b509050613b6c9190613bb3565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613bcc576000816000905550600101613bb4565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c1981613be4565b8114613c2457600080fd5b50565b600081359050613c3681613c10565b92915050565b600060208284031215613c5257613c51613bda565b5b6000613c6084828501613c27565b91505092915050565b60008115159050919050565b613c7e81613c69565b82525050565b6000602082019050613c996000830184613c75565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613cd9578082015181840152602081019050613cbe565b83811115613ce8576000848401525b50505050565b6000601f19601f8301169050919050565b6000613d0a82613c9f565b613d148185613caa565b9350613d24818560208601613cbb565b613d2d81613cee565b840191505092915050565b60006020820190508181036000830152613d528184613cff565b905092915050565b6000819050919050565b613d6d81613d5a565b8114613d7857600080fd5b50565b600081359050613d8a81613d64565b92915050565b600060208284031215613da657613da5613bda565b5b6000613db484828501613d7b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613de882613dbd565b9050919050565b613df881613ddd565b82525050565b6000602082019050613e136000830184613def565b92915050565b613e2281613ddd565b8114613e2d57600080fd5b50565b600081359050613e3f81613e19565b92915050565b60008060408385031215613e5c57613e5b613bda565b5b6000613e6a85828601613e30565b9250506020613e7b85828601613d7b565b9150509250929050565b613e8e81613d5a565b82525050565b6000602082019050613ea96000830184613e85565b92915050565b600063ffffffff82169050919050565b613ec881613eaf565b82525050565b6000602082019050613ee36000830184613ebf565b92915050565b600080600060608486031215613f0257613f01613bda565b5b6000613f1086828701613e30565b9350506020613f2186828701613e30565b9250506040613f3286828701613d7b565b9150509250925092565b6000819050919050565b613f4f81613f3c565b8114613f5a57600080fd5b50565b600081359050613f6c81613f46565b92915050565b600060208284031215613f8857613f87613bda565b5b6000613f9684828501613f5d565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613fe182613cee565b810181811067ffffffffffffffff8211171561400057613fff613fa9565b5b80604052505050565b6000614013613bd0565b905061401f8282613fd8565b919050565b600067ffffffffffffffff82111561403f5761403e613fa9565b5b61404882613cee565b9050602081019050919050565b82818337600083830152505050565b600061407761407284614024565b614009565b90508281526020810184848401111561409357614092613fa4565b5b61409e848285614055565b509392505050565b600082601f8301126140bb576140ba613f9f565b5b81356140cb848260208601614064565b91505092915050565b6000602082840312156140ea576140e9613bda565b5b600082013567ffffffffffffffff81111561410857614107613bdf565b5b614114848285016140a6565b91505092915050565b60006020828403121561413357614132613bda565b5b600061414184828501613e30565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6005811061418a5761418961414a565b5b50565b600081905061419b82614179565b919050565b60006141ab8261418d565b9050919050565b6141bb816141a0565b82525050565b60006020820190506141d660008301846141b2565b92915050565b60006040820190506141f16000830185613def565b6141fe6020830184613def565b9392505050565b61420e81613c69565b811461421957600080fd5b50565b60008135905061422b81614205565b92915050565b6000806040838503121561424857614247613bda565b5b600061425685828601613e30565b92505060206142678582860161421c565b9150509250929050565b600067ffffffffffffffff82111561428c5761428b613fa9565b5b602082029050602081019050919050565b600080fd5b60006142b56142b084614271565b614009565b905080838252602082019050602084028301858111156142d8576142d761429d565b5b835b8181101561430157806142ed8882613f5d565b8452602084019350506020810190506142da565b5050509392505050565b600082601f8301126143205761431f613f9f565b5b81356143308482602086016142a2565b91505092915050565b600080604083850312156143505761434f613bda565b5b600083013567ffffffffffffffff81111561436e5761436d613bdf565b5b61437a8582860161430b565b925050602061438b85828601613d7b565b9150509250929050565b600067ffffffffffffffff8211156143b0576143af613fa9565b5b6143b982613cee565b9050602081019050919050565b60006143d96143d484614395565b614009565b9050828152602081018484840111156143f5576143f4613fa4565b5b614400848285614055565b509392505050565b600082601f83011261441d5761441c613f9f565b5b813561442d8482602086016143c6565b91505092915050565b600080600080608085870312156144505761444f613bda565b5b600061445e87828801613e30565b945050602061446f87828801613e30565b935050604061448087828801613d7b565b925050606085013567ffffffffffffffff8111156144a1576144a0613bdf565b5b6144ad87828801614408565b91505092959194509250565b600080604083850312156144d0576144cf613bda565b5b60006144de85828601613e30565b92505060206144ef85828601613e30565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061454057607f821691505b60208210811415614554576145536144f9565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614590602083613caa565b915061459b8261455a565b602082019050919050565b600060208201905081810360008301526145bf81614583565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061460082613d5a565b915061460b83613d5a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156146405761463f6145c6565b5b828201905092915050565b7f457863656564732077616c6c6574206c696d6974000000000000000000000000600082015250565b6000614681601483613caa565b915061468c8261464b565b602082019050919050565b600060208201905081810360008301526146b081614674565b9050919050565b7f576f756c6420657863656564206d617820737570706c79000000000000000000600082015250565b60006146ed601783613caa565b91506146f8826146b7565b602082019050919050565b6000602082019050818103600083015261471c816146e0565b9050919050565b600061472e82613d5a565b915061473983613d5a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614772576147716145c6565b5b828202905092915050565b7f53656e7420696e636f7272656374204574686572000000000000000000000000600082015250565b60006147b3601483613caa565b91506147be8261477d565b602082019050919050565b600060208201905081810360008301526147e2816147a6565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061481f601f83613caa565b915061482a826147e9565b602082019050919050565b6000602082019050818103600083015261484e81614812565b9050919050565b7f49742773206e6f7420676f2074696d65207965742e0000000000000000000000600082015250565b600061488b601583613caa565b915061489682614855565b602082019050919050565b600060208201905081810360008301526148ba8161487e565b9050919050565b60006148cc82613eaf565b91506148d783613eaf565b92508263ffffffff038211156148f0576148ef6145c6565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061493582613d5a565b915061494083613d5a565b9250826149505761494f6148fb565b5b828204905092915050565b7f73657442617365555249206973206c6f636b6564000000000000000000000000600082015250565b6000614991601483613caa565b915061499c8261495b565b602082019050919050565b600060208201905081810360008301526149c081614984565b9050919050565b7f746f6f206d616e7920736872696d7069657320636c61696d6564000000000000600082015250565b60006149fd601a83613caa565b9150614a08826149c7565b602082019050919050565b60006020820190508181036000830152614a2c816149f0565b9050919050565b60008160601b9050919050565b6000614a4b82614a33565b9050919050565b6000614a5d82614a40565b9050919050565b614a75614a7082613ddd565b614a52565b82525050565b6000614a878284614a64565b60148201915081905092915050565b6000614aa182613d5a565b9150614aac83613d5a565b925082821015614abf57614abe6145c6565b5b828203905092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614b26602f83613caa565b9150614b3182614aca565b604082019050919050565b60006020820190508181036000830152614b5581614b19565b9050919050565b600081905092915050565b6000614b7282613c9f565b614b7c8185614b5c565b9350614b8c818560208601613cbb565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614bce600583614b5c565b9150614bd982614b98565b600582019050919050565b6000614bf08285614b67565b9150614bfc8284614b67565b9150614c0782614bc1565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c6f602683613caa565b9150614c7a82614c13565b604082019050919050565b60006020820190508181036000830152614c9e81614c62565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614ccc82614ca5565b614cd68185614cb0565b9350614ce6818560208601613cbb565b614cef81613cee565b840191505092915050565b6000608082019050614d0f6000830187613def565b614d1c6020830186613def565b614d296040830185613e85565b8181036060830152614d3b8184614cc1565b905095945050505050565b600081519050614d5581613c10565b92915050565b600060208284031215614d7157614d70613bda565b5b6000614d7f84828501614d46565b91505092915050565b6000614d9382613d5a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614dc657614dc56145c6565b5b600182019050919050565b6000614ddc82613d5a565b9150614de783613d5a565b925082614df757614df66148fb565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea264697066735822122033eb1d8d92380e47803a2b975f1f30d6c97ba5d821ac1222fd91d6faf45fec7b64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000001e0e0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000f736872696d702e66756e2f6a736f6e0000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : maxSupply_ (uint256): 7694
Arg [1] : baseTokenURI_ (string): shrimp.fun/json
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000001e0e
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [3] : 736872696d702e66756e2f6a736f6e0000000000000000000000000000000000
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.