Overview
TokenID
4225
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
RooTroop
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 100000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./Signer.sol"; contract RooTroop is ERC721, Ownable, ReentrancyGuard { uint16 constant additionalMints = 3; constructor( uint16 _maxSupply, uint16 _maxFree, uint16 _maxPresale, uint16 _publicTransactionMax, uint256 _mintPrice, address _signer, uint256 _freeMintStart, uint256 _freeMintEnd, uint256 _presaleMintStart, uint256 _presaleMintEnd, uint256 _publicMintStart ) ERC721("RooTroop", "RT") { require(_maxSupply > 0, "Zero supply"); mintSigner = _signer; maxSupply = _maxSupply; totalSupply = additionalMints; // additional mints is the number to tack onto the end of the supply for the contract deployer. // CONFIGURE FREE MINT freeMint.startDate = _freeMintStart; freeMint.endDate = _freeMintEnd; freeMint.maxMinted = _maxFree; // CONFIGURE PRESALE Mint presaleMint.mintPrice = _mintPrice; presaleMint.startDate = _presaleMintStart; presaleMint.endDate = _presaleMintEnd; presaleMint.maxMinted = _maxPresale; // CONFIGURE PUBLIC MINT publicMint.mintPrice = _mintPrice; publicMint.startDate = _publicMintStart; publicMint.maxPerTransaction = _publicTransactionMax; for (uint256 i = 1; i <= additionalMints; i++) { _mint(msg.sender, _maxSupply + i); } } event Paid(address sender, uint256 amount); event Withdraw(address recipient, uint256 amount); struct WhitelistedMint { /** * The price to mint in that whitelist */ uint256 mintPrice; /** * The start date in unix seconds */ uint256 startDate; /** * The end date in unix seconds */ uint256 endDate; /** * The total number of tokens minted in this whitelist */ uint16 totalMinted; /** * The maximum number of tokens minted in this whitelist */ uint16 maxMinted; /** * The minters in this whitelisted mint * mapped to the number minted */ mapping(address => uint16) minted; } struct PublicMint { uint256 mintPrice; /** * The start date in unix seconds */ uint256 startDate; /** * The maximum per transaction */ uint16 maxPerTransaction; } string baseURI; uint16 public maxSupply; uint16 public totalSupply; uint16 public minted; address private mintSigner; mapping(address => uint16) public lastMintNonce; /** * The free mint */ WhitelistedMint public freeMint; /** * An exclusive mint for members granted * presale from influencers */ WhitelistedMint public presaleMint; /** * The public mint for everybody. */ PublicMint public publicMint; /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. */ function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /** * Sets the base URI for all tokens * * @dev be sure to terminate with a slash * @param _uri - the target base uri (ex: 'https://google.com/') */ function setBaseURI(string calldata _uri) public onlyOwner { baseURI = _uri; } /** * Burns the provided token id if you own it. * Reduces the supply by 1. * * @param _tokenId - the ID of the token to be burned. */ function burn(uint256 _tokenId) public { require(ownerOf(_tokenId) == msg.sender, "You do not own this token"); totalSupply--; _burn(_tokenId); } /** * Allows the contract owner to update the signer used for presale mints. * @param _signer the signer's address */ function setSigner(address _signer) external onlyOwner { mintSigner = _signer; } // ------------------------------------------------ MINT STUFFS ------------------------------------------------ function getWhitelistMints(address _user) external view returns (uint16 free, uint16 presale) { free = freeMint.minted[_user]; presale = presaleMint.minted[_user]; return (free, presale); } /** * Updates the presale mint's characteristics * * @param _mintPrice - the cost for that mint in WEI * @param _startDate - the start date for that mint in UNIX seconds * @param _endDate - the end date for that mint in UNIX seconds */ function updatePresaleMint( uint256 _mintPrice, uint256 _startDate, uint256 _endDate, uint16 _maxMinted ) public onlyOwner { presaleMint.mintPrice = _mintPrice; presaleMint.startDate = _startDate; presaleMint.endDate = _endDate; presaleMint.maxMinted = _maxMinted; } /** * Updates the free mint's characteristics * * @param _startDate - the start date for that mint in UNIX seconds * @param _endDate - the end date for that mint in UNIX seconds */ function updateFreeMint( uint256 _startDate, uint256 _endDate, uint16 _maxMinted ) public onlyOwner { freeMint.startDate = _startDate; freeMint.endDate = _endDate; freeMint.maxMinted = _maxMinted; } /** * Updates the public mint's characteristics * * @param _mintPrice - the cost for that mint in WEI * @param _maxPerTransaction - the maximum amount allowed in a wallet to mint in the public mint * @param _startDate - the start date for that mint in UNIX seconds */ function updatePublicMint( uint256 _mintPrice, uint16 _maxPerTransaction, uint256 _startDate ) public onlyOwner { publicMint.mintPrice = _mintPrice; publicMint.maxPerTransaction = _maxPerTransaction; publicMint.startDate = _startDate; } function getPremintHash( address _minter, uint16 _quantity, uint8 _mintId, uint16 _nonce ) public pure returns (bytes32) { return VerifySignature.getMessageHash(_minter, _quantity, _mintId, _nonce); } /** * Mints in the premint stage by using a signed transaction from a centralized whitelist. * The message signer is expected to only sign messages when they fall within the whitelist * specifications. * * @param _quantity - the number to mint * @param _mintId - 0 for free mint, 1 for presale mint * @param _nonce - a random nonce which indicates that a signed transaction hasn't already been used. * @param _signature - the signature given by the centralized whitelist authority, signed by * the account specified as mintSigner. */ function premint( uint16 _quantity, uint8 _mintId, uint16 _nonce, bytes calldata _signature ) public payable nonReentrant { uint256 remaining = maxSupply - minted; require(remaining > 0, "Mint over"); require(_quantity >= 1, "Zero mint"); require(_quantity <= remaining, "Not enough"); require(_mintId == 0 || _mintId == 1, "Invalid mint"); require(lastMintNonce[msg.sender] < _nonce, "Nonce used"); WhitelistedMint storage targetMint = _mintId == 0 ? freeMint : presaleMint; require( targetMint.startDate <= block.timestamp && targetMint.endDate >= block.timestamp, "No mint" ); require( VerifySignature.verify( mintSigner, msg.sender, _quantity, _mintId, _nonce, _signature ), "Invalid sig" ); require(targetMint.mintPrice * _quantity == msg.value, "Bad value"); require( targetMint.totalMinted + _quantity <= targetMint.maxMinted, "Limit exceeded" ); uint16 lastMinted = minted; totalSupply += _quantity; minted += _quantity; targetMint.minted[msg.sender] += _quantity; targetMint.totalMinted += _quantity; lastMintNonce[msg.sender] = _nonce; // update nonce // DISTRIBUTE THE TOKENS for (uint16 i = 1; i <= _quantity; i++) { _safeMint(msg.sender, lastMinted + i); } } /** * Mints the given quantity of tokens provided it is possible to. * * @notice This function allows minting in the public sale * or at any time for the owner of the contract. * * @param _quantity - the number of tokens to mint */ function mint(uint16 _quantity) public payable nonReentrant { uint256 remaining = maxSupply - minted; require(remaining > 0, "Mint over"); require(_quantity >= 1, "Zero mint"); require(_quantity <= remaining, "Not enough"); if (owner() == msg.sender) { // OWNER MINTING FOR FREE require(msg.value == 0, "Owner paid"); } else if (block.timestamp >= publicMint.startDate) { // PUBLIC MINT require(_quantity <= publicMint.maxPerTransaction, "Exceeds max"); require( _quantity * publicMint.mintPrice == msg.value, "Invalid value" ); } else { // NOT ELIGIBLE FOR PUBLIC MINT revert("No mint"); } // DISTRIBUTE THE TOKENS uint16 lastMinted = minted; totalSupply += _quantity; minted += _quantity; for (uint16 i = 1; i <= _quantity; i++) { _safeMint(msg.sender, lastMinted + i); } } /** * Withdraws balance from the contract to the owner (sender). * @param _amount - the amount to withdraw, much be <= contract balance. */ function withdraw(uint256 _amount) external onlyOwner { require(address(this).balance >= _amount, "Invalid amt"); (bool success, ) = msg.sender.call{value: _amount}(""); require(success, "Trans failed"); emit Withdraw(msg.sender, _amount); } /** * The receive function, does nothing */ receive() external payable { emit Paid(msg.sender, msg.value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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: balance query for the zero address"); 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: owner query for nonexistent token"); 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) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public 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 owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); 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: transfer caller is not 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: transfer caller is not 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) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {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 a {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 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 { 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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; /* Signature Verification How to Sign and Verify # Signing 1. Create message to sign 2. Hash the message 3. Sign the hash (off chain, keep your private key secret) # Verify 1. Recreate hash from the original message 2. Recover signer from signature and hash 3. Compare recovered signer to claimed signer */ library VerifySignature { /* 1. Unlock MetaMask account ethereum.enable() */ /* 2. Get message hash to sign getMessageHash( 0x14723A09ACff6D2A60DcdF7aA4AFf308FDDC160C, 123, "coffee and donuts", 1 ) hash = "0xcf36ac4f97dc10d91fc2cbb20d718e94a8cbfe0f82eaedc6a4aa38946fb797cd" */ function getMessageHash( address _minter, uint _quantity, uint _mintId, uint _nonce ) public pure returns (bytes32) { return keccak256(abi.encodePacked(_minter, _quantity, _mintId, _nonce)); } /* 3. Sign message hash # using browser account = "copy paste account of signer here" ethereum.request({ method: "personal_sign", params: [account, hash]}).then(console.log) # using web3 web3.personal.sign(hash, web3.eth.defaultAccount, console.log) Signature will be different for different accounts 0x993dab3dd91f5c6dc28e17439be475478f5635c92a56e17e82349d3fb2f166196f466c0b4e0c146f285204f0dcb13e5ae67bc33f4b888ec32dfe0a063e8f3f781b */ function getEthSignedMessageHash(bytes32 _messageHash) public pure returns (bytes32) { /* Signature is produced by signing a keccak256 hash with the following format: "\x19Ethereum Signed Message\n" + len(msg) + msg */ return keccak256( abi.encodePacked("\x19Ethereum Signed Message:\n32", _messageHash) ); } /* 4. Verify signature signer = 0xB273216C05A8c0D4F0a4Dd0d7Bae1D2EfFE636dd to = 0x14723A09ACff6D2A60DcdF7aA4AFf308FDDC160C amount = 123 message = "coffee and donuts" nonce = 1 signature = 0x993dab3dd91f5c6dc28e17439be475478f5635c92a56e17e82349d3fb2f166196f466c0b4e0c146f285204f0dcb13e5ae67bc33f4b888ec32dfe0a063e8f3f781b */ function verify( address _signer, address _minter, uint _quantity, uint _mintId, uint _nonce, bytes memory signature ) public pure returns (bool) { bytes32 messageHash = getMessageHash(_minter, _quantity, _mintId, _nonce); bytes32 ethSignedMessageHash = getEthSignedMessageHash(messageHash); return recoverSigner(ethSignedMessageHash, signature) == _signer; } function recoverSigner(bytes32 _ethSignedMessageHash, bytes memory _signature) public pure returns (address) { (bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature); return ecrecover(_ethSignedMessageHash, v, r, s); } function splitSignature(bytes memory sig) public pure returns ( bytes32 r, bytes32 s, uint8 v ) { require(sig.length == 65, "invalid signature length"); assembly { /* First 32 bytes stores the length of the signature add(sig, 32) = pointer of sig + 32 effectively, skips first 32 bytes of signature mload(p) loads next 32 bytes starting at the memory address p into memory */ // first 32 bytes, after the length prefix r := mload(add(sig, 32)) // second 32 bytes s := mload(add(sig, 64)) // final byte (first byte of the next 32 bytes) v := byte(0, mload(add(sig, 96))) } // implicitly return (r, s, v) } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 100000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": { "contracts/Signer.sol": { "VerifySignature": "0x33fe21eba5f5ace329c3f96591ecd68e7be5fc06" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint16","name":"_maxSupply","type":"uint16"},{"internalType":"uint16","name":"_maxFree","type":"uint16"},{"internalType":"uint16","name":"_maxPresale","type":"uint16"},{"internalType":"uint16","name":"_publicTransactionMax","type":"uint16"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"uint256","name":"_freeMintStart","type":"uint256"},{"internalType":"uint256","name":"_freeMintEnd","type":"uint256"},{"internalType":"uint256","name":"_presaleMintStart","type":"uint256"},{"internalType":"uint256","name":"_presaleMintEnd","type":"uint256"},{"internalType":"uint256","name":"_publicMintStart","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":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Paid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMint","outputs":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"uint16","name":"totalMinted","type":"uint16"},{"internalType":"uint16","name":"maxMinted","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"uint16","name":"_quantity","type":"uint16"},{"internalType":"uint8","name":"_mintId","type":"uint8"},{"internalType":"uint16","name":"_nonce","type":"uint16"}],"name":"getPremintHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getWhitelistMints","outputs":[{"internalType":"uint16","name":"free","type":"uint16"},{"internalType":"uint16","name":"presale","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastMintNonce","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_quantity","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"uint16","name":"_quantity","type":"uint16"},{"internalType":"uint8","name":"_mintId","type":"uint8"},{"internalType":"uint16","name":"_nonce","type":"uint16"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"premint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleMint","outputs":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"uint16","name":"totalMinted","type":"uint16"},{"internalType":"uint16","name":"maxMinted","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMint","outputs":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint16","name":"maxPerTransaction","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"uint256","name":"_startDate","type":"uint256"},{"internalType":"uint256","name":"_endDate","type":"uint256"},{"internalType":"uint16","name":"_maxMinted","type":"uint16"}],"name":"updateFreeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_startDate","type":"uint256"},{"internalType":"uint256","name":"_endDate","type":"uint256"},{"internalType":"uint16","name":"_maxMinted","type":"uint16"}],"name":"updatePresaleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint16","name":"_maxPerTransaction","type":"uint16"},{"internalType":"uint256","name":"_startDate","type":"uint256"}],"name":"updatePublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200415d3803806200415d83398101604081905262000034916200044e565b60408051808201825260088152670526f6f54726f6f760c41b602080830191825283518085019094526002845261149560f21b9084015281519192916200007e9160009162000390565b5080516200009490600190602084019062000390565b505050620000b1620000ab620001f260201b60201c565b620001f6565b600160075561ffff8b16620000fb5760405162461bcd60e51b815260206004820152600b60248201526a5a65726f20737570706c7960a81b60448201526064015b60405180910390fd5b6009805461ffff8d811665ffff00000001600160d01b031990921666010000000000006001600160a01b038b160263ffffffff191617919091176203000017909155600c869055600d859055600e805463ffff000019908116620100008e851681029190911790925560108a905560118690556012859055601380549091168c8416909202919091179055601588905560168290556017805461ffff1916918a1691909117905560015b60038111620001e057620001cb33828e61ffff16620001c591906200050b565b62000248565b80620001d78162000563565b915050620001a5565b50505050505050505050505062000597565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002a05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620000f2565b6000818152600260205260409020546001600160a01b031615620003075760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620000f2565b6001600160a01b0382166000908152600360205260408120805460019290620003329084906200050b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546200039e9062000526565b90600052602060002090601f016020900481019282620003c257600085556200040d565b82601f10620003dd57805160ff19168380011785556200040d565b828001600101855582156200040d579182015b828111156200040d578251825591602001919060010190620003f0565b506200041b9291506200041f565b5090565b5b808211156200041b576000815560010162000420565b805161ffff811681146200044957600080fd5b919050565b60008060008060008060008060008060006101608c8e0312156200047157600080fd5b6200047c8c62000436565b9a506200048c60208d0162000436565b99506200049c60408d0162000436565b9850620004ac60608d0162000436565b60808d015160a08e015191995097506001600160a01b0381168114620004d157600080fd5b8096505060c08c0151945060e08c015193506101008c015192506101208c015191506101408c015190509295989b509295989b9093969950565b6000821982111562000521576200052162000581565b500190565b600181811c908216806200053b57607f821691505b602082108114156200055d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200057a576200057a62000581565b5060010190565b634e487b7160e01b600052601160045260246000fd5b613bb680620005a76000396000f3fe60806040526004361061021d5760003560e01c80635b70ea9f1161011d57806395d89b41116100b0578063c87b56dd1161007f578063e2cedd4911610064578063e2cedd4914610740578063e985e9c514610771578063f2fde38b146107c757600080fd5b8063c87b56dd14610705578063d5abeb011461072557600080fd5b806395d89b411461069d578063a22cb465146106b2578063b88d4fde146106d2578063bdb13208146106f257600080fd5b806370a08231116100ec57806370a082311461061d578063715018a61461063d5780637f80a264146106525780638da5cb5b1461067257600080fd5b80635b70ea9f146105395780636352211e1461056a5780636c19e7831461058a57806370954de6146105aa57600080fd5b806326092b83116101b057806342966c681161017f5780634f02c420116101645780634f02c4201461049657806355f804b3146104b957806359533d6c146104d957600080fd5b806342966c68146104565780634ce9cfaa1461047657600080fd5b806326092b83146103a65780632e1a7d4d146103e857806341ca8a671461040857806342842e0e1461043657600080fd5b8063123db7ac116101ec578063123db7ac1461031f57806318160ddd1461033f57806323b872dd1461037357806323cf0a221461039357600080fd5b806301ffc9a71461026157806306fdde0314610296578063081812fc146102b8578063095ea7b3146102fd57600080fd5b3661025c57604080513381523460208201527f737c69225d647e5994eab1a6c301bf6d9232beb2759ae1e27a8966b4732bc489910160405180910390a1005b600080fd5b34801561026d57600080fd5b5061028161027c36600461357f565b6107e7565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102ab6108cc565b60405161028d919061388a565b3480156102c457600080fd5b506102d86102d336600461368c565b61095e565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161028d565b34801561030957600080fd5b5061031d61031836600461351f565b610a3d565b005b34801561032b57600080fd5b5061031d61033a3660046136ff565b610bca565b34801561034b57600080fd5b506009546103609062010000900461ffff1681565b60405161ffff909116815260200161028d565b34801561037f57600080fd5b5061031d61038e36600461335e565b610c95565b61031d6103a13660046135fb565b610d36565b3480156103b257600080fd5b506015546016546017546103c992919061ffff1683565b60408051938452602084019290925261ffff169082015260600161028d565b3480156103f457600080fd5b5061031d61040336600461368c565b6111dd565b34801561041457600080fd5b506104286104233660046134cb565b6113b7565b60405190815260200161028d565b34801561044257600080fd5b5061031d61045136600461335e565b611491565b34801561046257600080fd5b5061031d61047136600461368c565b6114ac565b34801561048257600080fd5b5061031d6104913660046136ca565b611574565b3480156104a257600080fd5b5060095461036090640100000000900461ffff1681565b3480156104c557600080fd5b5061031d6104d43660046135b9565b611639565b3480156104e557600080fd5b5060105460115460125460135461050a9392919061ffff808216916201000090041685565b6040805195865260208601949094529284019190915261ffff908116606084015216608082015260a00161028d565b34801561054557600080fd5b50600b54600c54600d54600e5461050a9392919061ffff808216916201000090041685565b34801561057657600080fd5b506102d861058536600461368c565b6116c6565b34801561059657600080fd5b5061031d6105a5366004613310565b611778565b3480156105b657600080fd5b506106026105c5366004613310565b73ffffffffffffffffffffffffffffffffffffffff166000908152600f602090815260408083205460149092529091205461ffff91821692911690565b6040805161ffff93841681529290911660208301520161028d565b34801561062957600080fd5b50610428610638366004613310565b61184a565b34801561064957600080fd5b5061031d611918565b34801561065e57600080fd5b5061031d61066d3660046136a5565b6119a5565b34801561067e57600080fd5b5060065473ffffffffffffffffffffffffffffffffffffffff166102d8565b3480156106a957600080fd5b506102ab611a64565b3480156106be57600080fd5b5061031d6106cd366004613494565b611a73565b3480156106de57600080fd5b5061031d6106ed36600461339a565b611a82565b61031d610700366004613616565b611b2a565b34801561071157600080fd5b506102ab61072036600461368c565b612243565b34801561073157600080fd5b506009546103609061ffff1681565b34801561074c57600080fd5b5061036061075b366004613310565b600a6020526000908152604090205461ffff1681565b34801561077d57600080fd5b5061028161078c36600461332b565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107d357600080fd5b5061031d6107e2366004613310565b612353565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061087a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108c657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546108db906139c5565b80601f0160208091040260200160405190810160405280929190818152602001828054610907906139c5565b80156109545780601f1061092957610100808354040283529160200191610954565b820191906000526020600020905b81548152906001019060200180831161093757829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610a14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a48826116c6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a0b565b3373ffffffffffffffffffffffffffffffffffffffff82161480610b2f5750610b2f813361078c565b610bbb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a0b565b610bc58383612480565b505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610c4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b6010939093556011919091556012556013805461ffff90921662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff909216919091179055565b610c9f3382612520565b610d2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a0b565b610bc583838361268c565b60026007541415610da3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a0b565b6002600755600954600090610dc69061ffff640100000000820481169116613923565b61ffff16905060008111610e36576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4d696e74206f76657200000000000000000000000000000000000000000000006044820152606401610a0b565b60018261ffff161015610ea5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f5a65726f206d696e7400000000000000000000000000000000000000000000006044820152606401610a0b565b808261ffff161115610f13576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f7420656e6f756768000000000000000000000000000000000000000000006044820152606401610a0b565b33610f3360065473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161415610fbc573415610fb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4f776e65722070616964000000000000000000000000000000000000000000006044820152606401610a0b565b611115565b60165442106110b35760175461ffff9081169083161115611039576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f45786365656473206d61780000000000000000000000000000000000000000006044820152606401610a0b565b601554349061104c9061ffff85166138e6565b14610fb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642076616c7565000000000000000000000000000000000000006044820152606401610a0b565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f4e6f206d696e74000000000000000000000000000000000000000000000000006044820152606401610a0b565b6009805461ffff6401000000008204811692859290916002916111409185916201000090041661389d565b92506101000a81548161ffff021916908361ffff16021790555082600960048282829054906101000a900461ffff16611179919061389d565b92506101000a81548161ffff021916908361ffff1602179055506000600190505b8361ffff168161ffff16116111d2576111c0336111b7838561389d565b61ffff166128f3565b806111ca81613a19565b91505061119a565b505060016007555050565b60065473ffffffffffffffffffffffffffffffffffffffff16331461125e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b804710156112c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f496e76616c696420616d740000000000000000000000000000000000000000006044820152606401610a0b565b604051600090339083908381818185875af1925050503d806000811461130a576040519150601f19603f3d011682016040523d82523d6000602084013e61130f565b606091505b505090508061137a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f5472616e73206661696c656400000000000000000000000000000000000000006044820152606401610a0b565b60408051338152602081018490527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910160405180910390a15050565b6040517ff440be0400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015261ffff808516602483015260ff84166044830152821660648201526000907333fe21eba5f5ace329c3f96591ecd68e7be5fc069063f440be049060840160206040518083038186803b15801561144e57600080fd5b505af4158015611462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114869190613566565b90505b949350505050565b610bc583838360405180602001604052806000815250611a82565b336114b6826116c6565b73ffffffffffffffffffffffffffffffffffffffff1614611533576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f596f7520646f206e6f74206f776e207468697320746f6b656e000000000000006044820152606401610a0b565b6009805462010000900461ffff1690600261154d83613989565b91906101000a81548161ffff021916908361ffff160217905550506115718161290d565b50565b60065473ffffffffffffffffffffffffffffffffffffffff1633146115f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b600c92909255600d55600e805461ffff90921662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff909216919091179055565b60065473ffffffffffffffffffffffffffffffffffffffff1633146116ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b610bc5600883836131c4565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16806108c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a0b565b60065473ffffffffffffffffffffffffffffffffffffffff1633146117f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b6009805473ffffffffffffffffffffffffffffffffffffffff9092166601000000000000027fffffffffffff0000000000000000000000000000000000000000ffffffffffff909216919091179055565b600073ffffffffffffffffffffffffffffffffffffffff82166118ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a0b565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60065473ffffffffffffffffffffffffffffffffffffffff163314611999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b6119a360006129da565b565b60065473ffffffffffffffffffffffffffffffffffffffff163314611a26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b601592909255601780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055601655565b6060600180546108db906139c5565b611a7e338383612a51565b5050565b611a8c3383612520565b611b18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a0b565b611b2484848484612b7f565b50505050565b60026007541415611b97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a0b565b6002600755600954600090611bba9061ffff640100000000820481169116613923565b61ffff16905060008111611c2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4d696e74206f76657200000000000000000000000000000000000000000000006044820152606401610a0b565b60018661ffff161015611c99576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f5a65726f206d696e7400000000000000000000000000000000000000000000006044820152606401610a0b565b808661ffff161115611d07576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f7420656e6f756768000000000000000000000000000000000000000000006044820152606401610a0b565b60ff85161580611d1a57508460ff166001145b611d80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f496e76616c6964206d696e7400000000000000000000000000000000000000006044820152606401610a0b565b336000908152600a602052604090205461ffff808616911610611dff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f6e63652075736564000000000000000000000000000000000000000000006044820152606401610a0b565b600060ff861615611e11576010611e14565b600b5b905042816001015411158015611e2e575042816002015410155b611e94576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f4e6f206d696e74000000000000000000000000000000000000000000000000006044820152606401610a0b565b6009546040517f1ae895fa0000000000000000000000000000000000000000000000000000000081527333fe21eba5f5ace329c3f96591ecd68e7be5fc0691631ae895fa91611f12916601000000000000900473ffffffffffffffffffffffffffffffffffffffff169033908c908c908c908c908c906004016137ac565b60206040518083038186803b158015611f2a57600080fd5b505af4158015611f3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f629190613549565b611fc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f496e76616c6964207369670000000000000000000000000000000000000000006044820152606401610a0b565b80543490611fdb9061ffff8a16906138e6565b14612042576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4261642076616c756500000000000000000000000000000000000000000000006044820152606401610a0b565b600381015461ffff62010000820481169161205f918a911661389d565b61ffff1611156120cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4c696d69742065786365656465640000000000000000000000000000000000006044820152606401610a0b565b6009805461ffff64010000000082048116928a9290916002916120f69185916201000090041661389d565b92506101000a81548161ffff021916908361ffff16021790555087600960048282829054906101000a900461ffff1661212f919061389d565b82546101009290920a61ffff818102199093169183160217909155336000908152600485016020526040812080548c9450909261216e9185911661389d565b92506101000a81548161ffff021916908361ffff160217905550878260030160008282829054906101000a900461ffff166121a9919061389d565b82546101009290920a61ffff818102199093169183160217909155336000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000169189169190911790555060015b8861ffff168161ffff161161223357612221336111b7838561389d565b8061222b81613a19565b915050612204565b5050600160075550505050505050565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff166122f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a0b565b6000612301612c22565b90506000815111612321576040518060200160405280600081525061234c565b8061232b84612c31565b60405160200161233c92919061377d565b6040516020818303038152906040525b9392505050565b60065473ffffffffffffffffffffffffffffffffffffffff1633146123d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b73ffffffffffffffffffffffffffffffffffffffff8116612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a0b565b611571816129da565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff841690811790915581906124da826116c6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff166125d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610a0b565b60006125dc836116c6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061264b57508373ffffffffffffffffffffffffffffffffffffffff166126338461095e565b73ffffffffffffffffffffffffffffffffffffffff16145b80611489575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff16611489565b8273ffffffffffffffffffffffffffffffffffffffff166126ac826116c6565b73ffffffffffffffffffffffffffffffffffffffff161461274f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610a0b565b73ffffffffffffffffffffffffffffffffffffffff82166127f1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a0b565b6127fc600082612480565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290612832908490613946565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080546001929061286d9084906138ba565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611a7e828260405180602001604052806000815250612d63565b6000612918826116c6565b9050612925600083612480565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260036020526040812080546001929061295b908490613946565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ae7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a0b565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612b8a84848461268c565b612b9684848484612e06565b611b24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a0b565b6060600880546108db906139c5565b606081612c7157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612c9b5780612c8581613a3b565b9150612c949050600a836138d2565b9150612c75565b60008167ffffffffffffffff811115612cb657612cb6613b15565b6040519080825280601f01601f191660200182016040528015612ce0576020820181803683370190505b5090505b841561148957612cf5600183613946565b9150612d02600a86613a74565b612d0d9060306138ba565b60f81b818381518110612d2257612d22613ae6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612d5c600a866138d2565b9450612ce4565b612d6d8383613002565b612d7a6000848484612e06565b610bc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a0b565b600073ffffffffffffffffffffffffffffffffffffffff84163b15612ffa576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290612e7d903390899088908890600401613841565b602060405180830381600087803b158015612e9757600080fd5b505af1925050508015612ee5575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612ee29181019061359c565b60015b612faf573d808015612f13576040519150601f19603f3d011682016040523d82523d6000602084013e612f18565b606091505b508051612fa7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a0b565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611489565b506001611489565b73ffffffffffffffffffffffffffffffffffffffff821661307f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a0b565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff161561310b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a0b565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906131419084906138ba565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546131d0906139c5565b90600052602060002090601f0160209004810192826131f25760008555613256565b82601f10613229578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613256565b82800160010185558215613256579182015b8281111561325657823582559160200191906001019061323b565b50613262929150613266565b5090565b5b808211156132625760008155600101613267565b803573ffffffffffffffffffffffffffffffffffffffff8116811461329f57600080fd5b919050565b60008083601f8401126132b657600080fd5b50813567ffffffffffffffff8111156132ce57600080fd5b6020830191508360208285010111156132e657600080fd5b9250929050565b803561ffff8116811461329f57600080fd5b803560ff8116811461329f57600080fd5b60006020828403121561332257600080fd5b61234c8261327b565b6000806040838503121561333e57600080fd5b6133478361327b565b91506133556020840161327b565b90509250929050565b60008060006060848603121561337357600080fd5b61337c8461327b565b925061338a6020850161327b565b9150604084013590509250925092565b600080600080608085870312156133b057600080fd5b6133b98561327b565b93506133c76020860161327b565b925060408501359150606085013567ffffffffffffffff808211156133eb57600080fd5b818701915087601f8301126133ff57600080fd5b81358181111561341157613411613b15565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561345757613457613b15565b816040528281528a602084870101111561347057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156134a757600080fd5b6134b08361327b565b915060208301356134c081613b44565b809150509250929050565b600080600080608085870312156134e157600080fd5b6134ea8561327b565b93506134f8602086016132ed565b9250613506604086016132ff565b9150613514606086016132ed565b905092959194509250565b6000806040838503121561353257600080fd5b61353b8361327b565b946020939093013593505050565b60006020828403121561355b57600080fd5b815161234c81613b44565b60006020828403121561357857600080fd5b5051919050565b60006020828403121561359157600080fd5b813561234c81613b52565b6000602082840312156135ae57600080fd5b815161234c81613b52565b600080602083850312156135cc57600080fd5b823567ffffffffffffffff8111156135e357600080fd5b6135ef858286016132a4565b90969095509350505050565b60006020828403121561360d57600080fd5b61234c826132ed565b60008060008060006080868803121561362e57600080fd5b613637866132ed565b9450613645602087016132ff565b9350613653604087016132ed565b9250606086013567ffffffffffffffff81111561366f57600080fd5b61367b888289016132a4565b969995985093965092949392505050565b60006020828403121561369e57600080fd5b5035919050565b6000806000606084860312156136ba57600080fd5b8335925061338a602085016132ed565b6000806000606084860312156136df57600080fd5b83359250602084013591506136f6604085016132ed565b90509250925092565b6000806000806080858703121561371557600080fd5b843593506020850135925060408501359150613514606086016132ed565b6000815180845261374b81602086016020860161395d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000835161378f81846020880161395d565b8351908301906137a381836020880161395d565b01949350505050565b73ffffffffffffffffffffffffffffffffffffffff88811682528716602082015261ffff868116604083015260ff861660608301528416608082015260c060a0820181905281018290526000828460e0840137600060e0848401015260e07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116830101905098975050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526138806080830184613733565b9695505050505050565b60208152600061234c6020830184613733565b600061ffff8083168185168083038211156137a3576137a3613a88565b600082198211156138cd576138cd613a88565b500190565b6000826138e1576138e1613ab7565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561391e5761391e613a88565b500290565b600061ffff8381169083168181101561393e5761393e613a88565b039392505050565b60008282101561395857613958613a88565b500390565b60005b83811015613978578181015183820152602001613960565b83811115611b245750506000910152565b600061ffff82168061399d5761399d613a88565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0192915050565b600181811c908216806139d957607f821691505b60208210811415613a13577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600061ffff80831681811415613a3157613a31613a88565b6001019392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613a6d57613a6d613a88565b5060010190565b600082613a8357613a83613ab7565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b801515811461157157600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461157157600080fdfea26469706673582212206322d7f48a0b2f1cb0cca1988076eae1adc912c24f4051bdb169287d6468317864736f6c63430008070033000000000000000000000000000000000000000000000000000000000000157c00000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000109a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000009536c708910000000000000000000000000000c6fddf411b5416d594b8a33e314f81d26b04165a0000000000000000000000000000000000000000000000000000000061d4df800000000000000000000000000000000000000000000000000000000061d54fff0000000000000000000000000000000000000000000000000000000061d631000000000000000000000000000000000000000000000000000000000061d6a17f0000000000000000000000000000000000000000000000000000000061d78280
Deployed Bytecode
0x60806040526004361061021d5760003560e01c80635b70ea9f1161011d57806395d89b41116100b0578063c87b56dd1161007f578063e2cedd4911610064578063e2cedd4914610740578063e985e9c514610771578063f2fde38b146107c757600080fd5b8063c87b56dd14610705578063d5abeb011461072557600080fd5b806395d89b411461069d578063a22cb465146106b2578063b88d4fde146106d2578063bdb13208146106f257600080fd5b806370a08231116100ec57806370a082311461061d578063715018a61461063d5780637f80a264146106525780638da5cb5b1461067257600080fd5b80635b70ea9f146105395780636352211e1461056a5780636c19e7831461058a57806370954de6146105aa57600080fd5b806326092b83116101b057806342966c681161017f5780634f02c420116101645780634f02c4201461049657806355f804b3146104b957806359533d6c146104d957600080fd5b806342966c68146104565780634ce9cfaa1461047657600080fd5b806326092b83146103a65780632e1a7d4d146103e857806341ca8a671461040857806342842e0e1461043657600080fd5b8063123db7ac116101ec578063123db7ac1461031f57806318160ddd1461033f57806323b872dd1461037357806323cf0a221461039357600080fd5b806301ffc9a71461026157806306fdde0314610296578063081812fc146102b8578063095ea7b3146102fd57600080fd5b3661025c57604080513381523460208201527f737c69225d647e5994eab1a6c301bf6d9232beb2759ae1e27a8966b4732bc489910160405180910390a1005b600080fd5b34801561026d57600080fd5b5061028161027c36600461357f565b6107e7565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102ab6108cc565b60405161028d919061388a565b3480156102c457600080fd5b506102d86102d336600461368c565b61095e565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161028d565b34801561030957600080fd5b5061031d61031836600461351f565b610a3d565b005b34801561032b57600080fd5b5061031d61033a3660046136ff565b610bca565b34801561034b57600080fd5b506009546103609062010000900461ffff1681565b60405161ffff909116815260200161028d565b34801561037f57600080fd5b5061031d61038e36600461335e565b610c95565b61031d6103a13660046135fb565b610d36565b3480156103b257600080fd5b506015546016546017546103c992919061ffff1683565b60408051938452602084019290925261ffff169082015260600161028d565b3480156103f457600080fd5b5061031d61040336600461368c565b6111dd565b34801561041457600080fd5b506104286104233660046134cb565b6113b7565b60405190815260200161028d565b34801561044257600080fd5b5061031d61045136600461335e565b611491565b34801561046257600080fd5b5061031d61047136600461368c565b6114ac565b34801561048257600080fd5b5061031d6104913660046136ca565b611574565b3480156104a257600080fd5b5060095461036090640100000000900461ffff1681565b3480156104c557600080fd5b5061031d6104d43660046135b9565b611639565b3480156104e557600080fd5b5060105460115460125460135461050a9392919061ffff808216916201000090041685565b6040805195865260208601949094529284019190915261ffff908116606084015216608082015260a00161028d565b34801561054557600080fd5b50600b54600c54600d54600e5461050a9392919061ffff808216916201000090041685565b34801561057657600080fd5b506102d861058536600461368c565b6116c6565b34801561059657600080fd5b5061031d6105a5366004613310565b611778565b3480156105b657600080fd5b506106026105c5366004613310565b73ffffffffffffffffffffffffffffffffffffffff166000908152600f602090815260408083205460149092529091205461ffff91821692911690565b6040805161ffff93841681529290911660208301520161028d565b34801561062957600080fd5b50610428610638366004613310565b61184a565b34801561064957600080fd5b5061031d611918565b34801561065e57600080fd5b5061031d61066d3660046136a5565b6119a5565b34801561067e57600080fd5b5060065473ffffffffffffffffffffffffffffffffffffffff166102d8565b3480156106a957600080fd5b506102ab611a64565b3480156106be57600080fd5b5061031d6106cd366004613494565b611a73565b3480156106de57600080fd5b5061031d6106ed36600461339a565b611a82565b61031d610700366004613616565b611b2a565b34801561071157600080fd5b506102ab61072036600461368c565b612243565b34801561073157600080fd5b506009546103609061ffff1681565b34801561074c57600080fd5b5061036061075b366004613310565b600a6020526000908152604090205461ffff1681565b34801561077d57600080fd5b5061028161078c36600461332b565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107d357600080fd5b5061031d6107e2366004613310565b612353565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061087a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108c657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546108db906139c5565b80601f0160208091040260200160405190810160405280929190818152602001828054610907906139c5565b80156109545780601f1061092957610100808354040283529160200191610954565b820191906000526020600020905b81548152906001019060200180831161093757829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610a14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a48826116c6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a0b565b3373ffffffffffffffffffffffffffffffffffffffff82161480610b2f5750610b2f813361078c565b610bbb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a0b565b610bc58383612480565b505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610c4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b6010939093556011919091556012556013805461ffff90921662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff909216919091179055565b610c9f3382612520565b610d2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a0b565b610bc583838361268c565b60026007541415610da3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a0b565b6002600755600954600090610dc69061ffff640100000000820481169116613923565b61ffff16905060008111610e36576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4d696e74206f76657200000000000000000000000000000000000000000000006044820152606401610a0b565b60018261ffff161015610ea5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f5a65726f206d696e7400000000000000000000000000000000000000000000006044820152606401610a0b565b808261ffff161115610f13576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f7420656e6f756768000000000000000000000000000000000000000000006044820152606401610a0b565b33610f3360065473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161415610fbc573415610fb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4f776e65722070616964000000000000000000000000000000000000000000006044820152606401610a0b565b611115565b60165442106110b35760175461ffff9081169083161115611039576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f45786365656473206d61780000000000000000000000000000000000000000006044820152606401610a0b565b601554349061104c9061ffff85166138e6565b14610fb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642076616c7565000000000000000000000000000000000000006044820152606401610a0b565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f4e6f206d696e74000000000000000000000000000000000000000000000000006044820152606401610a0b565b6009805461ffff6401000000008204811692859290916002916111409185916201000090041661389d565b92506101000a81548161ffff021916908361ffff16021790555082600960048282829054906101000a900461ffff16611179919061389d565b92506101000a81548161ffff021916908361ffff1602179055506000600190505b8361ffff168161ffff16116111d2576111c0336111b7838561389d565b61ffff166128f3565b806111ca81613a19565b91505061119a565b505060016007555050565b60065473ffffffffffffffffffffffffffffffffffffffff16331461125e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b804710156112c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f496e76616c696420616d740000000000000000000000000000000000000000006044820152606401610a0b565b604051600090339083908381818185875af1925050503d806000811461130a576040519150601f19603f3d011682016040523d82523d6000602084013e61130f565b606091505b505090508061137a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f5472616e73206661696c656400000000000000000000000000000000000000006044820152606401610a0b565b60408051338152602081018490527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910160405180910390a15050565b6040517ff440be0400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015261ffff808516602483015260ff84166044830152821660648201526000907333fe21eba5f5ace329c3f96591ecd68e7be5fc069063f440be049060840160206040518083038186803b15801561144e57600080fd5b505af4158015611462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114869190613566565b90505b949350505050565b610bc583838360405180602001604052806000815250611a82565b336114b6826116c6565b73ffffffffffffffffffffffffffffffffffffffff1614611533576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f596f7520646f206e6f74206f776e207468697320746f6b656e000000000000006044820152606401610a0b565b6009805462010000900461ffff1690600261154d83613989565b91906101000a81548161ffff021916908361ffff160217905550506115718161290d565b50565b60065473ffffffffffffffffffffffffffffffffffffffff1633146115f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b600c92909255600d55600e805461ffff90921662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff909216919091179055565b60065473ffffffffffffffffffffffffffffffffffffffff1633146116ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b610bc5600883836131c4565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16806108c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a0b565b60065473ffffffffffffffffffffffffffffffffffffffff1633146117f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b6009805473ffffffffffffffffffffffffffffffffffffffff9092166601000000000000027fffffffffffff0000000000000000000000000000000000000000ffffffffffff909216919091179055565b600073ffffffffffffffffffffffffffffffffffffffff82166118ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a0b565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60065473ffffffffffffffffffffffffffffffffffffffff163314611999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b6119a360006129da565b565b60065473ffffffffffffffffffffffffffffffffffffffff163314611a26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b601592909255601780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055601655565b6060600180546108db906139c5565b611a7e338383612a51565b5050565b611a8c3383612520565b611b18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a0b565b611b2484848484612b7f565b50505050565b60026007541415611b97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a0b565b6002600755600954600090611bba9061ffff640100000000820481169116613923565b61ffff16905060008111611c2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4d696e74206f76657200000000000000000000000000000000000000000000006044820152606401610a0b565b60018661ffff161015611c99576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f5a65726f206d696e7400000000000000000000000000000000000000000000006044820152606401610a0b565b808661ffff161115611d07576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f7420656e6f756768000000000000000000000000000000000000000000006044820152606401610a0b565b60ff85161580611d1a57508460ff166001145b611d80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f496e76616c6964206d696e7400000000000000000000000000000000000000006044820152606401610a0b565b336000908152600a602052604090205461ffff808616911610611dff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f6e63652075736564000000000000000000000000000000000000000000006044820152606401610a0b565b600060ff861615611e11576010611e14565b600b5b905042816001015411158015611e2e575042816002015410155b611e94576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f4e6f206d696e74000000000000000000000000000000000000000000000000006044820152606401610a0b565b6009546040517f1ae895fa0000000000000000000000000000000000000000000000000000000081527333fe21eba5f5ace329c3f96591ecd68e7be5fc0691631ae895fa91611f12916601000000000000900473ffffffffffffffffffffffffffffffffffffffff169033908c908c908c908c908c906004016137ac565b60206040518083038186803b158015611f2a57600080fd5b505af4158015611f3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f629190613549565b611fc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f496e76616c6964207369670000000000000000000000000000000000000000006044820152606401610a0b565b80543490611fdb9061ffff8a16906138e6565b14612042576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4261642076616c756500000000000000000000000000000000000000000000006044820152606401610a0b565b600381015461ffff62010000820481169161205f918a911661389d565b61ffff1611156120cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4c696d69742065786365656465640000000000000000000000000000000000006044820152606401610a0b565b6009805461ffff64010000000082048116928a9290916002916120f69185916201000090041661389d565b92506101000a81548161ffff021916908361ffff16021790555087600960048282829054906101000a900461ffff1661212f919061389d565b82546101009290920a61ffff818102199093169183160217909155336000908152600485016020526040812080548c9450909261216e9185911661389d565b92506101000a81548161ffff021916908361ffff160217905550878260030160008282829054906101000a900461ffff166121a9919061389d565b82546101009290920a61ffff818102199093169183160217909155336000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000169189169190911790555060015b8861ffff168161ffff161161223357612221336111b7838561389d565b8061222b81613a19565b915050612204565b5050600160075550505050505050565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff166122f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a0b565b6000612301612c22565b90506000815111612321576040518060200160405280600081525061234c565b8061232b84612c31565b60405160200161233c92919061377d565b6040516020818303038152906040525b9392505050565b60065473ffffffffffffffffffffffffffffffffffffffff1633146123d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a0b565b73ffffffffffffffffffffffffffffffffffffffff8116612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a0b565b611571816129da565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff841690811790915581906124da826116c6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff166125d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610a0b565b60006125dc836116c6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061264b57508373ffffffffffffffffffffffffffffffffffffffff166126338461095e565b73ffffffffffffffffffffffffffffffffffffffff16145b80611489575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff16611489565b8273ffffffffffffffffffffffffffffffffffffffff166126ac826116c6565b73ffffffffffffffffffffffffffffffffffffffff161461274f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610a0b565b73ffffffffffffffffffffffffffffffffffffffff82166127f1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a0b565b6127fc600082612480565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290612832908490613946565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080546001929061286d9084906138ba565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611a7e828260405180602001604052806000815250612d63565b6000612918826116c6565b9050612925600083612480565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260036020526040812080546001929061295b908490613946565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ae7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a0b565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612b8a84848461268c565b612b9684848484612e06565b611b24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a0b565b6060600880546108db906139c5565b606081612c7157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612c9b5780612c8581613a3b565b9150612c949050600a836138d2565b9150612c75565b60008167ffffffffffffffff811115612cb657612cb6613b15565b6040519080825280601f01601f191660200182016040528015612ce0576020820181803683370190505b5090505b841561148957612cf5600183613946565b9150612d02600a86613a74565b612d0d9060306138ba565b60f81b818381518110612d2257612d22613ae6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612d5c600a866138d2565b9450612ce4565b612d6d8383613002565b612d7a6000848484612e06565b610bc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a0b565b600073ffffffffffffffffffffffffffffffffffffffff84163b15612ffa576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290612e7d903390899088908890600401613841565b602060405180830381600087803b158015612e9757600080fd5b505af1925050508015612ee5575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612ee29181019061359c565b60015b612faf573d808015612f13576040519150601f19603f3d011682016040523d82523d6000602084013e612f18565b606091505b508051612fa7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a0b565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611489565b506001611489565b73ffffffffffffffffffffffffffffffffffffffff821661307f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a0b565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff161561310b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a0b565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906131419084906138ba565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546131d0906139c5565b90600052602060002090601f0160209004810192826131f25760008555613256565b82601f10613229578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613256565b82800160010185558215613256579182015b8281111561325657823582559160200191906001019061323b565b50613262929150613266565b5090565b5b808211156132625760008155600101613267565b803573ffffffffffffffffffffffffffffffffffffffff8116811461329f57600080fd5b919050565b60008083601f8401126132b657600080fd5b50813567ffffffffffffffff8111156132ce57600080fd5b6020830191508360208285010111156132e657600080fd5b9250929050565b803561ffff8116811461329f57600080fd5b803560ff8116811461329f57600080fd5b60006020828403121561332257600080fd5b61234c8261327b565b6000806040838503121561333e57600080fd5b6133478361327b565b91506133556020840161327b565b90509250929050565b60008060006060848603121561337357600080fd5b61337c8461327b565b925061338a6020850161327b565b9150604084013590509250925092565b600080600080608085870312156133b057600080fd5b6133b98561327b565b93506133c76020860161327b565b925060408501359150606085013567ffffffffffffffff808211156133eb57600080fd5b818701915087601f8301126133ff57600080fd5b81358181111561341157613411613b15565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561345757613457613b15565b816040528281528a602084870101111561347057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156134a757600080fd5b6134b08361327b565b915060208301356134c081613b44565b809150509250929050565b600080600080608085870312156134e157600080fd5b6134ea8561327b565b93506134f8602086016132ed565b9250613506604086016132ff565b9150613514606086016132ed565b905092959194509250565b6000806040838503121561353257600080fd5b61353b8361327b565b946020939093013593505050565b60006020828403121561355b57600080fd5b815161234c81613b44565b60006020828403121561357857600080fd5b5051919050565b60006020828403121561359157600080fd5b813561234c81613b52565b6000602082840312156135ae57600080fd5b815161234c81613b52565b600080602083850312156135cc57600080fd5b823567ffffffffffffffff8111156135e357600080fd5b6135ef858286016132a4565b90969095509350505050565b60006020828403121561360d57600080fd5b61234c826132ed565b60008060008060006080868803121561362e57600080fd5b613637866132ed565b9450613645602087016132ff565b9350613653604087016132ed565b9250606086013567ffffffffffffffff81111561366f57600080fd5b61367b888289016132a4565b969995985093965092949392505050565b60006020828403121561369e57600080fd5b5035919050565b6000806000606084860312156136ba57600080fd5b8335925061338a602085016132ed565b6000806000606084860312156136df57600080fd5b83359250602084013591506136f6604085016132ed565b90509250925092565b6000806000806080858703121561371557600080fd5b843593506020850135925060408501359150613514606086016132ed565b6000815180845261374b81602086016020860161395d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000835161378f81846020880161395d565b8351908301906137a381836020880161395d565b01949350505050565b73ffffffffffffffffffffffffffffffffffffffff88811682528716602082015261ffff868116604083015260ff861660608301528416608082015260c060a0820181905281018290526000828460e0840137600060e0848401015260e07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116830101905098975050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526138806080830184613733565b9695505050505050565b60208152600061234c6020830184613733565b600061ffff8083168185168083038211156137a3576137a3613a88565b600082198211156138cd576138cd613a88565b500190565b6000826138e1576138e1613ab7565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561391e5761391e613a88565b500290565b600061ffff8381169083168181101561393e5761393e613a88565b039392505050565b60008282101561395857613958613a88565b500390565b60005b83811015613978578181015183820152602001613960565b83811115611b245750506000910152565b600061ffff82168061399d5761399d613a88565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0192915050565b600181811c908216806139d957607f821691505b60208210811415613a13577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600061ffff80831681811415613a3157613a31613a88565b6001019392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613a6d57613a6d613a88565b5060010190565b600082613a8357613a83613ab7565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b801515811461157157600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461157157600080fdfea26469706673582212206322d7f48a0b2f1cb0cca1988076eae1adc912c24f4051bdb169287d6468317864736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000157c00000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000109a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000009536c708910000000000000000000000000000c6fddf411b5416d594b8a33e314f81d26b04165a0000000000000000000000000000000000000000000000000000000061d4df800000000000000000000000000000000000000000000000000000000061d54fff0000000000000000000000000000000000000000000000000000000061d631000000000000000000000000000000000000000000000000000000000061d6a17f0000000000000000000000000000000000000000000000000000000061d78280
-----Decoded View---------------
Arg [0] : _maxSupply (uint16): 5500
Arg [1] : _maxFree (uint16): 750
Arg [2] : _maxPresale (uint16): 4250
Arg [3] : _publicTransactionMax (uint16): 10
Arg [4] : _mintPrice (uint256): 42000000000000000
Arg [5] : _signer (address): 0xC6fDDF411B5416d594b8A33E314F81D26b04165A
Arg [6] : _freeMintStart (uint256): 1641340800
Arg [7] : _freeMintEnd (uint256): 1641369599
Arg [8] : _presaleMintStart (uint256): 1641427200
Arg [9] : _presaleMintEnd (uint256): 1641455999
Arg [10] : _publicMintStart (uint256): 1641513600
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000157c
Arg [1] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [2] : 000000000000000000000000000000000000000000000000000000000000109a
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 000000000000000000000000000000000000000000000000009536c708910000
Arg [5] : 000000000000000000000000c6fddf411b5416d594b8a33e314f81d26b04165a
Arg [6] : 0000000000000000000000000000000000000000000000000000000061d4df80
Arg [7] : 0000000000000000000000000000000000000000000000000000000061d54fff
Arg [8] : 0000000000000000000000000000000000000000000000000000000061d63100
Arg [9] : 0000000000000000000000000000000000000000000000000000000061d6a17f
Arg [10] : 0000000000000000000000000000000000000000000000000000000061d78280
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.