ERC-721
Overview
Max Total Supply
2,147 VS
Holders
318
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 VSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
vSamurai
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. // | .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. | // | | ____ ____ | || | _______ | || | __ | || | ____ ____ | || | _____ _____ | || | _______ | || | __ | || | _____ | | // | ||_ _| |_ _| | || | / ___ | | || | / \ | || ||_ \ / _|| || ||_ _||_ _|| || | |_ __ \ | || | / \ | || | |_ _| | | // | | \ \ / / | || | | (__ \_| | || | / /\ \ | || | | \/ | | || | | | | | | || | | |__) | | || | / /\ \ | || | | | | | // | | \ \ / / | || | '.___`-. | || | / ____ \ | || | | |\ /| | | || | | ' ' | | || | | __ / | || | / ____ \ | || | | | | | // | | \ ' / | || | |`\____) | | || | _/ / \ \_ | || | _| |_\/_| |_ | || | \ `--' / | || | _| | \ \_ | || | _/ / \ \_ | || | _| |_ | | // | | \_/ | || | |_______.' | || ||____| |____|| || ||_____||_____|| || | `.__.' | || | |____| |___| | || ||____| |____|| || | |_____| | | // | | | || | | || | | || | | || | | || | | || | | || | | | // | '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' | // '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' | // Website: https://vsamurai.io // Developers: https://buildingideas.io pragma solidity ^0.8.11; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Withdrawable.sol"; import "./Whitelistable.sol"; import "./ERC721A.sol"; import "./Rewardable.sol"; import "./Breedable.sol"; contract vSamurai is Ownable, ERC721A, Withdrawable, Whitelistable, Rewardable, Breedable { uint256 public immutable maxPerWalletWhitelist; uint256 public immutable maxPerWalletPublicSale; string public baseTokenURI; address public proxyRegistryAddress; uint256 public NFT_PRICE = 0.075 ether; uint256 public NFT_PRICE_PRESALE = 0.075 ether; uint public constant MAX_SUPPLY = 10000; mapping(address => bool) public projectProxy; mapping(address => uint) public addressToWhitelistMinted; mapping(address => uint) public addressToMinted; bool public hasSaleStarted = false; bool public hasPreSaleStarted = false; uint public MAX_NFT_CLAIMS = 25; uint public NFT_CLAIMED = 0; constructor( string memory _baseUri, uint256 _maxPerWalletWhitelist, uint256 _maxPerWalletPublicSale, address _developerAddress, uint256 _developerFee, address _proxyRegistryAddress, address _owner, address _signer ) ERC721A("vSamurai", "VS") Whitelistable(_signer) { baseTokenURI = _baseUri; maxPerWalletWhitelist = _maxPerWalletWhitelist; maxPerWalletPublicSale = _maxPerWalletPublicSale; proxyRegistryAddress = _proxyRegistryAddress; setDeveloperPaymentAddress(_developerAddress); setDeveloperPaymentFee(_developerFee); transferOwnership(_owner); } modifier callerIsUser() { require(tx.origin == _msgSender(), "The caller is another contract"); _; } function whitelistMint(bytes calldata signature, uint256 _quantity) external payable callerIsUser requiresWhitelist(signature) { require(msg.value >= NFT_PRICE_PRESALE * _quantity, "Incorrect ether value"); require(hasPreSaleStarted, "Presale has not started"); require(_quantity <= maxPerWalletWhitelist, "Exceeds max per tx"); require(addressToWhitelistMinted[_msgSender()] + _quantity <= maxPerWalletWhitelist, "Exceeds whitelist supply"); require(MAX_SUPPLY - MAX_NFT_CLAIMS > totalSupply() + _quantity, "Exceeds supply"); _safeMint(_msgSender(), _quantity); addressToWhitelistMinted[_msgSender()] += _quantity; } function publicSaleMint(uint256 _quantity) external payable callerIsUser { require(msg.value >= NFT_PRICE * _quantity, "Incorrect ether value"); require(_quantity <= maxPerWalletPublicSale, "Exceeds max per tx"); require(addressToMinted[_msgSender()] + _quantity <= maxPerWalletPublicSale, "Exceeds mints for this wallet"); require(hasSaleStarted, "Sale has not started"); require(MAX_SUPPLY - MAX_NFT_CLAIMS > totalSupply() + _quantity, "Exceeds supply"); _safeMint(_msgSender(), _quantity); addressToMinted[_msgSender()] += _quantity; } function devMint(address recipient, uint256 _quantity) external onlyOwner { require(_quantity <= MAX_NFT_CLAIMS, "Exceeds max claims"); require(_quantity + NFT_CLAIMED <= MAX_NFT_CLAIMS, "Exceeds max claims"); require(MAX_SUPPLY - MAX_NFT_CLAIMS > totalSupply() + _quantity, "Exceeds supply"); uint256 numChunks = _quantity / maxPerWalletPublicSale; for (uint256 i = 0; i < numChunks; i++) { _safeMint(recipient, maxPerWalletPublicSale); } uint256 modulo = _quantity % maxPerWalletPublicSale; if(modulo != 0) { _safeMint(recipient, modulo); } NFT_CLAIMED += _quantity; } function transferFrom(address from, address to, uint256 tokenId) public override { if (address(yieldToken) != address(0)) { yieldToken.updateReward(from, to, tokenId); } ERC721A.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public override { if (address(yieldToken) != address(0)) { yieldToken.updateReward(from, to, tokenId); } ERC721A.safeTransferFrom(from, to, tokenId, _data); } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { baseTokenURI = baseURI; } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return _ownershipOf(tokenId); } function flipSaleState() public onlyOwner { hasSaleStarted = !hasSaleStarted; } function flipPreSaleState() public onlyOwner { hasPreSaleStarted = !hasPreSaleStarted; } function setPresalePrice(uint256 nftPublicPrice) public onlyOwner { NFT_PRICE_PRESALE = nftPublicPrice; } function setMintPrice(uint256 nftPrice) public onlyOwner { NFT_PRICE = nftPrice; } function isApprovedForAll(address _owner, address operator) public view override returns (bool) { OpenSeaProxyRegistry proxyRegistry = OpenSeaProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(_owner)) == operator || projectProxy[operator]) { return true; } return super.isApprovedForAll(_owner, operator); } function setProxyRegistryAddress(address _proxyRegistryAddress) external onlyOwner { proxyRegistryAddress = _proxyRegistryAddress; } function flipProxyState(address proxyAddress) public onlyOwner { projectProxy[proxyAddress] = !projectProxy[proxyAddress]; } function _startTokenId() internal pure override returns (uint256) { return 1; } // Eventually, instead of using this, call our subgraph which is much faster function tokensOfOwner(address owner) external view returns (uint256[] memory) { unchecked { uint256[] memory a = new uint256[](balanceOf(owner)); uint256 end = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; for (uint256 i; i < end; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { a[tokenIdsIdx++] = i; } } return a; } } } contract OwnableDelegateProxy {} contract OpenSeaProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
// 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 // BuildingIdeas.io (Withdrawable.sol) pragma solidity ^0.8.11; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; abstract contract Withdrawable is Ownable, ReentrancyGuard { address private DEVELOPER_ADDRESS; uint256 private DEVELOPER_FEE; function setDeveloperPaymentAddress(address _developerAddress) public virtual onlyOwner { DEVELOPER_ADDRESS = _developerAddress; } function setDeveloperPaymentFee(uint256 fee) public virtual onlyOwner { DEVELOPER_FEE = fee; } function ceilDiv(uint256 a, uint256 b) private pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } function withdraw() external onlyOwner nonReentrant { require(address(this).balance > 0, "Contract must have balance"); uint256 unit = ceilDiv(address(this).balance, 100); (bool paymentDevelopersSuccess, ) = DEVELOPER_ADDRESS.call{value: unit * DEVELOPER_FEE }(""); require(paymentDevelopersSuccess, "Payment to developers failed."); (bool paymentOwnersSuccess, ) = _msgSender().call{value: address(this).balance}(""); require(paymentOwnersSuccess, "Withdrawal failed."); } }
// SPDX-License-Identifier: MIT // BuildingIdeas.io (Whitelistable.sol) pragma solidity ^0.8.11; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Whitelistable is Ownable { using ECDSA for bytes32; // The key used to sign whitelist signatures. // We will check to ensure that the key that signed the signature // is this one that we expect. address whitelistSigningKey = address(0); // Domain Separator is the EIP-712 defined structure that defines what contract // and chain these signatures can be used for. This ensures people can't take // a signature used to mint on one contract and use it for another, or a signature // from testnet to replay on mainnet. // It has to be created in the constructor so we can dynamically grab the chainId. // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#definition-of-domainseparator bytes32 public DOMAIN_SEPARATOR; // The typehash for the data type specified in the structured data // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#rationale-for-typehash // This should match whats in the client side whitelist signing code // https://github.com/msfeldstein/EIP712-whitelisting/blob/main/test/signWhitelist.ts#L22 bytes32 public constant MINTER_TYPEHASH = keccak256("Minter(address wallet)"); constructor(address signerPubKey) { whitelistSigningKey = signerPubKey; // This should match whats in the client side whitelist signing code // https://github.com/msfeldstein/EIP712-whitelisting/blob/main/test/signWhitelist.ts#L12 DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ), // This should match the domain you set in your client side signing. keccak256(bytes("WhitelistMint")), keccak256(bytes("1")), block.chainid, address(this) ) ); } function setWhitelistSigningAddress(address newSigningKey) public onlyOwner { whitelistSigningKey = newSigningKey; } modifier requiresWhitelist(bytes calldata signature) { require(whitelistSigningKey != address(0), "whitelist not enabled"); // Verify EIP-712 signature by recreating the data structure // that we signed on the client side, and then using that to recover // the address that signed the signature for this data. bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(MINTER_TYPEHASH, _msgSender())) ) ); // Use the recover method to see what address was used to create // the signature on this data. // Note that if the digest doesn't exactly match what was signed we'll // get a random recovered address. address recoveredAddress = digest.recover(signature); require(recoveredAddress == whitelistSigningKey, "Invalid Signature"); _; } }
// 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/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 MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); 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 _startTokenId() (defaults to 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_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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) { 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) { 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) { 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 { _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 (_startTokenId() <= curr && 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 virtual 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 (to.isContract() && !_checkContractOnERC721Received(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 _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ 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 { 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; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @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) 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; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); _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); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.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; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.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; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, 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 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { 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)) } } } } /** * @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 // BuildingIdeas.io (Rewardable.sol) pragma solidity ^0.8.11; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "./IEDOToken.sol"; abstract contract Rewardable is Ownable { IEDOToken public yieldToken; function setYieldToken(address _yield) external onlyOwner { yieldToken = IEDOToken(_yield); } }
// SPDX-License-Identifier: MIT // BuildingIdeas.io (Breedable.sol) pragma solidity ^0.8.11; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "./ERC721A.sol"; import "./IEDOToken.sol"; import "./IBreedManager.sol"; import "./Rewardable.sol"; abstract contract Breedable is Ownable, ERC721A, Rewardable { IBreedManager public breedManager; bool public BREEDING_ACTIVE = false; uint public BREED_PRICE = 150; function breed(uint256 _male, uint256 _female) external { require(address(breedManager) != address(0), 'Breading contract not set'); require(address(yieldToken) != address(0), 'Yield Token not set'); require(BREEDING_ACTIVE, "Breeding is not active"); require(ownerOf(_male) == _msgSender() && ownerOf(_female) == _msgSender()); require(breedManager.breed(_male, _female)); yieldToken.burn(_msgSender(), BREED_PRICE); _safeMint(_msgSender(), 1); } function registerGender(bytes calldata signature, uint256 _tokenId, uint256 _gender) external { breedManager.registerGender(signature, _tokenId, _gender); } function setBreedingManager(address _manager) external onlyOwner { breedManager = IBreedManager(_manager); } function setBreedPrice(uint256 _breedPrice) external onlyOwner { BREED_PRICE = _breedPrice; } function flipBreedingActive() external onlyOwner { BREEDING_ACTIVE = !BREEDING_ACTIVE; } }
// 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 (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 // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // 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 (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) (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/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 // BuildingIdeas.io (IEDOToken.sol) pragma solidity ^0.8.11; interface IEDOToken { event RewardClaimed(address indexed from, uint256 reward); function getTotalClaimable(address _from, uint256 _tokenId) external view returns(uint256); function updateReward(address _from, address _to, uint256 _tokenId) external; function getReward(address _from, uint256 _tokenId) external; function burn(address _from, uint256 _amount) external; }
// SPDX-License-Identifier: MIT // BuildingIdeas.io (IBreedManager.sol) pragma solidity ^0.8.11; interface IBreedManager { function breed(uint256 _male, uint256 _female) external returns(bool); function registerGender(bytes calldata signature, uint256 _tokenId, uint256 _gender) external; }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"uint256","name":"_maxPerWalletWhitelist","type":"uint256"},{"internalType":"uint256","name":"_maxPerWalletPublicSale","type":"uint256"},{"internalType":"address","name":"_developerAddress","type":"address"},{"internalType":"uint256","name":"_developerFee","type":"uint256"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_signer","type":"address"}],"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"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":[],"name":"BREEDING_ACTIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BREED_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NFT_CLAIMS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_CLAIMED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_PRICE_PRESALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToWhitelistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_male","type":"uint256"},{"internalType":"uint256","name":"_female","type":"uint256"}],"name":"breed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"breedManager","outputs":[{"internalType":"contract IBreedManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipBreedingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"flipProxyState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasPreSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"maxPerWalletPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWalletWhitelist","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":[{"internalType":"address","name":"","type":"address"}],"name":"projectProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_gender","type":"uint256"}],"name":"registerGender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_breedPrice","type":"uint256"}],"name":"setBreedPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"setBreedingManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_developerAddress","type":"address"}],"name":"setDeveloperPaymentAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setDeveloperPaymentFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nftPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nftPublicPrice","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigningKey","type":"address"}],"name":"setWhitelistSigningAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_yield","type":"address"}],"name":"setYieldToken","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yieldToken","outputs":[{"internalType":"contract IEDOToken","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c0604052600c80546001600160a01b0319169055600f805460ff60a01b19169055609660105567010a741a4627800060138190556014556018805461ffff19169055601980556000601a553480156200005857600080fd5b5060405162004348380380620043488339810160408190526200007b9162000515565b80604051806040016040528060088152602001677653616d7572616960c01b81525060405180604001604052806002815260200161565360f01b815250620000d2620000cc6200026760201b60201c565b6200026b565b600180558151620000eb9060049060208501906200043c565b508051620001019060059060208401906200043c565b5060016002555050600c80546001600160a01b0319166001600160a01b038316179055604080518082018252600d81526c15da1a5d195b1a5cdd135a5b9d609a1b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f918101919091527f67c8313423c530a1c0e73e7591c862f362ecb90b95e1fed6dbefb108ff8329ef918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160408051601f198184030181529190528051602091820120600d5589516200021292506011918b01906200043c565b50608087905260a0869052601280546001600160a01b0319166001600160a01b0385161790556200024385620002bb565b6200024e846200032c565b62000259826200037c565b505050505050505062000698565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b031633146200030a5760405162461bcd60e51b815260206004820181905260248201526000805160206200432883398151915260448201526064015b60405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314620003775760405162461bcd60e51b8152602060048201819052602482015260008051602062004328833981519152604482015260640162000301565b600b55565b6000546001600160a01b03163314620003c75760405162461bcd60e51b8152602060048201819052602482015260008051602062004328833981519152604482015260640162000301565b6001600160a01b0381166200042e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000301565b62000439816200026b565b50565b8280546200044a906200065c565b90600052602060002090601f0160209004810192826200046e5760008555620004b9565b82601f106200048957805160ff1916838001178555620004b9565b82800160010185558215620004b9579182015b82811115620004b95782518255916020019190600101906200049c565b50620004c7929150620004cb565b5090565b5b80821115620004c75760008155600101620004cc565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200051057600080fd5b919050565b600080600080600080600080610100898b0312156200053357600080fd5b88516001600160401b03808211156200054b57600080fd5b818b0191508b601f8301126200056057600080fd5b815181811115620005755762000575620004e2565b604051601f8201601f19908116603f01168101908382118183101715620005a057620005a0620004e2565b81604052828152602093508e84848701011115620005bd57600080fd5b600091505b82821015620005e15784820184015181830185015290830190620005c2565b82821115620005f35760008484830101525b809c50505050808b015198505050604089015195506200061660608a01620004f8565b9450608089015193506200062d60a08a01620004f8565b92506200063d60c08a01620004f8565b91506200064d60e08a01620004f8565b90509295985092959890939650565b600181811c908216806200067157607f821691505b6020821081036200069257634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051613c39620006ef600039600081816107ab0152818161180f015281816118470152818161188501528181611d370152611db701526000818161058f01528181610f780152610ff80152613c396000f3fe60806040526004361061038c5760003560e01c806371beeba1116101dc578063c8b5d46311610102578063e61eba77116100a0578063f4a0a5281161006f578063f4a0a52814610a8e578063f535f54614610aae578063f73c814b14610ace578063fa4d280c14610aee57600080fd5b8063e61eba7714610a19578063e985e9c514610a39578063f032554914610a59578063f2fde38b14610a6e57600080fd5b8063d26ea6c0116100dc578063d26ea6c0146109a4578063d547cfb7146109c4578063d9ecad7b146109d9578063e0fd53ec146109f957600080fd5b8063c8b5d46314610944578063cd77083314610964578063cd7c03261461098457600080fd5b806395d89b411161017a578063b88d4fde11610149578063b88d4fde146108d8578063b9a49213146108f8578063bf424e7e1461090e578063c87b56dd1461092457600080fd5b806395d89b41146108635780639ec00c9514610878578063a22cb465146108a5578063b3ab66b0146108c557600080fd5b806387b7fcaa116101b657806387b7fcaa1461079957806389303a1b146107cd5780638da5cb5b146107ee5780639231ab2a1461080c57600080fd5b806371beeba11461072c57806376d5de851461074c5780638462151c1461076c57600080fd5b80633644e515116102c15780635bab26e21161025f5780636a5928f51161022e5780636a5928f5146106b85780636b0a36cc146106d757806370a08231146106f7578063715018a61461071757600080fd5b80635bab26e214610632578063627804af146106625780636352211e14610682578063676dd563146106a257600080fd5b80633ccfd60b1161029b5780633ccfd60b146105c757806342842e0e146105dc57806355f804b3146105fc578063577ad34d1461061c57600080fd5b80633644e5151461056757806336a4e19b1461057d5780633a8403bd146105b157600080fd5b80631c8b232d1161032e57806326290eca1161030857806326290eca1461050757806332cb6b0c1461051c57806334918dfd146105325780633549345e1461054757600080fd5b80631c8b232d146104ad57806323b872dd146104c757806323ffce85146104e757600080fd5b8063081812fc1161036a578063081812fc1461042357806308e3f8681461045b578063095ea7b31461047057806318160ddd1461049057600080fd5b806301ffc9a71461039157806305fab7a5146103c657806306fdde0314610401575b600080fd5b34801561039d57600080fd5b506103b16103ac36600461358e565b610b22565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103f36103e13660046135c0565b60166020526000908152604090205481565b6040519081526020016103bd565b34801561040d57600080fd5b50610416610bbf565b6040516103bd9190613635565b34801561042f57600080fd5b5061044361043e366004613648565b610c51565b6040516001600160a01b0390911681526020016103bd565b61046e6104693660046136a3565b610cae565b005b34801561047c57600080fd5b5061046e61048b3660046136ef565b61110d565b34801561049c57600080fd5b5060035460025403600019016103f3565b3480156104b957600080fd5b506018546103b19060ff1681565b3480156104d357600080fd5b5061046e6104e236600461371b565b6111cc565b3480156104f357600080fd5b5061046e6105023660046135c0565b611257565b34801561051357600080fd5b5061046e6112c1565b34801561052857600080fd5b506103f361271081565b34801561053e57600080fd5b5061046e611345565b34801561055357600080fd5b5061046e610562366004613648565b6113a1565b34801561057357600080fd5b506103f3600d5481565b34801561058957600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000081565b3480156105bd57600080fd5b506103f360195481565b3480156105d357600080fd5b5061046e6113ee565b3480156105e857600080fd5b5061046e6105f736600461371b565b61163c565b34801561060857600080fd5b5061046e61061736600461375c565b611657565b34801561062857600080fd5b506103f360145481565b34801561063e57600080fd5b506103b161064d3660046135c0565b60156020526000908152604090205460ff1681565b34801561066e57600080fd5b5061046e61067d3660046136ef565b6116ab565b34801561068e57600080fd5b5061044361069d366004613648565b6118d9565b3480156106ae57600080fd5b506103f360135481565b3480156106c457600080fd5b506018546103b190610100900460ff1681565b3480156106e357600080fd5b5061046e6106f236600461379e565b6118eb565b34801561070357600080fd5b506103f36107123660046135c0565b611972565b34801561072357600080fd5b5061046e6119da565b34801561073857600080fd5b5061046e610747366004613648565b611a2e565b34801561075857600080fd5b50600e54610443906001600160a01b031681565b34801561077857600080fd5b5061078c6107873660046135c0565b611a7b565b6040516103bd91906137ef565b3480156107a557600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000081565b3480156107d957600080fd5b50600f546103b190600160a01b900460ff1681565b3480156107fa57600080fd5b506000546001600160a01b0316610443565b34801561081857600080fd5b5061082c610827366004613648565b611ba6565b6040805182516001600160a01b0316815260208084015167ffffffffffffffff1690820152918101511515908201526060016103bd565b34801561086f57600080fd5b50610416611bcc565b34801561088457600080fd5b506103f36108933660046135c0565b60176020526000908152604090205481565b3480156108b157600080fd5b5061046e6108c0366004613841565b611bdb565b61046e6108d3366004613648565b611c89565b3480156108e457600080fd5b5061046e6108f3366004613890565b611f18565b34801561090457600080fd5b506103f3601a5481565b34801561091a57600080fd5b506103f360105481565b34801561093057600080fd5b5061041661093f366004613648565b611faa565b34801561095057600080fd5b50600f54610443906001600160a01b031681565b34801561097057600080fd5b5061046e61097f3660046135c0565b612047565b34801561099057600080fd5b50601254610443906001600160a01b031681565b3480156109b057600080fd5b5061046e6109bf3660046135c0565b6120b1565b3480156109d057600080fd5b5061041661211b565b3480156109e557600080fd5b5061046e6109f4366004613970565b6121a9565b348015610a0557600080fd5b5061046e610a14366004613648565b61240b565b348015610a2557600080fd5b5061046e610a343660046135c0565b612458565b348015610a4557600080fd5b506103b1610a54366004613992565b6124c2565b348015610a6557600080fd5b5061046e6125bf565b348015610a7a57600080fd5b5061046e610a893660046135c0565b612624565b348015610a9a57600080fd5b5061046e610aa9366004613648565b6126f4565b348015610aba57600080fd5b5061046e610ac93660046135c0565b612741565b348015610ada57600080fd5b5061046e610ae93660046135c0565b6127ab565b348015610afa57600080fd5b506103f37f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610b8557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610bb957507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060048054610bce906139c0565b80601f0160208091040260200160405190810160405280929190818152602001828054610bfa906139c0565b8015610c475780601f10610c1c57610100808354040283529160200191610c47565b820191906000526020600020905b815481529060010190602001808311610c2a57829003601f168201915b5050505050905090565b6000610c5c8261281c565b610c92576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b323314610d025760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064015b60405180910390fd5b600c54839083906001600160a01b0316610d5e5760405162461bcd60e51b815260206004820152601560248201527f77686974656c697374206e6f7420656e61626c656400000000000000000000006044820152606401610cf9565b6000600d547f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c9610d8b3390565b604051602001610dae9291909182526001600160a01b0316602082015260400190565b60405160208183030381529060405280519060200120604051602001610e069291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b6040516020818303038152906040528051906020012090506000610e6284848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506128559050565b600c549091506001600160a01b03808316911614610ec25760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964205369676e61747572650000000000000000000000000000006044820152606401610cf9565b84601454610ed09190613a10565b341015610f1f5760405162461bcd60e51b815260206004820152601560248201527f496e636f72726563742065746865722076616c756500000000000000000000006044820152606401610cf9565b601854610100900460ff16610f765760405162461bcd60e51b815260206004820152601760248201527f50726573616c6520686173206e6f7420737461727465640000000000000000006044820152606401610cf9565b7f0000000000000000000000000000000000000000000000000000000000000000851115610fe65760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d61782070657220747800000000000000000000000000006044820152606401610cf9565b336000908152601660205260409020547f000000000000000000000000000000000000000000000000000000000000000090611023908790613a2f565b11156110715760405162461bcd60e51b815260206004820152601860248201527f457863656564732077686974656c69737420737570706c7900000000000000006044820152606401610cf9565b60035460025486919003600019016110899190613a2f565b60195461109890612710613a47565b116110d65760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610cf9565b6110e03386612879565b33600090815260166020526040812080548792906110ff908490613a2f565b909155505050505050505050565b6000611118826118d9565b9050806001600160a01b0316836001600160a01b031603611165576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590611185575061118381336124c2565b155b156111bc576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111c7838383612893565b505050565b600e546001600160a01b03161561124c57600e5460405163164746fd60e11b81526001600160a01b03858116600483015284811660248301526044820184905290911690632c8e8dfa90606401600060405180830381600087803b15801561123357600080fd5b505af1158015611247573d6000803e3d6000fd5b505050505b6111c78383836128ef565b6000546001600160a01b0316331461129f5760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146113095760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b600f80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116600160a01b9182900460ff1615909102179055565b6000546001600160a01b0316331461138d5760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6018805460ff19811660ff90911615179055565b6000546001600160a01b031633146113e95760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b601455565b6000546001600160a01b031633146114365760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6002600154036114885760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cf9565b6002600155476114da5760405162461bcd60e51b815260206004820152601a60248201527f436f6e7472616374206d75737420686176652062616c616e63650000000000006044820152606401610cf9565b60006114e74760646128fa565b600a54600b549192506000916001600160a01b03909116906115099084613a10565b604051600081818185875af1925050503d8060008114611545576040519150601f19603f3d011682016040523d82523d6000602084013e61154a565b606091505b505090508061159b5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7420746f20646576656c6f70657273206661696c65642e0000006044820152606401610cf9565b604051600090339047908381818185875af1925050503d80600081146115dd576040519150601f19603f3d011682016040523d82523d6000602084013e6115e2565b606091505b50509050806116335760405162461bcd60e51b815260206004820152601260248201527f5769746864726177616c206661696c65642e00000000000000000000000000006044820152606401610cf9565b50506001805550565b6111c783838360405180602001604052806000815250611f18565b6000546001600160a01b0316331461169f5760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6111c7601183836134df565b6000546001600160a01b031633146116f35760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6019548111156117455760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d617820636c61696d7300000000000000000000000000006044820152606401610cf9565b601954601a546117559083613a2f565b11156117a35760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d617820636c61696d7300000000000000000000000000006044820152606401610cf9565b60035460025482919003600019016117bb9190613a2f565b6019546117ca90612710613a47565b116118085760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610cf9565b60006118347f000000000000000000000000000000000000000000000000000000000000000083613a74565b905060005b8181101561187d5761186b847f0000000000000000000000000000000000000000000000000000000000000000612879565b8061187581613a88565b915050611839565b5060006118aa7f000000000000000000000000000000000000000000000000000000000000000084613aa1565b905080156118bc576118bc8482612879565b82601a60008282546118ce9190613a2f565b909155505050505050565b60006118e48261292c565b5192915050565b600f546040517f6b0a36cc0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690636b0a36cc9061193a908790879087908790600401613ab5565b600060405180830381600087803b15801561195457600080fd5b505af1158015611968573d6000803e3d6000fd5b5050505050505050565b60006001600160a01b0382166119b4576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b6000546001600160a01b03163314611a225760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b611a2c6000612a6e565b565b6000546001600160a01b03163314611a765760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b601055565b60606000611a8883611972565b67ffffffffffffffff811115611aa057611aa061387a565b604051908082528060200260200182016040528015611ac9578160200160208202803683370190505b50600254909150600080805b83811015611b9b57600081815260066020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925290611b3d5750611b93565b80516001600160a01b031615611b5257805192505b876001600160a01b0316836001600160a01b031603611b915781868580600101965081518110611b8457611b84613af5565b6020026020010181815250505b505b600101611ad5565b509295945050505050565b6040805160608101825260008082526020820181905291810191909152610bb98261292c565b606060058054610bce906139c0565b336001600160a01b03831603611c1d576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b323314611cd85760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610cf9565b80601354611ce69190613a10565b341015611d355760405162461bcd60e51b815260206004820152601560248201527f496e636f72726563742065746865722076616c756500000000000000000000006044820152606401610cf9565b7f0000000000000000000000000000000000000000000000000000000000000000811115611da55760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d61782070657220747800000000000000000000000000006044820152606401610cf9565b336000908152601760205260409020547f000000000000000000000000000000000000000000000000000000000000000090611de2908390613a2f565b1115611e305760405162461bcd60e51b815260206004820152601d60248201527f45786365656473206d696e747320666f7220746869732077616c6c65740000006044820152606401610cf9565b60185460ff16611e825760405162461bcd60e51b815260206004820152601460248201527f53616c6520686173206e6f7420737461727465640000000000000000000000006044820152606401610cf9565b6003546002548291900360001901611e9a9190613a2f565b601954611ea990612710613a47565b11611ee75760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610cf9565b611ef13382612879565b3360009081526017602052604081208054839290611f10908490613a2f565b909155505050565b600e546001600160a01b031615611f9857600e5460405163164746fd60e11b81526001600160a01b03868116600483015285811660248301526044820185905290911690632c8e8dfa90606401600060405180830381600087803b158015611f7f57600080fd5b505af1158015611f93573d6000803e3d6000fd5b505050505b611fa484848484612abe565b50505050565b6060611fb58261281c565b611feb576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ff5612b09565b905080516000036120155760405180602001604052806000815250612040565b8061201f84612b18565b604051602001612030929190613b0b565b6040516020818303038152906040525b9392505050565b6000546001600160a01b0316331461208f5760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146120f95760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b60118054612128906139c0565b80601f0160208091040260200160405190810160405280929190818152602001828054612154906139c0565b80156121a15780601f10612176576101008083540402835291602001916121a1565b820191906000526020600020905b81548152906001019060200180831161218457829003601f168201915b505050505081565b600f546001600160a01b03166122015760405162461bcd60e51b815260206004820152601960248201527f4272656164696e6720636f6e7472616374206e6f7420736574000000000000006044820152606401610cf9565b600e546001600160a01b03166122595760405162461bcd60e51b815260206004820152601360248201527f5969656c6420546f6b656e206e6f7420736574000000000000000000000000006044820152606401610cf9565b600f54600160a01b900460ff166122b25760405162461bcd60e51b815260206004820152601660248201527f4272656564696e67206973206e6f7420616374697665000000000000000000006044820152606401610cf9565b336122bc836118d9565b6001600160a01b03161480156122e25750336122d7826118d9565b6001600160a01b0316145b6122eb57600080fd5b600f546040517fd9ecad7b00000000000000000000000000000000000000000000000000000000815260048101849052602481018390526001600160a01b039091169063d9ecad7b906044016020604051808303816000875af1158015612356573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237a9190613b3a565b61238357600080fd5b600e546001600160a01b0316639dc29fac336010546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156123de57600080fd5b505af11580156123f2573d6000803e3d6000fd5b505050506124076124003390565b6001612879565b5050565b6000546001600160a01b031633146124535760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b600b55565b6000546001600160a01b031633146124a05760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6012546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa15801561252d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125519190613b57565b6001600160a01b0316148061257e57506001600160a01b03831660009081526015602052604090205460ff165b1561258d576001915050610bb9565b6001600160a01b0380851660009081526009602090815260408083209387168352929052205460ff165b949350505050565b6000546001600160a01b031633146126075760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6018805461ff001981166101009182900460ff1615909102179055565b6000546001600160a01b0316331461266c5760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6001600160a01b0381166126e85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610cf9565b6126f181612a6e565b50565b6000546001600160a01b0316331461273c5760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b601355565b6000546001600160a01b031633146127895760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146127f35760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6001600160a01b03166000908152601560205260409020805460ff19811660ff90911615179055565b600081600111158015612830575060025482105b8015610bb9575050600090815260066020526040902054600160e01b900460ff161590565b60008060006128648585612c4d565b9150915061287181612cbb565b509392505050565b612407828260405180602001604052806000815250612e71565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6111c783838361307a565b60006129068284613aa1565b15612912576001612915565b60005b60ff166129228385613a74565b6120409190613a2f565b6040805160608101825260008082526020820181905291810191909152818060011115801561295c575060025481105b15612a3c57600081815260066020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612a3a5780516001600160a01b0316156129d0579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612a35579392505050565b6129d0565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612ac984848461307a565b6001600160a01b0383163b15158015612aeb5750612ae9848484846132b5565b155b15611fa4576040516368d2bf6b60e11b815260040160405180910390fd5b606060118054610bce906139c0565b606081600003612b5b57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612b855780612b6f81613a88565b9150612b7e9050600a83613a74565b9150612b5f565b60008167ffffffffffffffff811115612ba057612ba061387a565b6040519080825280601f01601f191660200182016040528015612bca576020820181803683370190505b5090505b84156125b757612bdf600183613a47565b9150612bec600a86613aa1565b612bf7906030613a2f565b60f81b818381518110612c0c57612c0c613af5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612c46600a86613a74565b9450612bce565b6000808251604103612c835760208301516040840151606085015160001a612c77878285856133a0565b94509450505050612cb4565b8251604003612cac5760208301516040840151612ca186838361348d565b935093505050612cb4565b506000905060025b9250929050565b6000816004811115612ccf57612ccf613b74565b03612cd75750565b6001816004811115612ceb57612ceb613b74565b03612d385760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610cf9565b6002816004811115612d4c57612d4c613b74565b03612d995760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610cf9565b6003816004811115612dad57612dad613b74565b03612e055760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610cf9565b6004816004811115612e1957612e19613b74565b036126f15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610cf9565b6002546001600160a01b038416612eb4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600003612eee576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416600081815260076020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600690925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15613026575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612fef60008784806001019550876132b5565b61300c576040516368d2bf6b60e11b815260040160405180910390fd5b808203612fa457826002541461302157600080fd5b61306b565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203613027575b50600255611fa4600085838684565b60006130858261292c565b9050836001600160a01b031681600001516001600160a01b0316146130d6576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b03861614806130f457506130f485336124c2565b8061310f57503361310484610c51565b6001600160a01b0316145b905080613148576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416613188576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61319460008487612893565b6001600160a01b038581166000908152600760209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661326a57600254821461326a578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906132ea903390899088908890600401613b8a565b6020604051808303816000875af1925050508015613325575060408051601f3d908101601f1916820190925261332291810190613bc6565b60015b613383573d808015613353576040519150601f19603f3d011682016040523d82523d6000602084013e613358565b606091505b50805160000361337b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156133d75750600090506003613484565b8460ff16601b141580156133ef57508460ff16601c14155b156134005750600090506004613484565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613454573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661347d57600060019250925050613484565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8316816134c360ff86901c601b613a2f565b90506134d1878288856133a0565b935093505050935093915050565b8280546134eb906139c0565b90600052602060002090601f01602090048101928261350d5760008555613553565b82601f106135265782800160ff19823516178555613553565b82800160010185558215613553579182015b82811115613553578235825591602001919060010190613538565b5061355f929150613563565b5090565b5b8082111561355f5760008155600101613564565b6001600160e01b0319811681146126f157600080fd5b6000602082840312156135a057600080fd5b813561204081613578565b6001600160a01b03811681146126f157600080fd5b6000602082840312156135d257600080fd5b8135612040816135ab565b60005b838110156135f85781810151838201526020016135e0565b83811115611fa45750506000910152565b600081518084526136218160208601602086016135dd565b601f01601f19169290920160200192915050565b6020815260006120406020830184613609565b60006020828403121561365a57600080fd5b5035919050565b60008083601f84011261367357600080fd5b50813567ffffffffffffffff81111561368b57600080fd5b602083019150836020828501011115612cb457600080fd5b6000806000604084860312156136b857600080fd5b833567ffffffffffffffff8111156136cf57600080fd5b6136db86828701613661565b909790965060209590950135949350505050565b6000806040838503121561370257600080fd5b823561370d816135ab565b946020939093013593505050565b60008060006060848603121561373057600080fd5b833561373b816135ab565b9250602084013561374b816135ab565b929592945050506040919091013590565b6000806020838503121561376f57600080fd5b823567ffffffffffffffff81111561378657600080fd5b61379285828601613661565b90969095509350505050565b600080600080606085870312156137b457600080fd5b843567ffffffffffffffff8111156137cb57600080fd5b6137d787828801613661565b90989097506020870135966040013595509350505050565b6020808252825182820181905260009190848201906040850190845b818110156138275783518352928401929184019160010161380b565b50909695505050505050565b80151581146126f157600080fd5b6000806040838503121561385457600080fd5b823561385f816135ab565b9150602083013561386f81613833565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156138a657600080fd5b84356138b1816135ab565b935060208501356138c1816135ab565b925060408501359150606085013567ffffffffffffffff808211156138e557600080fd5b818701915087601f8301126138f957600080fd5b81358181111561390b5761390b61387a565b604051601f8201601f19908116603f011681019083821181831017156139335761393361387a565b816040528281528a602084870101111561394c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561398357600080fd5b50508035926020909101359150565b600080604083850312156139a557600080fd5b82356139b0816135ab565b9150602083013561386f816135ab565b600181811c908216806139d457607f821691505b6020821081036139f457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613a2a57613a2a6139fa565b500290565b60008219821115613a4257613a426139fa565b500190565b600082821015613a5957613a596139fa565b500390565b634e487b7160e01b600052601260045260246000fd5b600082613a8357613a83613a5e565b500490565b600060018201613a9a57613a9a6139fa565b5060010190565b600082613ab057613ab0613a5e565b500690565b606081528360608201528385608083013760006080858301015260006080601f19601f870116830101905083602083015282604083015295945050505050565b634e487b7160e01b600052603260045260246000fd5b60008351613b1d8184602088016135dd565b835190830190613b318183602088016135dd565b01949350505050565b600060208284031215613b4c57600080fd5b815161204081613833565b600060208284031215613b6957600080fd5b8151612040816135ab565b634e487b7160e01b600052602160045260246000fd5b60006001600160a01b03808716835280861660208401525083604083015260806060830152613bbc6080830184613609565b9695505050505050565b600060208284031215613bd857600080fd5b81516120408161357856fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220a8a80aa56dd38ecba96ec717a22921826b2c33c93ec4d12726e19de5c2a34ca564736f6c634300080d00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000050000000000000000000000009d7a3f970bbc7ab9c8537dc9637051b824a9ed0c000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000448ce47d94fe8cb5130cd30fe31f78355fd71598000000000000000000000000eab1e71af80a159f6a03c6ab4beb52356f7d6db4000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f7673616d757261692d6e66742e776e2e722e61707073706f742e636f6d2f6170692f6d657461646174612f00000000000000000000000000
Deployed Bytecode
0x60806040526004361061038c5760003560e01c806371beeba1116101dc578063c8b5d46311610102578063e61eba77116100a0578063f4a0a5281161006f578063f4a0a52814610a8e578063f535f54614610aae578063f73c814b14610ace578063fa4d280c14610aee57600080fd5b8063e61eba7714610a19578063e985e9c514610a39578063f032554914610a59578063f2fde38b14610a6e57600080fd5b8063d26ea6c0116100dc578063d26ea6c0146109a4578063d547cfb7146109c4578063d9ecad7b146109d9578063e0fd53ec146109f957600080fd5b8063c8b5d46314610944578063cd77083314610964578063cd7c03261461098457600080fd5b806395d89b411161017a578063b88d4fde11610149578063b88d4fde146108d8578063b9a49213146108f8578063bf424e7e1461090e578063c87b56dd1461092457600080fd5b806395d89b41146108635780639ec00c9514610878578063a22cb465146108a5578063b3ab66b0146108c557600080fd5b806387b7fcaa116101b657806387b7fcaa1461079957806389303a1b146107cd5780638da5cb5b146107ee5780639231ab2a1461080c57600080fd5b806371beeba11461072c57806376d5de851461074c5780638462151c1461076c57600080fd5b80633644e515116102c15780635bab26e21161025f5780636a5928f51161022e5780636a5928f5146106b85780636b0a36cc146106d757806370a08231146106f7578063715018a61461071757600080fd5b80635bab26e214610632578063627804af146106625780636352211e14610682578063676dd563146106a257600080fd5b80633ccfd60b1161029b5780633ccfd60b146105c757806342842e0e146105dc57806355f804b3146105fc578063577ad34d1461061c57600080fd5b80633644e5151461056757806336a4e19b1461057d5780633a8403bd146105b157600080fd5b80631c8b232d1161032e57806326290eca1161030857806326290eca1461050757806332cb6b0c1461051c57806334918dfd146105325780633549345e1461054757600080fd5b80631c8b232d146104ad57806323b872dd146104c757806323ffce85146104e757600080fd5b8063081812fc1161036a578063081812fc1461042357806308e3f8681461045b578063095ea7b31461047057806318160ddd1461049057600080fd5b806301ffc9a71461039157806305fab7a5146103c657806306fdde0314610401575b600080fd5b34801561039d57600080fd5b506103b16103ac36600461358e565b610b22565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103f36103e13660046135c0565b60166020526000908152604090205481565b6040519081526020016103bd565b34801561040d57600080fd5b50610416610bbf565b6040516103bd9190613635565b34801561042f57600080fd5b5061044361043e366004613648565b610c51565b6040516001600160a01b0390911681526020016103bd565b61046e6104693660046136a3565b610cae565b005b34801561047c57600080fd5b5061046e61048b3660046136ef565b61110d565b34801561049c57600080fd5b5060035460025403600019016103f3565b3480156104b957600080fd5b506018546103b19060ff1681565b3480156104d357600080fd5b5061046e6104e236600461371b565b6111cc565b3480156104f357600080fd5b5061046e6105023660046135c0565b611257565b34801561051357600080fd5b5061046e6112c1565b34801561052857600080fd5b506103f361271081565b34801561053e57600080fd5b5061046e611345565b34801561055357600080fd5b5061046e610562366004613648565b6113a1565b34801561057357600080fd5b506103f3600d5481565b34801561058957600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000181565b3480156105bd57600080fd5b506103f360195481565b3480156105d357600080fd5b5061046e6113ee565b3480156105e857600080fd5b5061046e6105f736600461371b565b61163c565b34801561060857600080fd5b5061046e61061736600461375c565b611657565b34801561062857600080fd5b506103f360145481565b34801561063e57600080fd5b506103b161064d3660046135c0565b60156020526000908152604090205460ff1681565b34801561066e57600080fd5b5061046e61067d3660046136ef565b6116ab565b34801561068e57600080fd5b5061044361069d366004613648565b6118d9565b3480156106ae57600080fd5b506103f360135481565b3480156106c457600080fd5b506018546103b190610100900460ff1681565b3480156106e357600080fd5b5061046e6106f236600461379e565b6118eb565b34801561070357600080fd5b506103f36107123660046135c0565b611972565b34801561072357600080fd5b5061046e6119da565b34801561073857600080fd5b5061046e610747366004613648565b611a2e565b34801561075857600080fd5b50600e54610443906001600160a01b031681565b34801561077857600080fd5b5061078c6107873660046135c0565b611a7b565b6040516103bd91906137ef565b3480156107a557600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000581565b3480156107d957600080fd5b50600f546103b190600160a01b900460ff1681565b3480156107fa57600080fd5b506000546001600160a01b0316610443565b34801561081857600080fd5b5061082c610827366004613648565b611ba6565b6040805182516001600160a01b0316815260208084015167ffffffffffffffff1690820152918101511515908201526060016103bd565b34801561086f57600080fd5b50610416611bcc565b34801561088457600080fd5b506103f36108933660046135c0565b60176020526000908152604090205481565b3480156108b157600080fd5b5061046e6108c0366004613841565b611bdb565b61046e6108d3366004613648565b611c89565b3480156108e457600080fd5b5061046e6108f3366004613890565b611f18565b34801561090457600080fd5b506103f3601a5481565b34801561091a57600080fd5b506103f360105481565b34801561093057600080fd5b5061041661093f366004613648565b611faa565b34801561095057600080fd5b50600f54610443906001600160a01b031681565b34801561097057600080fd5b5061046e61097f3660046135c0565b612047565b34801561099057600080fd5b50601254610443906001600160a01b031681565b3480156109b057600080fd5b5061046e6109bf3660046135c0565b6120b1565b3480156109d057600080fd5b5061041661211b565b3480156109e557600080fd5b5061046e6109f4366004613970565b6121a9565b348015610a0557600080fd5b5061046e610a14366004613648565b61240b565b348015610a2557600080fd5b5061046e610a343660046135c0565b612458565b348015610a4557600080fd5b506103b1610a54366004613992565b6124c2565b348015610a6557600080fd5b5061046e6125bf565b348015610a7a57600080fd5b5061046e610a893660046135c0565b612624565b348015610a9a57600080fd5b5061046e610aa9366004613648565b6126f4565b348015610aba57600080fd5b5061046e610ac93660046135c0565b612741565b348015610ada57600080fd5b5061046e610ae93660046135c0565b6127ab565b348015610afa57600080fd5b506103f37f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610b8557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610bb957507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060048054610bce906139c0565b80601f0160208091040260200160405190810160405280929190818152602001828054610bfa906139c0565b8015610c475780601f10610c1c57610100808354040283529160200191610c47565b820191906000526020600020905b815481529060010190602001808311610c2a57829003601f168201915b5050505050905090565b6000610c5c8261281c565b610c92576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b323314610d025760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064015b60405180910390fd5b600c54839083906001600160a01b0316610d5e5760405162461bcd60e51b815260206004820152601560248201527f77686974656c697374206e6f7420656e61626c656400000000000000000000006044820152606401610cf9565b6000600d547f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c9610d8b3390565b604051602001610dae9291909182526001600160a01b0316602082015260400190565b60405160208183030381529060405280519060200120604051602001610e069291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b6040516020818303038152906040528051906020012090506000610e6284848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506128559050565b600c549091506001600160a01b03808316911614610ec25760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964205369676e61747572650000000000000000000000000000006044820152606401610cf9565b84601454610ed09190613a10565b341015610f1f5760405162461bcd60e51b815260206004820152601560248201527f496e636f72726563742065746865722076616c756500000000000000000000006044820152606401610cf9565b601854610100900460ff16610f765760405162461bcd60e51b815260206004820152601760248201527f50726573616c6520686173206e6f7420737461727465640000000000000000006044820152606401610cf9565b7f0000000000000000000000000000000000000000000000000000000000000001851115610fe65760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d61782070657220747800000000000000000000000000006044820152606401610cf9565b336000908152601660205260409020547f000000000000000000000000000000000000000000000000000000000000000190611023908790613a2f565b11156110715760405162461bcd60e51b815260206004820152601860248201527f457863656564732077686974656c69737420737570706c7900000000000000006044820152606401610cf9565b60035460025486919003600019016110899190613a2f565b60195461109890612710613a47565b116110d65760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610cf9565b6110e03386612879565b33600090815260166020526040812080548792906110ff908490613a2f565b909155505050505050505050565b6000611118826118d9565b9050806001600160a01b0316836001600160a01b031603611165576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590611185575061118381336124c2565b155b156111bc576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111c7838383612893565b505050565b600e546001600160a01b03161561124c57600e5460405163164746fd60e11b81526001600160a01b03858116600483015284811660248301526044820184905290911690632c8e8dfa90606401600060405180830381600087803b15801561123357600080fd5b505af1158015611247573d6000803e3d6000fd5b505050505b6111c78383836128ef565b6000546001600160a01b0316331461129f5760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146113095760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b600f80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116600160a01b9182900460ff1615909102179055565b6000546001600160a01b0316331461138d5760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6018805460ff19811660ff90911615179055565b6000546001600160a01b031633146113e95760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b601455565b6000546001600160a01b031633146114365760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6002600154036114885760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cf9565b6002600155476114da5760405162461bcd60e51b815260206004820152601a60248201527f436f6e7472616374206d75737420686176652062616c616e63650000000000006044820152606401610cf9565b60006114e74760646128fa565b600a54600b549192506000916001600160a01b03909116906115099084613a10565b604051600081818185875af1925050503d8060008114611545576040519150601f19603f3d011682016040523d82523d6000602084013e61154a565b606091505b505090508061159b5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7420746f20646576656c6f70657273206661696c65642e0000006044820152606401610cf9565b604051600090339047908381818185875af1925050503d80600081146115dd576040519150601f19603f3d011682016040523d82523d6000602084013e6115e2565b606091505b50509050806116335760405162461bcd60e51b815260206004820152601260248201527f5769746864726177616c206661696c65642e00000000000000000000000000006044820152606401610cf9565b50506001805550565b6111c783838360405180602001604052806000815250611f18565b6000546001600160a01b0316331461169f5760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6111c7601183836134df565b6000546001600160a01b031633146116f35760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6019548111156117455760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d617820636c61696d7300000000000000000000000000006044820152606401610cf9565b601954601a546117559083613a2f565b11156117a35760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d617820636c61696d7300000000000000000000000000006044820152606401610cf9565b60035460025482919003600019016117bb9190613a2f565b6019546117ca90612710613a47565b116118085760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610cf9565b60006118347f000000000000000000000000000000000000000000000000000000000000000583613a74565b905060005b8181101561187d5761186b847f0000000000000000000000000000000000000000000000000000000000000005612879565b8061187581613a88565b915050611839565b5060006118aa7f000000000000000000000000000000000000000000000000000000000000000584613aa1565b905080156118bc576118bc8482612879565b82601a60008282546118ce9190613a2f565b909155505050505050565b60006118e48261292c565b5192915050565b600f546040517f6b0a36cc0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690636b0a36cc9061193a908790879087908790600401613ab5565b600060405180830381600087803b15801561195457600080fd5b505af1158015611968573d6000803e3d6000fd5b5050505050505050565b60006001600160a01b0382166119b4576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b6000546001600160a01b03163314611a225760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b611a2c6000612a6e565b565b6000546001600160a01b03163314611a765760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b601055565b60606000611a8883611972565b67ffffffffffffffff811115611aa057611aa061387a565b604051908082528060200260200182016040528015611ac9578160200160208202803683370190505b50600254909150600080805b83811015611b9b57600081815260066020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925290611b3d5750611b93565b80516001600160a01b031615611b5257805192505b876001600160a01b0316836001600160a01b031603611b915781868580600101965081518110611b8457611b84613af5565b6020026020010181815250505b505b600101611ad5565b509295945050505050565b6040805160608101825260008082526020820181905291810191909152610bb98261292c565b606060058054610bce906139c0565b336001600160a01b03831603611c1d576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b323314611cd85760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610cf9565b80601354611ce69190613a10565b341015611d355760405162461bcd60e51b815260206004820152601560248201527f496e636f72726563742065746865722076616c756500000000000000000000006044820152606401610cf9565b7f0000000000000000000000000000000000000000000000000000000000000005811115611da55760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d61782070657220747800000000000000000000000000006044820152606401610cf9565b336000908152601760205260409020547f000000000000000000000000000000000000000000000000000000000000000590611de2908390613a2f565b1115611e305760405162461bcd60e51b815260206004820152601d60248201527f45786365656473206d696e747320666f7220746869732077616c6c65740000006044820152606401610cf9565b60185460ff16611e825760405162461bcd60e51b815260206004820152601460248201527f53616c6520686173206e6f7420737461727465640000000000000000000000006044820152606401610cf9565b6003546002548291900360001901611e9a9190613a2f565b601954611ea990612710613a47565b11611ee75760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610cf9565b611ef13382612879565b3360009081526017602052604081208054839290611f10908490613a2f565b909155505050565b600e546001600160a01b031615611f9857600e5460405163164746fd60e11b81526001600160a01b03868116600483015285811660248301526044820185905290911690632c8e8dfa90606401600060405180830381600087803b158015611f7f57600080fd5b505af1158015611f93573d6000803e3d6000fd5b505050505b611fa484848484612abe565b50505050565b6060611fb58261281c565b611feb576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ff5612b09565b905080516000036120155760405180602001604052806000815250612040565b8061201f84612b18565b604051602001612030929190613b0b565b6040516020818303038152906040525b9392505050565b6000546001600160a01b0316331461208f5760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146120f95760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b60118054612128906139c0565b80601f0160208091040260200160405190810160405280929190818152602001828054612154906139c0565b80156121a15780601f10612176576101008083540402835291602001916121a1565b820191906000526020600020905b81548152906001019060200180831161218457829003601f168201915b505050505081565b600f546001600160a01b03166122015760405162461bcd60e51b815260206004820152601960248201527f4272656164696e6720636f6e7472616374206e6f7420736574000000000000006044820152606401610cf9565b600e546001600160a01b03166122595760405162461bcd60e51b815260206004820152601360248201527f5969656c6420546f6b656e206e6f7420736574000000000000000000000000006044820152606401610cf9565b600f54600160a01b900460ff166122b25760405162461bcd60e51b815260206004820152601660248201527f4272656564696e67206973206e6f7420616374697665000000000000000000006044820152606401610cf9565b336122bc836118d9565b6001600160a01b03161480156122e25750336122d7826118d9565b6001600160a01b0316145b6122eb57600080fd5b600f546040517fd9ecad7b00000000000000000000000000000000000000000000000000000000815260048101849052602481018390526001600160a01b039091169063d9ecad7b906044016020604051808303816000875af1158015612356573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237a9190613b3a565b61238357600080fd5b600e546001600160a01b0316639dc29fac336010546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156123de57600080fd5b505af11580156123f2573d6000803e3d6000fd5b505050506124076124003390565b6001612879565b5050565b6000546001600160a01b031633146124535760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b600b55565b6000546001600160a01b031633146124a05760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6012546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa15801561252d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125519190613b57565b6001600160a01b0316148061257e57506001600160a01b03831660009081526015602052604090205460ff165b1561258d576001915050610bb9565b6001600160a01b0380851660009081526009602090815260408083209387168352929052205460ff165b949350505050565b6000546001600160a01b031633146126075760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6018805461ff001981166101009182900460ff1615909102179055565b6000546001600160a01b0316331461266c5760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6001600160a01b0381166126e85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610cf9565b6126f181612a6e565b50565b6000546001600160a01b0316331461273c5760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b601355565b6000546001600160a01b031633146127895760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146127f35760405162461bcd60e51b81526020600482018190526024820152600080516020613be48339815191526044820152606401610cf9565b6001600160a01b03166000908152601560205260409020805460ff19811660ff90911615179055565b600081600111158015612830575060025482105b8015610bb9575050600090815260066020526040902054600160e01b900460ff161590565b60008060006128648585612c4d565b9150915061287181612cbb565b509392505050565b612407828260405180602001604052806000815250612e71565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6111c783838361307a565b60006129068284613aa1565b15612912576001612915565b60005b60ff166129228385613a74565b6120409190613a2f565b6040805160608101825260008082526020820181905291810191909152818060011115801561295c575060025481105b15612a3c57600081815260066020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612a3a5780516001600160a01b0316156129d0579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612a35579392505050565b6129d0565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612ac984848461307a565b6001600160a01b0383163b15158015612aeb5750612ae9848484846132b5565b155b15611fa4576040516368d2bf6b60e11b815260040160405180910390fd5b606060118054610bce906139c0565b606081600003612b5b57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612b855780612b6f81613a88565b9150612b7e9050600a83613a74565b9150612b5f565b60008167ffffffffffffffff811115612ba057612ba061387a565b6040519080825280601f01601f191660200182016040528015612bca576020820181803683370190505b5090505b84156125b757612bdf600183613a47565b9150612bec600a86613aa1565b612bf7906030613a2f565b60f81b818381518110612c0c57612c0c613af5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612c46600a86613a74565b9450612bce565b6000808251604103612c835760208301516040840151606085015160001a612c77878285856133a0565b94509450505050612cb4565b8251604003612cac5760208301516040840151612ca186838361348d565b935093505050612cb4565b506000905060025b9250929050565b6000816004811115612ccf57612ccf613b74565b03612cd75750565b6001816004811115612ceb57612ceb613b74565b03612d385760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610cf9565b6002816004811115612d4c57612d4c613b74565b03612d995760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610cf9565b6003816004811115612dad57612dad613b74565b03612e055760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610cf9565b6004816004811115612e1957612e19613b74565b036126f15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610cf9565b6002546001600160a01b038416612eb4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600003612eee576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416600081815260076020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600690925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15613026575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612fef60008784806001019550876132b5565b61300c576040516368d2bf6b60e11b815260040160405180910390fd5b808203612fa457826002541461302157600080fd5b61306b565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203613027575b50600255611fa4600085838684565b60006130858261292c565b9050836001600160a01b031681600001516001600160a01b0316146130d6576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b03861614806130f457506130f485336124c2565b8061310f57503361310484610c51565b6001600160a01b0316145b905080613148576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416613188576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61319460008487612893565b6001600160a01b038581166000908152600760209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661326a57600254821461326a578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906132ea903390899088908890600401613b8a565b6020604051808303816000875af1925050508015613325575060408051601f3d908101601f1916820190925261332291810190613bc6565b60015b613383573d808015613353576040519150601f19603f3d011682016040523d82523d6000602084013e613358565b606091505b50805160000361337b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156133d75750600090506003613484565b8460ff16601b141580156133ef57508460ff16601c14155b156134005750600090506004613484565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613454573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661347d57600060019250925050613484565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8316816134c360ff86901c601b613a2f565b90506134d1878288856133a0565b935093505050935093915050565b8280546134eb906139c0565b90600052602060002090601f01602090048101928261350d5760008555613553565b82601f106135265782800160ff19823516178555613553565b82800160010185558215613553579182015b82811115613553578235825591602001919060010190613538565b5061355f929150613563565b5090565b5b8082111561355f5760008155600101613564565b6001600160e01b0319811681146126f157600080fd5b6000602082840312156135a057600080fd5b813561204081613578565b6001600160a01b03811681146126f157600080fd5b6000602082840312156135d257600080fd5b8135612040816135ab565b60005b838110156135f85781810151838201526020016135e0565b83811115611fa45750506000910152565b600081518084526136218160208601602086016135dd565b601f01601f19169290920160200192915050565b6020815260006120406020830184613609565b60006020828403121561365a57600080fd5b5035919050565b60008083601f84011261367357600080fd5b50813567ffffffffffffffff81111561368b57600080fd5b602083019150836020828501011115612cb457600080fd5b6000806000604084860312156136b857600080fd5b833567ffffffffffffffff8111156136cf57600080fd5b6136db86828701613661565b909790965060209590950135949350505050565b6000806040838503121561370257600080fd5b823561370d816135ab565b946020939093013593505050565b60008060006060848603121561373057600080fd5b833561373b816135ab565b9250602084013561374b816135ab565b929592945050506040919091013590565b6000806020838503121561376f57600080fd5b823567ffffffffffffffff81111561378657600080fd5b61379285828601613661565b90969095509350505050565b600080600080606085870312156137b457600080fd5b843567ffffffffffffffff8111156137cb57600080fd5b6137d787828801613661565b90989097506020870135966040013595509350505050565b6020808252825182820181905260009190848201906040850190845b818110156138275783518352928401929184019160010161380b565b50909695505050505050565b80151581146126f157600080fd5b6000806040838503121561385457600080fd5b823561385f816135ab565b9150602083013561386f81613833565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156138a657600080fd5b84356138b1816135ab565b935060208501356138c1816135ab565b925060408501359150606085013567ffffffffffffffff808211156138e557600080fd5b818701915087601f8301126138f957600080fd5b81358181111561390b5761390b61387a565b604051601f8201601f19908116603f011681019083821181831017156139335761393361387a565b816040528281528a602084870101111561394c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561398357600080fd5b50508035926020909101359150565b600080604083850312156139a557600080fd5b82356139b0816135ab565b9150602083013561386f816135ab565b600181811c908216806139d457607f821691505b6020821081036139f457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613a2a57613a2a6139fa565b500290565b60008219821115613a4257613a426139fa565b500190565b600082821015613a5957613a596139fa565b500390565b634e487b7160e01b600052601260045260246000fd5b600082613a8357613a83613a5e565b500490565b600060018201613a9a57613a9a6139fa565b5060010190565b600082613ab057613ab0613a5e565b500690565b606081528360608201528385608083013760006080858301015260006080601f19601f870116830101905083602083015282604083015295945050505050565b634e487b7160e01b600052603260045260246000fd5b60008351613b1d8184602088016135dd565b835190830190613b318183602088016135dd565b01949350505050565b600060208284031215613b4c57600080fd5b815161204081613833565b600060208284031215613b6957600080fd5b8151612040816135ab565b634e487b7160e01b600052602160045260246000fd5b60006001600160a01b03808716835280861660208401525083604083015260806060830152613bbc6080830184613609565b9695505050505050565b600060208284031215613bd857600080fd5b81516120408161357856fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220a8a80aa56dd38ecba96ec717a22921826b2c33c93ec4d12726e19de5c2a34ca564736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000050000000000000000000000009d7a3f970bbc7ab9c8537dc9637051b824a9ed0c000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000448ce47d94fe8cb5130cd30fe31f78355fd71598000000000000000000000000eab1e71af80a159f6a03c6ab4beb52356f7d6db4000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f7673616d757261692d6e66742e776e2e722e61707073706f742e636f6d2f6170692f6d657461646174612f00000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseUri (string): https://vsamurai-nft.wn.r.appspot.com/api/metadata/
Arg [1] : _maxPerWalletWhitelist (uint256): 1
Arg [2] : _maxPerWalletPublicSale (uint256): 5
Arg [3] : _developerAddress (address): 0x9D7a3F970Bbc7aB9C8537dc9637051b824A9eD0C
Arg [4] : _developerFee (uint256): 10
Arg [5] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [6] : _owner (address): 0x448Ce47d94fe8cb5130cD30Fe31F78355FD71598
Arg [7] : _signer (address): 0xeAB1e71AF80a159f6A03c6Ab4BEB52356f7d6dB4
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 0000000000000000000000009d7a3f970bbc7ab9c8537dc9637051b824a9ed0c
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [6] : 000000000000000000000000448ce47d94fe8cb5130cd30fe31f78355fd71598
Arg [7] : 000000000000000000000000eab1e71af80a159f6a03c6ab4beb52356f7d6db4
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000033
Arg [9] : 68747470733a2f2f7673616d757261692d6e66742e776e2e722e61707073706f
Arg [10] : 742e636f6d2f6170692f6d657461646174612f00000000000000000000000000
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.