ERC-721
NFT
Overview
Max Total Supply
204 SS
Holders
80
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
6 SSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MintEngineV1
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "./MintEngineContract.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract MintEngineV1 is ERC721Enumerable, Ownable, MintEngineContract { using Strings for uint256; using SafeMath for uint256; using ECDSA for bytes32; //NFT params string public baseURI; string public defaultURI; string public mycontractURI; bool public finalizeBaseUri = false; uint256 public presalePrice; uint256 public presaleSupply; uint256 public salePrice; uint256 public totalSaleSupply; bool public isSalePaused = false; bool public isRevealed = false; bool public mintPassActive = false; bool public preSaleActive = false; bool public mintActive = false; //royalty address public royaltyAddr; uint256 public royaltyBasis; address private vaultAddress; constructor( string memory _name, string memory _symbol, string memory _bURI, string memory _dURI, string memory _cURI, uint256 _psp, uint256 _pss, uint256 _sp, uint256 _tss, address _ra, uint256 _rb ) ERC721(_name, _symbol) { setBaseURI(_bURI); defaultURI = _dURI; mycontractURI = _cURI; presalePrice = _psp; presaleSupply = _pss; salePrice = _sp; totalSaleSupply = _tss; royaltyAddr = _ra; royaltyBasis = _rb; vaultAddress = msg.sender; } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function mintPassMint(bytes memory signature, uint8 _mintAmount) external payable { uint256 supply = totalSupply(); require(!isSalePaused, "Sale Paused"); require(mintPassActive, "MintPass Inactive"); require(super.verifySigner(msg.sender, "mintPassMint", signature), "INVALID MINTPASS SIGNATURE!"); require(supply + _mintAmount <= totalSaleSupply, "TOTAL SUPPLY REACHED!"); _mint(_mintAmount, supply); } function preSaleMint(bytes memory signature, uint8 _mintAmount) external payable { uint256 supply = totalSupply(); require(!isSalePaused, "Sale Paused"); require(preSaleActive, "Pre-Sale Inactive"); require(super.verifySigner(msg.sender, "preSaleMint", signature), "INVALID PRESALE SIGNATURE!"); require(supply + _mintAmount <= presaleSupply, "PRESALE SUPPLY REACHED"); require(msg.value >= presalePrice * _mintAmount, "INVALID PAYMENT"); _mint(_mintAmount, supply); } function mint(uint8 _mintAmount) external payable { uint256 supply = totalSupply(); require(!isSalePaused, "Sale Paused"); require(mintActive, "Mint Inactive"); require(supply + _mintAmount <= totalSaleSupply, "TOTAL SUPPLY REACHED!"); require(msg.value >= salePrice * _mintAmount, "INVALID PAYMENT"); _mint(_mintAmount, supply); } function _mint(uint8 _mintAmount, uint256 supply) internal { for (uint256 i = 1; i <= _mintAmount; i++) { _safeMint(msg.sender, supply + i); } } function walletOfOwner(address _owner) external view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } function tokenURI(uint256 id) public view virtual override returns (string memory) { require( _exists(id), "ERC721Metadata: URI query for nonexistent token" ); uint256 supply = totalSupply(); string memory currentBaseURI = _baseURI(); if (isRevealed && supply >= id) { return string(abi.encodePacked(currentBaseURI, id.toString())); } return defaultURI; } function contractURI() external view returns (string memory) { return string(abi.encodePacked(mycontractURI)); } //ERC-2981 function royaltyInfo(uint256, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount){ return (royaltyAddr, _salePrice.mul(royaltyBasis).div(10000)); } //OWNER FUNCTIONS function toggleMintPass(bool _state) external onlyOwner { mintPassActive = _state; } function togglePreSale(bool _state) external onlyOwner { preSaleActive = _state; } function toggleMint(bool _state) external onlyOwner { mintActive = _state; } function toggleReveal(bool _state) external onlyOwner { isRevealed = _state; } function setBaseURI(string memory _newBaseURI) public onlyOwner { require(!finalizeBaseUri); baseURI = _newBaseURI; } function finalizeBaseURI() external onlyOwner { finalizeBaseUri = true; } function setContractURI(string memory _contractURI) external onlyOwner { mycontractURI = _contractURI; //Contract Metadata format based on: https://docs.opensea.io/docs/contract-level-metadata } function setRoyalty(address _royaltyAddr, uint256 _royaltyBasis) external onlyOwner { royaltyAddr = _royaltyAddr; royaltyBasis = _royaltyBasis; } function setVaultAddress(address _va) external onlyOwner { vaultAddress = _va; } function pause(bool _state) external onlyOwner { isSalePaused = _state; } function reserveMint(uint256 _mintAmount, address _to) external onlyOwner { uint256 supply = totalSupply(); require(supply + _mintAmount <= totalSaleSupply, "TOTAL SUPPLY REACHED!"); for (uint256 i = 1; i <= _mintAmount; i++) { _safeMint(_to, supply + i); } } function withdraw() external onlyOwner { _withdraw(); } function mintEngineWithdraw() external onlyMintEngine { _withdraw(); } function _withdraw() private { require(address(this).balance > 0); uint256 originalBalance = (address(this).balance); // MintEngine Fee payable(super.getMintEngineVault()).transfer(originalBalance.mul(super.getMintEngineFee()).div(10000)); // Dynamic payees MintEnginePayee[] memory payees = Payees; for (uint i = 0; i < payees.length; i++){ MintEnginePayee memory p = payees[i]; payable(p.payeeAddress).transfer(originalBalance.mul(p.basisFee).div(10000)); } // Owner payable(vaultAddress).transfer(address(this).balance); } function addPayee( address _address, uint256 _fee ) external onlyOwner { Payees.push(MintEnginePayee(_address, _fee)); } function editPayee( uint256 _index, address _address, uint256 _fee ) external onlyOwner { MintEnginePayee storage p = Payees[_index]; p.payeeAddress = _address; p.basisFee = _fee; } function healthCheck() external pure returns (bool) { return true; } function setPresalePrice(uint256 psp) external onlyOwner { presalePrice = psp; } function setSalePrice(uint256 sp) external onlyOwner { salePrice = sp; } function getContractBalance() external view returns (uint256) { return address(this).balance; } }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; abstract contract MintEngineContract is Context { using ECDSA for bytes32; using Counters for Counters.Counter; mapping (address => Counters.Counter) private nonces; MintEnginePayee[] public Payees; address private mintEngineOwner; address private mintEngineSigner; address private mintEngineVault; uint256 private mintEngineFee = 1000; struct MintEngineNFT { uint256 tokenId; string ipfsMetadataHash; } struct MintEnginePayee { address payeeAddress; uint256 basisFee; } constructor() { mintEngineOwner = 0x8612f5c320e04867E73dA6c4D381aC87Ae8911A2; mintEngineSigner = 0xB70656932D602aca3C8318BC1C1285Cfb39DEC53; mintEngineVault = 0x5350Aa319221d04834BC797709dCc891A964F1Ca; } /** * @dev Throws if called by any account other than the MintEngine owner. */ modifier onlyMintEngine() { _checkMintEngineOwner(); _; } /** * @dev Returns the address of the MintEngine Owner. */ function getMintEngineOwner() public view virtual returns (address) { return mintEngineOwner; } /** * @dev Returns the address of the MintEngine Vault. */ function getMintEngineVault() public view virtual returns (address) { return mintEngineVault; } /** * @dev Returns the integer of the MintEngine Fee. */ function getMintEngineFee() public view virtual returns (uint256) { return mintEngineFee; } /** * @dev Throws if the sender is not the MintEngine owner. */ function _checkMintEngineOwner() internal view virtual { require(getMintEngineOwner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Simplifies hashing a string for signature verification */ function hashData(string memory _s, string memory _k) private view returns(bytes32) { return keccak256(abi.encodePacked(currentMintEngineNonce(msg.sender), _k, _s)); } function hashData(address _a, string memory _k) private view returns(bytes32) { return keccak256(abi.encodePacked(currentMintEngineNonce(msg.sender), _k, _a)); } function verifySigner(address _ad, string memory _k, bytes memory signature) internal returns(bool) { bytes32 h = hashData(_ad, _k); return verifySigner(h, signature); } function verifySigner(string memory _sth, string memory _k, bytes memory signature) internal returns(bool) { bytes32 h = hashData(_sth, _k); return verifySigner(h, signature); } function verifySigner(bytes32 hash, bytes memory signature) internal returns(bool) { bool isVerified = mintEngineSigner == hash.recover(signature); nonces[msg.sender].increment(); return isVerified; } /** * @dev Allows the MintEngine admins only to change MintEngine Only information for operability. * Requires private key signature generation by system. */ function setMingEngineOwner(bytes memory signature, address newOwner) public { require(verifySigner(hashData(msg.sender, "mintEngineOnly"), signature), "INVALID SIGNATURE"); mintEngineOwner = newOwner; } function setMintEngineSigner(bytes memory signature, address newSigner) public { require(verifySigner(hashData(msg.sender, "mintEngineOnly"), signature), "INVALID SIGNATURE"); mintEngineSigner = newSigner; } function setMintEngineVault(bytes memory signature, address newVault) public { require(verifySigner(hashData(msg.sender, "mintEngineOnly"), signature), "INVALID SIGNATURE"); mintEngineVault = newVault; } function setMintEngineFee(bytes memory signature, uint256 fee) public { require(verifySigner(hashData(msg.sender, "mintEngineOnly"), signature), "INVALID SIGNATURE"); mintEngineFee = fee ; } function currentMintEngineNonce(address owner) public view returns (uint256) { return nonces[owner].current(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.3) (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) { 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. /// @solidity memory-safe-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 { 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 (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @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) { _requireMinted(tokenId); 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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 { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _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 { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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 ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 (last updated v4.7.0) (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`. * * 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; /** * @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 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// 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 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_bURI","type":"string"},{"internalType":"string","name":"_dURI","type":"string"},{"internalType":"string","name":"_cURI","type":"string"},{"internalType":"uint256","name":"_psp","type":"uint256"},{"internalType":"uint256","name":"_pss","type":"uint256"},{"internalType":"uint256","name":"_sp","type":"uint256"},{"internalType":"uint256","name":"_tss","type":"uint256"},{"internalType":"address","name":"_ra","type":"address"},{"internalType":"uint256","name":"_rb","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"Payees","outputs":[{"internalType":"address","name":"payeeAddress","type":"address"},{"internalType":"uint256","name":"basisFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"addPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"currentMintEngineNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"editPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizeBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizeBaseUri","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintEngineFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintEngineOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintEngineVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"healthCheck","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSalePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_mintAmount","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEngineWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPassActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint8","name":"_mintAmount","type":"uint8"}],"name":"mintPassMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mycontractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"preSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint8","name":"_mintAmount","type":"uint8"}],"name":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyBasis","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"newOwner","type":"address"}],"name":"setMingEngineOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setMintEngineFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"newSigner","type":"address"}],"name":"setMintEngineSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"newVault","type":"address"}],"name":"setMintEngineVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"psp","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyAddr","type":"address"},{"internalType":"uint256","name":"_royaltyBasis","type":"uint256"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"sp","type":"uint256"}],"name":"setSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_va","type":"address"}],"name":"setVaultAddress","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":"bool","name":"_state","type":"bool"}],"name":"toggleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"toggleMintPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"togglePreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"toggleReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSaleSupply","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":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526103e86010556014805460ff191690556019805464ffffffffff191690553480156200002f57600080fd5b5060405162003d8c38038062003d8c833981016040819052620000529162000345565b8a8a600062000062838262000519565b50600162000071828262000519565b5050506200008e620000886200017f60201b60201c565b62000183565b600d80546001600160a01b0319908116738612f5c320e04867e73da6c4d381ac87ae8911a217909155600e8054821673b70656932d602aca3c8318bc1c1285cfb39dec53179055600f8054909116735350aa319221d04834bc797709dcc891a964f1ca179055620000ff89620001d5565b60126200010d898262000519565b5060136200011c888262000519565b50601595909555601693909355601791909155601855601980546001600160a01b039092166501000000000002600160281b600160c81b0319909216919091179055601a555050601b80546001600160a01b0319163317905550620005e5915050565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001df62000202565b60145460ff1615620001f057600080fd5b6011620001fe828262000519565b5050565b600a546001600160a01b03163314620002615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200028b57600080fd5b81516001600160401b0380821115620002a857620002a862000263565b604051601f8301601f19908116603f01168101908282118183101715620002d357620002d362000263565b81604052838152602092508683858801011115620002f057600080fd5b600091505b83821015620003145785820183015181830184015290820190620002f5565b600093810190920192909252949350505050565b80516001600160a01b03811681146200034057600080fd5b919050565b60008060008060008060008060008060006101608c8e0312156200036857600080fd5b8b516001600160401b038111156200037f57600080fd5b6200038d8e828f0162000279565b60208e0151909c5090506001600160401b03811115620003ac57600080fd5b620003ba8e828f0162000279565b60408e0151909b5090506001600160401b03811115620003d957600080fd5b620003e78e828f0162000279565b60608e0151909a5090506001600160401b038111156200040657600080fd5b620004148e828f0162000279565b60808e015190995090506001600160401b038111156200043357600080fd5b620004418e828f0162000279565b97505060a08c0151955060c08c0151945060e08c015193506101008c01519250620004706101208d0162000328565b91506101408c015190509295989b509295989b9093969950565b600181811c908216806200049f57607f821691505b602082108103620004c057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200051457600081815260208120601f850160051c81016020861015620004ef5750805b601f850160051c820191505b818110156200051057828155600101620004fb565b5050505b505050565b81516001600160401b0381111562000535576200053562000263565b6200054d816200054684546200048a565b84620004c6565b602080601f8311600181146200058557600084156200056c5750858301515b600019600386901b1c1916600185901b17855562000510565b600085815260208120601f198616915b82811015620005b65788860151825594840194600190910190840162000595565b5085821015620005d55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61379780620005f56000396000f3fe6080604052600436106103ed5760003560e01c80636c0360eb11610208578063b3a196e911610118578063d35ea456116100ab578063ee5ad9e61161007a578063ee5ad9e614610b84578063f053d37014610ba4578063f2fde38b14610bbe578063f51f96dd14610bde578063f971c2a514610bf457600080fd5b8063d35ea45614610af1578063e7051a4d14610b11578063e8a3d48514610b26578063e985e9c514610b3b57600080fd5b8063bc59d706116100e7578063bc59d70614610a7b578063c6ec690914610a9b578063c82e82d514610ab1578063c87b56dd14610ad157600080fd5b8063b3a196e914610a14578063b4f13a0a14610a2a578063b88d4fde14610a3d578063ba0c2c8d14610a5d57600080fd5b8063844947081161019b578063938e3d7b1161016a578063938e3d7b1461098d57806395d89b41146109ad5780639a245963146109c2578063a22cb465146109e0578063b252720b14610a0057600080fd5b8063844947081461090e57806385535cc51461092f5780638a4dcd851461094f5780638da5cb5b1461096f57600080fd5b806370a08231116101d757806370a08231146108a3578063715018a6146108c357806378231978146108d857806379a34912146108ee57600080fd5b80636c0360eb146108485780636ecd23061461085d5780636f45dee9146108705780636f9fb98a1461089057600080fd5b80633009c0831161030357806342842e0e1161029657806354214f691161026557806354214f69146107b457806355f804b3146107d357806360b02f70146107f35780636352211e14610813578063639d7e111461083357600080fd5b806342842e0e14610727578063438b6300146107475780634c100321146107745780634f6ccce71461079457600080fd5b80633680ccec116102d25780633680ccec146106c857806337c3fdbc146106e85780633a367a67146106fd5780633ccfd60b1461071257600080fd5b80633009c0831461064c57806334416315146106755780633549345e14610695578063363b9cf7146106b557600080fd5b806310dfd4ec116103865780631919fed7116103555780631919fed71461058b57806323b872dd146105ab57806325fd90f3146105cb5780632a55205a146105ed5780632f745c591461062c57600080fd5b806310dfd4ec1461052157806310fd332b1461053657806318160ddd1461055657806318f9b0231461056b57600080fd5b806306fdde03116103c257806306fdde0314610487578063081812fc146104a9578063095ea7b3146104e15780630f75066e1461050157600080fd5b80620e7fa8146103f25780628ca8161461041b57806301ffc9a71461044557806302329a2914610465575b600080fd5b3480156103fe57600080fd5b5061040860155481565b6040519081526020015b60405180910390f35b34801561042757600080fd5b506019546104359060ff1681565b6040519015158152602001610412565b34801561045157600080fd5b50610435610460366004612e07565b610c14565b34801561047157600080fd5b50610485610480366004612e39565b610c3f565b005b34801561049357600080fd5b5061049c610c5a565b6040516104129190612ea4565b3480156104b557600080fd5b506104c96104c4366004612eb7565b610cec565b6040516001600160a01b039091168152602001610412565b3480156104ed57600080fd5b506104856104fc366004612ee7565b610d13565b34801561050d57600080fd5b5061048561051c366004612f11565b610e2d565b34801561052d57600080fd5b50601054610408565b34801561054257600080fd5b50610485610551366004612ee7565b610e82565b34801561056257600080fd5b50600854610408565b34801561057757600080fd5b50610485610586366004612ee7565b610ebe565b34801561059757600080fd5b506104856105a6366004612eb7565b610f5b565b3480156105b757600080fd5b506104856105c6366004612f46565b610f68565b3480156105d757600080fd5b5060195461043590640100000000900460ff1681565b3480156105f957600080fd5b5061060d610608366004612f72565b610f99565b604080516001600160a01b039093168352602083019190915201610412565b34801561063857600080fd5b50610408610647366004612ee7565b610fdf565b34801561065857600080fd5b506019546104c9906501000000000090046001600160a01b031681565b34801561068157600080fd5b50610485610690366004612e39565b611075565b3480156106a157600080fd5b506104856106b0366004612eb7565b611099565b6104856106c3366004613051565b6110a6565b3480156106d457600080fd5b506104086106e336600461309f565b6111d6565b3480156106f457600080fd5b506104856111f4565b34801561070957600080fd5b5061049c61120b565b34801561071e57600080fd5b50610485611299565b34801561073357600080fd5b50610485610742366004612f46565b6112ab565b34801561075357600080fd5b5061076761076236600461309f565b6112c6565b60405161041291906130ba565b34801561078057600080fd5b5061048561078f366004612e39565b611368565b3480156107a057600080fd5b506104086107af366004612eb7565b61138a565b3480156107c057600080fd5b5060195461043590610100900460ff1681565b3480156107df57600080fd5b506104856107ee3660046130fe565b61141d565b3480156107ff57600080fd5b5061048561080e366004613147565b611445565b34801561081f57600080fd5b506104c961082e366004612eb7565b6114bb565b34801561083f57600080fd5b5061049c61151b565b34801561085457600080fd5b5061049c611528565b61048561086b36600461316a565b611535565b34801561087c57600080fd5b5061048561088b366004613185565b61163a565b34801561089c57600080fd5b5047610408565b3480156108af57600080fd5b506104086108be36600461309f565b6116b2565b3480156108cf57600080fd5b50610485611738565b3480156108e457600080fd5b5061040860185481565b3480156108fa57600080fd5b506019546104359062010000900460ff1681565b34801561091a57600080fd5b50601954610435906301000000900460ff1681565b34801561093b57600080fd5b5061048561094a36600461309f565b61174a565b34801561095b57600080fd5b5061048561096a366004612e39565b611774565b34801561097b57600080fd5b50600a546001600160a01b03166104c9565b34801561099957600080fd5b506104856109a83660046130fe565b61179c565b3480156109b957600080fd5b5061049c6117b0565b3480156109ce57600080fd5b50600d546001600160a01b03166104c9565b3480156109ec57600080fd5b506104856109fb3660046131ca565b6117bf565b348015610a0c57600080fd5b506001610435565b348015610a2057600080fd5b5061040860165481565b610485610a38366004613051565b6117ca565b348015610a4957600080fd5b50610485610a583660046131f4565b61196b565b348015610a6957600080fd5b50600f546001600160a01b03166104c9565b348015610a8757600080fd5b50610485610a9636600461325c565b61199d565b348015610aa757600080fd5b50610408601a5481565b348015610abd57600080fd5b5061060d610acc366004612eb7565b6119f2565b348015610add57600080fd5b5061049c610aec366004612eb7565b611a2a565b348015610afd57600080fd5b50610485610b0c366004612e39565b611ba6565b348015610b1d57600080fd5b50610485611bcc565b348015610b3257600080fd5b5061049c611bd4565b348015610b4757600080fd5b50610435610b563660046132a1565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b9057600080fd5b50610485610b9f366004613185565b611bfc565b348015610bb057600080fd5b506014546104359060ff1681565b348015610bca57600080fd5b50610485610bd936600461309f565b611c6e565b348015610bea57600080fd5b5061040860175481565b348015610c0057600080fd5b50610485610c0f366004613185565b611ce7565b60006001600160e01b0319821663780e9d6360e01b1480610c395750610c3982611d59565b92915050565b610c47611da9565b6019805460ff1916911515919091179055565b606060008054610c69906132cb565b80601f0160208091040260200160405190810160405280929190818152602001828054610c95906132cb565b8015610ce25780601f10610cb757610100808354040283529160200191610ce2565b820191906000526020600020905b815481529060010190602001808311610cc557829003601f168201915b5050505050905090565b6000610cf782611e0e565b506000908152600460205260409020546001600160a01b031690565b6000610d1e826114bb565b9050806001600160a01b0316836001600160a01b031603610d905760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610dac5750610dac8133610b56565b610e1e5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610d87565b610e288383611e6d565b505050565b610e35611da9565b6000600c8481548110610e4a57610e4a613305565b6000918252602090912060029091020180546001600160a01b0319166001600160a01b03949094169390931783555060019091015550565b610e8a611da9565b601980546001600160a01b03909316650100000000000265010000000000600160c81b031990931692909217909155601a55565b610ec6611da9565b604080518082019091526001600160a01b03928316815260208101918252600c805460018101825560009190915290517fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7600290920291820180546001600160a01b0319169190941617909255517fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c890910155565b610f63611da9565b601755565b610f723382611edb565b610f8e5760405162461bcd60e51b8152600401610d879061331b565b610e28838383611f5a565b600080601960059054906101000a90046001600160a01b0316610fd3612710610fcd601a548761210190919063ffffffff16565b90612114565b915091505b9250929050565b6000610fea836116b2565b821061104c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d87565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61107d611da9565b60198054911515620100000262ff000019909216919091179055565b6110a1611da9565b601555565b60006110b160085490565b60195490915060ff16156110d75760405162461bcd60e51b8152600401610d8790613369565b60195462010000900460ff166111235760405162461bcd60e51b81526020600482015260116024820152704d696e745061737320496e61637469766560781b6044820152606401610d87565b611152336040518060400160405280600c81526020016b1b5a5b9d14185cdcd35a5b9d60a21b81525085612120565b61119e5760405162461bcd60e51b815260206004820152601b60248201527f494e56414c4944204d494e5450415353205349474e41545552452100000000006044820152606401610d87565b6018546111ae60ff8416836133a4565b11156111cc5760405162461bcd60e51b8152600401610d87906133b7565b610e288282612142565b6001600160a01b0381166000908152600b6020526040812054610c39565b6111fc611da9565b6014805460ff19166001179055565b60128054611218906132cb565b80601f0160208091040260200160405190810160405280929190818152602001828054611244906132cb565b80156112915780601f1061126657610100808354040283529160200191611291565b820191906000526020600020905b81548152906001019060200180831161127457829003601f168201915b505050505081565b6112a1611da9565b6112a961216f565b565b610e288383836040518060200160405280600081525061196b565b606060006112d3836116b2565b905060008167ffffffffffffffff8111156112f0576112f0612f94565b604051908082528060200260200182016040528015611319578160200160208202803683370190505b50905060005b82811015611360576113318582610fdf565b82828151811061134357611343613305565b602090810291909101015280611358816133e6565b91505061131f565b509392505050565b611370611da9565b601980549115156101000261ff0019909216919091179055565b600061139560085490565b82106113f85760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d87565b6008828154811061140b5761140b613305565b90600052602060002001549050919050565b611425611da9565b60145460ff161561143557600080fd5b6011611441828261344d565b5050565b61144d611da9565b600061145860085490565b60185490915061146884836133a4565b11156114865760405162461bcd60e51b8152600401610d87906133b7565b60015b8381116114b5576114a38361149e83856133a4565b61231e565b806114ad816133e6565b915050611489565b50505050565b6000818152600260205260408120546001600160a01b031680610c395760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610d87565b60138054611218906132cb565b60118054611218906132cb565b600061154060085490565b60195490915060ff16156115665760405162461bcd60e51b8152600401610d8790613369565b601954640100000000900460ff166115b05760405162461bcd60e51b815260206004820152600d60248201526c4d696e7420496e61637469766560981b6044820152606401610d87565b6018546115c060ff8416836133a4565b11156115de5760405162461bcd60e51b8152600401610d87906133b7565b8160ff166017546115ef919061350d565b3410156116305760405162461bcd60e51b815260206004820152600f60248201526e125395905312510814105653515395608a1b6044820152606401610d87565b6114418282612142565b61167361166d336040518060400160405280600e81526020016d6d696e74456e67696e654f6e6c7960901b815250612338565b83612375565b61168f5760405162461bcd60e51b8152600401610d8790613524565b600f80546001600160a01b0319166001600160a01b039290921691909117905550565b60006001600160a01b03821661171c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610d87565b506001600160a01b031660009081526003602052604090205490565b611740611da9565b6112a960006123b0565b611752611da9565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b61177c611da9565b601980549115156401000000000264ff0000000019909216919091179055565b6117a4611da9565b6013611441828261344d565b606060018054610c69906132cb565b611441338383612402565b60006117d560085490565b60195490915060ff16156117fb5760405162461bcd60e51b8152600401610d8790613369565b6019546301000000900460ff166118485760405162461bcd60e51b81526020600482015260116024820152705072652d53616c6520496e61637469766560781b6044820152606401610d87565b611876336040518060400160405280600b81526020016a1c1c9954d85b19535a5b9d60aa1b81525085612120565b6118c25760405162461bcd60e51b815260206004820152601a60248201527f494e56414c49442050524553414c45205349474e4154555245210000000000006044820152606401610d87565b6016546118d260ff8416836133a4565b11156119195760405162461bcd60e51b815260206004820152601660248201527514149154d053114814d5541413164814915050d2115160521b6044820152606401610d87565b8160ff1660155461192a919061350d565b3410156111cc5760405162461bcd60e51b815260206004820152600f60248201526e125395905312510814105653515395608a1b6044820152606401610d87565b6119753383611edb565b6119915760405162461bcd60e51b8152600401610d879061331b565b6114b5848484846124d0565b6119d061166d336040518060400160405280600e81526020016d6d696e74456e67696e654f6e6c7960901b815250612338565b6119ec5760405162461bcd60e51b8152600401610d8790613524565b60105550565b600c8181548110611a0257600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6000818152600260205260409020546060906001600160a01b0316611aa95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d87565b6000611ab460085490565b90506000611ac0612503565b601954909150610100900460ff168015611ada5750838210155b15611b125780611ae985612512565b604051602001611afa92919061354f565b60405160208183030381529060405292505050919050565b60128054611b1f906132cb565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4b906132cb565b8015611b985780601f10611b6d57610100808354040283529160200191611b98565b820191906000526020600020905b815481529060010190602001808311611b7b57829003601f168201915b505050505092505050919050565b611bae611da9565b6019805491151563010000000263ff00000019909216919091179055565b6112a1612613565b60606013604051602001611be8919061357e565b604051602081830303815290604052905090565b611c2f61166d336040518060400160405280600e81526020016d6d696e74456e67696e654f6e6c7960901b815250612338565b611c4b5760405162461bcd60e51b8152600401610d8790613524565b600e80546001600160a01b0319166001600160a01b039290921691909117905550565b611c76611da9565b6001600160a01b038116611cdb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d87565b611ce4816123b0565b50565b611d1a61166d336040518060400160405280600e81526020016d6d696e74456e67696e654f6e6c7960901b815250612338565b611d365760405162461bcd60e51b8152600401610d8790613524565b600d80546001600160a01b0319166001600160a01b039290921691909117905550565b60006001600160e01b031982166380ac58cd60e01b1480611d8a57506001600160e01b03198216635b5e139f60e01b145b80610c3957506301ffc9a760e01b6001600160e01b0319831614610c39565b600a5433906001600160a01b03165b6001600160a01b0316146112a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d87565b6000818152600260205260409020546001600160a01b0316611ce45760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610d87565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ea2826114bb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611ee7836114bb565b9050806001600160a01b0316846001600160a01b03161480611f2e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611f525750836001600160a01b0316611f4784610cec565b6001600160a01b0316145b949350505050565b826001600160a01b0316611f6d826114bb565b6001600160a01b031614611fd15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610d87565b6001600160a01b0382166120335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d87565b61203e838383612626565b612049600082611e6d565b6001600160a01b03831660009081526003602052604081208054600192906120729084906135f4565b90915550506001600160a01b03821660009081526003602052604081208054600192906120a09084906133a4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061210d828461350d565b9392505050565b600061210d828461361d565b60008061212d8585612338565b90506121398184612375565b95945050505050565b60015b8260ff168111610e285761215d3361149e83856133a4565b80612167816133e6565b915050612145565b6000471161217c57600080fd5b4761218f600f546001600160a01b031690565b6001600160a01b03166108fc6121b4612710610fcd6121ad60105490565b8690612101565b6040518115909202916000818181858888f193505050501580156121dc573d6000803e3d6000fd5b506000600c805480602002602001604051908101604052809291908181526020016000905b82821015612249576000848152602090819020604080518082019091526002850290910180546001600160a01b03168252600190810154828401529083529092019101612201565b50505050905060005b81518110156122e457600082828151811061226f5761226f613305565b6020026020010151905080600001516001600160a01b03166108fc6122a7612710610fcd85602001518961210190919063ffffffff16565b6040518115909202916000818181858888f193505050501580156122cf573d6000803e3d6000fd5b505080806122dc906133e6565b915050612252565b50601b546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610e28573d6000803e3d6000fd5b6114418282604051806020016040528060008152506126de565b6000612343336111d6565b828460405160200161235793929190613631565b60405160208183030381529060405280519060200120905092915050565b6000806123828484612711565b600e54336000908152600b60205260409020805460010190556001600160a01b03918216911614905061210d565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036124635760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d87565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6124db848484611f5a565b6124e78484848461272d565b6114b55760405162461bcd60e51b8152600401610d8790613675565b606060118054610c69906132cb565b6060816000036125395750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612563578061254d816133e6565b915061255c9050600a8361361d565b915061253d565b60008167ffffffffffffffff81111561257e5761257e612f94565b6040519080825280601f01601f1916602001820160405280156125a8576020820181803683370190505b5090505b8415611f52576125bd6001836135f4565b91506125ca600a866136c7565b6125d59060306133a4565b60f81b8183815181106125ea576125ea613305565b60200101906001600160f81b031916908160001a90535061260c600a8661361d565b94506125ac565b600d5433906001600160a01b0316611db8565b6001600160a01b0383166126815761267c81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6126a4565b816001600160a01b0316836001600160a01b0316146126a4576126a4838261282e565b6001600160a01b0382166126bb57610e28816128cb565b826001600160a01b0316826001600160a01b031614610e2857610e28828261297a565b6126e883836129be565b6126f5600084848461272d565b610e285760405162461bcd60e51b8152600401610d8790613675565b60008060006127208585612b0c565b9150915061136081612b4e565b60006001600160a01b0384163b1561282357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127719033908990889088906004016136db565b6020604051808303816000875af19250505080156127ac575060408051601f3d908101601f191682019092526127a991810190613718565b60015b612809573d8080156127da576040519150601f19603f3d011682016040523d82523d6000602084013e6127df565b606091505b5080516000036128015760405162461bcd60e51b8152600401610d8790613675565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f52565b506001949350505050565b6000600161283b846116b2565b61284591906135f4565b600083815260076020526040902054909150808214612898576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906128dd906001906135f4565b6000838152600960205260408120546008805493945090928490811061290557612905613305565b90600052602060002001549050806008838154811061292657612926613305565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061295e5761295e613735565b6001900381819060005260206000200160009055905550505050565b6000612985836116b2565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216612a145760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d87565b6000818152600260205260409020546001600160a01b031615612a795760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d87565b612a8560008383612626565b6001600160a01b0382166000908152600360205260408120805460019290612aae9084906133a4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000808251604103612b425760208301516040840151606085015160001a612b3687828585612d04565b94509450505050610fd8565b50600090506002610fd8565b6000816004811115612b6257612b6261374b565b03612b6a5750565b6001816004811115612b7e57612b7e61374b565b03612bcb5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d87565b6002816004811115612bdf57612bdf61374b565b03612c2c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d87565b6003816004811115612c4057612c4061374b565b03612c985760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d87565b6004816004811115612cac57612cac61374b565b03611ce45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d87565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612d3b5750600090506003612de8565b8460ff16601b14158015612d5357508460ff16601c14155b15612d645750600090506004612de8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612db8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612de157600060019250925050612de8565b9150600090505b94509492505050565b6001600160e01b031981168114611ce457600080fd5b600060208284031215612e1957600080fd5b813561210d81612df1565b80358015158114612e3457600080fd5b919050565b600060208284031215612e4b57600080fd5b61210d82612e24565b60005b83811015612e6f578181015183820152602001612e57565b50506000910152565b60008151808452612e90816020860160208601612e54565b601f01601f19169290920160200192915050565b60208152600061210d6020830184612e78565b600060208284031215612ec957600080fd5b5035919050565b80356001600160a01b0381168114612e3457600080fd5b60008060408385031215612efa57600080fd5b612f0383612ed0565b946020939093013593505050565b600080600060608486031215612f2657600080fd5b83359250612f3660208501612ed0565b9150604084013590509250925092565b600080600060608486031215612f5b57600080fd5b612f6484612ed0565b9250612f3660208501612ed0565b60008060408385031215612f8557600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612fc557612fc5612f94565b604051601f8501601f19908116603f01168101908282118183101715612fed57612fed612f94565b8160405280935085815286868601111561300657600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261303157600080fd5b61210d83833560208501612faa565b803560ff81168114612e3457600080fd5b6000806040838503121561306457600080fd5b823567ffffffffffffffff81111561307b57600080fd5b61308785828601613020565b92505061309660208401613040565b90509250929050565b6000602082840312156130b157600080fd5b61210d82612ed0565b6020808252825182820181905260009190848201906040850190845b818110156130f2578351835292840192918401916001016130d6565b50909695505050505050565b60006020828403121561311057600080fd5b813567ffffffffffffffff81111561312757600080fd5b8201601f8101841361313857600080fd5b611f5284823560208401612faa565b6000806040838503121561315a57600080fd5b8235915061309660208401612ed0565b60006020828403121561317c57600080fd5b61210d82613040565b6000806040838503121561319857600080fd5b823567ffffffffffffffff8111156131af57600080fd5b6131bb85828601613020565b92505061309660208401612ed0565b600080604083850312156131dd57600080fd5b6131e683612ed0565b915061309660208401612e24565b6000806000806080858703121561320a57600080fd5b61321385612ed0565b935061322160208601612ed0565b925060408501359150606085013567ffffffffffffffff81111561324457600080fd5b61325087828801613020565b91505092959194509250565b6000806040838503121561326f57600080fd5b823567ffffffffffffffff81111561328657600080fd5b61329285828601613020565b95602094909401359450505050565b600080604083850312156132b457600080fd5b6132bd83612ed0565b915061309660208401612ed0565b600181811c908216806132df57607f821691505b6020821081036132ff57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252600b908201526a14d85b194814185d5cd95960aa1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c3957610c3961338e565b602080825260159082015274544f54414c20535550504c5920524541434845442160581b604082015260600190565b6000600182016133f8576133f861338e565b5060010190565b601f821115610e2857600081815260208120601f850160051c810160208610156134265750805b601f850160051c820191505b8181101561344557828155600101613432565b505050505050565b815167ffffffffffffffff81111561346757613467612f94565b61347b8161347584546132cb565b846133ff565b602080601f8311600181146134b057600084156134985750858301515b600019600386901b1c1916600185901b178555613445565b600085815260208120601f198616915b828110156134df578886015182559484019460019091019084016134c0565b50858210156134fd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082028115828204841417610c3957610c3961338e565b602080825260119082015270494e56414c4944205349474e415455524560781b604082015260600190565b60008351613561818460208801612e54565b835190830190613575818360208801612e54565b01949350505050565b600080835461358c816132cb565b600182811680156135a457600181146135b9576135e8565b60ff19841687528215158302870194506135e8565b8760005260208060002060005b858110156135df5781548a8201529084019082016135c6565b50505082870194505b50929695505050505050565b81810381811115610c3957610c3961338e565b634e487b7160e01b600052601260045260246000fd5b60008261362c5761362c613607565b500490565b83815260008351613649816020850160208801612e54565b60609390931b6bffffffffffffffffffffffff1916602092909301918201929092526034019392505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826136d6576136d6613607565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061370e90830184612e78565b9695505050505050565b60006020828403121561372a57600080fd5b815161210d81612df1565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220baaf64971a68b3502a8e2b841a16b267d58f846b6ae75c5945b399656e82175764736f6c63430008110033000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000000000000000000000000000009536c708910000000000000000000000000000000000000000000000000000000000000000173800000000000000000000000000000000000000000000000000d529ae9e8600000000000000000000000000000000000000000000000000000000000000001738000000000000000000000000d0fb016c3b61dad0d71230fe1a0222d44c53b1d200000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000000e53616e646c6f7420536c6f74687300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025353000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003168747470733a2f2f6170692e6d696e74656e67696e652e6170702f6170692f4d657461646174612f31332f746f6b656e2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f6170692e6d696e74656e67696e652e6170702f6170692f4d657461646174612f31332f746f6b656e2f2d3100000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f6170692e6d696e74656e67696e652e6170702f6170692f4d657461646174612f313300000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103ed5760003560e01c80636c0360eb11610208578063b3a196e911610118578063d35ea456116100ab578063ee5ad9e61161007a578063ee5ad9e614610b84578063f053d37014610ba4578063f2fde38b14610bbe578063f51f96dd14610bde578063f971c2a514610bf457600080fd5b8063d35ea45614610af1578063e7051a4d14610b11578063e8a3d48514610b26578063e985e9c514610b3b57600080fd5b8063bc59d706116100e7578063bc59d70614610a7b578063c6ec690914610a9b578063c82e82d514610ab1578063c87b56dd14610ad157600080fd5b8063b3a196e914610a14578063b4f13a0a14610a2a578063b88d4fde14610a3d578063ba0c2c8d14610a5d57600080fd5b8063844947081161019b578063938e3d7b1161016a578063938e3d7b1461098d57806395d89b41146109ad5780639a245963146109c2578063a22cb465146109e0578063b252720b14610a0057600080fd5b8063844947081461090e57806385535cc51461092f5780638a4dcd851461094f5780638da5cb5b1461096f57600080fd5b806370a08231116101d757806370a08231146108a3578063715018a6146108c357806378231978146108d857806379a34912146108ee57600080fd5b80636c0360eb146108485780636ecd23061461085d5780636f45dee9146108705780636f9fb98a1461089057600080fd5b80633009c0831161030357806342842e0e1161029657806354214f691161026557806354214f69146107b457806355f804b3146107d357806360b02f70146107f35780636352211e14610813578063639d7e111461083357600080fd5b806342842e0e14610727578063438b6300146107475780634c100321146107745780634f6ccce71461079457600080fd5b80633680ccec116102d25780633680ccec146106c857806337c3fdbc146106e85780633a367a67146106fd5780633ccfd60b1461071257600080fd5b80633009c0831461064c57806334416315146106755780633549345e14610695578063363b9cf7146106b557600080fd5b806310dfd4ec116103865780631919fed7116103555780631919fed71461058b57806323b872dd146105ab57806325fd90f3146105cb5780632a55205a146105ed5780632f745c591461062c57600080fd5b806310dfd4ec1461052157806310fd332b1461053657806318160ddd1461055657806318f9b0231461056b57600080fd5b806306fdde03116103c257806306fdde0314610487578063081812fc146104a9578063095ea7b3146104e15780630f75066e1461050157600080fd5b80620e7fa8146103f25780628ca8161461041b57806301ffc9a71461044557806302329a2914610465575b600080fd5b3480156103fe57600080fd5b5061040860155481565b6040519081526020015b60405180910390f35b34801561042757600080fd5b506019546104359060ff1681565b6040519015158152602001610412565b34801561045157600080fd5b50610435610460366004612e07565b610c14565b34801561047157600080fd5b50610485610480366004612e39565b610c3f565b005b34801561049357600080fd5b5061049c610c5a565b6040516104129190612ea4565b3480156104b557600080fd5b506104c96104c4366004612eb7565b610cec565b6040516001600160a01b039091168152602001610412565b3480156104ed57600080fd5b506104856104fc366004612ee7565b610d13565b34801561050d57600080fd5b5061048561051c366004612f11565b610e2d565b34801561052d57600080fd5b50601054610408565b34801561054257600080fd5b50610485610551366004612ee7565b610e82565b34801561056257600080fd5b50600854610408565b34801561057757600080fd5b50610485610586366004612ee7565b610ebe565b34801561059757600080fd5b506104856105a6366004612eb7565b610f5b565b3480156105b757600080fd5b506104856105c6366004612f46565b610f68565b3480156105d757600080fd5b5060195461043590640100000000900460ff1681565b3480156105f957600080fd5b5061060d610608366004612f72565b610f99565b604080516001600160a01b039093168352602083019190915201610412565b34801561063857600080fd5b50610408610647366004612ee7565b610fdf565b34801561065857600080fd5b506019546104c9906501000000000090046001600160a01b031681565b34801561068157600080fd5b50610485610690366004612e39565b611075565b3480156106a157600080fd5b506104856106b0366004612eb7565b611099565b6104856106c3366004613051565b6110a6565b3480156106d457600080fd5b506104086106e336600461309f565b6111d6565b3480156106f457600080fd5b506104856111f4565b34801561070957600080fd5b5061049c61120b565b34801561071e57600080fd5b50610485611299565b34801561073357600080fd5b50610485610742366004612f46565b6112ab565b34801561075357600080fd5b5061076761076236600461309f565b6112c6565b60405161041291906130ba565b34801561078057600080fd5b5061048561078f366004612e39565b611368565b3480156107a057600080fd5b506104086107af366004612eb7565b61138a565b3480156107c057600080fd5b5060195461043590610100900460ff1681565b3480156107df57600080fd5b506104856107ee3660046130fe565b61141d565b3480156107ff57600080fd5b5061048561080e366004613147565b611445565b34801561081f57600080fd5b506104c961082e366004612eb7565b6114bb565b34801561083f57600080fd5b5061049c61151b565b34801561085457600080fd5b5061049c611528565b61048561086b36600461316a565b611535565b34801561087c57600080fd5b5061048561088b366004613185565b61163a565b34801561089c57600080fd5b5047610408565b3480156108af57600080fd5b506104086108be36600461309f565b6116b2565b3480156108cf57600080fd5b50610485611738565b3480156108e457600080fd5b5061040860185481565b3480156108fa57600080fd5b506019546104359062010000900460ff1681565b34801561091a57600080fd5b50601954610435906301000000900460ff1681565b34801561093b57600080fd5b5061048561094a36600461309f565b61174a565b34801561095b57600080fd5b5061048561096a366004612e39565b611774565b34801561097b57600080fd5b50600a546001600160a01b03166104c9565b34801561099957600080fd5b506104856109a83660046130fe565b61179c565b3480156109b957600080fd5b5061049c6117b0565b3480156109ce57600080fd5b50600d546001600160a01b03166104c9565b3480156109ec57600080fd5b506104856109fb3660046131ca565b6117bf565b348015610a0c57600080fd5b506001610435565b348015610a2057600080fd5b5061040860165481565b610485610a38366004613051565b6117ca565b348015610a4957600080fd5b50610485610a583660046131f4565b61196b565b348015610a6957600080fd5b50600f546001600160a01b03166104c9565b348015610a8757600080fd5b50610485610a9636600461325c565b61199d565b348015610aa757600080fd5b50610408601a5481565b348015610abd57600080fd5b5061060d610acc366004612eb7565b6119f2565b348015610add57600080fd5b5061049c610aec366004612eb7565b611a2a565b348015610afd57600080fd5b50610485610b0c366004612e39565b611ba6565b348015610b1d57600080fd5b50610485611bcc565b348015610b3257600080fd5b5061049c611bd4565b348015610b4757600080fd5b50610435610b563660046132a1565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b9057600080fd5b50610485610b9f366004613185565b611bfc565b348015610bb057600080fd5b506014546104359060ff1681565b348015610bca57600080fd5b50610485610bd936600461309f565b611c6e565b348015610bea57600080fd5b5061040860175481565b348015610c0057600080fd5b50610485610c0f366004613185565b611ce7565b60006001600160e01b0319821663780e9d6360e01b1480610c395750610c3982611d59565b92915050565b610c47611da9565b6019805460ff1916911515919091179055565b606060008054610c69906132cb565b80601f0160208091040260200160405190810160405280929190818152602001828054610c95906132cb565b8015610ce25780601f10610cb757610100808354040283529160200191610ce2565b820191906000526020600020905b815481529060010190602001808311610cc557829003601f168201915b5050505050905090565b6000610cf782611e0e565b506000908152600460205260409020546001600160a01b031690565b6000610d1e826114bb565b9050806001600160a01b0316836001600160a01b031603610d905760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610dac5750610dac8133610b56565b610e1e5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610d87565b610e288383611e6d565b505050565b610e35611da9565b6000600c8481548110610e4a57610e4a613305565b6000918252602090912060029091020180546001600160a01b0319166001600160a01b03949094169390931783555060019091015550565b610e8a611da9565b601980546001600160a01b03909316650100000000000265010000000000600160c81b031990931692909217909155601a55565b610ec6611da9565b604080518082019091526001600160a01b03928316815260208101918252600c805460018101825560009190915290517fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7600290920291820180546001600160a01b0319169190941617909255517fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c890910155565b610f63611da9565b601755565b610f723382611edb565b610f8e5760405162461bcd60e51b8152600401610d879061331b565b610e28838383611f5a565b600080601960059054906101000a90046001600160a01b0316610fd3612710610fcd601a548761210190919063ffffffff16565b90612114565b915091505b9250929050565b6000610fea836116b2565b821061104c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d87565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61107d611da9565b60198054911515620100000262ff000019909216919091179055565b6110a1611da9565b601555565b60006110b160085490565b60195490915060ff16156110d75760405162461bcd60e51b8152600401610d8790613369565b60195462010000900460ff166111235760405162461bcd60e51b81526020600482015260116024820152704d696e745061737320496e61637469766560781b6044820152606401610d87565b611152336040518060400160405280600c81526020016b1b5a5b9d14185cdcd35a5b9d60a21b81525085612120565b61119e5760405162461bcd60e51b815260206004820152601b60248201527f494e56414c4944204d494e5450415353205349474e41545552452100000000006044820152606401610d87565b6018546111ae60ff8416836133a4565b11156111cc5760405162461bcd60e51b8152600401610d87906133b7565b610e288282612142565b6001600160a01b0381166000908152600b6020526040812054610c39565b6111fc611da9565b6014805460ff19166001179055565b60128054611218906132cb565b80601f0160208091040260200160405190810160405280929190818152602001828054611244906132cb565b80156112915780601f1061126657610100808354040283529160200191611291565b820191906000526020600020905b81548152906001019060200180831161127457829003601f168201915b505050505081565b6112a1611da9565b6112a961216f565b565b610e288383836040518060200160405280600081525061196b565b606060006112d3836116b2565b905060008167ffffffffffffffff8111156112f0576112f0612f94565b604051908082528060200260200182016040528015611319578160200160208202803683370190505b50905060005b82811015611360576113318582610fdf565b82828151811061134357611343613305565b602090810291909101015280611358816133e6565b91505061131f565b509392505050565b611370611da9565b601980549115156101000261ff0019909216919091179055565b600061139560085490565b82106113f85760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d87565b6008828154811061140b5761140b613305565b90600052602060002001549050919050565b611425611da9565b60145460ff161561143557600080fd5b6011611441828261344d565b5050565b61144d611da9565b600061145860085490565b60185490915061146884836133a4565b11156114865760405162461bcd60e51b8152600401610d87906133b7565b60015b8381116114b5576114a38361149e83856133a4565b61231e565b806114ad816133e6565b915050611489565b50505050565b6000818152600260205260408120546001600160a01b031680610c395760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610d87565b60138054611218906132cb565b60118054611218906132cb565b600061154060085490565b60195490915060ff16156115665760405162461bcd60e51b8152600401610d8790613369565b601954640100000000900460ff166115b05760405162461bcd60e51b815260206004820152600d60248201526c4d696e7420496e61637469766560981b6044820152606401610d87565b6018546115c060ff8416836133a4565b11156115de5760405162461bcd60e51b8152600401610d87906133b7565b8160ff166017546115ef919061350d565b3410156116305760405162461bcd60e51b815260206004820152600f60248201526e125395905312510814105653515395608a1b6044820152606401610d87565b6114418282612142565b61167361166d336040518060400160405280600e81526020016d6d696e74456e67696e654f6e6c7960901b815250612338565b83612375565b61168f5760405162461bcd60e51b8152600401610d8790613524565b600f80546001600160a01b0319166001600160a01b039290921691909117905550565b60006001600160a01b03821661171c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610d87565b506001600160a01b031660009081526003602052604090205490565b611740611da9565b6112a960006123b0565b611752611da9565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b61177c611da9565b601980549115156401000000000264ff0000000019909216919091179055565b6117a4611da9565b6013611441828261344d565b606060018054610c69906132cb565b611441338383612402565b60006117d560085490565b60195490915060ff16156117fb5760405162461bcd60e51b8152600401610d8790613369565b6019546301000000900460ff166118485760405162461bcd60e51b81526020600482015260116024820152705072652d53616c6520496e61637469766560781b6044820152606401610d87565b611876336040518060400160405280600b81526020016a1c1c9954d85b19535a5b9d60aa1b81525085612120565b6118c25760405162461bcd60e51b815260206004820152601a60248201527f494e56414c49442050524553414c45205349474e4154555245210000000000006044820152606401610d87565b6016546118d260ff8416836133a4565b11156119195760405162461bcd60e51b815260206004820152601660248201527514149154d053114814d5541413164814915050d2115160521b6044820152606401610d87565b8160ff1660155461192a919061350d565b3410156111cc5760405162461bcd60e51b815260206004820152600f60248201526e125395905312510814105653515395608a1b6044820152606401610d87565b6119753383611edb565b6119915760405162461bcd60e51b8152600401610d879061331b565b6114b5848484846124d0565b6119d061166d336040518060400160405280600e81526020016d6d696e74456e67696e654f6e6c7960901b815250612338565b6119ec5760405162461bcd60e51b8152600401610d8790613524565b60105550565b600c8181548110611a0257600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6000818152600260205260409020546060906001600160a01b0316611aa95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d87565b6000611ab460085490565b90506000611ac0612503565b601954909150610100900460ff168015611ada5750838210155b15611b125780611ae985612512565b604051602001611afa92919061354f565b60405160208183030381529060405292505050919050565b60128054611b1f906132cb565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4b906132cb565b8015611b985780601f10611b6d57610100808354040283529160200191611b98565b820191906000526020600020905b815481529060010190602001808311611b7b57829003601f168201915b505050505092505050919050565b611bae611da9565b6019805491151563010000000263ff00000019909216919091179055565b6112a1612613565b60606013604051602001611be8919061357e565b604051602081830303815290604052905090565b611c2f61166d336040518060400160405280600e81526020016d6d696e74456e67696e654f6e6c7960901b815250612338565b611c4b5760405162461bcd60e51b8152600401610d8790613524565b600e80546001600160a01b0319166001600160a01b039290921691909117905550565b611c76611da9565b6001600160a01b038116611cdb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d87565b611ce4816123b0565b50565b611d1a61166d336040518060400160405280600e81526020016d6d696e74456e67696e654f6e6c7960901b815250612338565b611d365760405162461bcd60e51b8152600401610d8790613524565b600d80546001600160a01b0319166001600160a01b039290921691909117905550565b60006001600160e01b031982166380ac58cd60e01b1480611d8a57506001600160e01b03198216635b5e139f60e01b145b80610c3957506301ffc9a760e01b6001600160e01b0319831614610c39565b600a5433906001600160a01b03165b6001600160a01b0316146112a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d87565b6000818152600260205260409020546001600160a01b0316611ce45760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610d87565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ea2826114bb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611ee7836114bb565b9050806001600160a01b0316846001600160a01b03161480611f2e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611f525750836001600160a01b0316611f4784610cec565b6001600160a01b0316145b949350505050565b826001600160a01b0316611f6d826114bb565b6001600160a01b031614611fd15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610d87565b6001600160a01b0382166120335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d87565b61203e838383612626565b612049600082611e6d565b6001600160a01b03831660009081526003602052604081208054600192906120729084906135f4565b90915550506001600160a01b03821660009081526003602052604081208054600192906120a09084906133a4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061210d828461350d565b9392505050565b600061210d828461361d565b60008061212d8585612338565b90506121398184612375565b95945050505050565b60015b8260ff168111610e285761215d3361149e83856133a4565b80612167816133e6565b915050612145565b6000471161217c57600080fd5b4761218f600f546001600160a01b031690565b6001600160a01b03166108fc6121b4612710610fcd6121ad60105490565b8690612101565b6040518115909202916000818181858888f193505050501580156121dc573d6000803e3d6000fd5b506000600c805480602002602001604051908101604052809291908181526020016000905b82821015612249576000848152602090819020604080518082019091526002850290910180546001600160a01b03168252600190810154828401529083529092019101612201565b50505050905060005b81518110156122e457600082828151811061226f5761226f613305565b6020026020010151905080600001516001600160a01b03166108fc6122a7612710610fcd85602001518961210190919063ffffffff16565b6040518115909202916000818181858888f193505050501580156122cf573d6000803e3d6000fd5b505080806122dc906133e6565b915050612252565b50601b546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610e28573d6000803e3d6000fd5b6114418282604051806020016040528060008152506126de565b6000612343336111d6565b828460405160200161235793929190613631565b60405160208183030381529060405280519060200120905092915050565b6000806123828484612711565b600e54336000908152600b60205260409020805460010190556001600160a01b03918216911614905061210d565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036124635760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d87565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6124db848484611f5a565b6124e78484848461272d565b6114b55760405162461bcd60e51b8152600401610d8790613675565b606060118054610c69906132cb565b6060816000036125395750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612563578061254d816133e6565b915061255c9050600a8361361d565b915061253d565b60008167ffffffffffffffff81111561257e5761257e612f94565b6040519080825280601f01601f1916602001820160405280156125a8576020820181803683370190505b5090505b8415611f52576125bd6001836135f4565b91506125ca600a866136c7565b6125d59060306133a4565b60f81b8183815181106125ea576125ea613305565b60200101906001600160f81b031916908160001a90535061260c600a8661361d565b94506125ac565b600d5433906001600160a01b0316611db8565b6001600160a01b0383166126815761267c81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6126a4565b816001600160a01b0316836001600160a01b0316146126a4576126a4838261282e565b6001600160a01b0382166126bb57610e28816128cb565b826001600160a01b0316826001600160a01b031614610e2857610e28828261297a565b6126e883836129be565b6126f5600084848461272d565b610e285760405162461bcd60e51b8152600401610d8790613675565b60008060006127208585612b0c565b9150915061136081612b4e565b60006001600160a01b0384163b1561282357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127719033908990889088906004016136db565b6020604051808303816000875af19250505080156127ac575060408051601f3d908101601f191682019092526127a991810190613718565b60015b612809573d8080156127da576040519150601f19603f3d011682016040523d82523d6000602084013e6127df565b606091505b5080516000036128015760405162461bcd60e51b8152600401610d8790613675565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f52565b506001949350505050565b6000600161283b846116b2565b61284591906135f4565b600083815260076020526040902054909150808214612898576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906128dd906001906135f4565b6000838152600960205260408120546008805493945090928490811061290557612905613305565b90600052602060002001549050806008838154811061292657612926613305565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061295e5761295e613735565b6001900381819060005260206000200160009055905550505050565b6000612985836116b2565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216612a145760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d87565b6000818152600260205260409020546001600160a01b031615612a795760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d87565b612a8560008383612626565b6001600160a01b0382166000908152600360205260408120805460019290612aae9084906133a4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000808251604103612b425760208301516040840151606085015160001a612b3687828585612d04565b94509450505050610fd8565b50600090506002610fd8565b6000816004811115612b6257612b6261374b565b03612b6a5750565b6001816004811115612b7e57612b7e61374b565b03612bcb5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d87565b6002816004811115612bdf57612bdf61374b565b03612c2c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d87565b6003816004811115612c4057612c4061374b565b03612c985760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d87565b6004816004811115612cac57612cac61374b565b03611ce45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d87565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612d3b5750600090506003612de8565b8460ff16601b14158015612d5357508460ff16601c14155b15612d645750600090506004612de8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612db8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612de157600060019250925050612de8565b9150600090505b94509492505050565b6001600160e01b031981168114611ce457600080fd5b600060208284031215612e1957600080fd5b813561210d81612df1565b80358015158114612e3457600080fd5b919050565b600060208284031215612e4b57600080fd5b61210d82612e24565b60005b83811015612e6f578181015183820152602001612e57565b50506000910152565b60008151808452612e90816020860160208601612e54565b601f01601f19169290920160200192915050565b60208152600061210d6020830184612e78565b600060208284031215612ec957600080fd5b5035919050565b80356001600160a01b0381168114612e3457600080fd5b60008060408385031215612efa57600080fd5b612f0383612ed0565b946020939093013593505050565b600080600060608486031215612f2657600080fd5b83359250612f3660208501612ed0565b9150604084013590509250925092565b600080600060608486031215612f5b57600080fd5b612f6484612ed0565b9250612f3660208501612ed0565b60008060408385031215612f8557600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612fc557612fc5612f94565b604051601f8501601f19908116603f01168101908282118183101715612fed57612fed612f94565b8160405280935085815286868601111561300657600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261303157600080fd5b61210d83833560208501612faa565b803560ff81168114612e3457600080fd5b6000806040838503121561306457600080fd5b823567ffffffffffffffff81111561307b57600080fd5b61308785828601613020565b92505061309660208401613040565b90509250929050565b6000602082840312156130b157600080fd5b61210d82612ed0565b6020808252825182820181905260009190848201906040850190845b818110156130f2578351835292840192918401916001016130d6565b50909695505050505050565b60006020828403121561311057600080fd5b813567ffffffffffffffff81111561312757600080fd5b8201601f8101841361313857600080fd5b611f5284823560208401612faa565b6000806040838503121561315a57600080fd5b8235915061309660208401612ed0565b60006020828403121561317c57600080fd5b61210d82613040565b6000806040838503121561319857600080fd5b823567ffffffffffffffff8111156131af57600080fd5b6131bb85828601613020565b92505061309660208401612ed0565b600080604083850312156131dd57600080fd5b6131e683612ed0565b915061309660208401612e24565b6000806000806080858703121561320a57600080fd5b61321385612ed0565b935061322160208601612ed0565b925060408501359150606085013567ffffffffffffffff81111561324457600080fd5b61325087828801613020565b91505092959194509250565b6000806040838503121561326f57600080fd5b823567ffffffffffffffff81111561328657600080fd5b61329285828601613020565b95602094909401359450505050565b600080604083850312156132b457600080fd5b6132bd83612ed0565b915061309660208401612ed0565b600181811c908216806132df57607f821691505b6020821081036132ff57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252600b908201526a14d85b194814185d5cd95960aa1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c3957610c3961338e565b602080825260159082015274544f54414c20535550504c5920524541434845442160581b604082015260600190565b6000600182016133f8576133f861338e565b5060010190565b601f821115610e2857600081815260208120601f850160051c810160208610156134265750805b601f850160051c820191505b8181101561344557828155600101613432565b505050505050565b815167ffffffffffffffff81111561346757613467612f94565b61347b8161347584546132cb565b846133ff565b602080601f8311600181146134b057600084156134985750858301515b600019600386901b1c1916600185901b178555613445565b600085815260208120601f198616915b828110156134df578886015182559484019460019091019084016134c0565b50858210156134fd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082028115828204841417610c3957610c3961338e565b602080825260119082015270494e56414c4944205349474e415455524560781b604082015260600190565b60008351613561818460208801612e54565b835190830190613575818360208801612e54565b01949350505050565b600080835461358c816132cb565b600182811680156135a457600181146135b9576135e8565b60ff19841687528215158302870194506135e8565b8760005260208060002060005b858110156135df5781548a8201529084019082016135c6565b50505082870194505b50929695505050505050565b81810381811115610c3957610c3961338e565b634e487b7160e01b600052601260045260246000fd5b60008261362c5761362c613607565b500490565b83815260008351613649816020850160208801612e54565b60609390931b6bffffffffffffffffffffffff1916602092909301918201929092526034019392505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826136d6576136d6613607565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061370e90830184612e78565b9695505050505050565b60006020828403121561372a57600080fd5b815161210d81612df1565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220baaf64971a68b3502a8e2b841a16b267d58f846b6ae75c5945b399656e82175764736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000000000000000000000000000009536c708910000000000000000000000000000000000000000000000000000000000000000173800000000000000000000000000000000000000000000000000d529ae9e8600000000000000000000000000000000000000000000000000000000000000001738000000000000000000000000d0fb016c3b61dad0d71230fe1a0222d44c53b1d200000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000000e53616e646c6f7420536c6f74687300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025353000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003168747470733a2f2f6170692e6d696e74656e67696e652e6170702f6170692f4d657461646174612f31332f746f6b656e2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f6170692e6d696e74656e67696e652e6170702f6170692f4d657461646174612f31332f746f6b656e2f2d3100000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f6170692e6d696e74656e67696e652e6170702f6170692f4d657461646174612f313300000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Sandlot Sloths
Arg [1] : _symbol (string): SS
Arg [2] : _bURI (string): https://api.mintengine.app/api/Metadata/13/token/
Arg [3] : _dURI (string): https://api.mintengine.app/api/Metadata/13/token/-1
Arg [4] : _cURI (string): https://api.mintengine.app/api/Metadata/13
Arg [5] : _psp (uint256): 42000000000000000
Arg [6] : _pss (uint256): 5944
Arg [7] : _sp (uint256): 60000000000000000
Arg [8] : _tss (uint256): 5944
Arg [9] : _ra (address): 0xd0fb016C3b61dAd0D71230FE1a0222D44c53b1d2
Arg [10] : _rb (uint256): 750
-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [4] : 00000000000000000000000000000000000000000000000000000000000002a0
Arg [5] : 000000000000000000000000000000000000000000000000009536c708910000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000001738
Arg [7] : 00000000000000000000000000000000000000000000000000d529ae9e860000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000001738
Arg [9] : 000000000000000000000000d0fb016c3b61dad0d71230fe1a0222d44c53b1d2
Arg [10] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [11] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [12] : 53616e646c6f7420536c6f746873000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [14] : 5353000000000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000031
Arg [16] : 68747470733a2f2f6170692e6d696e74656e67696e652e6170702f6170692f4d
Arg [17] : 657461646174612f31332f746f6b656e2f000000000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000033
Arg [19] : 68747470733a2f2f6170692e6d696e74656e67696e652e6170702f6170692f4d
Arg [20] : 657461646174612f31332f746f6b656e2f2d3100000000000000000000000000
Arg [21] : 000000000000000000000000000000000000000000000000000000000000002a
Arg [22] : 68747470733a2f2f6170692e6d696e74656e67696e652e6170702f6170692f4d
Arg [23] : 657461646174612f313300000000000000000000000000000000000000000000
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.